/* ============================================================
   CineNova v4.0 — Ultra-Premium Cinematic Stylesheet
   ✦ Redesigned Hero · Premium Cards · Cinematic Depth
   ✦ Advanced Animations · Glassmorphism 2.0 · 8px Grid
   ============================================================ */

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

:root {
    /* Apple-Inspired Color System */
    --bg: #080a10;
    --bg2: #0d0f18;
    --bg3: #13161f;
    --surface: rgba(255,255,255,0.05);
    --surface2: rgba(255,255,255,0.09);
    --glass: rgba(13,15,24,0.88);
    --glass-border: rgba(255,255,255,0.1);
    --border: rgba(255,255,255,0.08);
    --accent: #e50914;
    --accent2: #ff3347;
    --accent-glow: rgba(229,9,20,0.28);
    --accent-gradient: linear-gradient(135deg, #e50914 0%, #ff3347 100%);
    --gold: #f5c518;
    --green: #30d158;
    --blue: #0a84ff;
    --purple: #5e5ce6;
    --text: #f5f5f7;
    --text2: #8e8e93;
    --text3: #48484a;
    /* Layout - smaller, tighter cards */
    --card-w: 148px;
    --card-h: 222px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    /* Motion - faster, lighter */
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.25s var(--ease);
    /* Shadows - lighter */
    --shadow-sm: 0 1px 6px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.42);
    --shadow-lg: 0 24px 72px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 24px var(--accent-glow);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* ── ANIMATIONS ── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity:0; transform: scale(0.9); } to { opacity:1; transform: scale(1); } }
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.5; } }
@keyframes glow {
    0%,100% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(229,9,20,0.15); }
}
@keyframes loadBar { to { width: 100%; } }
@keyframes logoPulse {
    0%,100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.3); }
}
@keyframes slideDown { from { transform: translateY(-100%); opacity:0; } to { transform: translateY(0); opacity:1; } }
@keyframes kenBurns {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.1) translateX(-20px); }
}
@keyframes floatUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}
@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
@keyframes borderGlow {
    0%,100% { border-color: rgba(229,9,20,0.3); }
    50% { border-color: rgba(229,9,20,0.8); }
}
@keyframes cardEntrance {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shimmerGold {
    0% { background-position: -400% 0; }
    100% { background-position: 400% 0; }
}
@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── LOADING SCREEN ── */
.loading-screen {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.loading-logo {
    font-size: 2.8rem; font-weight: 900; letter-spacing: -1.5px;
    background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: logoPulse 2s ease infinite;
}
.loading-logo i { margin-right: 10px; -webkit-text-fill-color: var(--accent); }
.loading-bar { width: 240px; height: 3px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.loading-bar-fill { height: 100%; width: 0; background: var(--accent-gradient); border-radius: 99px; animation: loadBar 1.2s ease forwards; }

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 58px;
    background: transparent;
    transition: all 0.28s var(--ease);
}
.navbar.scrolled {
    background: rgba(8,10,16,0.9);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--glass-border);
}
.nav-brand {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    transition: transform 0.3s var(--ease);
}
.nav-brand:hover { transform: scale(1.03); }
.brand-icon {
    font-size: 1.6rem;
    background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    animation: glow 3s ease infinite;
}
.brand-name {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
    background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex; align-items: center; gap: 4px;
    list-style: none;
}
.nav-btn {
    background: none; border: none; color: var(--text2); font: inherit;
    font-size: 0.88rem; font-weight: 500; padding: 8px 16px;
    border-radius: 10px; cursor: pointer;
    transition: all 0.25s var(--ease);
    position: relative; white-space: nowrap;
}
.nav-btn::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; width: 0;
    height: 2px; background: var(--accent-gradient); border-radius: 99px;
    transition: all 0.3s var(--ease); transform: translateX(-50%);
}
.nav-btn:hover { color: var(--text); background: var(--surface); }
.nav-btn.active { color: #fff; }
.nav-btn.active::after { width: 60%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text2); width: 40px; height: 40px;
    border-radius: 12px; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s var(--ease);
}
.icon-btn:hover { background: var(--surface2); color: #fff; border-color: var(--glass-border); transform: scale(1.05); }

/* Surprise Me Button */
.surprise-btn {
    background: var(--accent-gradient); border: none; color: #fff;
    padding: 8px 16px; border-radius: 10px; font: inherit;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.25s var(--ease);
    box-shadow: 0 2px 12px var(--accent-glow);
}
.surprise-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-glow); }

/* ── SEARCH OVERLAY ── */
.search-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(4,6,11,0.92);
    backdrop-filter: blur(24px);
    display: flex; flex-direction: column;
    padding: 80px 24px 24px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.search-overlay.active { opacity: 1; pointer-events: auto; }
.search-box {
    max-width: 700px; width: 100%; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 4px 16px;
    transition: border-color 0.3s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.search-icon { color: var(--text3); font-size: 1.1rem; }
#search-input {
    flex: 1; background: none; border: none; color: var(--text);
    font: inherit; font-size: 1rem; padding: 14px 0; outline: none;
}
#search-input::placeholder { color: var(--text3); }
.search-filters {
    max-width: 700px; width: 100%; margin: 16px auto 0;
    display: flex; gap: 10px; flex-wrap: wrap;
}
.filter-select {
    background: var(--bg3); color: var(--text2); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 14px; font: inherit; font-size: 0.85rem;
    cursor: pointer; outline: none; flex: 1; min-width: 120px;
    transition: border-color 0.3s;
}
.filter-select:focus { border-color: var(--accent); }
.filter-select option { background: var(--bg2); }
.search-results {
    max-width: 900px; width: 100%; margin: 24px auto 0;
    overflow-y: auto; flex: 1;
}
.search-hint { color: var(--text3); text-align: center; padding: 40px 0; font-size: 0.95rem; }
.search-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px; padding-bottom: 40px;
}

/* Voice Search Button */
.voice-search-btn {
    background: none; border: none; color: var(--text3);
    font-size: 1.1rem; cursor: pointer; padding: 8px;
    border-radius: 50%; transition: all 0.3s;
}
.voice-search-btn:hover { color: var(--accent); }
.voice-search-btn.listening { color: var(--accent); animation: pulse 1s infinite; }

/* ── HERO ── */
.hero {
    position: relative; width: 100%; height: 90vh; min-height: 520px;
    background-size: cover; background-position: center;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    animation: kenBurns 24s ease infinite alternate;
    background: inherit; background-size: cover; z-index: 0;
    transform-origin: center;
}
/* Premium edge-lighting effect */
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at 0% 50%, rgba(229,9,20,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 100% 50%, rgba(61,155,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(to top, var(--bg) 0%, rgba(4,6,11,0.5) 45%, transparent 70%),
        linear-gradient(to right, rgba(4,6,11,0.9) 0%, rgba(4,6,11,0.4) 50%, transparent 80%),
        linear-gradient(to bottom, rgba(4,6,11,0.5) 0%, transparent 25%);
}
.hero-content {
    position: absolute; bottom: 18%; left: 5%; z-index: 3;
    max-width: 640px;
    animation: fadeSlideUp 0.9s var(--ease) 0.2s both;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-gradient); color: #fff;
    padding: 5px 14px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 16px;
    box-shadow: 0 4px 20px var(--accent-glow);
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-title {
    font-size: clamp(1.9rem, 5.5vw, 3.5rem);
    font-weight: 900; line-height: 1.05; letter-spacing: -1.5px;
    margin-bottom: 14px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.hero-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 16px; font-size: 0.88rem;
}
.hero-rating {
    color: var(--gold); font-weight: 800;
    display: flex; align-items: center; gap: 4px;
    background: rgba(245,197,24,0.1); padding: 4px 10px;
    border-radius: 8px; border: 1px solid rgba(245,197,24,0.25);
}
.hero-year { color: var(--text2); font-weight: 500; }
.hero-genre {
    background: rgba(255,255,255,0.08); color: var(--text2);
    padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-desc {
    color: rgba(241,241,245,0.75); font-size: 0.93rem; line-height: 1.65;
    margin-bottom: 28px; max-width: 520px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    line-clamp: 3;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-indicators {
    position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.25); cursor: pointer;
    transition: all 0.4s var(--ease);
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-dot.active { width: 32px; border-radius: 99px; background: var(--accent); border-color: transparent; box-shadow: 0 0 8px var(--accent-glow); }

/* ── BUTTONS — Apple-sized, clean ── */
.btn-primary {
    background: var(--accent-gradient); color: #fff; border: none;
    padding: 11px 20px; border-radius: 10px;
    font: inherit; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    transition: all 0.22s var(--ease);
    text-decoration: none;
}
.btn-primary:hover { transform: scale(1.03); opacity: 0.92; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    background: var(--surface2); color: var(--text);
    border: 1px solid var(--glass-border); padding: 11px 18px;
    border-radius: 10px; font: inherit; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    transition: all 0.22s var(--ease);
    backdrop-filter: blur(10px); text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-play {
    background: var(--accent-gradient); color: #fff; border: none;
    padding: 11px 22px; border-radius: 10px;
    font: inherit; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    transition: all 0.22s var(--ease);
}
.btn-play:hover { transform: scale(1.03); }

.btn-list {
    background: var(--surface); color: var(--text2); border: 1px solid var(--border);
    padding: 11px 16px; border-radius: 10px;
    font: inherit; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.22s var(--ease);
}
.btn-list:hover { border-color: var(--accent); color: var(--accent); }
.btn-list.in-list { background: rgba(229,9,20,0.1); border-color: var(--accent); color: var(--accent); }

.btn-watchparty {
    background: var(--purple); color: #fff; border: none;
    padding: 11px 16px; border-radius: 10px;
    font: inherit; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.22s var(--ease);
}
.btn-watchparty:hover { opacity: 0.88; }

/* ── CONTENT SECTIONS ── */
.main-content { padding: 0 0 60px; position: relative; }
.content-section {
    padding: 24px 32px; position: relative;
    animation: fadeSlideUp 0.5s var(--ease) both;
}
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.section-title {
    font-size: 1.2rem; font-weight: 800; letter-spacing: -0.4px;
    display: flex; align-items: center; gap: 10px;
}
.section-title i {
    font-size: 0.9rem; color: var(--accent);
    background: rgba(229,9,20,0.12); padding: 8px; border-radius: 10px;
    border: 1px solid rgba(229,9,20,0.2);
}
.section-count {
    font-size: 0.78rem; color: var(--text3); font-weight: 400;
    margin-left: 8px;
}
.clear-history-btn {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text3); padding: 7px 14px; border-radius: 10px;
    font: inherit; font-size: 0.78rem; cursor: pointer;
    transition: all 0.25s;
}
.clear-history-btn:hover { color: var(--accent); border-color: rgba(229,9,20,0.4); background: rgba(229,9,20,0.05); }

/* ── SLIDER ── */
.slider-wrap {
    position: relative;
}
.slider {
    display: flex; gap: 14px; overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; padding: 8px 4px 16px;
    -webkit-overflow-scrolling: touch;
}
.slider::-webkit-scrollbar { display: none; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 44px; height: 44px;
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px); color: #fff; border-radius: 50%;
    cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-md);
}
.slider-wrap:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.1); }
.arrow-left { left: -8px; }
.arrow-right { right: -8px; }

/* ── MOVIE CARD v2 ── */
.movie-card {
    flex: 0 0 var(--card-w); width: var(--card-w); height: var(--card-h);
    border-radius: var(--radius); overflow: hidden;
    position: relative; cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.4s var(--ease);
    background: var(--bg3);
    animation: cardEntrance 0.5s var(--spring) both;
}
.movie-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease);
    display: block;
}
.movie-card:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.7),
                0 0 0 1px rgba(229,9,20,0.25),
                0 0 40px rgba(229,9,20,0.08);
    z-index: 5;
}
.movie-card:hover img { transform: scale(1.08); }
.movie-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(4,6,11,0.98) 0%,
        rgba(4,6,11,0.6) 40%,
        rgba(4,6,11,0.1) 70%,
        transparent 100%
    );
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px 12px 12px;
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.movie-card:hover .movie-card-overlay { opacity: 1; }
.card-title {
    font-size: 0.84rem; font-weight: 700; line-height: 1.25;
    margin-bottom: 3px; letter-spacing: -0.2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-clamp: 2;
}
.card-year { font-size: 0.72rem; color: var(--text2); }
.card-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--accent-gradient); border: none;
    color: #fff; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.35s var(--bounce);
    box-shadow: 0 6px 24px var(--accent-glow);
    opacity: 0;
}
.movie-card:hover .card-play { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.card-play:hover { transform: translate(-50%, -50%) scale(1.18) !important; }

/* Rating Badge on Card */
.card-rating-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    padding: 4px 8px; border-radius: 8px;
    font-size: 0.68rem; font-weight: 800; color: var(--gold);
    display: flex; align-items: center; gap: 3px;
    z-index: 2; border: 1px solid rgba(245,197,24,0.2);
}

/* Quality Badge */
.card-quality-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--accent-gradient);
    padding: 3px 8px; border-radius: 6px;
    font-size: 0.58rem; font-weight: 900; color: #fff;
    letter-spacing: 0.8px; z-index: 2;
    box-shadow: 0 2px 8px rgba(229,9,20,0.5);
}

/* ── SKELETON LOADING ── */
.skeleton-card {
    flex: 0 0 var(--card-w); width: var(--card-w); height: var(--card-h);
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--bg3) 20%, var(--surface2) 50%, var(--bg3) 80%);
    background-size: 400% 100%;
    animation: shimmer 1.8s ease infinite;
}

/* ── DETAIL MODAL v2 ── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    display: flex; justify-content: center; align-items: flex-start;
    overflow-y: auto; padding: 40px 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
    width: 100%; max-width: 880px; max-height: 90vh;
    background: linear-gradient(180deg, var(--bg3) 0%, var(--bg2) 100%);
    border-radius: var(--radius-xl);
    overflow-y: auto; position: relative;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 40px 120px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.08);
    animation: scaleIn 0.38s var(--spring);
}
.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px); color: rgba(255,255,255,0.8);
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.1); }
.modal-backdrop-wrap { position: relative; width: 100%; height: 380px; overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.modal-backdrop-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s ease-in-out; }
.modal-backdrop-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg2) 5%, transparent 50%),
                linear-gradient(to right, rgba(11,14,23,0.7), transparent 70%);
}
.modal-backdrop-info {
    position: absolute; bottom: 24px; left: 28px; right: 28px; z-index: 2;
}
.modal-title {
    font-size: 1.55rem; font-weight: 800; line-height: 1.15; margin-bottom: 8px;
}
.modal-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.rating-badge {
    padding: 4px 9px; border-radius: 7px; font-size: 0.75rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
}
.rating-badge.imdb { background: rgba(245,197,24,0.12); color: var(--gold); border: 1px solid rgba(245,197,24,0.25); }
.rating-badge.rt { background: rgba(229,9,20,0.12); color: #ff4757; border: 1px solid rgba(229,9,20,0.25); }
.rating-badge.mc { background: rgba(48,209,88,0.12); color: var(--green); border: 1px solid rgba(48,209,88,0.25); }
.modal-meta span { font-size: 0.82rem; color: var(--text2); }
/* Compact action bar */
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.modal-actions .btn-play { padding: 10px 18px; font-size: 0.88rem; }
.modal-actions .btn-secondary,
.modal-actions .btn-list,
.modal-actions .btn-watchparty { padding: 10px 14px; font-size: 0.84rem; }
.modal-actions [style*='padding:14px 18px'] { padding: 10px 13px !important; }
.modal-body { padding: 18px 22px 28px; }
.modal-desc { color: var(--text2); line-height: 1.7; font-size: 0.95rem; margin-bottom: 24px; }
.modal-servers { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.modal-section-title {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.modal-section-title i { color: var(--accent); font-size: 0.9rem; }

/* ── CAST ── */
.cast-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cast-scroll::-webkit-scrollbar { display: none; }
.cast-card {
    flex: 0 0 100px; text-align: center; cursor: default;
    transition: transform 0.3s var(--ease);
}
.cast-card:hover { transform: translateY(-4px); }
.cast-card img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}
.cast-card:hover img { border-color: var(--accent); }
.cast-name { font-size: 0.75rem; font-weight: 600; margin-top: 8px; line-height: 1.2; }
.cast-char { font-size: 0.68rem; color: var(--text3); margin-top: 2px; }
.cast-loading { text-align: center; color: var(--text3); padding: 20px; }

/* ── SEASONS & EPISODES ── */
.season-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text2); padding: 10px 18px; border-radius: 12px;
    font: inherit; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: all 0.25s var(--ease);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.season-tab:hover { border-color: var(--accent); color: #fff; }
.season-tab.active { background: var(--accent-gradient); border-color: transparent; color: #fff; box-shadow: 0 4px 16px var(--accent-glow); }
.season-ep-count { font-size: 0.65rem; font-weight: 400; opacity: 0.7; }
.episodes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.episode-card {
    display: flex; gap: 12px; padding: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    transition: all 0.25s var(--ease);
}
.episode-card:hover { background: var(--surface2); border-color: var(--accent); transform: translateY(-2px); }
.ep-thumb-wrap {
    flex: 0 0 130px; height: 75px; border-radius: 10px; overflow: hidden; position: relative;
}
.ep-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ep-play-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s; font-size: 1.2rem; color: #fff;
}
.episode-card:hover .ep-play-overlay { opacity: 1; }
.ep-info { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.ep-num { font-size: 0.7rem; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.ep-title { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-runtime { font-size: 0.72rem; color: var(--text3); }

/* ── SERVER MODAL (Premium) ── */
.server-modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.server-modal-overlay.active { opacity: 1; pointer-events: auto; }
.server-modal-card {
    background: var(--bg2); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); width: 90%; max-width: 600px; padding: 28px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px); transition: transform 0.35s var(--spring);
}
.server-modal-overlay.active .server-modal-card { transform: translateY(0); }
.server-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 18px;
    border-bottom: 1px solid var(--border); position: relative;
}
.sm-header-left { display: flex; align-items: center; gap: 14px; }
.sm-icon-bg {
    width: 48px; height: 48px; background: rgba(229,9,20,0.1);
    border: 1px solid rgba(229,9,20,0.2); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--accent);
}
.sm-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.sm-subtitle { font-size: 0.82rem; color: var(--text3); margin: 0; }
.sm-header-right { display: flex; gap: 8px; flex-wrap: wrap; padding-right: 30px; }
.sm-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; }
.untested-badge { background: rgba(255,152,0,0.1); color: #ff9800; border: 1px solid rgba(255,152,0,0.25); }
.available-badge { background: rgba(33,208,122,0.1); color: var(--green); border: 1px solid rgba(33,208,122,0.25); }
.sm-close {
    position: absolute; top: -5px; right: -5px;
    background: none; border: none; color: var(--text3);
    font-size: 1.2rem; cursor: pointer; transition: 0.2s;
}
.sm-close:hover { color: #fff; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 14px; }
.server-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 10px; text-align: center;
    cursor: pointer; transition: all 0.25s var(--ease);
}
.server-card:hover { border-color: rgba(255,255,255,0.15); background: var(--surface2); transform: translateY(-2px); }
.server-card.active { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); background: rgba(229,9,20,0.05); }
.sc-icon-wrap {
    width: 46px; height: 46px; background: var(--bg3); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 1.1rem; color: var(--text3); position: relative;
    transition: all 0.25s;
}
.server-card.active .sc-icon-wrap { background: var(--accent); color: #fff; }
.sc-badge {
    position: absolute; top: -5px; right: -5px;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; font-weight: bold; color: #fff;
    border: 2px solid var(--bg2);
}
.sc-badge.untested { background: #ff9800; }
.sc-badge.unavailable { background: #f44336; }
.sc-badge.available { background: var(--green); }
.sc-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.sc-status { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-untested { color: #ff9800; }
.status-unavailable { color: #f44336; }
.status-available { color: var(--green); }
.current-server-text { font-size: 0.85rem; color: var(--accent); font-weight: 600; }

/* ── VIDEO PLAYER ── */
.player-overlay {
    position: fixed; inset: 0; z-index: 5000;
    background: #000; display: flex; flex-direction: column;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.player-overlay.active { opacity: 1; pointer-events: auto; }
.player-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    opacity: 1; transition: opacity 0.3s;
}
#player-title {
    font-size: 0.95rem; font-weight: 600; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 40%;
}
.player-controls-right { display: flex; align-items: center; gap: 10px; }
.player-server-toggle {
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); color: #fff;
    padding: 8px 16px; border-radius: 10px;
    font: inherit; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: all 0.25s;
}
.player-server-toggle:hover { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.player-close-btn {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    padding: 8px 16px; border-radius: 10px;
    font: inherit; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: all 0.25s;
}
.player-close-btn:hover { background: var(--accent); }
.player-frame-wrap { flex: 1; position: relative; }
.player-frame-wrap iframe { width: 100%; height: 100%; border: none; }
.nav-ep-btn {
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px); color: #fff;
    padding: 8px 14px; border-radius: 8px;
    font: inherit; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 5px;
    transition: all 0.25s;
}
.nav-ep-btn:hover { background: var(--accent); border-color: var(--accent); }
.ad-notice {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 12px;
    padding: 10px 20px; color: var(--text2); font-size: 0.8rem;
    z-index: 10; display: flex; align-items: center; gap: 8px;
    animation: fadeSlideUp 0.5s var(--ease) 2s both;
}
.ad-notice button {
    background: none; border: none; color: var(--text3); cursor: pointer;
    font-size: 1rem; margin-left: 8px;
}
.ad-notice button:hover { color: #fff; }

/* ── PREDICTION OVERLAY ── */
.prediction-wrap {
    position: absolute; bottom: 80px; right: 20px; z-index: 15;
    background: var(--glass); backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 18px 22px; max-width: 320px;
    transform: translateY(20px) scale(0.95); opacity: 0;
    pointer-events: none; transition: all 0.4s var(--spring);
}
.prediction-wrap.active { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.prediction-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.prediction-title i { color: var(--accent); }
.prediction-options { display: flex; flex-direction: column; gap: 8px; }
.pred-btn {
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text); padding: 10px 14px; border-radius: 10px;
    font: inherit; font-size: 0.82rem; cursor: pointer;
    transition: all 0.25s;
}
.pred-btn:hover { border-color: var(--accent); background: rgba(229,9,20,0.1); }
.pred-btn.selected { background: var(--accent-gradient); border-color: transparent; color: #fff; font-weight: 600; }

/* ── APP PROMO ── */
.app-promo-section {
    padding: 32px;
    animation: fadeSlideUp 0.6s var(--ease) both;
}
.app-promo-container {
    max-width: 900px; margin: 0 auto;
    background: var(--bg3); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); padding: 32px;
    display: flex; align-items: center; gap: 32px; position: relative;
    overflow: hidden;
}
.app-promo-container::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.app-promo-close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; color: var(--text3);
    font-size: 1rem; cursor: pointer; z-index: 2;
}
.app-promo-close:hover { color: #fff; }
.app-promo-img {
    flex: 0 0 200px; z-index: 1;
}
.app-promo-img img {
    width: 100%; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.app-promo-content { flex: 1; z-index: 1; }
.app-promo-content h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.app-promo-content p { color: var(--text2); margin-bottom: 16px; line-height: 1.5; }
.app-dl-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 20px !important; border-radius: 12px !important;
    font-weight: 600 !important; transition: all 0.3s var(--ease) !important;
    text-decoration: none; color: #fff;
}
.app-dl-btn:hover { transform: translateY(-2px) !important; }

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg2);
    padding: 40px 32px 24px;
    position: relative;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.footer-container {
    max-width: 900px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 24px;
    align-items: center; justify-content: space-between;
}
.footer-discord-box { flex: 1; min-width: 280px; }
.footer-discord-box h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.footer-discord-box p { color: var(--text3); font-size: 0.88rem; margin-bottom: 12px; }
.footer-discord-box .nav-links {
    display: flex; gap: 12px; margin-bottom: 16px;
    list-style: none; flex-wrap: wrap;
}
.footer-discord-box .nav-links li {
    font-size: 0.85rem; color: var(--text3); cursor: pointer;
    padding: 6px 12px; border-radius: 8px;
    transition: all 0.25s;
}
.footer-discord-box .nav-links li:hover { color: #fff; background: var(--surface); }
.footer-discord-box .nav-links li.active { color: var(--accent); }
.discord-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #5865F2; color: #fff; text-decoration: none;
    padding: 12px 24px; border-radius: 12px;
    font-weight: 700; font-size: 0.9rem;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(88,101,242,0.3);
}
.discord-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88,101,242,0.4); }
.footer-bottom {
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.footer-brand {
    font-size: 1.2rem; font-weight: 800;
    background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-brand .brand-icon { -webkit-text-fill-color: var(--accent); margin-right: 6px; }
.footer-bottom p { color: var(--text3); font-size: 0.82rem; }
.dev-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.dev-link:hover { text-decoration: underline; }

/* Social Links */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text3); font-size: 1rem; text-decoration: none;
    transition: all 0.25s var(--ease);
}
.social-link:hover { color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* ── CATEGORY PAGE ── */
.page-header {
    padding: 100px 32px 24px; text-align: center;
    animation: fadeSlideUp 0.5s var(--ease);
}
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.page-header p { color: var(--text3); font-size: 0.9rem; }
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px; padding: 0 32px;
}
.content-grid .movie-card { width: 100%; height: auto; aspect-ratio: 2/3; flex: none; }

.empty-state {
    text-align: center; padding: 80px 20px; color: var(--text3);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; display: block; }

/* ── REELS ── */
.reels-container {
    width: 100%; max-width: 500px; margin: 0 auto;
    height: calc(100vh - 64px); overflow-y: scroll; scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.reels-container::-webkit-scrollbar { display: none; }
.reel-item {
    width: 100%; height: calc(100vh - 64px); scroll-snap-align: start;
    position: relative; overflow: hidden; background: #000;
}
.reel-video-container { width: 100%; height: 100%; }
.reel-video-container iframe { width: 100%; height: 100%; border: none; pointer-events: none; }
.reel-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 20px 30px;
}
.reel-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.reel-desc {
    color: var(--text2); font-size: 0.85rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 14px;
}
.reel-btn {
    background: var(--accent-gradient); color: #fff; border: none;
    padding: 12px 24px; border-radius: 12px;
    font: inherit; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s var(--ease);
}
.reel-btn:hover { transform: scale(1.05); }

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
    position: fixed; top: 80px; right: 20px; z-index: 90000;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    background: var(--glass); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 14px;
    padding: 14px 20px; min-width: 280px; max-width: 380px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.4s var(--spring);
    pointer-events: auto;
}
.toast.removing { animation: toastOut 0.3s ease forwards; }
.toast-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}
.toast-icon.success { background: rgba(33,208,122,0.15); color: var(--green); }
.toast-icon.error { background: rgba(244,67,54,0.15); color: #f44336; }
.toast-icon.info { background: rgba(61,155,255,0.15); color: var(--blue); }
.toast-icon.warning { background: rgba(255,152,0,0.15); color: #ff9800; }
.toast-body { flex: 1; }
.toast-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.toast-msg { font-size: 0.78rem; color: var(--text2); }
.toast-close {
    background: none; border: none; color: var(--text3); cursor: pointer;
    font-size: 0.9rem; padding: 4px; transition: 0.2s;
}
.toast-close:hover { color: #fff; }

/* ── SCROLL TO TOP ── */
.scroll-top-btn {
    position: fixed; bottom: 90px; right: 20px; z-index: 800;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--accent-gradient); border: none; color: #fff;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px var(--accent-glow);
    opacity: 0; pointer-events: none;
    transform: translateY(10px);
    transition: all 0.35s var(--ease);
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { transform: translateY(-3px) scale(1.08); }

/* ── NETWORK STATUS ── */
.network-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99998;
    background: #f44336; color: #fff; text-align: center;
    padding: 8px; font-size: 0.82rem; font-weight: 600;
    transform: translateY(-100%); transition: transform 0.4s var(--ease);
}
.network-bar.visible { transform: translateY(0); }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 900px) {
    :root { --card-w: 126px; --card-h: 189px; }
    .navbar { padding: 0 14px; height: 54px; }
    .nav-links { display: none; }
    .hero { height: 62vh; min-height: 360px; }
    .hero-content { left: 4%; bottom: 10%; max-width: 86%; }
    .hero-title { font-size: 1.5rem; }
    .hero-desc { font-size: 0.82rem; -webkit-line-clamp: 2; }
    .hero-btns { gap: 7px; }
    .content-section { padding: 13px 14px; }
    .section-title { font-size: 1rem; }
    .modal-backdrop-wrap { height: 240px; }
    .modal-title { font-size: 1.25rem; }
    .modal-body { padding: 14px 16px 22px; }
    .modal-actions { flex-wrap: wrap; gap: 7px; }
    .episodes-grid { grid-template-columns: 1fr; }
    .app-promo-container { flex-direction: column; text-align: center; padding: 20px; }
    .app-promo-img { flex: 0 0 auto; max-width: 180px; }
    .footer-container { flex-direction: column; text-align: center; }
    .page-header { padding: 76px 14px 14px; }
    .page-header h1 { font-size: 1.45rem; }
    .content-grid { padding: 0 14px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
    .search-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .player-header { padding: 7px 10px; flex-wrap: wrap; gap: 5px; }
    #player-title { max-width: 100%; font-size: 0.8rem; }
    .prediction-wrap { right: 10px; bottom: 60px; max-width: 250px; }
    .server-modal-card { padding: 18px; }
    .server-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
}

@media (max-width: 600px) {
    :root { --card-w: 118px; --card-h: 177px; }
    .hero { height: 54vh; }
    .hero-btns { flex-direction: row; gap: 7px; }
    .hero-btns .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
    .hero-btns .btn-secondary { padding: 10px 12px; }
    .surprise-btn span { display: none; }
    .modal-actions .btn-play { padding: 9px 14px; }
    .modal-actions .btn-secondary,
    .modal-actions .btn-list,
    .modal-actions .btn-watchparty { padding: 9px 11px; font-size: 0.82rem; }
    .ad-notice { font-size: 0.72rem; padding: 7px 11px; }
}

/* ── MOBILE BOTTOM NAV ── */
@media (max-width: 900px) {
    .mobile-bottom-nav {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--glass); backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid var(--glass-border);
        display: flex; justify-content: space-around; align-items: center;
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
        z-index: 900;
    }
    .mobile-nav-item {
        background: none; border: none; color: var(--text3);
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        font: inherit; font-size: 0.65rem; font-weight: 500;
        cursor: pointer; padding: 6px 12px; border-radius: 10px;
        transition: all 0.25s;
        position: relative;
    }
    .mobile-nav-item i { font-size: 1.1rem; }
    .mobile-nav-item.active { color: var(--accent); }
    .mobile-nav-item.active::before {
        content: ''; position: absolute; top: -6px;
        width: 20px; height: 3px; border-radius: 99px;
        background: var(--accent-gradient);
    }
    .mobile-nav-item:hover { color: var(--text); }

    /* Favorites badge */
    .nav-badge {
        position: absolute; top: 0; right: 4px;
        background: var(--accent); color: #fff;
        font-size: 0.55rem; font-weight: 800;
        width: 16px; height: 16px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
    }

    body { padding-bottom: 60px; }
    .scroll-top-btn { bottom: 80px; }
    .site-footer { padding-bottom: 80px; }
}

@media (min-width: 901px) {
    .mobile-bottom-nav { display: none; }
}

/* ── Keyboard Shortcut Hint ── */
.shortcut-hint {
    position: fixed; bottom: 50%; left: 50%; transform: translate(-50%, 50%);
    background: var(--glass); backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 16px 28px; z-index: 99999;
    font-size: 1.2rem; font-weight: 700; color: #fff;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.shortcut-hint.visible { opacity: 1; }

/* ── Print ── */
@media print {
    .navbar, .site-footer, .mobile-bottom-nav,
    .scroll-top-btn, .toast-container { display: none !important; }
}

/* ── ADVANCED FILTER TAGS ── */
.filter-tags {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
    max-width: 700px; margin-left: auto; margin-right: auto;
}
.filter-tag {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text2); padding: 6px 14px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s var(--ease);
}
.filter-tag:hover, .filter-tag.active {
    background: rgba(229,9,20,0.12); border-color: rgba(229,9,20,0.4);
    color: var(--accent);
}

/* ── RATING FILTER SLIDER ── */
.filter-row {
    display: flex; align-items: center; gap: 10px;
    max-width: 700px; margin: 10px auto 0;
}
.filter-row label { color: var(--text3); font-size: 0.82rem; white-space: nowrap; }
.filter-range {
    -webkit-appearance: none; appearance: none;
    background: var(--surface2); border-radius: 99px;
    height: 4px; flex: 1; outline: none; cursor: pointer;
}
.filter-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
    border: 2px solid rgba(255,255,255,0.2);
}
.filter-range::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); cursor: pointer; border: none;
}

/* ── UPDATE BANNER ── */
#update-banner {
    animation: fadeSlideUp 0.4s var(--ease);
}

/* ── NOTIFICATION PERMISSION ── */
.notif-prompt {
    position: fixed; bottom: 90px; right: 24px; z-index: 9998;
    background: linear-gradient(135deg, var(--bg3), var(--bg2));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px; padding: 20px;
    max-width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    animation: fadeSlideUp 0.4s var(--ease);
}

/* ── INLINE TRAILER ── */
#trailer-modal {
    z-index: 99999;
}

/* ── CONTINUE WATCHING PROGRESS BAR ── */
.card-progress {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: rgba(255,255,255,0.15);
    z-index: 3;
}
.card-progress-fill {
    height: 100%; background: var(--accent-gradient);
    border-radius: 0 99px 99px 0;
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ── IMPROVE PAGE HEADER ── */
.page-header {
    padding: 32px 32px 16px;
}
.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900; letter-spacing: -1px;
    background: linear-gradient(135deg, #f1f1f5, rgba(241,241,245,0.6));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-header p {
    color: var(--text3); font-size: 0.9rem; margin-top: 6px;
}

/* ── HOVER SHIMMER ON HERO BUTTONS ── */
.btn-primary, .btn-play {
    position: relative; overflow: hidden;
}
.btn-primary::after, .btn-play::after {
    content: ''; position: absolute;
    inset: -1px; border-radius: inherit;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    background-size: 200% 200%; background-position: 200% 0;
    transition: background-position 0.5s ease;
    pointer-events: none;
}
.btn-primary:hover::after, .btn-play:hover::after {
    background-position: -200% 0;
}

/* ── TOAST UPGRADE ── */
.toast {
    border-left: 3px solid transparent;
}
.toast .toast-icon.success ~ .toast-body,
.toast .toast-icon.success { border-color: var(--green); }
.toast .toast-icon.error ~ .toast-body,
.toast .toast-icon.error { border-color: var(--accent); }

/* ── EXTRA MOBILE TWEAKS ── */
@media (max-width: 480px) {
    :root { --card-w: 112px; --card-h: 168px; }
    .hero-content { left: 3%; max-width: 92%; }
    .content-section { padding: 10px 12px; }
    .page-header { padding: 70px 12px 10px; }
    .page-header h1 { font-size: 1.35rem; }
}
