:root {
  --paper: #f4f1ea;
  --paper-2: #faf7f0;
  --ink: #16150f;
  --ink-soft: #4a4740;
  --ink-mute: #8a857a;
  --line: #16150f;
  --accent: #c4513a;
  --accent-2: #a93f2c;
  --yellow: #f4c542;
  --ok: #3e8a6c;
  --bw: 3px;
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --black: 'Archivo Black', var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
/* fullscreen app: all scrolling is internal (rail lists, timeline tracks, preview). The page itself
   must never scroll - a zoomed-in timeline scrolls inside .tl-tracks, not by shifting the whole page. */
html, body { overflow: hidden; }
#app { overflow: hidden; }
/* no accidental text selection while dragging/editing; allow it only where it matters */
body { user-select: none; -webkit-user-select: none; }
input, textarea, select, [contenteditable="true"], .cap-text { user-select: text; -webkit-user-select: text; }
button { font-family: var(--font); }

/* ── shared button ── */
.t-btn { font: 700 .82rem var(--font); padding: 8px 13px; border: var(--bw) solid var(--ink); background: var(--paper-2); color: var(--ink); cursor: pointer; border-radius: 0; transition: background 80ms; }
.t-btn:hover { background: var(--yellow); }
.t-btn.export { background: var(--accent); border-color: var(--ink); color: #fff; }
.t-btn.export:hover { background: var(--accent-2); }
.t-btn.ghost { background: transparent; }
.t-btn:disabled { opacity: .5; cursor: progress; }
.mini-btn { font: 800 14px/1 var(--font); width: 22px; height: 22px; border: 2px solid var(--ink); background: var(--paper-2); cursor: pointer; }
.mini-btn:hover { background: var(--yellow); }

/* ───────────────── topbar ───────────────── */
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 12px 16px; border-bottom: var(--bw) solid var(--ink); background: var(--paper-2); }
.brand h1 { font-family: var(--black); font-size: 1.7rem; letter-spacing: .03em; margin: 0; line-height: 1; }
.brand .tag { margin: 4px 0 0; font-size: .76rem; color: var(--ink-mute); }
.brand .by a { color: var(--accent); text-decoration: none; }
.suite { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.suite-lbl { font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.suite a { font: 700 .72rem var(--font); text-decoration: none; color: var(--ink); border: 2px solid var(--ink); padding: 3px 8px; }
.suite a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ───────────────── editor layout ───────────────── */
.app { display: flex; flex-direction: column; height: 100%; }
.editor { flex: 1; display: grid; grid-template-columns: 340px 1fr; min-height: 0; }
@media (max-width: 820px) { .editor { grid-template-columns: 1fr; } }

/* left rail: two columns videos | clips, dark grey columns */
.rail { display: grid; grid-template-columns: 1fr 1fr; border-right: var(--bw) solid var(--ink); min-height: 0; background: #141310; }
.rail-col { display: flex; flex-direction: column; min-height: 0; border-right: 2px dashed #3a382f; }
.rail-col:last-child { border-right: 0; }
.rail-head { font: 800 .68rem var(--font); letter-spacing: .08em; min-height: 42px; padding: 6px 10px; border-bottom: 2px solid #000; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #1e1c18; color: var(--paper); }
.rail-head .rail-sub { color: var(--yellow); }
.rail-sub { font-weight: 600; color: var(--accent); font-size: .66rem; }
.rail-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }

.thumb-item { border: 2px solid var(--ink); background: var(--paper-2); cursor: pointer; position: relative; }
.thumb-item.sel { outline: 3px solid var(--accent); outline-offset: -1px; }
.thumb-item canvas, .thumb-item .thumb-ph { width: 100%; aspect-ratio: 16/9; display: block; background: #111; object-fit: cover; }
.thumb-cap { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 6px; font: 700 .68rem var(--font); border-top: 2px solid var(--ink); }
.thumb-cap .n { color: var(--accent); }
/* clip trim line: kept portion solid bright green, cut portions grey hatch */
.trimline { height: 6px; display: flex; }
.trimline .full { flex: 1; background: repeating-linear-gradient(90deg,#fff 0 4px,#000 4px 8px); }
.trimline .cut { background: #000; }
.trimline.green .full { background: #2fbf5b; }
.trimline.green .cut { background: repeating-linear-gradient(45deg,#5a564d 0 4px,#2c2a25 4px 8px); }

/* ───────────────── tabbed editor (Clip editor / Timeline editor) ───────────────── */
.stage { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ed-tabs { display: flex; gap: 0; border-bottom: var(--bw) solid var(--ink); background: var(--paper-2); flex: none; }
.ed-tab { font: 800 .76rem var(--font); letter-spacing: .03em; padding: 9px 16px; border: 0; border-right: 2px solid var(--ink); background: transparent; color: var(--ink-mute); cursor: pointer; }
.ed-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.ed-tab:hover { background: var(--yellow); color: var(--ink); }
.ed-settings-btn { margin-left: auto; align-self: stretch; border: 0; border-left: 2px solid var(--ink); background: transparent; color: var(--ink-mute); cursor: pointer; font-size: 1rem; padding: 0 14px; }
.ed-settings-btn:hover { background: var(--yellow); color: var(--ink); }

/* Clip editor tab: preview tools + mini strip, full timeline hidden */
.stage.tab-clip #timeline { display: none; }
.stage.tab-clip .mini-tl { display: flex; }
.stage.tab-clip .preview-block { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.stage.tab-clip .preview-wrap { flex: 0 0 auto; max-height: 62vh; }   /* video gets ~65% of the height */
.stage.tab-clip .clip-controls { flex: 1 0 auto; }   /* controls fill the rest (~35%); dark to the bottom */
/* Timeline editor tab: 50/50 preview over the timeline, mini strip hidden, clip tools greyed by tl-mode */
.stage.tab-timeline .mini-tl { display: none; }
.stage.tab-timeline .preview-block { flex: 1 1 50%; min-height: 0; overflow: auto; }
.stage.tab-timeline #timeline { flex: 1 1 50%; }

.mini-tl { flex: none; align-items: center; gap: 10px; padding: 6px 0 2px; background: transparent; }
/* add-this-clip-to-timeline button under the trim bar */
.add-to-tl { display: block; width: 100%; margin-top: 10px; font-weight: 800; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.add-to-tl:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.add-to-tl.ok { background: var(--green, #3fae57); border-color: var(--green, #3fae57); color: #fff; }
.mini-tl-lane { position: relative; flex: 1; height: 40px; background: #141310; border: 2px solid var(--ink); overflow: hidden; }
.mini-tl-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 .68rem var(--font); color: #8a857a; pointer-events: none; padding: 0 8px; text-align: center; }
.mini-tl-lane.drop-hot { background: rgba(244,197,66,.25); }
.mini-tl-seg { position: absolute; top: 0; bottom: 0; background: var(--clip, var(--yellow)); border-right: 1px solid #000; overflow: hidden; display: flex; align-items: center; }
.mini-tl-seg .mini-tl-name { font: 700 .58rem var(--font); color: #fff; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; mix-blend-mode: difference; }
.mini-tl-seg.cur { outline: 2px solid #fff; outline-offset: -2px; }
.mini-tl-ins { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--accent); }
.mini-tl-link { font: 700 .72rem var(--font); color: var(--accent); text-decoration: none; white-space: nowrap; border-bottom: 1px dashed var(--accent); }
.mini-tl-link:hover { color: var(--accent-2); }

/* right-click context menu (timeline clips) */
.ctx-menu { position: fixed; z-index: 200; background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; min-width: 120px; }
.ctx-item { font: 700 .78rem var(--font); text-align: left; padding: 8px 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.ctx-item:hover { background: var(--yellow); }

/* ───────────────── preview + scrubber ───────────────── */
.preview-block { padding: 12px 14px; border-bottom: var(--bw) solid var(--ink); background: #fff; }
.preview-wrap { position: relative; background: #000; border: var(--bw) solid var(--ink); aspect-ratio: 16/9; max-height: 42vh; margin: 0 auto; display: grid; place-items: center; overflow: hidden; }
#preview { width: 100%; height: 100%; object-fit: contain; display: block; }
.caption-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

/* commentary corner handles over the webcam frame (timeline preview) */
.commentary-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.com-box { position: absolute; pointer-events: auto; border: 1px dashed rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(20,19,15,.4); }
.com-box .com-grip, .com-box .com-rs { opacity: 0; transition: opacity .12s; }
.com-box:hover .com-grip, .com-box:hover .com-rs { opacity: 1; }   /* reveal handles on hover anywhere over the box */
.com-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: auto; cursor: move; border: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(20,19,15,.7); color: #fff; font-size: 14px; line-height: 1; display: grid; place-items: center; }
.com-grip:hover { background: var(--accent); }
/* 8 resize handles on the corners + edge midpoints */
.com-rs { position: absolute; width: 11px; height: 11px; pointer-events: auto; background: #fff; border: 2px solid var(--ink); }
.com-rs.nw { left: -6px; top: -6px; cursor: nwse-resize; }
.com-rs.ne { right: -6px; top: -6px; cursor: nesw-resize; }
.com-rs.sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.com-rs.se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.com-rs.n { left: 50%; top: -6px; transform: translateX(-50%); cursor: ns-resize; }
.com-rs.s { left: 50%; bottom: -6px; transform: translateX(-50%); cursor: ns-resize; }
.com-rs.w { left: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.com-rs.e { right: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }

/* background-removal toggle on the commentary track item */
.commentary-item .ti-bg { position: absolute; top: 2px; right: 28px; z-index: 3; font-size: .62rem; line-height: 1; border: 0; background: rgba(255,255,255,.6); color: var(--ink); cursor: pointer; padding: 1px 4px; }
.commentary-item .ti-bg.on { background: var(--yellow); }

/* caption cog on the track item */
.cap-item .cap-cog { position: absolute; top: 2px; right: 24px; z-index: 3; font-size: .7rem; line-height: 1; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 1px 2px; }
/* on-screen draggable caption box (editor preview) */
.cap-box { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: move; background: rgba(20,19,15,.62); color: #fff; padding: 2px 8px; white-space: normal; text-align: center; max-width: 80%; line-height: 1.25; display: inline-flex; align-items: center; gap: 6px; }
.cap-box-text { white-space: pre-wrap; }   /* honor caption newlines */
.cap-box-text { pointer-events: none; }
.cap-box-cog { border: 0; background: rgba(255,255,255,.3); color: #fff; cursor: pointer; font-size: .6em; padding: 0 3px; line-height: 1.3; }
.cap-box-cog:hover { background: var(--yellow); color: var(--ink); }
/* caption settings modal fields */
.cap-modal-card { width: min(380px, 94vw); }
.cap-field { display: flex; flex-direction: column; gap: 4px; font: 700 .72rem var(--font); margin-bottom: 10px; }
.cap-field input, .cap-field select, .cap-field textarea { font: 600 .85rem var(--font); padding: 5px; border: 2px solid var(--ink); background: var(--paper-2); }
.cap-field textarea { resize: vertical; min-height: 56px; }
/* markdown toolbar + emoji picker */
.cap-md-bar { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; }
.md-btn { font: 700 .85rem var(--font); border: 2px solid var(--ink); background: var(--paper-2); cursor: pointer; width: 28px; height: 26px; line-height: 1; }
.md-btn:hover { background: var(--yellow); }
.emoji-modal-card { width: min(420px, 94vw); }
.emoji-credit { font: 600 .6rem var(--font); color: var(--ink-mute); }
.emoji-search { width: 100%; box-sizing: border-box; font: 600 .85rem var(--font); padding: 6px; border: 2px solid var(--ink); background: var(--paper-2); margin-bottom: 8px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 260px; overflow-y: auto; }
.emoji-cell { font-size: 1.25rem; line-height: 1; border: 0; background: transparent; cursor: pointer; padding: 4px 0; border-radius: 3px; }
.emoji-cell:hover { background: var(--yellow); }
.emoji-empty { grid-column: 1 / -1; color: var(--ink-mute); font: 600 .8rem var(--font); padding: 16px; text-align: center; }
.cap-field-row { display: flex; gap: 14px; }
.cap-field-row .cap-field { flex: 1; }
.cap-hint { font: 600 .68rem var(--font); color: var(--ink-mute); margin: -2px 0 10px; }
.set-group-title { font: 800 .7rem var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 8px; }

/* clip-editor controls: dark-grey panel (matches the sidebars), bleeding to the block edges */
.clip-controls { background: #141310; color: var(--paper); margin: 12px -14px -12px; padding: 12px 14px; }
.clip-controls .scrub-lbl,
.clip-controls .cliplen-lbl,
.clip-controls .ft-lbl,
.clip-controls .scrub-readout,
.clip-controls .key-hint { color: #9b958a; }
.clip-controls .trim-dim { border-top-color: var(--paper); }
.clip-controls .trim-dim::before { border-right-color: var(--paper); }
.clip-controls .trim-dim::after { border-left-color: var(--paper); }
.clip-controls .trim-dim-val { background: #141310; color: var(--paper); }

/* clip-editor control sections */
.ctrl-section, .scrub-section, .trim-section { margin-top: 12px; }
.ctrl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.ctrl-row:first-child { margin-top: 0; }
.ctrl-row .tg { width: 1px; height: 22px; background: var(--ink); opacity: .25; margin: 0 2px; }
.ctrl-row .t-btn { padding: 6px 9px; font-size: .74rem; }
.ctrl-row .nudge { padding: 6px 7px; min-width: 30px; }
.ctrl-row .cliplen-lbl { font: 800 .58rem var(--font); letter-spacing: .08em; color: var(--ink-mute); }
.ctrl-row .t-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Timeline editor tab: drop the clip-only controls entirely; preview fills the top 50%, no scroll */
.stage.tab-timeline .clip-controls { display: none; }
.stage.tab-timeline .preview-block { display: flex; flex-direction: column; overflow: hidden; }
.stage.tab-timeline .preview-wrap { flex: 1; min-height: 0; aspect-ratio: auto; max-height: none; }

/* editable clip title, top-left of the preview */
.clip-title { position: absolute; top: 8px; left: 8px; z-index: 6; max-width: 60%; font: 800 .82rem var(--font); letter-spacing: .02em; color: #fff; background: rgba(20,19,15,.62); border: 2px solid rgba(255,255,255,.5); padding: 4px 8px; cursor: text; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-title:hover { border-color: var(--yellow); }
.clip-title[hidden] { display: none; }
.clip-title.editing { white-space: normal; overflow: visible; outline: 2px solid var(--yellow); }

/* pan/zoom frame handles */
.frame-handles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.frame-handles[hidden] { display: none; }
.frame-handles .fh.corner { position: absolute; width: 14px; height: 14px; background: var(--yellow); border: 2px solid var(--ink); pointer-events: auto; }
.fh[data-h="nw"] { top: 6px; left: 6px; cursor: nwse-resize; }
.fh[data-h="ne"] { top: 6px; right: 6px; cursor: nesw-resize; }
.fh[data-h="sw"] { bottom: 6px; left: 6px; cursor: nesw-resize; }
.fh[data-h="se"] { bottom: 6px; right: 6px; cursor: nwse-resize; }
.preview-wrap.panning { cursor: grabbing; }
.frame-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.frame-tools[hidden] { display: none; }
.frame-tools .ft-lbl { font: 800 .56rem var(--font); letter-spacing: .08em; color: var(--ink-mute); }
.frame-tools .t-btn { padding: 5px 9px; font-size: .72rem; }
.frame-tools .ft-read { font: 600 .72rem var(--font); color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.scrub { margin-top: 10px; }
/* engineering-style length dimension above the trim selection */
.trim-dim-wrap { position: relative; height: 16px; margin-top: 2px; }
.trim-dim { position: absolute; top: 8px; height: 0; border-top: 2px solid var(--ink); left: 0; width: 0; }
.trim-dim::before, .trim-dim::after { content: ''; position: absolute; top: -4px; width: 0; height: 0; border: 5px solid transparent; }
.trim-dim::before { left: -1px; border-right-color: var(--ink); }
.trim-dim::after { right: -1px; border-left-color: var(--ink); }
.trim-dim-val { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--paper); padding: 0 5px; font: 800 .64rem var(--font); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scrub-range { position: relative; height: 24px; margin-top: 4px; background: var(--paper-2); border: 2px solid var(--ink); }
.scrub-range .handle { position: absolute; top: -2px; width: 10px; height: 24px; background: var(--accent); border: 2px solid var(--ink); cursor: ew-resize; }
.scrub-range .handle-out { background: var(--ink); }
.scrub-range .sel-fill { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.scrub-range .sel-grip { position: absolute; top: 0; bottom: 0; width: 22px; background: var(--accent); border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); cursor: grab; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.55) 0 2px, transparent 2px 5px); background-position: center; background-repeat: no-repeat; background-size: 8px 16px; z-index: 3; }
.scrub-range .sel-grip:active { cursor: grabbing; }
.scrub-track .scrub-tip { position: absolute; top: -22px; transform: translateX(-50%); background: var(--ink); color: var(--paper); font: 700 .66rem var(--font); padding: 2px 5px; border: 2px solid var(--ink); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.scrub-track .scrub-tip[hidden] { display: none; }
.scrub-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.scrub-readout { font: 600 .76rem var(--font); color: var(--ink-mute); font-variant-numeric: tabular-nums; }

/* ───────────────── main timeline ───────────────── */
.tl { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #141310; color: var(--paper); }
.tl-toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 2px solid #000; flex-wrap: wrap; background: #1e1c18; }
.tl-title { font: 800 .72rem var(--font); letter-spacing: .08em; color: var(--paper); }
.tl-hint { font-size: .72rem; color: #9b958a; }
.tl-zoom { display: inline-flex; align-items: center; gap: 4px; }
.tl-zoom .tl-zlbl { font: 800 .56rem var(--font); letter-spacing: .08em; color: #9b958a; }
.tl-spacer { flex: 1; }
.tl-tracks { flex: 1; min-width: 0; overflow-x: auto; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.tl-tracks .track { overscroll-behavior-x: contain; }
.track { position: relative; display: flex; align-items: stretch; border: 2px solid var(--ink); min-height: 54px; background: var(--paper-2); }
.track-label { font: 800 .6rem var(--font); letter-spacing: .08em; writing-mode: initial; padding: 6px; border-right: 2px solid var(--ink); display: flex; align-items: center; color: var(--ink-soft); width: 66px; min-width: 66px; flex: none; box-sizing: border-box; }
/* the three overlay tracks: uniform height (~half the video track), RGB-coded, hatched when empty */
.video-track { min-height: 62px; }
.commentary-track, .caption-track, .prompt-track { min-height: 31px; }
.commentary-track { --trk: #c4513a; --trk-bg: rgba(196,81,58,.14); }   /* R */
.caption-track    { --trk: #3fae57; --trk-bg: rgba(63,174,87,.14); }    /* G */
.prompt-track     { --trk: #2e74d6; --trk-bg: rgba(46,116,214,.15); }   /* B */
.commentary-track .track-label, .caption-track .track-label, .prompt-track .track-label { color: var(--trk); }
.commentary-track, .caption-track, .prompt-track { box-shadow: inset 3px 0 0 var(--trk); }
.track.empty .track-lane { background: repeating-linear-gradient(45deg, var(--trk-bg) 0 7px, transparent 7px 14px); }
/* empty-track call-to-action link, centred in the lane */
.track-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 .66rem var(--font); letter-spacing: .02em; color: var(--trk); background: none; border: 0; cursor: pointer; white-space: nowrap; padding: 4px 8px; }
.track-cta:hover { text-decoration: underline; }
.track-lane { position: relative; flex: 1; }
.track-lane.drop-hot { background: rgba(244,197,66,.25); }
.tl-item { position: absolute; top: 4px; bottom: 4px; border: 2px solid var(--ink); background: var(--paper-2); cursor: grab; overflow: hidden; }
.tl-item.sel { outline: 3px solid var(--accent); outline-offset: -1px; }
.tl-item .ti-label { font: 700 .66rem var(--font); padding: 3px 5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tl-item .ti-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--clip, var(--yellow)); border-top: 2px solid var(--ink); }
.tl-item .ti-grip { position: absolute; top: 0; bottom: 0; right: 0; width: 7px; background: var(--ink); cursor: ew-resize; z-index: 2; }
.tl-item .ti-bin { position: absolute; top: 2px; right: 9px; font-size: .7rem; line-height: 1; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 1px; z-index: 3; }
.tl-item .ti-thumb { position: absolute; inset: 0; overflow: hidden; opacity: .5; z-index: 0; }
.tl-item .ti-thumb .ti-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-item .ti-label { z-index: 1; }
/* exact duration, bottom-left, same font as the title but a brighter (per-clip) colour */
.tl-item .ti-dur { position: absolute; left: 5px; bottom: 9px; z-index: 1; font: 700 .66rem var(--font); color: var(--clip, var(--accent)); filter: brightness(1.5); text-shadow: 0 1px 2px rgba(255,255,255,.55); font-variant-numeric: tabular-nums; pointer-events: none; }
/* red hatch over a region where another clip overlaps this one (no auto-resnap) */
.tl-item .ti-overlap { position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(196,81,58,.6) 0 6px, rgba(196,81,58,.18) 6px 12px); box-shadow: inset 0 0 0 1px var(--accent); }
.tl-item .hatch { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(45deg, rgba(196,81,58,.55) 0 5px, transparent 5px 10px); pointer-events: none; }
.caption-track .tl-item { background: var(--paper); }
.caption-lane { position: relative; }
.cap-item { position: absolute; top: 4px; bottom: 4px; left: 0; border: 2px solid var(--ink); background: #2e74d6; color: #fff; overflow: hidden; cursor: pointer; display: flex; align-items: center; }
.cap-item .cap-text { font: 700 .66rem var(--font); padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-item .ti-grip { position: absolute; top: 0; bottom: 0; right: 0; width: 7px; background: var(--ink); cursor: ew-resize; }
.cap-item .ti-bin { position: absolute; top: 2px; right: 9px; z-index: 2; font-size: .7rem; line-height: 1; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 1px; }

/* timeline ruler + gridlines + scrubber playhead */
.ruler-track { min-height: 26px; background: #1e1c18; border-color: #000; }
.ruler-track .track-label { color: #9b958a; border-right-color: #000; }
.tl-ruler { position: relative; flex: 1; height: 24px; cursor: pointer; }
.tl-ruler .ruler-tick { position: absolute; top: 4px; font: 700 .58rem var(--font); color: #cdc7b8; border-left: 1px solid #6b655a; padding-left: 3px; height: 16px; font-variant-numeric: tabular-nums; }
.tl-grid { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tl-grid .grid-line { position: absolute; top: 0; bottom: 0; width: 1px; }
.tl-grid .grid-line.minor { background: rgba(255,255,255,.07); }
.tl-grid .grid-line.major { background: rgba(255,255,255,.20); }
.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 6; pointer-events: none; }
.tl-playhead::before { content: ''; position: absolute; top: -1px; left: -4px; border: 5px solid transparent; border-top-color: var(--accent); }

/* record-commentary button + the commentary (TALK) track */
.rec-btn { display: inline-flex; align-items: center; gap: 6px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.rec-btn:hover { background: var(--accent); color: #fff; border-color: var(--ink); }
.rec-btn:hover .rec-dot { background: #fff; }
.commentary-track .track-label { color: var(--accent); }
.commentary-empty[hidden] { display: none; }   /* positioning + look come from .track-cta */

/* faux-lock confirm */
.rec-confirm { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(20,19,15,.45); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.rec-confirm[hidden] { display: none; }
.rec-confirm-card { width: min(460px, 94vw); background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 22px 24px; }
.rec-confirm-title { font-family: var(--black); font-size: 1.3rem; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.rec-confirm-title .rec-dot { width: 13px; height: 13px; }
.rec-confirm-body { font: 600 .98rem var(--font); margin: 0 0 8px; line-height: 1.45; }
.rec-confirm-sub { font: 500 .8rem var(--font); color: var(--ink-mute); margin: 0 0 18px; }
.rec-confirm-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ───────────────── intro modal ───────────────── */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(20,19,15,.30); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.intro[hidden] { display: none; }
.intro-card { width: min(540px, 96vw); max-height: 92vh; overflow: auto; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.intro-head { padding: 16px 20px; border-bottom: var(--bw) solid var(--ink); background: var(--paper-2); }
.intro-title { font-family: var(--black); font-size: 1.8rem; margin: 0; letter-spacing: .02em; }
.intro-title span { font-family: var(--black); font-weight: 800; font-size: 1.35rem; color: var(--accent); margin-left: 10px; letter-spacing: .01em; }
.intro-step { margin: 6px 0 0; font: 700 .9rem var(--font); color: var(--accent); }
.intro-stage { padding: 20px; }
.intro-blurb { font-size: .9rem; margin: 0 0 16px; }
.intro-blurb .dim { color: var(--ink-mute); }

.dropzone { border: 3px dashed var(--ink); padding: 46px 24px; text-align: center; cursor: pointer; background: var(--paper-2); }
.dropzone.drag { background: var(--yellow); }
.dz-icon { font-size: 2rem; color: var(--accent); display: block; }
.dz-line { font-size: 1.05rem; margin: 10px 0 4px; font-weight: 600; }
.dz-link { color: var(--accent); text-decoration: underline; }
.dz-sub { font-size: .78rem; color: var(--ink-mute); margin: 0; }

/* compact: small video square + three clip squares */
.intro-vids { display: flex; flex-direction: column; gap: 12px; }
.intro-vid { display: flex; align-items: center; gap: 14px; }
.intro-vid-sq { position: relative; width: 116px; height: 116px; flex: none; border: var(--bw) solid var(--ink); overflow: hidden; background: #000; }
.intro-vid-sq canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-vid-num { position: absolute; top: 1px; left: 6px; font-family: var(--black); font-size: 2.4rem; color: #fff; -webkit-text-stroke: 2px var(--ink); line-height: 1; }
.intro-slots { display: flex; gap: 10px; }
.clip-sq { position: relative; width: 92px; height: 92px; flex: none; border: 2px solid var(--ink); overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.clip-sq canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-sq .sq-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; }
.clip-sq.add { border-style: dashed; cursor: pointer; }
.clip-sq.add:hover { background: var(--yellow); }
.clip-sq.add .plus { font: 800 2.1rem var(--font); color: var(--accent); }
.clip-sq.empty { border-style: dashed; opacity: .4; }
.clip-sq.pop { animation: pop .32s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { 0% { transform: scale(.55); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.intro-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
/* step 2: 4-col uploads grid */
.intro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 56vh; overflow-y: auto; }
.intro-gcell { border: 2px solid var(--ink); background: var(--paper-2); }
.intro-gcell canvas { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #111; }
.intro-gcell.blank { border-color: var(--accent); }
.intro-gbad { font: 700 .6rem var(--font); color: var(--accent); padding: 3px 5px; }
.intro-gname { font: 600 .64rem var(--font); padding: 4px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 2px solid var(--ink); }
/* step 3: create clips */
.intro-clip-make { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.intro-src-thumb { flex: none; width: 180px; }
.intro-src-thumb canvas { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border: 2px solid var(--ink); background: #111; }
.intro-src-pick { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.intro-clip-list { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow-y: auto; }
.icc-empty { color: var(--ink-mute); font: 600 .8rem var(--font); }
.intro-clip-card { display: flex; gap: 12px; border: 2px solid var(--ink); background: var(--paper-2); padding: 8px; align-items: center; }
.icc-thumb { flex: none; width: 150px; position: relative; }
.icc-thumb canvas { width: 100%; display: block; }
.icc-bar { margin-top: 2px; }
.icc-detail { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.icc-title { display: flex; align-items: center; gap: 6px; font: 800 .82rem var(--font); }
.icc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icc-pencil { border: 0; background: none; cursor: pointer; font-size: .8rem; padding: 0 2px; }
.icc-pencil:hover { color: var(--accent); }
.icc-meta { font: 600 .7rem var(--font); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.icc-del { align-self: flex-start; font-size: .68rem; padding: 3px 8px; }

/* ── scrubber two-bar + transport + clip-add + pane titles (2026-06-07) ── */
.pane-title { font: 800 .7rem var(--font); letter-spacing: .08em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.pane-title > span { font-weight: 600; font-size: .64rem; color: var(--ink-mute); }
.pane-settings { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.pane-settings .set-lbl { font: 800 .56rem var(--font); letter-spacing: .08em; color: var(--ink-mute); }
.pane-settings .set-sel { font: 700 .72rem var(--font); padding: 4px 6px; border: 2px solid var(--ink); background: var(--paper-2); cursor: pointer; }
/* aspect-ratio crop guide: dashed box over the framed video, shown in crop + timeline modes */
.crop-guide { position: absolute; border: 2px dashed var(--accent); box-shadow: 0 0 0 9999px rgba(20,19,15,.34); pointer-events: none; z-index: 5; }
.crop-guide[hidden] { display: none; }
.rh-btns { display: inline-flex; gap: 4px; }
.scrub-lbl { font: 800 .54rem var(--font); letter-spacing: .1em; color: var(--ink-mute); margin: 8px 0 3px; }
/* scrub bar: a blue mini-ruler (10px) sitting directly on top of the trim bar; 3px-wide playhead */
.scrub-trim { margin-top: 12px; }
.scrub-track { position: relative; height: 10px; background: #1f4f8f; border: 2px solid var(--ink); cursor: pointer; }
.scrub-track .playhead { position: absolute; top: -2px; bottom: -2px; width: 3px; background: var(--accent); pointer-events: none; }
/* a little downward handle on top of the playhead line */
.scrub-track .playhead::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--accent); }
.scrub-ticks { position: absolute; inset: 0; pointer-events: none; }
.scrub-ticks .tk { position: absolute; top: 0; bottom: 0; }
.scrub-ticks .tk.s1 { border-left: 1px dashed rgba(255,255,255,.4); }   /* 1s */
.scrub-ticks .tk.s5 { width: 2px; background: rgba(255,255,255,.8); }   /* 5s */
.scrub-trim .scrub-range { margin-top: 6px; }       /* gap above the trim bar */
.scrub-trim .trim-dim-wrap { margin-top: 9px; }     /* dimension arrow below the trim, with room */

/* frame controls overlaid on the video, bottom-right, faint until hovered */
.preview-wrap .frame-tools { position: absolute; right: 8px; bottom: 8px; margin: 0; z-index: 5; background: rgba(20,19,15,.6); padding: 5px 7px; opacity: .2; transition: opacity 120ms; }
.preview-wrap .frame-tools:hover { opacity: 1; }
.preview-wrap .frame-tools .ft-read { color: var(--paper); }
.ctrl-spacer { flex: 1; }
.scrub-bar { flex-direction: column; align-items: flex-start; gap: 7px; }
.scrub-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scrub-bar .tg { width: 1px; height: 22px; background: var(--ink); opacity: .25; margin: 0 2px; }
.scrub-bar .t-btn { padding: 6px 9px; font-size: .74rem; }
.scrub-bar .nudge { padding: 6px 7px; min-width: 30px; }
.scrub-bar .cliplen { padding: 6px 8px; }
.scrub-bar .cliplen-lbl { font: 800 .58rem var(--font); letter-spacing: .08em; color: var(--ink-mute); }
/* keyboard-shortcut key caps inside buttons */
.t-btn .key { display: inline-block; margin-left: 5px; padding: 0 4px; font: 700 .6rem var(--font); line-height: 1.45; color: var(--paper); background: var(--ink); border-radius: 2px; vertical-align: middle; }
.t-btn:hover .key { background: var(--ink-soft); }
.key-hint { font: 600 .62rem var(--font); color: var(--ink-mute); display: inline-flex; align-items: center; gap: 4px; }
.key-hint .key { padding: 0 4px; font: 700 .6rem var(--font); color: var(--paper); background: var(--ink); border-radius: 2px; }
.scrub-bar .t-btn:disabled { opacity: .35; cursor: not-allowed; }

/* trim bar: cut regions hatched grey, kept region clean */
.scrub-range { background: repeating-linear-gradient(45deg,#cfc9bb 0 5px,#bdb6a5 5px 10px); }
.scrub-range .sel-fill { background: var(--paper-2); }

/* delete-clip bin, top-right of a clip card */
.thumb-item .clip-bin { position: absolute; top: 3px; right: 3px; z-index: 4; font-size: .8rem; line-height: 1; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; padding: 2px 4px; }
.thumb-item .clip-bin:hover { background: var(--accent); }
.clip-item .clip-dup { position: absolute; top: 3px; right: 32px; z-index: 4; font-size: .8rem; line-height: 1; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; padding: 2px 4px; }
.clip-item .clip-dup:hover { background: var(--yellow); }
.clip-item { border-left: 4px solid var(--clip, var(--ink)); }

.clip-add { border: 2px dashed #6b655a; background: #232118; cursor: pointer; display: grid; place-items: center; aspect-ratio: 16/9; }
.clip-add:hover { background: var(--yellow); }
.clip-add .plus { font: 800 1.9rem var(--font); color: var(--accent); }

.intro-descriptor { font: 600 .92rem var(--font); margin: 0 0 14px; color: var(--ink-soft); }
.intro-disclaimer { font: 500 .74rem var(--font); margin: 12px 0 0; color: var(--ink-mute); line-height: 1.4; }
.intro-dontshow { display: flex; align-items: center; gap: 7px; font: 600 .76rem var(--font); color: var(--ink-soft); margin: 12px 0 0; cursor: pointer; }

/* boot splash (saved project loading) */
.boot { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--paper); color: var(--ink); font: 800 1rem var(--font); letter-spacing: .02em; }
.boot[hidden] { display: none; }
.boot.processing { z-index: 145; background: rgba(13,12,10,.92); color: var(--paper); }
.boot.processing .boot-spin { border-color: var(--paper); border-top-color: transparent; }
.boot-spin { width: 20px; height: 20px; border: 3px solid var(--ink); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* loading state in the clips column + processing on the add slot */
.rail-list.loading { position: relative; }
.clips-spinner { display: flex; align-items: center; gap: 8px; padding: 12px 8px; font: 700 .7rem var(--font); color: #9b958a; }
.clips-spinner .boot-spin { width: 15px; height: 15px; border-width: 2px; border-color: #9b958a; border-top-color: transparent; }
.clip-add.busy { pointer-events: none; }
.clip-add.busy .plus { display: none; }
.clip-add.busy::after { content: ''; width: 22px; height: 22px; border: 3px solid var(--accent); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ───────────── commentary recorder overlay ───────────── */
.rec-overlay { position: fixed; inset: 0; z-index: 130; background: #0d0c0a; color: var(--paper); display: grid; place-items: center; }
.rec-overlay[hidden] { display: none; }
.rec-stage { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.rec-stage[hidden] { display: none; }
.rec-stage-title { font-family: var(--black); font-size: 1.5rem; margin: 0; }
.rec-setup-grid { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.rec-cam-wrap { border: var(--bw) solid var(--paper); background: #000; width: min(560px, 70vw); aspect-ratio: 16/9; overflow: hidden; }
.rec-cam { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.rec-setup-side { display: flex; flex-direction: column; gap: 10px; min-width: 220px; max-width: 280px; justify-content: center; }
.rec-meter-lbl { font: 800 .6rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: #9b958a; margin: 0; }
.rec-meter { height: 14px; border: 2px solid var(--paper); background: #1c1b17; overflow: hidden; }
.rec-meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #3fae57, #f4c542 70%, #e23b2e); transition: width 60ms linear; }
.rec-toggle { display: flex; align-items: center; gap: 8px; font: 700 .82rem var(--font); cursor: pointer; }
.rec-bg-note { font: 500 .72rem var(--font); color: #9b958a; margin: 0; }
.rec-setup-info { font: 600 .8rem var(--font); color: var(--yellow); margin: 0; }
.rec-actions { display: flex; gap: 12px; }
.rec-count { font-family: var(--black); font-size: 22vw; line-height: 1; color: var(--paper); }

.rec-recording { padding: 0; }
.rec-canvas { max-width: 100vw; max-height: 100vh; width: auto; height: auto; background: #000; display: block; }
.rec-live { position: fixed; top: 16px; left: 18px; font: 800 .9rem var(--font); letter-spacing: .08em; display: flex; align-items: center; gap: 8px; color: #fff; }
.rec-live .rec-dot { animation: recpulse 1s infinite; }
@keyframes recpulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.rec-stop-btn { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); }
.rec-teleprompter { position: fixed; top: 14px; right: 16px; width: 230px; background: rgba(13,12,10,.72); border: 2px solid var(--paper); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rec-clock { font: 800 1.1rem var(--font); font-variant-numeric: tabular-nums; }
.rec-clock-sep { color: #9b958a; }
.rec-wrap { font: 800 .9rem var(--font); letter-spacing: .06em; color: #fff; background: var(--accent); padding: 4px 8px; text-align: center; }
.rec-next-lbl { font: 800 .58rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: #9b958a; }
.rec-next-stack { display: flex; flex-direction: column; gap: 7px; }
.rec-next-card { display: flex; gap: 8px; align-items: center; border-left: 4px solid var(--clip, var(--yellow)); background: #1c1b17; padding: 4px; }
.rec-next-card canvas { width: 56px; height: 32px; object-fit: cover; display: block; border: 1px solid #000; }
.rec-next-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-next-name { font: 700 .68rem var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.rec-next-in { font: 800 .72rem var(--font); color: var(--yellow); font-variant-numeric: tabular-nums; }
.rec-next-end { font: 700 .72rem var(--font); color: #9b958a; }
.rec-cap-next { font: 700 .72rem var(--font); color: #4fb6e0; border-top: 1px solid #3a382f; padding-top: 7px; }
.rec-cap-next[hidden] { display: none; }

/* camera-stare mode: tiny preview pinned top-centre (right under the webcam), prompts HUGE below it so
   the eyes stay near the lens. Look at the camera, not the screen. */
.rec-stage.stare { justify-content: flex-start; gap: 10px; padding-top: 10px; }
.rec-stage.stare .rec-canvas { max-height: 26vh; max-width: 46vw; }
.rec-stage.stare .rec-teleprompter { position: static; width: min(900px, 92vw); background: none; border: 0; padding: 0; align-items: center; text-align: center; gap: 16px; }
.rec-stage.stare .rec-clock { font-size: 2rem; }
.rec-stage.stare .rec-wrap { font-size: 2rem; padding: 8px 20px; }
.rec-stage.stare .rec-next-lbl { font-size: 1rem; }
.rec-stage.stare .rec-next-stack { gap: 12px; width: 100%; align-items: center; }
.rec-stage.stare .rec-next-card { border-left: 0; background: none; padding: 0; justify-content: center; }
.rec-stage.stare .rec-next-card canvas { display: none; }            /* drop thumbnails: text only */
.rec-stage.stare .rec-next-name { font: 900 2.6rem var(--black); line-height: 1.05; color: #fff; white-space: normal; overflow: visible; text-overflow: clip; max-width: 88vw; }
.rec-stage.stare .rec-next-in { font: 800 1.1rem var(--font); color: #9b958a; }
.rec-stage.stare .rec-next-card:first-child .rec-next-name { color: var(--yellow); }   /* the imminent one pops */
.rec-stage.stare .rec-cap-next { font-size: 1.5rem; border-top: 0; }

/* teleprompter track: thinner than the others; points are small draggable pills */
.prompt-lane { position: relative; }
/* a prompt is a small dot: click to edit, drag to move */
.prompt-pt { position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--trk, #2e74d6); border: 2px solid #0a2740; cursor: grab; z-index: 1; }
.prompt-pt:hover { background: var(--yellow); }
.prompt-script-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 3; font: 700 .56rem var(--font); border: 2px solid var(--trk); background: var(--paper-2); color: var(--trk); cursor: pointer; padding: 1px 5px; }
.prompt-script-btn:hover { background: var(--trk); color: #fff; }

/* commentary block on the TALK track */
.commentary-item { position: absolute; top: 4px; bottom: 4px; left: 0; border: 2px solid var(--ink); background: repeating-linear-gradient(45deg, var(--accent) 0 8px, #a93f2c 8px 16px); color: #fff; overflow: hidden; }
/* controls anchored LEFT (cm.start is near-always visible) so they stay reachable when the block runs
   past the timeline end and its right edge scrolls off-screen */
.commentary-item .ti-label { font: 700 .66rem var(--font); padding: 3px 5px 3px 70px; color: #fff; position: relative; z-index: 1; white-space: nowrap; }
.commentary-item .ti-bin { position: absolute; top: 2px; left: 4px; z-index: 4; font-size: .7rem; line-height: 1; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 1px; }
.commentary-item .ti-bg { left: 24px; right: auto; }
