/* ============================================
   FRESH KERNELS - Premium Entertainment Ratings
   A Billion-Dollar Rotten Tomatoes Competitor
   ============================================ */

/* CSS Variables */
:root {
    /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #15151f;
    --bg-elevated: #1e1e2a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    
    /* Brand Colors */
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --gold-dark: #d97706;
    --fresh: #22c55e;
    --fresh-light: #4ade80;
    --stale: #ef4444;
    --stale-light: #f87171;
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-fresh: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-stale: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.8) 50%, #f8fafc 100%);
    --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 1.5rem;
    --spacing-3xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-glow-gold: 0 0 20px rgba(251, 191, 36, 0.3);
    --shadow-glow-fresh: 0 0 20px rgba(34, 197, 94, 0.3);
    
    /* Layout */
    --nav-height: 4rem;
    --container-max: 1400px;
    --container-padding: 1.5rem;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0f;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #12121a;
}

::-webkit-scrollbar-thumb {
    background: #1a1a24;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* Selection */
::selection {
    background: #fbbf24;
    color: #0a0a0f;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: background 250ms ease, transform 250ms ease;
}

[data-theme="light"] .nav {
    background: rgba(248, 250, 252, 0.85);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 150ms ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.logo-text {
    color: #ffffff;
}

.logo-accent {
    color: #fbbf24;
}

.nav-search {
    flex: 1 1 200px;
    min-width: 160px;
    max-width: 480px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #52525b;
    pointer-events: none;
}

#search-input,
#mobile-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: #1a1a24;
    border: 1px solid transparent;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.9375rem;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

#search-input::placeholder,
#mobile-search-input::placeholder {
    color: #52525b;
}

#search-input:focus,
#mobile-search-input:focus {
    outline: none;
    border-color: #fbbf24;
    background: #12121a;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(700px, 90vw);
    background: #1e1e2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.6);
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 150ms ease;
    z-index: 100;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 150ms ease;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-poster {
    width: 55px;
    height: 82px;
    border-radius: 0.375rem;
    object-fit: cover;
    background: #1a1a24;
    flex-shrink: 0;
}

.search-result-person-photo {
    width: 45px;
    height: 45px;
    border-radius: 9999px;
    object-fit: cover;
    background: #1a1a24;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.8125rem;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-score {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-result-kernel-badge {
    background: #fbbf24;
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.search-result-promoted-badge {
    background: linear-gradient(135deg, #fbbf24, #ff8c00);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.search-loading,
.search-empty {
    padding: 2rem;
    text-align: center;
    color: #a1a1aa;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #a1a1aa;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    transition: all 150ms ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #a1a1aa;
    transition: all 150ms ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fbbf24;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.nav-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 150ms ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #12121a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile-link {
    padding: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 150ms ease;
}

.nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 0.125rem;
    }

    .nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .nav-search {
        min-width: 140px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-search {
        max-width: none;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .nav-search {
        display: none;
    }
    
    .nav-container {
        justify-content: space-between;
    }
}

/* ============================================
   Main Content Area
   ============================================ */

.main {
    min-height: 100vh;
    padding-top: 4rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    height: auto;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero:not(:has(.hero-scores)) {
    min-height: 340px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    animation: heroZoom 30s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.8) 50%, #0a0a0f 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: calc(4rem + 2rem) 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0a0a0f;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: #a1a1aa;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hero-scores {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #a1a1aa;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    transition: all 150ms ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0a0a0f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: #1a1a24;
    border-color: #52525b;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 9999px;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Score Badges
   ============================================ */

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1a1a24;
    border-radius: 0.75rem;
    font-weight: 600;
}

.score-badge.large {
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
}

.score-icon {
    font-size: 1.25rem;
}

.score-badge.large .score-icon {
    font-size: 1.75rem;
}

.score-value {
    color: #ffffff;
}

.score-badge.fresh .score-value {
    color: #22c55e;
}

.score-badge.stale .score-value {
    color: #ef4444;
}

.score-label {
    font-size: 0.75rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.certified-badge {
    position: relative;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid #fbbf24;
}

.certified-badge::before {
    content: '★';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0a0a0f;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Section Headers
   ============================================ */

.section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 150ms ease;
}

.section-link:hover {
    gap: 0.5rem;
}

.section-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Cards Grid
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.cards-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ============================================
   Movie/TV Card
   ============================================ */

.card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #15151f;
    transition: transform 250ms ease, box-shadow 250ms ease;
    cursor: pointer;
    /* Force GPU compositing to prevent sub-pixel seam during translateY */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.6);
}

.card-poster-container {
    display: block;
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
    /* Overlap into card-info to cover sub-pixel gap from aspect-ratio rounding */
    margin-bottom: -2px;
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
    transform: scale(1.02);
}

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

.card-poster-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #52525b;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.95) 50%);
    opacity: 0;
    transition: opacity 250ms ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.5rem 1rem 1rem;
    pointer-events: none;
}

.card:hover .card-overlay,
.card.overlay-active .card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.card-overlay-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-overlay-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-overlay-meta {
    display: flex;
    gap: 4px;
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
    line-height: 1.3;
}

.card-overlay-meta span + span::before {
    content: '·';
    margin-right: 4px;
}

.card-overlay-scores {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1px;
}

.card-overlay-scores .fresh { color: #22c55e; }
.card-overlay-scores .stale { color: #ef4444; }

.card-overlay-desc {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 2px 0 0;
}

.card-overlay-release {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    margin-top: 3px;
}

.card-overlay-network {
    font-size: 0.6875rem;
    color: #60a5fa;
    font-weight: 500;
    margin-top: 3px;
}

.card-overlay-theater {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    margin-top: 3px;
}

.card-overlay-theater a {
    color: #fbbf24;
    text-decoration: none;
}

.card-overlay-theater a:hover {
    text-decoration: underline;
}

.card-overlay-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 4px 8px;
    border-radius: 0.375rem;
    margin-top: 4px;
    text-decoration: none;
    transition: background 150ms ease;
    pointer-events: auto;
    align-self: flex-start;
}

.card-overlay-action:hover {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Contextual card-meta styles */
.card-meta-release {
    color: #fbbf24;
    font-weight: 500;
    font-size: 0.75rem;
    flex-basis: 100%;
}

.card-meta-network {
    color: #60a5fa;
    font-size: 0.75rem;
}

.card-meta-airdate {
    color: #a1a1aa;
    font-size: 0.72rem;
    flex-basis: 100%;
}

.card-meta-airtime {
    color: #a1a1aa;
    font-size: 0.72rem;
}

.card-meta-tickets {
    font-size: 0.75rem;
    color: #fbbf24;
}

/* Showtimes link: hidden by default, shown on card hover (swaps with "In Theaters") */
.card-meta-showtimes {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    text-decoration: none;
}

.card:hover .card-meta-showtimes {
    display: inline;
}

.card:hover .card-meta-tickets {
    display: none;
}

/* Genre line below title — hidden on desktop (overlay shows genres), visible on mobile */
.card-genres {
    display: none;
    font-size: 0.6875rem;
    color: #71717a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Mobile: slim bottom gradient overlay + enhanced card-info */
@media (hover: none) and (pointer: coarse) {
    /* Slim always-visible gradient at bottom of poster */
    .card-overlay {
        opacity: 1;
        pointer-events: none;
        background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.65) 100%);
        padding: 0 8px 6px;
    }

    /* Hide all overlay content on mobile — score badge at top-left is enough */
    .card-overlay-content {
        display: none;
    }

    /* Always show watchlist button */
    .card .card-watchlist {
        opacity: 1;
        transform: scale(1);
        width: 30px;
        height: 30px;
    }
    .card-watchlist svg {
        width: 14px;
        height: 14px;
    }

    /* No hover lift on touch devices */
    .card:hover {
        transform: translateZ(0);
    }

    .card:hover .card-poster {
        transform: scale(1.01);
    }

    /* Show score badge always */
    .card-score {
        font-size: 0.6875rem;
        padding: 2px 6px;
    }

    /* Show genres below title on mobile */
    .card-genres {
        display: block;
    }

    /* Tighter card-info on mobile */
    .card-info {
        padding: 8px 8px 2px;
    }

    .card-meta {
        padding: 0 8px 8px;
    }

    .card-title {
        font-size: 0.8125rem;
        line-height: 1.25;
    }

    .card-meta {
        font-size: 0.6875rem;
    }
}

.card-score {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-score.fresh {
    color: #22c55e;
}

.card-score.stale {
    color: #ef4444;
}

.card-watchlist {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    opacity: 0;
    transform: scale(0.8);
    transition: all 150ms ease;
}

.card:hover .card-watchlist {
    opacity: 1;
    transform: scale(1);
}

.card-watchlist:hover {
    background: #fbbf24;
    color: #0a0a0f;
}

.card-watchlist.active {
    background: #fbbf24;
    color: #0a0a0f;
    opacity: 1;
    transform: scale(1);
}

.card-watchlist svg {
    width: 18px;
    height: 18px;
}

/* Play Trailer Button on Cards */
.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    opacity: 0.7;
    transition: all 150ms ease;
    z-index: 5;
    padding: 0;
}

.card-play-btn svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.card:hover .card-play-btn {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.card:hover .card-play-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: #fbbf24;
    color: #fbbf24;
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
}

@media (max-width: 768px) {
    .card-play-btn {
        width: 40px;
        height: 40px;
    }

    .card-play-btn svg {
        width: 16px;
        height: 16px;
    }
}

.card-info {
    padding: 1rem 1rem 1px;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.8125rem;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 0.25rem 0.5rem;
    flex-wrap: wrap;
    padding: 0 1rem 0.5rem;
}

/* ============================================
   Horizontal Scroll Container
   ============================================ */

.scroll-container {
    position: relative;
}

.scroll-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-wrapper .card {
    flex: 0 0 180px;
    scroll-snap-align: start;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #1e1e2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    transition: all 150ms ease;
    z-index: 10;
    opacity: 0;
}

.scroll-container:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: #fbbf24;
    color: #0a0a0f;
}

.scroll-btn.prev {
    left: -24px;
}

.scroll-btn.next {
    right: -24px;
}

.scroll-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}

/* ============================================
   Detail Page
   ============================================ */

.detail-hero {
    position: relative;
    min-height: 60vh;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

.detail-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.4) 0%,
        rgba(10, 10, 15, 0.8) 60%,
        #0a0a0f 100%
    );
}

.detail-content {
    position: relative;
    z-index: 1;
    padding: calc(4rem + 1rem) 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.detail-poster {
    position: relative;
    top: calc(4rem + 2rem);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.6);
}

.detail-poster-placeholder {
    aspect-ratio: 2/3;
    background: #1a1a24;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

/* Play button on detail page poster */
.detail-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    transition: all 150ms ease;
    z-index: 5;
    padding: 0;
}

.detail-play-btn svg {
    width: 26px;
    height: 26px;
    margin-left: 3px;
}

.detail-play-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: #3b82f6;
    border-color: #3b82f6;
}

.detail-main {
    padding-top: 2rem;
    min-width: 0;
}

.detail-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.detail-title-year {
    color: #a1a1aa;
    font-weight: 400;
}

.detail-tagline {
    font-style: italic;
    color: #a1a1aa;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #a1a1aa;
}

.detail-meta-separator {
    width: 4px;
    height: 4px;
    background: #52525b;
    border-radius: 9999px;
}

.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.genre-tag {
    padding: 0.25rem 1rem;
    background: #1a1a24;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 150ms ease;
}

.genre-tag:hover {
    background: #fbbf24;
    color: #0a0a0f;
}

.detail-scores {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #1a1a24;
    border-radius: 1rem;
}

.detail-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-score-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-score-icon svg {
    width: 24px;
    height: 24px;
}

.detail-score-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.detail-score-value.fresh {
    color: #22c55e;
}

.detail-score-value.stale {
    color: #ef4444;
}

.detail-score-label {
    font-size: 0.75rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.detail-score-hint {
    font-size: 0.65rem;
    color: #71717a;
    margin-top: 2px;
}

/* Admin Score Adjustment Controls (inline on detail pages) */
.admin-adjust {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 2px 4px;
}

.admin-adjust-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
}

.admin-adjust-btn:hover {
    background: #fbbf24;
    color: #0a0a0f;
    transform: scale(1.1);
}

.admin-adjust-btn:active {
    transform: scale(0.95);
}

.admin-adjust-value {
    min-width: 30px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: monospace;
    color: #a1a1aa;
}

.admin-adjust-value.positive {
    color: #22c55e;
}

.admin-adjust-value.negative {
    color: #ef4444;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-overview {
    margin-bottom: 1.5rem;
}

.detail-overview h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-overview p {
    color: #a1a1aa;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-info-item h4 {
    font-size: 0.75rem;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-info-item p {
    font-weight: 500;
}

.detail-info-item a {
    color: #fbbf24;
    transition: opacity 150ms ease;
}

.detail-info-item a:hover {
    opacity: 0.8;
}

@media (max-width: 900px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: calc(4rem + 0.5rem);
    }

    .detail-poster {
        position: relative;
        top: auto;
        max-width: 180px;
        margin: 0 auto;
    }

    .detail-main {
        padding-top: 0;
        overflow: hidden;
    }

    .detail-scores {
        flex-wrap: wrap;
        justify-content: center;
    }

    .detail-actions {
        width: 100%;
    }

    .detail-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Cast Section
   ============================================ */

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

.cast-card {
    background: #15151f;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 250ms ease;
    cursor: pointer;
}

.cast-card:hover {
    transform: translateY(-4px);
}

.cast-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #1a1a24;
}

/* Initials placeholder — used for people without photos */
.gold-initials {
    background: #1a1a24;
    color: #52525b;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.cast-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.cast-info {
    padding: 1rem;
}

.cast-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-character {
    font-size: 0.75rem;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Reviews Section
   ============================================ */

.reviews-grid {
    display: grid;
    gap: 1.5rem;
}

.review-card {
    background: #15151f;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: #1a1a24;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #a1a1aa;
    flex-shrink: 0;
}

.review-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.review-date {
    font-size: 0.8125rem;
    color: #a1a1aa;
}

.review-author {
    flex: 1;
}

.review-author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.review-author-outlet {
    font-size: 0.8125rem;
    color: #a1a1aa;
}

.review-score {
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.review-score.fresh {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.review-score.stale {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.review-text {
    color: #a1a1aa;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ============================================
   Person Page
   ============================================ */

.person-hero {
    padding: 3rem 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.person-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.person-photo {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.6);
}

.person-photo-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.person-info h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.person-known-for {
    color: #a1a1aa;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.person-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.person-stat {
    text-align: center;
}

.person-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fbbf24;
}

.person-stat-label {
    font-size: 0.75rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.starrank-stat {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.12), rgba(218, 165, 32, 0.04));
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 0.75rem;
}

.starrank-value {
    color: #fbbf24 !important;
    font-variant-numeric: tabular-nums;
}

.person-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.person-detail h4 {
    font-size: 0.75rem;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.person-bio {
    color: #a1a1aa;
    line-height: 1.8;
}

.filmography-section {
    margin-top: 1.5rem;
}

.filmography-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filmography-sort-toggle {
    display: flex;
    gap: 0.25rem;
    background: #1a1a24;
    border-radius: 9999px;
    padding: 3px;
}

.filmography-sort-toggle .sort-toggle-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.filmography-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filmography-filter label {
    font-weight: 500;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.filmography-type-toggle {
    display: flex;
    gap: 0.25rem;
    background: #1a1a24;
    border-radius: 9999px;
    padding: 3px;
}

.filmography-type-toggle .sort-toggle-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Filmography grid cards */
.filmography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.fg-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.fg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.fg-poster {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #1a1a24;
}

.fg-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fg-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a24 0%, #2a1f0e 50%, #1a1a24 100%);
    position: relative;
    overflow: hidden;
}

.fg-poster-placeholder::before {
    content: 'FRESH KERNELS';
    position: absolute;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #fbbf24;
    opacity: 0.25;
    top: 12px;
    text-align: center;
    width: 100%;
}

.fg-placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.fg-score {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.fg-score.fresh {
    background: rgba(76, 175, 80, 0.85);
    color: white;
}

.fg-score.stale {
    background: rgba(244, 67, 54, 0.85);
    color: white;
}

.fg-info {
    padding: 0.25rem 0;
}

.fg-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fg-meta {
    display: flex;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 2px;
}

.fg-role {
    font-style: italic;
    color: #71717a;
}

.fg-meta-highlight {
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fg-meta-revenue {
    color: #fbbf24;
}

.fg-meta-score.fresh {
    color: #22c55e;
}

.fg-meta-score.stale {
    color: #ef4444;
}

.fg-meta-year {
    color: #a1a1aa;
}

.filmography-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: #1a1a24;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    color: #a1a1aa;
    transition: all 150ms ease;
}

.filter-btn:hover {
    background: #1e1e2a;
    color: #ffffff;
}

.filter-btn.active {
    background: #fbbf24;
    color: #0a0a0f;
}

@media (max-width: 768px) {
    .person-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .person-photo,
    .person-photo-placeholder {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .person-stats {
        justify-content: center;
    }
    
    .person-details {
        text-align: left;
    }

    .filmography-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Browse Page
   ============================================ */

.browse-page {
    padding: 3rem 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.browse-header {
    margin-bottom: 2rem;
}

.browse-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.browse-subtitle {
    color: #a1a1aa;
}

.browse-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.browse-tabs::-webkit-scrollbar {
    display: none;
}

.browse-tab {
    padding: 0.5rem 1.5rem;
    background: #1a1a24;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: #a1a1aa;
    white-space: nowrap;
    transition: all 150ms ease;
}

.browse-tab:hover {
    background: #1e1e2a;
    color: #ffffff;
}

.browse-tab.active {
    background: #fbbf24;
    color: #0a0a0f;
}

@media (max-width: 480px) {
    .browse-tab {
        font-size: 0.8125rem;
        padding: 0.25rem 1rem;
    }
}

/* ============================================
   TV Guide Layout
   ============================================ */

.tv-guide-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tv-guide-subtabs {
    display: flex;
    gap: 0.5rem;
}

.tv-guide-subtab {
    padding: 0.25rem 1.5rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 150ms ease;
}

.tv-guide-subtab:hover {
    background: #1e1e2a;
    color: #ffffff;
}

.tv-guide-subtab.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.tv-guide-sort {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tv-guide-sort-label {
    font-size: 0.75rem;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-right: 2px;
}

.tv-guide-sort-btn {
    padding: 3px 10px;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.tv-guide-sort-btn:hover {
    background: #1e1e2a;
    color: #ffffff;
}

.tv-guide-sort-btn.active {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: #fbbf24;
}

/* Controls layout: two rows */
.tv-guide-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

/* Filter type pills */
.tv-guide-filter-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tv-guide-filter-btn {
    padding: 3px 10px;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.tv-guide-filter-btn:hover {
    background: #1e1e2a;
    color: #ffffff;
}

.tv-guide-filter-btn.active {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border-color: #60a5fa;
}

/* Channels dropdown button */
.tv-guide-channels-btn {
    padding: 3px 12px;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.tv-guide-channels-btn:hover {
    background: #1e1e2a;
    color: #ffffff;
}

.tv-guide-channels-btn.active {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border-color: #60a5fa;
}

/* Channel picker panel */
.tv-guide-channel-picker {
    background: #15151f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.tv-guide-channel-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tv-guide-channel-picker-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.tv-guide-channel-picker-actions {
    display: flex;
    gap: 0.5rem;
}

.tv-guide-channel-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tv-guide-channel-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tv-guide-channel-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 3px 0;
    font-size: 0.8rem;
    color: #a1a1aa;
    cursor: pointer;
    transition: color 150ms ease;
}

.tv-guide-channel-item:hover {
    color: #ffffff;
}

.tv-guide-channel-item input[type="checkbox"] {
    accent-color: #60a5fa;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.tv-guide-intl-toggle {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.tv-guide-intl-channels {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.tv-guide-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tv-guide-row {
    display: grid;
    grid-template-columns: 50px 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: #15151f;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all 150ms ease;
}

.tv-guide-row:hover {
    background: #1e1e2a;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.tv-guide-poster {
    width: 50px;
    height: 75px;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
}

.tv-guide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-guide-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a24;
    font-size: 1.5rem;
}

.tv-guide-info {
    min-width: 0;
}

.tv-guide-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tv-guide-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-guide-trending {
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    padding: 2px 6px;
    border-radius: 0.375rem;
    white-space: nowrap;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tv-guide-live {
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    padding: 2px 6px;
    border-radius: 0.375rem;
    white-space: nowrap;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tv-guide-row-live {
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.08), #15151f);
}

.tv-guide-row-live:hover {
    border-color: rgba(220, 38, 38, 0.5);
}

.tv-guide-day {
    color: #3b82f6;
    font-weight: 600;
}

.tv-guide-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
    margin-top: 2px;
}

.tv-guide-meta span + span::before {
    content: '·';
    margin-right: 0.5rem;
}

.tv-guide-network {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.tv-guide-network-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #60a5fa;
    text-align: center;
    white-space: nowrap;
}

.tv-guide-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    min-width: 70px;
    justify-content: center;
}

.tv-guide-score.fresh {
    color: #22c55e;
}

.tv-guide-score.stale {
    color: #ef4444;
}

.tv-guide-watchlist {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.tv-guide-watchlist:hover {
    background: #fbbf24;
    color: #0a0a0f;
    border-color: #fbbf24;
}

.tv-guide-watchlist.active {
    background: #fbbf24;
    color: #0a0a0f;
    border-color: #fbbf24;
}

.tv-guide-watchlist svg {
    width: 16px;
    height: 16px;
}

/* TV Guide - Tablet */
@media (max-width: 768px) {
    .tv-guide-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .tv-guide-controls-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tv-guide-channel-columns {
        grid-template-columns: 1fr;
    }

    .tv-guide-row {
        grid-template-columns: 40px 1fr auto auto;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .tv-guide-watchlist {
        display: none;
    }

    .tv-guide-poster {
        width: 40px;
        height: 60px;
    }

    .tv-guide-title {
        font-size: 0.875rem;
    }

    .tv-guide-title-row {
        gap: 6px;
        flex-wrap: wrap;
    }

    /* Keep both badges the same size */
    .tv-guide-trending,
    .tv-guide-live {
        font-size: 0.5rem;
        padding: 2px 5px;
    }

    .tv-guide-meta {
        font-size: 0.6875rem;
        gap: 2px;
        flex-wrap: wrap;
    }

    .tv-guide-meta span + span::before {
        margin-right: 2px;
    }

    .tv-guide-network {
        min-width: 80px;
    }

    .tv-guide-network-name {
        font-size: 0.75rem;
    }

    .tv-guide-score {
        font-size: 0.875rem;
        min-width: 55px;
    }
}

/* TV Guide - Mobile */
@media (max-width: 480px) {
    .tv-guide-row {
        grid-template-columns: 40px 1fr auto;
    }

    .tv-guide-score {
        display: none;
    }

    .tv-guide-title {
        font-size: 0.8125rem;
    }

    .tv-guide-network {
        min-width: unset;
    }

    .tv-guide-network-name {
        font-size: 0.6875rem;
    }

    .tv-guide-meta {
        font-size: 0.625rem;
    }

    .tv-guide-filter-type {
        flex-wrap: wrap;
    }

    .tv-guide-channel-picker {
        padding: 0.5rem;
    }

    .tv-guide-channel-picker-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Watchlist Page
   ============================================ */

.watchlist-empty {
    text-align: center;
    padding: 2rem;
}

.watchlist-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.watchlist-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.watchlist-empty p {
    color: #a1a1aa;
    margin-bottom: 2rem;
}

/* Watchlist Filters */
.watchlist-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.watchlist-filter-pills {
    display: flex;
    gap: 0.25rem;
}

.watchlist-filter-pill {
    padding: 0.25rem 1rem;
    background: #1a1a24;
    border: none;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.watchlist-filter-pill:hover {
    background: #1e1e2a;
    color: #ffffff;
}

.watchlist-filter-pill.active {
    background: #fbbf24;
    color: #0a0a0f;
}

.watchlist-genre-select {
    padding: 0.25rem 1rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: #a1a1aa;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.watchlist-genre-select:focus {
    outline: none;
    border-color: #fbbf24;
}

.watchlist-count {
    font-size: 0.8125rem;
    color: #71717a;
    margin-left: auto;
}

/* Detail Page Showtimes Button */
.detail-showtimes-btn {
    background: #fbbf24 !important;
    color: #0a0a0f !important;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-showtimes-btn:hover {
    filter: brightness(1.1);
}

/* ============================================
   Share Feature
   ============================================ */

.detail-share-btn {
    position: relative;
}

.share-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 150ms ease;
    z-index: 1000;
    padding: 0.25rem 0;
}

.share-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 150ms ease;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.share-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.share-option.twitter:hover svg { color: #1DA1F2; opacity: 1; }
.share-option.facebook:hover svg { color: #1877F2; opacity: 1; }
.share-option.reddit:hover svg { color: #FF4500; opacity: 1; }
.share-option.whatsapp:hover svg { color: #25D366; opacity: 1; }
.share-option.copy:hover svg { color: #fbbf24; opacity: 1; }

.share-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
}

@media (max-width: 480px) {
    .share-dropdown {
        left: auto;
        right: 0;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .watchlist-filters {
        gap: 0.5rem;
    }

    .watchlist-filter-pill {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .watchlist-genre-select {
        font-size: 0.75rem;
        flex: 1;
    }

    .watchlist-count {
        width: 100%;
        margin-left: 0;
    }
}

/* ============================================
   Loading States
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        #1a1a24 25%,
        #1e1e2a 50%,
        #1a1a24 75%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    border-radius: 1rem;
    overflow: hidden;
}

.skeleton-poster {
    aspect-ratio: 2/3;
}

.skeleton-text {
    height: 1rem;
    margin: 1rem;
}

.skeleton-text.short {
    width: 60%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #1a1a24;
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: #1e1e2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: toastIn 0.3s ease;
    max-width: 350px;
}

.toast.success {
    border-color: #22c55e;
}

.toast.error {
    border-color: #ef4444;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #12121a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0 2rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.footer-tagline {
    color: #a1a1aa;
    margin-top: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a1a1aa;
}

.footer-col a {
    display: block;
    color: #71717a;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
    transition: color 150ms ease;
}

.footer-col a:hover {
    color: #fbbf24;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #52525b;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #fbbf24;
}

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* ============================================
   Trailers Section
   ============================================ */

.trailers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.trailer-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a24;
}

.trailer-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease;
}

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

.trailer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: background 150ms ease;
}

.trailer-card:hover .trailer-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.trailer-play-btn {
    width: 64px;
    height: 64px;
    background: #fbbf24;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 150ms ease;
}

.trailer-card:hover .trailer-play-btn {
    transform: scale(1.1);
}

.trailer-play-btn svg {
    width: 28px;
    height: 28px;
    color: #0a0a0f;
    margin-left: 4px;
}

.trailer-title {
    font-weight: 600;
    text-align: center;
    padding: 0 1rem;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

.video-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #1a1a24;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 150ms ease;
}

.video-modal-close:hover {
    background: #ef4444;
}

.video-modal-close svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Streaming Providers
   ============================================ */

.providers-section {
    margin-bottom: 1.5rem;
}

.providers-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.provider-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1a1a24;
    border-radius: 0.75rem;
    transition: all 150ms ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 1px solid transparent;
}

.provider-badge:hover {
    background: #1e1e2a;
    transform: translateY(-2px);
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.provider-badge.clickable {
    padding-right: 1.5rem;
}

.provider-badge.clickable:hover .provider-arrow {
    transform: translateX(3px);
    color: #fbbf24;
}

.provider-arrow {
    font-size: 1rem;
    color: #71717a;
    transition: all 150ms ease;
    margin-left: auto;
}

.provider-logo {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    object-fit: cover;
}

.provider-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.provider-type {
    font-size: 0.75rem;
    color: #a1a1aa;
}

.providers-group {
    margin-bottom: 1.5rem;
}

.providers-group:last-child {
    margin-bottom: 0;
}

.providers-group h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* ============================================
   Page Transitions
   ============================================ */

.providers-disclaimer {
    font-size: 0.7rem;
    color: #71717a;
    margin-top: 1rem;
}

.page-enter {
    animation: pageEnter 0.4s ease;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: #fbbf24;
}

.text-fresh {
    color: #22c55e;
}

.text-stale {
    color: #ef4444;
}

/* ============================================
   Mobile Search (visible on mobile)
   ============================================ */

.mobile-search {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: #12121a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

@media (max-width: 768px) {
    .mobile-search {
        display: block;
    }
    
    .mobile-search .search-container {
        width: 100%;
    }
    
    /* Add extra padding to main to account for mobile search bar */
    .main {
        padding-top: calc(4rem + 60px);
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .nav,
    .footer,
    .toast-container,
    .video-modal {
        display: none !important;
    }
    
    .main {
        padding-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   Rankings Page
   ============================================ */

.rankings-page {
    max-width: 900px;
    margin: 0 auto;
}

.rankings-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #12121a;
    border-radius: 1rem;
}

.rankings-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rankings-nav .btn {
    font-size: 0.8125rem;
    padding: 8px 12px;
    white-space: nowrap;
}

.rankings-nav .btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0a0a0f;
}

.rankings-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rankings-filter label {
    font-weight: 500;
    color: #a1a1aa;
}

.genre-select {
    padding: 0.5rem 1rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

.genre-select:focus {
    outline: none;
    border-color: #fbbf24;
}

.rankings-sort-toggle {
    display: flex;
    gap: 0.25rem;
    background: #1a1a24;
    border-radius: 9999px;
    padding: 3px;
    align-self: center;
}

.sort-toggle-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.sort-toggle-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0a0a0f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sort-toggle-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.ranking-score.box-office {
    color: #fbbf24;
}

.ranking-score.starrank-score {
    color: #fbbf24;
    font-weight: 700;
}

.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: #15151f;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 150ms ease;
    border: 1px solid transparent;
}

.ranking-item:hover {
    background: #1e1e2a;
    border-color: #fbbf24;
    transform: translateX(4px);
}

.ranking-position {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 50px;
    text-align: center;
    color: #71717a;
}

.ranking-position.gold {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.ranking-position.silver {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.ranking-position.bronze {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.ranking-poster {
    width: 50px;
    height: 75px;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a24;
    font-size: 1.5rem;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.ranking-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #1a1a24;
}

.ranking-score.fresh {
    color: #22c55e;
}

.ranking-score.stale {
    color: #ef4444;
}

.ranking-profile {
    width: 50px;
    height: 50px;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a24;
    color: #52525b;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 9999px;
}

@media (max-width: 640px) {
    .rankings-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
    }

    .rankings-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .rankings-nav .btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .rankings-sort-toggle {
        align-self: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sort-toggle-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .rankings-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .genre-select {
        width: 100%;
    }

    .ranking-item {
        padding: 0.5rem 0.5rem;
        gap: 0.5rem;
    }

    .ranking-position {
        font-size: 1rem;
        min-width: 28px;
    }

    .ranking-poster {
        width: 36px;
        height: 54px;
    }

    .ranking-profile {
        width: 36px;
        height: 36px;
    }

    .ranking-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .ranking-title {
        font-size: 0.8125rem;
    }

    .ranking-meta {
        font-size: 0.6875rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .ranking-score {
        font-size: 0.75rem;
        padding: 3px 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Extra tight for very small phones */
@media (max-width: 400px) {
    .ranking-position {
        font-size: 0.875rem;
        min-width: 24px;
    }

    .ranking-poster {
        width: 32px;
        height: 48px;
    }

    .ranking-profile {
        width: 32px;
        height: 32px;
    }

    .ranking-title {
        font-size: 0.75rem;
    }

    .ranking-score {
        font-size: 0.6875rem;
        padding: 2px 5px;
    }

    .rankings-nav .btn {
        font-size: 0.6875rem;
        padding: 5px 8px;
    }
}


/* ============================================
   Woke Penalty Tag
   ============================================ */

.woke-penalty-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-left: 1rem;
    cursor: help;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    vertical-align: middle;
    position: relative;
}

.woke-penalty-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.woke-penalty-tag::after {
    content: 'Score adjusted -5% for heavy-handed messaging that detracts from the viewing experience.';
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a24;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: normal;
    width: 240px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Position it inline with scores */
.detail-scores {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}


.loading-spinner {
    text-align: center;
    padding: 1.5rem;
    color: #a1a1aa;
    font-size: 1.1rem;
}


.approval-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-left: 1rem;
    cursor: help;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    vertical-align: middle;
    position: relative;
}

.approval-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

.approval-tag::after {
    content: 'Fresh Kernels Seal of Approval — This title earned a +5% score bonus for exceptional quality recognized by our editorial team.';
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a24;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: normal;
    width: 260px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Show tooltips on hover for both tags */
.approval-tag:hover::after,
.woke-penalty-tag:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Emoji vertical alignment inside badges */
.badge-emoji {
    font-size: 1.1em;
    line-height: 1;
    vertical-align: text-top;
}

/* Trending badge — card poster overlay (top-right) */
.card-trending-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    padding: 3px 7px;
    border-radius: 0.375rem;
    z-index: 2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

/* FK Award Badge — card poster overlay (top-left) */
.card-fk-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.9rem;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
    z-index: 2;
    line-height: 1;
}

/* FK Award Badge — filmography card poster overlay */
.fg-fk-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.85rem;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
    z-index: 2;
    line-height: 1;
}

/* FK Award Badge — inline in rankings titles */
.ranking-fk-badge {
    font-size: 0.85rem;
    vertical-align: middle;
}

/* ============================================
   Award Badges (Netflix-style)
   ============================================ */

/* Card award badge — below title/genres */
.card-award-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fbbf24;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-top: -2px;
    margin-bottom: 2px;
}
.card-award-icon {
    font-size: 0.8rem;
}

/* Detail page award badge — Netflix-style banner */
.detail-award-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.12), rgba(184, 134, 11, 0.06));
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    letter-spacing: 0.03em;
}
.detail-award-icon {
    font-size: 1.1rem;
}

/* ============================================
   FK Editor Review Badges & Cards
   ============================================ */

/* Badge on movie/TV cards (below showtimes) */
.card-fk-review-badge {
    display: block;
    padding: 3px 8px;
    margin: 0 0.5rem 0.5rem;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(184, 134, 11, 0.1));
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #fbbf24;
    font-size: 0.675rem;
    font-weight: 600;
    font-style: italic;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s, border-color 0.2s;
}
/* Tighten spacing between showtimes and FK badge */
.card-meta:has(+ .card-fk-review-badge) {
    padding-bottom: 4px;
}
.card-fk-review-badge:hover {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.25), rgba(184, 134, 11, 0.2));
    border-color: #fbbf24;
}

/* Badge on detail page near scores */
.detail-fk-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(184, 134, 11, 0.1));
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}
.detail-fk-review-badge:hover {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.25), rgba(184, 134, 11, 0.2));
    transform: translateY(-1px);
}
.fk-review-icon {
    font-size: 1.2rem;
}
.fk-review-snippet {
    font-style: italic;
    font-weight: 600;
    color: #fbbf24;
    font-size: 0.95rem;
}
.fk-review-score {
    font-size: 1.1rem;
    font-weight: 800;
    color: #22c55e;
}
.fk-review-label {
    font-size: 0.75rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Featured FK review card on detail page reviews section */
.fk-review-featured {
    display: block;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.08), rgba(184, 134, 11, 0.04));
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: #ffffff;
    transition: border-color 0.2s, background 0.2s;
}
.fk-review-featured:hover {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.12), rgba(184, 134, 11, 0.08));
}
.fk-review-featured-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.fk-review-featured-badge {
    background: #fbbf24;
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
}
.fk-review-featured-score {
    font-size: 1.1rem;
    font-weight: 800;
    color: #22c55e;
}
.fk-review-featured-author {
    font-size: 0.85rem;
    color: #a1a1aa;
}
.fk-review-featured-quote {
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    color: #fbbf24;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}
.fk-review-featured-preview {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}
.fk-review-featured-cta {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Full review page */
.fk-review-page {
    position: relative;
    min-height: 100vh;
}
.fk-review-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background-size: cover;
    background-position: center top;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
    z-index: 0;
}
.fk-review-page > .container {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 4rem;
}
.fk-review-page-content {
    max-width: 720px;
    margin: 0 auto;
}
.fk-review-page-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.fk-review-poster {
    flex-shrink: 0;
}
.fk-review-poster img {
    width: 140px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.fk-review-page-badge {
    background: #fbbf24;
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.fk-review-page-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.fk-review-page-score-value {
    font-size: 2.4rem;
    font-weight: 900;
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1;
}
.fk-review-page-score-value.fresh {
    color: #22c55e;
}
.fk-review-page-score-value.stale {
    color: #ef4444;
}
.fk-review-page-score-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a1a1aa;
}
.fk-review-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.fk-review-page-title a {
    color: #ffffff;
    text-decoration: none;
}
.fk-review-page-title a:hover {
    color: #fbbf24;
}
.fk-review-year {
    font-weight: 400;
    color: #a1a1aa;
}
.fk-review-page-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.25rem;
}
.fk-review-page-author strong {
    color: #ffffff;
}
.fk-review-page-date {
    font-size: 0.85rem;
    color: #71717a;
}
.fk-review-page-pullquote {
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    color: #fbbf24;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0 0 2rem;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    line-height: 1.3;
}
.fk-review-page-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ffffff;
}
.fk-review-page-body p {
    margin: 0 0 1.5rem;
    text-indent: 0;
}
.fk-review-page-body p:first-child::first-letter {
    font-size: 3.2rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: #fbbf24;
}
.fk-review-page-footer {
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 600px) {
    .fk-review-page-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .fk-review-poster img {
        width: 120px;
    }
    .fk-review-page-title {
        font-size: 1.4rem;
    }
    .fk-review-page-pullquote {
        font-size: 1.5rem;
    }
    .fk-review-page-author {
        align-items: center;
    }
}

/* ============================================
   Additional Mobile Fixes
   ============================================ */

/* Detail page - prevent cutoff on small screens */
@media (max-width: 480px) {
    .detail-content {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: calc(4rem + 0.5rem);
        gap: 1rem;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-poster {
        max-width: 140px;
    }

    .detail-title {
        font-size: 1.5rem;
        word-break: break-word;
    }

    .detail-scores {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .detail-score-item {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        justify-content: flex-start;
    }

    .detail-score-icon {
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    .detail-score-value {
        font-size: 1.5rem;
    }

    .detail-score-label {
        margin-top: 0;
    }

    /* Stack the value and label */
    .detail-score-item > div:not(.detail-score-icon) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .detail-overview p {
        font-size: 0.9375rem;
    }

    .detail-meta {
        gap: 0.5rem;
        font-size: 0.8125rem;
    }
}

/* Ensure hero scores also don't overflow */
@media (max-width: 480px) {
    .hero-scores {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .score-badge.large {
        padding: 0.5rem 1rem;
    }
    
    .score-badge.large .score-icon {
        font-size: 1.25rem;
    }
    
    .score-badge.large .score-value {
        font-size: 1.25rem;
    }
}

/* ============================================
   AWARDS
   ============================================ */

/* Person Profile Awards */
.person-awards {
    margin-bottom: 2rem;
}

.awards-groups {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.awards-group {
    background: #15151f;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.awards-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.awards-count {
    font-weight: 400;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.award-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.award-item:last-child {
    border-bottom: none;
}

.award-year {
    color: #fbbf24;
    font-weight: 600;
    min-width: 40px;
}

.award-category {
    color: #ffffff;
    flex: 1;
}

.award-film {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s;
}

.award-film:hover {
    color: #fbbf24;
}

/* Movie/TV Detail Awards Badges */
.awards-section {
    margin-bottom: 2rem;
}

.awards-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.award-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #15151f;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s;
}

.award-badge:hover {
    border-color: #fbbf24;
}

.award-badge-icon {
    font-size: 1.2rem;
}

.award-badge-info {
    display: flex;
    flex-direction: column;
}

.award-badge-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.award-badge-detail {
    font-size: 0.75rem;
    color: #a1a1aa;
}

/* Awards Rankings */
.ranking-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ranking-photo-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1a1a24;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
    font-weight: 600;
    font-size: 0.8125rem;
}

.ranking-poster {
    width: 34px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.ranking-poster-placeholder {
    width: 34px;
    height: 50px;
    border-radius: 4px;
    background: #1a1a24;
    flex-shrink: 0;
}

.ranking-score.awards-total {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    color: #fbbf24;
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 4px 10px;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.rankings-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rankings-filter label {
    color: #a1a1aa;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Mobile awards */
@media (max-width: 768px) {
    .award-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .awards-badges {
        gap: 0.25rem;
    }

    .award-badge {
        padding: 0.25rem 0.5rem;
    }

    .award-badge-category {
        font-size: 0.75rem;
    }
}

/* ============================================
   Button Variants
   ============================================ */

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-link {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-link:hover {
    color: #fbbf24;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #1a1a24;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.btn-google:hover {
    background: #12121a;
    border-color: #52525b;
}

.btn-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    margin-top: 0.5rem;
}

.btn-apple:hover {
    background: #f0f0f0;
}

/* ============================================
   Nav Auth Controls
   ============================================ */

.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #ffffff;
    cursor: pointer;
    transition: all 150ms ease;
}

.user-dropdown-toggle:hover {
    background: #1a1a24;
    border-color: #52525b;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: transform 150ms ease;
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 150ms ease;
    z-index: 1000;
}

.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 150ms ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
}

.dropdown-logout {
    color: #ef4444;
}

/* Mobile nav auth */
.nav-mobile-auth {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.nav-mobile-divider {
    display: none;
}

.nav-mobile-logout {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

/* ============================================
   Auth / Login Page
   ============================================ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 0.875rem;
}

.auth-tabs {
    display: flex;
    gap: 0.25rem;
    background: #1a1a24;
    border-radius: 0.5rem;
    padding: 4px;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.625rem;
    text-align: center;
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 150ms ease;
}

.auth-tab.active {
    background: #0a0a0f;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
}

.form-group input {
    padding: 0.75rem 1rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.9375rem;
    transition: border-color 150ms ease;
}

.form-group input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.form-group input::placeholder {
    color: #71717a;
}

.form-input-disabled {
    padding: 0.75rem 1rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #71717a;
    font-size: 0.9375rem;
    cursor: not-allowed;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.9375rem;
}

.form-row input:focus {
    outline: none;
    border-color: #fbbf24;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #71717a;
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Settings Page
   ============================================ */

.settings-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
}

.settings-page .page-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

.settings-section {
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.settings-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.settings-danger {
    border-color: rgba(239, 68, 68, 0.2);
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-chip {
    padding: 0.5rem 1rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.platform-chip:hover {
    border-color: #52525b;
}

.platform-chip.selected {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    color: #fbbf24;
}

/* ============================================
   Provider Highlighting (user's subscribed platforms)
   ============================================ */

.provider-badge.provider-subscribed {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
    position: relative;
}

.provider-yours {
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   Admin Panel
   ============================================ */

.admin-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 4px;
    margin-bottom: 2rem;
}

.admin-tab {
    padding: 0.625rem 1.25rem;
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.admin-tab:hover {
    color: #ffffff;
}

.admin-tab.active {
    background: #0a0a0f;
    color: #fbbf24;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.admin-content {
    min-height: 300px;
}

.admin-section {
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

.admin-section-header {
    margin-bottom: 2rem;
}

.admin-section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-error {
    text-align: center;
    padding: 1.5rem;
    color: #ef4444;
}

/* Admin Table */
.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    object-fit: cover;
}

.admin-user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.admin-role-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.admin-role-badge.admin-role {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* Admin Config Lists */
.admin-list-section {
    margin-bottom: 2rem;
}

.admin-list-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.admin-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-chip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.8125rem;
}

.admin-chip-title {
    color: #ffffff;
    text-decoration: none;
}

.admin-chip-title:hover {
    color: #fbbf24;
}

.admin-chip-year {
    color: #71717a;
    font-size: 0.75rem;
}

.admin-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 0.75rem;
    border-radius: 9999px;
    transition: all 150ms ease;
}

.admin-chip-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Admin Search */
.admin-add-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-add-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.admin-search-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-select {
    padding: 0.5rem 0.75rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
}

.admin-search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
}

.admin-search-input:focus {
    outline: none;
    border-color: #fbbf24;
}

.admin-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #1a1a24;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.admin-search-result .text-tertiary {
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Score Override Inputs */
.admin-override-inputs {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.admin-score-input {
    width: 70px;
    padding: 0.375rem 0.5rem;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.875rem;
    text-align: center;
}

.admin-reason-input {
    width: 160px;
    padding: 0.375rem 0.5rem;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.875rem;
}

.admin-score-input:focus,
.admin-reason-input:focus {
    outline: none;
    border-color: #fbbf24;
}

/* Admin Tools */
.admin-tool-card {
    padding: 1.5rem;
    background: #1a1a24;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.admin-tool-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-tool-card p {
    margin-bottom: 1rem;
}

/* ============================================
   Auth & Admin Responsive
   ============================================ */

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
    }

    .user-name {
        display: none;
    }

    .user-dropdown-toggle {
        padding: 0.25rem;
        border-radius: 9999px;
    }

    .dropdown-arrow {
        display: none;
    }

    .admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .admin-search-row {
        flex-direction: column;
    }

    .admin-override-inputs {
        flex-wrap: wrap;
    }

    .admin-reason-input {
        width: 100%;
    }

    .settings-page {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    .admin-page {
        padding: 1.5rem 1rem;
    }

    .admin-section {
        padding: 1rem;
    }

    .admin-chip {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================
   Kernels — AI Film & TV Platform
   ============================================ */

/* Kernel badge on cards */
.card-kernel-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

/* Kernel badge on detail page poster */
.kernel-badge-detail {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Kernel type badge in meta */
.kernel-type-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 0.375rem;
    font-weight: 600;
}

/* Vote buttons */
.kernel-vote-buttons {
    display: flex;
    gap: 0.25rem;
}

.kernel-vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 150ms ease;
    font-weight: 600;
}

.kernel-vote-btn svg {
    width: 18px;
    height: 18px;
}

.kernel-vote-btn.up:hover,
.kernel-vote-btn.up.active {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

.kernel-vote-btn.up.active svg {
    fill: #4CAF50;
}

.kernel-vote-btn.down:hover,
.kernel-vote-btn.down.active {
    background: rgba(244, 67, 54, 0.2);
    border-color: #F44336;
    color: #F44336;
}

.kernel-vote-btn.down.active svg {
    fill: #F44336;
}

.vote-count {
    font-size: 0.9rem;
}

/* AI tool badges */
.kernel-ai-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px 4px 2px 0;
}
.kernel-ai-badge--traditional {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* AI Usage Toggle */
.ai-toggle-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.ai-toggle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.2s;
    flex: 1;
    min-width: 180px;
}
.ai-toggle-option:hover {
    border-color: #3b82f6;
}
.ai-toggle-option:has(input:checked) {
    border-color: #3b82f6;
    background: rgba(255, 107, 53, 0.1);
}
.ai-toggle-option input[type="radio"] {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    margin: 0;
}
.ai-toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Video player */
.kernel-player-section {
    margin-top: 1.5rem;
}

.kernel-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.kernel-player iframe,
.kernel-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.kernel-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    font-size: 1.2rem;
}

/* Episode list (Netflix-style) */
.kernel-episodes-section {
    margin-top: 1.5rem;
}

.kernel-season-selector {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.kernel-season-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    cursor: pointer;
    transition: all 150ms ease;
    font-weight: 500;
}

.kernel-season-btn.active,
.kernel-season-btn:hover {
    background: #fbbf24;
    color: #000;
    border-color: #fbbf24;
    font-weight: 700;
}

.kernel-episode-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kernel-episode {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 150ms ease;
}

.kernel-episode:hover {
    background: #1a1a24;
}

.kernel-episode.active {
    background: rgba(212, 160, 23, 0.15);
    border-left: 3px solid #fbbf24;
}

.kernel-episode-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a1a1aa;
    min-width: 32px;
    text-align: center;
}

.kernel-episode-info {
    flex: 1;
}

.kernel-episode-title {
    font-weight: 600;
    color: #ffffff;
}

.kernel-episode-meta {
    font-size: 0.8rem;
    color: #a1a1aa;
}

.kernel-episode-play {
    width: 20px;
    height: 20px;
    color: #a1a1aa;
    opacity: 0;
    transition: opacity 150ms ease;
}

.kernel-episode:hover .kernel-episode-play {
    opacity: 1;
}

/* Create form */
.kernel-type-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.kernel-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
    text-align: center;
}

.kernel-type-btn.active,
.kernel-type-btn:hover {
    border-color: #fbbf24;
    background: rgba(212, 160, 23, 0.1);
    color: #fbbf24;
}

.kernel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kernel-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 150ms ease;
}

.kernel-chip.active,
.kernel-chip:hover {
    background: #fbbf24;
    color: #000;
    border-color: #fbbf24;
    font-weight: 600;
}

.kernel-cast-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.kernel-cast-row .auth-input {
    flex: 1;
}

.kernel-crew-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.kernel-crew-row .auth-input {
    flex: 1;
}

.form-hint {
    font-weight: 400;
    font-size: 0.75rem;
    color: #52525b;
}

/* Styled file upload buttons */
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.file-upload-btn input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 1.2rem;
    background: #1a1a24;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 150ms ease;
    cursor: pointer;
}

.file-upload-btn:hover .file-upload-label {
    border-color: #fbbf24;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.file-upload-btn.has-file .file-upload-label {
    border-style: solid;
    border-color: #fbbf24;
    color: #fbbf24;
}

.file-upload-icon {
    font-size: 1rem;
}

.file-upload-name {
    display: none;
    font-size: 0.8rem;
    color: #52525b;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Compact variant for episode rows */
.file-upload-compact .file-upload-label {
    padding: 0.4rem 0.8rem;
    font-size: 0.8125rem;
}

.file-upload-compact .file-upload-name {
    max-width: 120px;
    font-size: 0.75rem;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.upload-progress-track {
    flex: 1;
    height: 6px;
    background: #1a1a24;
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: #fbbf24;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress-text {
    font-size: 0.75rem;
    color: #52525b;
    min-width: 36px;
}

.upload-status {
    font-size: 0.8125rem;
    color: #52525b;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.upload-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Frame picker */
.frame-picker {
    margin-top: 0.25rem;
}

.frame-preview {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #000;
    border-radius: 0.5rem;
    display: block;
}

.frame-slider-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.frame-slider-row input[type="range"] {
    flex: 1;
    accent-color: #fbbf24;
    cursor: pointer;
}

.frame-time {
    font-size: 0.75rem;
    color: #52525b;
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.frame-picker-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #ffffff;
}

.toggle-label input[type="checkbox"] {
    accent-color: #fbbf24;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.kernel-episode-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
    align-items: center;
}

.kernel-episode-row .auth-input {
    flex: 1;
}

.kernel-season-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.kernel-season-block h4 {
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.kernel-submit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #ffffff;
}

/* Browse page toolbar */
.kernel-browse-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.kernel-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Embed page */
.embed-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000;
}

.embed-player {
    flex: 1;
    position: relative;
}

.embed-player iframe,
.embed-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.embed-no-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.embed-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: #0a0a0f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.embed-score {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.embed-score.fresh {
    color: #22c55e;
}

.embed-score.stale {
    color: #ef4444;
}

.embed-title {
    flex: 1;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.embed-cta {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.embed-cta:hover {
    text-decoration: underline;
}

/* Embed code modal */
.embed-modal-content {
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 550px;
    width: 90%;
}

.embed-modal-content h3 {
    margin-bottom: 0.5rem;
}

.embed-code-textarea {
    width: 100%;
    height: 80px;
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    resize: none;
    margin: 1rem 0;
}

.embed-modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Admin list items */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    gap: 1rem;
}

.admin-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.admin-list-info strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-list-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* =============================================
   My Videos Dashboard
   ============================================= */

.my-videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Creator rank card */
.creator-rank {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.creator-rank-badge {
    font-size: 2rem;
    line-height: 1;
}

.creator-rank-tier {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
}

.creator-rank-detail {
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-top: 2px;
}

/* Tier colors */
.creator-rank.tier-legendary .creator-rank-tier { color: #ffd700; }
.creator-rank.tier-legendary { border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.05); }

.creator-rank.tier-elite .creator-rank-tier { color: #e0c3fc; }
.creator-rank.tier-elite { border-color: rgba(224, 195, 252, 0.3); background: rgba(224, 195, 252, 0.05); }

.creator-rank.tier-gold .creator-rank-tier { color: #fbbf24; }
.creator-rank.tier-gold { border-color: rgba(255, 215, 0, 0.2); }

.creator-rank.tier-silver .creator-rank-tier { color: #c0c0c0; }
.creator-rank.tier-silver { border-color: rgba(192, 192, 192, 0.2); }

.creator-rank.tier-bronze .creator-rank-tier { color: #cd7f32; }
.creator-rank.tier-bronze { border-color: rgba(205, 127, 50, 0.2); }

.creator-rank.tier-rising .creator-rank-tier { color: #ffffff; }

.my-videos-header h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
}

.my-videos-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.my-videos-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: center;
}

.my-videos-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
    margin-bottom: 4px;
}

.my-videos-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a1a1aa;
}

.my-videos-filters {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.my-videos-filters .kernel-chip {
    cursor: pointer;
}

.my-videos-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.my-videos-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.my-videos-item:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(255, 255, 255, 0.03);
}

.my-videos-poster {
    flex-shrink: 0;
    width: 60px;
    border-radius: 0.375rem;
    overflow: hidden;
}

.my-videos-poster img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 0.375rem;
    display: block;
}

.my-videos-poster-placeholder {
    width: 60px;
    height: 90px;
    background: #0a0a0f;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.my-videos-info {
    flex: 1;
    min-width: 0;
}

.my-videos-title {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.my-videos-title:hover {
    color: #fbbf24;
}

.my-videos-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #a1a1aa;
    flex-wrap: wrap;
}

.my-videos-type {
    background: #0a0a0f;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.my-videos-date {
    color: #52525b;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-published {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.status-draft {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

.status-rejected {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.my-videos-metrics {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.my-videos-metric {
    text-align: center;
    font-size: 0.8rem;
}

.my-videos-metric strong {
    display: block;
    font-size: 1rem;
    color: #ffffff;
}

.my-videos-metric span {
    color: #a1a1aa;
    font-size: 0.7rem;
}

.my-videos-score {
    font-weight: 800 !important;
    font-size: 1.1rem !important;
}

.my-videos-score.fresh {
    color: #fbbf24 !important;
}

.my-videos-score.stale {
    color: #f44336 !important;
}

.my-videos-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Danger button */
.btn-danger {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    background: rgba(244, 67, 54, 0.25);
    border-color: #f44336;
}

/* Promoted badge */
.status-promoted {
    background: rgba(255, 215, 0, 0.15);
    color: #fbbf24;
}

/* =============================================
   Promotion Tracker & Banner
   ============================================= */

.promotion-tracker {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.promotion-tracker.promoted {
    border-color: #fbbf24;
    background: rgba(255, 215, 0, 0.05);
}

.promotion-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.promotion-tracker.promoted .promotion-title {
    color: #fbbf24;
}

.promotion-requirements {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0.25rem;
}

.promotion-req {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #a1a1aa;
}

.promotion-req.met {
    color: #ffffff;
}

.promotion-req-icon {
    font-size: 0.85rem;
    width: 1.2em;
    text-align: center;
}

.promotion-note {
    font-size: 0.75rem;
    color: #52525b;
    font-style: italic;
}

.promotion-tracker.promoted .promotion-note {
    color: #fbbf24;
    font-style: normal;
}

/* Promotion banner (kernels browse) */
.promotion-banner {
    margin-bottom: 1.5rem;
}

.promotion-banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
}

.promotion-banner-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.promotion-banner-text {
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.promotion-banner-text strong {
    color: #fbbf24;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

/* Ranking promoted badge */
.ranking-promoted-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: #fbbf24;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
    margin-left: 4px;
}

/* Promotion tip (create page) */
.promotion-tip {
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-bottom: 1.5rem;
}

.promotion-tip strong {
    color: #fbbf24;
}

/* My Videos responsive */
@media (max-width: 768px) {
    .my-videos-stats {
        flex-wrap: wrap;
    }

    .my-videos-stat {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }

    .my-videos-item {
        flex-wrap: wrap;
    }

    .my-videos-metrics {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        padding-top: 0.25rem;
    }

    .my-videos-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .my-videos-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-videos-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-videos-poster {
        align-self: center;
    }

    .my-videos-info {
        width: 100%;
    }

    .my-videos-metrics {
        flex-wrap: wrap;
    }
}

/* Responsive: Kernel-specific */
@media (max-width: 768px) {
    .kernel-browse-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .kernel-filters {
        flex-direction: column;
    }

    .kernel-vote-buttons {
        width: 100%;
    }

    .kernel-vote-btn {
        flex: 1;
        justify-content: center;
    }

    .kernel-cast-row,
    .kernel-crew-row {
        flex-direction: column;
    }

    .kernel-episode-row {
        flex-direction: column;
    }

    .kernel-episode-row .auth-input[style] {
        width: 100% !important;
    }

    .file-upload-btn {
        width: 100%;
    }

    .file-upload-label {
        width: 100%;
        justify-content: center;
    }

    .admin-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-list-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .kernel-type-selector {
        flex-direction: column;
    }

    .kernel-submit-actions {
        flex-direction: column;
    }

    .embed-bar {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* ============================================
   Trailer Modal
   ============================================ */
.trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trailer-modal.active {
    opacity: 1;
}

.trailer-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.trailer-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    z-index: 1;
}

.trailer-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
    padding: 0;
}

.trailer-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.trailer-modal-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.trailer-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .trailer-modal-content {
        width: 95%;
    }

    .trailer-modal-close {
        top: -40px;
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

/* ============================================
   Oscars Live Page
   ============================================ */

/* Nav link glow */
.oscars-nav-link {
    color: #ffd700 !important;
    font-weight: 600 !important;
}

/* Hero */
.oscars-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    border-bottom: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.oscars-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.oscars-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.oscars-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd700;
    margin: 0.75rem 0 0.5rem;
    letter-spacing: -0.02em;
}

.oscars-subtitle {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Status badge */
.oscars-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oscars-status-live {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.oscars-status-complete {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.oscars-status-upcoming {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.oscars-live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: oscars-pulse 1.5s ease-in-out infinite;
}

@keyframes oscars-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Progress bar */
.oscars-progress {
    margin: 0 auto 1rem;
    max-width: 400px;
}

.oscars-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.oscars-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.oscars-progress-text {
    font-size: 0.85rem;
    color: #a1a1aa;
}

.oscars-updated {
    font-size: 0.8rem;
    color: #71717a;
    margin-top: 0.5rem;
}

/* Container */
.oscars-container {
    padding: 2rem 0 4rem;
}

/* Section */
.oscars-section {
    margin-bottom: 3rem;
}

.oscars-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

/* Category cards grid */
.oscars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

/* Category card */
.oscars-category {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease;
}

.oscars-category:hover {
    border-color: rgba(255, 215, 0, 0.3);
}

.oscars-category-announced {
    border-color: rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, #1a1a2e, rgba(255, 215, 0, 0.03));
}

.oscars-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.oscars-category-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.oscars-announced-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    letter-spacing: 0.05em;
}

.oscars-pending-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
    letter-spacing: 0.05em;
}

/* Nominees */
.oscars-nominees-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oscars-nominee {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.oscars-nominee:hover {
    background: rgba(255, 255, 255, 0.04);
}

.oscars-nominee-icon {
    font-size: 0.85rem;
    line-height: 1.5;
    flex-shrink: 0;
    color: #71717a;
}

.oscars-winner .oscars-nominee-icon {
    font-size: 1.1rem;
}

.oscars-nominee-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.oscars-nominee-name {
    font-size: 0.9rem;
    color: #ffffff;
}

.oscars-winner .oscars-nominee-name {
    color: #ffd700;
    font-weight: 700;
}

.oscars-nominee-film {
    font-size: 0.8rem;
    color: #a1a1aa;
    font-style: italic;
}

.oscars-nominee-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.oscars-nominee-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.oscars-winner .oscars-nominee-link {
    color: #ffd700;
}

.oscars-winner .oscars-nominee-link:hover {
    color: #ffe44d;
}

.oscars-film-link {
    font-size: 0.8rem;
    color: #a1a1aa;
    font-style: italic;
    text-decoration: none;
    transition: color 0.15s ease;
}

.oscars-film-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.oscars-nominee-note {
    font-size: 0.75rem;
    color: #71717a;
}

.oscars-winner {
    background: rgba(255, 215, 0, 0.06);
    border-radius: 8px;
}

/* Burnt Kernel Award */
.burnt-kernel-award {
    background: linear-gradient(135deg, #1a0a0a 0%, #2a1515 50%, #1a0a0a 100%);
    border: 2px solid rgba(180, 60, 60, 0.4);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.burnt-kernel-award::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(180, 60, 60, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.burnt-kernel-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.burnt-kernel-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #c44;
    margin: 0 0 0.25rem;
}

.burnt-kernel-subtitle {
    font-size: 0.85rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.burnt-kernel-recipient {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.burnt-kernel-film {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    font-style: italic;
}

.burnt-kernel-category {
    font-size: 0.8rem;
    color: #c44;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    background: rgba(204, 68, 68, 0.12);
}

.burnt-kernel-blurb {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    position: relative;
}

/* Leaders section */
.oscars-leaders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.oscars-leader {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.oscars-leader-count {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.oscars-leader-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.oscars-leader-note {
    font-size: 0.8rem;
    color: #a1a1aa;
}

/* Homepage Oscar hero (top of page, above feature) */
.oscars-home-hero {
    padding: 1.5rem 1.5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .oscars-home-hero {
        padding: 0.75rem 1rem 0.75rem;
        margin-top: 1rem;
    }
}

/* Homepage Oscar banner */
.oscars-home-banner {
    display: block;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.oscars-home-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.oscars-home-banner:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
}

.oscars-home-banner-content {
    position: relative;
}

.oscars-home-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    margin: 0.5rem 0 0.25rem;
}

.oscars-home-banner p {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.oscars-home-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.oscars-home-winners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.oscars-home-winner {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.oscars-home-winner-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717a;
    font-weight: 600;
}

.oscars-home-winner-name {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.oscars-home-cta {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .oscars-title {
        font-size: 1.75rem;
    }

    .oscars-grid {
        grid-template-columns: 1fr;
    }

    .oscars-leaders {
        grid-template-columns: repeat(2, 1fr);
    }

    .oscars-home-banner {
        padding: 1.25rem;
    }

    .oscars-home-banner h2 {
        font-size: 1.2rem;
    }

    .oscars-home-winners {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .oscars-leaders {
        grid-template-columns: repeat(2, 1fr);
    }

    .oscars-hero {
        padding: 2rem 1rem 2rem;
    }

    .oscars-home-winners {
        grid-template-columns: 1fr;
    }
}

/* === TV Spacing Overrides === */
.cards-grid { gap: 2rem !important; }
.scroll-wrapper { gap: 1.5rem !important; padding: 0.75rem 0 !important; }
.btn { padding: 1rem 2rem !important; font-size: 1rem !important; }
.btn-sm { padding: 0.75rem 1.25rem !important; }
.section { margin-bottom: 3rem !important; }
.section-header { margin-bottom: 1.5rem !important; }
.card-info { padding: 0.875rem !important; }
.card-meta { gap: 0.75rem !important; }
.nav-link { padding: 0 1rem !important; }
.browse-nav { gap: 0.75rem !important; }
.browse-nav .btn { padding: 0.75rem 1.25rem !important; }
.sort-toggle-btn { padding: 0.625rem 1rem !important; }
.rankings-nav { gap: 0.75rem !important; }
.rankings-nav .btn { padding: 0.625rem 1rem !important; }
.detail-scores { gap: 1.5rem !important; }
.footer-links { gap: 2.5rem !important; }
