/* ─────────────────────────────────────────
   PROJECT DETAIL PAGE
   Loaded after style.css — uses the same
   tokens, fonts and grain.
   ───────────────────────────────────────── */

/* Hero with full-bleed still */
.detail-hero {
    position: relative;
    height: 92svh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: var(--hero-pos, center 30%);
    filter: brightness(0.72) saturate(0.95);
    animation: heroBgIn 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: scale(1.04);
    opacity: 0;
}

/* Portrait screens (phones) see only a narrow column of a wide still, so a
   hero can carry its own horizontal framing for them in --hero-pos-m. Landscape
   and desktop keep --hero-pos exactly as before. */
@media (orientation: portrait) {
    .detail-hero-bg {
        background-position: var(--hero-pos-m, var(--hero-pos, center 30%));
    }
}

/* Storyboard hero — invert so sketch reads as white-on-black */
.detail-hero--storyboard .detail-hero-bg {
    filter: invert(1) brightness(0.42) contrast(1.1) saturate(0);
}

/* Colour-field hero — for projects without a still. The gradient is the image. */
.detail-hero--field .detail-hero-bg {
    filter: none;
}

@keyframes heroBgIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,7,7,0.95) 0%, rgba(7,7,7,0.5) 35%, rgba(7,7,7,0.18) 60%, transparent 85%);
    pointer-events: none;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5rem 5rem;
    width: 100%;
    max-width: 1400px;
}

.detail-back {
    display: inline-block;
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 15;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--mid);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    margin-bottom: 3rem;
    transition: color 0.3s;
    opacity: 0;
    animation: detailFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.detail-back:hover {
    color: var(--white);
}

.detail-eyebrow {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--meta);
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: detailFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* meta line items never break inside; see the meta-line script in lang/i18n.js */
.detail-eyebrow .meta-seg {
    white-space: nowrap;
}

.detail-title {
    font-family: var(--brooklyn);
    font-weight: 400;
    font-size: clamp(2.5rem, 7vw, 6.5rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(28px);
    animation: detailFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Wordmark variant — uses the film's actual title treatment as an image.
   mix-blend-mode: screen drops the dark JPG background. */
.detail-title--wordmark {
    line-height: 0;
}

.detail-title--wordmark img {
    width: clamp(340px, 58vw, 960px);
    height: auto;
    display: block;
    mix-blend-mode: screen;
}

.detail-role {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 25;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--mid);
    opacity: 0;
    animation: detailFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

/* ── Alea video hero — ocean top-shot with title emerging from the water ── */
.detail-hero--video {
    align-items: stretch;
}

.detail-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0;
    animation: heroBgIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.detail-hero-overlay--video {
    background:
        radial-gradient(ellipse at center, rgba(7,7,7,0.26) 0%, rgba(7,7,7,0.5) 72%, rgba(7,7,7,0.62) 100%),
        linear-gradient(to bottom, rgba(7,7,7,0.45) 0%, transparent 30%, transparent 52%, rgba(7,7,7,0.82) 88%, var(--black) 100%);
}

.detail-back--float {
    position: absolute;
    top: 6.5rem;
    left: 5rem;
    margin: 0;
    z-index: 3;
}

.detail-hero-content--center {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 6rem;
    min-height: 100%;
    max-width: none;
    text-align: center;
}

.alea-emerge {
    width: min(1100px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    /* the whole block floats on a slow swell, ~matched to the underwater loop */
    animation: aleaSwell 7.6s ease-in-out 2.8s infinite;
    will-change: transform;
}

@keyframes aleaSwell {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* each line clips its own inner span, which rises up from below the waterline */
.alea-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.12em;
    margin: 0;
}

.alea-line-in {
    display: block;
    opacity: 0;
    /* just a clean fade-in — no slide, no blur */
    animation: aleaEmerge 1.6s ease forwards;
}

.alea-line:nth-child(1) .alea-line-in { animation-delay: 0.35s; }
.alea-line:nth-child(2) .alea-line-in { animation-delay: 0.85s; }
.alea-line:nth-child(3) .alea-line-in { animation-delay: 1.30s; }
.alea-line:nth-child(4) .alea-line-in { animation-delay: 1.60s; }
.alea-line:nth-child(5) .alea-line-in { animation-delay: 1.95s; }

@keyframes aleaEmerge {
    to { opacity: 1; }
}

.alea-title {
    font-family: var(--brooklyn);
    font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 7rem);
    line-height: 0.96;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}

.alea-tagline {
    font-family: var(--brooklyn);
    font-weight: 400;
    font-size: clamp(1.15rem, 3vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    margin-top: 0.4rem;
    text-shadow: 0 1px 30px rgba(0,0,0,0.55), 0 0 4px rgba(0,0,0,0.4);
}

.alea-credit {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 16;
    font-size: clamp(0.82rem, 1.4vw, 1.02rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(237, 234, 228, 0.82);
    text-shadow: 0 1px 22px rgba(0,0,0,0.7), 0 0 3px rgba(0,0,0,0.5);
}

.alea-credit:first-of-type { margin-top: 1.2rem; }

.alea-companies {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 12;
    font-size: clamp(0.66rem, 1vw, 0.78rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(237, 234, 228, 0.6);
    text-shadow: 0 1px 18px rgba(0,0,0,0.7), 0 0 3px rgba(0,0,0,0.5);
    margin-top: 1.4rem;
}

/* ── Alea "Coming Soon" — one continuous rolling crawl, looping ── */
.alea-teaser {
    position: relative;
    background: var(--black);
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* Soft black fades top and bottom. Asymmetric on purpose: the text appears
   fairly cleanly at the bottom, then dissolves gently into the distance as it
   rises off the top — a Star-Wars "disappear", not a hard cut. */
.alea-teaser::before,
.alea-teaser::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}
.alea-teaser::before {
    top: 0;
    height: 34%;
    background: linear-gradient(to bottom, var(--black) 0%, rgba(7, 7, 7, 0.6) 26%, rgba(7, 7, 7, 0.22) 58%, transparent 100%);
}
.alea-teaser::after {
    bottom: 0;
    height: 15%;
    background: linear-gradient(to top, var(--black) 0%, rgba(7, 7, 7, 0.5) 48%, transparent 100%);
}

.alea-crawl {
    position: relative;
    width: min(1040px, 92vw);
    height: 100%;
    overflow: hidden;
}

.alea-crawl-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
    animation: aleaCrawl 40s linear infinite;
    will-change: transform;
}

/* starts only 30vh below (not a full screen) so the gap before "Coming Soon"
   returns is short — about a third of what it was */
@keyframes aleaCrawl {
    from { transform: translateY(30vh); }
    to   { transform: translateY(-100%); }
}

.alea-crawl-inner p {
    margin: 0 0 2.4rem;
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.75vw, 2.2rem);
    line-height: 1.42;
    letter-spacing: 0.005em;
    color: var(--white);
}

/* the "Coming Soon" heading keeps the Brooklyn display face */
.alea-crawl-title {
    font-family: var(--brooklyn) !important;
    font-size: clamp(2.8rem, 9vw, 6.5rem) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 3.2rem !important;
}

/* Motion-sensitive users still get the roll, just slow and gentle —
   never a frozen wall of text. */
@media (prefers-reduced-motion: reduce) {
    .alea-crawl-inner { animation-duration: 80s; }
}

/* On phones the deliberate line breaks would wrap awkwardly, so let the
   text reflow naturally instead. */
@media (max-width: 600px) {
    .alea-crawl-inner br { display: none; }
    .alea-crawl-inner p { line-height: 1.5; }
}

/* Cast block on the Alea page */
.detail-cast {
    margin-top: 2.6rem;
}

.detail-cast-list {
    margin-top: 0.9rem;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.04rem;
    line-height: 1.9;
    color: var(--white);
}

.cast-char {
    color: var(--meta);
}

.cast-char::before { content: '('; }
.cast-char::after  { content: ')'; }

/* Ocean-sound toggle — opt-in whale ambience on the Alea hero */
.sound-toggle {
    position: absolute;
    bottom: 2.2rem;
    right: 2.4rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(7, 7, 7, 0.34);
    border: 1px solid rgba(237, 234, 228, 0.22);
    border-radius: 100px;
    color: rgba(237, 234, 228, 0.62);
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 14;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    opacity: 0;
    animation: detailFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
}

.sound-toggle:hover {
    color: var(--white);
    border-color: rgba(237, 234, 228, 0.45);
}

.sound-toggle.is-on {
    color: var(--white);
    border-color: rgba(237, 234, 228, 0.55);
    background: rgba(7, 7, 7, 0.5);
}

.sound-toggle-ico {
    width: 18px;
    height: 18px;
    flex: none;
}

/* sound waves hidden until on */
.sound-toggle .snd-wave {
    opacity: 0;
    transition: opacity 0.35s;
}

.sound-toggle.is-on .snd-wave1 { opacity: 1; transition-delay: 0.05s; }
.sound-toggle.is-on .snd-wave2 { opacity: 1; transition-delay: 0.18s; }

@media (max-width: 700px) {
    .sound-toggle { bottom: 1.4rem; right: 1.4rem; padding: 0.5rem 0.85rem; }
    .sound-toggle-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .alea-line-in {
        transform: none;
        opacity: 1;
        filter: none;
        animation: none;
    }
    .alea-emerge { animation: none; }
    .detail-hero-video { animation: none; opacity: 1; }
    .sound-toggle { animation: none; opacity: 1; }
}

@media (max-width: 700px) {
    .detail-back--float { left: 1.5rem; top: 5.5rem; }
    .detail-hero-content--center { padding: 6rem 1.25rem 5rem; }
}

@keyframes detailFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Body */
.detail-body {
    padding: 8rem 5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    max-width: 1400px;
}

/* Grid columns default to the width of their longest word; let them shrink
   instead, so one German compound can never widen the page on a phone. */
.detail-grid > * { min-width: 0; }

/* Main column */
.detail-lede {
    font-family: var(--brooklyn);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    color: var(--white);
    margin-bottom: 3rem;
    max-width: 24ch;
}

.detail-prose p {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.005em;
    color: var(--mid);
    margin-bottom: 1.4rem;
    max-width: 58ch;
}

.detail-awards {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(237, 234, 228, 0.08);
}

.detail-quotes {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.detail-quote {
    margin: 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(237, 234, 228, 0.08);
    max-width: 56ch;
}

.detail-quote:last-child {
    border-bottom: 1px solid rgba(237, 234, 228, 0.08);
}

.detail-quote p {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.08rem, 1.45vw, 1.4rem);
    line-height: 1.6;
    letter-spacing: 0.004em;
    color: var(--white);
    margin: 0 0 1.2rem;
}

/* inside an italic quote, emphasised titles flip upright so they stand out */
.detail-quote p em {
    font-style: normal;
}

.detail-quote cite {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--mid);
    font-style: normal;
}

.detail-award-item {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 25;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--mid);
    padding: 0.6rem 0;
}

/* Side column — credits & links */
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Poster — portrait key art at the top of the side column */
.detail-poster img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

/* On-set portrait — behind-the-scenes shot closing the side column */
.detail-onset {
    margin: 0;
}

.detail-onset img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    filter: brightness(0.95) saturate(0.95);
}

.detail-onset figcaption {
    margin-top: 0.9rem;
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ghost);
}

.detail-section-label {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--ghost);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(237, 234, 228, 0.08);
}

.detail-credits {
    display: flex;
    flex-direction: column;
}

.credit-row {
    display: grid;
    grid-template-columns: 195px 1fr;
    gap: 1.5rem;
    padding: 0.65rem 0;
    align-items: baseline;
}

.credit-row dt {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 15;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ghost);
}

.credit-row dd {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.6;
    letter-spacing: 0.005em;
}

.detail-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-links a {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 25;
    font-size: 0.9rem;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
    letter-spacing: 0.06em;
    transition: color 0.3s, letter-spacing 0.3s;
}

.detail-links a:hover {
    color: var(--mid);
    letter-spacing: 0.02em;
}

/* Trailer / video — responsive 16:9 embeds in a full-width band */
.detail-trailer {
    padding: 0 5rem 6rem;
}

.detail-trailer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.detail-trailer .detail-section-label {
    margin-bottom: 1.4rem;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.video-grid--two {
    grid-template-columns: 1fr 1fr;
}

.video-grid--three {
    grid-template-columns: 1fr 1fr 1fr;
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-embed iframe,
.video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-embed video {
    object-fit: contain;
    background: #000;
}

.video-embed video::cue {
    font-family: var(--sans);
    font-size: 0.92em;
    line-height: 1.35;
    color: #fff;
    background: rgba(7, 7, 7, 0.72);
}

.video-caption {
    font-family: var(--kurdis);
    font-size: 0.8rem;
    color: var(--meta);
    letter-spacing: 0.04em;
    margin-top: 0.7rem;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .detail-trailer {
        padding: 0 1.5rem 4rem;
    }
    .video-grid--two,
    .video-grid--three {
        grid-template-columns: 1fr;
    }
}

/* Stills gallery — full-bleed images stacked with negative space */
.detail-stills {
    padding: 0 5rem 8rem;
}

.detail-stills-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.still {
    margin: 0;
    opacity: 0;
    transform: translateY(28px);
    animation: stillReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Reveal on load via animation (always ends visible) rather than a
   scroll-triggered class — the IntersectionObserver was unreliable inside
   the body scroll container, leaving galleries stuck at opacity 0. */
@keyframes stillReveal {
    to { opacity: 1; transform: translateY(0); }
}

.still.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .still { animation: none; opacity: 1; transform: none; }
}

.still {
    position: relative;
}

.still img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.92) saturate(0.95);
}

.still figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3.5rem 1.6rem 1.1rem;
    text-align: right;
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(237, 234, 228, 0.9);
    background: linear-gradient(to top, rgba(7, 7, 7, 0.7) 0%, rgba(7, 7, 7, 0) 100%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .still figcaption {
        padding: 2.5rem 1.1rem 0.8rem;
        font-size: 0.66rem;
    }
}

@media (max-width: 900px) {
    .detail-stills {
        padding: 0 1.75rem 5rem;
    }
    .detail-stills-inner {
        gap: 2.5rem;
    }
}

/* TV cards — full-bleed image cards for the Television page */
.tv-cards {
    display: block;
    border-top: 1px solid rgba(237, 234, 228, 0.08);
}

.tv-card {
    position: relative;
    width: 100%;
    height: var(--h, 56vh);
    overflow: hidden;
    border-bottom: 1px solid rgba(237, 234, 228, 0.06);
}

.tv-card-bg {
    position: absolute;
    inset: 0;
    background-color: #0c0b0a;
}

.tv-card-bg--dark {
    background-color: var(--field, #0c0b0a);
}

.tv-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.65) saturate(0.85);
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), filter 1.8s ease;
    display: block;
}

.tv-card:hover .tv-card-bg img {
    transform: scale(1.025);
    filter: brightness(0.75) saturate(0.95);
}

.tv-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,7,7,0.9) 0%, transparent 65%);
    pointer-events: none;
}

.tv-card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tv-card-title {
    font-family: var(--brooklyn);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.8vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.1;
    color: var(--white);
}

.tv-card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.tv-card:hover .tv-card-link {
    color: var(--mid);
}

.tv-card-alt {
    font-family: var(--brooklyn);
    font-style: italic;
    color: var(--mid);
    text-transform: none;
    font-size: 0.65em;
    letter-spacing: 0.02em;
    margin-left: 0.4em;
}

.tv-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tv-card-role {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 22;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mid);
}

.tv-card-year {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 15;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--meta);
    flex-shrink: 0;
}

.tv-card-photo {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 14;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ghost);
    margin: 0.7rem 0 0;
}

.tv-card-stream {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 22;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--mid);
    margin: 0.6rem 0 0;
}

.tv-card-stream a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s, letter-spacing 0.3s;
}

.tv-card-stream a:hover {
    color: var(--white);
    letter-spacing: 0.24em;
}

.detail-body--filler {
    padding-top: 5rem;
}

@media (max-width: 900px) {
    .tv-card-bottom {
        padding: 2rem 1.75rem;
    }
}

/* TV list — legacy typographic style (kept for reference, unused) */
.tv-list {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(237, 234, 228, 0.08);
}

.tv-entry {
    padding: 2.2rem 0;
    border-bottom: 1px solid rgba(237, 234, 228, 0.06);
}

.tv-entry:last-child {
    border-bottom: none;
}

.tv-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
}

.tv-entry-title {
    font-family: var(--brooklyn);
    font-weight: 400;
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: var(--white);
    flex: 1;
}

.tv-entry-year {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--meta);
    flex-shrink: 0;
}

.tv-entry-role {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 25;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--mid);
    margin-bottom: 0.4rem;
}

.tv-entry-meta {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 14px;
    color: var(--meta);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.tv-entry-awards {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mid);
    margin-top: 0.5rem;
}

.tv-network-list {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.9;
    color: var(--mid);
}

/* Inline TV link — small two-letter call-out in bio */
.bio-tv-link {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 30;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--mid);
    padding: 0 0.15em 0.05em;
    transition: color 0.3s, border-color 0.3s;
}

.bio-tv-link:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* Project navigation (prev/next) */
.detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem;
    border-top: 1px solid rgba(237, 234, 228, 0.08);
    max-width: 1400px;
    margin: 0 auto;
}

.detail-nav-link {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--ghost);
    text-decoration: none;
    transition: color 0.3s;
}

.detail-nav-link:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
    .detail-hero-content {
        padding: 0 1.75rem 3.5rem;
    }

    .detail-back {
        margin-bottom: 2rem;
    }

    .detail-body {
        padding: 4rem 1.75rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .detail-poster {
        max-width: 300px;
    }

    .detail-nav {
        padding: 2rem 1.75rem;
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .credit-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* ── Lite-YouTube facade — a clean still + minimal play button in place
      of the cheap default embed. Fills any 16:9 .clip-embed / .video-embed. ── */
.lyt {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    display: block;
}

.lyt-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.22) brightness(0.8) contrast(1.03);
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.lyt::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 7, 0.55), rgba(7, 7, 7, 0.08) 55%, rgba(7, 7, 7, 0.22));
    pointer-events: none;
}

.lyt:hover .lyt-poster {
    filter: grayscale(0) brightness(0.94);
    transform: scale(1.035);
}

.lyt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(237, 234, 228, 0.78);
    border-radius: 50%;
    background: rgba(7, 7, 7, 0.22);
    z-index: 2;
    transition: background 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lyt-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent var(--white);
}

.lyt:hover .lyt-play {
    background: rgba(237, 234, 228, 0.16);
    border-color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}


/* In-column captioned photo (e.g. the directors on The Rainbowmaker) */
.detail-portrait {
    margin: 2.6rem 0 0;
    max-width: 600px;
}
.detail-portrait img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}
.detail-portrait figcaption {
    margin-top: 0.7rem;
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 16;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--meta);
}

/* ── Watch buttons — "liquid glass": frosted, translucent, bright-rimmed.
      The "Watch" label sits above; each pill carries the streamer's name. ── */
.watch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.3rem;
}
.watch-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 1.15rem;
    border-radius: 999px;
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 20;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    isolation: isolate;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.45),
                inset 0 -1px 1px rgba(0, 0, 0, 0.35),
                0 6px 18px rgba(0, 0, 0, 0.4);
    transition: background 0.35s, border-color 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}
/* specular sheen across the top */
.watch-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 42%);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}
.watch-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6.5px;
    border-color: transparent transparent transparent currentColor;
    opacity: 0.9;
}
.watch-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.1));
    box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.6),
                inset 0 -1px 1px rgba(0, 0, 0, 0.35),
                0 10px 26px rgba(0, 0, 0, 0.5);
}

/* Licensing block (e.g. Sunshine Eyes — Beta Film) */
.credit-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(237, 234, 228, 0.28);
    transition: color 0.3s, border-color 0.3s;
}
.credit-link:hover {
    color: var(--white);
    border-bottom-color: rgba(237, 234, 228, 0.6);
}

.detail-licensing {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 14;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--mid);
    margin-bottom: 0.9rem;
}
.detail-licensing-meta {
    font-family: var(--kurdis);
    font-variation-settings: 'wght' 12;
    font-size: 0.78rem;
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: var(--meta);
    margin-top: 0.9rem;
}

/* Top-fade — dissolves the top of a still (e.g. the clown's hat) into black
   instead of a hard cut, for a cinematic shade. */
.still--topfade { position: relative; }
.still--topfade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    background: linear-gradient(to bottom, var(--black) 0%, rgba(7, 7, 7, 0.55) 45%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
