:root {
  color-scheme: dark;
  --page: #141512;
  --panel: #1c1d19;
  --text: #f5f1e6;
  --quiet: #a6a69b;
  --muted: #949589;
  --rule: #363730;
  --accent: #ff8554;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid #ffb58c; outline-offset: 4px; }
button:disabled { opacity: .55; cursor: default; }
.wrap { width: min(1456px, calc(100% - clamp(48px, 8.6vw, 152px))); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.mast { border-bottom: 1px solid var(--rule); }
.mast-inner { height: 76px; display: flex; justify-content: space-between; align-items: center; }
.brand, .utilities, .tool, .reels-label, .foot-note, .keys, .keys > span { display: flex; align-items: center; }
.brand { gap: 11px; }
.brandmark { width: 42px; height: 37px; color: var(--accent); }
.wordmark { display: grid; gap: 3px; }
.wordmark b { font-size: 19px; font-weight: 800; line-height: 1.05; letter-spacing: .085em; }
.wordmark > span { font: 600 8.5px/1 var(--mono); letter-spacing: .153em; color: #bcbcb0; }
.utilities { gap: 17px; }
.tool { padding: 8px 1px; min-height: 40px; gap: 8px; background: none; border: 0; font-size: 12px; font-weight: 550; letter-spacing: .05em; color: #d5d5c9; }
.tool:hover, .tool[aria-pressed="true"] { color: var(--accent); }
.tool .icon { width: 17px; height: 17px; }
.divider { height: 17px; width: 1px; background: var(--rule); }
main { padding-block: 23px 0; }
.player { overflow: hidden; background: #1b1c18; border: 1px solid #414139; border-radius: 5px; }
.stage { isolation: isolate; position: relative; width: 100%; aspect-ratio: 2.63 / 1; overflow: hidden; background: #826549 url("assets/poster.webp") center / cover no-repeat; container-type: inline-size; }
#film, .stage-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
#film { display: block; }
.stage-shade { pointer-events: none; background: linear-gradient(90deg, rgb(21 19 16 / .22), transparent 43%), linear-gradient(0deg, rgb(19 16 10 / .45), transparent 35%); }
.screen-top { position: absolute; top: 5.4%; left: 2.6%; right: 2.6%; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 6px; background: #171812b8; color: #fff9ed; font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; border: 1px solid #f5e5cc3d; border-radius: 3px; }
.status i { height: 6px; width: 6px; border-radius: 50%; background: #ff8b53; box-shadow: 0 0 7px #ff8b5355; }
.is-paused .status i { background: #c6c4b8; box-shadow: none; }
.reel-id { display: flex; align-items: center; gap: 7px; color: #fff8ed; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-shadow: 0 1px 4px #14140ec4; }
.reel-id b { font-weight: 700; }
.reel-id .slash { opacity: .7; }
.view-bracket { width: 13px; height: 9px; margin-right: 2px; border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor; background: linear-gradient(currentColor,currentColor) left top/3px 1px no-repeat, linear-gradient(currentColor,currentColor) right top/3px 1px no-repeat, linear-gradient(currentColor,currentColor) left bottom/3px 1px no-repeat, linear-gradient(currentColor,currentColor) right bottom/3px 1px no-repeat; }
.poster-title { position: absolute; left: 4%; bottom: 8.2%; color: #fff7e6; pointer-events: none; }
.film-name { display: flex; align-items: center; gap: 10px; font: 700 clamp(9px, .84vw, 13px)/1 var(--mono); letter-spacing: .27em; color: #ffdda6; text-shadow: 0 1px 4px #342115; }
.film-name i { height: 2px; width: clamp(22px, 2.5vw, 38px); background: #ffad69; }
h1 { display: inline-block; margin: 8px 0 0 -.045em; font: 900 clamp(44px, 5.35vw, 89px)/1.14 var(--sans); letter-spacing: -.065em; transform: skewX(-7deg); transform-origin: left bottom; text-shadow: 0 2px 17px #2b1b1138; }
.poster-title p { margin: 10px 0 0; font-size: clamp(11px, 1.02vw, 16px); font-weight: 450; letter-spacing: .17em; color: #fff2d7; text-shadow: 0 1px 5px #352a22; }
.stage[data-style="ink"] .stage-shade { background: linear-gradient(90deg, #faf5e7b5, transparent 42%), linear-gradient(0deg, #faf5e77d, transparent 32%); }
.stage[data-style="ink"] .poster-title, .stage[data-style="ink"] .film-name, .stage[data-style="ink"] .poster-title p, .stage[data-style="ink"] .reel-id { color: #26241e; text-shadow: 0 1px 3px #faf6eb; }
.stage[data-style="ink"] .film-name i { background: #353228; }
.stage[data-style="neon"] .film-name { color: #f6bafa; }
.stage[data-style="neon"] .film-name i { background: #ff8fda; }
.leave-full { display: none; position: absolute; right: 14px; bottom: 14px; padding: 11px; color: white; background: #171814c7; border: 1px solid #ffffff50; border-radius: 3px; }
.transport { display: flex; align-items: center; gap: clamp(13px, 1.6vw, 26px); min-height: 64px; padding: 10px clamp(15px, 1.8vw, 30px); background: var(--panel); border-top: 1px solid #12130f; }
.play-button { display: grid; place-items: center; padding: 0; width: 35px; height: 35px; flex: none; border-radius: 50%; border: 1px solid #64665a; background: transparent; color: #f9f5e9; }
.play-button:hover { color: var(--accent); border-color: var(--accent); }
.play-button .icon { width: 16px; height: 16px; }
.timecode { display: flex; align-items: center; gap: 6px; white-space: nowrap; font: 500 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; color: #aaab9d; }
.timecode b { color: var(--text); font-weight: 600; }
.timecode > span:first-of-type { color: #6f7165; }
.timeline { flex: 1; min-width: 25px; height: 36px; position: relative; }
.track { position: absolute; top: calc(50% - 2px); left: 0; right: 0; height: 4px; background: #45473d; border-radius: 2px; }
#progress { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 2px; }
.track i { position: absolute; width: 2px; top: -1px; bottom: -1px; background: var(--panel); }
.track i:nth-of-type(1) { left: 25%; } .track i:nth-of-type(2) { left: 50%; } .track i:nth-of-type(3) { left: 75%; }
#head { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffab7e; left: 0; top: 50%; transform: translate(-50%,-50%); }
#seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; appearance: none; background: transparent; cursor: pointer; }
#seek::-webkit-slider-runnable-track { height: 100%; background: transparent; } #seek::-webkit-slider-thumb { appearance: none; width: 1px; height: 100%; background: transparent; }
#seek::-moz-range-track { background: transparent; border: 0; } #seek::-moz-range-thumb { width: 1px; border: 0; background: transparent; }
.detonate { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 15px; flex: none; border: 1px solid #ff9c71; border-radius: 3px; color: #251b13; background: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .045em; transition: background .15s; }
.detonate .icon { width: 16px; height: 16px; stroke-width: 1.65; }
.detonate:hover { background: #ffa675; } .detonate:active { background: #ed7448; }
.reels { margin-top: 29px; }
.reels-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.reels-label { gap: 10px; } .reels-label .icon { color: var(--accent); width: 20px; height: 20px; }
h2 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 720; letter-spacing: .065em; }
.english, .reels-count { color: var(--quiet); font: 500 10px/1 var(--mono); letter-spacing: .14em; }
.english { margin-left: 3px; padding-left: 13px; border-left: 1px solid #515247; font-size: 9px; }
.reels-count { font-variant-numeric: tabular-nums; } .reels-count b { color: var(--accent); font-weight: 650; }
.frames { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(11px, 1.28vw, 21px); }
.frame { min-width: 0; padding: 0; border: 0; appearance: none; text-align: left; background: none; }
.exposure { position: relative; display: block; width: 100%; aspect-ratio: 2.95/1; background: #292923; border: 1px solid #55564c; border-radius: 3px; overflow: hidden; isolation: isolate; }
.exposure canvas { display: block; width: 100%; height: 100%; }
.exposure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px transparent; pointer-events: none; }
.frame:hover .exposure { border-color: #c5c3b3; }
.frame[aria-pressed="true"] .exposure { border-color: var(--accent); }
.frame[aria-pressed="true"] .exposure::after { box-shadow: inset 0 0 0 1px var(--accent); }
.frame-index { position: absolute; left: 8px; top: 7px; padding: 3px 5px; background: #161711c9; color: #fff8ea; font: 600 9px/1 var(--mono); letter-spacing: .075em; border-radius: 1px; }
.frame[aria-pressed="true"] .frame-index { background: var(--accent); color: #241911; }
.equalizer { display: none; position: absolute; right: 7px; bottom: 7px; align-items: end; justify-content: center; gap: 2px; width: 20px; height: 17px; padding: 3px; border-radius: 2px; background: #191a15c9; }
.equalizer i { display: block; width: 2px; background: var(--accent); height: 6px; }
.equalizer i:nth-child(2) { height: 10px; } .equalizer i:nth-child(3) { height: 8px; }
.frame[aria-pressed="true"] .equalizer { display: flex; }
.caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 6px; row-gap: 4px; padding: 9px 1px 0; }
.caption b { font-size: 14px; letter-spacing: .055em; font-weight: 650; }
.caption small { color: var(--muted); font: 500 9px/1.2 var(--mono); letter-spacing: .10em; }
.frame[aria-pressed="true"] .caption b { color: var(--accent); }
footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding: 15px 0 22px; border-top: 1px solid var(--rule); font-size: 10px; letter-spacing: .06em; color: var(--quiet); }
.foot-note { gap: 8px; } .foot-note .icon { width: 16px; height: 16px; } .foot-dot { color: #7e8073; }
.keys { gap: 15px; } .keys > span { gap: 5px; } kbd { min-width: 16px; padding: 2px 4px; text-align: center; border: 1px solid #505247; border-radius: 2px; font: 500 9px/1.1 var(--mono), var(--sans); color: #cbcbbd; }
.player:fullscreen, .player.is-full { background: #090a08; display: flex; flex-direction: column; justify-content: center; align-items: stretch; border: 0; border-radius: 0; }
.player.is-full { position: fixed; inset: 0; z-index: 50; }
.player:fullscreen .stage, .player.is-full .stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.player:fullscreen .transport, .player.is-full .transport { flex: none; }
.player:fullscreen .leave-full, .player.is-full .leave-full { display: grid; }
@media (min-aspect-ratio: 18/10) and (min-width: 1000px) { .stage { aspect-ratio: 2.83/1; } }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .mast-inner { height: 66px; }
  main { padding-top: 18px; }
  .stage { aspect-ratio: 2.18/1; }
  .caption { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .mast-inner { height: 59px; }
  .brand { gap: 7px; } .brandmark { width: 32px; height: 30px; }
  .wordmark b { font-size: 16px; } .wordmark > span { font-size: 7px; }
  .utilities { gap: 10px; } .tool { gap: 5px; font-size: 11px; } .tool .icon { width: 16px; }
  main { padding-top: 13px; }
  .stage { aspect-ratio: 1.14/1; }
  .stage-shade { background: linear-gradient(128deg, rgb(13 14 15 / .40), transparent 57%), linear-gradient(0deg, rgb(18 15 9 / .14), transparent 24%); }
  .screen-top { top: 5%; left: 5%; right: 5%; }
  .poster-title { left: 5%; top: 16.5%; bottom: 3.7%; }
  .film-name { font-size: 8px; gap: 6px; letter-spacing: .19em; } .film-name i { width: 17px; }
  h1 { margin-top: 5px; font-size: clamp(31px, 9.1vw, 51px); }
  .poster-title p { position: absolute; bottom: 0; left: 0; width: max-content; margin: 0; font-size: 9px; letter-spacing: .075em; }
  .reel-id { font-size: 8px; gap: 4px; } .status { padding: 4px 7px; font-size: 9px; }
  .transport { gap: 10px; min-height: 55px; padding: 8px 10px; }
  .play-button { width: 31px; height: 31px; } .timecode { gap: 3px; font-size: 10px; }
  .detonate { min-height: 32px; padding: 5px 8px; font-size: 11px; gap: 5px; }
  .detonate .icon { width: 14px; height: 14px; }
  .reels { margin-top: 22px; } .reels-heading { margin-bottom: 12px; }
  .reels-label { gap: 7px; } .reels-label .icon { width: 17px; } h2 { font-size: 17px; } .english { font-size: 8px; padding-left: 9px; }
  .frames { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 11px; } .exposure { aspect-ratio: 2.35/1; }
  .caption { padding-top: 6px; row-gap: 3px; } .caption b { font-size: 13px; } .caption small { font-size: 8px; }
  footer { margin-top: 18px; padding: 11px 0 16px; } .keys { display: none; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 20px); } .utilities { gap: 5px; } .tool { padding-inline: 3px; }
  .transport { gap: 7px; } .timecode > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }
