/* A dark screening room. The film's amber is a saturated variant of the site's relay color. */
html { scroll-padding-top: 1rem; }
.film-page {
    --film-ground: color-mix(in srgb, var(--paper) 44%, black);
    --film-panel: color-mix(in srgb, var(--paper) 62%, black);
    --film-rule: color-mix(in srgb, var(--line-2) 63%, black);
    --film-text: color-mix(in srgb, var(--ink) 40%, white);
    --film-muted: var(--ink-soft);
    --film-accent: var(--relay);
    --film-update: #ffcc74; /* the message itself in the film, matches scenes.js */
    --gutter: clamp(1.2rem, 4.5vw, 5.25rem);
    background: var(--film-ground);
    color: var(--film-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}
@supports (color: hsl(from red h s l)) {
    .film-page { --film-accent: hsl(from var(--relay) calc(h - 16) 100% 62%); }
}
.film-page [hidden] { display: none !important; }
.film-page button, .film-page summary { cursor: pointer; }
.film-page button { font: inherit; }
.film-page a { color: inherit; text-decoration: none; }
.film-page :focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.film-page h1, .film-page h2, .film-page h3 { color: var(--film-text); }
.film-page .glyph { flex: none; width: 1.2em; height: 1.2em; display: block; }
.sr-film, .skip-film:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-film:focus { position: fixed; z-index: 20; top: 0.8rem; left: 1rem; padding: 0.6rem 1rem; background: var(--film-panel); }
.mast { border-bottom: 1px solid var(--film-rule); }
.mast-inner, .film-main, .film-footer > div { max-width: 1720px; margin-inline: auto; padding-inline: var(--gutter); }
.mast-inner { min-height: 74px; display: flex; align-items: center; gap: clamp(1.5rem, 4.5vw, 5rem); }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.4rem; line-height: 1; letter-spacing: -0.055em; }
.wordmark img { width: 36px; height: 36px; border-radius: 20%; }
.mast-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(0.9rem, 2.3vw, 2.5rem); margin-left: auto; }
.mast-nav a { display: inline-flex; align-items: center; gap: 0.28rem; position: relative; color: var(--film-muted); font-size: 0.86rem; font-weight: 550; }
.mast-nav .film-nav { color: var(--film-text); }
.mast-nav .film-nav::before { content: ''; width: 6px; height: 6px; background: var(--film-accent); margin-right: 0.24em; }
.mast-nav a:hover, .guide-out:hover, .scene-action:hover { color: var(--film-accent); }
.mast-nav .glyph { width: 0.88rem; }
.lang-picker { position: relative; font-size: 0.82rem; z-index: 4; }
.lang-picker summary { list-style: none; border-left: 1px solid var(--film-rule); padding-left: clamp(0.85rem, 2vw, 2rem); display: flex; align-items: center; gap: 0.52rem; min-height: 32px; }
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker .glyph-globe { width: 15px; }
.lang-picker .glyph-chevron { width: 12px; }
.lang-picker[open] .glyph-chevron { transform: rotate(180deg); }
.lang-picker nav { position: absolute; right: 0; top: calc(100% + 0.6rem); padding: 0.3rem; min-width: 7.5rem; background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 0.5rem 2rem #0008; }
.lang-picker nav a { display: block; padding: 0.4rem 0.7rem; }
.lang-picker nav a:hover, .lang-picker nav [aria-current] { color: var(--film-accent); }
.film-main { background: transparent; }
.cinema { position: relative; margin-top: clamp(1rem, 2.1vw, 2.25rem); border: 1px solid var(--film-rule); background: black; }
.viewport { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(440px, 37vw, 640px); }
.film-poster { position: absolute; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.screen-shade { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #000f 0%, #000e 19%, #0009 37%, #0001 65%, transparent 84%), linear-gradient(0deg, #000b, transparent 20%); }
.screen-corners { position: absolute; z-index: 1; pointer-events: none; inset: clamp(0.7rem, 1.4vw, 1.5rem); --corner-ink: #ecece37d; }
.screen-corners i { position: absolute; width: 0.62rem; height: 0.62rem; border-color: var(--corner-ink); border-style: solid; border-width: 0; }
.screen-corners i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.screen-corners i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.screen-corners i:nth-child(3) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.screen-corners i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.poster-copy, .scene-copy { width: 48%; padding: clamp(3.5rem, 4.7vw, 5.75rem) 0 clamp(3.4rem, 4.7vw, 5.75rem) clamp(2rem, 4.5vw, 5.25rem); }
.film-kicker, .timecode, .watch-info, .chapter-count, .shot-meta, .shot-time, .figure-stamp { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.film-kicker { margin: 0 0 clamp(1.2rem, 2vw, 2.2rem); display: flex; gap: 0.7rem; align-items: center; font-size: clamp(0.67rem, 0.8vw, 0.82rem); letter-spacing: 0.14em; font-weight: 600; text-transform: uppercase; color: var(--film-accent); }
.film-reel { width: 25px; height: 8px; background: repeating-linear-gradient(113deg, var(--film-accent) 0 3px, transparent 3px 6px); }
.poster-copy h1 { font-size: clamp(3.6rem, 5.8vw, 6.6rem); line-height: 1.02; letter-spacing: -0.06em; font-weight: 750; }
.poster-copy h1 span, .poster-copy h1 strong { display: block; }
.poster-copy h1 strong { color: var(--film-accent); font-weight: inherit; }
html:not([lang="en"]) .poster-copy h1 { line-height: 1.13; letter-spacing: -0.07em; font-weight: 800; }
html[lang="ja"] .poster-copy h1 { font-size: clamp(3.2rem, 5.05vw, 6.1rem); }
.film-intro, .scene-line { margin-top: 1.22rem; max-width: 35ch; color: var(--film-muted); font-size: clamp(0.96rem, 1.14vw, 1.12rem); line-height: 1.7; }
html:not([lang="en"]) :is(.film-intro,.scene-line) { max-width: 25em; }
html:not([lang="en"]) .film-intro { text-wrap: pretty; }
.watch-row { display: flex; align-items: center; gap: 1.25rem; margin-top: clamp(1.5rem, 2vw, 2.1rem); flex-wrap: wrap; }
.watch { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; border: 0; min-height: 47px; padding: 0.72rem 1.25rem; background: var(--film-accent); color: black !important; font-weight: 750 !important; font-size: 0.94rem !important; line-height: 1.25; }
.watch:hover { background: color-mix(in srgb, var(--film-accent) 78%, white); }
.watch .glyph { width: 1.03rem; }
.watch-info { display: flex; gap: 0.65rem; align-items: center; font-size: 0.7rem; color: var(--film-muted); letter-spacing: 0.04em; }
.watch-info b { color: var(--film-text); font-weight: 500; }
.watch-info i { height: 0.8em; width: 1px; background: var(--line-2); }
.figure-stamp { position: absolute; right: clamp(1.4rem, 2.75vw, 3.1rem); bottom: clamp(1.25rem, 2.5vw, 2.8rem); display: flex; align-items: center; gap: 0.55rem; line-height: 1.3; padding: 0.47rem 0.6rem; background: #080909c9; border: 1px solid #ffffff32; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.09em; }
.figure-stamp .glyph { width: 1rem; height: 1rem; color: var(--film-accent); }
/* The picture runs edge to edge; the captions sit on a scrim over its left side. */
.screen-art { position: absolute; z-index: -2; inset: 0; background: #05080b; }
#scene-canvas { width: 100%; height: 100%; display: block; }
.mesh-key { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.4rem 0 0; padding: 0; color: var(--film-muted); font-size: 0.75rem; line-height: 1.45; list-style: none; }
.mesh-key li { display: flex; align-items: center; gap: 0.35rem; }
.key-link { width: 1rem; border-top: 2px solid var(--signal-deep); }
.key-lora { width: 1rem; border-top: 2px dashed var(--relay-deep); }
/* The update's colour in the film: a warm light, distinct from both transports. */
.key-packet { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--film-update); box-shadow: 0 0 0.35rem var(--film-update); }
.cinema.in-film .screen-shade { background: linear-gradient(90deg, #000e 0%, #000c 22%, #0008 36%, transparent 52%), linear-gradient(0deg, #0007, transparent 22%); }
.cinema.in-film .film-poster, .cinema.in-film .figure-stamp { display: none; }
.scene-copy { width: 39%; padding-right: 0.5rem; }
.scene-copy h2 { font-size: clamp(2.7rem, 4.3vw, 5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.045em; text-wrap: balance; }
.scene-copy .film-kicker { flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.35rem; }
.scene-medium { border-left: 1px solid var(--line-2); padding-left: 0.65rem; color: var(--film-muted); font-size: 0.96em; letter-spacing: 0.04em; }
.scene-line { min-height: 6.5em; text-wrap: pretty; }
.scene-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.scene-action { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; border: 0; background: transparent; color: var(--film-muted); font-size: 0.8rem !important; min-height: 40px; }
.scene-action .glyph { width: 1rem; }
.chapter-replay { color: var(--film-accent); }
.playbar { display: flex; align-items: center; min-height: 57px; border-top: 1px solid var(--film-rule); background: var(--film-panel); padding: 0 clamp(0.5rem, 1.2vw, 1.3rem); gap: clamp(0.6rem, 1.15vw, 1.4rem); }
.control { color: var(--film-text); background: transparent; border: none; width: 36px; height: 40px; flex: none; display: grid; place-items: center; }
.control:hover:not(:disabled) { color: var(--film-accent); }
.control:disabled { opacity: 0.32; cursor: default; }
.timecode { white-space: nowrap; font-size: 0.72rem; letter-spacing: 0.07em; }
.time-total { color: var(--muted); }
.scrub { position: relative; height: 36px; display: grid; align-items: center; flex: 1; min-width: 1.8rem; }
.track { position: relative; height: 4px; background: var(--line-2); }
.track-fill { display: block; transform-origin: left; height: 100%; width: 100%; background: var(--film-accent); transform: scaleX(var(--progress, 0)); }
.tick { position: absolute; height: 100%; top: 0; border-left: 3px solid var(--film-panel); }
#scrubber { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.scrub:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; }
.scrub::after { content: ''; display: block; position: absolute; left: var(--position, 0%); top: 50%; width: 5px; height: 10px; transform: translate(-50%,-50%); background: var(--film-accent); pointer-events: none; }
.step-controls { display: flex; gap: 0.05rem; }
.step-controls .glyph { width: 1.03em; }
#expand { border-left: 1px solid var(--film-rule); border-radius: 0; padding-left: 0.6rem; width: 45px; }
.chapters { padding: clamp(2.5rem, 4vw, 4.8rem) 0 clamp(3.8rem, 6vw, 7rem); }
.chapter-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: clamp(1.2rem, 2vw, 2.25rem); }
.chapter-head::after { content: ''; height: 1px; background: var(--film-rule); flex: 1; }
.chapter-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.9rem); line-height: 1.2; font-weight: 650; letter-spacing: -0.04em; }
.chapter-count { order: 1; color: var(--film-muted); display: flex; gap: 0.6rem; align-items: center; font-size: 0.72rem; }
.chapter-count i { display: block; width: 16px; height: 10px; border-block: 1px solid var(--muted); background: linear-gradient(var(--muted),var(--muted)) center/100% 1px no-repeat; }
.shot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(2rem, 3.7vw, 4.5rem) clamp(1rem, 1.8vw, 2.2rem); }
.shot { min-width: 0; }
.shot-frame { position: relative; background: var(--paper); }
.shot-frame img { width: 100%; aspect-ratio: 2/1; object-fit: cover; border: 1px solid var(--film-rule); }
.shot-select { position: absolute; inset: 0; width: 100%; display: flex; justify-content: end; align-items: end; color: white; background: transparent; border: 0; }
.shot-select .glyph { box-sizing: content-box; width: 0.9rem; height: 0.9rem; padding: 0.42rem; background: #050706c9; border: 1px solid #ffffff61; margin: 0.64rem; }
.shot-select:hover .glyph, .shot-select:focus-visible .glyph { background: var(--film-accent); color: black; border-color: var(--film-accent); }
.shot-time { display: block; position: absolute; left: 0.65rem; top: 0.65rem; background: #050706d9; color: var(--film-text); font-size: 0.68rem; line-height: 1; padding: 0.36rem 0.42rem; letter-spacing: 0.06em; }
.shot-meta { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; }
.shot-num { color: var(--film-accent); }
.shot-num::after { content: '/'; margin-left: 0.7rem; color: var(--line-2); }
.shot-type { color: var(--film-muted); }
.shot h3 { margin: 0.55rem 0 0.72rem; font-size: clamp(1.24rem, 1.6vw, 1.72rem); line-height: 1.26; letter-spacing: -0.035em; }
.cue { color: var(--film-muted); font-size: 0.94rem; line-height: 1.7; }
.cue + .cue { margin-top: 0.45rem; }
.film-note { margin-top: clamp(2.2rem, 3.5vw, 3.6rem); padding-top: 1.1rem; border-top: 1px solid var(--film-rule); max-width: 78ch; color: var(--muted); font-size: 0.82rem; line-height: 1.7; text-wrap: pretty; }
.film-footer { border-top: 1px solid var(--film-rule); }
.film-footer > div { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.film-footer .wordmark { font-size: 1.1rem; }
.film-footer .wordmark img { width: 28px; height: 28px; }
.guide-out { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.cinema:fullscreen { margin: 0; border: 0; display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; background: black; }
.cinema:fullscreen .viewport { flex: 1; width: 100%; min-height: 0; }
.cinema:fullscreen .playbar { width: 100%; flex: none; }
@media (max-width: 960px) and (min-width: 821px) {
    .scene-copy { width: 41%; }
    .scene-copy, .poster-copy { padding-left: 2.4rem; }
    .poster-copy { width: 53%; }
}
@media (max-width: 800px) {
    .shot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .mast-inner { min-height: 60px; gap: 0.85rem; }
    .wordmark { font-size: 1.15rem; gap: 0.38rem; }
    .wordmark img { width: 30px; height: 30px; }
    .mast-nav a { font-size: 0.78rem; }
    .mast-nav .film-nav, .mast-nav a:last-child { display: none; }
    .lang-picker { font-size: 0.75rem; }
    .lang-picker summary { gap: 0.32rem; }
    .cinema { margin-top: 0.85rem; }
    .viewport { min-height: 0; align-content: end; }
    .film-poster { top: 0; height: 57%; object-position: 87% 50%; }
    .poster-copy, .scene-copy { width: 100%; padding: 0 1.4rem 1.7rem; }
    .poster-copy { padding-top: clamp(175px, 45vw, 270px); }
    .screen-shade { background: linear-gradient(0deg, black 0%, black 44%, #000e 54%, #000a 64%, transparent 78%); }
    .film-kicker { font-size: 0.64rem; margin-bottom: 0.85rem; }
    .poster-copy h1, html[lang="ja"] .poster-copy h1 { font-size: clamp(2.8rem, 9.2vw, 4rem); }
    .film-intro, .scene-line { font-size: 0.93rem; margin-top: 0.85rem; line-height: 1.65; }
    html:not([lang="en"]) :is(.film-intro,.scene-line), .film-intro { max-width: 50ch; }
    .watch-row { margin-top: 1.05rem; gap: 0.85rem; }
    .watch { min-height: 44px; }
    .figure-stamp { top: 0.95rem; right: 0.95rem; bottom: auto; font-size: 0.56rem; }
    .screen-art { position: relative; inset: auto; width: 100%; height: clamp(210px, 60vw, 300px); grid-row: 1; }
    .cinema.in-film .screen-shade { display: none; }
    .scene-copy { padding-top: 1rem; grid-row: 2; }
    .scene-copy .film-kicker { margin-bottom: 0.6rem; }
    .scene-copy h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
    .scene-line { min-height: 6.6em; }
    .scene-action { margin-top: 0.4rem; }
    .playbar { gap: 0.45rem; padding-inline: 0.3rem; min-height: 47px; }
    .control { width: 30px; }
    .timecode { font-size: 0.65rem; letter-spacing: 0; }
    #expand { padding-left: 0.3rem; width: 32px; }
    .step-controls { gap: 0; }
    .chapter-head { gap: 0.8rem; }
    .chapters { padding-top: 2.1rem; }
    .cinema:fullscreen .viewport { display: flex; flex-direction: column; justify-content: end; }
    .cinema:fullscreen .screen-art { flex: 1; min-height: 0; width: 100%; }
    .cinema:fullscreen .scene-copy { flex: none; }
}
@media (max-width: 520px) {
    .shot-grid { grid-template-columns: 1fr; }
    .film-footer > div { min-height: 72px; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .cinema:fullscreen .poster-copy, .cinema:fullscreen .scene-copy { padding-block: 1rem; }
    .cinema:fullscreen h1, .cinema:fullscreen h2 { font-size: 2.25rem; }
    .cinema:fullscreen .film-kicker { margin-bottom: 0.6rem; }
}
@media (max-width: 820px) and (max-height: 520px) and (orientation: landscape) {
    .cinema:fullscreen .viewport { display: grid; grid-template-columns: minmax(0,1fr); place-content: stretch; align-items: center; }
    .cinema:fullscreen .film-poster { height: 100%; object-position: center; }
    .cinema:fullscreen .screen-shade { background: linear-gradient(90deg, black 0%, #000e 28%, #0005 53%, transparent 76%); }
    .cinema:fullscreen .screen-art { position: absolute; inset: 0 0 0 46%; width: 54%; height: 100%; }
    .cinema:fullscreen :is(.poster-copy,.scene-copy) { grid-row: 1; width: 46%; align-self: center; max-height: 100%; padding: 0.85rem 0.85rem 0.85rem 1.25rem; overflow-y: auto; }
    .cinema:fullscreen .poster-copy { width: 62%; }
    .cinema:fullscreen .film-kicker { margin-bottom: 0.4rem; font-size: 0.58rem; }
    .cinema:fullscreen .scene-copy h2 { font-size: clamp(1.25rem, 3.7vw, 1.75rem); }
    .cinema:fullscreen :is(.scene-line,.film-intro) { font-size: 0.86rem; min-height: 0; line-height: 1.5; margin-top: 0.5rem; }
    .cinema:fullscreen .scene-action { min-height: 30px; }
    .cinema:fullscreen .watch-row { margin-top: 0.5rem; }
    .cinema:fullscreen .watch { min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
    .watch, .shot-select .glyph { border: 1px solid ButtonText; }
    .track { background: GrayText; forced-color-adjust: none; }
    .track-fill, .scrub::after { background: Highlight; forced-color-adjust: none; }
    .scrub:focus-within { outline-color: Highlight; }
}
