:root {
  --bg: #111414;
  --surface: #191d1c;
  --surface-2: #202624;
  --line: rgba(236, 238, 230, 0.12);
  --text: #f2f1e9;
  --muted: #a5aaa3;
  --acid: #d8ff4f;
  --hr: #ff9466;
  --employee: #75bfff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 5%, rgba(216, 255, 79, 0.08), transparent 30rem),
    radial-gradient(circle at 92% 32%, rgba(117, 191, 255, 0.07), transparent 28rem),
    var(--bg);
}
button, select, input { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }

.shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 48px; }
.masthead { max-width: 800px; margin-bottom: 38px; }
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px var(--acid); }
h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 8vw, 84px); font-weight: 760; letter-spacing: -0.055em; line-height: 0.98; }
.lede { max-width: 660px; margin: 25px 0 12px; color: #c7cbc4; font-size: clamp(16px, 2vw, 19px); line-height: 1.75; }
.context-summary { max-width: 760px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.context-summary p { margin: 0 0 9px; }
.context-summary p:last-child { margin-bottom: 0; }
.player-card { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, rgba(35, 42, 40, 0.96), rgba(23, 27, 26, 0.98)); box-shadow: var(--shadow); }
.now-playing { min-height: 164px; }
.now-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.live-caption { display: grid; align-content: center; min-height: 128px; padding-top: 14px; }
.live-line { margin: 4px 0; font-size: clamp(20px, 3vw, 30px); font-weight: 620; line-height: 1.5; }
.live-line .speaker { display: inline-block; min-width: 52px; margin-right: 9px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; vertical-align: 0.26em; }
.live-line.hr .speaker { color: var(--hr); }
.live-line.employee .speaker { color: var(--employee); }
.waiting { margin: 0; color: var(--muted); font-size: 17px; }

.timeline-wrap { margin-top: 4px; }
.timeline { width: 100%; height: 5px; margin: 0; border-radius: 999px; outline: none; background: linear-gradient(to right, var(--acid) var(--progress, 0%), rgba(255,255,255,.15) var(--progress, 0%)); appearance: none; }
.timeline::-webkit-slider-thumb { width: 17px; height: 17px; border: 4px solid var(--surface); border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 1px var(--acid); appearance: none; }
.timeline::-moz-range-thumb { width: 10px; height: 10px; border: 4px solid var(--surface); border-radius: 50%; background: var(--acid); }
.time-row { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.icon-button, .text-button { border: 1px solid var(--line); background: transparent; }
.icon-button { width: 46px; height: 46px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.play-button { display: grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; background: var(--acid); color: #14170f; box-shadow: 0 10px 30px rgba(216, 255, 79, .17); }
.play-button svg { grid-area: 1 / 1; width: 25px; fill: currentColor; }
.pause-icon, .is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.speed-control { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--muted); font-size: 12px; }
select, .text-button { padding: 9px 11px; border-radius: 10px; background-color: var(--surface); }
.text-button { color: var(--muted); font-size: 12px; }
button:hover, select:hover { border-color: rgba(216, 255, 79, .42); }
button:focus-visible, select:focus-visible, input:focus-visible, .cue:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.transcript-section { margin-top: 74px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-kicker { margin-bottom: 8px; }
h2 { margin: 0; font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.035em; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.hr-dot, .employee-dot { width: 8px; height: 8px; border-radius: 50%; }
.hr-dot { background: var(--hr); }
.employee-dot { margin-left: 10px; background: var(--employee); }
.transcript-hint { margin: 18px 0 8px; color: var(--muted); font-size: 13px; }
.transcript { max-height: 690px; overflow-y: auto; padding: 6px 10px 6px 0; scrollbar-color: #4a514e transparent; }
.cue { display: grid; grid-template-columns: 82px 74px 1fr; gap: 14px; width: 100%; padding: 17px 14px; border: 0; border-bottom: 1px solid rgba(236, 238, 230, .07); border-radius: 12px; background: transparent; color: inherit; text-align: left; transition: background .2s, transform .2s; }
.cue:hover { background: rgba(255,255,255,.035); }
.cue.active { background: rgba(216, 255, 79, .09); transform: translateX(4px); }
.cue-time { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.cue-speaker { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.cue.hr .cue-speaker { color: var(--hr); }
.cue.employee .cue-speaker { color: var(--employee); }
.cue-text { color: #d8dbd5; font-size: 15px; line-height: 1.72; }
.overlap-badge { margin-left: 6px; color: var(--muted); font-size: 10px; font-weight: 500; }

noscript { display: block; padding: 16px; background: #5b211c; color: white; text-align: center; }

@media (max-width: 660px) {
  .shell { width: min(100% - 24px, 1040px); padding-top: 38px; }
  .player-card { border-radius: 20px; }
  .now-playing { min-height: 190px; }
  .live-caption { min-height: 150px; }
  .controls { gap: 8px; }
  .speed-control { margin-left: 4px; }
  .speed-control > span { display: none; }
  .text-button { display: none; }
  .section-heading { align-items: start; flex-direction: column; }
  .cue { grid-template-columns: 63px 55px 1fr; gap: 8px; padding-inline: 8px; }
  .cue-text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue { transition: none; }
}
