/* Scoped cinema UI. The old board stays in the DOM for the original language handlers. */
.bc-legacy-board[hidden] { display:none !important; }
.bc-shell, .bc-shell * { box-sizing:border-box; }
.bc-shell { --ar:1.77777778; color:#f2ecd9; background:#17392f; border:1px solid #557465; border-radius:18px; padding:16px; max-width:1080px; width:100%; margin:20px auto; font-family:'Noto Sans TC',sans-serif; }
.bc-shell [hidden] { display:none !important; }
.bc-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.bc-heading h3 { font-size:26px; margin:0; line-height:1.4; color:#fde047; }
.bc-head-tools { display:flex; align-items:center; gap:8px; }
.bc-shell button { cursor:pointer; font:700 18px/1.35 'Noto Sans TC',sans-serif; min-height:44px; border:1px solid #789287; padding:8px 12px; border-radius:10px; color:#f2ecd9; background:#214b3f; box-shadow:none; transition:background .15s,color .15s; white-space:normal; }
.bc-shell button:hover { background:#2f6254; }
.bc-shell button:focus-visible, .bc-shell input:focus-visible, .bc-shell summary:focus-visible { outline:3px solid #55e9ff; outline-offset:3px; }
.bc-shell button:disabled { opacity:.55; cursor:wait; }
.bc-shell .bc-play, .bc-shell button.active { background:#fde047; border-color:#fde047; color:#11261f; }
.bc-shell .bc-play:hover, .bc-shell button.active:hover { background:#fff08d; }
.bc-shots { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
.bc-shell .bc-shot { min-height:48px; padding:8px 6px; font-size:18px; }
.bc-shell .bc-shot.active { box-shadow:0 0 13px #fde04735; }
.bc-view { min-width:0; }
.bc-stage { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:12px; background:#0b1a20; isolation:isolate; container-type:inline-size; }
.bc-canvas { display:block; width:100% !important; height:100% !important; aspect-ratio:16/9; touch-action:pan-y; }
.bc-shell[data-ready="true"] .bc-canvas { cursor:grab; }
.bc-canvas:active { cursor:grabbing; }
.bc-badges { position:absolute; top:12px; left:12px; right:12px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; pointer-events:none; }
.bc-image-tag, .bc-scale-tag, .bc-drag-hint { font-size:15px; line-height:1.5; font-weight:600; padding:5px 9px; border:1px solid #bcd7cf50; border-radius:6px; background:#102920d9; color:#f2ecd9; backdrop-filter:blur(5px); }
.bc-scale-tag { font-family:'JetBrains Mono','Noto Sans TC',monospace; }
.bc-ruler { position:absolute; inset:0; pointer-events:none; }
.bc-level { position:absolute; transform:translateY(-50%); font:700 clamp(15px,2vw,22px)/1.3 'Noto Sans TC',sans-serif; padding:4px 8px; background:#102920ec; border-radius:5px; color:#f2ecd9; white-space:nowrap; }
.bc-drag-hint { position:absolute; left:50%; bottom:12px; transform:translateX(-50%); width:max-content; max-width:94%; text-align:center; pointer-events:none; }
.bc-apple-note { position:absolute; left:74%; top:64%; width:24%; display:flex; flex-direction:column; gap:4px; color:#f2ecd9; text-align:center; pointer-events:none; line-height:1.4; }
.bc-apple-note strong, .bc-apple-note span, .bc-apple-note b { font-size:22px; }
.bc-apple-note strong { color:#fde047; }
.bc-apple-note small { font-size:14px; color:#bdcfc4; }
.bc-loading, .bc-error { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:16px; background:#11261feb; color:#f2ecd9; padding:24px; text-align:center; font-size:22px; }
.bc-error p { max-width:620px; line-height:1.6; margin:0; }
.bc-caption { margin-top:12px; padding:12px 16px; border-left:4px solid #55e9ff; background:#21463c; border-radius:9px; }
.bc-caption h4 { font-size:24px; line-height:1.4; margin:0 0 7px; color:#fde047; }
.bc-caption p { font-size:22px; line-height:1.65; margin:0; }
.bc-probe-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px; }
.bc-probe-tools > span { font-size:17px; color:#b1c6bc; }
.bc-probe-tools button { font-size:17px; }
.bc-transport { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px 0 0; }
.bc-slider-label { display:flex; flex:1 1 230px; flex-direction:column; gap:0; font-size:15px; color:#b8cdc3; line-height:1.4; }
.bc-timeline { width:100%; display:block; margin:0; min-width:0; height:32px; accent-color:#fde047; cursor:pointer; touch-action:pan-y; }
.bc-clock { font:15px/1.4 'JetBrains Mono',monospace; color:#bccfc6; }
.bc-sources { margin-top:12px; border-top:1px dashed #557465; padding-top:10px; color:#c5d5ca; font-size:16px; line-height:1.7; }
.bc-sources summary { cursor:pointer; min-height:32px; color:#55e9ff; }
.bc-sources p { margin:9px 0; font-size:16px; line-height:1.7; }
.bc-sources a { color:#8de6f7; text-decoration:underline; }
.bc-language { display:none; }
.bc-full { position:fixed !important; inset:0 !important; z-index:24000; max-width:none; width:100vw; height:100vh; height:100dvh; margin:0; padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); border-radius:0; border:0; overflow:auto; display:grid; grid-template-columns:220px minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; gap:14px; background:#11261f; }
.bc-full .bc-heading { grid-column:1/-1; margin:0; }
.bc-full .bc-language { display:flex; gap:5px; }
.bc-full .bc-language button { font-size:16px; }
.bc-full .bc-shots { grid-column:1; grid-row:2; display:flex; flex-direction:column; align-self:start; margin:0; gap:10px; }
.bc-full .bc-shot { padding:12px 8px; }
.bc-full .bc-view { grid-column:2; grid-row:2/4; min-height:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:0; overflow:auto; }
.bc-full .bc-stage { width:min(100%,calc(var(--bc-available-h,500px) * var(--ar))); flex:0 0 auto; }
.bc-full .bc-caption { width:100%; flex:0 0 auto; padding:10px 14px; }
.bc-full .bc-caption h4 { font-size:23px; }
.bc-full .bc-caption p { font-size:22px; line-height:1.5; }
.bc-full .bc-transport { grid-column:1; grid-row:3; align-self:end; padding:0; }
.bc-full .bc-slider-label { flex-basis:100%; order:-1; }
.bc-full .bc-clock { flex-basis:100%; }
.bc-full .bc-sources { display:none; }
.bc-full .bc-canvas { touch-action:none; }
@media(min-width:1300px) { .bc-full { grid-template-columns:280px minmax(0,1fr); } }
@media(max-width:680px) {
 .bc-shell { padding:10px; }
 .bc-heading { align-items:flex-start; }
 .bc-heading h3 { font-size:23px; }
 .bc-shots { gap:5px; }
 .bc-shell .bc-shot { font-size:16px; }
 .bc-badges { top:7px; left:7px; right:7px; }
 .bc-image-tag,.bc-scale-tag { font-size:12px; padding:3px 6px; }
 .bc-scale-tag { margin-left:auto; }
 .bc-caption { padding:10px 12px; }
 .bc-caption h4 { font-size:22px; }
 .bc-caption p { font-size:22px; }
 .bc-transport { gap:7px; }
 .bc-slider-label { flex-basis:calc(100% - 100px); order:3; }
 .bc-clock { margin-left:auto; }
 .bc-level { font-size:14px; padding:3px; }
 .bc-drag-hint { font-size:13px; }
}
@media(orientation:portrait) {
 .bc-full { display:flex; flex-direction:column; gap:10px; overflow:auto; }
 .bc-full .bc-heading { flex-wrap:wrap; }
 .bc-full .bc-shots { flex-direction:row; flex:none; }
 .bc-full .bc-shot { flex:1; padding:7px 5px; }
 .bc-full .bc-view { flex:1 0 auto; overflow:visible; }
 .bc-full .bc-stage { width:100%; }
 .bc-full .bc-transport { align-self:stretch; flex-shrink:0; }
 .bc-full .bc-slider-label { flex-basis:180px; }
 .bc-full .bc-clock { flex-basis:auto; }
}
@media(prefers-reduced-motion:reduce) { .bc-shell button { transition:none; } }
/* On a small stage, the full 22px numeric explanation remains beneath the image. */
@media(max-width:900px) { .bc-apple-note { display:none; } }
@container(max-width:900px) { .bc-apple-note { display:none; } }
