/* =====================================================
   CINE BOSS - Premium Streaming Platform
   Design System: Original Identity | v7
   ===================================================== */

/* ===================== VARIABLES ===================== */
:root {
    --bg-deep: #050508;
    --bg-primary: #08080e;
    --bg-secondary: #0c0c16;
    --bg-card: #10101c;
    --bg-elevated: #16162a;
    --bg-surface: #1a1a30;
    --accent-blue: #00a8e0;
    --accent-blue-bright: #00d4ff;
    --accent-blue-dim: #006688;
    --accent-blue-glow: rgba(0, 168, 224, 0.15);
    --accent-gold: #c9a54e;
    --accent-gold-bright: #e0be6a;
    --accent-gold-dim: #8a7035;
    --accent-gold-glow: rgba(201, 165, 78, 0.12);
    --text-primary: #e8e8f0;
    --text-secondary: #8a8aa0;
    --text-muted: #4a4a60;
    --text-faint: #2a2a40;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-medium: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 168, 224, 0.2);
    --glass-bg: rgba(8, 8, 14, 0.92);
    --glass-border: rgba(255, 255, 255, 0.06);
    --gradient-brand: linear-gradient(135deg, #00a8e0, #006688);
    --gradient-gold: linear-gradient(135deg, #c9a54e, #e0be6a);
    --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(5, 5, 8, 0.6) 50%, #050508 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 20px rgba(0, 168, 224, 0.2);
    --shadow-glow-gold: 0 0 20px rgba(201, 165, 78, 0.15);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s var(--ease-smooth);
    --transition-base: 0.25s var(--ease-smooth);
    --transition-slow: 0.4s var(--ease-smooth);
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #1a1a30 #08080e; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
input { font-family: inherit; }

/* ===================== CINEMATIC BACKGROUND ===================== */
.cinema-bg{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.poster-row{position:absolute;display:flex;gap:6px;will-change:transform}
.poster-row img{width:110px;height:165px;object-fit:cover;border-radius:4px;filter:brightness(.45) saturate(.6)}
.poster-row.p1{top:1%;animation:scrollR 900s linear infinite}
.poster-row.p1 img{opacity:.25}
.poster-row.p2{top:21%;animation:scrollL 1000s linear infinite}
.poster-row.p2 img{opacity:.15;filter:brightness(.3) saturate(.4) blur(1px);transform:scale(1.1)}
.poster-row.p3{top:43%;animation:scrollR 850s linear infinite}
.poster-row.p3 img{opacity:.28;filter:brightness(.5) saturate(.7)}
.poster-row.p4{top:63%;animation:scrollL 1100s linear infinite}
.poster-row.p4 img{opacity:.12;filter:brightness(.25) saturate(.35) blur(1.5px);transform:scale(1.15)}
.poster-row.p5{top:82%;animation:scrollR 950s linear infinite}
.poster-row.p5 img{opacity:.2;filter:brightness(.4) saturate(.55)}
@keyframes scrollR{from{transform:translateX(-20%)}to{transform:translateX(-50%)}}
@keyframes scrollL{from{transform:translateX(-50%)}to{transform:translateX(-20%)}}
.bg-overlay{position:absolute;inset:0;z-index:2;pointer-events:none}
.bg-overlay::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 30% 35%,rgba(0,168,224,0.08) 0%,transparent 50%),radial-gradient(ellipse at 70% 65%,rgba(201,165,78,0.04) 0%,transparent 40%)}
.bg-overlay::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 20%,rgba(5,5,8,0.85) 100%)}
.vignette{position:absolute;inset:0;z-index:3;pointer-events:none}
.vignette::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,5,8,0.85) 0%,transparent 20%,transparent 80%,rgba(5,5,8,0.85) 100%)}
.vignette::after{content:'';position:absolute;left:0;right:0;bottom:0;height:40%;background:linear-gradient(0deg,rgba(5,5,8,0.9) 0%,transparent 100%)}
.orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.1;animation:orbFloat 20s ease-in-out infinite;pointer-events:none}
.orb.o1{width:300px;height:300px;background:var(--accent-blue);top:5%;left:10%;animation-delay:0s}
.orb.o2{width:240px;height:240px;background:var(--accent-gold);top:50%;right:5%;animation-delay:-7s}
.orb.o3{width:200px;height:200px;background:#7b2fff;bottom:10%;left:30%;animation-delay:-14s}
@keyframes orbFloat{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(30px,-20px) scale(1.05)}66%{transform:translate(-20px,15px) scale(.97)}}
@keyframes pFloat{0%,100%{transform:translateY(0);opacity:.3}50%{transform:translateY(-25px);opacity:.5}}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #08080e; }
::-webkit-scrollbar-thumb {
    background: #1a1a30;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #252540; }

/* ===================== BOOT SCREEN ===================== */
#boot-screen {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg-deep);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s var(--ease-smooth), visibility 0.8s var(--ease-smooth);
}
#boot-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-content { text-align: center; }
.boot-logo {
    position: relative; width: 80px; height: 80px;
    margin: 0 auto 24px; display: flex; align-items: center; justify-content: center;
}
.boot-logo-ring {
    position: absolute; inset: 0;
    border: 1.5px solid transparent;
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: bootSpin 1.4s linear infinite;
}
.boot-logo-ring.ring-2 {
    inset: 8px;
    border-top-color: var(--accent-gold);
    animation-duration: 2s;
    animation-direction: reverse;
}
.boot-logo-icon { font-size: 22px; color: var(--accent-blue); }
@keyframes bootSpin { to { transform: rotate(360deg); } }
.boot-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800; letter-spacing: 4px;
    margin-bottom: 4px; color: var(--text-primary);
}
.boot-title .accent { color: var(--accent-blue); }
.boot-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 10px; letter-spacing: 6px;
    color: var(--text-muted); margin-bottom: 28px;
    text-transform: uppercase;
}
.boot-loader {
    width: 200px; height: 2px;
    background: var(--border-subtle);
    border-radius: 2px; overflow: hidden;
    margin: 0 auto 14px;
}
.boot-loader-bar {
    height: 100%; width: 0%;
    background: var(--gradient-brand);
    border-radius: 2px;
    animation: bootLoad 2s ease forwards;
}
@keyframes bootLoad { 0% { width: 0; } 50% { width: 70%; } 100% { width: 100%; } }
.boot-status {
    font-size: 10px; color: var(--text-muted);
    letter-spacing: 3px; text-transform: uppercase;
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 60px; z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0; transition: opacity 0.5s ease;
}
.nav-container {
    max-width: 1400px; margin: 0 auto;
    height: 100%; display: flex;
    align-items: center; justify-content: space-between;
    padding: 0 28px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.logo-icon {
    width: 32px; height: 32px;
    background: var(--accent-blue);
    border-radius: 7px; display: flex;
    align-items: center; justify-content: center;
    font-size: 12px; color: #fff;
}
.logo-text {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 16px; font-weight: 700;
    letter-spacing: 1.5px;
}
.logo-text .accent, .accent { color: var(--accent-blue); }
.nav-center { flex: 1; max-width: 460px; margin: 0 24px; }
.search-box { position: relative; width: 100%; }
.search-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 12px;
    pointer-events: none; z-index: 1;
}
.search-box input {
    width: 100%; padding: 9px 14px 9px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px; transition: all var(--transition-fast);
}
.search-box input:focus {
    outline: none; border-color: var(--border-accent);
    background: rgba(255, 255, 255, 0.05);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-filters { display: flex; gap: 4px; margin-top: 6px; }
.filter-btn {
    padding: 4px 12px; background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-muted); font-size: 11px; font-weight: 500;
    transition: all var(--transition-fast); cursor: pointer;
}
.filter-btn:hover { color: var(--text-secondary); border-color: var(--border-medium); }
.filter-btn.active {
    color: var(--accent-blue);
    border-color: var(--border-accent);
    background: rgba(0, 168, 224, 0.06);
}
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 1px; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 12px; font-weight: 500;
    transition: all var(--transition-fast); position: relative;
}
.nav-link i { font-size: 13px; }
.nav-link span { display: none; }
@media (min-width: 1024px) { .nav-link span { display: inline; } }
.nav-link:hover { color: var(--text-secondary); }
.nav-link.active { color: var(--accent-blue); }
.nav-link.active::after {
    content: ''; position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 14px; height: 2px;
    background: var(--accent-blue); border-radius: 1px;
}

/* ===================== AUTH BUTTONS ===================== */
.auth-btn-nav {
    padding: 7px 18px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 12px; font-weight: 600;
    transition: all var(--transition-base);
    white-space: nowrap;
}
.auth-btn-nav:hover {
    background: #0090c0;
    box-shadow: var(--shadow-glow-blue);
}
.auth-btn-nav.gold {
    background: linear-gradient(135deg, var(--accent-gold), #e0be6a);
    color: #0a0a12;
}
.auth-btn-nav.gold:hover {
    background: linear-gradient(135deg, #d4b05a, #eac876);
    box-shadow: 0 4px 16px rgba(201, 165, 78, 0.3);
}

.user-menu { position: relative; }
.user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--accent-blue);
    cursor: pointer; transition: all var(--transition-base);
}
.user-avatar:hover { box-shadow: var(--shadow-glow-blue); }
.user-dropdown {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 210px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 6px 0;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}
.user-menu:hover .user-dropdown { display: block; }
.user-info { padding: 10px 14px; }
.user-name { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-sub-status { display: block; font-size: 10px; color: var(--accent-blue); margin-top: 2px; }
.user-dropdown-divider { height: 1px; background: var(--border-subtle); margin: 3px 0; }
.user-dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; color: var(--text-secondary);
    text-decoration: none; font-size: 12px;
    transition: all var(--transition-fast);
}
.user-dropdown-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-primary); }
.user-dropdown-item i { width: 14px; text-align: center; font-size: 11px; }

.hidden { display: none !important; }
.mobile-menu-btn {
    display: none; width: 36px; height: 36px;
    border-radius: var(--radius-sm); font-size: 16px;
    color: var(--text-secondary);
}
.mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.04); }

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column;
    padding: 20px; transform: translateX(-100%);
    transition: transform 0.35s var(--ease-smooth);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px;
}
.mobile-menu-header .logo-text { font-size: 16px; }
.mobile-menu-close {
    width: 36px; height: 36px;
    border-radius: 50%; font-size: 18px;
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.05); }
.mobile-menu-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: 15px; font-weight: 500;
    transition: all var(--transition-fast);
}
.mobile-link:hover, .mobile-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.mobile-link.active { color: var(--accent-blue); }
.mobile-link i { width: 20px; text-align: center; font-size: 16px; }
.mobile-menu-search { margin-top: auto; padding-top: 16px; }
.mobile-menu-search input {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary); font-size: 14px;
}
.mobile-menu-search input:focus { outline: none; border-color: var(--border-accent); }
.mobile-menu-search input::placeholder { color: var(--text-muted); }

/* ===================== MAIN CONTENT ===================== */
.main-content {
    padding-top: 60px;
    min-height: 100vh;
    opacity: 0; transition: opacity 0.5s ease;
}

/* ===================== HERO ===================== */
.hero {
    position: relative; width: 100%;
    height: clamp(400px, 60vw, 600px);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.55);
    transition: transform 8s linear;
}
.hero:hover .hero-bg { transform: scale(1.03); }
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(5,5,8,0.3) 0%,
        rgba(5,5,8,0.1) 30%,
        rgba(5,5,8,0.7) 70%,
        #050508 100%
    );
    pointer-events: none;
}
.hero-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0 40px 48px;
    max-width: 1400px; margin: 0 auto;
    z-index: 2;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: rgba(201, 165, 78, 0.12);
    border: 1px solid rgba(201, 165, 78, 0.25);
    border-radius: var(--radius-xs);
    color: var(--accent-gold);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800; line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero-meta {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; color: var(--text-secondary);
}
.meta-item i { color: var(--accent-gold); font-size: 12px; }
.meta-dot {
    width: 3px; height: 3px;
    background: var(--text-muted); border-radius: 50%;
}
.hero-desc {
    font-size: 14px; color: var(--text-secondary);
    max-width: 560px; line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    color: #fff; font-size: 14px; font-weight: 600;
    transition: all var(--transition-base);
}
.btn-primary:hover {
    background: #0090c0;
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-1px);
}
.btn-primary i { font-size: 12px; }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    transition: all var(--transition-base);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-secondary i { font-size: 12px; }

/* ===================== CONTENT SECTIONS ===================== */
.content-section {
    padding: 24px 40px 8px;
    max-width: 1400px; margin: 0 auto;
}
.section-header { margin-bottom: 14px; }
.section-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* ===================== CAROUSEL ROW ===================== */
.movies-row {
    display: flex; gap: 12px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.movies-row::-webkit-scrollbar { display: none; }

/* ===================== MOVIE CARD ===================== */
.movie-card {
    flex-shrink: 0; width: 160px;
    cursor: pointer; position: relative;
    scroll-snap-align: start;
    transition: transform var(--transition-base);
}
.movie-card:hover { transform: translateY(-4px); }
.card-poster {
    position: relative; width: 100%;
    aspect-ratio: 2/3; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--bg-card);
}
.card-poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.movie-card:hover .card-poster img { transform: scale(1.06); }
.poster-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); color: var(--text-muted);
    font-size: 28px;
}
.card-rating {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 7px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: var(--radius-xs);
    font-size: 11px; font-weight: 600;
    display: flex; align-items: center; gap: 4px;
    color: var(--accent-gold);
    backdrop-filter: blur(8px);
}
.card-rating i { font-size: 9px; }
.card-dub {
    position: absolute; top: 8px; right: 8px;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}
.card-lang-pt {
    background: rgba(0, 168, 224, 0.2);
    color: var(--accent-blue-bright);
    border: 1px solid rgba(0, 168, 224, 0.3);
}
.card-lang-dub {
    background: rgba(201, 165, 78, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(201, 165, 78, 0.25);
}
.card-fav {
    position: absolute; bottom: 8px; right: 8px;
    width: 30px; height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 12px; color: var(--text-muted);
    opacity: 0; transform: scale(0.8);
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}
.movie-card:hover .card-fav { opacity: 1; transform: scale(1); }
.card-fav.active { color: #ff4466; opacity: 1; transform: scale(1); }
.card-fav:hover { color: #ff4466; background: rgba(255, 68, 102, 0.15); }
.card-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0; transition: opacity var(--transition-base);
}
.movie-card:hover .card-play { opacity: 1; }
.card-play-icon {
    width: 42px; height: 42px;
    background: var(--accent-blue);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 14px; color: #fff;
    box-shadow: 0 0 20px rgba(0, 168, 224, 0.4);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}
.movie-card:hover .card-play-icon { transform: scale(1); }
.card-info {
    padding: 8px 2px 0;
}
.card-title {
    font-size: 13px; font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.card-year {
    font-size: 11px; color: var(--text-muted);
    margin-top: 2px;
}

/* ===================== DETAIL PAGE ===================== */
.detail-page {
    position: fixed; inset: 0; z-index: 500;
    background: var(--bg-deep);
    overflow-y: auto; overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-smooth);
}
.detail-page.active { transform: translateX(0); }
.detail-hero {
    position: relative;
    height: clamp(350px, 50vw, 520px);
    overflow: hidden;
}
.detail-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.5);
}
.detail-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(5,5,8,0.2) 0%,
        rgba(5,5,8,0.1) 40%,
        rgba(5,5,8,0.8) 75%,
        #050508 100%
    );
}
.detail-back {
    position: absolute; top: 16px; left: 20px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px; font-weight: 500;
    display: flex; align-items: center; gap: 6px;
    z-index: 10;
    backdrop-filter: blur(12px);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-subtle);
}
.detail-back:hover { color: var(--text-primary); background: rgba(0, 0, 0, 0.7); }
.detail-hero-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0 40px 36px;
    display: flex; gap: 24px; align-items: flex-end;
    max-width: 1400px; margin: 0 auto;
    z-index: 5;
}
.detail-poster {
    flex-shrink: 0;
    width: 140px; aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; }
.detail-badges {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.detail-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
.detail-badge.rating { color: var(--accent-gold); }
.detail-badge.dub-dub {
    background: rgba(201, 165, 78, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(201, 165, 78, 0.2);
}
.detail-badge.dub-pt {
    background: rgba(0, 168, 224, 0.1);
    color: var(--accent-blue-bright);
    border: 1px solid rgba(0, 168, 224, 0.2);
}
.detail-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800; line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.detail-overview {
    font-size: 13px; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 16px;
    max-width: 520px;
}
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-btn-play {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    color: #fff; font-size: 14px; font-weight: 600;
    transition: all var(--transition-base);
}
.detail-btn-play:hover {
    background: #0090c0;
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-1px);
}
.detail-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 14px;
    transition: all var(--transition-base);
}
.detail-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* ===================== DETAIL BODY ===================== */
.detail-body {
    max-width: 1400px; margin: 0 auto;
    padding: 24px 40px 40px;
}
.detail-section { margin-bottom: 28px; }
.detail-section-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 16px; font-weight: 700;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-primary);
}
.detail-section-title i {
    color: var(--accent-blue); font-size: 14px;
}

/* ===================== SEASONS ===================== */
.season-tabs {
    display: flex; gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab {
    flex-shrink: 0;
    padding: 10px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex; flex-direction: column;
    align-items: center; gap: 2px;
}
.season-tab:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-medium);
}
.season-tab.active {
    background: rgba(0, 168, 224, 0.08);
    border-color: var(--border-accent);
    color: var(--accent-blue);
}
.season-num { font-weight: 700; font-size: 14px; }
.season-eps { font-size: 10px; color: var(--text-muted); }

/* ===================== EPISODES ===================== */
.detail-episodes-grid {
    display: flex; flex-direction: column;
    gap: 8px;
}
.detail-episode-card {
    display: flex; gap: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.detail-episode-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-medium);
}
.detail-ep-thumb {
    position: relative; flex-shrink: 0;
    width: 140px; aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden; background: var(--bg-card);
}
.detail-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-ep-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); color: var(--text-muted);
}
.detail-ep-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4);
    opacity: 0; transition: opacity var(--transition-base);
    font-size: 18px; color: #fff;
}
.detail-episode-card:hover .detail-ep-play { opacity: 1; }
.detail-ep-number {
    position: absolute; bottom: 6px; left: 6px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.7);
    border-radius: var(--radius-xs);
    font-size: 10px; font-weight: 600;
    color: var(--text-secondary);
}
.detail-ep-info { flex: 1; min-width: 0; }
.detail-ep-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.detail-ep-name {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-ep-runtime {
    flex-shrink: 0; font-size: 11px; color: var(--text-muted);
}
.detail-ep-date {
    font-size: 11px; color: var(--text-muted);
    margin-bottom: 4px;
}
.detail-ep-desc {
    font-size: 12px; color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* ===================== LIVE TV ===================== */
.live-channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.channel-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.channel-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-medium);
}
.channel-icon {
    width: 40px; height: 40px;
    background: var(--gradient-brand);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff;
    flex-shrink: 0;
}
.channel-name {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary);
}
.channel-live {
    font-size: 10px; font-weight: 700;
    color: #ff4466; letter-spacing: 1px;
    margin-top: 2px;
}

/* ===================== PLAYER ===================== */
.player-overlay {
    position: fixed; inset: 0; z-index: 999999;
    background: #000;
    display: none; flex-direction: column;
}
.player-overlay.active { display: flex; }
.player-bg {
    position: absolute; inset: 0;
    cursor: pointer;
}
.player-container {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    height: 100%; width: 100%;
}
.player-header {
    display: flex; align-items: center;
    padding: 8px 12px;
    gap: 8px;
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    z-index: 2;
}
.player-back {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all .15s;
    flex-shrink: 0;
}
.player-back:hover { background: rgba(255,255,255,0.1); }
.player-title {
    font-size: 13px; font-weight: 600;
    color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; min-width: 0;
}
.player-header-spacer { display: none; }

/* Server selector - always on top, horizontal, fixed */
.server-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    z-index: 2;
}
.server-label {
    font-size: 11px; color: rgba(255,255,255,0.4);
    white-space: nowrap; flex-shrink: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.server-chip {
    padding: 6px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 12px; font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}
.server-chip:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.server-chip.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 12px rgba(0,168,224,0.3);
}

/* Video container - fills remaining space */
.player-wrapper {
    flex: 1; display: flex;
    align-items: stretch; justify-content: stretch;
    position: relative;
    min-height: 0;
    background: #000;
}
.player-wrapper iframe,
.player-wrapper .video-iframe {
    width: 100%; height: 100%;
    border: none;
    background: #000;
}

.provider-info { display: none; }
.change-provider-btn { display: none; }
.server-grid { display: none; }
.provider-btn { display: none; }

/* Error state */
.player-error {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; padding: 40px;
    text-align: center;
    width: 100%;
}
.player-error i { font-size: 32px; color: rgba(255,255,255,0.3); }
.player-error p { color: rgba(255,255,255,0.5); font-size: 14px; }
#playerErrorBack {
    margin-top: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
}
#playerErrorBack:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Mobile responsive */
@media (max-width: 768px) {
    .player-header { padding: 6px 10px; }
    .player-title { font-size: 12px; }
    .server-bar { padding: 6px 10px; gap: 6px; }
    .server-chip { padding: 5px 12px; font-size: 11px; }
}
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===================== FOOTER ===================== */
.footer {
    padding: 32px 40px 20px;
    max-width: 1400px; margin: 0 auto;
    opacity: 0; transition: opacity 0.5s ease;
}
.footer-content {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}
.footer-logo .logo-text { font-size: 14px; }
.footer-logo p {
    font-size: 12px; color: var(--text-muted);
    margin-top: 4px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    font-size: 12px; color: var(--text-muted);
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-bottom {
    text-align: center;
}
.footer-bottom p {
    font-size: 11px; color: var(--text-muted);
}

/* ===================== LOADING & EMPTY ===================== */
.loading {
    display: flex; align-items: center; justify-content: center;
    padding: 60px;
}
.loading-spinner {
    width: 32px; height: 32px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 80px 20px;
    text-align: center;
}
.empty-state i {
    font-size: 40px; color: var(--text-faint);
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 15px; color: var(--text-muted);
}

/* ===================== TOAST ===================== */
.toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 10px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-lg);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===================== INSTALL BANNER ===================== */
.install-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 14px 24px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-medium);
    display: flex; align-items: center; justify-content: space-between;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.install-banner-text {
    font-size: 13px; font-weight: 500;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 8px;
}
.install-banner-text i { color: var(--accent-blue); }
.install-banner-btn {
    padding: 6px 16px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    color: #fff; font-size: 12px; font-weight: 600;
    transition: all var(--transition-fast);
}
.install-banner-btn:hover { background: #0090c0; }

/* ===================== AUTH MODAL ===================== */
.auth-modal {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; align-items: center; justify-content: center;
}
.auth-backdrop {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
}
.auth-container {
    position: relative; width: 90%; max-width: 400px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    z-index: 1;
    transform: translateY(20px); opacity: 0;
    transition: all 0.35s var(--ease-smooth);
}
.auth-modal.active .auth-container { transform: translateY(0); opacity: 1; }
.auth-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.auth-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.auth-logo {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 20px; font-weight: 800;
    text-align: center; letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.auth-logo .accent { color: var(--accent-blue); }
.auth-tabs {
    display: flex; gap: 3px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    padding: 3px;
}
.auth-tab {
    flex: 1; padding: 9px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: all var(--transition-fast);
}
.auth-tab.active {
    background: rgba(0, 168, 224, 0.1);
    color: var(--accent-blue);
}
.auth-form {
    display: none; flex-direction: column; gap: 14px;
}
.auth-form.active { display: flex; }
.auth-field input {
    width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    transition: all var(--transition-fast);
}
.auth-field input:focus {
    outline: none; border-color: var(--border-accent);
}
.auth-field input::placeholder { color: var(--text-muted); }
.auth-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted);
}
.auth-check input { accent-color: var(--accent-blue); }
.auth-error {
    color: #ff4466; font-size: 12px;
    min-height: 16px; text-align: center;
}
.auth-btn {
    width: 100%; padding: 12px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    color: #fff; font-size: 13px; font-weight: 700;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
}
.auth-btn:hover { background: #0090c0; box-shadow: var(--shadow-glow-blue); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-forgot {
    text-align: center; font-size: 12px;
    color: var(--text-muted); cursor: pointer;
}
.auth-forgot:hover { color: var(--accent-blue); }

/* ===================== PAYWALL MODAL ===================== */
.paywall-modal {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; align-items: center; justify-content: center;
}
.pw-backdrop {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(24px);
}
.pw-container {
    position: relative; width: 90%; max-width: 480px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    z-index: 1; text-align: center;
    transform: scale(0.95); opacity: 0;
    transition: all 0.35s var(--ease-smooth);
}
.paywall-modal.active .pw-container { transform: scale(1); opacity: 1; }
.pw-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.pw-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.pw-icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}
.pw-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 20px; font-weight: 700;
    margin-bottom: 6px;
}
.pw-text {
    color: var(--text-muted);
    font-size: 13px; margin-bottom: 24px;
    line-height: 1.5;
}
.pw-plans {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 20px;
}
.pw-plan {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    position: relative;
}
.pw-plan:hover { border-color: var(--border-medium); }
.pw-plan.selected {
    border-color: var(--accent-blue);
    background: rgba(0, 168, 224, 0.06);
}
.pw-plan.featured { border-color: rgba(201, 165, 78, 0.25); }
.pw-plan-badge {
    position: absolute; top: -8px; right: 10px;
    background: var(--gradient-gold);
    color: #000; font-size: 9px; font-weight: 700;
    padding: 2px 8px; border-radius: 8px;
}
.pw-plan-name {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 11px; color: var(--text-muted);
    margin-bottom: 6px; letter-spacing: 0.5px;
}
.pw-plan-price {
    font-size: 22px; font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 10px;
}
.pw-plan-price span {
    font-size: 11px; color: var(--text-muted);
    font-weight: 400;
}
.pw-plan-features { list-style: none; }
.pw-plan-features li {
    font-size: 11px; color: var(--text-muted);
    padding: 3px 0; padding-left: 14px;
    position: relative;
}
.pw-plan-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; left: 0;
    color: var(--accent-blue); font-size: 9px;
}
.pw-pay-btn {
    width: 100%; padding: 14px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    color: #fff; font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
}
.pw-pay-btn:hover {
    background: #0090c0;
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-1px);
}
.pw-secure {
    margin-top: 14px; font-size: 11px;
    color: var(--text-muted);
}
.pw-secure i { color: var(--accent-blue); margin-right: 4px; }
@media (max-width: 500px) { .pw-plans { grid-template-columns: 1fr; } }

/* ===================== TV MODE ===================== */
body.tv-mode .movie-card:focus,
body.tv-mode .nav-link:focus,
body.tv-mode .channel-card:focus,
body.tv-mode .btn-primary:focus,
body.tv-mode .detail-btn-play:focus,
body.tv-mode .season-tab:focus,
body.tv-mode .detail-episode-card:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}
body.tv-mode .tv-focused {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    transform: scale(1.05);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .nav-center { max-width: 300px; }
}
@media (max-width: 768px) {
    .nav-container { padding: 0 16px; }
    .nav-center { margin: 0 12px; max-width: none; flex: 1; }
    .search-filters { display: none; }
    .hero { height: 50vw; min-height: 320px; }
    .hero-content { padding: 0 20px 32px; }
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 13px; -webkit-line-clamp: 2; }
    .btn-primary, .btn-secondary { padding: 10px 20px; font-size: 13px; }
    .content-section { padding: 16px 16px 4px; }
    .section-title { font-size: 16px; }
    .movie-card { width: 130px; }
    .detail-hero-content {
        flex-direction: column; align-items: flex-start;
        padding: 0 20px 28px;
    }
    .detail-poster { width: 100px; }
    .detail-body { padding: 20px 16px 32px; }
    .detail-ep-thumb { width: 110px; }
    .footer { padding: 24px 16px 16px; }
    .footer-content { flex-direction: column; gap: 16px; }
}
@media (max-width: 480px) {
    .movie-card { width: 115px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
    .detail-actions { flex-direction: column; }
    .detail-btn-play, .detail-btn-secondary { width: 100%; justify-content: center; }
    .live-channels { grid-template-columns: 1fr; }
}

/* ===================== AD WARNING ANIMATION ===================== */
@keyframes adWarnFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===================== PLAYER RESPONSIVE ===================== */
@media (max-width: 600px) {
    .server-bar { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
    .server-chip { font-size: 11px; padding: 6px 10px; }
    .player-title { font-size: 13px; }
    .video-iframe { min-height: 200px; }
    #playerAdWarning { top: 50px; padding: 6px 12px; }
    #playerAdWarning span { font-size: 10px; }
}

@media (min-width: 1200px) {
    .video-iframe { min-height: 500px; }
    .server-bar { padding: 10px 20px; }
    .server-chip { font-size: 14px; padding: 10px 18px; }
}

/* ===================== MOBILE INSTALL BUTTON ===================== */
.mobile-menu-extras{padding:16px 20px;border-top:1px solid rgba(255,255,255,0.06)}
.mobile-install-btn{width:100%;padding:14px 20px;background:linear-gradient(135deg,var(--accent-blue),#0077b3);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:all .2s;font-family:'Sora',sans-serif}
.mobile-install-btn:hover{transform:scale(1.02);box-shadow:0 4px 20px rgba(0,168,224,0.3)}
.user-dropdown-item#dropdownInstallBtn{color:var(--accent-blue)!important;font-weight:600}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
