/* forwhat About film: player styles. Everything is scoped to .fw-film so the
   player can sit inside any page. Font names carry an "FW" prefix so they never
   clash with a page's own @font-face rules. */
@font-face { font-family: "FW Archivo"; src: url(assets/fonts/archivo-black-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FW Bricolage"; src: url(assets/fonts/bricolage-grotesque-latin-wght.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "FW Moul"; src: url(assets/fonts/moul-khmer-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }
@font-face { font-family: "FW Nokora"; src: url(assets/fonts/nokora-khmer-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }
@font-face { font-family: "FW Nokora"; src: url(assets/fonts/nokora-khmer-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }

.fw-film { --fw-paper: #f1e6d2; --fw-cream: #fbf5ea; --fw-ink: #2e2622; --fw-teal: #3d6f62; --fw-mustard: #e6c163; position: relative; font-family: "FW Bricolage", "FW Nokora", system-ui, sans-serif; }
.fw-film:focus-visible { outline: 3px solid var(--fw-mustard); outline-offset: 4px; }
.fw-film .fw-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fw-paper); border-radius: inherit; container-type: inline-size; }
.fw-film .fw-canvas { display: block; width: 100%; height: 100%; }
.fw-film.is-started .fw-canvas { cursor: pointer; }

/* The start controls sit in the empty bottom strip of the poster frame, clear of its words. */
.fw-film .fw-overlay { position: absolute; inset: 0; display: grid; place-content: end center; justify-items: center; gap: 1.1cqw; padding-bottom: 3.6cqw; background: linear-gradient(rgba(27, 21, 18, 0) 55%, rgba(27, 21, 18, 0.32)); transition: opacity .3s; }
.fw-film.is-ended .fw-langs, .fw-film.is-ended .fw-status { display: none; }
.fw-film.is-started .fw-overlay { opacity: 0; pointer-events: none; }
.fw-film.is-ended .fw-overlay { opacity: 1; pointer-events: auto; }
.fw-film .fw-play { font: 800 clamp(14px, 2.9cqw, 32px) "FW Bricolage", "FW Nokora", sans-serif; margin: 0; padding: .5em 1.25em; border: 3px solid var(--fw-ink); border-radius: 999px; background: var(--fw-mustard); color: var(--fw-ink); box-shadow: 5px 5px 0 var(--fw-ink); cursor: pointer; transform: rotate(-2deg); line-height: 1.2; }
.fw-film .fw-play:hover:not(:disabled) { transform: rotate(-2deg) translate(-2px, -2px); box-shadow: 7px 7px 0 var(--fw-ink); }
.fw-film .fw-play:disabled { opacity: .7; cursor: progress; }
.fw-film .fw-status { margin: 0; min-height: 1.3em; font-size: clamp(11px, 1.4cqw, 16px); color: var(--fw-cream); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.fw-film .fw-langs { display: flex; gap: 8px; }
.fw-film .fw-chip { font: 700 clamp(11px, 1.5cqw, 15px) "FW Bricolage", "FW Nokora", sans-serif; margin: 0; padding: .3em .9em; border-radius: 999px; border: 2px solid var(--fw-ink); background: var(--fw-cream); color: var(--fw-ink); cursor: pointer; line-height: 1.3; }
.fw-film .fw-chip[aria-pressed="true"] { background: var(--fw-teal); color: var(--fw-cream); }

/* Controls live in their own row under the picture, so they never cover a caption. */
.fw-film .fw-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 8px; border-radius: 12px; background: rgba(46, 38, 34, .92); color: var(--fw-cream); }
.fw-film:fullscreen { display: flex; flex-direction: column; justify-content: center; align-items: center; background: #1b1512; }
.fw-film:fullscreen .fw-frame, .fw-film:fullscreen .fw-bar, .fw-film:fullscreen .fw-cc { width: min(100vw, calc((100vh - 64px) * 16 / 9)); box-sizing: border-box; }
.fw-film:fullscreen .fw-cc { color: var(--fw-cream); }
.fw-film .fw-bar button { margin: 0; background: none; border: 0; color: var(--fw-cream); font: 600 15px/1 system-ui, sans-serif; cursor: pointer; padding: 6px; border-radius: 8px; min-width: 30px; min-height: 30px; }
.fw-film .fw-bar .fw-chip { font-size: 12px; padding: 3px 9px; border-color: var(--fw-cream); background: transparent; color: var(--fw-cream); min-height: 0; }
.fw-film .fw-bar .fw-chip[aria-pressed="true"] { background: var(--fw-cream); color: var(--fw-ink); }
.fw-film .fw-bar button:focus-visible, .fw-film .fw-chip:focus-visible, .fw-film .fw-play:focus-visible { outline: 3px solid var(--fw-mustard); outline-offset: 2px; }
.fw-film .fw-scrub { flex: 1; min-width: 50px; accent-color: var(--fw-mustard); margin: 0; }
.fw-film .fw-time { font: 13px system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fw-film.is-small .fw-time, .fw-film.is-small .fw-wav, .fw-film.is-small .fw-bar .fw-chip { display: none; }

/* Captions as text, used when the player is too small for the drawn ones. */
.fw-film .fw-cc { display: none; margin: 10px 4px 0; min-height: 3.1em; font: 700 16px/1.45 "FW Bricolage", "FW Nokora", sans-serif; text-align: center; color: inherit; } /* the host page's own text colour, light or dark */
.fw-film.is-small .fw-cc { display: block; }
.fw-film.is-still .fw-overlay, .fw-film.is-still .fw-bar, .fw-film.is-still .fw-cc { display: none; }

.fw-film .fw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
