/* The Workbench. Rules: styleboard/DESIGN.md. Two layouts from one page:
   html.film  = the long take scrubbed by scrolling (desktop, motion allowed): sections become fixed overlays, one at a time.
   html.stack = every stop as a still with its cards, one under the other (phones, reduced motion, Save-Data, no JS).
   Sizes on the film are in --u, one CSS px of the 1280 x 720 frame the layout was drawn on, so type keeps its place on the picture. */

@font-face { font-family: "OC Source Serif"; src: url(../fonts/source-serif-4.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "OC Source Serif"; src: url(../fonts/source-serif-4-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "OC Source Sans"; src: url(../fonts/source-sans-3.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "OC Source Sans"; src: url(../fonts/source-sans-3-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Chinese running text: every Chinese character the site sets, one file for every page (pages.py cuts it at each build) */
@font-face { font-family: "OC Sans SC"; src: url(../fonts/noto-sans-sc.woff2) format("woff2"); font-weight: 400 600; font-display: swap;
  unicode-range: U+3000-303F, U+3400-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "OC Serif SC"; src: url(../fonts/noto-serif-sc-600.woff2) format("woff2"); font-weight: 500 700; font-display: swap;
  unicode-range: U+3000-303F, U+3400-9FFF, U+FF00-FFEF, U+00B7, U+2014, U+2026; }

:root {
  --paper: #efe7da;                     /* the prints under the lamp */
  --paper-2: rgba(239, 231, 218, .70);
  --paper-3: rgba(239, 231, 218, .52);
  --hair: rgba(239, 231, 218, .16);
  --hair-2: rgba(239, 231, 218, .30);
  --lamp: #e9b47c;                      /* the pendant's 3200 K: one or two touches per screen */
  --lamp-2: rgba(233, 180, 124, .55);
  --ink: #0c0a09;
  --ink-2: #14110f;
  --ink-3: #1a1714;                     /* a picture's place before it loads */
  --paper-hi: #fff8ec;                  /* a name brightening under the pointer */
  --panel: rgba(17, 14, 12, .96);       /* search, the corner player */
  --tip: rgba(16, 13, 11, .92);         /* small labels that float over pictures */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "OC Source Serif", "Source Serif 4", Georgia, serif;
  --serif-sc: "OC Source Serif", "OC Serif SC", "Songti SC", "STSong", "Noto Serif SC", serif;   /* Latin and digits in Chinese display lines: Source Serif 4 */
  --sans: "OC Source Sans", "OC Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "OC Source Sans", "OC Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;   /* labels, times, numbers: the text face with tabular figures */
  --u: 1px;
  color-scheme: dark;
}
/* English pages (and the 404) set their few Chinese words (the language switch, a search result's Chinese name) in the system's
   sans, so they never download the Chinese text face for two characters */
:root:lang(en) { --sans: "OC Source Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
                 --mono: var(--sans); }
/* The site's grid: two lines. Everything set from the left hangs from --lx, everything set from the right ends at --rx (distances from
   the window's edges), and the right column (search and language in the top bar, the contents on the first screen) is --rc wide.
   Declared on html, so a column that sets itself smaller (app.js fit() lowers --u on it) keeps its edge. Phones: 16 px. */
html { --lx: calc(var(--u) * 64); --rx: calc(var(--u) * 64); --rc: calc(var(--u) * 258); --u0: var(--u); }   /* --u0: the window's u, which fit() never lowers */
@media (max-width: 1023px), (max-height: 559px) { html { --lx: 16px; --rx: 16px; } }
html.film { --u: clamp(.8px, min(100vw / 1280, 100vh / 720), 2.4px);
             --fs: max(100vw / 1280, 100vh / 720); --fx: calc((100vw - 1280 * var(--fs)) / 2); --fy: calc((100vh - 720 * var(--fs)) / 2); }   /* the cover-fitted frame: scale and offsets */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html.stack { scroll-behavior: smooth; } }
body { background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6;
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, canvas { display: block; }
ol, ul { list-style: none; }
:focus-visible { outline: 1.5px solid var(--lamp); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--paper); color: var(--ink); font-size: 14px; }
.skip:focus { top: 12px; }

/* ================================================================ top bar */
.top { position: fixed; z-index: 30; left: var(--lx); right: var(--rx); top: calc(var(--u) * 30);
       display: flex; align-items: center; gap: calc(var(--u) * 26); pointer-events: none; }
.top > * { pointer-events: auto; }
.mark { font-family: var(--serif); font-size: calc(var(--u) * 17); letter-spacing: .22em; font-weight: 500; line-height: 1; display: flex; align-items: baseline; white-space: nowrap; }
.mark small { font-size: max(13px, calc(var(--u) * 13)); letter-spacing: .02em; color: var(--paper-2); margin-left: calc(var(--u) * 14); font-style: italic; font-weight: 400; }
:lang(zh) .mark small { font-family: var(--serif-sc); font-style: normal; font-weight: 600; font-size: max(13px, calc(var(--u) * 13)); letter-spacing: .32em; }
.top .rule { flex: 1; height: 1px; background: var(--hair); }
/* the right column of the bar: search and language, as wide as the contents under it */
.top .tr { flex: none; width: var(--rc); display: flex; align-items: center; gap: calc(var(--u) * 18); }
.search { display: flex; align-items: center; gap: calc(var(--u) * 10); flex: 1; min-width: 0; padding: calc(var(--u) * 7) 0;
          border-bottom: 1px solid var(--paper-3); font-size: max(13px, calc(var(--u) * 13)); color: var(--paper-2); letter-spacing: .04em; text-align: left;
          transition: border-color .16s var(--ease), color .16s var(--ease); }
.search:hover { color: var(--paper); border-color: var(--paper-2); }
.search svg, .find svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); stroke: currentColor; fill: none; stroke-width: 1.4; flex: none; }
.search span { flex: 1; white-space: nowrap; }
kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-2); border: 1px solid var(--hair-2); padding: 0 calc(var(--u) * 5); border-radius: 3px; line-height: 1.5; }
.lang { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); letter-spacing: .08em; color: var(--paper-2); padding: calc(var(--u) * 4) calc(var(--u) * 2);
        border-bottom: 1px solid transparent; transition: color .16s, border-color .16s; }
.lang:lang(zh) { font-family: var(--sans); letter-spacing: .12em; }
.lang:hover { color: var(--paper); border-color: var(--paper-3); }
/* the site's links, on every page: OPUSCAR 98, the thank-you films, the repository and its stars (a menu on phones) */
.top .links { flex: none; display: flex; align-items: baseline; gap: calc(var(--u) * 20); white-space: nowrap; }
.top .links a { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); letter-spacing: .08em; color: var(--paper-2); padding: calc(var(--u) * 4) 0;
  border-bottom: 1px solid transparent; transition: color .16s, border-color .16s; }
:lang(zh) .top .links a { font-family: var(--sans); font-size: max(12px, calc(var(--u) * 12)); letter-spacing: .1em; }
.top .links a:hover, .top .links a[aria-current] { color: var(--paper); border-color: var(--paper-3); }
.top .gh span { margin-left: .7em; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--paper-3); }
.top .menu { display: none; }

/* ================================================================ the picture */
.reel, .scrim, .veil { display: none; }
html.film .reel { display: block; position: fixed; inset: 0; z-index: 0; background: #0b0908; }
html.film #seq { width: 100%; height: 100%; }
html.film .scrim { display: block; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .45; transition: opacity .7s var(--ease);
  background:
    linear-gradient(90deg, rgba(12,10,9,.82) 0%, rgba(12,10,9,.64) 30%, rgba(12,10,9,.20) 48%, rgba(12,10,9,0) 58%),
    linear-gradient(180deg, rgba(12,10,9,.58) 0%, rgba(12,10,9,0) 16%),
    linear-gradient(0deg, rgba(12,10,9,.45) 0%, rgba(12,10,9,0) 14%); }
html.film.at-stop .scrim { opacity: 1; }
html.film.at-finale .scrim { opacity: .5; }
/* film grain, laid over the picture only (the moving take and the stop stills), under the scrim and the words.
   One 192-texel tile at the frame's own pixel size (1 texel = 1 px of the 1920 frame), jumped to a new place 24 times a second
   with a transform: the compositor moves it, nothing is repainted. Reduced motion: it stays still. */
.grain { display: none; }
html.film .grain { display: block; position: fixed; z-index: 3; pointer-events: none; mix-blend-mode: overlay;
  --t: calc(var(--fs) * 128);   /* the tile: 192 texels x (1280 / 1920) */
  inset: calc(var(--t) * -1); background: url(grain.png) 0 0 / var(--t) var(--t) repeat;
  will-change: transform; animation: grain .3333s steps(1, end) infinite; }
html.film.nograin .grain { display: none; }
@keyframes grain {
  0%    { transform: translate3d(0, 0, 0); }
  12.5% { transform: translate3d(calc(var(--t) * -.37), calc(var(--t) * .21), 0); }
  25%   { transform: translate3d(calc(var(--t) * .52), calc(var(--t) * -.44), 0); }
  37.5% { transform: translate3d(calc(var(--t) * -.18), calc(var(--t) * -.69), 0); }
  50%   { transform: translate3d(calc(var(--t) * .73), calc(var(--t) * .38), 0); }
  62.5% { transform: translate3d(calc(var(--t) * -.61), calc(var(--t) * -.12), 0); }
  75%   { transform: translate3d(calc(var(--t) * .29), calc(var(--t) * .83), 0); }
  87.5% { transform: translate3d(calc(var(--t) * -.85), calc(var(--t) * .57), 0); }
}
/* stacked pages: the same grain, still, on each picture */
html.stack .stop .still { position: relative; }
html.stack .stop .still::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: url(grain.png) 0 0 / 128px 128px repeat; }
html.stack.nograin .stop .still::after { display: none; }
html.film .veil { display: block; position: fixed; inset: 0; z-index: 25; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .6s cubic-bezier(.3,0,.2,1); }
html.film.cut .veil { opacity: 1; transition: opacity .24s cubic-bezier(.5,0,.75,0); }   /* out fast, in slow: a cut through black */

/* ================================================================ stops (hero, 15 stations, finale) */
.stop .still img { width: 100%; height: 100%; object-fit: cover; }
html.film main > .stop { position: static; height: 0; visibility: hidden; }
html.film main > .stop.on { visibility: visible; }
html.film .stop .still { display: none; position: fixed; inset: 0; z-index: 2; opacity: 0; transition: opacity .42s var(--ease); pointer-events: none; }
html.film .stop.near .still, html.film .hero .still { display: block; }
html.film .stop.lit .still.ok, html.film .hero.lit .still { opacity: 1; }
html.film .stop .ov { position: fixed; z-index: 10; left: var(--lx); top: calc(var(--u0) * 80); width: calc(var(--u0) * 446);   /* 64 + 446 = 510u: inside the left 40%; a column set smaller keeps its top and width */
                      opacity: 0; transition: opacity .38s var(--ease); }   /* no transform on the column: it would make the column the note's containing block, so the note jumps when it ends (each line rises on its own instead) */
html.film .stop.on .ov { opacity: 1; }
html.film .stop:not(.near) .ov { display: none; }   /* far stations: no layout, so their card images don't download */
html.film .stop.on .ov > * { animation: rise .7s var(--ease) both; }
html.film .stop.on .ov > :nth-child(2) { animation-delay: .04s; } html.film .stop.on .ov > :nth-child(3) { animation-delay: .08s; }
html.film .stop.on .ov > :nth-child(4) { animation-delay: .12s; } html.film .stop.on .ov > :nth-child(5) { animation-delay: .16s; }
html.film .stop.on .ov > :nth-child(6) { animation-delay: .2s; } html.film .stop.on .ov > :nth-child(7) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(calc(var(--u) * 8)); } to { opacity: 1; transform: none; } }

/* ---------- station head */
.meta { display: flex; align-items: center; gap: calc(var(--u) * 12); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12));
        letter-spacing: .16em; color: var(--paper-2); text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.meta b { color: var(--paper); font-weight: 500; }
.meta i { flex: 0 0 calc(var(--u) * 36); height: 1px; background: var(--paper-3); }
:lang(zh) .meta { letter-spacing: .12em; }
.station h2 { margin-top: calc(var(--u) * 12); display: flex; align-items: baseline; gap: calc(var(--u) * 16); font-weight: 400; }
.num { font-family: var(--serif); font-weight: 400; font-size: calc(var(--u) * 60); line-height: .9; letter-spacing: -.01em;
       font-feature-settings: "lnum"; color: var(--paper); flex: none; }
.station h2 .nm { font-family: var(--serif); font-weight: 400; font-size: calc(var(--u) * 36); line-height: 1.04; letter-spacing: -.005em; min-width: 0; text-wrap: balance; }
:lang(zh) .station h2 .nm { font-family: var(--serif-sc); font-weight: 600; font-size: calc(var(--u) * 46); line-height: 1; letter-spacing: .06em; }
.alt { margin-top: calc(var(--u) * 8); color: var(--paper-2); }
.alt:lang(en) { font-family: var(--serif); font-style: italic; font-size: calc(var(--u) * 21); letter-spacing: .01em; line-height: 1.2; }
.alt:lang(zh-CN) { font-family: var(--serif-sc); font-weight: 600; font-size: max(16px, calc(var(--u) * 16)); letter-spacing: .3em; line-height: 1.4; }
.desc { margin-top: calc(var(--u) * 10); font-size: max(16px, calc(var(--u) * 16)); line-height: 1.6; color: var(--paper-2); letter-spacing: .01em; max-width: 100%; text-wrap: pretty; }
:lang(zh) .desc { letter-spacing: .04em; line-height: 1.75; }

/* ---------- cards */
/* every style of the station is a card: three across in the left column (two across when there are four) */
.cards { margin-top: calc(var(--u) * 20); width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 12) calc(var(--u) * 14); align-items: start; }
.cards[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--u) * 15) calc(var(--u) * 20); }
.cards.scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; padding-right: calc(var(--u) * 4);
                -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.card { display: block; position: relative; }
.card .pic { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3);
             box-shadow: 0 0 0 1px var(--hair), 0 calc(var(--u) * 18) calc(var(--u) * 40) calc(var(--u) * -18) rgba(0,0,0,.85);
             transition: box-shadow .2s var(--ease), transform .35s var(--ease); }
.card .pic img, .card .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .pic video { opacity: 0; transition: opacity .25s var(--ease); }
.card .pic.playing video { opacity: 1; }
.card:hover .pic, .card:focus-visible .pic { box-shadow: 0 0 0 1px var(--lamp-2), 0 calc(var(--u) * 22) calc(var(--u) * 44) calc(var(--u) * -16) rgba(0,0,0,.9); transform: translateY(calc(var(--u) * -2)); }
.card:focus-visible { outline: none; }
.card .row { margin-top: calc(var(--u) * 7); display: flex; align-items: baseline; gap: calc(var(--u) * 8); }
.card .n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-3); letter-spacing: .06em; }
.card .nm { font-family: var(--serif); font-weight: 500; font-size: max(16px, calc(var(--u) * 16)); line-height: 1.2; min-width: 0; text-wrap: balance; }   /* wraps, never cut */
:lang(zh) .card .nm { font-family: var(--serif-sc); font-weight: 600; font-size: max(16px, calc(var(--u) * 16)); letter-spacing: .06em; word-break: keep-all; overflow-wrap: anywhere; }   /* breaks only at a space: 1920s / 新闻影片 */
.cards:not([data-n="4"]) .nm { font-size: max(14px, calc(var(--u) * 14)); }
:lang(zh) .cards:not([data-n="4"]) .card .nm { font-size: max(14px, calc(var(--u) * 14)); letter-spacing: .04em; }
.cards:not([data-n="4"]) .row { margin-top: calc(var(--u) * 6); gap: calc(var(--u) * 6); }
.cards:not([data-n="4"]) .n { display: none; }
.cards:not([data-n="4"]) .sub { font-size: max(12px, calc(var(--u) * 12)); }
.cards:not([data-n="4"]) .sub em { font-size: max(12px, calc(var(--u) * 12)); }
:lang(zh) .cards:not([data-n="4"]) .sub em { display: none; }
.card.hit .pic { box-shadow: 0 0 0 2px var(--lamp), 0 0 calc(var(--u) * 34) rgba(233,180,124,.35); animation: hit 1.1s var(--ease) 2; }
.card.hit .nm { color: var(--paper-hi); }
@keyframes hit { 50% { box-shadow: 0 0 0 2px var(--lamp), 0 0 calc(var(--u) * 10) rgba(233,180,124,.15); } }
/* one of the newest styles: a small word in the picture's bottom right (no border) */
.card .new, #res .th .new { position: absolute; z-index: 1; right: calc(var(--u) * 5); bottom: calc(var(--u) * 5); background: rgba(12,10,9,.82); color: var(--lamp);
  font-size: max(12px, calc(var(--u) * 12)); letter-spacing: .14em; line-height: 1.3; padding: 0 calc(var(--u) * 4); font-style: normal; pointer-events: none; }
:lang(en) .card .new, :lang(en) #res .th .new { font-family: var(--mono); font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: .1em; }
#res .th { position: relative; }
#res .th .new { right: 2px; bottom: 2px; font-size: max(12px, calc(var(--u) * 12)); line-height: 1.5; padding: 0 3px; }
.card .t { margin-left: auto; padding-left: calc(var(--u) * 6); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-3); flex: none; }
.card .sub { margin-top: calc(var(--u) * 2); font-size: max(12px, calc(var(--u) * 12)); line-height: 1.35; color: var(--paper-2); letter-spacing: .02em; display: flex; flex-wrap: wrap; column-gap: calc(var(--u) * 7); }
.card .sub em { font-family: var(--serif); font-style: italic; font-size: max(13px, calc(var(--u) * 13)); }
:lang(zh) .card .sub span { margin-left: -.3em; }        /* the English name, then the film title; it drops to a second line when it doesn't fit */
:lang(en) .card .sub { flex-wrap: nowrap; align-items: baseline; }
:lang(en) .card .sub em { flex: 1; min-width: 0; text-wrap: balance; }
sup { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, .62em); color: var(--lamp); margin-left: .3em; letter-spacing: .06em; vertical-align: .5em; line-height: 0; font-weight: 500; }
:lang(en) sup { text-transform: uppercase; }



/* ---------- the hairline note on the picture */
.note { position: fixed; z-index: 9; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-2); white-space: nowrap; pointer-events: none; display: none; isolation: isolate;
        translate: 0 -100%; padding-left: calc(var(--u) * 3); }   /* left/top = its bottom-left corner, at the leader's end */
.note::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--u) * -7) calc(var(--u) * -12); background: rgba(12,10,9,.5); filter: blur(calc(var(--u) * 9)); border-radius: 50%; }
html.film .stop.lit .note.placed, html.stack .note.placed { display: block; }
.note b { display: block; font-family: var(--serif-sc); font-weight: 600; font-size: max(14px, calc(var(--u) * 14)); color: var(--paper); letter-spacing: .1em; margin-bottom: calc(var(--u) * 2); }
.note i { font-family: var(--serif); font-style: italic; font-size: max(13px, calc(var(--u) * 13)); letter-spacing: .02em; color: rgba(239,231,218,.82); }
:lang(en) .note i { font-size: max(14px, calc(var(--u) * 14)); color: var(--paper); }
.note .lead-line { position: absolute; left: 0; top: 100%; height: 1px; background: rgba(239,231,218,.55); transform-origin: 0 0; transform: rotate(135deg); }   /* down and left to the thing */
.note.down { translate: none; } .note.down .lead-line { top: 0; transform: rotate(-135deg); }   /* the one exception: the words below and right of the thing, the leader up and left */
.note .lead-line::after { content: ""; position: absolute; right: -2.5px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(239,231,218,.12); }
html.film .stop.lit .note { animation: fadein .8s .45s var(--ease) both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- hero */
.hero-h { font-family: var(--serif); font-weight: 400; font-size: calc(var(--u) * 50); line-height: 1.02; letter-spacing: -.012em; margin-top: calc(var(--u) * 18); }
.hero-h em { font-style: italic; font-weight: 500; color: rgba(239,231,218,.9); text-shadow: 0 0 calc(var(--u) * 28) rgba(12,10,9,.7), 0 0 calc(var(--u) * 6) rgba(12,10,9,.5); }
:lang(zh) .hero-h { font-family: var(--serif-sc); font-weight: 600; font-size: calc(var(--u) * 64); line-height: 1.32; letter-spacing: .05em; }
:lang(zh) .hero-h em { font-style: normal; font-weight: 600; color: var(--lamp); text-shadow: none; }
.hero-h .pe { font-feature-settings: "halt"; letter-spacing: 0; }          /* line-end comma set half-width, no hanging gap */
.hero-h .lat { letter-spacing: .02em; }   /* "AI": Source Serif 4, like every Latin letter in a Chinese heading */
.hero .lead { margin-top: calc(var(--u) * 18); font-size: clamp(17px, calc(var(--u) * 15.5), 18px); line-height: 1.7; color: var(--paper-2); max-width: calc(var(--u) * 420); text-wrap: pretty; }
:lang(zh) .hero .lead { font-size: clamp(18px, calc(var(--u) * 17), 20px); letter-spacing: .04em; line-height: 1.8; max-width: calc(var(--u) * 460); }   /* one sentence a line (home.py breaks after the first 。 or ；) */
.cue { display: flex; align-items: center; gap: calc(var(--u) * 12); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); letter-spacing: .14em; color: var(--paper-2); text-transform: uppercase; }
:lang(zh) .cue { font-family: var(--sans); letter-spacing: .14em; }
.cue i { position: relative; width: 1px; height: calc(var(--u) * 34); background: var(--hair-2); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lamp); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { top: -40%; } 70%, 100% { top: 100%; } }
html.film .hero .ov { top: calc(var(--u) * 108); width: calc(var(--u) * 640); transition: opacity .3s linear; transform: none; }
html.film .hero .cue { position: fixed; left: var(--lx); bottom: calc(var(--u) * 34); }

/* ---------- the opening's contents: 15 stations in the dark to the right of the lamps, set like a catalogue's contents page */
.toc-h { display: flex; align-items: center; gap: calc(var(--u) * 10); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); letter-spacing: .16em;
         text-transform: uppercase; color: var(--paper-2); white-space: nowrap; }
.toc-h #h-toc { color: var(--paper); font-weight: 500; }
.toc-h i { flex: 1; height: 1px; background: var(--hair-2); }
:lang(zh) .toc-h { letter-spacing: .1em; }
.toc ol { margin-top: calc(var(--u) * 12); }
.toc a { display: flex; align-items: baseline; gap: calc(var(--u) * 10); padding: calc(var(--u) * 3.4) 0; color: var(--paper); }
.toc b { flex: none; width: calc(var(--u) * 18); font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 400; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-2); letter-spacing: .04em; transition: color .16s; }
.toc .nm { font-family: var(--serif); font-size: max(14px, calc(var(--u) * 14)); line-height: 1.25; letter-spacing: .005em; white-space: nowrap; transition: color .16s; }
:lang(zh) .toc .nm { font-family: var(--serif-sc); font-weight: 600; font-size: max(14px, calc(var(--u) * 14)); letter-spacing: .1em; }
.toc a > i { flex: 1; min-width: calc(var(--u) * 12); height: 1px; align-self: center; margin-top: calc(var(--u) * 3);
             background: repeating-linear-gradient(90deg, var(--hair-2) 0 1px, transparent 1px calc(var(--u) * 4)); transition: background .16s; }
.toc .c { flex: none; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-2); min-width: calc(var(--u) * 12); text-align: right; }
.toc a:hover .nm, .toc a:focus-visible .nm { color: var(--paper-hi); }
.toc a:hover b, .toc a:focus-visible b { color: var(--lamp); }
.toc a:hover > i, .toc a:focus-visible > i { background: var(--lamp-2); }
.toc a:focus-visible { outline: none; }
.toc a:focus-visible .nm { text-decoration: underline 1px var(--lamp); text-underline-offset: calc(var(--u) * 4); }
html.film .hero .toc { position: fixed; z-index: 11; right: var(--rx); top: calc(var(--u) * 112); width: var(--rc); transition: opacity .3s linear; }
html.film .hero .toc { animation: fadein 1.1s .35s var(--ease) both; }


/* ---------- finale: OPUSCAR 98 under its projection */
.o98 { font-family: var(--serif); font-weight: 500; font-size: calc(var(--u) * 22); letter-spacing: .2em; line-height: 1.2; margin-top: calc(var(--u) * 12);
       display: flex; flex-wrap: wrap; align-items: baseline; column-gap: calc(var(--u) * 16); }
.o98 .sub { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: max(16px, calc(var(--u) * 16)); color: var(--paper-2); letter-spacing: .01em; }
:lang(zh) .o98 .sub { font-family: var(--sans); font-style: normal; font-size: max(13px, calc(var(--u) * 13)); letter-spacing: .08em; }
.finale .desc { max-width: none; margin-top: calc(var(--u) * 10); }
.acts { margin-top: calc(var(--u) * 16); display: flex; flex-wrap: wrap; gap: calc(var(--u) * 12); }
.btn { display: inline-flex; align-items: center; gap: calc(var(--u) * 10); height: calc(var(--u) * 38); padding: 0 calc(var(--u) * 16); font-size: max(14px, calc(var(--u) * 14));
       border: 1px solid var(--hair-2); color: var(--paper); letter-spacing: .03em; transition: border-color .16s, background .16s, color .16s; white-space: nowrap; }
.btn:hover { border-color: var(--paper-2); }
.btn.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 500; }
.btn.primary:hover { background: var(--paper-hi); }
.btn svg { width: calc(var(--u) * 9); height: calc(var(--u) * 10); fill: currentColor; }
.btn .t { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); opacity: .6; }
.foot { margin-top: calc(var(--u) * 20); display: flex; flex-wrap: wrap; gap: calc(var(--u) * 6) calc(var(--u) * 18); font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-2); }
.foot a { border-bottom: 1px solid var(--hair-2); } .foot a:hover { color: var(--paper); border-color: var(--paper-2); }
/* the end of the bench: who made it, where it lives, under OPUSCAR 98's caption (the column's last lines; on the film its fit
   runs to the window's foot, since the ruler is on the left) */
.end { margin-top: calc(var(--u) * 12); padding-top: calc(var(--u) * 8); border-top: 1px solid var(--hair); line-height: 1.45; }
html.film .end .totop { display: none; }   /* on the film the ruler and the mark lead back */
.end .foot { margin-top: 0; }
.screen { position: fixed; z-index: 8; display: none; border: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.screen:hover, .screen:focus-visible { border-color: rgba(233,180,124,.45); box-shadow: 0 0 calc(var(--u) * 60) rgba(233,180,124,.12) inset; outline: none; }
html.film .finale.lit .screen.placed, html.stack .finale .screen.placed { display: block; }
html.film .finale .ov { left: calc(566 * var(--fs) + var(--fx)); top: calc(474 * var(--fs) + var(--fy)); width: auto; right: var(--rx); }   /* to the right line: the words take fewer lines */

/* ================================================================ the rail: where the camera is along the bench */
.rail { position: fixed; z-index: 20; left: var(--lx); bottom: calc(var(--u) * 18); width: calc(var(--u) * 446); height: calc(var(--u) * 30); }
.rail ol { position: absolute; inset: 0; }
.rail ol::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--u) * 7); height: 1px; background: var(--hair); }
.rail li { position: absolute; top: 0; width: 0; height: 100%; }
.rail a { position: absolute; left: calc(var(--u) * -9); width: calc(var(--u) * 18); top: calc(var(--u) * -8); height: calc(var(--u) * 40); display: block; }
.rail a i { position: absolute; left: 50%; top: calc(var(--u) * 11); width: 1px; height: calc(var(--u) * 9); background: var(--paper-3); transition: background .2s, height .2s, top .2s; }
.rail a b { position: absolute; left: 50%; top: calc(var(--u) * 24); transform: translateX(-50%); font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 400; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-3); letter-spacing: .06em; opacity: 0; transition: opacity .2s, color .2s; }
.rail li:first-child a b, .rail li:last-child a b, .rail a[aria-current] b, .rail a:hover b, .rail a:focus-visible b { opacity: 1; }
.rail a[aria-current] i { background: var(--lamp); }
.rail a[aria-current] b { color: var(--lamp); }
.rail a span { position: absolute; left: 50%; bottom: calc(var(--u) * 38); transform: translate(-50%, calc(var(--u) * 4)); white-space: nowrap; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper);
               background: var(--tip); border: 1px solid var(--hair); padding: calc(var(--u) * 3) calc(var(--u) * 8); opacity: 0; pointer-events: none; transition: opacity .16s, transform .2s var(--ease); }
:lang(zh) .rail a span { font-family: var(--serif-sc); font-weight: 600; letter-spacing: .08em; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.rail a:hover i, .rail a:focus-visible i { background: var(--paper); }
.rail a:focus-visible { outline: none; }
.rail .cam { position: absolute; top: calc(var(--u) * 3); left: 0; width: 2px; height: calc(var(--u) * 17); margin-left: -1px; background: var(--lamp); box-shadow: 0 0 calc(var(--u) * 8) rgba(233,180,124,.5);
             transition: opacity .3s; pointer-events: none; }
.rail.wait .cam { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .3; } }
.rail .next { position: absolute; left: 0; bottom: calc(var(--u) * 34); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); letter-spacing: .14em; text-transform: uppercase;
              color: var(--paper-2); white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.rail .next b { color: var(--paper); font-weight: 500; margin: 0 .5em; }
.rail .next em { font-style: normal; text-transform: none; letter-spacing: .04em; font-family: var(--serif); font-size: 1.25em; color: var(--paper); }
:lang(zh) .rail .next em { font-family: var(--serif-sc); font-weight: 600; font-size: 1.15em; letter-spacing: .1em; }
html.film.moving .rail .next { opacity: 1; }
html.film.at-top .rail { opacity: 0; pointer-events: none; }
.rail { transition: opacity .5s var(--ease); }

/* ================================================================ search */
.find { position: fixed; inset: auto; top: calc(var(--u) * 66); right: var(--rx); left: auto; margin: 0; width: min(calc(var(--u) * 520), calc(100vw - 32px));
        max-height: min(78vh, calc(var(--u) * 600)); background: var(--panel); color: var(--paper); border: 1px solid var(--hair-2); padding: 0;
        box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); overflow: hidden; display: none; flex-direction: column; }
.find[open] { display: flex; animation: drop .22s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.find::backdrop { background: rgba(8, 7, 6, .5); backdrop-filter: blur(2px); }
.find .box { display: flex; align-items: center; gap: calc(var(--u) * 12); padding: calc(var(--u) * 14) calc(var(--u) * 18); border-bottom: 1px solid var(--hair); color: var(--paper-2); }
.find input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--paper); font: inherit; font-size: max(16px, calc(var(--u) * 16)); letter-spacing: .02em; }
.find input::placeholder { color: var(--paper-3); }
.find input::-webkit-search-cancel-button { display: none; }
#res { overflow-y: auto; padding: calc(var(--u) * 6) 0; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; }
#res li { display: grid; grid-template-columns: calc(var(--u) * 72) minmax(0, 1fr) auto; align-items: center; gap: calc(var(--u) * 14); padding: calc(var(--u) * 7) calc(var(--u) * 18); cursor: pointer; }
#res li[aria-selected="true"] { background: rgba(233, 180, 124, .07); box-shadow: inset 2px 0 0 var(--lamp); }
#res .th { aspect-ratio: 16 / 9; background: var(--ink-3) center / cover no-repeat; box-shadow: 0 0 0 1px var(--hair); }
#res .th.stn { display: grid; place-items: center; background: none; box-shadow: inset 0 0 0 1px var(--hair-2); font-family: var(--serif); font-size: calc(var(--u) * 22); color: var(--paper); }
#res .tx { min-width: 0; }
#res .a { display: flex; align-items: baseline; gap: calc(var(--u) * 8); white-space: nowrap; overflow: hidden; }
#res .a b { font-family: var(--serif); font-weight: 500; font-size: max(16px, calc(var(--u) * 16)); overflow: hidden; text-overflow: ellipsis; }
:lang(zh) #res .a b { font-family: var(--serif-sc); font-weight: 600; font-size: max(16px, calc(var(--u) * 16)); letter-spacing: .05em; }
#res .a em { font-family: var(--serif); font-style: italic; font-size: max(13px, calc(var(--u) * 13)); color: var(--paper-2); overflow: hidden; text-overflow: ellipsis; }
#res .b { display: block; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#res .c { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); color: var(--paper-3); letter-spacing: .08em; text-align: right; white-space: nowrap; }
#res .c b { display: block; color: var(--paper-2); font-weight: 400; }
#res mark { background: none; color: var(--lamp); }
#res .empty { display: block; padding: calc(var(--u) * 18); color: var(--paper-2); font-size: max(14px, calc(var(--u) * 14)); cursor: default; }
.find .hint { padding: calc(var(--u) * 9) calc(var(--u) * 18); border-top: 1px solid var(--hair); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, calc(var(--u) * 12)); letter-spacing: .08em; color: var(--paper-3); }
:lang(zh) .find .hint { font-family: var(--sans); }

/* ---------- the screening room */
.room { position: fixed; inset: 0; margin: auto; width: min(92vw, calc(82vh * 16 / 9)); max-width: none; max-height: none; background: #000; border: 0; padding: 0; overflow: visible; }
.room::backdrop { background: rgb(6, 5, 4); }   /* solid: the bench's ruler doesn't show through under the room */
.room video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.room .player { width: 100%; --u: clamp(1px, min(100vw / 1280, 100vh / 720), 1.6px); }
.room .x { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; font-size: 26px; line-height: 1; color: var(--paper-2); }
.room .x:hover { color: var(--paper); }

.loading { display: none; }
.debug { position: fixed; z-index: 60; right: 12px; bottom: 12px; font: 11px/1.45 var(--mono); color: #cfc6b8; background: rgba(0,0,0,.72); padding: 8px 10px; white-space: pre; pointer-events: none; }

/* ================================================================ stack: wide screens with reduced motion (or ?mode=stack) */
html.stack .track { display: none; }
html.stack main > .stop { position: relative; }
html.stack .stop .note { position: absolute; }
html.stack .screen { position: absolute; }
@media (min-width: 1024px) {
  html.stack { --u: calc(100vw / 1280); }
  html.stack main > .stop { aspect-ratio: 16 / 9; overflow: hidden; }
  html.stack main > .stop .still { position: absolute; inset: 0; }
  html.stack main > .stop::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(90deg, rgba(12,10,9,.84) 0%, rgba(12,10,9,.64) 30%, rgba(12,10,9,.2) 48%, rgba(12,10,9,0) 58%), linear-gradient(180deg, rgba(12,10,9,.5) 0%, rgba(12,10,9,0) 16%); }
  html.stack main > .finale::after { background: linear-gradient(0deg, rgba(12,10,9,.7) 0%, rgba(12,10,9,0) 45%); }
  html.stack .stop .ov { position: absolute; z-index: 2; left: var(--lx); top: calc(var(--u0) * 84); width: calc(var(--u0) * 446); }
  html.stack .hero .ov { top: calc(var(--u) * 108); width: calc(var(--u) * 640); }
  html.stack .hero .cue { display: none; }
  html.stack .hero .toc { position: absolute; z-index: 2; right: var(--rx); top: calc(var(--u) * 112); width: var(--rc); }
  html.stack .finale .ov { left: calc(var(--u0) * 566); top: calc(var(--u0) * 474); width: calc(var(--u0) * 600); }
  html.stack .stop .note, html.stack .screen { z-index: 2; }
  html.stack .top { position: fixed; background: linear-gradient(180deg, rgba(12,10,9,.75), rgba(12,10,9,0)); left: 0; right: 0; top: 0; padding: calc(var(--u) * 26) var(--rx) calc(var(--u) * 20) var(--lx); }
  html.stack .rail { background: rgba(12,10,9,.0); }
}

/* ================================================================ stack: phones */
/* Short windows (the film under 800 px tall: 1280 x 720, 1366 x 768, 1440 x 789): every station's cards fit without scrolling. The
   ladder's floors give way a step here (labels 11 px, card names 13 px, the station's line 14 px), so fit() can set the column
   smaller; it keeps its width (names wrap no more than they do), and the thumbnails are cut a little lower (16:7.5) and the lines
   set tighter. 800 px and taller keep the ladder (DESIGN.md §4). */
@media (min-width: 1024px) and (max-height: 640px) {   /* very short windows: the finale's caption and credits close up so the credits' last line stays in */
  html.film .finale .end { margin-top: calc(var(--u) * 6); padding-top: calc(var(--u) * 5); line-height: 1.35; }
  html.film .finale .desc { line-height: 1.55; }
}
@media (min-width: 1024px) and (max-height: 799px) {
  html.film .card .pic { aspect-ratio: 16 / 7.5; }
  html.film .card .nm { line-height: 1.12; }
  html.film .card .sub { line-height: 1.3; }
  .station .meta { font-size: max(11px, calc(var(--u) * 12)); }   /* the station columns only (DESIGN.md §4); the finale keeps 12 px */
  .alt:lang(zh-CN) { font-size: max(13px, calc(var(--u) * 16)); }
  .desc { font-size: max(14px, calc(var(--u) * 16)); }
  .card .nm, :lang(zh) .card .nm { font-size: max(13px, calc(var(--u) * 16)); }
  .cards:not([data-n="4"]) .nm, :lang(zh) .cards:not([data-n="4"]) .card .nm { font-size: max(13px, calc(var(--u) * 14)); }
  .card .n, .card .t, .card .sub, .card .new, .cards:not([data-n="4"]) .sub, .cards:not([data-n="4"]) .sub em { font-size: max(11px, calc(var(--u) * 12)); }
  .card .sub em { font-size: max(11px, calc(var(--u) * 13)); }
  .rail a b, .rail a span, .rail .next { font-size: max(11px, calc(var(--u) * 12)); }
}
@media (max-width: 1023px) {
  #top .meta { flex-wrap: wrap; row-gap: 4px; } #top .meta .sep { display: none; }   /* "99 film styles" and "15 stations" wrap whole, no dot left at a line's end */
  html.stack, html.film { --u: 1px; }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  .top { position: fixed; left: 0; right: 0; top: 0; padding: 12px 16px 18px; gap: 14px; background: linear-gradient(180deg, rgba(12,10,9,.97) 62%, rgba(12,10,9,0)); }
  .mark { font-size: 15px; }
  .top .rule { display: none; }
  .top .tr { flex: 1; width: auto; justify-content: flex-end; gap: 14px; }
  .search { width: auto; flex: 1; justify-content: flex-end; border: 0; padding: 0; min-height: 40px; }
  .search span, .search kbd { display: none; }
  .top .links, .top .tr .lang { display: none; }
  .top .menu { display: block; order: 9; position: relative; flex: none; margin: 0 -11px 0 -8px; }   /* last, its icon on the right line */
  .top .menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--paper-2); }
  .top .menu summary::-webkit-details-marker { display: none; }
  .top .menu svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; fill: none; }
  .top .menu[open] summary { color: var(--paper); }
  .top .menu .mp { position: absolute; right: 11px; top: calc(100% + 6px); min-width: 220px; display: flex; flex-direction: column; padding: 4px 0;
    background: var(--ink-2); border: 1px solid var(--hair-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); }
  .top .menu .mp a { padding: 0 16px; line-height: 46px; font-size: 15px; color: var(--paper); border-top: 1px solid var(--hair); white-space: nowrap; }
  .top .menu .mp a:first-child { border-top: 0; }
  .top .menu .mp a[aria-current] { color: var(--lamp); }
  .top .menu .mp .gh span { font-size: 13px; color: var(--paper-2); }
  .search svg { width: 18px; height: 18px; }
  .lang { font-size: 12px; min-height: 40px; display: inline-flex; align-items: center; }
  main > .stop { position: relative; }
  .stop .still { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
  .stop .still img { object-position: 68% 50%; }
  .hero .still { aspect-ratio: auto; height: min(74svh, 640px); }
  .hero .still img { object-position: 42% 50%; }
  .hero { display: flex; flex-direction: column; }

  .hero-h { font-size: 40px; margin-top: 14px; }
  :lang(zh) .hero-h { font-size: 44px; }
  .hero .lead { font-size: 17px; max-width: 34em; }
  .cue { display: none; }
  .hero .toc { padding: 18px 16px 34px; }
  .toc-h { font-size: 12px; }
  .toc ol { margin-top: 6px; }
  .toc li + li a { border-top: 1px solid var(--hair); }
  .toc a { padding: 0; min-height: 44px; align-items: center; gap: 12px; }
  .toc b { font-size: 12px; width: 20px; }
  .toc .nm, :lang(zh) .toc .nm { font-size: 16px; }
  .toc .c { font-size: 12px; }
  .stop .ov { padding: 22px 16px 46px; }
  .hero .ov { position: absolute; left: 0; right: 0; top: 0; padding: 86px 16px 70px; background: linear-gradient(180deg, rgba(12,10,9,.92) 0%, rgba(12,10,9,.62) 62%, rgba(12,10,9,0) 100%); }
  .hero .meta { white-space: normal; flex-wrap: wrap; row-gap: 4px; }
  .finale .meta, .theatre .meta { flex-wrap: wrap; row-gap: 4px; }   /* "Feature presentation — End of the bench" (the finale, OPUSCAR 98's page) is wider than a 360 px phone */
  .lead br.w { display: none; }
  :lang(zh) #res .a em { display: none; }
  .meta { font-size: 12px; }
  .num { font-size: 48px; }
  .station h2 .nm { font-size: 34px; }
  :lang(zh) .station h2 .nm { font-size: 34px; }
  .alt:lang(en) { font-size: 18px; } .alt:lang(zh-CN) { font-size: 15px; }
  .desc { font-size: 16px; max-width: 36em; }
  .cards { width: auto; }
  .cards, .cards[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .cards .n, .cards:not([data-n="4"]) .n { display: inline; }
  .cards:not([data-n="4"]) .nm, :lang(zh) .cards:not([data-n="4"]) .card .nm { font-size: 15.5px; }
  .cards:not([data-n="4"]) .sub { font-size: 12px; } .cards:not([data-n="4"]) .sub em { font-size: 13px; }
  .card .nm { font-size: 16px; } :lang(zh) .card .nm { font-size: 15.5px; }
  .card .row { flex-wrap: nowrap; }
  .card .n, .card .t { font-size: 12px; }
  .card .sub { font-size: 12px; } .card .sub em { font-size: 13px; }
  :lang(zh) .card .sub em { display: none; }
  .note { display: none !important; }
  .finale .still { aspect-ratio: 16 / 10; }
  .finale .still img { object-position: 60% 40%; }
  .o98 { font-size: 24px; } .o98 .sub { font-size: 15px; flex-basis: 100%; margin-top: 4px; } :lang(zh) .o98 .sub { font-size: 13.5px; }
  .btn { height: 46px; font-size: 15px; padding: 0 18px; } .btn svg { width: 10px; height: 11px; } .btn .t { font-size: 12px; }
  .foot { font-size: 13px; }
  .rail { left: 0; right: 0; bottom: 0; width: auto; height: calc(54px + env(safe-area-inset-bottom)); padding: 0 22px env(safe-area-inset-bottom);
          background: var(--ink); border-top: 1px solid var(--hair); }
  .rail::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 18px; background: linear-gradient(rgba(12,10,9,0), var(--ink)); pointer-events: none; }   /* text fades into the bar instead of being sliced */
  .rail ol { left: 22px; right: 22px; top: 14px; bottom: auto; height: 34px; }
  .rail a { left: -12px; width: 24px; top: -12px; height: 52px; }
  .rail a b { font-size: 12px; top: 20px; }
  .rail a span, .rail .next, .rail .cam { display: none; }
  .find { top: 0; right: 0; left: 0; width: 100vw; max-height: 100svh; height: 100svh; border: 0; }
  .find .box { padding: 14px 16px; }
  #res li { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 8px 16px; gap: 12px; }
  #res .a b { font-size: 16px; } #res .b { font-size: 13px; } #res .c { font-size: 12px; }
  .find .hint { display: none; }
}
@media (max-width: 374px) { .finale .meta i, .theatre .meta i { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
