/* ═══════════════════════════════════════════
   VegaMovies — Cinematic Premium Theme
   ═══════════════════════════════════════════ */

:root {
    --red: #FF2D55;
    --red-mid: #E8194A;
    --red-dark: #B80E35;
    --violet: #7C5CFF;
    --bg: #030305;
    --bg-elevated: #0B0B10;
    --surface: rgba(18, 18, 26, 0.88);
    --surface-solid: #12121A;
    --surface-light: #242430;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --grey: #8B8B96;
    --grey-dark: #4A4A55;
    --text: #ECECF1;
    --text-muted: rgba(236, 236, 241, 0.72);
    --yellow: #FFC94A;
    --white: #FFFFFF;
    --stroke: rgba(255, 255, 255, 0.1);
    --divider: rgba(255, 255, 255, 0.06);
    --nav-height: 78px;
    --top-nav-height: 72px;
    --app-promo-tag-height: 56px;
    --app-promo-tag-strip: 0px;
    --page-gutter: 16px;
    --page-max: 1360px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 8px 32px rgba(255, 45, 85, 0.28);
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg);
}
html::-webkit-scrollbar { width: 5px; }
html::-webkit-scrollbar-track { background: var(--bg); }
html::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(255, 45, 85, 0.45); }

html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: cover; }
.lazy-img {
    opacity: 0;
    transition: opacity .35s var(--ease-out);
}
.lazy-img.is-loaded { opacity: 1; }
.lazy-backdrop:not(.is-loaded) { background-color: var(--surface-solid); }
.lazy-backdrop.is-loaded { transition: background-image .35s var(--ease-out); }
svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 0; flex-shrink: 0; }
button, input { font: inherit; }

/* Ambient background */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(124, 92, 255, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 5%, rgba(255, 45, 85, 0.14), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 45, 85, 0.08), transparent 60%),
        var(--bg);
}
.flixy-app {
    position: relative;
    overflow-x: clip;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--nav-height) + var(--app-promo-tag-strip) + var(--bottom-chrome-gap, 12px));
}
body.has-app-promo-tag {
    --app-promo-tag-strip: var(--app-promo-tag-height);
    --bottom-chrome-gap: 12px;
}
.flixy-app > main,
.flixy-app > .detail-page {
    flex: 1 0 auto;
    width: 100%;
}
.content-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}
.nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    background: linear-gradient(90deg, var(--red), var(--violet));
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}
.nav-progress.is-active {
    opacity: 1;
    transform: scaleX(0.45);
}
.nav-progress.is-done {
    opacity: 1;
    transform: scaleX(1);
    transition: transform .18s var(--ease-out), opacity .18s;
}
.watch-page { overflow-x: clip; }

/* ── App promo tag ── */
.app-promo-tag {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: linear-gradient(180deg, rgba(3, 3, 5, 0) 0%, rgba(3, 3, 5, 0.72) 18%, rgba(3, 3, 5, 0.96) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.app-promo-tag__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: var(--app-promo-tag-height);
    padding: 10px 16px;
    color: inherit;
    text-decoration: none;
}
.app-promo-tag__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-promo-tag__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.app-promo-tag__text {
    min-width: 0;
    font-size: .84rem;
    line-height: 1.4;
    color: rgba(236, 236, 241, 0.82);
}
.app-promo-tag__text strong {
    color: var(--white);
    font-weight: 700;
}
.app-promo-tag__cta {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), #ff4d6d);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(255, 45, 85, 0.35);
}
.app-promo-tag__inner:active .app-promo-tag__cta {
    transform: scale(0.98);
}
@media (min-width: 640px) {
    .app-promo-tag__inner {
        max-width: 720px;
        margin: 0 auto;
        padding-inline: 20px;
    }
    .app-promo-tag__text {
        font-size: .9rem;
    }
    .app-promo-tag__cta {
        font-size: .8rem;
        padding: 9px 18px;
    }
}

@media (max-width: 1023px) {
    body.flixy-app.has-app-promo-tag .app-promo-tag {
        bottom: calc(var(--nav-height) + 10px + env(safe-area-inset-bottom, 0px));
        padding-bottom: 0;
        z-index: 95;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
        background: linear-gradient(180deg, rgba(3, 3, 5, 0.88) 0%, rgba(3, 3, 5, 0.96) 100%);
    }

    body.flixy-app.has-app-promo-tag {
        padding-bottom: calc(
            var(--nav-height) + 10px + var(--app-promo-tag-height) + 24px + env(safe-area-inset-bottom, 0px)
        );
    }
}

@media (min-width: 1024px) {
    body.has-app-promo-tag .app-promo-tag {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    body.has-app-promo-tag {
        --app-promo-tag-strip: calc(var(--app-promo-tag-height) + env(safe-area-inset-bottom, 0px));
    }
}

body.watch-page.has-app-promo-tag {
    --app-promo-tag-strip: calc(var(--app-promo-tag-height) + env(safe-area-inset-bottom, 0px));
}

body.watch-page .app-promo-tag {
    z-index: 90;
}

/* ── Navigation ── */
.top-nav {
    display: none;
    position: sticky;
    top: 0;
    z-index: 120;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.top-nav:not(.is-scrolled) .top-nav__title,
.top-nav:not(.is-scrolled) .top-nav__link {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}
.top-nav.is-scrolled {
    background: rgba(3, 3, 5, 0.92);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: var(--divider);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.top-nav.is-scrolled .top-nav__title,
.top-nav.is-scrolled .top-nav__link {
    text-shadow: none;
}
    .top-nav__inner {
    max-width: var(--page-max);
    margin: 0 auto;
    min-height: var(--top-nav-height);
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.top-nav__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 30%, rgba(255, 255, 255, 0.75));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.top-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.top-nav__link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--grey);
    font-size: .9rem;
    font-weight: 600;
    transition: color .2s, background .2s, transform .2s var(--ease-out);
}
.top-nav__link:hover { color: var(--white); background: var(--glass); }
.top-nav__link.is-active {
    color: var(--white);
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.22), rgba(124, 92, 255, 0.12));
    box-shadow: inset 0 0 0 1px rgba(255, 45, 85, 0.25);
}
.top-nav__search {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    transition: background .2s, border-color .2s, transform .2s var(--ease-out);
}
.top-nav__search:hover {
    background: rgba(255, 45, 85, 0.12);
    border-color: rgba(255, 45, 85, 0.35);
    transform: scale(1.05);
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}
.bottom-nav__dock {
    pointer-events: auto;
    max-width: 420px;
    margin: 0 auto;
    height: var(--nav-height);
    background: rgba(12, 12, 18, 0.82);
    backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px;
}
.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--grey);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    min-height: 44px;
    border-radius: 16px;
    transition: color .2s, background .2s;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav__icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    transition: background .2s, transform .2s var(--ease-out);
}
.bottom-nav__icon svg { width: 20px; height: 20px; }
.bottom-nav__item.is-active { color: var(--red); }
.bottom-nav__item.is-active .bottom-nav__icon {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.25), rgba(124, 92, 255, 0.15));
    transform: translateY(-2px);
}

/* ── Layout ── */
.page {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: calc(var(--page-gutter) + env(safe-area-inset-top, 0px)) var(--page-gutter) 32px;
    overflow-x: clip;
}
.page-home { padding-top: calc(var(--page-gutter) + env(safe-area-inset-top, 0px)); }
.page-detail { overflow-x: clip; }
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    background: transparent;
}
.page-header .brand h1,
.page-header .page-header__tagline {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}
.page-header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.page-header--back h1 { flex: 1; }
.page-header__tagline {
    margin: 2px 0 0;
    font-size: .78rem;
    color: var(--grey);
    font-weight: 500;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.page-header .brand {
    overflow: visible;
}
.brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--violet));
    display: grid;
    place-items: center;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}
.brand__logo--default svg { width: 18px; height: 18px; margin-left: 2px; }
.brand__logo--glow { position: relative; }
.brand__logo--image {
    width: auto;
    height: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    display: block;
    flex-shrink: 1;
    overflow: visible;
}
.brand__logo--image img {
    display: block;
    width: auto;
    height: auto;
    max-height: 28px;
    max-width: min(140px, 54vw);
    object-fit: contain;
    object-position: left center;
}
.page-header--home .brand__logo--image img,
.page-header .brand__logo--image img {
    max-height: 26px;
    max-width: min(132px, 50vw);
}
.top-nav__brand .brand__logo--image img {
    max-height: 30px;
    max-width: 150px;
}
.top-nav__brand { flex: 0 1 auto; min-width: 0; }
.brand__logo--footer img,
.site-footer__brand .brand__logo--image img {
    max-height: 22px;
    max-width: 108px;
    margin: 0 auto;
    object-position: center center;
}
.brand h1 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }

/* ── Buttons ── */
.icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-solid);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: transform .2s var(--ease-out), background .2s, border-color .2s;
}
.icon-btn:hover { transform: scale(1.06); border-color: rgba(255, 45, 85, 0.4); }
.icon-btn--glass {
    background: rgba(12, 12, 18, 0.65);
    backdrop-filter: blur(12px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: transform .2s var(--ease-out), box-shadow .2s, background .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-mid) 50%, var(--red-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(255, 45, 85, 0.4); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}
.btn--glass { background: rgba(255, 255, 255, 0.08); }
.btn--glow { position: relative; overflow: hidden; }
.btn--glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .6s var(--ease-out);
}
.btn--glow:hover::after { transform: translateX(120%); }

.hero-fullbleed {
    width: 100%;
    margin-bottom: 32px;
    overflow: hidden;
}
.page-home .hero-fullbleed {
    margin-left: calc(var(--page-gutter) * -1);
    margin-right: calc(var(--page-gutter) * -1);
    width: calc(100% + var(--page-gutter) * 2);
}

/* ── Hero carousel (premium cinema) ── */
.hero-carousel {
    --hero-height: 300px;
    position: relative;
    margin-bottom: 0;
    border-radius: 20px;
    overflow: hidden;
    height: var(--hero-height);
    min-height: var(--hero-height);
    max-height: var(--hero-height);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    isolation: isolate;
}
.hero-carousel--cinema {
    border-left: 0;
    border-right: 0;
}
.hero-carousel__track {
    position: relative;
    height: 100%;
    min-height: 100%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.hero-slide__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-slide__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 22%;
}
.hero-slide__glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    z-index: 1;
    background:
        linear-gradient(0deg, rgba(255, 45, 85, 0.22) 0%, transparent 55%),
        linear-gradient(0deg, rgba(3, 3, 5, 0.92) 0%, transparent 70%);
    pointer-events: none;
}
.hero-slide__vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow:
        inset 0 0 140px rgba(0, 0, 0, 0.55),
        inset 0 -80px 100px rgba(3, 3, 5, 0.85);
}
.hero-slide__scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(105deg, rgba(3, 3, 5, 0.97) 0%, rgba(3, 3, 5, 0.72) 38%, rgba(3, 3, 5, 0.18) 68%, rgba(3, 3, 5, 0.42) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 42%),
        linear-gradient(180deg, rgba(3, 3, 5, 0.55) 0%, transparent 28%);
}
.hero-slide__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    height: 100%;
    min-height: 100%;
    padding: 16px var(--page-gutter) 64px;
    gap: 16px;
}
.hero-slide__content {
    max-width: 640px;
    padding: 18px 20px 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(14, 14, 20, 0.92), rgba(8, 8, 12, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero-slide__topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.hero-slide__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.65);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero-slide__eyebrow-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}
.hero-slide__badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 45, 85, 0.18);
    border: 1px solid rgba(255, 45, 85, 0.4);
    color: #ffb3c4;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-slide__title {
    margin: 8px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    background: linear-gradient(180deg, #fff 0%, rgba(236, 236, 241, 0.88) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-slide__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: .88rem;
}
.hero-slide__chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: .78rem;
}
.hero-slide__genres {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.hero-slide__story {
    margin: 0;
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.6;
    max-width: 540px;
}
.hero-slide__actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: 14px;
}
.hero-slide__actions .btn {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    font-size: .84rem;
}
.hero-slide__btn-watch {
    box-shadow: 0 10px 36px rgba(255, 45, 85, 0.35);
}
.hero-slide__poster-wrap {
    display: none;
}
.hero-slide__poster-card {
    position: relative;
    width: clamp(120px, 28vw, 168px);
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(255, 45, 85, 0.12);
    transform: rotate(2deg);
}
.hero-carousel__chrome {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 var(--page-gutter) 12px;
    pointer-events: none;
}
.hero-carousel__nav {
    display: none;
    justify-content: flex-end;
    gap: 10px;
    pointer-events: auto;
}
.hero-nav {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(8, 8, 12, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .25s var(--ease-out), border-color .25s, background .25s, box-shadow .25s;
}
.hero-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-nav:hover {
    transform: scale(1.06);
    border-color: rgba(255, 45, 85, 0.45);
    background: rgba(255, 45, 85, 0.15);
    box-shadow: 0 8px 24px rgba(255, 45, 85, 0.2);
}
.hero-carousel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: auto;
}
.hero-carousel__progress {
    display: flex;
    flex: 1;
    gap: 6px;
    max-width: min(520px, 72vw);
}
.hero-progress {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hero-progress__track {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}
.hero-progress__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), #ff7b9d);
}
.hero-progress.is-active .hero-progress__fill {
    width: 100%;
}
.hero-carousel__counter {
    flex-shrink: 0;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 201, 74, 0.14);
    border: 1px solid rgba(255, 201, 74, 0.32);
    font-weight: 700;
    font-size: .78rem;
    color: var(--yellow);
}
.rating-star::before { content: '★ '; }

/* ── Scroll rows (no visible scrollbar) ── */
.scroll-row-wrap {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 6px 0 2px;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(18, 18, 26, 0.78);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, background .2s, border-color .2s, transform .2s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}
.scroll-arrow svg { width: 20px; height: 20px; }
.scroll-arrow--prev { left: 6px; }
.scroll-arrow--next { right: 6px; }
.scroll-row-wrap.is-scrollable .scroll-arrow { opacity: 1; pointer-events: auto; }
.scroll-row-wrap.is-scrollable .scroll-arrow.is-hidden { opacity: 0; pointer-events: none; }
.scroll-arrow:hover {
    background: rgba(255, 45, 85, 0.22);
    border-color: rgba(255, 45, 85, 0.45);
    transform: scale(1.06);
}
.scroll-arrow--prev:hover { transform: scale(1.06); }
.scroll-arrow--next:hover { transform: scale(1.06); }
.scroll-row-wrap--tabs .scroll-arrow { top: 50%; margin-top: -18px; width: 36px; height: 36px; }
.page-home .scroll-row-wrap {
    margin: 0 calc(var(--page-gutter) * -1);
    padding: 6px var(--page-gutter) 2px;
}
.scroll-row-wrap::before,
.scroll-row-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    width: min(48px, 8vw);
    z-index: 3;
    pointer-events: none;
}
.scroll-row-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 15%, transparent);
}
.scroll-row-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg) 15%, transparent);
}

.poster-row,
.top10-row,
.season-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.poster-row::-webkit-scrollbar,
.top10-row::-webkit-scrollbar,
.season-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ── Sections ── */
.content-section {
    margin-bottom: 40px;
    overflow: hidden;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.section-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header__accent {
    width: 4px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--red), var(--violet));
    flex-shrink: 0;
}
.see-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--red);
    font-size: .88rem;
    font-weight: 700;
    transition: gap .2s var(--ease-out);
}
.see-all svg { width: 16px; height: 16px; }
.see-all:hover { gap: 8px; }

.reveal,
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ── Poster rows ── */
.poster-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(108px, 118px);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.poster-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.poster-card__image {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--glass-border);
    transition: transform .35s var(--ease-out), box-shadow .35s;
}
.poster-card:hover .poster-card__image {
    transform: scale(1.04);
    box-shadow: var(--shadow-glow);
}
.poster-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 3, 5, 0.85) 0%, transparent 55%);
    opacity: 0;
    display: grid;
    place-items: center;
    transition: opacity .3s;
}
.poster-card:hover .poster-card__overlay { opacity: 1; }
.poster-card__play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-glow);
    transform: scale(0.8);
    transition: transform .3s var(--ease-out);
}
.poster-card:hover .poster-card__play { transform: scale(1); }
.poster-card__play svg { width: 16px; height: 16px; margin-left: 2px; }
.poster-card__title {
    font-size: .8rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.poster-card:hover .poster-card__title { color: var(--white); }

/* ── Top 10 row (Netflix-style single line) ── */
.scroll-row-wrap--top10 {
    padding-top: 4px;
    padding-bottom: 4px;
}
.scroll-row-wrap--top10::before {
    display: none;
}

.top10-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.top10-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(128px, 19vw, 168px);
    height: clamp(168px, 26vw, 220px);
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
    overflow: visible;
    background: none;
    border: none;
    box-shadow: none;
}

.top10-card__rank {
    position: absolute;
    left: 0;
    bottom: 4px;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(4.8rem, 13vw, 7.5rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.06em;
    color: rgba(3, 3, 5, 0.15);
    -webkit-text-stroke: 1.5px rgba(255, 45, 85, 0.72);
    paint-order: stroke fill;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 18px rgba(255, 45, 85, 0.12));
}
.top10-card__rank--wide {
    font-size: clamp(3.8rem, 10vw, 6rem);
    letter-spacing: -0.08em;
}

.top10-card__poster {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(88px, 13.5vw, 118px);
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.9), rgba(12, 12, 18, 0.7));
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 45, 85, 0.06);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.top10-card__poster::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.12) 50%, transparent 62%);
    transform: translateX(-120%);
    transition: transform .65s var(--ease-out);
    pointer-events: none;
}
.top10-card:hover .top10-card__poster::after { transform: translateX(120%); }

.top10-card:hover .top10-card__poster {
    transform: translateY(-6px) scale(1.04);
    border-color: rgba(255, 45, 85, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 20px 44px rgba(0, 0, 0, 0.6),
        0 0 28px rgba(255, 45, 85, 0.22);
}

.top10-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(0deg, rgba(3, 3, 5, 0.88) 0%, transparent 58%);
    opacity: 0;
    display: grid;
    place-items: center;
    transition: opacity .3s;
}
.top10-card:hover .top10-card__overlay { opacity: 1; }

.top10-card__play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-glow);
    transform: scale(0.85);
    transition: transform .3s var(--ease-out);
}
.top10-card:hover .top10-card__play { transform: scale(1); }
.top10-card__play svg { width: 14px; height: 14px; margin-left: 2px; }

/* ── Media grid ── */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 132px));
    justify-content: start;
    gap: 16px 12px;
    overflow: hidden;
    transition: opacity .2s ease;
}
.media-grid.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
.media-card { display: flex; flex-direction: column; gap: 10px; }
.media-card__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--glass-border);
    transition: transform .35s var(--ease-out), box-shadow .35s;
}
.media-card:hover .media-card__poster {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}
.media-card__rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(8px);
    color: var(--yellow);
    font-size: .72rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 201, 74, 0.2);
    z-index: 2;
}
.media-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 3, 5, 0.9) 0%, rgba(3, 3, 5, 0.2) 100%);
    opacity: 0;
    display: grid;
    place-items: center;
    transition: opacity .3s;
    z-index: 1;
}
.media-card:hover .media-card__overlay { opacity: 1; }
.media-card__play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-glow);
    transform: scale(0.75);
    transition: transform .3s var(--ease-out);
}
.media-card:hover .media-card__play { transform: scale(1); }
.media-card__play svg { width: 18px; height: 18px; margin-left: 2px; }
.media-card__meta h3 {
    margin: 0;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.media-card__meta p { margin: 3px 0 0; color: var(--grey); font-size: .76rem; }

.poster-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--surface-solid), var(--surface-light));
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--grey);
}

/* ── Search ── */
.search-form { margin-bottom: 24px; }
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px 18px;
    transition: border-color .2s, box-shadow .2s;
}
.search-input-wrap:focus-within {
    border-color: rgba(255, 45, 85, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.1);
}
.search-input-wrap input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}
.filter-tabs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.filter-tab {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--grey);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.filter-tab.is-active,
.filter-tab:has(input:checked) {
    color: var(--white);
    border-color: rgba(255, 45, 85, 0.5);
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.18), rgba(124, 92, 255, 0.08));
}
.filter-tab input { display: none; }

/* ── Detail pages ── */
/* ── Detail page (full-bleed hero) ── */
.detail-page {
    overflow-x: clip;
    max-width: 100%;
}
.detail-hero-bleed {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}
.page-detail-body {
    padding-top: 8px;
}
.page-detail-body > .detail-info-layout:first-child {
    margin-top: 0;
}
.page-detail-body > .detail-info-layout {
    margin-bottom: 4px;
}
.page-detail-body > .content-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--divider);
}
.page-detail-body > .content-section .section-header {
    margin-bottom: 18px;
}
.page-detail-body .scroll-row-wrap {
    margin: 0;
    padding: 6px 0 2px;
}
.page-detail-body .scroll-row-wrap::before,
.page-detail-body .scroll-row-wrap::after { display: none; }

.detail-hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: clamp(300px, 58vw, 440px);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 3, 5, 0.94) 0%, rgba(3, 3, 5, 0.55) 42%, rgba(3, 3, 5, 0.15) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(3, 3, 5, 0.82) 22%, transparent 52%),
        linear-gradient(180deg, rgba(3, 3, 5, 0.55) 0%, transparent 28%);
}
.detail-hero__top,
.detail-hero__body {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--page-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}
.detail-hero__top {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 0;
}
.detail-hero__body {
    display: grid;
    grid-template-columns: minmax(100px, 130px) 1fr;
    grid-template-areas:
        "poster info"
        "poster actions";
    gap: 12px 20px;
    padding-top: 8px;
    padding-bottom: 20px;
    align-items: end;
}
.detail-poster {
    grid-area: poster;
    align-self: end;
}
.detail-hero__info {
    grid-area: info;
    align-self: end;
}
.detail-hero__body > .detail-actions {
    grid-area: actions;
    align-self: start;
    margin-top: 0;
}
.detail-poster {
    aspect-ratio: 2 / 3;
    width: 100%;
    max-width: 160px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow), var(--shadow-glow);
    border: 2px solid rgba(255, 255, 255, 0.08);
}
.detail-hero__info { min-width: 0; }
.detail-hero__info h1 {
    margin: 10px 0;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    word-break: break-word;
}
.badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.2), rgba(124, 92, 255, 0.1));
    border: 1px solid rgba(255, 45, 85, 0.3);
    color: #ff8fa8;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.detail-meta,
.detail-genres { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: .9rem; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn--watchlist.is-active {
    border-color: rgba(255, 45, 85, 0.55);
    background: rgba(255, 45, 85, 0.14);
    color: var(--white);
}
.btn--watchlist:disabled { opacity: 0.7; cursor: wait; }
.icon-btn.is-active {
    border-color: rgba(255, 45, 85, 0.55);
    color: var(--red);
}

/* ── Detail info panels ── */
.detail-info-layout {
    display: grid;
    gap: 14px;
}
.detail-panel {
    background: linear-gradient(165deg, rgba(16, 16, 22, 0.92), rgba(8, 8, 12, 0.88));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 18px;
}
.detail-panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.detail-panel__accent {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    flex-shrink: 0;
}
.detail-panel__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.detail-story {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: .88rem;
}
.detail-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}
.fact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin: 0;
}
.fact-item--wide { grid-column: 1 / -1; }
.fact-item__label,
.fact-item dt {
    margin: 0;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(236, 236, 241, 0.55);
}
.fact-item__value,
.fact-item dd {
    margin: 0;
    font-size: .84rem;
    color: var(--white);
    line-height: 1.4;
    word-break: break-word;
}
.cast-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cast-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 0, 0, 0.07);
    border: 1px solid rgba(255, 0, 0, 0.18);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color .2s, background .2s;
}
.cast-chip:hover {
    border-color: rgba(255, 0, 0, 0.35);
    background: rgba(255, 0, 0, 0.12);
}
.detail-panel--episodes {
    overflow: hidden;
}
.detail-panel--episodes .scroll-row-wrap--tabs {
    margin: 0 -2px 4px;
    padding: 0 2px 2px;
}
.detail-panel--episodes .season-tabs {
    margin-bottom: 0;
}

/* ── Episodes ── */
.season-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--grey);
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.season-tab.is-active {
    color: var(--white);
    border-color: rgba(255, 45, 85, 0.55);
    background: rgba(255, 45, 85, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.08);
}
.season-panel { display: none; }
.season-panel.is-active { display: block; }

.episode-list--rich {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.episode-card {
    display: grid;
    grid-template-columns: minmax(0, 128px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 10px;
    color: inherit;
    transition: border-color .25s, background .25s, box-shadow .25s;
}
@media (hover: hover) {
    .episode-card:hover {
        border-color: rgba(255, 45, 85, 0.38);
        background: rgba(255, 45, 85, 0.04);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    }
}
.episode-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-light);
    flex-shrink: 0;
}
.episode-card__num {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(12, 12, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 45, 85, 0.35);
    color: #ff8fa8;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .72rem;
    line-height: 1;
    pointer-events: none;
}
.episode-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(12, 12, 18, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
    pointer-events: none;
    transition: background .2s, border-color .2s, transform .2s var(--ease-out);
}
@media (hover: hover) {
    .episode-card:hover .episode-card__play {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.34);
        transform: translate(-50%, -50%) scale(1.05);
    }
}
.episode-card__play svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-left: 2px;
}
.episode-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 1px;
}
.episode-card__title {
    margin: 0;
    line-height: 1.35;
    font-size: .92rem;
    font-weight: 700;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.episode-card__date {
    display: block;
    color: rgba(236, 236, 241, 0.58);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.episode-card__desc {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.episode-list { display: grid; gap: 10px; }
.episode-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px;
}
.episode-item--link { transition: border-color .2s, background .2s; }
.episode-item--link:hover { border-color: rgba(255, 45, 85, 0.4); background: rgba(255, 45, 85, 0.06); }
.episode-item__num { color: var(--red); font-weight: 800; }
.episode-item p { margin: 4px 0 0; color: var(--grey); font-size: .84rem; }

.language-list { display: grid; gap: 10px; }
.language-item {
    display: flex;
    align-items: center;
    padding: 18px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 600;
    transition: border-color .2s;
}
.language-item.is-active { border-color: rgba(255, 45, 85, 0.5); background: rgba(255, 45, 85, 0.08); }
.language-item input { margin-right: 12px; accent-color: var(--red); }

/* ── States ── */
.empty-state,
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--grey);
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    border-radius: 20px;
}
.error-state__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.2), rgba(124, 92, 255, 0.1));
    color: var(--red);
    font-weight: 800;
    font-size: 1.5rem;
}

.load-more-wrap { display: flex; justify-content: center; margin: 28px 0; }

/* ── Site footer ── */
.site-footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    padding: 24px var(--page-gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--divider);
    background: rgba(8, 8, 12, 0.92);
}
.site-footer__inner {
    max-width: var(--page-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.site-footer__tagline {
    margin: 0;
    color: var(--grey);
    font-size: .76rem;
    font-weight: 500;
}
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
}
.site-footer__links a {
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: color .2s, border-color .2s, background .2s;
}
.site-footer__links a:hover {
    color: var(--white);
    border-color: rgba(255, 0, 0, 0.25);
    background: rgba(255, 0, 0, 0.08);
}
.site-footer__copy {
    margin: 0;
    color: rgba(236, 236, 241, 0.32);
    font-size: .72rem;
}

/* Mobile / tablet: bottom nav replaces footer chrome */
@media (max-width: 1023px) {
    .site-footer {
        display: none;
    }
}

/* ── Watch / Trailer ── */
.watch-page {
    margin: 0;
    background: #000;
    color: var(--text);
    min-height: 100vh;
    --watch-header-height: calc(56px + env(safe-area-inset-top, 0px));
}
.watch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    background: rgba(3, 3, 5, 0.95);
    border-bottom: 1px solid var(--divider);
    min-height: var(--watch-header-height);
    box-sizing: border-box;
}
.watch-header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.watch-frame-wrap {
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--watch-header-height) - var(--app-promo-tag-strip));
    min-height: 240px;
    background: #000;
    overflow: hidden;
}
.watch-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    opacity: 0;
    transition: opacity .35s ease;
}
.watch-frame-wrap.is-ready .watch-frame,
.watch-frame-wrap:not(:has(.watch-loader)) .watch-frame {
    opacity: 1;
}
.watch-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}
.watch-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.watch-loader__backdrop {
    position: absolute;
    inset: -24px;
    background-color: #08080c;
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.15);
    transform: scale(1.08);
}
.watch-loader__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 45, 85, 0.12) 0%, transparent 42%),
        linear-gradient(180deg, rgba(3, 3, 5, 0.55) 0%, rgba(3, 3, 5, 0.82) 48%, rgba(3, 3, 5, 0.94) 100%);
}
.watch-loader__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: min(100%, 320px);
    padding: 24px 20px;
    text-align: center;
}
.watch-loader__poster {
    width: 112px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.watch-loader__poster img,
.watch-loader__poster .poster-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.watch-loader__spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--red);
    animation: spin .75s linear infinite;
}
.watch-loader__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.watch-loader__hint {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(236, 236, 241, 0.62);
}
.watch-loader:not(:has(.watch-loader__poster)) .watch-loader__spinner {
    width: 52px;
    height: 52px;
}
.spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--red);
    animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tablet ── */
@media (min-width: 640px) {
    :root { --page-gutter: 22px; }

    .page-header h1 { font-size: 1.6rem; }
    .hero-carousel { --hero-height: 340px; }
    .hero-slide__inner { padding-inline: 22px; padding-bottom: 68px; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 148px)); }
    .episode-card { grid-template-columns: minmax(0, 148px) minmax(0, 1fr); }
}

@media (min-width: 768px) {
    :root { --page-gutter: 28px; }

    .detail-hero__body { grid-template-columns: 160px 1fr; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 160px)); gap: 20px 16px; }
    .poster-row { grid-auto-columns: 128px; }
    .top10-card { width: clamp(136px, 18vw, 172px); }
    .top10-card__poster { width: clamp(92px, 12.5vw, 120px); }
}

/* ── Home hero behind mobile header ── */
@media (max-width: 1023px) {
    :root { --home-header-height: 58px; }

    .is-home.has-hero.page-home {
        position: relative;
        padding-top: 0;
    }
    .is-home.has-hero .page-header--home {
        position: absolute;
        top: 0;
        left: calc(-1 * var(--page-gutter));
        right: calc(-1 * var(--page-gutter));
        z-index: 15;
        margin: 0;
        padding: calc(10px + env(safe-area-inset-top, 0px)) calc(var(--page-gutter) + 8px) 0 calc(var(--page-gutter) + 8px);
        background: transparent;
    }
    .is-home.has-hero .page-header--home .brand h1,
    .is-home.has-hero .page-header--home .page-header__tagline {
        text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
    }
    .is-home.has-hero .hero-carousel {
        --hero-height: calc(360px + var(--home-header-height) + env(safe-area-inset-top, 0px));
    }
    .is-home.has-hero .hero-slide__inner {
        padding-top: calc(var(--home-header-height) + env(safe-area-inset-top, 0px) + 8px);
    }
    .is-home.has-hero .hero-slide__scrim {
        background:
            linear-gradient(180deg, rgba(3, 3, 5, 0.22) 0%, transparent 20%),
            linear-gradient(0deg, rgba(3, 3, 5, 0.97) 0%, rgba(3, 3, 5, 0.72) 32%, rgba(3, 3, 5, 0.2) 62%, rgba(3, 3, 5, 0.35) 100%),
            linear-gradient(90deg, rgba(3, 3, 5, 0.55) 0%, transparent 70%);
    }
    .is-home.has-hero .hero-slide__backdrop {
        background-position: center 24%;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .is-home.has-hero .hero-carousel {
        --hero-height: calc(340px + var(--home-header-height) + env(safe-area-inset-top, 0px));
    }
    .is-home.has-hero .hero-slide__inner {
        padding-top: calc(var(--home-header-height) + env(safe-area-inset-top, 0px) + 16px);
    }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
    :root { --page-gutter: 32px; --page-max: 1440px; }

    .flixy-app { padding-bottom: calc(var(--app-promo-tag-strip) + 24px); }

    .top-nav { display: block; }
    .bottom-nav { display: none; }

    .page-home .page-header { display: none; }
    .page-home { padding-top: 0; }
    .page:not(.page-home):not(.page-detail-body) { padding-top: 32px; }

    .detail-page .detail-hero-bleed {
        margin-top: calc(-1 * var(--top-nav-height));
    }
    .detail-page .detail-hero {
        min-height: calc(480px + var(--top-nav-height));
    }
    .detail-hero__top {
        display: none;
    }

    .page-detail-body {
        padding-top: 24px;
        padding-bottom: 40px;
    }
    .page-detail-body > .content-section {
        margin-top: 48px;
        padding-top: 32px;
    }
    .page-detail-body > .content-section .section-header {
        margin-bottom: 20px;
    }
    .detail-info-layout {
        gap: 20px;
    }
    .detail-info-layout--movie {
        grid-template-columns: 1fr 360px;
        grid-template-areas:
            "story story"
            "facts cast";
        align-items: start;
    }
    .detail-info-layout--movie .detail-panel--story { grid-area: story; }
    .detail-info-layout--movie .detail-panel--facts { grid-area: facts; }
    .detail-info-layout--movie .detail-panel--cast { grid-area: cast; }

    .detail-info-layout--series {
        grid-template-columns: 1fr 340px;
        grid-template-areas:
            "story story"
            "episodes episodes"
            "facts cast";
        align-items: start;
    }
    .detail-info-layout--series .detail-panel--story { grid-area: story; }
    .detail-info-layout--series .detail-panel--episodes { grid-area: episodes; }
    .detail-info-layout--series .detail-panel--facts { grid-area: facts; }
    .detail-info-layout--series .detail-panel--cast { grid-area: cast; }

    .detail-panel {
        padding: 22px 24px;
        border-radius: 20px;
    }
    .detail-panel__head h2 {
        font-size: 1.08rem;
    }
    .detail-story {
        font-size: .96rem;
        line-height: 1.75;
        max-width: 72ch;
    }
    .detail-facts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .is-home.has-hero .hero-fullbleed {
        margin-top: calc(-1 * var(--top-nav-height));
    }
    .is-home.has-hero .hero-carousel {
        --hero-height: calc(440px + var(--top-nav-height));
    }
    .is-home.has-hero .hero-slide__inner {
        padding-top: calc(32px + var(--top-nav-height));
    }
    .is-home.has-hero .hero-slide__scrim {
        background:
            linear-gradient(180deg, rgba(3, 3, 5, 0.18) 0%, transparent 22%),
            linear-gradient(105deg, rgba(3, 3, 5, 0.97) 0%, rgba(3, 3, 5, 0.72) 38%, rgba(3, 3, 5, 0.18) 68%, rgba(3, 3, 5, 0.42) 100%),
            linear-gradient(0deg, var(--bg) 0%, transparent 42%);
    }
    .is-home.has-hero .hero-slide__backdrop {
        background-position: center 28%;
    }

    .page-home .hero-fullbleed {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 16px;
    }
    .page-home .content-section:first-of-type .section-header {
        margin-bottom: 10px;
    }
    .page-home .scroll-row-wrap--top10 {
        margin-top: 0;
        padding-top: 0;
    }
    .page-home .top10-row {
        align-items: flex-start;
    }
    .page-home .top10-card {
        height: clamp(150px, 15vw, 196px);
    }
    .page-home .top10-card__poster {
        top: 0;
        bottom: auto;
    }
    .page-home {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }
    .page-home .content-section,
    .page-home .page-header--home {
        max-width: var(--page-max);
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }
    .hero-carousel--cinema { border-radius: 0; border: none; }
    .hero-carousel { --hero-height: 440px; }
    .site-footer {
        padding: 28px var(--page-gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    }
    .site-footer__inner {
        gap: 16px;
    }
    .site-footer__links {
        gap: 8px 12px;
    }
    .brand__logo--footer img,
    .site-footer__brand .brand__logo--image img {
        max-height: 24px;
        max-width: 118px;
    }
    .hero-slide__inner {
        grid-template-columns: minmax(0, 1.15fr) auto;
        align-items: center;
        width: 100%;
        max-width: var(--page-max);
        margin-left: auto;
        margin-right: auto;
        padding: 32px var(--page-gutter) 76px;
        gap: 32px;
    }
    .hero-slide__content {
        max-width: none;
        padding: 22px 24px 24px;
    }
    .hero-slide__actions .btn {
        flex: 0 1 auto;
        min-width: 132px;
        padding: 12px 22px;
        font-size: .92rem;
        white-space: nowrap;
    }
    .hero-slide__btn-watch svg {
        flex-shrink: 0;
    }
    .hero-slide__poster-wrap {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .hero-slide__poster-card {
        width: clamp(148px, 14vw, 190px);
    }
    .hero-carousel__nav { display: flex; }
    .hero-carousel__chrome {
        width: 100%;
        max-width: var(--page-max);
        margin-left: auto;
        margin-right: auto;
        padding: 0 var(--page-gutter) 20px;
    }
    .hero-carousel__progress { max-width: 640px; }
    .hero-slide__story {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .media-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 180px)); }
    .poster-row { grid-auto-columns: 140px; gap: 18px; }
    .top10-row { gap: 6px; }
    .top10-card { width: clamp(148px, 14vw, 180px); height: clamp(190px, 22vw, 240px); }
    .top10-card__rank { font-size: clamp(5.5rem, 8vw, 8.5rem); }
    .top10-card__poster { width: clamp(100px, 9.5vw, 128px); }

    .detail-hero {
        min-height: 480px;
    }
    .detail-hero__body {
        grid-template-columns: 200px 1fr;
        gap: 28px;
        padding-bottom: 24px;
    }
    .detail-poster { max-width: 200px; }
    .detail-hero__info h1 { font-size: 2.4rem; }

    .episode-card { grid-template-columns: minmax(0, 172px) minmax(0, 1fr); }
    .language-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

@media (min-width: 1280px) {
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 196px)); }
}

/* ── Small phones ── */
@media (max-width: 380px) {
    :root { --page-gutter: 14px; --nav-height: 72px; }

    .brand h1 { font-size: 1.12rem; }
    .page-header h1 { font-size: 1.16rem; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 124px)); gap: 12px 10px; }
    .hero-carousel { --hero-height: 340px; }
    .is-home.has-hero .hero-carousel {
        --hero-height: calc(340px + var(--home-header-height) + env(safe-area-inset-top, 0px));
    }
    .hero-slide__poster-card { width: 74px; }
    .hero-slide__inner { grid-template-columns: minmax(0, 1fr) 74px; padding: 12px 14px 36px; }
    .hero-slide__title { font-size: 1.18rem; }
    .hero-slide__badge { font-size: .64rem; }
    .hero-slide__chip,
    .rating-pill { font-size: .72rem; }
    .top10-row { padding-left: 12px; }
    .top10-card { width: 112px; height: 132px; flex: 0 0 112px; }
    .top10-card__poster { width: 88px; height: 132px; }
    .top10-card__rank { font-size: 3.4rem; }
    .poster-row {
        grid-auto-columns: minmax(116px, 124px);
    }
    .detail-hero { min-height: clamp(400px, 102vw, 480px); }
    .detail-hero__body { grid-template-columns: 100px 1fr; gap: 12px 14px; }
    .detail-poster { max-width: 100px; }
    .detail-hero__info h1 { font-size: 1.22rem; }
    .detail-actions .btn { min-height: 46px; font-size: .8rem; }
    .episode-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }
    .episode-card__thumb {
        width: 100%;
    }
    .bottom-nav__dock { border-radius: 20px; }
}

@media (max-width: 560px) {
    .episode-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .episode-card__thumb {
        width: 100%;
    }
    .episode-card__title {
        font-size: .88rem;
    }
    .episode-card__desc {
        -webkit-line-clamp: 4;
    }
    .search-input-wrap input { font-size: 16px; }
    .poster-card:hover .poster-card__image,
    .media-card:hover .media-card__poster,
    .top10-card:hover .top10-card__poster { transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.55); }
    .top10-card:hover .top10-card__poster::after { transform: translateX(-120%); }
    .poster-card__overlay,
    .media-card__overlay,
    .top10-card__overlay { display: none; }
    .top10-row { gap: 8px; }
    .scroll-arrow { width: 34px; height: 34px; margin-top: -17px; }
    .scroll-arrow svg { width: 16px; height: 16px; }
    .scroll-arrow--prev { left: 2px; }
    .scroll-arrow--next { right: 2px; }
}

@media (max-width: 767px) {
    :root {
        --page-gutter: 16px;
        --nav-height: 74px;
        --radius: 12px;
    }

    .page {
        padding: calc(10px + env(safe-area-inset-top, 0px)) var(--page-gutter) 20px;
    }
    .page-home {
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
    }
    .is-home.has-hero.page-home {
        padding-top: 0;
    }
    .page-header {
        margin-bottom: 12px;
        gap: 10px;
    }
    .page-header h1 {
        font-size: 1.28rem;
    }
    .page-header__tagline {
        font-size: .78rem;
    }
    .brand {
        gap: 8px;
    }
    .brand h1 {
        font-size: 1.12rem;
    }
    .brand__logo:not(.brand__logo--image) {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }
    .brand__logo--image img {
        max-height: 24px;
        max-width: min(128px, 48vw);
    }
    .page-header--home .brand__logo--image img,
    .page-header .brand__logo--image img {
        max-height: 22px;
        max-width: min(120px, 46vw);
    }
    .icon-btn {
        width: 42px;
        height: 42px;
    }

    .btn {
        min-height: 46px;
        padding: 11px 18px;
        font-size: .9rem;
        gap: 7px;
    }
    .btn svg {
        width: 17px;
        height: 17px;
    }

    .content-section {
        margin-bottom: 22px;
        contain-intrinsic-size: auto 220px;
    }
    .section-header {
        margin-bottom: 8px;
        gap: 8px;
    }
    .section-header h2 {
        font-size: 1.04rem;
        gap: 8px;
    }
    .section-header__accent {
        height: 16px;
    }
    .see-all {
        font-size: .78rem;
    }
    .see-all svg {
        width: 14px;
        height: 14px;
    }

    .scroll-row-wrap {
        padding: 2px 0 0;
    }
    .page-home .scroll-row-wrap {
        padding: 2px var(--page-gutter) 0;
    }
    .poster-row {
        grid-auto-columns: minmax(124px, 132px);
        gap: 12px;
        padding: 4px 0 8px;
    }
    .poster-card {
        gap: 8px;
    }
    .poster-card__title {
        font-size: .8rem;
        line-height: 1.35;
    }
    .scroll-row-wrap--top10 {
        padding: 0;
    }
    .top10-row {
        align-items: flex-start;
        gap: 10px;
        padding: 0 4px 6px 14px;
    }
    .top10-card {
        width: 120px;
        height: 142px;
        flex: 0 0 120px;
    }
    .top10-card__rank {
        bottom: 0;
        font-size: 3.6rem;
        line-height: 0.78;
    }
    .top10-card__rank--wide {
        font-size: 2.8rem;
        letter-spacing: -0.07em;
    }
    .top10-card__poster {
        top: 0;
        bottom: auto;
        right: 0;
        width: 94px;
        height: 142px;
        aspect-ratio: 2 / 3;
        border-radius: 10px;
    }
    .page-home .content-section {
        margin-bottom: 18px;
        contain-intrinsic-size: auto 128px;
    }
    .page-home .scroll-row-wrap--top10 {
        margin-top: 0;
        padding: 0;
    }

    .media-grid {
        gap: 14px 12px;
        grid-template-columns: repeat(auto-fill, minmax(118px, 132px));
    }
    .media-card {
        gap: 6px;
    }
    .media-card__meta h3 {
        font-size: .84rem;
    }
    .media-card__meta p {
        font-size: .76rem;
        margin-top: 2px;
    }
    .media-card__rating {
        font-size: .66rem;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }

    .search-form {
        margin-bottom: 14px;
    }
    .search-input-wrap {
        gap: 8px;
        padding: 10px 14px;
        border-radius: 12px;
    }
    .search-input-wrap input {
        font-size: .92rem;
    }
    .filter-tabs {
        margin-top: 10px;
        gap: 6px;
    }
    .filter-tab {
        padding: 9px 14px;
        font-size: .86rem;
    }

    .detail-hero {
        min-height: clamp(420px, 98vw, 520px);
        justify-content: space-between;
        background-position: center 20%;
    }
    .detail-hero::before {
        background:
            linear-gradient(90deg, rgba(3, 3, 5, 0.78) 0%, rgba(3, 3, 5, 0.42) 48%, rgba(3, 3, 5, 0.18) 100%),
            linear-gradient(0deg, var(--bg) 0%, rgba(3, 3, 5, 0.9) 28%, rgba(3, 3, 5, 0.45) 50%, transparent 68%),
            linear-gradient(180deg, rgba(3, 3, 5, 0.42) 0%, transparent 24%);
    }
    .detail-hero__top {
        padding: calc(10px + env(safe-area-inset-top, 0px)) calc(var(--page-gutter) + 6px) 0;
        flex-shrink: 0;
    }
    .detail-hero__body {
        gap: 14px 16px;
        padding-top: 14px;
        padding-bottom: 22px;
        margin-top: auto;
        grid-template-columns: 108px 1fr;
        grid-template-areas:
            "poster info"
            "actions actions";
        align-items: start;
    }
    .detail-poster {
        max-width: 108px;
        border-radius: 12px;
        border-width: 1px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    }
    .detail-hero__info h1 {
        margin: 6px 0 8px;
        font-size: 1.34rem;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }
    .badge {
        padding: 4px 10px;
        font-size: .64rem;
    }
    .detail-meta,
    .detail-genres {
        gap: 6px;
        font-size: .78rem;
        line-height: 1.4;
    }
    .detail-genres {
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .detail-hero__body > .detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 6px;
    }
    .detail-hero__body > .detail-actions > .btn:first-child {
        grid-column: 1 / -1;
    }
    .detail-hero__body > .detail-actions > .btn:nth-child(2):last-child {
        grid-column: 1 / -1;
    }
    .detail-actions .btn {
        width: 100%;
        min-height: 48px;
        padding: 10px 14px;
        font-size: .82rem;
        gap: 6px;
        justify-content: center;
        border-radius: 14px;
    }
    .detail-actions .btn svg {
        width: 16px;
        height: 16px;
    }
    .detail-actions .btn--watchlist span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-detail-body {
        padding-top: 4px;
        padding-bottom: 16px;
    }
    .page-detail-body > .content-section {
        margin-top: 28px;
        padding-top: 22px;
    }
    .page-detail-body > .content-section .section-header {
        margin-bottom: 12px;
    }
    .detail-info-layout {
        gap: 10px;
    }
    .detail-panel {
        padding: 14px 16px;
        border-radius: 14px;
    }
    .detail-panel__head {
        margin-bottom: 8px;
        gap: 8px;
    }
    .detail-panel__head h2 {
        font-size: .92rem;
    }
    .detail-panel__accent {
        height: 16px;
    }
    .detail-story {
        font-size: .82rem;
        line-height: 1.6;
    }
    .detail-facts-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .fact-item {
        padding: 9px 10px;
        border-radius: 10px;
    }
    .fact-item__label,
    .fact-item dt {
        font-size: .68rem;
    }
    .fact-item__value,
    .fact-item dd {
        font-size: .82rem;
    }
    .cast-chip {
        padding: 6px 11px;
        font-size: .76rem;
    }

    .season-tabs {
        margin-bottom: 10px;
        padding-bottom: 6px;
        gap: 6px;
    }
    .season-tab {
        padding: 7px 12px;
        font-size: .8rem;
    }
    .episode-list--rich {
        gap: 8px;
    }
    .episode-card {
        gap: 10px;
        padding: 10px;
        border-radius: 12px;
    }
    .episode-card__num {
        min-width: 22px;
        height: 22px;
        font-size: .68rem;
        top: 5px;
        left: 5px;
    }
    .episode-card__title {
        font-size: .84rem;
    }
    .episode-card__date {
        font-size: .66rem;
    }
    .episode-card__desc {
        font-size: .74rem;
        line-height: 1.45;
        -webkit-line-clamp: 3;
    }
    .episode-item {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 12px;
    }
    .episode-item p {
        font-size: .78rem;
    }

    .language-item {
        padding: 12px 14px;
        font-size: .86rem;
        border-radius: 12px;
    }

    .bottom-nav {
        padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px));
    }
    .bottom-nav__dock {
        border-radius: 20px;
        padding: 6px 8px;
        max-width: 460px;
    }
    .bottom-nav__item {
        font-size: .72rem;
        gap: 4px;
        min-height: 48px;
        border-radius: 14px;
    }
    .bottom-nav__icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }
    .bottom-nav__icon svg {
        width: 22px;
        height: 22px;
    }

    .empty-state,
    .error-state {
        padding: 32px 16px;
        border-radius: 14px;
        font-size: .86rem;
    }
    .load-more-wrap {
        margin: 18px 0;
    }

    .page-home .page-header {
        margin-bottom: 10px;
        padding-bottom: 0;
        padding-left: 8px;
        padding-right: 8px;
    }
    .is-home.has-hero .page-header--home {
        margin-bottom: 0;
    }
    .page-home .page-header__tagline {
        font-size: .68rem;
        opacity: 0.85;
    }
    .page-home .content-section:first-of-type .section-header {
        margin-bottom: 4px;
    }
    .page-home .hero-fullbleed {
        margin-bottom: 8px;
        padding: 0;
    }
    .hero-carousel {
        --hero-height: 360px;
        border-radius: 12px;
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    }
    .hero-carousel--cinema {
        border-radius: 12px;
    }
    .hero-slide__inner {
        grid-template-columns: minmax(0, 1fr) 80px;
        padding: 14px 16px 38px;
        gap: 12px;
        align-items: end;
    }
    .hero-slide__poster-wrap {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 2px;
    }
    .hero-slide__poster-card {
        width: 80px;
        border-radius: 11px;
        transform: none;
        border-color: rgba(255, 255, 255, 0.16);
        box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 45, 85, 0.1);
    }
    .hero-slide__content {
        padding: 0 0 2px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        max-width: 100%;
        min-width: 0;
    }
    .hero-slide__topline {
        margin-bottom: 6px;
        gap: 6px;
    }
    .hero-slide__eyebrow {
        display: none;
    }
    .hero-slide__genres,
    .hero-slide__story {
        display: none;
    }
    .hero-slide__badge {
        font-size: .68rem;
        padding: 4px 10px;
        border-radius: 6px;
        letter-spacing: 0.08em;
    }
    .hero-slide__title {
        margin: 0 0 8px;
        font-size: 1.28rem;
        line-height: 1.18;
        letter-spacing: -0.02em;
        color: var(--white);
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-slide__meta {
        margin-bottom: 0;
        gap: 6px;
        font-size: .8rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .hero-slide__chip {
        padding: 4px 9px;
        font-size: .76rem;
        white-space: nowrap;
    }
    .rating-pill {
        padding: 4px 9px;
        font-size: .76rem;
        flex-shrink: 0;
    }
    .hero-slide__actions {
        margin-top: 8px;
        gap: 8px;
    }
    .hero-slide__actions .btn {
        min-height: 44px;
        padding: 0 12px;
        font-size: .78rem;
        font-weight: 700;
        border-radius: 12px;
    }
    .hero-slide__btn-watch {
        flex: 1.15;
        box-shadow: 0 6px 20px rgba(255, 45, 85, 0.32);
    }
    .hero-slide__actions .btn--glass {
        flex: 0.85;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.14);
    }
    .hero-slide__actions .btn svg {
        width: 15px;
        height: 15px;
    }
    .hero-carousel__nav {
        display: none;
    }
    .hero-carousel__chrome {
        padding: 0 12px 8px;
        gap: 4px;
    }
    .hero-carousel__footer {
        justify-content: center;
    }
    .hero-carousel__counter {
        display: none;
    }
    .hero-carousel__progress {
        max-width: none;
        gap: 5px;
        justify-content: center;
    }
    .hero-progress {
        flex: 0 0 auto;
        width: auto;
        padding: 0;
    }
    .hero-progress__track {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.28);
        transition: width .25s ease, background .25s ease, border-radius .25s ease;
    }
    .hero-progress__fill {
        display: none;
    }
    .hero-progress.is-active .hero-progress__track {
        width: 20px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--red), #ff6b8f);
        box-shadow: 0 0 10px rgba(255, 45, 85, 0.45);
    }
    .hero-slide__scrim {
        background:
            linear-gradient(0deg, rgba(3, 3, 5, 0.97) 0%, rgba(3, 3, 5, 0.72) 32%, rgba(3, 3, 5, 0.2) 62%, rgba(3, 3, 5, 0.35) 100%),
            linear-gradient(90deg, rgba(3, 3, 5, 0.55) 0%, transparent 70%);
    }
    .hero-slide__glow {
        height: 55%;
        background:
            linear-gradient(0deg, rgba(255, 45, 85, 0.16) 0%, transparent 50%),
            linear-gradient(0deg, rgba(3, 3, 5, 0.88) 0%, transparent 65%);
    }
}

@media (max-width: 768px) {
    .top-nav,
    .top-nav.is-scrolled,
    .icon-btn--glass,
    .btn--glass,
    .top10-card__poster,
    .bottom-nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ── Watch Now App Popup ── */
.app-watch-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: none !important;
    place-items: center;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}
.app-watch-modal.is-open {
    display: grid !important;
    pointer-events: auto;
}
.app-watch-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(3, 3, 5, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}
.app-watch-modal__card {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    padding: 28px 28px 24px;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 70% 55% at 100% 0%, rgba(124, 92, 255, 0.12), transparent 58%),
        radial-gradient(ellipse 60% 45% at 0% 100%, rgba(255, 45, 85, 0.1), transparent 52%),
        linear-gradient(168deg, rgba(20, 20, 28, 0.99), rgba(8, 8, 13, 0.99));
    border: 1px solid rgba(255, 45, 85, 0.22);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(255, 45, 85, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.app-watch-modal__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 45, 85, 0.45), transparent);
    pointer-events: none;
}
.app-watch-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--grey);
    cursor: pointer;
    z-index: 2;
    transition: background .2s, color .2s;
}
.app-watch-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}
.app-watch-modal__close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.app-watch-modal__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}
.app-watch-modal__qr-col {
    display: none;
}
.app-watch-modal__qr-col:not([hidden]) {
    display: block;
}
.app-watch-modal__qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100%;
    padding: 4px 0;
}
.app-watch-modal__qr-frame {
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
.app-watch-modal__qr-frame img {
    display: block;
    width: 168px;
    height: 168px;
    object-fit: contain;
}
.app-watch-modal__qr-hint {
    margin: 12px 0 0;
    color: var(--grey);
    font-size: .72rem;
    letter-spacing: 0.02em;
    text-align: center;
}
.app-watch-modal__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.app-watch-modal__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.app-watch-modal__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.app-watch-modal__icon img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.app-watch-modal__head-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}
.app-watch-modal__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(255, 45, 85, 0.08);
    border: 1px solid rgba(255, 45, 85, 0.24);
}
.app-watch-modal__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.42rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.app-watch-modal__desc {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: .86rem;
    line-height: 1.58;
}
.app-watch-modal__desc strong {
    color: var(--white);
    font-weight: 700;
}
.app-watch-modal__features {
    margin: 0 0 18px;
    padding: 12px 14px;
    list-style: none;
    display: grid;
    gap: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.app-watch-modal__features li {
    position: relative;
    padding-left: 18px;
    color: var(--grey);
    font-size: .8rem;
    line-height: 1.4;
}
.app-watch-modal__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--violet));
}
.app-watch-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.app-watch-modal__playstore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 16px;
    border-radius: 12px;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s;
}
.app-watch-modal__playstore:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.app-watch-modal__playstore-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.app-watch-modal__playstore-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}
.app-watch-modal__playstore-text small {
    font-size: .54rem;
    letter-spacing: 0.07em;
    opacity: 0.75;
}
.app-watch-modal__playstore-text strong {
    font-size: .92rem;
    font-weight: 700;
}
.app-watch-modal__open {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    justify-content: center;
    font-size: .9rem;
}
.app-watch-modal__open[hidden],
.app-watch-modal__redirect[hidden] {
    display: none !important;
}
.app-watch-modal__redirect {
    margin: 8px 0 0;
    color: var(--red);
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
}
body.has-app-watch-modal { overflow: hidden; }

@media (min-width: 1024px) {
    .app-watch-modal__card {
        width: min(100%, 700px);
        padding: 26px 28px 24px;
    }
    .app-watch-modal__layout {
        grid-template-columns: 196px minmax(0, 1fr);
        gap: 28px;
        align-items: stretch;
    }
    .app-watch-modal__qr-col:not([hidden]) {
        padding-right: 28px;
        border-right: 1px solid rgba(255, 255, 255, 0.07);
    }
    .app-watch-modal__actions {
        grid-template-columns: auto;
        justify-content: flex-start;
        gap: 10px;
    }
    .app-watch-modal__playstore {
        min-width: 168px;
        padding: 8px 14px;
    }
    .app-watch-modal.is-desktop .app-watch-modal__open {
        display: none !important;
    }
}

.app-watch-modal__handle {
    display: none;
}

@media (max-width: 1023px) {
    .app-watch-modal {
        place-items: end stretch;
        padding: 0;
    }
    .app-watch-modal__qr-col { display: none !important; }
    .app-watch-modal__handle {
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        margin: 2px auto 14px;
        flex-shrink: 0;
    }
    .app-watch-modal__card {
        width: 100%;
        max-width: 100%;
        max-height: min(88dvh, 640px);
        overflow-y: auto;
        border-radius: 22px 22px 0 0;
        padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        border-bottom: 0;
        box-shadow:
            0 -12px 48px rgba(0, 0, 0, 0.55),
            0 0 32px rgba(255, 45, 85, 0.08);
    }
    .app-watch-modal__card::before {
        display: none;
    }
    .app-watch-modal__close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
    .app-watch-modal__head {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
        text-align: center;
    }
    .app-watch-modal__icon {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    .app-watch-modal__icon img {
        width: 52px;
        height: 52px;
    }
    .app-watch-modal__head-text {
        align-items: center;
        width: 100%;
    }
    .app-watch-modal__title {
        font-size: 1.22rem;
    }
    .app-watch-modal__desc {
        text-align: center;
        font-size: .84rem;
        line-height: 1.55;
        margin-bottom: 12px;
    }
    .app-watch-modal__features {
        margin-bottom: 16px;
        padding: 11px 13px;
    }
    .app-watch-modal__features li {
        font-size: .78rem;
    }
    .app-watch-modal__actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .app-watch-modal__playstore {
        width: 100%;
        min-height: 50px;
    }
    .app-watch-modal__open {
        min-height: 50px;
        font-size: .92rem;
    }
}

@media (max-width: 767px) {
    .app-watch-modal__card {
        padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
    }
    .app-watch-modal__title {
        font-size: 1.14rem;
    }
    .app-watch-modal__desc {
        font-size: .82rem;
    }
    .app-watch-modal__features {
        padding: 10px 12px;
        gap: 7px;
    }
}

@media (max-width: 380px) {
    .app-watch-modal__icon {
        width: 54px;
        height: 54px;
    }
    .app-watch-modal__icon img {
        width: 46px;
        height: 46px;
    }
    .app-watch-modal__title {
        font-size: 1.06rem;
    }
}

/* ── Trailer popup ── */
.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none !important;
    place-items: center;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}
.trailer-modal.is-open {
    display: grid !important;
    pointer-events: auto;
}
.trailer-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(3, 3, 5, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}
.trailer-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    padding: 20px 20px 18px;
    border-radius: 20px;
    background: linear-gradient(168deg, rgba(18, 18, 24, 0.99), rgba(6, 6, 10, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}
.trailer-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--grey);
    cursor: pointer;
    z-index: 2;
    transition: background .2s, color .2s;
}
.trailer-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}
.trailer-modal__close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.trailer-modal__title {
    margin: 0 44px 14px 4px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trailer-modal__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.trailer-modal__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}
body.has-trailer-modal {
    overflow: hidden;
}

@media (max-width: 767px) {
    .trailer-modal {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        place-items: center;
    }
    .trailer-modal__dialog {
        width: min(100%, 520px);
        border-radius: 18px;
        padding: 16px 14px 14px;
    }
    .trailer-modal__title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .trailer-modal__player {
        border-radius: 12px;
    }
    .trailer-modal__close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
}

/* ── Admin Panel ── */
.admin-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 15% -10%, rgba(124, 92, 255, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 5%, rgba(255, 45, 85, 0.12), transparent 50%),
        var(--bg);
}
.admin-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}
.admin-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(12, 12, 18, 0.92);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}
.admin-card--login {
    max-width: 420px;
    margin: 10vh auto 0;
}
.admin-card__brand {
    text-align: center;
    margin-bottom: 24px;
}
.admin-card__brand h1 {
    margin: 14px 0 6px;
    font-family: var(--font-display);
    font-size: 1.5rem;
}
.admin-card__brand p {
    margin: 0;
    color: var(--grey);
    font-size: .88rem;
}
.admin-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.admin-topbar h1 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.6rem;
}
.admin-topbar p {
    margin: 0;
    color: var(--grey);
    font-size: .88rem;
}
.admin-topbar__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-form-grid {
    display: grid;
    gap: 20px;
}
.admin-panel h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}
.admin-panel__desc {
    margin: 0 0 18px;
    color: var(--grey);
    font-size: .84rem;
}
.admin-field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.admin-field span {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
}
.admin-field input[type="text"],
.admin-field input[type="url"],
.admin-field input[type="password"],
.admin-field input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}
.admin-field small {
    color: var(--grey);
    font-size: .74rem;
    line-height: 1.4;
}
.admin-logo-preview {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}
.admin-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-form-actions {
    display: flex;
    justify-content: flex-end;
}
.admin-submit { width: 100%; justify-content: center; }
.admin-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: .86rem;
}
.admin-alert--success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #8be4b0;
}
.admin-alert--error {
    background: rgba(255, 45, 85, 0.12);
    border: 1px solid rgba(255, 45, 85, 0.3);
    color: #ff8da8;
}
.admin-hint {
    margin: 18px 0 0;
    text-align: center;
    color: var(--grey);
    font-size: .78rem;
}
.admin-hint code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}
.admin-back {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: var(--grey);
    font-size: .84rem;
}
.admin-back:hover { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-slide__backdrop { transition: none; }
    .reveal { opacity: 1; transform: none; }
}
