@import url("../lesson-colors.css");
/* every colour from lesson-colors.css (2026-10-04): a film is always dark, its player the film chrome set */
:root{color-scheme:dark;--bg:var(--lc-film-bg);--board:var(--lc-board-bg);--ink:var(--lc-film-ink);--quiet:var(--lc-film-quiet);--line:var(--lc-film-line);--accent:var(--lc-film-accent)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.film-shell{width:min(1280px,calc(100% - 48px));margin:34px auto 52px}header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 23px}
.eyebrow{margin:0 0 5px;color:var(--quiet);font-size:11px;letter-spacing:.16em;font-weight:650}h1{font-size:clamp(21px,2.6vw,30px);font-weight:560;letter-spacing:-.035em;margin:0;line-height:1.25}
.silent{font-size:12px;text-align:right;color:var(--lc-film-soft);white-space:nowrap}.silent span{display:block;color:var(--quiet);font-size:11px;margin-top:3px}
.player{background:var(--board);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 20px 65px color-mix(in srgb,var(--lc-black) 20%,transparent)}
.stage{position:relative;width:100%;aspect-ratio:16/9;background:var(--board);isolation:isolate}
#cv,#preview{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain;background:var(--board)}
#cv{touch-action:pan-y}#cv[data-orbit="true"]{touch-action:none;cursor:grab}#cv[data-orbit="true"]:active{cursor:grabbing}#preview{z-index:2;pointer-events:none;background:transparent}#preview[hidden]{display:none}
/* the 3D controls (Rotate 3D, the hint while paused) style themselves: lib/turn-controls.mjs */
#loading{position:absolute;inset:0;display:grid;place-items:center;background:var(--board);color:var(--quiet);font-size:14px;z-index:3}#loading[hidden]{display:none}
:focus-visible{outline:2px solid var(--lc-film-focus);outline-offset:3px}
/* The lesson bar (lib/film-transport.css) sits flush under the board, inside the player's own frame. The caption
   band is its first row, as on the Center of Mass page. */
.player .filmbar{width:100%;margin:0;border:0;border-top:1px solid var(--fb-edge);border-radius:0}
.player .fb-caption > span{max-width:62ch}
.transcript{border-top:1px solid var(--line);margin-top:24px;padding-top:17px;max-width:920px}.transcript summary{cursor:pointer;color:var(--lc-film-soft);font-size:14px}.transcript p{color:var(--lc-film-text);line-height:1.8;margin:20px 0;padding:0 0 0 16px;border-left:2px solid transparent}.transcript p[data-active="true"]{border-left-color:var(--accent);color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.player:fullscreen{width:100vw;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column;justify-content:center;background:var(--board)}.player:fullscreen .stage{flex:0 0 auto;width:min(100vw,calc((100dvh - 150px)*16/9));margin:auto;max-height:calc(100dvh - 150px)}.player:fullscreen .filmbar{flex:0 0 auto}
@media(max-width:600px){.film-shell{width:calc(100% - 20px);margin-top:19px}header{gap:10px;margin-bottom:16px;flex-wrap:wrap}header>div{min-width:0;max-width:100%;overflow-x:auto}.eyebrow{font-size:9px}.silent{font-size:10px}.silent span{font-size:9px}.player{border-radius:8px}.player .fb-caption{font-size:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Embedded in a lesson page (the media sheet): the board draws on the page's paper, with the lesson bar under it.
   On the light page the sheet inverts the frame, so the bar's dark palette reads as the light one there. */
.embed,.embed body{background:var(--board)}.embed .film-shell{width:100%;margin:0}.embed header,.embed .transcript{display:none}
.embed .player{background:transparent;border:0;border-radius:0;box-shadow:none}
.embed .stage,.embed #loading{background:transparent}
.embed .player .filmbar{border-radius:0 0 12px 12px;border:1px solid var(--fb-edge);border-top:1px solid var(--fb-edge)}
