/*
 * FilmFeed.online — Ultra-Premium Design System v3
 * Palette: Deep Black + Emerald/Teal + Silver/White
 * No blue, yellow, red, or orange.
 */

/* ─── GOOGLE FONTS PRELOAD ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Syne:wght@400;500;600;700;800&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
    /* Core Palette */
    --bg-void:        #040508;
    --bg-dark:        #070a0f;
    --bg-surface:     #0d1117;
    --bg-elevated:    #131920;
    --bg-card:        #111720;

    /* Accent - Emerald / Teal  (NO blue/yellow/red/orange) */
    --emerald:        #10d9a0;
    --emerald-dim:    #0ea87b;
    --emerald-glow:   rgba(16, 217, 160, 0.18);
    --teal:           #00c9b8;
    --teal-glow:      rgba(0, 201, 184, 0.15);

    /* Silver / Platinum highlights */
    --silver:         #94a3b8;
    --silver-light:   #cbd5e1;
    --platinum:       #e2e8f0;

    /* Text */
    --text-primary:   #f1f5f9;
    --text-secondary: #8892a4;
    --text-muted:     #4a5568;

    /* Borders */
    --border:         rgba(255,255,255,0.06);
    --border-accent:  rgba(16, 217, 160, 0.2);

    /* Shadows */
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:      0 8px 24px rgba(0,0,0,0.5);
    --shadow-lg:      0 20px 60px rgba(0,0,0,0.7);
    --glow-emerald:   0 0 30px rgba(16, 217, 160, 0.25);
    --glow-teal:      0 0 20px rgba(0, 201, 184, 0.2);

    /* Timing */
    --ease-out:       cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast:       0.2s;
    --dur-mid:        0.38s;
    --dur-slow:       0.6s;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--emerald-dim) transparent;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--emerald-dim); border-radius: 10px; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ─── ANIMATED BACKGROUND ORBS ─── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% -10%, rgba(16, 217, 160, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 85% 110%, rgba(0, 201, 184, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(16, 217, 160, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
    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.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 16px rgba(16, 217, 160, 0.3); }
    50%       { box-shadow: 0 0 32px rgba(16, 217, 160, 0.6), 0 0 60px rgba(16, 217, 160, 0.15); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes float-orb {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes typing-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40%            { transform: scale(1); opacity: 1; }
}
@keyframes border-travel {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes hero-ken-burns {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

/* ─── UTILITY CLASSES ─── */
.animate-fade-up  { animation: fadeUp var(--dur-mid) var(--ease-out) forwards; }
.animate-fade-in  { animation: fadeIn var(--dur-mid) var(--ease-out) forwards; }
.animate-scale-in { animation: scaleIn var(--dur-mid) var(--ease-spring) forwards; }

/* Stagger delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }

/* ─── SKELETON LOADING ─── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: 8px;
}

/* ─── LAYOUT ─── */
.app-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ─── SIDEBAR ─── */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 240px;
    height: 100vh;
    background: rgba(7, 10, 15, 0.92);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform var(--dur-mid) var(--ease-out);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    opacity: 0.4;
}

.sidebar-logo {
    padding: 28px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.3px;
}

.logo-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #040508;
    flex-shrink: 0;
    box-shadow: var(--glow-emerald);
}

.logo-word {
    color: var(--text-primary);
}
.logo-word span {
    color: var(--emerald);
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 4px;
    transition: color var(--dur-fast);
}
.sidebar-close-btn:hover { color: var(--text-primary); }

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    scrollbar-width: none;
}
.sidebar-body::-webkit-scrollbar { display: none; }

/* Nav Groups */
.nav-group {
    margin-bottom: 24px;
}

.nav-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--dur-fast) var(--ease-out);
    position: relative;
    margin-bottom: 2px;
}

.nav-link i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    transition: all var(--dur-fast);
}

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

.nav-link.active {
    color: var(--emerald);
    background: rgba(16, 217, 160, 0.08);
}
.nav-link.active i {
    color: var(--emerald);
    filter: drop-shadow(0 0 6px rgba(16,217,160,0.5));
}
.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    border-radius: 0 4px 4px 0;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
}

/* Genre Chips in Sidebar */
.genre-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px;
}
.genre-chip {
    font-size: 0.73rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--dur-fast);
}
.genre-chip:hover, .genre-chip.active {
    background: rgba(16, 217, 160, 0.1);
    border-color: var(--border-accent);
    color: var(--emerald);
}

/* ─── MAIN CONTENT AREA ─── */
.main-area {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ─── TOP BAR ─── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(4, 5, 8, 0.6);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    transition: background var(--dur-fast), box-shadow var(--dur-fast);
}
.topbar.scrolled {
    background: rgba(4, 5, 8, 0.92);
    box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 38px; height: 38px;
    border-radius: 10px;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast);
}
.hamburger-btn:hover {
    border-color: var(--emerald);
    color: var(--emerald);
    background: var(--emerald-glow);
}

.topbar-logo { display: none; }

/* Search */
.topbar-search {
    position: relative;
    width: 280px;
}
.topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color var(--dur-fast);
}
.search-input {
    width: 100%;
    height: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 16px 0 40px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: all var(--dur-fast);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    outline: none;
    background: rgba(16, 217, 160, 0.04);
    border-color: var(--emerald-dim);
    box-shadow: 0 0 0 3px rgba(16, 217, 160, 0.08);
}
.search-input:focus ~ i { color: var(--emerald); }
.topbar-search:focus-within i { color: var(--emerald); }

/* ─── PAGE BODY ─── */
.page-body {
    flex: 1;
    padding: 28px 32px 48px;
}

/* ─── HERO SLIDER ─── */
.hero-slider {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    background: var(--bg-surface);
}

.hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s var(--ease-out);
}
.hero-slide.active { opacity: 1; }

.hero-slide-bg {
    position: absolute;
    inset: 0;
}
.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.06);
    transition: transform 9s var(--ease-out);
}
.hero-slide.active .hero-slide-bg img {
    transform: scale(1);
    animation: hero-ken-burns 9s var(--ease-out) forwards;
}
.hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4,5,8,0.97) 0%, rgba(4,5,8,0.7) 45%, transparent 100%),
        linear-gradient(0deg, rgba(4,5,8,0.9) 0%, transparent 50%);
}

.hero-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 55%;
    padding: 48px;
    z-index: 5;
}

.hero-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.hero-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid;
}
.badge-lang  { background: rgba(16,217,160,0.12); border-color: rgba(16,217,160,0.35); color: var(--emerald); }
.badge-qual  { background: rgba(203,213,225,0.08); border-color: rgba(203,213,225,0.25); color: var(--silver-light); }
.badge-sub   { background: rgba(0,201,184,0.1); border-color: rgba(0,201,184,0.3); color: var(--teal); }

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 60%, var(--silver-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--silver);
    font-size: 0.92rem;
    max-width: 440px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 28px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
.hero-arrow {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--silver);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--dur-fast);
}
.hero-arrow:hover {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #040508;
    box-shadow: var(--glow-emerald);
}
.hero-dots {
    display: flex;
    gap: 6px;
}
.hero-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: all var(--dur-fast);
}
.hero-dot.active {
    background: var(--emerald);
    width: 22px;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--emerald);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--dur-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    color: #040508;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(16,217,160,0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16,217,160,0.5);
}

.btn-outline {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(135deg, var(--emerald-dim), var(--teal));
    color: #040508;
    font-weight: 700;
    padding: 8px 18px;
    font-size: 0.82rem;
}
.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-emerald);
}
.btn-download:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ─── SECTION HEADINGS ─── */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.section-title i {
    color: var(--emerald);
    font-size: 1.1rem;
}
.section-see-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--dur-fast);
    opacity: 0.8;
}
.section-see-all:hover {
    opacity: 1;
    transform: translateX(3px);
}

/* ─── CONTENT SECTIONS ─── */
.content-section {
    margin-bottom: 48px;
}

/* ─── LANGUAGE CARDS ─── */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.lang-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/2;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    cursor: pointer;
    transition: all var(--dur-mid) var(--ease-spring);
}
.lang-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,217,160,0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--dur-fast);
}
.lang-card:hover::before { opacity: 1; }
.lang-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--border-accent);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), var(--glow-emerald);
}
.lang-card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--emerald);
    filter: drop-shadow(0 0 10px rgba(16,217,160,0.4));
    transition: all var(--dur-mid);
}
.lang-card:hover .lang-card-icon {
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 0 16px rgba(16,217,160,0.7));
}
.lang-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.lang-card p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ─── MOVIE CARDS GRID ─── */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.movie-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--dur-mid) var(--ease-spring);
    display: flex;
    flex-direction: column;
    position: relative;
}
.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-accent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), var(--glow-emerald);
    z-index: 2;
}

.movie-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-elevated);
}
.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.movie-card:hover .movie-card-poster img {
    transform: scale(1.1);
}

/* Card hover overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,5,8,0.9) 0%, rgba(4,5,8,0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity var(--dur-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}
.movie-card:hover .card-overlay { opacity: 1; }

.card-play-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--emerald);
    color: #040508;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transform: scale(0.7);
    transition: transform var(--dur-fast) var(--ease-spring);
    box-shadow: 0 0 24px rgba(16,217,160,0.6);
}
.movie-card:hover .card-play-icon { transform: scale(1); }

/* Card Badges */
.card-badges {
    position: absolute;
    top: 8px; left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}
.badge-pill {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}
.badge-pill.lang  { background: rgba(16,217,160,0.85); color: #040508; }
.badge-pill.qual  { background: rgba(203,213,225,0.85); color: #040508; }
.badge-pill.type  { background: rgba(0,201,184,0.85);   color: #040508; }

/* Card info */
.movie-card-info {
    padding: 10px 12px 12px;
}
.movie-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.movie-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.meta-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    text-transform: uppercase;
    background: rgba(16, 217, 160, 0.08);
    border: 1px solid var(--border-accent);
    color: var(--emerald);
}
.meta-tag.sub-tag {
    background: rgba(0, 201, 184, 0.08);
    border-color: rgba(0, 201, 184, 0.25);
    color: var(--teal);
}

/* ─── EMPTY STATE ─── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    color: var(--emerald-dim);
    opacity: 0.4;
    margin-bottom: 12px;
    display: block;
}

/* ─── MOVIE DETAIL PAGE ─── */
.detail-hero {
    position: relative;
    margin: -28px -32px 40px;
    overflow: hidden;
}
.detail-hero-bg {
    position: absolute;
    inset: 0;
}
.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: blur(2px) saturate(0.6);
    transform: scale(1.04);
}
.detail-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4,5,8,0.5) 0%, rgba(4,5,8,0.98) 90%),
        linear-gradient(90deg, rgba(4,5,8,0.9) 0%, transparent 60%);
}
.detail-hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    padding: 48px 32px 40px;
    align-items: end;
}

.detail-poster-wrap {
    animation: scaleIn 0.5s var(--ease-spring) forwards;
}
.detail-poster {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-accent);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), var(--glow-emerald);
    position: relative;
}
.detail-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}
.imdb-badge {
    position: absolute;
    bottom: 12px; left: 12px;
    background: rgba(4,5,8,0.85);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--emerald);
    backdrop-filter: blur(8px);
}

.detail-info {
    animation: fadeUp 0.5s var(--ease-out) 0.1s both;
}
.detail-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}
.detail-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 50%, var(--silver-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.detail-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--silver);
}
.detail-chip i { color: var(--emerald); font-size: 0.75rem; }
.detail-chip.spec {
    background: rgba(16,217,160,0.1);
    border-color: var(--border-accent);
    color: var(--emerald);
    font-weight: 700;
}

.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.genre-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(16,217,160,0.06);
    border: 1px solid var(--border-accent);
    color: var(--teal);
    transition: all var(--dur-fast);
}
.genre-pill:hover {
    background: rgba(16,217,160,0.14);
    color: var(--emerald);
}

.detail-synopsis {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
.detail-synopsis h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--emerald);
    margin-bottom: 8px;
}
.detail-synopsis p {
    font-size: 0.9rem;
    color: var(--silver);
    line-height: 1.75;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 28px;
}
.spec-card {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
.spec-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.spec-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ─── PLAYER SECTION ─── */
.player-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
}
.player-section-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-section-head h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}
.player-section-head i { color: var(--emerald); }

.player-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.player-server-list {
    border-right: 1px solid var(--border);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.player-server-list h4 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 8px 10px 4px;
}
.server-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    transition: all var(--dur-fast);
    width: 100%;
}
.server-btn:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border-color: var(--border);
}
.server-btn.active {
    background: rgba(16,217,160,0.08);
    border-color: var(--border-accent);
    color: var(--emerald);
}
.server-num {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--dur-fast);
}
.server-btn.active .server-num {
    background: var(--emerald);
    color: #040508;
    box-shadow: 0 0 10px rgba(16,217,160,0.4);
}
.server-info {
    flex: 1;
    min-width: 0;
}
.server-name { font-weight: 600; font-size: 0.82rem; }
.server-sub  { font-size: 0.68rem; color: var(--text-muted); margin-top: 1px; }

/* Player Screen */
.player-screen {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-void);
    min-height: 300px;
}

.player-splash {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-void);
}
.player-splash-bg {
    position: absolute;
    inset: 0;
}
.player-splash-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(10px);
}
.player-splash-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4,5,8,0.7);
}
.player-splash-content {
    position: relative; z-index: 5;
    text-align: center;
}
.splash-play-btn {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    border: none;
    color: #040508;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(16,217,160,0.5);
    transition: all var(--dur-fast) var(--ease-spring);
    animation: pulse-glow 2.5s ease-in-out infinite;
    margin-bottom: 12px;
}
.splash-play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 60px rgba(16,217,160,0.7);
}
.splash-text {
    font-size: 0.82rem;
    color: var(--silver);
}

.player-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-void);
    z-index: 10;
}
.spinner-ring {
    width: 48px; height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--emerald);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.player-loading p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

#playerIframe {
    display: none;
    width: 100%;
    height: 100%;
    border: none;
}

/* No Player Alert */
.no-player-alert {
    margin: 24px;
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(16,217,160,0.05);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--silver);
    font-size: 0.88rem;
}
.no-player-alert i { color: var(--emerald); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }

/* ─── DOWNLOADS TABLE ─── */
.downloads-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
}
.downloads-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.downloads-head h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}
.downloads-head i { color: var(--emerald); }

.dl-info-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(16,217,160,0.04);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--teal);
}
.dl-info-bar i { font-size: 0.9rem; flex-shrink: 0; }

.dl-table-wrap { overflow-x: auto; }
.dl-table {
    width: 100%;
    border-collapse: collapse;
}
.dl-table thead tr {
    background: rgba(255,255,255,0.02);
}
.dl-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    white-space: nowrap;
}
.dl-table td {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--silver);
}
.dl-table tr:hover td { background: rgba(255,255,255,0.015); }

.dl-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(16,217,160,0.1);
    border: 1px solid var(--border-accent);
    color: var(--emerald);
    font-size: 0.78rem;
    font-weight: 700;
}
.dl-server-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--silver);
    font-size: 0.78rem;
    font-weight: 600;
}
.dl-server-badge i { color: var(--teal); font-size: 0.75rem; }

/* ─── CAST SECTION ─── */
.cast-section {
    margin-bottom: 32px;
}
.cast-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.cast-scroll::-webkit-scrollbar { display: none; }
.cast-card {
    flex-shrink: 0;
    text-align: center;
    width: 90px;
}
.cast-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    border: 2px solid var(--border);
    transition: all var(--dur-fast);
}
.cast-card:hover .cast-avatar {
    border-color: var(--emerald);
    box-shadow: 0 0 16px rgba(16,217,160,0.3);
}
.cast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cast-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--silver);
    line-height: 1.3;
}

/* ─── TRAILER MODAL ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--dur-fast) var(--ease-out);
}
.modal-overlay.active { display: flex; }
.modal-box {
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), var(--glow-emerald);
    animation: scaleIn var(--dur-mid) var(--ease-spring);
}
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all var(--dur-fast);
}
.modal-close:hover { background: rgba(255,255,255,0.2); }
.modal-iframe-wrap { aspect-ratio: 16/9; }
.modal-iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ─── BROWSE / SEARCH PAGE ─── */
.page-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}
.page-count-badge {
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(16,217,160,0.1);
    border: 1px solid var(--border-accent);
    color: var(--emerald);
    font-weight: 600;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.filter-chip {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--dur-fast);
}
.filter-chip:hover, .filter-chip.active {
    background: rgba(16,217,160,0.1);
    border-color: var(--border-accent);
    color: var(--emerald);
}

/* Search Results Empty */
.search-empty {
    text-align: center;
    padding: 80px 20px;
}
.search-empty i {
    font-size: 4rem;
    color: var(--emerald);
    opacity: 0.2;
    display: block;
    margin-bottom: 16px;
}
.search-empty h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.search-empty p { color: var(--text-secondary); font-size: 0.9rem; }

/* ─── FOOTER ─── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px;
    background: var(--bg-dark);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
    margin-bottom: 24px;
}
.footer-brand .logo-mark { margin-bottom: 10px; }
.footer-brand p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.65;
}
.footer-links {
    display: flex;
    gap: 48px;
}
.footer-link-col h5 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.footer-link-col a {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color var(--dur-fast);
}
.footer-link-col a:hover { color: var(--emerald); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── SIDEBAR OVERLAY (mobile) ─── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 199;
}
.sidebar-overlay.active { display: block; }

/* ─── 404 PAGE ─── */
.not-found-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 70vh;
    text-align: center;
    gap: 16px;
    padding: 40px;
}
.not-found-page h1 {
    font-family: 'Syne', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--emerald);
    line-height: 1;
    filter: drop-shadow(0 0 30px rgba(16,217,160,0.4));
}
.not-found-page p { color: var(--silver); font-size: 1.05rem; }

/* ─── SCROLL ANIMATION OBSERVER ─── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── DOWNLOAD CARDS (v4) ─── */
.downloads-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
}
.downloads-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.downloads-head i { color: var(--emerald); font-size: 1.4rem; }
.downloads-head h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    flex: 1;
}
.dl-count-badge {
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--emerald-glow);
    border: 1px solid var(--border-accent);
    color: var(--emerald);
    font-weight: 700;
}

/* Filter tabs */
.dl-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.dl-filter-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--dur-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}
.dl-filter-btn:hover, .dl-filter-btn.active {
    background: var(--emerald-glow);
    border-color: var(--border-accent);
    color: var(--emerald);
}

/* Download Cards Grid */
.dl-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.dl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    transition: all var(--dur-fast);
    position: relative;
    overflow: hidden;
}
.dl-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald), var(--teal));
    opacity: 0;
    transition: opacity var(--dur-fast);
}
.dl-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.dl-card:hover::before { opacity: 1; }

.dl-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dl-server-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dl-server-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
}
.dl-server-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.dl-quality-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dl-quality-badge.q-fhd {
    background: rgba(16,217,160,0.15);
    border: 1px solid rgba(16,217,160,0.3);
    color: var(--emerald);
}
.dl-quality-badge.q-hd {
    background: rgba(0,201,184,0.12);
    border: 1px solid rgba(0,201,184,0.25);
    color: var(--teal);
}
.dl-quality-badge.q-sd {
    background: rgba(148,163,184,0.1);
    border: 1px solid rgba(148,163,184,0.2);
    color: var(--silver);
}
.dl-card-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.dl-card-size i { color: var(--emerald); opacity: 0.6; }

.dl-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-dl-main {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    color: #040508;
    border: none;
    cursor: pointer;
    transition: all var(--dur-fast);
    white-space: nowrap;
    text-decoration: none;
}
.btn-dl-main:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(16,217,160,0.4);
}
.btn-dl-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-dl-main.telegram {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
}
.btn-dl-main.telegram:hover {
    box-shadow: 0 4px 20px rgba(42,171,238,0.4);
}
.btn-dl-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--dur-fast);
    white-space: nowrap;
}
.btn-dl-alt:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.12);
}
.btn-dl-alt:disabled { opacity: 0.5; cursor: not-allowed; }

.dl-info-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.77rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    margin-top: 4px;
}
.dl-info-bar i { color: var(--emerald); opacity: 0.6; flex-shrink: 0; }

/* ─── DOWNLOAD TOAST ─── */
.dl-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    color: var(--emerald);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), var(--glow-emerald);
    animation: slideUpFade 0.3s var(--ease-spring);
    white-space: nowrap;
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── RESPONSIVE — TABLET ─── */
@media (max-width: 1100px) {
    .lang-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-content { width: 70%; padding: 36px; }
    .hero-title { font-size: 2.1rem; }
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        width: 260px;
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .main-area { grid-column: 1; }
    .hamburger-btn { display: flex; }
    .topbar-logo { display: flex; }
    .sidebar-close-btn { display: flex; }
    .page-body { padding: 20px 20px 40px; }
    .topbar { padding: 0 20px; }
    .topbar-search { width: 220px; }
    .detail-hero-content {
        grid-template-columns: 160px 1fr;
        padding: 36px 20px 32px;
        gap: 24px;
    }
    .detail-title { font-size: 1.8rem; }
    .player-layout { grid-template-columns: 180px 1fr; }
}

/* ─── RESPONSIVE — MOBILE ─── */
@media (max-width: 640px) {
    .hero-slider { height: 360px; border-radius: 14px; }
    .hero-content { width: 100%; padding: 20px; }
    .hero-title { font-size: 1.6rem; }
    .hero-desc { display: none; }
    .hero-controls { bottom: 16px; right: 16px; }

    .lang-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .movies-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .topbar { height: 56px; }
    .topbar-search { width: 180px; }
    .page-body { padding: 16px 16px 32px; }

    .detail-hero { margin: -16px -16px 28px; }
    .detail-hero-content {
        grid-template-columns: 1fr;
        padding: 24px 16px 20px;
    }
    .detail-poster-wrap { display: none; }
    .detail-title { font-size: 1.5rem; }

    .player-layout { grid-template-columns: 1fr; }
    .player-server-list {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    .server-btn { width: auto; flex-direction: column; gap: 4px; padding: 10px 12px; font-size: 0.75rem; }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 20px; }
    .dl-table th, .dl-table td { padding: 10px 14px; }

    .content-section { margin-bottom: 32px; }

    .dl-cards-grid { grid-template-columns: 1fr; }
    .dl-filter-tabs { gap: 6px; }
    .dl-filter-btn { font-size: 0.72rem; padding: 6px 10px; }
}

@media (max-width: 400px) {
    .movies-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-title { font-size: 1.4rem; }
    .topbar-search { width: 150px; }
}
