/* Kadenz live — dark console styling in the spirit of DJ software (Serato/Traktor):
   near-black chassis, hairline panels, condensed uppercase labels, tabular
   numerics, and a cyan -> amber -> hot pink energy ramp shared with the video
   overlays so the colour means the same thing everywhere. */
:root {
  --bg: #08080b;
  --panel: #101015;
  --panel-2: #16161d;
  --line: #23232e;
  --line-hot: #32323f;
  --text: #eceaf3;
  --muted: #7d7a8c;
  --dim: #4e4b5c;
  --cold: #22d3ee;   /* low energy  */
  --warm: #fbbf24;   /* mid energy  */
  --hot: #f43f5e;    /* high energy */
  --live: #1ed760;
  --spotify: #1ed760;   /* catalogue side of the loop */
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- top bar */
.topbar {
  display: flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 12px;
  background: linear-gradient(180deg, #121219, #0c0c11);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 700; letter-spacing: 3px; white-space: nowrap;
}
/* The mark: a cyan lozenge, the same shape the loop uses for "our" node. */
.brand .mark {
  width: 9px; height: 9px; border-radius: 2px; flex: none;
  background: var(--cold); transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(34, 211, 238, .55);
}
.brand .mark.sm { width: 7px; height: 7px; box-shadow: none; }
.brand .ver {
  color: var(--dim); font-size: 9px; font-weight: 600; letter-spacing: .6px;
  margin-left: -2px; align-self: flex-start; margin-top: 2px;
}

/* ------------------------------------------------------- loop ribbon (top) */
/* States the product in the header: where the signal goes and what closes it.
   The active stage lights up as the session runs. */
.loopbar {
  display: flex; align-items: center; gap: 6px;
  margin-left: 18px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 3px; background: #0c0c12;
}
.loopbar .ls {
  display: flex; align-items: center; gap: 5px;
  font-size: 8.5px; font-weight: 600; letter-spacing: 1px; color: var(--dim);
  transition: color .25s;
}
.loopbar .ls.on { color: var(--text); }
.loopbar .ls[data-stage="cat"].on { color: var(--spotify); }
.loopbar .ls[data-stage="floor"].on { color: var(--warm); }
.loopbar .lsep { color: #2a2a36; font-size: 10px; }
.loopbar .lback {
  color: var(--cold); font-size: 12px; margin-left: 2px; line-height: 1;
  transform: scaleX(-1);
}
.sp { width: 11px; height: 11px; fill: currentColor; flex: none; }
.loopbar .ls[data-stage="cat"] .sp { fill: var(--spotify); opacity: .55; }
.loopbar .ls[data-stage="cat"].on .sp { opacity: 1; }
.spacer { flex: 1; }
.status {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  padding: 3px 8px; border: 1px solid var(--line-hot); border-radius: 3px;
  color: var(--dim);
}
.status.live {
  color: #06210f; background: var(--live); border-color: var(--live); font-weight: 700;
}
.status.warn { color: var(--warm); border-color: var(--warm); }
button, .btn {
  font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: .7px;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line-hot); border-radius: 3px;
  padding: 7px 11px; cursor: pointer; transition: border-color .12s, color .12s;
}
button:hover, .btn:hover { border-color: var(--cold); color: var(--cold); }
.btn.primary {
  background: var(--cold); border-color: var(--cold); color: #04222a; font-weight: 700;
}
.btn.primary:hover { filter: brightness(1.12); color: #04222a; }
button.danger, .btn.danger {
  background: var(--hot); border-color: var(--hot); color: #2b0710; font-weight: 700;
}
button.danger:hover { filter: brightness(1.1); color: #2b0710; }
.toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .8px; color: var(--muted); cursor: pointer;
}
.toggle input { accent-color: var(--cold); }

/* ------------------------------------------------------------------ layout */
main {
  display: grid; grid-template-columns: minmax(0, 1fr) 384px;
  height: calc(100vh - 50px); overflow: hidden;
}
.stage {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px; min-width: 0; min-height: 0;
}
.stagetop {
  flex: 1; min-height: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
#frame-wrap {
  position: relative; width: 100%; height: 100%;
  background: #000; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden;
}
#frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; display: none;
}
#placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 13px; letter-spacing: .3px;
}
#tclock {
  position: absolute; left: 10px; bottom: 10px; display: none;
  font-family: var(--mono); font-size: 11px;
  background: rgba(8, 8, 11, .82); border: 1px solid var(--line-hot);
  padding: 3px 8px; border-radius: 3px;
}
#aiview {
  position: absolute; right: 10px; bottom: 10px; display: none;
  background: rgba(6, 6, 9, .86);
  border: 1px solid var(--line-hot); border-radius: 4px;
}
#timeline {
  height: 138px; flex: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
}

/* -------------------------------------------------------------------- rail */
.rail {
  background: #0b0b0f; border-left: 1px solid var(--line);
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  min-height: 0; overflow-y: auto;
}
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 11px;
}
.panel-h {
  font-size: 9px; font-weight: 700; letter-spacing: 1.3px; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.panel-h .sub { font-weight: 500; letter-spacing: .5px; color: var(--dim); text-transform: none; }
.mini { margin-left: auto; font-size: 9px; font-weight: 500; letter-spacing: .3px; color: var(--dim); }
.sim {
  font-size: 8px; letter-spacing: .9px; color: var(--warm);
  border: 1px solid var(--warm); border-radius: 2px; padding: 1px 4px; cursor: help;
}

/* energy meter */
.energy-row { display: flex; align-items: baseline; gap: 5px; margin: 5px 0 7px; }
.energy-val {
  font-family: var(--mono); font-size: 40px; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.energy-max { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.energy-trend { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.meter {
  position: relative; height: 10px; border-radius: 2px;
  background: #1a1a22; border: 1px solid var(--line); overflow: hidden;
}
.meter.thin { height: 6px; }
.meter .fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cold) 0%, var(--warm) 55%, var(--hot) 100%);
  transition: width .28s ease;
}
.meter .ticks {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg,
    transparent 0 6px, rgba(8, 8, 11, .85) 6px 8px);
}

/* metric grid */
.grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.cell {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 7px 8px;
}
.cell.hero { border-color: var(--cold); }
.cell .cv {
  font-family: var(--mono); font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.cell.hero .cv { color: var(--cold); }
.cell .cl {
  font-size: 8px; letter-spacing: .7px; color: var(--muted);
  text-transform: uppercase; margin-top: 3px;
}

/* deck */
.deck { border-color: var(--line-hot); }
.track-title {
  font-size: 14px; font-weight: 700; margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-meta { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 3px; }
.resp-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 9px; letter-spacing: 1px; color: var(--muted); margin: 9px 0 4px;
}
.resp-val { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text); }

/* ---------------------------------------------------------- the loop panel */
/* Two rankings of the same catalogue, stacked: the open-loop (content-only)
   pick on top, greyed because it cannot see the room; the closed-loop pick
   below in cyan, with the crowd verdict between them. */
.panel.loop { border-color: var(--line-hot); padding: 9px 10px 10px; }
.side { border-radius: 3px; padding: 7px 9px; }
.side.open {
  background: #0d0f0e; border: 1px solid #1c2a21; border-left: 2px solid var(--spotify);
}
.side.closed {
  background: #0c1418; border: 1px solid #143039; border-left: 2px solid var(--cold);
}
.side-h { display: flex; align-items: center; gap: 6px; }
.side.open .side-h .sp { fill: var(--spotify); }
.side.closed .side-h .mark {
  width: 7px; height: 7px; border-radius: 2px; flex: none;
  background: var(--cold); transform: rotate(45deg);
}
.side-name { font-size: 8.5px; font-weight: 700; letter-spacing: 1.2px; }
.side.open .side-name { color: var(--spotify); }
.side.closed .side-name { color: var(--cold); }
.side-tag {
  margin-left: auto; font-size: 8px; letter-spacing: .6px; color: var(--dim);
}
.side-title {
  font-size: 12.5px; font-weight: 600; margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side.open .side-title { color: #b9b6c6; }
.side-title .bpm {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--dim); margin-left: 6px;
}
.side-why { font-size: 9.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* the verdict strip between the two picks */
.verdict {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 9px; font-size: 9.5px; line-height: 1.35; color: var(--muted);
}
.verdict .arrow { color: var(--dim); font-size: 12px; line-height: 1; flex: none; }
.verdict.diverge { color: var(--warm); }
.verdict.diverge .arrow { color: var(--warm); }
.verdict.agree { color: var(--dim); }

/* runner-ups from the closed loop */
.alts { display: flex; gap: 5px; margin-top: 7px; }
.alt {
  flex: 1; min-width: 0; background: #0a1115; border: 1px solid var(--line);
  border-radius: 2px; padding: 4px 6px;
}
.alt .at {
  font-size: 9.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alt .ab { font-family: var(--mono); font-size: 8.5px; color: var(--dim); margin-top: 1px; }

/* audio-feature vector on the deck */
.feats { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 2px; }
.feat { display: flex; align-items: center; gap: 7px; }
.feat .fl {
  font-size: 7.5px; letter-spacing: .9px; color: var(--dim); width: 46px; flex: none;
}
.feat .fbar {
  flex: 1; height: 3px; background: #1a1a22; border-radius: 2px; overflow: hidden;
}
.feat .fbar i { display: block; height: 100%; width: 0%; background: var(--muted); transition: width .3s; }
.feat .fv {
  font-family: var(--mono); font-size: 9px; color: var(--muted);
  width: 24px; text-align: right; flex: none;
}

.foot {
  display: flex; align-items: center; gap: 5px;
  font-size: 8.5px; color: var(--dim); letter-spacing: .3px;
  padding: 2px 1px; margin-top: auto;
}

/* genre table */
#genre-list { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.g-row { font-size: 10px; }
.g-top { display: flex; justify-content: space-between; margin-bottom: 3px; }
.g-name { font-weight: 600; }
.g-score { font-family: var(--mono); color: var(--cold); font-weight: 700; }
.g-bar { height: 3px; background: #1a1a22; border-radius: 2px; overflow: hidden; }
.g-fill { height: 100%; background: linear-gradient(90deg, var(--cold), var(--hot)); }
.empty { font-size: 10px; color: var(--dim); margin-top: 6px; }

#statusline {
  font-family: var(--mono); font-size: 9px; color: var(--dim);
  min-height: 12px; padding-top: 2px;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-thumb { background: var(--line-hot); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }


/* =========================================================================
   Live-only: landing page, <video> stage and the canvas chart. Everything
   above is shared with the desktop dashboard on purpose -- same product.
   ========================================================================= */
body { overflow: auto; }
/* `display: grid` on <main> outranks the hidden attribute's display:none, so
   the stage renders under the landing page unless this wins explicitly. */
[hidden] { display: none !important; }
.ghlink {
  font-size: 10px; letter-spacing: .6px; color: var(--muted);
  text-decoration: none; margin-right: 10px;
}
.ghlink:hover { color: var(--cold); }

/* The topbar carries the pipeline and a live status chip, both of which only
   mean anything once the camera is running. On the landing they duplicate the
   numbered strip below, so the header stays to a wordmark and a source link
   until the session starts. */
.loopbar, #status { display: none; }
body.running .loopbar { display: flex; }
body.running #status { display: inline-block; }

/* ------------------------------------------------------------- landing */
/* A console faceplate should feel machined, not boxed in. The rules here lean
   on type scale, hairlines and space rather than panels -- the panelled look is
   the dashboard's job, and repeating it on the landing made both feel flat. */
.intro {
  position: relative; isolation: isolate;
  min-height: calc(100vh - 50px);
  display: flex; align-items: center; justify-content: center;
  padding: 72px 24px 96px;
  overflow: hidden;
}

/* -- background, three layers ------------------------------------------- */
/* 1. the canvas ribbon (drawn in live.js), 2. two slow glows, 3. a vignette
   plus a faint faceplate grid. All of it sits behind the content and all of it
   stops the moment the camera starts -- inference needs the frame budget. */
#bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -2; opacity: .85;
}
.intro::before {
  content: ""; position: absolute; inset: -30%; z-index: -3;
  background:
    radial-gradient(38% 42% at 22% 32%, rgba(34, 211, 238, .13), transparent 70%),
    radial-gradient(34% 38% at 78% 68%, rgba(244, 63, 94, .10), transparent 70%),
    radial-gradient(30% 30% at 62% 12%, rgba(30, 215, 96, .07), transparent 70%);
  filter: blur(10px);
  animation: drift 30s ease-in-out infinite alternate;
}
.intro::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(transparent 0 39px, rgba(255, 255, 255, .014) 39px 40px),
    linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .014) 39px 40px),
    radial-gradient(120% 80% at 50% 40%, transparent 30%, rgba(6, 6, 10, .72) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(5%, -4%, 0) scale(1.14); }
  100% { transform: translate3d(-4%, 5%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .intro::before { animation: none; }
}

/* -- type ---------------------------------------------------------------- */
/* Fluid rather than a fixed column: on a wide screen a 760px block stranded
   in the middle of 1440 looks like a mistake. The two ledes then sit side by
   side, which fills the width without pushing either past a readable measure. */
.intro-inner { width: min(1180px, 92vw); }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, .14);
}
.intro h1 {
  /* The line break is authored in the markup, so no measure cap here -- a cap
     and an explicit <br> fight each other and the headline ends up in four. */
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.05; letter-spacing: -1.8px; font-weight: 700;
  margin-bottom: 32px;
  background: linear-gradient(180deg, #fff 30%, #a9a5bb 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ledes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px; }
.lede {
  font-size: 15.5px; line-height: 1.68; color: #b9b5c8; margin: 0;
}
@media (max-width: 900px) {
  .ledes { grid-template-columns: 1fr; gap: 14px; }
}
.lede strong { color: var(--text); font-weight: 600; }
.lede em { color: #d5d2e0; font-style: italic; }
.sp.big {
  width: 15px; height: 15px; fill: var(--spotify);
  vertical-align: -2px; margin-right: 5px;
}

/* -- call to action ------------------------------------------------------ */
.cta-row { display: flex; align-items: center; gap: 20px; margin: 30px 0 8px; flex-wrap: wrap; }
.btn.big {
  font-size: 13px; letter-spacing: .4px; font-weight: 600;
  padding: 14px 26px; border-radius: 6px;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .5);
  transition: box-shadow .25s, transform .15s, filter .15s;
}
.btn.big:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 26px -8px rgba(34, 211, 238, .75); }
.btn:disabled { opacity: .45; cursor: progress; transform: none; }
.ghost {
  font-size: 12.5px; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line-hot); padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.ghost:hover { color: var(--text); border-color: var(--cold); }
.err {
  color: var(--hot); font-size: 12.5px; line-height: 1.55; margin-top: 14px;
  border-left: 2px solid var(--hot); padding-left: 12px; max-width: 60ch;
}

/* -- the loop, as four numbered steps ------------------------------------ */
.loopstrip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  list-style: none; margin: 40px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: 5px;
  overflow: hidden;
}
.loopstrip li {
  position: relative; background: rgba(12, 12, 18, .72); padding: 14px 15px 15px;
  backdrop-filter: blur(6px);
}
.ls-n {
  display: block; font-family: var(--mono); font-size: 9.5px;
  color: var(--dim); letter-spacing: 1px; margin-bottom: 7px;
}
.ls-t { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.1px; }
.ls-d { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
/* the step that closes the loop is the only coloured one */
.loopstrip .ls-back { background: rgba(10, 20, 24, .8); }
.ls-back .ls-t { color: var(--cold); }
.ls-back::after {
  content: "↺"; position: absolute; top: 11px; right: 13px;
  color: var(--cold); font-size: 13px; line-height: 1;
}

/* -- footnotes ----------------------------------------------------------- */
.privacy {
  font-size: 12.5px; line-height: 1.65; color: var(--muted);
  border-left: 2px solid var(--live); padding: 2px 0 2px 14px;
  margin: 34px 0 0; max-width: 66ch;
}
.privacy strong { color: var(--live); font-weight: 600; }
.privacy a { color: var(--cold); text-decoration: none; border-bottom: 1px solid rgba(34, 211, 238, .3); }
.privacy a:hover { border-color: var(--cold); }

.honest { margin-top: 26px; max-width: 68ch; }
.honest summary {
  cursor: pointer; font-size: 12px; letter-spacing: .3px; color: var(--muted);
  padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 8px;
}
.honest summary::-webkit-details-marker { display: none; }
.honest summary::before {
  content: "+"; font-family: var(--mono); color: var(--dim); font-size: 13px;
}
.honest[open] summary::before { content: "−"; }
.honest summary:hover { color: var(--text); }
.honest dl { margin-top: 6px; }
.honest dt {
  font-size: 11.5px; font-weight: 600; color: var(--text);
  letter-spacing: .2px; padding-top: 12px; border-top: 1px solid var(--line);
}
.honest dd {
  margin: 4px 0 12px; font-size: 12px; line-height: 1.55; color: var(--muted);
}
.honest dd b { color: var(--text); font-weight: 600; }
.honest code { font-family: var(--mono); font-size: 11px; color: var(--cold); }
.honest > p { font-size: 11.5px; line-height: 1.6; color: var(--dim); margin-top: 12px; }

/* --------------------------------------------------------------- stage */
main { display: grid; grid-template-columns: minmax(0, 1fr) 384px; height: calc(100vh - 50px); }
.stagewrap {
  display: flex; flex-direction: column; gap: 8px; padding: 10px;
  min-width: 0; min-height: 0;
}
.framebox {
  position: relative; flex: 1; min-height: 0;
  background: #000; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
/* The video and its overlay must share one box exactly, or the skeletons drift
   off the bodies the moment the aspect ratios disagree. */
#cam, #overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
}
#clock {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 11px;
  background: rgba(8, 8, 11, .82); border: 1px solid var(--line-hot);
  padding: 3px 8px; border-radius: 3px;
}
#chart {
  height: 92px; flex: none; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
}
.note {
  font-size: 9px; letter-spacing: .4px; color: var(--dim); padding: 0 2px;
}

@media (max-width: 900px) {
  main { grid-template-columns: 1fr; height: auto; }
  .rail { border-left: none; border-top: 1px solid var(--line); }
  .framebox { height: 56vw; }
  .loopbar { display: none; }
  .intro { min-height: 0; padding: 44px 20px 64px; }
  .intro h1 { letter-spacing: -.8px; }
  /* let the headline wrap naturally instead of at the desktop break */
  .intro h1 br.wide { display: none; }
  /* Four steps across a phone leaves no room for the labels. */
  .loopstrip { grid-template-columns: 1fr 1fr; }
  .cta-row { gap: 14px; }
}

#empty-hint {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  font-size: 13px; line-height: 1.6; color: var(--muted);
  background: rgba(8, 8, 11, .55); pointer-events: none;
}

/* =========================================================================
   Set report — shown when a session ends. Same faceplate language as the
   dashboard, but laid out to be read once rather than watched.
   ========================================================================= */
#report { display: flex; justify-content: center; padding: 46px 24px 80px; }
.rep-inner { width: min(1180px, 92vw); }
.rep-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 30px;
}
.rep-head h2 {
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.05;
  letter-spacing: -1.2px; font-weight: 700;
}

.rep-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 5px; overflow: hidden;
}
.rs { background: var(--panel); padding: 15px 16px 14px; }
.rs-v {
  font-family: var(--mono); font-size: 23px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.rs-k {
  font-size: 9px; letter-spacing: .9px; text-transform: uppercase;
  color: var(--muted); margin-top: 7px;
}

.rep-verdict {
  font-size: 15px; line-height: 1.6; color: #b9b5c8;
  margin: 26px 0 6px; max-width: 78ch;
}
.rep-verdict b { color: var(--text); font-weight: 600; }

.rep-block { margin-top: 34px; }
.rep-block h3 {
  font-size: 10px; font-weight: 700; letter-spacing: 1.3px;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px;
}
.rep-block h3 span {
  font-weight: 500; letter-spacing: .3px; text-transform: none; color: var(--dim);
}
#rep-timeline {
  width: 100%; height: 150px; display: block;
  background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
}
.rep-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; }

/* tracks, ranked by what the room actually gave them */
.rep-tracks { list-style: none; margin: 0; }
.rep-tracks li {
  display: grid; grid-template-columns: 26px 1fr 44px 48px;
  align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.r-pos { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.r-main { min-width: 0; }
.r-title {
  display: block; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.r-title em { color: var(--muted); font-weight: 400; font-style: normal; }
.r-meta {
  display: block; font-family: var(--mono); font-size: 9.5px;
  color: var(--dim); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.r-bar {
  display: block; height: 3px; background: #1a1a22;
  border-radius: 2px; overflow: hidden; margin-top: 7px;
}
.r-bar i { display: block; height: 100%; }
.r-num {
  font-family: var(--mono); font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums; text-align: right;
}
.r-delta {
  font-family: var(--mono); font-size: 10.5px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.r-delta.up { color: var(--live); }
.r-delta.down { color: var(--hot); }
.r-empty {
  font-size: 12px; line-height: 1.55; color: var(--dim);
  border-top: 1px solid var(--line); padding-top: 12px;
}
.rep-genres .g-row, #rep-genres .g-row { margin-bottom: 13px; }
#rep-genres .g-n {
  font-family: var(--mono); font-size: 9px; color: var(--dim); margin-top: 4px;
}
.rep-foot {
  font-size: 11px; line-height: 1.6; color: var(--dim);
  margin-top: 38px; max-width: 80ch;
}

@media (max-width: 900px) {
  .rep-stats { grid-template-columns: repeat(2, 1fr); }
  .rep-cols { grid-template-columns: 1fr; gap: 8px; }
  .rep-tracks li { grid-template-columns: 22px 1fr 40px 44px; gap: 9px; }
}
