:root {
  --bg: #000;
  --s1: #0a0a0a;
  --s2: #141414;
  --s3: #1c1c1c;
  --s4: #2a2a2a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .18);
  --t1: #fff;
  --t2: #c8c8c8;
  --t3: #8e8e8e;
  --brass: #C9A96A;
  --brass-hi: #E6CE9B;
  --neg: #fca5a5;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --panel-w: 460px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* No zoom anywhere in this app: not by double tap, not by pinch. Scrolling stays. */
html, body, #app { touch-action: manipulation; touch-action: pan-x pan-y; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--t1); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--sans); font-feature-settings: 'ss01', 'cv11'; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, 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; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { font: 500 11px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--t3); margin: 0; }
.eyebrow span { color: var(--brass); }
h1 { font-weight: 650; letter-spacing: -.03em; margin: 0; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brass); letter-spacing: -.01em; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 14px; white-space: nowrap; }
.pill.ghost { background: transparent; color: #fff; border: 1px solid var(--line-strong); }
.pill.small { height: 32px; padding: 0 14px; font-size: 13px; }
.pill:disabled { opacity: .5; cursor: default; }
.pill svg { width: 16px; height: 16px; }

/* ---------- frame ---------- */
#app { position: fixed; inset: 0; display: flex; }
.stage { position: relative; flex: 1; min-width: 0; height: 100%; background: var(--bg); }

.top { position: absolute; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--safe-t) + 12px) 14px 26px; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.top > * { pointer-events: auto; }
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(10, 10, 10, .55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tab { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--t2); display: inline-flex; align-items: center; gap: 6px; }
.tab-count { font: 500 11px/1 var(--mono); color: var(--brass); }
.tab-count:empty { display: none; }
#app[data-view='feed'] .tab[data-go='feed'], #app[data-view='saved'] .tab[data-go='saved'], #app[data-view='saved-reel'] .tab[data-go='saved'],
#app[data-view='breakthrough'] .tab[data-go='breakthrough'], #app[data-view='bt-reel'] .tab[data-go='breakthrough'] { background: #fff; color: #000; }
#app[data-view^='saved'] .tab[data-go='saved'] .tab-count, #app[data-view='breakthrough'] .tab[data-go='breakthrough'] .tab-count, #app[data-view='bt-reel'] .tab[data-go='breakthrough'] .tab-count { color: #000; }

.watch { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 9px; border-radius: 999px; background: rgba(10, 10, 10, .55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font: 500 12px/1 var(--mono); color: var(--t2); }
.watch svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.watch-track { stroke: rgba(255, 255, 255, .16); stroke-width: 2.4; }
.watch-arc { stroke: var(--brass); stroke-width: 2.4; stroke-dasharray: 50.27; stroke-dashoffset: 50.27; transition: stroke-dashoffset .6s ease; }
.watch b { color: #fff; font-weight: 500; }
.watch i { font-style: normal; color: var(--t3); margin-left: 4px; }
.watch.done b, .watch.done i { color: var(--brass); }

/* ---------- the feed ---------- */
.column { position: absolute; inset: 0; margin: 0 auto; overflow: hidden; background: #000; }
#app[data-view='saved'] .column, #app[data-view='breakthrough'] .column, #app[data-view='people'] .column { display: none; }
.reel { position: absolute; inset: 0; overflow-y: scroll; overflow-x: hidden; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; -webkit-overflow-scrolling: touch; }
.reel::-webkit-scrollbar { display: none; }

.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.slide .poster, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.slide video { z-index: 1; }
.slide .poster { opacity: .96; }
.slide .backdrop { position: absolute; inset: -48px; background-size: cover; background-position: center; filter: blur(30px) brightness(.36) saturate(1.15); }
/* A static sits above its text, never under it: the image is the whole point. */
.slide.is-still { display: flex; flex-direction: column; }
.slide.is-still .still-wrap { position: relative; z-index: 1; flex: 1; min-height: 0; margin-top: calc(var(--safe-t) + 62px); }
.slide.is-still .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slide.is-still .meta { position: relative; left: auto; right: auto; bottom: auto; padding: 14px 84px calc(var(--safe-b) + 20px) 16px; }
.slide.is-still .shade { display: none; }
.slide .lede { margin-top: 7px; font-size: 13.5px; line-height: 1.42; color: #e9e9e9; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide .more { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--brass-hi); }
.slide .shade { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.slide .meta { position: absolute; z-index: 3; left: 16px; right: 84px; bottom: calc(var(--safe-b) + 44px); pointer-events: none; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.slide .rank { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 9px; }
.slide .page { font-weight: 650; font-size: 16px; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.slide .page small { font: 500 11.5px/1.2 var(--mono); color: var(--t2); letter-spacing: 0; }
.slide .title { margin-top: 5px; font-size: 14.5px; color: #f0f0f0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide .facts { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.fact { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #f0f0f0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.fact.live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; margin-right: 6px; vertical-align: 1px; }

.slide.end { display: grid; place-items: center; text-align: center; padding: 32px; }
.slide.end .box { max-width: 320px; display: grid; gap: 14px; justify-items: center; }
.slide.end h2 { font-size: 26px; letter-spacing: -.03em; margin: 0; font-weight: 650; }
.slide.end p { color: var(--t2); margin: 0; }

/* heads-up display for the ad on screen */
.hud { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.hud > * { pointer-events: auto; }
.rail { position: absolute; right: 8px; bottom: calc(var(--safe-b) + 56px); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.act { width: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.act svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .55)); }
.act span { font-size: 11px; font-weight: 500; color: #eee; }
.act:active { transform: scale(.92); }
.act.on { color: var(--brass); }
.act.on svg { fill: var(--brass); }
.act-text b { height: 30px; display: grid; place-items: center; font: 500 15px/1 var(--mono); }
.hud.still .scrub, .hud.still .clock, .hud.still #actSound, .hud.still #actSpeed, .hud.still .sound-chip, .hud.still .flash, .hud.still .upnext { display: none !important; }
#actSound .ico-off { display: none; }
#actSound.muted .ico-on { display: none; }
#actSound.muted .ico-off { display: block; }

.scrub { position: absolute; left: 0; right: 0; bottom: var(--safe-b); height: 30px; display: flex; align-items: flex-end; padding: 0 0 8px; cursor: pointer; touch-action: none; }
.scrub-track { position: relative; width: 100%; height: 3px; background: rgba(255, 255, 255, .22); transition: height .12s ease; }
.scrub:hover .scrub-track, .scrub.dragging .scrub-track { height: 7px; }
.scrub-buffer, .scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.scrub-buffer { background: rgba(255, 255, 255, .28); }
.scrub-fill { background: var(--brass); }
.clock { position: absolute; left: 16px; bottom: calc(var(--safe-b) + 18px); font: 500 11px/1 var(--mono); color: var(--t2); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); pointer-events: none; }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 13.5px; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.chip svg { width: 18px; height: 18px; }
.boost { position: absolute; top: calc(var(--safe-t) + 112px); left: 50%; transform: translateX(-50%); height: 36px; padding: 0 14px; gap: 7px; background: rgba(10, 10, 10, .74); color: #fff; border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; white-space: nowrap; }
.boost .ico-ff { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.boost .ico-lock { width: 15px; height: 15px; opacity: .55; }
.boost.armed, .boost.locked { background: var(--brass); color: #000; border-color: transparent; }
.boost.armed .ico-lock, .boost.locked .ico-lock { opacity: 1; }
.hud.still .boost { display: none !important; }
/* Holding a finger on the video must not select text, open a menu or drag the picture. */
.reel { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.slide img, .slide video { -webkit-user-drag: none; pointer-events: none; }
.sound-chip { position: absolute; top: calc(var(--safe-t) + 66px); left: 50%; transform: translateX(-50%); }

.flash { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; opacity: 0; pointer-events: none !important; }
.flash svg { width: 36px; height: 36px; fill: #fff; stroke: none; }
.flash.show { animation: flash .5s ease; }
.flash.hold { opacity: 1; }
@keyframes flash { 0% { opacity: 0; transform: scale(.8); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }

.upnext { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 10px; }

.back { position: absolute; z-index: 31; top: calc(var(--safe-t) + 64px); left: 14px; height: 34px; padding: 0 14px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; background: rgba(10, 10, 10, .6); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.back svg { width: 18px; height: 18px; }

/* ---------- saved ---------- */
.saved { position: absolute; inset: 0; overflow-y: auto; padding: calc(var(--safe-t) + 84px) 16px calc(var(--safe-b) + 32px); }
.saved-head { max-width: 1100px; margin: 0 auto 22px; }
.saved-head h1 { font-size: 32px; margin-top: 12px; }
.saved-head .sub { color: var(--t3); margin: 8px 0 0; font-size: 14px; }
.grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { position: relative; text-align: left; border-radius: 14px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .thumb { position: relative; aspect-ratio: 9 / 14; background: var(--s2); }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .thumb .dur { position: absolute; right: 8px; bottom: 8px; font: 500 10.5px/1 var(--mono); padding: 4px 7px; border-radius: 999px; background: rgba(0, 0, 0, .7); }
.card .txt { padding: 10px 11px 12px; display: grid; gap: 3px; }
.card .txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .txt span { font-size: 12.5px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .txt i { font-style: normal; font-size: 12px; color: var(--brass); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.board-actions { margin-top: 14px; }
.board-note { max-width: 1100px; margin: 0 auto 18px; }
.board-note:empty { display: none; }
.board-list { max-width: 1100px; margin: 0 auto; display: grid; gap: 26px; }
.brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-head > div { min-width: 0; }
.brand-logo { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: var(--s3); border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 14px/1 var(--mono); color: var(--t2); overflow: hidden; }
.brand-name { font-size: 17px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.brand-name .fresh { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--brass); color: #000; }
.brand-meta { font: 500 11.5px/1.4 var(--mono); color: var(--t3); margin-top: 3px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.strip::-webkit-scrollbar { display: none; }
.bcard { flex: none; width: 138px; text-align: left; border-radius: 14px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); scroll-snap-align: start; display: flex; flex-direction: column; }
.bcard .thumb { position: relative; aspect-ratio: 9 / 14; background: var(--s2); }
.bcard .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard .thumb .dur { position: absolute; right: 7px; bottom: 7px; font: 500 10px/1 var(--mono); padding: 4px 6px; border-radius: 999px; background: rgba(0, 0, 0, .72); }
.bcard .thumb .when { position: absolute; left: 7px; top: 7px; font: 500 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--brass); color: #000; }
.bcard .txt { padding: 9px 10px 11px; display: grid; gap: 4px; }
.bcard .txt b { font: 500 12px/1.2 var(--mono); color: #fff; }
.bcard .txt b em { font-style: normal; color: var(--t3); font-size: 10.5px; }
.bcard .txt small { font: 500 10.5px/1.2 var(--mono); color: var(--brass); }
.bcard .txt small.ended { color: var(--neg); }
.bcard .txt span { font-size: 12px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.bcard.watched { opacity: .45; }
.bcard.watched .when { background: rgba(255, 255, 255, .85); }
.quiet { font-size: 13.5px; color: var(--t3); border-top: 1px solid var(--line); padding-top: 18px; }
.quiet b { color: var(--t2); font-weight: 500; }
.empty { max-width: 1100px; margin: 40px auto; padding: 40px 24px; border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; color: var(--t2); }
.empty b { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; }

/* ---------- details panel ---------- */
.panel { background: var(--s1); display: flex; flex-direction: column; }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px calc(var(--safe-b) + 40px); -webkit-overflow-scrolling: touch; }
.grab { display: none; }

.p-head .eyebrow { margin-bottom: 12px; }
.p-head h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin: 0; }
.p-head .by { margin-top: 8px; color: var(--t2); font-size: 14px; }
.p-head .by b { color: #fff; font-weight: 600; }
.p-head .by2 { margin: 5px 0 0; font: 500 11.5px/1.4 var(--mono); color: var(--t3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.stat { background: var(--s1); padding: 12px 12px 11px; min-width: 0; }
.stat label { display: block; font: 500 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--t3); margin-bottom: 7px; }
.stat b { display: block; font: 500 14px/1.15 var(--mono); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b em { font-style: normal; color: var(--t3); font-size: 11.5px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.p-actions .pill.saved-on { background: var(--brass); color: #000; }
.note { margin-top: 14px; }
.note textarea { width: 100%; min-height: 64px; resize: vertical; background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 14px; outline: none; }
.note textarea:focus { border-color: var(--brass); }
.note textarea::placeholder { color: var(--t3); }

.p-tabs { position: sticky; top: -20px; z-index: 2; display: flex; gap: 20px; margin: 22px -20px 0; padding: 0 20px; background: var(--s1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tab { position: relative; height: 44px; font-size: 13.5px; font-weight: 600; color: var(--t3); white-space: nowrap; }
.p-tab.on { color: #fff; }
.p-tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); }
.p-pane { padding-top: 18px; }
.p-pane h3 { font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--t3); margin: 20px 0 9px; }
.p-pane h3:first-child { margin-top: 0; }
.copy-text { white-space: pre-wrap; word-break: break-word; color: #e8e8e8; font-size: 14.5px; line-height: 1.55; }
.copy-head { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--t2); }
.tag.brass { border-color: rgba(201, 169, 106, .5); color: var(--brass); }
.stills { display: grid; gap: 10px; }
.stills img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--s2); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { font: 500 10px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); padding-top: 2px; }
.kv dd { margin: 0; color: #e8e8e8; word-break: break-word; }
.kv dd a { color: var(--brass); }

.lines { display: grid; gap: 2px; margin: 0 -8px; }
.line { display: grid; grid-template-columns: 44px 1fr; gap: 8px; text-align: left; padding: 6px 8px; border-radius: 8px; font-size: 14.5px; line-height: 1.5; color: #dcdcdc; }
.line time { font: 500 11px/1.9 var(--mono); color: var(--brass); }
.line:hover { background: var(--s2); }
.line.now { background: var(--s3); color: #fff; }

.shot { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 520px; overflow-y: auto; background: var(--s2); }
.shot img { display: block; width: 100%; }

.hint { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 18px; color: var(--t2); font-size: 14px; display: grid; gap: 12px; justify-items: start; }
.hint b { color: #fff; font-size: 15px; }
.hint.err b { color: var(--neg); }
.muted { color: var(--t3); font-size: 13px; }

.analysis { font-size: 14.5px; line-height: 1.6; color: #e4e4e4; }
.analysis h4 { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin: 22px 0 8px; }
.analysis h4:first-child { margin-top: 0; }
.analysis p { margin: 0 0 10px; }
.analysis ul, .analysis ol { margin: 0 0 10px; padding-left: 20px; }
.analysis li { margin-bottom: 5px; }
.analysis strong { color: #fff; font-weight: 600; }
.analysis .cursor { display: inline-block; width: 7px; height: 15px; background: var(--brass); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.talk { display: grid; gap: 16px; }
.comment .who { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.comment .who b { font-weight: 600; color: #fff; }
.comment .who time { font: 500 11px/1 var(--mono); color: var(--t3); }
.comment .who button { margin-left: auto; font-size: 12px; color: var(--t3); }
.comment .who button:hover { color: var(--neg); }
.comment .said { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: #e4e4e4; white-space: pre-wrap; word-break: break-word; }
.comment .said .at { font: 500 12.5px/1 var(--mono); color: var(--brass); padding: 2px 6px; border-radius: 6px; background: rgba(201, 169, 106, .14); }
.composer { position: sticky; bottom: calc(-1 * (var(--safe-b) + 40px)); display: flex; gap: 8px; align-items: flex-end; margin: 18px -20px 0; padding: 12px 20px calc(var(--safe-b) + 14px); background: var(--s1); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; font-size: 16px; line-height: 1.35; outline: none; }
.composer textarea:focus { border-color: var(--brass); }
.composer textarea::placeholder { color: var(--t3); }
.composer .pill { height: 44px; }
.p-tab .n { font: 500 11px/1 var(--mono); color: var(--brass); margin-left: 4px; }
.scrim { display: none; }

/* ---------- login + toast ---------- */
.login { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; padding: 24px; }
.login-box { width: 100%; max-width: 320px; display: grid; gap: 14px; }
.login-box form { display: grid; gap: 10px; }
.login-box .pill { height: 50px; font-size: 15px; }
.login-box .g { width: 19px; height: 19px; fill: #000; stroke: none; }
.linkish { justify-self: start; font-size: 13px; color: var(--t3); text-decoration: underline; text-underline-offset: 3px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.me { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(10, 10, 10, .55); border: 1px solid var(--line-strong); font: 500 12px/1 var(--mono); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.me img { width: 100%; height: 100%; object-fit: cover; }
.people-box { max-width: 720px; margin: 0 auto; display: grid; gap: 22px; }
.you { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--s1); }
.you .av, .person .av { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: var(--s3); display: grid; place-items: center; font: 500 14px/1 var(--mono); color: var(--t2); overflow: hidden; }
.you .txt, .person .txt { min-width: 0; flex: 1; }
.you b, .person b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.you small, .person small { display: block; font: 500 11.5px/1.4 var(--mono); color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-person { display: flex; gap: 8px; }
.add-person input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line-strong); padding: 0 16px; font-size: 16px; outline: none; }
.add-person input:focus { border-color: var(--brass); }
.add-person .pill { height: 44px; }
.persons { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--s1); border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person .av { width: 36px; height: 36px; font-size: 12px; }
.person .tagline { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.person button { font-size: 13px; color: var(--t3); }
.person button:hover { color: var(--neg); }
.comment { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.comment .av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--s3); display: grid; place-items: center; font: 500 10px/1 var(--mono); color: var(--t2); overflow: hidden; }
.login form { width: 100%; max-width: 320px; display: grid; gap: 14px; }
.login h1 { font-size: 34px; margin: 4px 0 8px; }
.login input { height: 52px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line-strong); padding: 0 16px; font: 500 20px/1 var(--mono); letter-spacing: .3em; outline: none; }
.login input:focus { border-color: var(--brass); }
.login .pill { height: 48px; }
.login-err { color: var(--neg); min-height: 20px; margin: 0; font-size: 14px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--safe-b) + 84px); transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); white-space: nowrap; }

/* ---------- phone: the panel is a sheet ---------- */
@media (max-width: 899px) {
  .note textarea, .login input { font-size: 16px; }
  .tab { padding: 0 11px; font-size: 13px; }
  #watchGoal { display: none; }
  .panel { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: 82dvh; border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-strong); transform: translateY(102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  #app.sheet .panel { transform: translateY(0); }
  .grab { display: grid; place-items: center; height: 26px; flex: none; width: 100%; }
  .grab i { width: 40px; height: 4px; border-radius: 4px; background: var(--s4); }
  .panel-body { padding-top: 6px; }
  .p-tabs { top: -6px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  #app.sheet .scrim { opacity: 1; pointer-events: auto; }
}

/* ---------- desktop: the panel sits beside the video ---------- */
@media (min-width: 900px) {
  .panel { width: var(--panel-w); flex: none; border-left: 1px solid var(--line); height: 100%; }
  .only-phone { display: none !important; }
  .column { width: min(100%, calc(100dvh * 9 / 16)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .top { padding: 16px 20px 26px; background: none; }
  .saved { padding: 96px 32px 40px; }
  .strip { margin: 0; padding-left: 0; padding-right: 0; }
  .bcard { width: 168px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
  .panel-body { padding: 28px 26px 48px; }
  .p-tabs { margin: 24px -26px 0; padding: 0 26px; top: -28px; }
  .composer { margin: 18px -26px 0; padding: 12px 26px 16px; bottom: -48px; }
  .composer textarea { font-size: 14.5px; }
  .back { top: 16px; left: 16px; }
  .slide.is-still .still-wrap { margin-top: 0; }
  .sound-chip { top: 20px; }
  .boost { top: 64px; }
}
@media (min-width: 1500px) { :root { --panel-w: 540px; } }
