/* Agamemnon — "screening room": neutral near-black surround, the frame lights the room,
   warm-white primary actions, one tungsten accent kept for work in progress.
   Three voices: serif is the film speaking, sans is the tool, mono is measurement.
   Two time scales: hands are fast (--t-hand), light is slow (--t-light). */
:root {
  --bg: #0a0a0b;
  --ink: #edebe6;
  --hi: #f2efe8;
  --mut: #a8a49c;
  --dim: #8f8b84;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .26);
  --panel: rgba(20, 20, 22, .8);
  --accent: #f0b36a;
  --warn: #f0b36a;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --serif: 'Instrument Serif', 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-light: cubic-bezier(.65, 0, .35, 1);
  --t-hand: 120ms;     /* a control answering */
  --t-panel: 240ms;    /* a surface arriving */
  --t-stage: 480ms;    /* the stage changing shape */
  --t-light: 1200ms;   /* the room's light changing */
  --fs-1: 11px;        /* mono labels and measurements */
  --fs-2: 12px;        /* secondary */
  --fs-3: 13px;        /* interface */
  --fs-4: 15px;        /* reading and writing */
  --fs-5: 18px;        /* loglines */
  --r-1: 6px;          /* thumbnails, fields */
  --r-2: 12px;         /* panels */
  --r-frame: 2px;      /* the frame is a screen, not a card */
  --glow: .38;         /* ambient strength, 0..1 (G cycles studio / low / off) */
  --ar: 1.7778;        /* aspect ratio of the take on stage */
  color-scheme: dark;
}
:root[data-glow="low"] { --glow: .16; }
:root[data-glow="off"] { --glow: 0; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--fs-3)/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 108px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
}
button, select, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; border-radius: var(--r-1); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 1, "tnum" 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------ ambient light */
/* The canvas overshoots the viewport and is masked to nothing at its own edge, so the glow never ends on a line. */
#ambient {
  position: fixed; left: 50%; top: 36%; z-index: 0;
  width: 130vw; height: 140vh;
  transform: translate3d(-50%, -50%, 0);
  filter: saturate(.9);
  opacity: calc(var(--glow) * var(--glow-live, 1));
  transition: opacity var(--t-light) var(--ease-light);
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 0%, #000 22%, rgba(0, 0, 0, .34) 62%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 50% 50%, #000 0%, #000 22%, rgba(0, 0, 0, .34) 62%, transparent 100%);
  will-change: opacity;
  contain: strict;
  pointer-events: none;
}
/* Room texture: one static grain tile that dithers the glow on 8-bit panels. Never animated, never over the picture. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain); background-size: var(--grain-size, 128px);
  opacity: .028;
}

/* ------------------------------------------------------------ top bar */
.top {
  grid-column: 1 / -1; grid-row: 1;
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; flex: none; }
/* The mark is neutral in the room; it keeps its colour at the door (.op-mark). */
.brand-logo { display: block; height: 22px; width: auto; max-width: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; filter: grayscale(1) brightness(2.1); opacity: .8; }
.top nav { display: flex; align-items: center; gap: 4px; }
.badge {
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  font: var(--fs-1) var(--mono); letter-spacing: .12em; color: var(--mut); text-transform: uppercase;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.badge.busy i { background: var(--accent); animation: breathe 1.4s ease-in-out infinite; }
.navbtn {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: var(--fs-3); color: var(--mut); transition: color var(--t-hand), background var(--t-hand);
}
.navbtn:hover { color: var(--hi); background: rgba(255, 255, 255, .06); }
.round {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #c9c5bd; transition: background var(--t-hand), color var(--t-hand); flex: none;
}
.round:hover { background: rgba(255, 255, 255, .09); color: var(--hi); }

/* ------------------------------------------------------------ room: full-height rail + stage */
.rail {
  grid-column: 1; grid-row: 2 / 4;
  position: relative; z-index: 3;
  isolation: isolate;
  contain: layout paint style;
  transform: translateZ(0);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 0; padding: 4px 0 20px 14px;
}
.rail-switch { display: flex; align-items: center; gap: 10px; }
.rail-tab {
  min-height: 24px; padding: 0 1px; border-bottom: 1px solid transparent;
  font: var(--fs-1) var(--mono); letter-spacing: .1em; color: var(--dim);
  transition: color var(--t-hand), border-color var(--t-hand);
}
.rail-tab:hover { color: var(--hi); }
.rail-tab.on { color: var(--hi); border-bottom-color: var(--line-2); }
.rail-filters { display: flex; align-items: center; gap: 4px; }
.rail-fbtn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  min-height: 22px; padding: 0 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font: var(--fs-1) var(--mono); color: var(--dim); transition: border-color var(--t-hand), color var(--t-hand), background var(--t-hand);
}
.rail-fbtn .ic { width: 11px; height: 11px; }
.rail-fbtn:hover { color: var(--hi); border-color: var(--line-2); }
.rail-fbtn.on { color: #0a0a0b; background: var(--hi); border-color: var(--hi); }
.rail-fbtn.on[data-rail-filter="starred"] .ic { fill: currentColor; }
.rail-fbtn.has-items:not(.on) { color: var(--ink); }
.rail-label { max-width: 94px; overflow: hidden; text-overflow: ellipsis; font: var(--fs-1) var(--mono); letter-spacing: .08em; color: var(--dim); white-space: nowrap; }
/* The reel dissolves at the far end instead of being cut by the viewport. */
#rail {
  display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0;
  padding: 6px 6px 14px; overflow: auto; scrollbar-width: none;
  transform: translateZ(0); backface-visibility: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 64px), transparent);
}
#rail::-webkit-scrollbar { display: none; }
.room {
  grid-column: 2; grid-row: 2;
  position: relative; z-index: 2; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  padding: 2px 12px 0;
}
.take {
  position: relative; display: block; width: 76px; aspect-ratio: 16 / 9; flex: none;
  border-radius: var(--r-1); overflow: hidden; background: #111113;
  box-shadow: 0 0 0 2px transparent, 0 0 0 3.5px transparent;
  transition: transform var(--t-panel) var(--ease), box-shadow var(--t-panel);
}
.take:hover { transform: translate3d(0, -1px, 0); }
.take[aria-current='true'] { box-shadow: 0 0 0 2px #0a0a0b, 0 0 0 3.5px var(--hi); }
.take.b { box-shadow: 0 0 0 2px #0a0a0b, 0 0 0 3.5px var(--accent); }
.take img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .58; transition: opacity var(--t-panel);
}
.take:hover img, .take[aria-current='true'] img, .take.b img { opacity: 1; }
.take .no { position: absolute; left: 5px; bottom: 3px; font: var(--fs-1) var(--mono); color: var(--hi); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); opacity: .78; transition: opacity var(--t-panel); }
.take:hover .no, .take[aria-current='true'] .no, .take.b .no { opacity: 1; }
.take.live { display: grid; place-items: center; background: #151517; }
.take.live .ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.take.live .ring circle { fill: none; stroke-width: 2; }
.take.live .ring .bg { stroke: rgba(255, 255, 255, .14); }
.take.live .ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset var(--t-panel) linear; }
.take.enhancing {
  display: grid; place-items: center;
  background: radial-gradient(95% 95% at 50% 42%, rgba(240, 179, 106, .2), #131210 78%);
  border: 1px solid rgba(240, 179, 106, .36);
  animation: enhanceBorderPulse 2.4s ease-in-out infinite;
}
.take.enhancing::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 22%, rgba(240, 179, 106, .24) 48%, rgba(242, 239, 232, .26) 53%, transparent 78%);
  transform: translateX(-115%);
  animation: enhanceSheen 2.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
.take.enhancing .enh-core {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  transform: translateY(-2px);
}
.take.enhancing .enh-spark {
  width: 14px; height: 14px; color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(240, 179, 106, .6));
  animation: enhanceSpark 2.2s ease-in-out infinite;
}
.take.enhancing .enh-tag {
  font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--hi);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}
.take.enhancing .enh-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden;
  background: rgba(240, 179, 106, .12);
}
.take.enhancing .enh-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 46%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--hi), transparent);
  animation: enhanceTrack 1.6s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes enhanceSheen {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(115%); }
}
@keyframes enhanceBorderPulse {
  0%, 100% { border-color: rgba(240, 179, 106, .28); }
  50% { border-color: rgba(240, 179, 106, .68); }
}
@keyframes enhanceSpark {
  0%, 100% { transform: scale(.88) rotate(0deg); opacity: .78; }
  50% { transform: scale(1.12) rotate(18deg); opacity: 1; }
}
@keyframes enhanceTrack {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(230%); }
}
.take.failed { display: grid; place-items: center; color: var(--dim); font: var(--fs-1) var(--mono); letter-spacing: .1em; }
.take.archived { border: 1px dashed rgba(255, 255, 255, .2); }
.take.archived img { opacity: .42; filter: grayscale(.35); }
.take.archived:hover img, .take.archived[aria-current='true'] img { opacity: .88; filter: none; }
.take .take-star {
  position: absolute; right: 4px; top: 3px; z-index: 2; pointer-events: none;
  font-size: var(--fs-1); line-height: 1; color: var(--hi);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95);
}
.take.ctx-open { box-shadow: 0 0 0 2px #0a0a0b, 0 0 0 3.5px var(--mut); }

.stage-col {
  container-type: size; flex: 1; width: 100%; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
}
.frame {
  position: relative; flex: none;
  width: min(100cqw, calc((100cqh - 60px) * var(--ar)));
  aspect-ratio: var(--ar);
  border-radius: var(--r-frame); overflow: hidden; background: #050506;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 120px -30px rgba(0, 0, 0, .9);
}
.frame video, .frame > img.first { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame video { object-fit: cover; background: #050506; transition: opacity var(--t-panel) ease; }
.frame.loading:not(.has-poster) #video { opacity: 0; }

/* The wait. --dev runs 0..1 with render progress: the field lifts, the grain resolves, and a first-frame reference comes
   up in the tray. Each poll moves these by less than the eye resolves, so nothing is transitioned between polls. */
.frame.busy, .frame.revealing { background-color: color-mix(in srgb, #050506, #15130f calc(var(--dev, 0) * 100%)); }
.frame > img.first { object-fit: cover; filter: blur(calc(26px - var(--dev, 0) * 14px)) saturate(.7) brightness(calc(.6 + var(--dev, 0) * .2)); transform: scale(1.12); }
.frame .grain {
  position: absolute; inset: -128px; pointer-events: none;
  background-image: var(--grain); background-size: var(--grain-size, 128px);
  mix-blend-mode: screen; opacity: calc(.15 - var(--dev, 0) * .07);
  animation: grain .5s steps(1) infinite;    /* six positions at 12 fps; transform only, so it stays on the compositor */
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); } 16.6% { transform: translate3d(-37px, 51px, 0); } 33.3% { transform: translate3d(61px, -23px, 0); }
  50% { transform: translate3d(-83px, -67px, 0); } 66.6% { transform: translate3d(29px, 97px, 0); } 83.3% { transform: translate3d(-101px, 13px, 0); }
}
/* The reveal. Veil and grain dissolve while the still develops; the take plays once the print is fixed (player.js). */
.frame.revealing .veil, .frame.revealing .grain, .frame.revealing > img.first { opacity: 0; pointer-events: none; transition: opacity 700ms ease; }
.frame #video.reveal { animation: develop 1400ms cubic-bezier(.45, 0, .55, 1) both; }
@keyframes develop { from { filter: blur(16px) saturate(.5) brightness(.6); transform: scale(1.02); } to { filter: none; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* Nothing sits on the picture at rest. The actions arrive with the pointer (data-hot, set in app.js) or with focus,
   and on touch they belong to the paused frame. */
.frame-actions { position: absolute; right: 8px; top: 8px; z-index: 4; display: flex; gap: 4px; opacity: 0; pointer-events: none; transition: opacity var(--t-stage) ease; }
.frame[data-hot] .frame-actions, .frame-actions:hover, .frame-actions:focus-within { opacity: 1; pointer-events: auto; transition-duration: var(--t-hand); }
@media (hover: none) { .frame.paused:not(.fresh) .frame-actions { opacity: 1; pointer-events: auto; } }
.frame-actions .round { color: var(--hi); background: rgba(10, 10, 11, .48); backdrop-filter: blur(12px); width: 38px; height: 38px; }
.frame-actions .round:hover { background: rgba(40, 40, 42, .78); }
.glass.copied { color: var(--hi); }
.frame-actions .round.is-starred, .glass.is-starred, .pill.is-starred { color: var(--hi); border-color: var(--line-2); }
.frame-actions .round.is-starred .ic, .glass.is-starred .ic, .pill.is-starred .ic { fill: var(--hi); stroke: var(--hi); }
.frame-actions .round.is-archived, .pill.is-archived { color: var(--hi); border-color: var(--line-2); }
.tip { position: relative; }
.tip::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; z-index: 9;
  padding: 5px 9px; border-radius: var(--r-1); background: #1c1c1f; border: 1px solid var(--line);
  font: var(--fs-2) var(--sans); color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-hand);
}
.tip:hover::after, .tip:focus-visible::after { opacity: 1; }

.share-pill {
  position: absolute; left: 10px; top: 10px; z-index: 4; pointer-events: none;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(10, 10, 11, .64); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  font: var(--fs-1) var(--mono); letter-spacing: .08em; color: var(--hi); text-transform: uppercase;
}

.playhit { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; cursor: pointer; }
.bigplay {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(242, 239, 232, .94); color: #0a0a0b;
  pointer-events: none; opacity: 0; transform: scale(.9); transition: opacity var(--t-panel), transform var(--t-panel) var(--ease);
}
.bigplay .ic { width: 24px; height: 24px; fill: currentColor; stroke: none; margin-left: 3px; }
.bigplay.is-pause .ic { fill: none; stroke: currentColor; stroke-width: 2.6; margin-left: 0; }
/* The disc is an invitation, shown only on a take that has not been played yet (.fresh). A pause leaves the frame
   clean for inspection; toggling flashes the glyph once and gets out of the way. */
.frame.fresh.paused:not(.busy):not(.empty):not(.comparing):not([data-media="image"]):not([data-media="audio"]):not([data-media="none"]) .bigplay { opacity: 1; transform: none; }
.bigplay.flash { animation: bigflash 420ms var(--ease) both; }
@keyframes bigflash { from { opacity: .92; transform: scale(.86); } to { opacity: 0; transform: scale(1.12); } }
.frame[data-media="image"] .playhit, .frame[data-media="audio"] .playhit, .frame[data-media="image"] .bigplay, .frame[data-media="audio"] .bigplay { display: none; }

/* generating veil */
.veil {
  position: absolute; inset: 0; z-index: 5; padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: radial-gradient(80% 80% at 50% 50%, rgba(5, 5, 6, .1), rgba(5, 5, 6, .55));
}
.veil h2 { margin: 0; font: italic 400 clamp(24px, 5.2cqw, 44px)/1.08 var(--serif); letter-spacing: -.01em; color: var(--hi); }
.veil h2:lang(zh) { font-style: normal; font-weight: 300; letter-spacing: .055em; line-height: 1.38; }
.veil .meta { font: var(--fs-2) var(--mono); letter-spacing: .12em; color: #d6d2ca; text-transform: uppercase; }
.veil-spark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 179, 106, .22), rgba(240, 179, 106, .04) 70%);
  border: 1px solid rgba(240, 179, 106, .42); color: var(--accent);
  box-shadow: 0 0 28px rgba(240, 179, 106, .22);
  animation: enhanceBorderPulse 2.2s ease-in-out infinite;
}
.veil-spark .ic { width: 20px; height: 20px; animation: enhanceSpark 2.2s ease-in-out infinite; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-3); color: #c9c5bd;
  transition: border-color var(--t-hand), color var(--t-hand), background var(--t-hand); white-space: nowrap;
}
.pill:hover, .pill:focus-within { border-color: var(--line-2); color: var(--hi); background: rgba(255, 255, 255, .04); }
.pill > span:first-child, .pill > .k { color: var(--dim); }
.veil .pill { background: rgba(10, 10, 11, .5); }

/* Scoped to the message: #frame also carries the state class .empty, and must not inherit this positioning. */
.frame > .empty { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; gap: 10px; text-align: center; padding: 24px; }
.frame > .empty h2 { margin: 0; font: italic 400 clamp(26px, 5.2cqw, 48px)/1.08 var(--serif); letter-spacing: -.01em; color: var(--hi); }
.frame > .empty h2:lang(zh) { font-style: normal; font-weight: 300; letter-spacing: .055em; }
.frame > .empty p { margin: 0; font-size: var(--fs-4); color: var(--mut); max-width: 42ch; }
.drop {
  position: absolute; inset: 10px; z-index: 8; border: 1px dashed rgba(242, 239, 232, .7); border-radius: var(--r-1);
  background: rgba(10, 10, 11, .78); display: grid; place-content: center; gap: 8px; text-align: center; pointer-events: none;
}
.drop b { font: italic 400 clamp(24px, 4.2cqw, 36px)/1.1 var(--serif); }
.drop span { color: #c9c5bd; }
.failbox { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; }
.failbox b { font: italic 400 clamp(24px, 5.2cqw, 44px)/1.1 var(--serif); }
.failbox span { color: var(--mut); max-width: 62ch; overflow-wrap: anywhere; }
.fail-acts { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fail-acts .pill { min-height: 36px; padding: 0 14px; font-size: var(--fs-3); background: rgba(20, 20, 22, .72); }
.fail-acts .pill .ic { width: 15px; height: 15px; }

/* compare wipe */
#videoB { clip-path: inset(0 0 0 var(--split, 50%)); z-index: 1; }
.wipe { position: absolute; inset: 0; z-index: 6; cursor: ew-resize; touch-action: none; }
.wipe::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 1.5px; background: var(--hi); box-shadow: 0 0 18px rgba(0, 0, 0, .8); }
.wipe .knob {
  position: absolute; top: 50%; left: var(--split, 50%); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--hi); color: #0a0a0b; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .6);
}
.wipe .tag { position: absolute; top: 58px; font: var(--fs-1) var(--mono); letter-spacing: .14em; color: var(--hi); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.wipe .tag.a { left: 16px; } .wipe .tag.b { right: 16px; color: var(--accent); }

/* transport */
.transport { width: min(100cqw, calc((100cqh - 60px) * var(--ar))); min-width: min(100cqw, 420px); display: flex; align-items: center; gap: 6px; height: 48px; flex: none; }
.transport .tc { font: var(--fs-2) var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 1, "tnum" 1; color: var(--hi); min-width: 66px; contain: layout style; }
.transport .tc.end { color: var(--mut); text-align: right; }
.scrub { position: relative; flex: 1; min-width: 0; height: 44px; cursor: pointer; touch-action: none; border-radius: var(--r-1); }
.scrub canvas { width: 100%; height: 100%; display: block; }
.scrub .hover { position: absolute; bottom: calc(100% - 2px); transform: translateX(-50%); padding: 2px 6px; border-radius: var(--r-1); background: #1c1c1f; font: var(--fs-1) var(--mono); color: var(--hi); pointer-events: none; opacity: 0; transition: opacity var(--t-hand); }
.scrub:hover .hover { opacity: 1; }
/* While a take renders the strip carries the render clock (player.js) and the clip controls wait. */
.transport.is-rendering .scrub { cursor: default; }
.transport.is-rendering .scrub .hover { display: none; }
.transport.is-rendering > :is(#btnPlay, #btnMute) { opacity: .35; pointer-events: none; }
.is-on { color: var(--accent) !important; }

/* theater caption + chrome (only visible in theater mode) */
.t-top, .caption, .t-takes { display: none; }
