/* The player of a film: a small page in a frame of the technology pages. The narration is chosen by links (no script), the rest is the browser's own player. */
@font-face { font-family: "Sofia Sans"; src: url("fonts/sofia-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; unicode-range: U+0000-02FF, U+2000-22FF; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("fonts/sofia-sans-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; unicode-range: U+0400-052F; font-display: swap; }
:root { --t-small: 13px; --t-label: 12px; } /* the sizes of the app, the player is shared with it */
html, body { margin: 0; height: 100%; overflow: hidden; background: #07080b; color: #f3f2ec; font: 500 var(--t-small)/1.3 "Sofia Sans", system-ui, sans-serif; color-scheme: dark; }
video { display: block; width: 100%; height: 100%; object-fit: contain; background: #07080b; }
video::cue { font-family: "Sofia Sans", system-ui, sans-serif; font-weight: 500; font-size: clamp(16px, 5.4vmin, 60px); line-height: 1.25; color: #f3f2ec; background: rgba(7, 8, 11, .8); }
/* the size of the subtitles: radio buttons before the player, their labels in the menu */
.sz { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#sz100:checked ~ video::cue { font-size: clamp(12px, 2.7vmin, 30px); }
#sz150:checked ~ video::cue { font-size: clamp(14px, 4vmin, 45px); }
#sz200:checked ~ video::cue { font-size: clamp(16px, 5.4vmin, 60px); }
#sz250:checked ~ video::cue { font-size: clamp(19px, 6.8vmin, 75px); }
#sz300:checked ~ video::cue { font-size: clamp(22px, 8.1vmin, 90px); }
/* (Safari sizes its subtitles on this box of its own) */
video::-webkit-media-text-track-container { font-size: clamp(16px, 5.4vmin, 60px); }
#sz100:checked ~ video::-webkit-media-text-track-container { font-size: clamp(12px, 2.7vmin, 30px); }
#sz150:checked ~ video::-webkit-media-text-track-container { font-size: clamp(14px, 4vmin, 45px); }
#sz250:checked ~ video::-webkit-media-text-track-container { font-size: clamp(19px, 6.8vmin, 75px); }
#sz300:checked ~ video::-webkit-media-text-track-container { font-size: clamp(22px, 8.1vmin, 90px); }
.menus { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: flex; align-items: flex-start; gap: 8px; }
.sizes { position: relative; }
.sizes summary { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 32px; padding: 0 9px; border-radius: 10px; background: rgba(7, 8, 11, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font-weight: 650; list-style: none; cursor: pointer; }
.sizes summary::-webkit-details-marker { display: none; }
.sizes[open] summary { box-shadow: inset 0 0 0 1px rgba(215, 223, 168, .6); }
.sizes ul { position: absolute; top: 38px; inset-inline-end: 0; min-width: 92px; margin: 0; padding: 5px; list-style: none; border-radius: 12px; background: #111218; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 30px rgba(0, 0, 0, .5); }
.sizes label { display: block; padding: 7px 10px; border-radius: 8px; color: #d3d1c8; white-space: nowrap; cursor: pointer; font-variant-numeric: tabular-nums; }
.sizes label:hover { background: #181a21; color: #f3f2ec; }
#sz100:checked ~ .menus label[for="sz100"], #sz150:checked ~ .menus label[for="sz150"], #sz200:checked ~ .menus label[for="sz200"], #sz250:checked ~ .menus label[for="sz250"], #sz300:checked ~ .menus label[for="sz300"] { color: #d7dfa8; background: #181a21; }
#sz100:focus-visible ~ .menus label[for="sz100"], #sz150:focus-visible ~ .menus label[for="sz150"], #sz200:focus-visible ~ .menus label[for="sz200"], #sz250:focus-visible ~ .menus label[for="sz250"], #sz300:focus-visible ~ .menus label[for="sz300"] { outline: 2px solid #d7dfa8; }
.audio { position: relative; }
.audio summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px 0 9px; border-radius: 10px; background: rgba(7, 8, 11, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); list-style: none; cursor: pointer; }
.audio summary::-webkit-details-marker { display: none; }
.audio summary svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.audio[open] summary { box-shadow: inset 0 0 0 1px rgba(215, 223, 168, .6); }
.audio ul { position: absolute; top: 38px; inset-inline-end: 0; min-width: 132px; max-height: calc(100vh - 62px); margin: 0; padding: 5px; overflow: auto; list-style: none; border-radius: 12px; background: #111218; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 26px rgba(0, 0, 0, .6); }
.audio .flag { flex: none; width: 21px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.audio a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: #d3d1c8; text-decoration: none; white-space: nowrap; }
.audio a:hover, .audio a:focus-visible { background: #181a21; color: #f3f2ec; }
.audio a[aria-current] { color: #d7dfa8; }

/* The player with its controls inside (build/site/film-player.js). Without a script: the browser's own player and the menus above. */
.custom .menus, .custom .sz { display: none; } /* (the radio buttons with them: unseen, they were still a stop for the Tab key) */
.custom video::cue { color: transparent; background: transparent; }
.pl-cap { position: absolute; inset-inline: 6%; bottom: max(13%, 52px); display: none; text-align: center; pointer-events: none; z-index: 2; } /* (above the controls while the bar shows: they end 44 px above the foot of the frame, and at 13 % a two-line subtitle lay over them on every phone, found by the layout check's item 11, 19 Nov 2026) */
.pl-cap.on { display: block; }
.pl-cap span { display: inline-block; max-width: 100%; padding: .1em .42em; border-radius: .3em; background: rgba(7, 8, 11, .78); color: #f3f2ec; font: 500 var(--pl-cap, 5.4vmin)/1.32 "Sofia Sans", system-ui, sans-serif; } /* (one box around all the lines of a subtitle, as wide as the longest: a box behind each line let the screen's own text show beside a shorter one — "those instead.glish (US)", FILM-22, the owner's screenshot of 18 Nov 2026) */
.idle .pl-cap { bottom: 6%; }
.pl-bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 18px 10px 8px; background: linear-gradient(0deg, rgba(7, 8, 11, .92), rgba(7, 8, 11, 0)); transition: opacity .25s; }
.idle .pl-bar { opacity: 0; pointer-events: none; }
.idle { cursor: none; }
.pl-btn { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: #f3f2ec; cursor: pointer; }
.pl-btn:hover { background: rgba(255, 255, 255, .1); }
.pl-btn:focus-visible, .pl-big:focus-visible, .pl-seek:focus-visible { outline: 2px solid #d7dfa8; outline-offset: 1px; }
.pl-voice { width: auto; grid-auto-flow: column; gap: 5px; padding: 0 9px 0 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); } /* the voice that speaks, in the bar (WEB-57) */
.pl-code { font-size: var(--t-label); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 420px) { .pl-voice { gap: 3px; padding: 0 7px 0 5px; } .pl-btn.pl-voice svg { width: 13px; height: 13px; } .pl-time { display: none; } } /* (a narrow frame: the voice button keeps its speaker, so "EN" reads as the voice and not the page's language — D1, 19 Nov 2026 — and the time gives way, which leaves the seek its length) */
@media (max-width: 360px) { .pl-bar { gap: 3px; padding-inline: 6px; } .pl-time { display: none; } .pl-seek { min-width: 28px; margin: 0 4px; } } /* (the frame of a 320 px phone is 288 px: the bar was 341 px wide and its settings button cut — measured by the layout check, WEB-58) */
.pl-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-gear svg, .pl-full svg { fill: none; }
.pl-seek { flex: 1; min-width: 40px; height: 24px; margin: 0 6px; accent-color: #aebc70; cursor: pointer; } /* (the line stays thin; the place a finger can take it is 24 px high: it was 4 px, the coordinator's measure of 19 Nov 2026) */
.pl-time { flex: none; color: #d3d1c8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-big { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; margin: -37px 0 0 -37px; border: 0; border-radius: 50%; background: linear-gradient(120deg, #e2e8bb, #a9b86c); color: #14150d; cursor: pointer; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.pl-big.hide { display: none; }
.pl-big svg { width: 34px; height: 34px; margin-inline-start: 3px; fill: currentColor; }
@media (max-width: 480px) { .pl-big { left: 12px; top: auto; bottom: 56px; width: 52px; height: 52px; margin: 0; } .pl-big svg { width: 24px; height: 24px; } } /* (on a phone the play button stands in the lower corner, above the controls: in the middle it covered the poster's second and third lines of text — C7, 19 Nov 2026; the posters stay as they are) */
@media (max-width: 480px) { [dir="rtl"] .pl-big { left: auto; right: 12px; } }
/* waiting for the film: a ring where the play button was. The player puts it up when the film's time has stood still for most of a second, so a short wait does not flash */
.pl-wait { position: absolute; left: 50%; top: 50%; z-index: 2; width: 46px; height: 46px; margin: -26px 0 0 -26px; border: 3px solid rgba(243, 242, 236, .22); border-top-color: #d7dfa8; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .2s; }
.waiting .pl-wait { opacity: 1; animation: pl-turn .9s linear infinite; }
@keyframes pl-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .waiting .pl-wait { animation: none; } }
.pl-menu { box-sizing: border-box; position: absolute; inset-inline-end: 10px; bottom: 60px; z-index: 4; display: none; width: min(320px, calc(100vw - 20px)); max-height: calc(100vh - 76px); padding: 12px; overflow: auto; border-radius: 14px; background: #111218; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 60px rgba(0, 0, 0, .6); }
.pl-menu.open { display: block; }
/* (on a phone's frame the open settings take the frame down to the controls, in two columns: the gear that closes them stays in sight) */
@media (max-width: 480px) { .pl-menu { inset: 8px 8px 52px; width: auto; max-height: none; padding: 10px; } .pl-menu.open { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; align-content: start; } .pl-menu .pl-group + .pl-group { margin-top: 0; padding-top: 0; border-top: 0; } }
@media (max-width: 480px) and (max-height: 200px) { .pl-menu { padding: 8px; gap: 6px 8px; } .pl-menu .pl-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } } /* (a frame of a 320 px phone is 162 px high: the four lists fit there without their titles, which the lists keep as their names; each shows its choice — P5, 19 Nov 2026) */
.pl-group + .pl-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pl-title { margin: 0 0 7px; color: #aebc70; font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pl-select { width: 100%; padding: 7px 34px 7px 10px; border: 0; border-radius: 8px; background: #181a21 url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 24 24' fill='none' stroke='%23d7dfa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; color: #f3f2ec; font: inherit; appearance: none; -webkit-appearance: none; cursor: pointer; }
[dir="rtl"] .pl-select { padding: 7px 10px 7px 34px; background-position: left 10px center; }
.pl-select:focus-visible { outline: 2px solid #d7dfa8; outline-offset: 1px; }
.pl-select option { background: #181a21; color: #f3f2ec; }
@supports (appearance: base-select) {
  .pl-select, .pl-select::picker(select) { appearance: base-select; }
  .pl-select::picker-icon { display: none; }
  .pl-select::picker(select) { margin-top: 4px; padding: 5px; border: 0; border-radius: 10px; background: #181a21; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 50px rgba(0, 0, 0, .6); }
  .pl-select option { padding: 6px 10px; border-radius: 7px; background: transparent; color: #d3d1c8; cursor: pointer; }
  .pl-select option:hover, .pl-select option:focus-visible { background: rgba(215, 223, 168, .12); color: #f3f2ec; outline: 0; }
  .pl-select option:checked { color: #d7dfa8; font-weight: 600; }
}
