:root {
    --primary-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --menu-bg: #252525;
    --accent: #ff6b35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--primary-bg);
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

/* Layout: Sidebar + Main */
.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--menu-bg);
    padding: 2rem 1rem;
    border-right: 1px solid #444;
    flex-shrink: 0;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Header */
.header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #444;
}

.header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    background: linear-gradient(45deg, var(--accent), #ffd23f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Menü */
.menu {
    list-style: none;
}

.menu-item {
    margin-bottom: 0.75rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-link:hover,
.menu-link.active {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Featured Video */
.featured-section {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-video {
    width: 100%;
    max-width: 840px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.featured-info {
    margin-top: 1rem;
    text-align: center;
    max-width: 840px;
    width: 100%;
}

.featured-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.featured-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.channel-logo-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.featured-link:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Thumbnails Grid */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.thumbnail-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.thumbnail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--accent);
}

.thumbnail-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #333;
    transition: transform 0.3s ease;
}

.thumbnail-card:hover .thumbnail-img {
    transform: scale(1.05);
}

.thumbnail-content {
    padding: 1rem;
}

.thumbnail-channel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.channel-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
}

.thumbnail-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: white;
}

.thumbnail-title a {
    color: white;
    text-decoration: none;
}

.thumbnail-title a:hover {
    color: var(--accent);
}

.thumbnail-date {
    font-size: 0.8rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        order: 2;
        border-right: none;
        border-bottom: 1px solid #444;
    }
    .main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .thumbnails-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        padding: 1rem 0.5rem;
    }
}

/* Loading & Empty States */
.loading, .empty-state {
    text-align: center;
    color: #aaa;
    padding: 3rem;
    font-size: 1.1rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::-moz-selection {
    background: var(--accent);
    color: white;
}

::selection {
    background: var(--accent);
    color: white;
}

/* Logo + Fallback */
.logo, .fallback {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.channel-logo-small.logo,
.channel-logo-small.fallback {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
}

.menu-icon.logo,
.menu-icon.fallback,
.channel-logo.logo,
.channel-logo.fallback {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    color: white !important;
    font-size: 14px !important;
}

.channel-logo-small.fallback {
    font-size: 11px !important;
}
