/* ============================================================================
   Labocine — Film page (revamped, black-theme OTT layout)
   All theme rules are scoped under `.fx` so the many shared global classes
   (.film__caption, .issue__banner, .spotlightDetails__*, .badge, issue.css's
   .modal/.switch) used on OTHER pages are left untouched. Modal visual
   overrides are scoped by their unique IDs.
   ============================================================================ */

.fx {
    --fx-nav-h: 56px;
    --fx-bg: #0a0a0b;
    --fx-surface: #141417;
    --fx-surface-2: #1c1c20;
    --fx-surface-3: #26262b;
    --fx-border: rgba(255, 255, 255, 0.10);
    --fx-border-strong: rgba(255, 255, 255, 0.18);
    --fx-text: #f3f3f5;
    --fx-muted: #b9b9c4;
    --fx-muted-2: #8b8b96;
    --fx-accent: #f40000;
    --fx-accent-hover: #ff2b2b;
    --fx-radius: 14px;
    --fx-radius-sm: 10px;
    /* Big, immersive player — capped so its 16:9 height never exceeds the
       viewport. The content container tracks the same width so it stays aligned. */
    --fx-maxw: min(1560px, calc((100vh - 140px) * 16 / 9));

    background: var(--fx-bg);
    color: var(--fx-text);
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Paint the page + document background black so there are no white gutters
   above the fixed nav or below the footer on the film page. */
body.fx-page,
html.fx-page {
    background: #0a0a0b;
}
body.fx-page footer {
    color: #6f6f78;
    text-align: center;
    background: #0a0a0b;
}

/* Neutralize the global `.film__video { height: 80vh }` so Plyr can size the
   player to the film's natural aspect ratio inside the capped stage. */
.fx .film__video { height: auto; width: 100%; }

.fx *,
.fx *::before,
.fx *::after {
    box-sizing: border-box;
}

.fx a {
    color: inherit;
    text-decoration: none;
}

/* The global stylesheet forces `h1..h6, strong { color:#222 }` (near-black).
   On this dark page, make them inherit the light body color instead. */
.fx h1, .fx h2, .fx h3, .fx h4, .fx h5, .fx h6, .fx strong { color: inherit; }

.fx__container {
    width: 100%;
    max-width: var(--fx-maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------------- Hero stage */
.fx__stage {
    position: relative;
    padding: calc(var(--fx-nav-h) + 28px) 0 28px;
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(244, 0, 0, 0.10), transparent 60%),
        linear-gradient(180deg, #050506 0%, var(--fx-bg) 60%);
}

.fx__player-shell {
    position: relative;
    width: 100%;
    max-width: var(--fx-maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.fx__player {
    position: relative;
    border-radius: var(--fx-radius);
    background: #000;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--fx-border);
}

/* Round the player corners without clipping Plyr's pop-up menus. */
.fx__player .plyr,
.fx__player #filmVideo {
    border-radius: var(--fx-radius);
}
.fx__player .plyr__video-wrapper {
    border-radius: var(--fx-radius);
    overflow: hidden;
}

#player-container {
    position: relative;
}

/* Film still fallback (when the video is hidden / unavailable) */
.fx__still {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--fx-radius);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--fx-border);
}

/* Title scrim overlaid on the player; fades out while playing (JS toggles
   the `.hide` class on #videoCaption — same hook as before). */
.fx__hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 28% 28px 22px;
    border-radius: var(--fx-radius);
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.85));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.fx__hero-caption.hide {
    opacity: 0;
    pointer-events: none;
}
.fx__hero-caption .fx__hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fx-muted);
    margin: 0 0 6px;
}
.fx__hero-caption .fx__hero-eyebrow a {
    color: var(--fx-text);
    pointer-events: auto;
}
.fx__hero-caption .fx__hero-title {
    margin: 0;
    font-size: clamp(1.6rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.fx__hero-status {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.fx__hero-status b { color: #ff7a3c; }

/* ------------------------------------------------------------- Title / meta */
.fx__head {
    margin-top: 26px;
}
.fx__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    color: #fff;
}

.fx__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    color: #d6d6de;
    font-size: 0.92rem;
}
.fx__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--fx-surface-2);
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    white-space: nowrap;
}
.fx__chip { color: #e9e9ee; }
.fx__chip a { color: #fff; }
.fx__chip a:hover { color: var(--fx-accent-hover); }
.fx__chip svg { width: 15px; height: 15px; opacity: 0.9; flex: 0 0 auto; }

/* --------------------------------------------------------------- Action bar */
.fx__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
}
.fx__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--fx-border-strong);
    background: var(--fx-surface-2);
    color: var(--fx-text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.05s ease;
    white-space: nowrap;
}
.fx__btn:hover { background: var(--fx-surface-3); border-color: var(--fx-border-strong); }
.fx__btn:active { transform: translateY(1px); }
.fx__btn img { height: 18px; width: auto; display: block; }
.fx__btn svg { width: 19px; height: 19px; }
.fx__btn--primary {
    background: var(--fx-accent);
    border-color: var(--fx-accent);
    color: #fff;
}
.fx__btn--primary:hover { background: var(--fx-accent-hover); border-color: var(--fx-accent-hover); }

/* "Watch With" Pro pill keeps the brand logo */
.fx__btn--pro { padding-right: 16px; }
.fx__btn--pro img { height: 22px; }

/* Inline notices (country restricted / unavailable / request info) */
.fx__notice {
    margin: 18px 0 0;
    padding: 16px 18px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-left: 3px solid var(--fx-accent);
    border-radius: var(--fx-radius-sm);
    color: var(--fx-muted);
}
.fx__notice .warning { color: #ff6b6b; font-weight: 600; }
.fx .button {
    height: 40px;
    background-color: #fff;
    color: #000;
    border: 0;
    padding: 0 1.4em;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
    line-height: 40px;
    cursor: pointer;
}
.fx .button--red,
.fx .button[style*="f34343"] { background: var(--fx-accent); color: #fff; }
.fx .button a { color: inherit; }

/* SNW certificate badge */
.fx__snw {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 0;
    padding: 12px 16px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-sm);
}
.fx__snw img { width: 54px; height: auto; flex: 0 0 auto; }
.fx__snw p { margin: 0; color: var(--fx-muted); }

/* --------------------------------------------------------------- Synopsis */
.fx__synopsis {
    margin: 24px 0 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #d7d7dc;
    font-weight: 300;
    max-width: 900px;
}
.fx__synopsis a { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------- Tabs */
.fx__tabs {
    display: flex;
    gap: 6px;
    margin: 30px 0 0;
    border-bottom: 1px solid var(--fx-border);
}
.fx__tab {
    appearance: none;
    background: none;
    border: 0;
    color: var(--fx-muted);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease;
}
.fx__tab svg { width: 17px; height: 17px; flex: 0 0 auto; }
.fx__tab:hover { color: var(--fx-text); }
.fx__tab.is-active { color: #fff; }

/* Subtle "there's content here" cue on the Field Notes tab so it isn't missed */
.fx__tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fx-accent);
    box-shadow: 0 0 0 0 rgba(244, 0, 0, 0.55);
    animation: fxDotPulse 2.6s ease-out infinite;
}
.fx__tab--notes.is-active .fx__tab-dot { display: none; }
@keyframes fxDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 0, 0, 0.5); }
    70% { box-shadow: 0 0 0 7px rgba(244, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .fx__tab-dot { animation: none; }
}
.fx__tab.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--fx-accent);
}

.fx__tabpanel { display: none; padding-top: 26px; }
.fx__tabpanel.is-active { display: block; animation: fxFade 0.25s ease; }
@keyframes fxFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- Sections */
.fx__section { margin: 34px 0 0; }
.fx__section:first-child { margin-top: 0; }
.fx__section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: 0.01em;
    color: #fff;
}

/* Credits */
.fx__credits { display: grid; gap: 8px; max-width: 760px; }
.fx__credit-row { display: flex; gap: 10px; font-size: 0.98rem; color: #d7d7dc; }
.fx__credit-role {
    flex: 0 0 96px;
    color: var(--fx-muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding-top: 2px;
}

/* Tag chips */
.fx__tags { display: flex; flex-wrap: wrap; gap: 9px; }
.fx__tag {
    display: inline-block;
    padding: 7px 15px;
    background: var(--fx-surface-2);
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--fx-text);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.fx__tag:hover { background: var(--fx-surface-3); border-color: var(--fx-border-strong); }

/* People rows — compact circular avatars (replaces the oversized square tiles) */
.fx__people {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 26px;
}
.fx__person {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 92px;
    text-align: center;
}
.fx__person-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--fx-surface-3);
    border: 2px solid var(--fx-border-strong);
    margin-bottom: 8px;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.fx__person:hover .fx__person-avatar { border-color: var(--fx-accent); transform: translateY(-2px); }
.fx__person-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx__person-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fx-text);
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.fx__person-role {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fx-muted-2);
    margin-top: 2px;
}

/* Poster strips — horizontal scroll (issues / spotlights / playlists) */
.fx__strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--fx-surface-3) transparent;
}
.fx__strip::-webkit-scrollbar { height: 8px; }
.fx__strip::-webkit-scrollbar-thumb { background: var(--fx-surface-3); border-radius: 999px; }
.fx__poster {
    flex: 0 0 auto;
    width: 190px;
}
.fx__poster-img {
    position: relative;
    width: 190px;
    height: 110px;
    border-radius: var(--fx-radius-sm);
    overflow: hidden;
    background: var(--fx-surface-2);
    border: 1px solid var(--fx-border);
    margin-bottom: 9px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fx__poster-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
/* All hover motion stays INSIDE the frame so the scroll strip never clips it */
.fx__poster-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.fx__poster-img::after {
    content: "→";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fx-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px) scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.fx__poster:hover .fx__poster-img { border-color: var(--fx-accent); box-shadow: inset 0 0 0 2px var(--fx-accent); }
.fx__poster:hover .fx__poster-img img { transform: scale(1.09); }
.fx__poster:hover .fx__poster-img::before { opacity: 1; }
.fx__poster:hover .fx__poster-img::after { opacity: 1; transform: none; }
.fx__poster:hover .fx__poster-title { color: #fff; }
.fx__poster-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d7d7dc;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Rail: a strip + left/right scroll buttons */
.fx__rail { position: relative; }
.fx__rail .fx__strip { scroll-behavior: smooth; }
.fx__rail-btn {
    position: absolute;
    top: 47px;                       /* aligns with the poster thumbnail band */
    transform: translateY(-50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 24, 0.92);
    border: 1px solid var(--fx-border-strong);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.fx__rail-btn:hover { background: var(--fx-accent); border-color: var(--fx-accent); }
.fx__rail-btn--prev { left: -14px; }
.fx__rail-btn--next { right: -14px; }
.fx__rail-btn[disabled] { opacity: 0; pointer-events: none; }
.fx__rail--static .fx__rail-btn { display: none; }   /* nothing to scroll */
@media (max-width: 768px) {
    .fx__rail-btn { display: none; }                  /* touch devices swipe */
}

/* ----------------------------------------------- Habitat / sharing alert */
.fx .alert {
    position: relative;
    margin: 0 0 18px;
    padding: 16px 46px 16px 18px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-left: 3px solid #28a745;
    border-radius: var(--fx-radius-sm);
    box-shadow: none;
    color: var(--fx-text);
}
.fx .alert h4 { margin: 0; font-weight: 500; font-size: 0.98rem; line-height: 1.5; }
.fx .alert a { color: #5ad17e; text-decoration: underline; }
.fx .alert .close {
    position: absolute;
    top: 12px; right: 14px;
    width: 26px; height: 26px;
    line-height: 24px; text-align: center;
    border-radius: 50%;
    border: 1px solid var(--fx-border-strong);
    color: var(--fx-muted);
    font-size: 1.1rem;
    float: none;
}

/* ----------------------------------------------------------- Field notes
   A masonry gallery of curated, mixed-media cards (photo / audio / video /
   document) — like a press kit / "special features", not a chronology. */
.fx-notes__intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(120deg, rgba(244, 0, 0, 0.08), var(--fx-surface) 42%);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    padding: 16px 18px;
    color: var(--fx-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
}
.fx-notes__intro svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--fx-accent); margin-top: 1px; }
.fx-notes__intro strong { color: #fff; }

/* Uniform card grid — every card has the SAME fixed 16:9 media region and a
   flexible body with the footer pinned to the bottom, so rows align cleanly
   (fixes the ragged masonry heights). */
.fx-notes__grid {
    display: grid;
    /* auto-fit + a capped max keeps a few cards filling the row (centered)
       without a lone card stretching to the full width. min(100%, 300px) keeps
       a single column from overflowing very narrow phones. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 460px));
    justify-content: center;
    gap: 18px;
    align-items: stretch;
}

.fx-note {
    display: flex;
    flex-direction: column;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    overflow: hidden;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.fx-note:hover {
    border-color: var(--fx-border-strong);
    transform: translateY(-3px);
    box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.9);
}

/* Fixed-ratio media region — identical footprint for every card type */
.fx-note__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--fx-surface-2);
    line-height: 0;
}
.fx-note__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
}
.fx-note__badge svg { width: 13px; height: 13px; }

.fx-note-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; cursor: zoom-in; transition: transform 0.35s ease; }
.fx-note:hover .fx-note-img { transform: scale(1.045); }
.fx-note__media > video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* Audio: waveform cover with the player pinned to the bottom */
.fx-note--audio .fx-note__media { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b1640, #11131f); }
.fx-note__audio-cover { width: 60%; color: var(--fx-accent); opacity: 0.9; }
.fx-note__audio-cover svg { width: 100%; height: auto; display: block; }
.fx-note__audio {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 8px 10px;
    background: rgba(8, 8, 11, 0.66);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fx-note__audio audio { width: 100%; height: 34px; display: block; }

/* Document: clickable tile — renders the actual first page when possible,
   else falls back to a document icon. */
.fx-note__doc {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    text-align: center; line-height: 1.4;
    background: linear-gradient(135deg, #182234, #0f1119);
    color: var(--fx-text);
    overflow: hidden;
}
.fx-note__doc-canvas { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; }
.fx-note__doc-ico { width: 42px; height: 42px; color: #8fb6ff; transition: transform 0.2s ease; }
.fx-note__doc:hover .fx-note__doc-ico { transform: translateY(-2px); }
.fx-note__doc-open { position: relative; z-index: 2; color: #5ad1ff; font-weight: 600; font-size: 0.9rem; }
.fx-note__doc:hover .fx-note__doc-open { text-decoration: underline; }
/* When a page preview is rendered: anchor the label to the bottom over a
   legibility gradient and hide the placeholder icon. */
.fx-note__doc.has-preview { justify-content: flex-end; padding-bottom: 10px; background: #0d0f14; }
.fx-note__doc.has-preview .fx-note__doc-ico { display: none; }
.fx-note__doc.has-preview::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.8));
}
.fx-note__doc.has-preview .fx-note__doc-open { color: #fff; }

/* Body — clamped description + footer pinned to the bottom for row alignment */
.fx-note__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.fx-note__desc {
    color: #cdcdd6;
    line-height: 1.55;
    font-size: 0.92rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fx-note__desc:empty { display: none; }
.fx-note__desc > :last-child { margin-bottom: 0; }
.fx-note__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.fx-note__avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--fx-surface-3); }
.fx-note__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-note__byline { font-size: 0.85rem; line-height: 1.3; }
.fx-note__byline a { font-weight: 700; color: #fff; }
.fx-note__date { font-size: 0.75rem; color: var(--fx-muted-2); margin-top: 1px; }

/* Login prompt / password gate inside the notes tab */
.fx-notes__login,
.fx-notes__gate {
    text-align: center;
    padding: 40px 22px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    color: var(--fx-muted);
}
.fx-notes__gate p { margin: 6px 0 0; }
.fx-notes__gate-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}
.fx-notes__gate input {
    height: 46px;
    flex: 1 1 220px;
    max-width: 300px;
    padding: 0 14px;
    background: var(--fx-surface-2);
    border: 1px solid var(--fx-border-strong);
    border-radius: var(--fx-radius-sm);
    color: var(--fx-text);
    font-size: 1rem;
}
.fx-notes__gate input:focus { outline: none; border-color: var(--fx-accent); }
.fx-notes__gate .fx__btn { margin-top: 0; flex: 0 0 auto; }
.fx-notes__gate-error { color: #ff6b6b; margin-top: 12px; min-height: 1.2em; }

/* Lazy-load spinner */
.fx__loading { display: flex; justify-content: center; padding: 50px 0; }
.fx__spinner {
    width: 38px; height: 38px;
    border: 3px solid var(--fx-border-strong);
    border-top-color: var(--fx-accent);
    border-radius: 50%;
    animation: fxSpin 0.8s linear infinite;
}
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx__notes-error { text-align: center; color: #ff6b6b; padding: 30px 0; }

/* ---------------------------------------------------------------- Lightbox */
.fx-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    padding: 30px;
    cursor: zoom-out;
}
.fx-lightbox.is-open { display: flex; }
.fx-lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 6px; }
.fx-lightbox__close {
    position: absolute;
    top: 18px; right: 24px;
    font-size: 2.4rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    background: none;
    border: 0;
}

/* ----------------------------------------------------- Modal dark overrides
   Scoped by the unique modal IDs (literal colors so they resolve regardless of
   where the modal sits in the DOM) — other pages' .modal styling is untouched. */
#playlist-modal,
#screener-request-modal {
    background: rgba(0, 0, 0, 0.74);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
#playlist-modal .modal-content,
#screener-request-modal .modal-content {
    background: #15151a;
    color: #f3f3f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    width: min(480px, 92%);
    max-height: 84vh;
    overflow-y: auto;
    padding: 24px 26px;
    margin-top: 8vh;
    box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.95);
    animation: fxModalIn 0.22s ease;
}
@keyframes fxModalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#playlist-modal h4,
#screener-request-modal h4 { color: #fff; font-size: 1.15rem; margin: 0 0 4px; }
#playlist-modal hr,
#screener-request-modal hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.10); margin: 14px 0; }
#playlist-modal .close,
#screener-request-modal .close {
    color: #b9b9c4; float: right; font-size: 26px; line-height: 1;
    width: 34px; height: 34px; border-radius: 50%; text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
#playlist-modal .close:hover,
#screener-request-modal .close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
#playlist-modal .switch-label,
#screener-request-modal label,
#playlist-modal label { color: #ececf1; font-size: 0.96rem; }
#playlist-modal .control-label,
#screener-request-modal .control-label { color: #b9b9c4; display: block; margin: 12px 0 6px; }
#playlist-modal .form__input,
#screener-request-modal .form__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    margin-bottom: 6px;
    background: #1f1f25;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #f3f3f5;
    font-size: 0.96rem;
}
#playlist-modal .form__input:focus,
#screener-request-modal .form__input:focus { outline: none; border-color: #f40000; }
#screener-request-modal textarea.form__input { height: auto; padding: 12px 14px; line-height: 1.5; }
#playlist-modal .form__input::placeholder,
#screener-request-modal .form__input::placeholder { color: #8b8b96; }
#playlist-modal .button,
#screener-request-modal .button {
    height: 46px; line-height: 46px;
    background: #f40000; color: #fff; border: 0;
    border-radius: 999px; padding: 0 24px; margin-top: 10px;
    font-weight: 600; cursor: pointer; transition: background 0.15s;
}
#playlist-modal .button:hover,
#screener-request-modal .button:hover { background: #ff2b2b; }
#playlist-modal .form__alert,
#screener-request-modal .form__alert { color: #ff6b6b; }
#playlist_not_found { color: #b9b9c4; }
#playlist_not_found a { color: #5ad1ff; }
#playlist_checkboxes > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#playlist_checkboxes > div br { display: none; }
#playlist_checkboxes .switch-label { margin: 0; }
/* Quieter on/off toggle: neutral grey when off, green when on (was red/green). */
#playlist-modal .switch input + span { background: #3a3a44; }
#playlist-modal .switch input:checked + span { background: #2ecc71; }

/* ===========================================================================
   Plyr caption visibility (carried over from the old inline <style> so
   subtitles keep rendering exactly as before).
   =========================================================================== */
.plyr__captions { display: block !important; visibility: visible !important; opacity: 1 !important;
    position: absolute !important; bottom: 60px !important; left: 0 !important; right: 0 !important;
    width: 100% !important; text-align: center !important; z-index: 10 !important; pointer-events: none !important; }
.plyr__caption { visibility: visible !important; opacity: 1 !important; background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important; padding: 0.5rem 1rem !important; font-size: 20px !important; line-height: 1.4 !important;
    border-radius: 3px !important; max-width: 90% !important; }
.plyr__video-wrapper { position: relative !important; }
.plyr--video .plyr__controls { z-index: 5 !important; }
/* Keep the bottom control bar hidden until playback actually begins — no hover
   peek behind the hero title. The big centered play button still starts it. */
.plyr--stopped .plyr__controls { opacity: 0 !important; pointer-events: none !important; }
.plyr--captions-active .plyr__captions,
.plyr__captions[style*="display: none"] { display: block !important; }
video::cue { background-color: rgba(0, 0, 0, 0.8); color: #fff; font-size: 20px; line-height: 1.4; }
video::-webkit-media-text-track-container { display: block !important; visibility: visible !important; opacity: 1 !important; }
video::-webkit-media-text-track-display { background: rgba(0, 0, 0, 0.8) !important; color: #fff !important;
    padding: 0.5rem 1rem !important; font-size: 20px !important; }

/* Resume banner (carried over; #player-container is inside .fx) */
#resume-banner {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; align-items: center; gap: 12px;
    background: rgba(0, 0, 0, 0.82); color: #fff;
    padding: 10px 16px; font-size: 0.9rem;
    border-bottom: 2px solid var(--fx-accent);
    border-radius: var(--fx-radius) var(--fx-radius) 0 0;
    animation: fxFadeDown 0.3s ease;
}
#resume-banner #resume-btn {
    background: var(--fx-accent); color: #fff; border: none;
    padding: 5px 14px; border-radius: 4px; cursor: pointer;
    font-size: 0.85rem; font-weight: 600; transition: background 0.2s;
}
#resume-banner #resume-btn:hover { background: var(--fx-accent-hover); }
@keyframes fxFadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- Responsive */
@media screen and (max-width: 768px) {
    .fx__stage { padding-top: calc(var(--fx-nav-h) + 14px); }
    .fx__player-shell,
    .fx__container { padding: 0 16px; }
    .fx__hero-caption { padding: 32% 16px 16px; }
    .fx__actions .fx__btn { height: 44px; flex: 1 1 auto; justify-content: center; }
    .fx__credit-role { flex-basis: 78px; }
    .fx__poster, .fx__poster-img { width: 150px; }
    .fx__poster-img { height: 88px; }
}