:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --ink: #191916;
  --line: #d4d3ca;
  --muted: #5b5b53;
  --orange: #ff5b12;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font: 100%/1.5 Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
.wrap { width: min(100% - clamp(32px, 8vw, 112px), 1040px); margin-inline: auto; }
.masthead { border-bottom: 2px solid var(--ink); }
.masthead-inner, .details, footer, nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.masthead-inner { min-height: 62px; }
.brand { display: inline-flex; align-items: center; color: inherit; font-size: 29px; font-weight: 850; letter-spacing: -1.8px; line-height: 1; text-decoration: none; }
.slash { color: var(--orange); margin: 0 5px; font-size: 36px; font-weight: 800; }
.brand-live { font: 700 19px/1 var(--mono); letter-spacing: -1px; }
time, #status { font: 0.875rem/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.event { padding-block: clamp(20px, 3vw, 32px) 14px; }
.byline { color: var(--muted); font-size: 0.875rem; }
.byline span { margin-inline: 4px; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 4.25vw, 3.6rem); letter-spacing: -.055em; line-height: 1.16; margin-block: 9px 14px; }
.details { flex-wrap: wrap; gap: 4px 20px; }
.details p { font-weight: 600; }
#status { color: var(--muted); }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #141413; border: 1px solid var(--ink); }
video::cue { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: clamp(15px, 2.25vw, 26px); font-weight: 400; color: white; background-color: rgb(12 15 18 / 72%); text-shadow: none; }
.captions { display: grid; grid-template-columns: minmax(95px, .18fr) 1fr; gap: clamp(12px, 3vw, 34px); padding-block: 20px 24px; border-bottom: 1px solid var(--ink); }
h2 { display: flex; align-items: baseline; gap: 9px; font-size: 1rem; }
h2::before { content: ""; width: 5px; height: .9em; background: var(--orange); }
.lines { min-height: 4.1rem; min-width: 0; overflow-wrap: anywhere; }
#zh { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 650; line-height: 1.5; }
#en { color: var(--muted); margin-top: 5px; font-size: 1rem; line-height: 1.5; }
footer { align-items: baseline; flex-wrap: wrap; padding-block: 16px 30px; color: var(--muted); font-size: .875rem; }
footer p { flex: 1 1 320px; }
footer a { color: var(--ink); text-decoration-color: #97978e; text-underline-offset: 4px; }
footer a:hover { text-decoration-color: var(--orange); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 640px) {
  .masthead-inner { min-height: 54px; }
  .brand { font-size: 26px; }
  .captions { grid-template-columns: 1fr; gap: 8px; padding-block: 15px 20px; }
  footer { gap: 12px; }
}
.playback-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
#viewers, #delay { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.history { display: grid; grid-template-columns: minmax(95px,.18fr) minmax(0,1fr); gap: clamp(12px,3vw,34px); padding-block: 20px; border-bottom: 1px solid var(--ink); }
.history-body { min-width: 0; }
#history-list { list-style: none; padding: 0; margin: 0; max-height: 26rem; overflow-y: auto; overflow-wrap: anywhere; }
#history-list li { padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--line); }
#history-list li:first-child { padding-top: 0; }
#history-list small { color: var(--muted); font: .75rem/1.6 var(--mono); }
#history-list p[lang=en], #history-state { color: var(--muted); font-size: .93rem; }
#older { color: var(--ink); background: transparent; border: 1px solid var(--line); padding: .45rem .8rem; margin-top: .6rem; cursor: pointer; }
@media (max-width: 640px) { .history {grid-template-columns: minmax(0,1fr);gap: 8px;} }

.replay-controls { display:flex; gap:.4rem 1rem; flex-wrap:wrap; padding:.6rem 0; border-bottom:1px solid var(--line); }
.replay-controls button,.history-jump { font:inherit; color:var(--ink); border:0; background:none; padding:.24rem 0; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.replay-controls button { font-size:.9rem; }
.history-jump { font:.78rem/1.6 var(--mono); color:var(--muted); }

.captions[hidden] { display:none; }
