/* Reset & Base */
* {
    box_sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #ffa31a;
    color: #000;
}

.btn-primary:hover {
    background-color: #ffb84d;
}

.btn-secondary {
    background-color: #333;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #444;
}

/* Header */
.main-header {
    background-color: #1b1b1b; /* Slightly lighter than pure black */
    border-bottom: 2px solid #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -1px;
}

.logo span.white {
    color: #fff;
    background: transparent;
    padding: 5px;
}

.logo span.orange {
    background-color: #ffa31a;
    color: #000;
    padding: 5px 8px;
    border-radius: 4px;
    margin-left: -5px;
}

.search-bar {
    flex-grow: 1;
    margin: 0 40px;
    max-width: 600px;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-bar input:focus {
    background-color: #000;
    border-color: #ffa31a;
}

.search-bar button {
    background-color: #ffa31a;
    border: none;
    color: #000;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Sub-Header / Nav */
.sub-nav {
    background-color: #282828;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.sub-nav ul {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.sub-nav a:hover {
    color: #ffa31a;
}

/* Main Layout */
.main-content {
    padding: 20px 0;
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.video-grid-container {
    flex-grow: 1;
}

/* Section Filters */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: normal;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background-color: transparent;
    transition: transform 0.2s;
}

.video-card:hover .thumbnail img {
    opacity: 0.8;
}

.thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #111;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 2px;
}

.video-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
}

.video-info h3 a {
    color: #ddd;
}

.video-info h3 a:hover {
    color: #ffa31a;
}

.video-meta {
    font-size: 11px;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.uploader {
    color: #aaa;
}

/* Footer */
footer {
    background-color: #1b1b1b;
    border-top: 1px solid #333;
    padding: 40px 0;
    margin-top: 40px;
    color: #666;
    font-size: 12px;
    text-align: center;
}

footer a {
    color: #888;
    margin: 0 10px;
}

footer a:hover {
    color: #ffa31a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: none; /* Hide sidebar on mobile for now */
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        margin: 10px 0 0 0;
        width: 100%;
        max-width: 100%;
    }
    
    .logo {
        flex-grow: 1;
    }
}
