/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #020813; /* Deep dark blue theme */
    --bg-transparent: rgba(2, 8, 19, 0.85);
    --bg-transparent-bottom: rgba(2, 8, 19, 0);
    --text: #ffffff;
    --accent: #ffcc00; /* Blockbuster Yellow */
    --accent-gradient: linear-gradient(135deg, #ffcc00 0%, #ffaa00 100%);
    --gray: #a3b1c6;
    --dark-gray: #001845; /* Blockbuster Blue for cards */
    
    /* Theme specific variables */
    --panel-bg: #001233;
    --border-color: #002855;
    --hover-bg: #001845;
    --search-focus-bg: rgba(0, 24, 69, 0.8);
    --btn-text-hover: #001845;
    --guess-bg: rgba(0, 24, 69, 0.5);
    --guess-bg-hover: rgba(0, 24, 69, 0.8);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Custom Style Variables */
    --font-header: var(--font);
    --font-body: var(--font);
    --logo-glow: var(--accent);

    /* Video FX Variables */
    --fx-brightness: 1;
    --fx-contrast: 1;
    --fx-blur: 0px;
    --fx-grayscale: 0;
    --fx-sepia: 0;
    --fx-saturate: 1;
    --fx-hue: 0deg;
    --fx-vignette: 0;
    --fx-scanlines: 0;
    --fx-svg-filter: blur(0px);
    
    /* Advanced FX Variables */
    --fx-high: 0;
    --fx-mid: 0;
    --fx-low: 0;
    --fx-godrays: 0;
    --fx-bokeh: 0;
    --fx-vhs-noise: 0;
    --fx-vhs-tracking: 0s;
    --fx-ssao-shadow: none;
}

/* Base Theme Overrides */
body[data-theme="bandito"] {
    --bg: #0a0a0a; --bg-transparent: rgba(10, 10, 10, 0.85); --bg-transparent-bottom: rgba(10, 10, 10, 0);
    --dark-gray: #151515; --panel-bg: #111111; --border-color: #333333; --hover-bg: #222222;
    --search-focus-bg: rgba(34, 34, 34, 0.8); --btn-text-hover: #000000;
    --guess-bg: rgba(34, 34, 34, 0.5); --guess-bg-hover: rgba(34, 34, 34, 0.8);
    --accent-gradient: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%);
}
body[data-theme="hollywood"] {
    --bg: #0a0014; --bg-transparent: rgba(10, 0, 20, 0.85); --bg-transparent-bottom: rgba(10, 0, 20, 0);
    --dark-gray: #1a0029; --panel-bg: #11001c; --border-color: #330055; --hover-bg: #260040;
    --search-focus-bg: rgba(38, 0, 64, 0.8); --btn-text-hover: #000000;
    --guess-bg: rgba(38, 0, 64, 0.5); --guess-bg-hover: rgba(38, 0, 64, 0.8);
    --accent: #ffcc00; --accent-gradient: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%);
}
body[data-theme="jumbo"] {
    --bg: #050505; --bg-transparent: rgba(5, 5, 5, 0.85); --bg-transparent-bottom: rgba(5, 5, 5, 0);
    --dark-gray: #151515; --panel-bg: #0a0a0a; --border-color: #333333; --hover-bg: #222222;
    --search-focus-bg: rgba(34, 34, 34, 0.8); --btn-text-hover: #ffffff;
    --guess-bg: rgba(34, 34, 34, 0.5); --guess-bg-hover: rgba(34, 34, 34, 0.8);
    --accent: #e50914; --accent-gradient: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

/* --- DEEP LAYOUT STYLIZATIONS --- */
/* These override the theme colors to match the namesake site when selected */

/* DISNEY+ (Hub-Centric, Poster Cards, Contained Billboard) */
body[data-layout="disney"] {
    --bg: #1a1d29; --bg-transparent: rgba(26, 29, 41, 0.85); --bg-transparent-bottom: rgba(26, 29, 41, 0);
    --dark-gray: #31343e; --panel-bg: #1a1d29; --border-color: #40424a; --hover-bg: #40424a;
    --search-focus-bg: rgba(64, 66, 74, 0.8); --btn-text-hover: #1a1d29;
    --accent: #f9f9f9; --accent-gradient: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
}
body[data-layout="disney"] .hero-carousel-wrapper {
    height: 60vh; width: 94vw; margin: 90px auto 0 auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
body[data-layout="disney"] .hero { padding: 3rem 4rem; }
body[data-layout="disney"] .main-layout { margin-top: 2rem; }
body[data-layout="disney"] .case, body[data-layout="disney"] .skeleton-card {
    width: 200px; aspect-ratio: 2 / 3; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
body[data-layout="disney"] .case:hover { outline: 3px solid white; transform: scale(1.05); }

/* NETFLIX (Immersive, Full Screen Billboard) */
body[data-layout="netflix"] {
    --bg: #141414; --bg-transparent: rgba(20, 20, 20, 0.85); --bg-transparent-bottom: rgba(20, 20, 20, 0);
    --dark-gray: #2f2f2f; --panel-bg: #141414; --border-color: #404040; --hover-bg: #404040;
    --search-focus-bg: rgba(64, 64, 64, 0.8); --btn-text-hover: #ffffff;
    --accent: #e50914; --accent-gradient: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}
body[data-layout="netflix"] .hero-carousel-wrapper { height: 95vh; }
body[data-layout="netflix"] .main-layout { margin-top: -8rem; }
body[data-layout="netflix"] .case, body[data-layout="netflix"] .skeleton-card {
    width: 280px; aspect-ratio: 16 / 9; border-radius: 4px;
}
body[data-layout="netflix"] .case:hover { transform: scale(1.15); z-index: 20; outline: none; box-shadow: 0 14px 28px rgba(0,0,0,0.8); }

/* PRIME VIDEO (Marketplace, Shorter Billboard) */
body[data-layout="prime"] {
    --bg: #0f172a; --bg-transparent: rgba(15, 23, 42, 0.85); --bg-transparent-bottom: rgba(15, 23, 42, 0);
    --dark-gray: #1e293b; --panel-bg: #0f172a; --border-color: #334155; --hover-bg: #334155;
    --search-focus-bg: rgba(51, 65, 85, 0.8); --btn-text-hover: #ffffff;
    --accent: #00a8e1; --accent-gradient: linear-gradient(135deg, #00a8e1 0%, #0082b3 100%);
}
body[data-layout="prime"] .hero-carousel-wrapper { height: 55vh; margin-top: 70px; }
body[data-layout="prime"] .main-layout { margin-top: 1rem; }
body[data-layout="prime"] .case, body[data-layout="prime"] .skeleton-card {
    width: 280px; aspect-ratio: 16 / 9; border-radius: 8px;
}
body[data-layout="prime"] .case:hover { outline: 2px solid var(--accent); transform: scale(1.05); }

/* HULU (Vertical Exploration) */
body[data-layout="hulu"] {
    --bg: #0b0c10; --bg-transparent: rgba(11, 12, 16, 0.85); --bg-transparent-bottom: rgba(11, 12, 16, 0);
    --dark-gray: #1f2326; --panel-bg: #0b0c10; --border-color: #2b3036; --hover-bg: #2b3036;
    --search-focus-bg: rgba(43, 48, 54, 0.8); --btn-text-hover: #0b0c10;
    --accent: #1ce783; --accent-gradient: linear-gradient(135deg, #1ce783 0%, #14a35d 100%);
}
body[data-layout="hulu"] .hero-carousel-wrapper { height: 75vh; }
body[data-layout="hulu"] .main-layout { margin-top: -5rem; }
body[data-layout="hulu"] .case, body[data-layout="hulu"] .skeleton-card {
    width: 200px; aspect-ratio: 9 / 16; border-radius: 8px; /* Taller cards */
}
body[data-layout="hulu"] .case:hover { outline: 3px solid var(--accent); transform: scale(1.05); }

/* TUBI (Rabbit Hole, Poster Cards, Short Billboard) */
body[data-layout="tubi"] {
    --bg: #1a1a1a; --bg-transparent: rgba(26, 26, 26, 0.85); --bg-transparent-bottom: rgba(26, 26, 26, 0);
    --dark-gray: #2a2a2a; --panel-bg: #1a1a1a; --border-color: #3a3a3a; --hover-bg: #3a3a3a;
    --search-focus-bg: rgba(58, 58, 58, 0.8); --btn-text-hover: #ffffff;
    --accent: #f26622; --accent-gradient: linear-gradient(135deg, #f26622 0%, #c94f15 100%);
}
body[data-layout="tubi"] .hero-carousel-wrapper { height: 50vh; margin-top: 70px; }
body[data-layout="tubi"] .main-layout { margin-top: 1rem; }
body[data-layout="tubi"] .case, body[data-layout="tubi"] .skeleton-card {
    width: 200px; aspect-ratio: 2 / 3; border-radius: 4px;
}
body[data-layout="tubi"] .case:hover { outline: 2px solid var(--accent); transform: scale(1.05); }

/* SHUDDER (Boutique) */
body[data-layout="shudder"] {
    --bg: #000000; --bg-transparent: rgba(0, 0, 0, 0.85); --bg-transparent-bottom: rgba(0, 0, 0, 0);
    --dark-gray: #1a0000; --panel-bg: #000000; --border-color: #330000; --hover-bg: #330000;
    --search-focus-bg: rgba(51, 0, 0, 0.8); --btn-text-hover: #ffffff;
    --accent: #df0000; --accent-gradient: linear-gradient(135deg, #df0000 0%, #990000 100%);
}
body[data-layout="shudder"] .hero-carousel-wrapper { height: 65vh; }
body[data-layout="shudder"] .main-layout { margin-top: -3rem; }
body[data-layout="shudder"] .case, body[data-layout="shudder"] .skeleton-card {
    width: 200px; aspect-ratio: 2 / 3; border-radius: 0px; border: 1px solid #330000;
}
body[data-layout="shudder"] .case:hover { outline: 2px solid var(--accent); transform: scale(1.05); }
/* ---------------------------------- */

* {
    box-sizing: border-box;
}

/* CRITICAL FIX: Ensure all form elements inherit the custom body font */
input, button, select, textarea {
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Apply Header Font */
h1, h2, h3, h4, .nav-link, .brand, .hero-title, .section-header h2, .case-title, .shelf-title, .fx-header, .clerk-header {
    font-family: var(--font-header);
}

#root-app {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    background: var(--bg);
    scroll-behavior: smooth;
}

/* --- Autohide Scrollbars --- */
::-webkit-scrollbar { 
    width: 8px; 
    height: 8px; 
}
::-webkit-scrollbar-track { 
    background: transparent; 
}
::-webkit-scrollbar-thumb { 
    background-color: transparent; 
    border-radius: 4px; 
    background-clip: padding-box;
    border: 2px solid transparent;
}

/* Show scrollbars when the container is actively scrolling or hovered */
*:hover::-webkit-scrollbar-thumb,
.is-scrolling::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
}

/* Active hover on the thumb itself */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray) !important;
}
/* --------------------------- */

/* Header & Navigation */
.header {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: linear-gradient(to bottom, var(--bg-transparent) 0%, var(--bg-transparent-bottom) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s, backdrop-filter 0.3s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: var(--bg-transparent);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    width: 100%;
}

.kids-mode-banner {
    width: 100%;
    background: #00c853;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-weight: 800;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-header);
}
body.kids-mode-active .kids-mode-banner {
    display: flex;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

/* Store sign at night pulsing background glow */
.brand::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, var(--logo-glow) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
    animation: signBgPulse 2s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes signBgPulse {
    0% { opacity: 0.05; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); }
}

.brand-icon-img {
    height: 64px; /* 2x Bigger Logo */
    width: auto;
    object-fit: contain;
    animation: neonPulse 2s infinite alternate ease-in-out;
    transition: transform 0.2s;
}

.brand-icon-img:hover {
    transform: scale(1.05);
}

@keyframes neonPulse {
    0% {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)) 
                drop-shadow(0 0 2px var(--logo-glow));
    }
    100% {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)) 
                drop-shadow(0 0 12px var(--logo-glow)) 
                drop-shadow(0 0 25px var(--logo-glow));
    }
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.15);
}

/* Theme Switcher */
.theme-select {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}
.theme-select:hover, .theme-select:focus {
    background: var(--search-focus-bg);
    border-color: var(--accent);
}
.theme-select option {
    background: var(--panel-bg);
    color: var(--text);
}

/* Custom Colors Button */
.color-picker-toggle-btn {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-body);
    transition: all 0.2s;
}
.color-picker-toggle-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
}

/* Custom Color Picker Styles */
.color-picker {
    -webkit-appearance: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}
.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}
.color-picker::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: border 0.3s, background 0.3s;
}

.search-container:focus-within {
    border-color: var(--accent);
    background: var(--search-focus-bg);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    width: 120px;
    transition: width 0.3s;
}

.search-input:focus { width: 200px; }
.search-input::placeholder { color: var(--gray); }

.search-results {
    position: absolute;
    top: 120%;
    right: 0;
    width: 350px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}
.search-results.hidden { display: none; }

.search-result-item {
    display: flex;
    padding: 0.8rem;
    gap: 1rem;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid var(--hover-bg);
    transition: background 0.2s;
}
.search-result-item:hover { background: var(--hover-bg); }
.search-result-item img { width: 50px; height: 75px; object-fit: cover; border-radius: 4px; background: var(--hover-bg); }
.search-result-info { display: flex; flex-direction: column; justify-content: center; }
.search-result-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.search-result-type { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; font-weight: 700; }

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.icon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
}

/* Network Hub Row */
.network-hub-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    padding: 1.5rem 3rem;
    margin-top: 80px; /* Clears the fixed header */
    position: relative;
    z-index: 20;
}
.network-hub-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.network-hub-track {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.network-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2 / 1;
    width: 160px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--dark-gray);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}
.network-btn:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--accent);
    background: var(--hover-bg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.network-btn svg {
    width: 50%;
    height: 50%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.network-btn:hover svg {
    transform: scale(1.1);
}

/* Hero Carousel Section */
.hero-carousel-wrapper {
    position: relative;
    width: 100vw;
    height: 80vh;
    overflow: hidden;
    background: var(--bg);
}

.hero-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero {
    position: relative;
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    padding: 4rem 3rem;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--bg);
}

.hero-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity 1s ease; /* Added smooth fade out */
}

/* Cinematic Video Trailer Styles */
.hero-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    
    /* Scale 1.5 pushes the YouTube UI (title bar, avatar) completely out of the visible bounds */
    transform: translate(-50%, -50%) scale(1.5); 
    
    pointer-events: none; /* Prevents user interaction from waking up the UI */
    opacity: 0;
    border: none;
    animation: fadeInVideo 1s ease forwards;
}

@keyframes fadeInVideo {
    to { opacity: 1; } /* Changed to 100% opacity to completely cover the picture */
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, var(--bg) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(2,8,19,0.4) 50%, transparent 100%),
                linear-gradient(to right, var(--bg) 0%, rgba(2,8,19,0.6) 40%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-meta .rating {
    border: 1px solid var(--gray);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary:hover { transform: scale(1.05); background: var(--accent); color: var(--btn-text-hover); }

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}
.hero-indicator {
    width: 35px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}
.hero-indicator.active {
    background: var(--accent);
    transform: scaleY(1.5);
}

/* Main Layout */
.main-layout {
    padding: 0 3rem 4rem 3rem;
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.content-area {
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.section-header h2 { margin: 0; font-size: 1.4rem; font-weight: 700; color: #fff; }

/* Shelves / Rows */
.shelf-wrap { 
    position: relative; 
    margin-bottom: 3.5rem; 
}
.shelf-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
.shelf { 
    display: flex; 
    gap: 16px; 
    overflow-x: auto; 
    padding: 1rem 0; 
    margin: -1rem 0;
    scrollbar-width: none; 
    scroll-behavior: smooth;
}
.shelf::-webkit-scrollbar { display: none; }

/* Scroll Buttons */
.shelf-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 8, 19, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.shelf-scroll-btn:hover {
    background: var(--accent);
    color: var(--btn-text-hover);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
.shelf-wrap:hover .shelf-scroll-btn { opacity: 1; }
.shelf-scroll-left { left: -25px; }
.shelf-scroll-right { right: -25px; }

/* Cards */
.case {
    width: 280px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-gray);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.case:hover { 
    transform: scale(1.08); 
    z-index: 10; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    outline: 2px solid var(--accent);
}

.case .img { 
    width: 100%; 
    height: 100%; 
    background: var(--dark-gray); 
    position: relative;
    overflow: hidden;
}
.case .img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #777; text-align: center; padding: 1rem; font-weight: 600;}

/* Hover Trailer Iframe */
.card-trailer {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    border: none;
    z-index: 2;
    pointer-events: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
}
.case:hover .case-info { opacity: 1; }
.case-title { font-weight: 700; font-size: 0.95rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

/* Remove Button for Continue Watching */
.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(2, 8, 19, 0.8);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: all 0.2s;
}
.case:hover .remove-btn { opacity: 1; }
.remove-btn:hover { 
    background: #e50914; 
    border-color: #e50914; 
    transform: scale(1.1); 
}

/* Sports Specific Styles */
.match-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    background: var(--dark-gray);
    padding: 1rem;
}
.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.match-team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.match-vs {
    font-weight: 900;
    color: var(--accent);
    font-style: italic;
    font-size: 1.2rem;
}
.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e50914;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 10;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.5);
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-top: 2rem;
}

/* Skeleton Loading */
.skeleton {
    background: var(--dark-gray);
    background: linear-gradient(110deg, var(--hover-bg) 8%, var(--border-color) 18%, var(--hover-bg) 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}
@keyframes shine {
    to { background-position-x: -200%; }
}
.skeleton-card {
    width: 280px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    flex-shrink: 0;
}
.skeleton-hero {
    width: 100%;
    height: 80vh;
}

/* Details Page */
.details-page { position: relative; margin-top: -5rem; }
.details-backdrop { position: absolute; top: 0; left: 0; right: 0; height: 70vh; background-size: cover; background-position: center; z-index: 0; opacity: 0.25; mask-image: linear-gradient(to bottom, black 50%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);}
.details-content { position: relative; z-index: 1; display: flex; gap: 4rem; padding-top: 15vh; margin-bottom: 4rem; flex-wrap: wrap; }
.details-poster-large { width: 320px; flex-shrink: 0; }
.details-poster-large img { width: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.1); }
.details-info-large { flex: 1; min-width: 300px; }
.details-info-large h1 { font-size: 4rem; margin: 0 0 1rem 0; font-weight: 900; letter-spacing: -1px; line-height: 1.1;}
.details-info-large .meta { display: flex; gap: 1.5rem; color: var(--gray); margin-bottom: 1.5rem; font-size: 1.1rem; font-weight: 500;}
.details-info-large .genres { display: flex; gap: 0.8rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.details-info-large .genres span { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.9rem; font-weight: 600; color: #fff;}
.details-info-large .overview { font-size: 1.2rem; line-height: 1.7; color: #ddd; max-width: 800px; }

/* Video Player & FX Integration */
.video-section { position: relative; z-index: 1; margin-bottom: 4rem; }
.video-wrapper { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background: #000; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8); 
    margin-bottom: 1.5rem; 
    border: 1px solid rgba(255,255,255,0.1);
}

/* Apply FX Variables to iframe */
.video-wrapper iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
    filter: brightness(var(--fx-brightness))
            contrast(var(--fx-contrast))
            blur(var(--fx-blur))
            grayscale(var(--fx-grayscale))
            sepia(var(--fx-sepia))
            saturate(var(--fx-saturate))
            hue-rotate(var(--fx-hue))
            var(--fx-svg-filter);
    transition: filter 0.3s ease;
}

/* Advanced FX Overlays */
.tone-overlay, .adv-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
/* True Color Grading Blend Modes */
.tone-high { background: #ffffff; mix-blend-mode: screen; opacity: var(--fx-high); z-index: 2; }
.tone-mid { background: #808080; mix-blend-mode: overlay; opacity: var(--fx-mid); z-index: 2; }
.tone-low { background: #000000; mix-blend-mode: multiply; opacity: var(--fx-low); z-index: 2; }

/* God Rays: Shafts of light shining through */
.adv-godrays {
    background: repeating-linear-gradient(
        15deg,
        rgba(255, 255, 220, calc(var(--fx-godrays) * 0.15)) 0%,
        rgba(255, 255, 220, calc(var(--fx-godrays) * 0.05)) 4%,
        transparent 8%,
        transparent 14%
    );
    mask-image: radial-gradient(circle at 50% -20%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% -20%, black 0%, transparent 70%);
    mix-blend-mode: screen;
    z-index: 3;
}

/* Light Bokeh: Out of focus, background lights turn into soft, blurry circles */
.adv-bokeh {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,220,150,var(--fx-bokeh)) 0%, rgba(255,220,150,calc(var(--fx-bokeh)*0.8)) 10%, transparent 12%),
        radial-gradient(circle at 80% 70%, rgba(200,220,255,var(--fx-bokeh)) 0%, rgba(200,220,255,calc(var(--fx-bokeh)*0.8)) 15%, transparent 17%),
        radial-gradient(circle at 60% 20%, rgba(255,200,200,var(--fx-bokeh)) 0%, rgba(255,200,200,calc(var(--fx-bokeh)*0.8)) 8%, transparent 10%),
        radial-gradient(circle at 30% 80%, rgba(255,255,255,var(--fx-bokeh)) 0%, rgba(255,255,255,calc(var(--fx-bokeh)*0.8)) 12%, transparent 14%);
    background-size: 200px 200px;
    filter: blur(3px);
    mix-blend-mode: screen;
    z-index: 4;
}

.adv-noise {
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: var(--fx-vhs-noise);
    mix-blend-mode: overlay;
    z-index: 12;
}

/* SSAO: Soft shadows in corners */
.adv-ssao {
    box-shadow: var(--fx-ssao-shadow, none);
    z-index: 5;
}

/* Radial Vignette Overlay */
.video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,var(--fx-vignette)) 100%);
    z-index: 10;
    transition: background 0.3s ease;
}

/* VHS Scanlines Overlay */
@keyframes vhs-tracking {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}
.video-wrapper.vhs-mode::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 11;
    opacity: var(--fx-scanlines);
    animation: vhs-tracking var(--fx-vhs-tracking, 0s) linear infinite;
    transition: opacity 0.3s ease;
}

.video-controls { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.05); padding: 1rem 1.5rem; border-radius: 12px; flex-wrap: wrap; gap: 1rem; border: 1px solid rgba(255,255,255,0.1);}
.server-btn { background: rgba(255,255,255,0.1); color: white; border: none; padding: 0.7rem 1.5rem; border-radius: 30px; cursor: pointer; margin-right: 0.5rem; font-weight: 600; transition: all 0.2s; }
.server-btn:hover { background: rgba(255,255,255,0.2); }
.server-btn.active { background: var(--accent); color: var(--btn-text-hover); }

.season-select { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); padding: 0.8rem 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; font-family: var(--font-body); font-size: 1rem; font-weight: 600; outline: none; cursor: pointer;}
.season-select option { background: var(--bg); color: #fff; }
.episodes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; max-height: 500px; overflow-y: auto; padding-right: 10px;}
.episodes-list::-webkit-scrollbar { width: 6px; }
.episode-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05); padding: 1.2rem; border-radius: 8px; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.5rem; position: relative;}
.episode-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.episode-item.active { background: var(--accent-gradient); color: var(--btn-text-hover); border-color: transparent;}
.ep-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.episode-item .ep-title { font-size: 1.05rem; font-weight: 700; }
.episode-item .ep-date { font-size: 0.85rem; color: var(--gray); font-weight: 500;}
.episode-item.active .ep-date { color: rgba(0, 24, 69, 0.8); }
.ep-watched-icon { color: var(--accent); display: flex; align-items: center; }
.episode-item.active .ep-watched-icon { color: var(--btn-text-hover); }

/* Video & Audio FX Panel Styles */
.overlay-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: rgba(2, 8, 19, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}
.overlay-panel.show { right: 0; }
.fx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
}
.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.close-btn:hover { color: var(--accent); }
.fx-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.fx-col { margin-bottom: 2rem; }
.fx-title {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.fx-control {
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.fx-control label {
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    margin-bottom: 0.5rem;
}
.fx-control input[type=range] {
    flex: 1;
    accent-color: var(--accent);
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}
.fx-control input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}
.fx-val {
    font-size: 0.85rem;
    color: var(--gray);
    width: 45px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.fx-toggles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}
.toggle-label input { display: none; }
.toggle-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}
.toggle-label input:checked + .toggle-box {
    background: var(--accent);
    border-color: var(--accent);
}
.toggle-label input:checked + .toggle-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--btn-text-hover);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.fx-reset-container {
    margin-top: 2rem;
    text-align: center;
}
#btn-reset-fx, #btn-reset-filters {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
#btn-reset-fx:hover, #btn-reset-filters:hover {
    background: var(--text);
    color: var(--bg);
}

/* Menu Footer Promo */
.menu-footer-promo {
    margin-top: 3rem;
    text-align: center;
    padding-bottom: 1rem;
}
.menu-footer-promo a {
    display: inline-block;
}
.menu-footer-promo img {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s, filter 0.2s;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.menu-footer-promo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(255, 204, 0, 0.3));
}

/* FX Presets UI */
.preset-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.preset-select, .preset-input {
    flex: 1;
    background: var(--hover-bg);
    color: white;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 4px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.preset-input {
    background: var(--bg);
}
.btn-preset {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 0.9rem;
}
.btn-preset:hover { opacity: 0.8; }
.btn-preset-load { background: rgba(255,255,255,0.1); color: white; }
.btn-preset-del { background: #e50914; color: white; }
.btn-preset-save { background: var(--accent); color: var(--btn-text-hover); }

/* Blockbuster Clerk Chat UI */
.clerk-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-gray);
    border-radius: 12px;
    border: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    height: 70vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    overflow: hidden;
}
.clerk-header {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--btn-text-hover);
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.clerk-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hover-bg);
    border: 2px solid var(--hover-bg);
}
.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg);
}
.chat-bubble {
    max-width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 1.1rem;
    line-height: 1.5;
    animation: popIn 0.3s ease forwards;
}
@keyframes popIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.bubble-clerk {
    background: var(--hover-bg);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,204,0,0.3);
}
.bubble-clerk .db-tag {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bubble-user {
    background: var(--accent);
    color: var(--btn-text-hover);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 700;
}
.chat-controls {
    padding: 1.5rem;
    background: var(--dark-gray);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.chat-btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}
.chat-btn:hover {
    background: var(--accent);
    color: var(--btn-text-hover);
}
.chat-input-wrap {
    display: flex;
    width: 100%;
    gap: 1rem;
}
.chat-text-input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--accent);
    background: var(--bg);
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
}
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 1rem 1.5rem;
    background: var(--hover-bg);
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid rgba(255,204,0,0.3);
    display: none;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Clerk Guess Card */
.clerk-guess-card {
    display: flex;
    gap: 1rem;
    background: var(--guess-bg);
    padding: 1rem;
    border-radius: 8px;
    align-items: center;
    margin-top: 1rem;
    border: 1px solid rgba(255, 204, 0, 0.2);
    text-decoration: none;
    color: white;
    transition: background 0.2s, border-color 0.2s;
}
.clerk-guess-card:hover {
    background: var(--guess-bg-hover);
    border-color: var(--accent);
}
.clerk-guess-card img {
    width: 60px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Genre Filters & Schedule Tabs */
.genre-filters, .schedule-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.genre-filters::-webkit-scrollbar, .schedule-tabs::-webkit-scrollbar { display: none; }
.genre-btn, .schedule-tab-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s;
}
.genre-btn:hover, .schedule-tab-btn:hover {
    background: rgba(255,255,255,0.2);
}
.genre-btn.active, .schedule-tab-btn.active {
    background: var(--accent);
    color: var(--btn-text-hover);
    border-color: var(--accent);
}

@media(max-width: 1024px) {
    .header-inner { padding: 1rem 2rem; }
    .nav-link { padding: 0.5rem; font-size: 0.9rem; }
    .search-input { width: 100px; }
    .hero-carousel-wrapper { height: 70vh; }
    .hero { padding: 4rem 2rem; }
    .hero-title { font-size: 3.5rem; }
    .main-layout { padding: 0 2rem 3rem 2rem; }
    .network-hub-container { padding: 1rem 2rem; margin-top: 70px; }
}

@media(max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 1rem; padding: 1rem; }
    .header { background: var(--bg-transparent); backdrop-filter: blur(12px);}
    .header-center { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; padding-bottom: 0.5rem;}
    .nav-link { white-space: nowrap; }
    .hero-carousel-wrapper { height: auto; }
    .hero { height: auto; padding-top: 8rem; padding-bottom: 4rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-bg::before { background: linear-gradient(to top, var(--bg) 0%, rgba(2,8,19,0.8) 60%, transparent 100%); }
    .details-content { flex-direction: column; gap: 2rem; padding-top: 10vh;}
    .details-poster-large { width: 220px; margin: 0 auto; }
    .details-info-large h1 { font-size: 2.5rem; text-align: center;}
    .details-info-large .meta, .details-info-large .genres { justify-content: center; }
    .shelf-scroll-btn { display: none !important; }
    .main-layout { padding: 0 1rem 2rem 1rem; }
    .overlay-panel { width: 100%; right: -100%; }
    .brand-icon-img { height: 48px; }
    .clerk-container { height: 80vh; }
    .network-hub-container { padding: 1rem; margin-top: 120px; }
    .network-btn { width: 120px; }
}