/* Walmart Radio dashboard — palette roles per dataviz reference instance */
:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --page: #f9f9f7;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --series-1: #2a78d6;
  --series-1-wash: rgba(42, 120, 214, 0.10);
  --series-2: #b26a12;
  --series-3: #1f7a6b;
  /* Sequential ramp: pale → saturated blue. More always means more blue. */
  --seq-100: #e3eefc; --seq-200: #c3ddf9; --seq-300: #97c3f1;
  --seq-400: #63a2e8; --seq-500: #3781da; --seq-600: #1d63b4; --seq-700: #114684;
  --accent-ink: #1c5cab;
  --gap-band: rgba(137, 135, 129, 0.12);
  --cal-empty: #eceae3;   /* unlit base under the silence grid */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --page: #0d0d0d;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --series-1: #3987e5;
    --series-1-wash: rgba(57, 135, 229, 0.14);
    --series-2: #d99a3c;
    --series-3: #46b5a0;
    /* Same direction on dark: steps climb in brightness AND in blue
       saturation, so the busiest cells read as the most colour — never as
       washed-out white, which reads like emptiness on a dark surface. */
    --seq-100: #1c2a38; --seq-200: #1d3d61; --seq-300: #1e4f80;
    --seq-400: #21659f; --seq-500: #2a7fc4; --seq-600: #3d9ce4; --seq-700: #5fbaff;
    --accent-ink: #86b6ef;
    --gap-band: rgba(137, 135, 129, 0.15);
    --cal-empty: #272725;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 80px; }

/* ---- section nav ----
   The page is long and every section is a different question. This is a way
   back to the top of one of them, not a site menu — it stays out of the way
   and disappears entirely on a phone, where the scroll is the navigation. */
.sitenav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navinner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px; height: 44px;
}
.navbrand {
  font-size: 13px; font-weight: 650; color: var(--ink); text-decoration: none;
  white-space: nowrap; letter-spacing: -0.01em;
}
.navlinks { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a {
  font-size: 12.5px; color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 2px 0; border-bottom: 2px solid transparent;
}
.navlinks a:hover { color: var(--ink); border-bottom-color: var(--accent-ink); }
/* Anchor targets have to clear the sticky bar. */
section { scroll-margin-top: 56px; }
@media (max-width: 720px) {
  .sitenav { position: static; }
  .navbrand { display: none; }
}

header.site { padding: 40px 0 8px; }
header.site h1 { font-size: 30px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.02em; }
header.site p { margin: 0; color: var(--ink-2); max-width: 62ch; }
header.site .fineprint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.hero { display: flex; gap: 22px; align-items: center; }
.hero-art {
  width: 168px; height: 168px; flex: none; border-radius: 12px; display: block;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22); object-fit: cover;
}
@media (max-width: 620px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-art { width: 124px; height: 124px; }
}

section { margin-top: 44px; }
section > h2 { font-size: 18px; font-weight: 650; margin: 0 0 4px; letter-spacing: -0.01em; }
section > .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.cardtitle { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.card > .sub { color: var(--muted); font-size: 12.5px; margin: -6px 0 12px; }
.minih { font-size: 13px; font-weight: 600; margin: 8px 0; color: var(--ink-2); }
.morebtn {
  margin-top: 10px; border: 1px solid var(--border); background: none; color: var(--accent-ink);
  border-radius: 7px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.morebtn:hover { background: var(--series-1-wash); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.legend .lgi { display: flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 3px; border-radius: 2px; flex: none; }
input[type="search"] {
  background: var(--surface-1); color: var(--ink); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 10px; font: inherit; font-size: 13.5px; min-width: 240px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

/* ---- headline stat line + findings strip ---- */
header.site .statline {
  color: var(--ink); font-size: 14px; margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
#findingsSection { margin-top: 30px; }
.findings-h {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
/* --fcols / --flast are set by renderFindings() so the row of cards always
   comes out even — no half-empty last row when a finding is added or dropped. */
.findings { display: grid; grid-template-columns: repeat(var(--fcols, 3), 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.findings > .finding:last-child { grid-column: span var(--flast, 1); }
@media (max-width: 760px) {
  .findings { grid-template-columns: repeat(2, 1fr); }
  .findings > .finding:last-child { grid-column: auto; }
}
@media (max-width: 480px) { .findings { grid-template-columns: 1fr; } }
.finding {
  background: var(--surface-1); padding: 14px 16px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 3px;
}
.finding:hover { background: var(--series-1-wash); }
.finding .fv { font-size: 25px; font-weight: 650; letter-spacing: -0.02em; color: var(--accent-ink); }
.finding .fl { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }

/* ---- methodology disclosure ---- */
details.meth { margin-top: 16px; border-top: 1px solid var(--grid); padding-top: 10px; }
details.meth > summary {
  color: var(--accent-ink); font-size: 12.5px; cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
}
details.meth > summary::-webkit-details-marker { display: none; }
details.meth > summary::before {
  content: "i"; width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 1px solid currentColor; font-size: 10px; font-weight: 700; font-style: italic;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
details.meth > summary:hover { text-decoration: underline; }
.methbody { max-width: 74ch; }
.methbody .methq { font-size: 12.5px; font-weight: 650; margin: 12px 0 2px; color: var(--ink-2); }
.methbody .metha { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.tzflag {
  font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px;
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}

/* ---- filter row ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.filters .flabel { color: var(--muted); font-size: 13px; margin-right: 2px; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
  font-weight: 600;
}

/* ---- top lists ---- */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Grid items default to min-width:auto, so one wide table inside a column
   stretches the whole track — and, on a phone, the page with it. */
.cols2 > * { min-width: 0; }
@media (max-width: 760px) { .cols2 { grid-template-columns: 1fr; } }
.ranklist { display: flex; flex-direction: column; gap: 2px; }
.rankrow {
  display: grid;
  grid-template-columns: 22px 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 8px;
  cursor: pointer;
  border: 0; background: none; text-align: left; color: inherit; font: inherit;
  width: 100%;
}
.rankrow:hover { background: var(--series-1-wash); }
.rankrow .rk { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.rankrow .meta { min-width: 0; }
.rankrow .t1 { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rankrow .t2 { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rankrow .n { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); }
.rankrow .bar { grid-column: 3 / 5; height: 6px; border-radius: 0 3px 3px 0; background: var(--series-1); margin-top: 2px; }

/* The full chart runs to four-figure places and spells out "plays", so both
   end columns need more room than the top-15 lists do. */
.ranklist.full .rankrow { grid-template-columns: 46px 40px 1fr auto; }
.pager {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grid);
}
.pager .pagepick { color: var(--muted); font-size: 13px; }
.pager .pageinfo { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.pager .chip:disabled { opacity: 0.4; cursor: default; }
.pager .chip:disabled:hover { color: var(--ink-2); }
@media (max-width: 620px) {
  .pager .pageinfo { margin-left: 0; flex-basis: 100%; }
  /* Four-figure places and the word "plays" between them leave a phone about
     a hundred pixels of song title. The title wins. */
  .ranklist.full .rankrow { grid-template-columns: 40px 34px 1fr auto; gap: 8px; }
  .ranklist.full .cover { width: 34px; height: 34px; }
  .rankrow .nunit { display: none; }
}
.cover {
  width: 40px; height: 40px; border-radius: 6px; object-fit: cover;
  background: var(--grid); display: block;
}
.cover.ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--seq-100), var(--seq-200));
  color: var(--seq-700);
}

/* ---- recently played strip ---- */
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.play-tile { flex: 0 0 108px; cursor: pointer; border: 0; background: none; padding: 0; text-align: left; color: inherit; font: inherit; }
.play-tile .cover { width: 108px; height: 108px; border-radius: 8px; }
.play-tile .cover.ph { font-size: 30px; }
.play-tile .t1 { font-size: 12.5px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-tile .t2 { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-tile .t3 { font-size: 11.5px; color: var(--muted); }
.play-tile .t4 { font-size: 11.5px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

/* ---- charts ---- */
.chart-svg { display: block; width: 100%; height: auto; }
.chart-svg text { font: 11.5px system-ui, -apple-system, "Segoe UI", sans-serif; fill: var(--muted); }
.chart-svg .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart-svg .axis-line { stroke: var(--baseline); stroke-width: 1; }
.chart-wrap { position: relative; }
/* Fixed to the viewport, and a permanent child of <body>. It used to be
   re-parented into whichever .chart-wrap was hovered, which meant the next
   replaceChildren() on that container deleted it and killed every tooltip on
   the page until a reload. */
.tooltip {
  position: fixed; pointer-events: none; z-index: 60;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: none; min-width: 130px;
}
.tooltip .tv { font-weight: 650; font-size: 14px; }
.tooltip .tl { color: var(--ink-2); }
/* extra detail lines — the clock times behind a day's count, or the day-by-day
   split behind a weekly total */
.tooltip .tx { color: var(--muted); font-size: 12px; margin-top: 3px;
  font-variant-numeric: tabular-nums; max-width: 260px; }

/* one-line instruction under a chart that answers questions on hover/drag */
.hintline { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* readout for the day range selected on the scatter chart. It stays put after
   the pointer leaves, so the total can be read, copied, or argued with. */
.rangebar {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin-top: 10px; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--series-1-wash); font-size: 12.5px;
}
.rangebar[hidden] { display: none; }
.rangebar .rb-n { font-size: 15px; font-weight: 650; color: var(--accent-ink);
  font-variant-numeric: tabular-nums; }
.rangebar .rb-w { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rangebar .rb-date {
  font: inherit; font-variant-numeric: tabular-nums; color: var(--ink);
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 6px;
}
.rangebar .rb-date:focus { outline: none; border-color: var(--accent-ink); }
.rangebar .rb-days { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.rangebar .rb-d { color: var(--muted); font-size: 11.5px; padding: 1px 6px;
  border-radius: 999px; background: var(--surface-1); border: 1px solid var(--border);
  font-variant-numeric: tabular-nums; }
.rangebar .rb-d.hit { color: var(--accent-ink); border-color: var(--accent-ink); font-weight: 600; }
.rangebar .rb-x { margin-left: auto; border: none; background: none; padding: 0;
  color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.rangebar .rb-x:hover { color: var(--ink); }

/* the scatter chart is dragged across to total a stretch of days */
.chart-svg.pickable { cursor: crosshair; touch-action: pan-y; }

/* heatmap */
.heat-scale { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.heat-scale .swatches { display: flex; height: 10px; border-radius: 3px; overflow: hidden; }
.heat-scale .swatches i { width: 22px; }

/* key for the shaded logger-downtime bands under a time-series chart */
.bandkey { display: flex; align-items: center; gap: 6px; margin-top: 10px;
  color: var(--muted); font-size: 12px; }
.bandkey i { width: 22px; height: 11px; border-radius: 2px; background: var(--gap-band);
  box-shadow: inset 0 0 0 0.5px var(--border); flex: none; }

details.tablewrap { margin-top: 12px; }
details.tablewrap summary { color: var(--muted); font-size: 13px; cursor: pointer; }
table.tbl { border-collapse: collapse; margin-top: 10px; font-size: 13px; width: 100%; max-width: 560px; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 10px 4px 0; border-bottom: 1px solid var(--grid); }
table.tbl td { padding: 4px 10px 4px 0; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }

/* ---- wrapped ---- */
.wrapped-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 6px; }
.wrapped-controls .group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* The class rule outranks the UA [hidden] rule, so say it here or the month
   pickers stay on screen while the presets are selected. */
.wrapped-controls .group[hidden] { display: none; }
.daybtn {
  width: 34px; height: 30px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface-1); color: var(--ink-2); font-size: 12.5px; cursor: pointer;
}
.daybtn[aria-pressed="true"] { background: var(--series-1); border-color: var(--series-1); color: #fff; font-weight: 600; }
/* The share button sits at the far end of the dials it copies. On a narrow
   screen the row wraps and it lands on its own line, still right-aligned. */
.wrapped-controls .sharegroup { margin-left: auto; }
.sharebtn {
  border-radius: 7px; border: 1px solid var(--border); background: var(--surface-1);
  color: var(--ink-2); font: inherit; font-size: 13px; padding: 6px 11px; cursor: pointer;
}
.sharebtn:hover { border-color: var(--series-1); color: var(--accent-ink); }
.sharebtn.copied { border-color: var(--series-1); background: var(--series-1-wash); color: var(--accent-ink); }
select, input[type="date"] {
  background: var(--surface-1); color: var(--ink); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 13.5px;
}
.wrapped-summary { display: flex; gap: 26px; flex-wrap: wrap; margin: 14px 0 6px; }
.wrapped-summary .big { font-size: 34px; font-weight: 650; }
.wrapped-summary .cap { color: var(--ink-2); font-size: 13px; }

/* ---- day view ---- */
.dayrow { display: grid; grid-template-columns: 58px 34px 1fr; gap: 10px; align-items: center; padding: 3px 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; width: 100%; cursor: pointer; border-radius: 6px; }
.dayrow:hover { background: var(--series-1-wash); }
.dayrow time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dayrow .cover { width: 34px; height: 34px; border-radius: 5px; }
.dayrow .meta { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.dayrow .meta .a { color: var(--ink-2); }
#dayList { max-height: 480px; overflow-y: auto; }

/* ---- rotation tiers ---- */
details.tier { border-top: 1px solid var(--grid); padding: 2px 0; }
details.tier:first-of-type { border-top: 0; }
details.tier > summary {
  position: relative; display: grid; align-items: baseline; cursor: pointer;
  grid-template-columns: 92px 1fr 90px 116px; gap: 10px; padding: 9px 2px 11px;
  list-style: none;
}
details.tier > summary::-webkit-details-marker { display: none; }
details.tier > summary:hover { color: var(--accent-ink); }
.tier .tname { font-weight: 650; font-size: 14px; }
.tier .tblurb { color: var(--muted); font-size: 12.5px; }
.tier .tsongs { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.tier .tshare { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.tier .tbar {
  position: absolute; left: 0; bottom: 2px; height: 4px; border-radius: 2px;
  background: var(--series-1); opacity: 0.85;
}
.tier > .ranklist { padding: 4px 0 14px; }
#rotationNote { margin-top: 16px; }
@media (max-width: 620px) {
  details.tier > summary { grid-template-columns: 1fr auto; }
  .tier .tblurb { display: none; }
}

/* ---- dropped-from-rotation + explorer tables ---- */
table.tbl td.num, table.tbl th.num { text-align: right; }
tr.clickrow { cursor: pointer; }
tr.clickrow:hover td { background: var(--series-1-wash); }
.droptable .dt1 { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.droptable .dt2 { color: var(--ink-2); font-size: 12px; }
/* Both tables keep their columns on one line, so each scrolls inside itself
   rather than pushing the page sideways on a phone. */
.droptable { overflow-x: auto; }
.droptable table.tbl { max-width: none; font-size: 12.5px; }
.droptable th, .droptable td:not(:first-child) { white-space: nowrap; }
.droptable td:first-child { width: 99%; }
.droptable .dt1, .droptable .dt2 { max-width: 190px; }

.explorer { overflow-x: auto; }
table.tbl.exp { max-width: none; font-size: 13px; }
table.tbl.exp th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.tbl.exp th.sortable:hover { color: var(--ink); }
table.tbl.exp th.sorted { color: var(--accent-ink); }
table.tbl.exp td { white-space: nowrap; }
table.tbl.exp td.namecell { display: flex; align-items: center; gap: 8px; max-width: 280px; }
table.tbl.exp td.namecell span { overflow: hidden; text-overflow: ellipsis; }
.cover.sm { width: 24px; height: 24px; border-radius: 4px; flex: none; font-size: 11px; }
.badge {
  display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 11.5px;
  font-weight: 600; border: 1px solid currentColor; white-space: nowrap;
}
.badge.s-in { color: var(--accent-ink); }
.badge.s-fading { color: var(--series-2); }
.badge.s-recurrent { color: var(--ink-2); }
.badge.s-dormant { color: var(--muted); }

/* ---- records ---- */
/* show roster under the silence grid, and the same rows inside wrapped */
.shows { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px;
  margin-top: 14px; }
.showcard { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  border-left-width: 3px; border-left-style: solid; min-width: 0; }
.showcard .sname { font-size: 14px; font-weight: 650; }
.showcard .sslot { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.showcard .shrs { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-top: 8px;
  font-variant-numeric: tabular-nums; }
.showcard .syrs { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 12px; }
.record {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
}
div.record { cursor: default; }
.record:hover { border-color: var(--accent-ink); }
.record .rlabel { color: var(--muted); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; }
.record .rvalue { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.record .rsub { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

/* ---- day view extras ---- */
.daynav .chip:disabled { opacity: 0.4; cursor: default; }
.daysummary .sub { color: var(--ink-2); font-size: 13px; margin: 0 0 10px; }
.dayrow .flag {
  font-size: 11.5px; color: var(--accent-ink); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 7px; margin-left: 8px; white-space: nowrap;
}
.dayrow .flag.hot { color: var(--series-2); border-color: currentColor; }
.dayrow .flag.dim { color: var(--muted); }
.dayrow .flag.new { color: var(--series-3); border-color: currentColor; font-weight: 600; }
.dayrow .flag.back { color: var(--series-2); border-color: var(--border); }
.daygap {
  color: var(--muted); font-size: 12px; text-align: center; padding: 7px 0; margin: 3px 0;
  border-top: 1px dashed var(--baseline); border-bottom: 1px dashed var(--baseline);
}

/* ---- recurrence bands ---- */
.recurbands {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px; margin-top: 14px;
}
.bandcard {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px;
}
.bandcard .bname { font-size: 13px; font-weight: 650; }
.bandcard .brange { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bandcard .bsongs {
  font-size: 20px; font-weight: 650; letter-spacing: -0.02em; margin-top: 6px;
  color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
.bandcard .bblurb { font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.bandcard .bbar {
  position: absolute; left: 0; bottom: 0; height: 3px;
  background: var(--series-1); opacity: 0.5;
}

/* ---- playlist turnover ---- */
.turnover {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px;
}
.tocell {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px;
}
.tocell .tov {
  font-size: 26px; font-weight: 650; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tocell .tol { font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.tocell .tobar { position: absolute; left: 0; bottom: 0; height: 3px; opacity: 0.65; }
.tocell.in .tov { color: var(--series-1); }
.tocell.in .tobar { background: var(--series-1); }
.tocell.out .tov { color: var(--series-2); }
.tocell.out .tobar { background: var(--series-2); }
.tocell.same .tov { color: var(--ink-2); }
.tocell.same .tobar { background: var(--baseline); }
#turnoverCard .sub:last-child { margin: 12px 0 0; }

/* ---- your radio vs everyone else's ---- */
.versus { margin: 4px 0 14px; align-items: stretch; }
.card.vs {
  text-align: left; font: inherit; cursor: pointer; display: flex;
  flex-direction: column; gap: 4px; padding: 14px 16px;
}
.card.vs.neutral { cursor: default; }
.card.vs:not(.neutral):hover { border-color: var(--accent-ink); }
.vseyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.vsrow { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.vsrow .cover { width: 40px; height: 40px; flex: none; }
.vstitle { font-size: 14px; font-weight: 600; line-height: 1.25; }
.vsartist { font-size: 12px; color: var(--muted); }
.vsbig { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; color: var(--accent-ink); }
.card.vs.down .vsbig { color: var(--series-2); }
.vsnote { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

/* ---- use the data ---- */
.dl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dlrow {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-decoration: none;
  color: inherit; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
.dlrow:hover { background: var(--series-1-wash); border-color: var(--accent-ink); }
.dlrow .dlname { font-weight: 650; font-size: 14px; color: var(--accent-ink); }
.dlrow .dlmeta { font-size: 12.5px; color: var(--ink-2); text-align: right;
  font-variant-numeric: tabular-nums; }
.dlrow .dlnote { grid-column: 1 / 3; font-size: 12px; color: var(--muted); }
table.tbl.dict th { width: 132px; vertical-align: top; font-family: ui-monospace, monospace;
  font-size: 12px; color: var(--ink-2); font-weight: 500; }
table.tbl.dict td { color: var(--muted); font-size: 12.5px; }
.statrow.flat { background: none; border: 0; padding: 0; }

/* ---- detail pages ---- */
.page { padding-top: 34px; }
.badgeline { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; flex-wrap: wrap; }
.badgeline .badgenote { color: var(--muted); font-size: 12.5px; }
.card.windows .statrow { margin-bottom: 8px; }
.card.windows .sub { color: var(--ink-2); margin: 0; }
.wraptitle { margin-top: 18px; }
.backlink { color: var(--accent-ink); font-size: 13px; text-decoration: none; }
.backlink:hover { text-decoration: underline; }
.pagehead { display: flex; gap: 20px; align-items: center; margin: 16px 0 22px; }
.pagehead .cover.xl { width: 132px; height: 132px; border-radius: 10px; }
.pagehead .cover.xl.ph { font-size: 44px; }
.pagehead h1 { font-size: 27px; margin: 2px 0 6px; letter-spacing: -0.02em; line-height: 1.15; }
.pagehead .eyebrow {
  margin: 0; color: var(--muted); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.pagehead .sub { color: var(--ink-2); font-size: 14px; margin: 0; }
.artistlink {
  border: 0; background: none; padding: 0; font: inherit; font-size: 16px;
  color: var(--accent-ink); cursor: pointer; text-align: left;
}
.artistlink:hover { text-decoration: underline; }

/* ---- YouTube ----
   The play control sits on the cover as well as under the title, because the
   cover is where a hand goes first. The badge stays visible rather than
   appearing on hover: half the traffic is on a phone, where there is no hover
   and an invisible control is no control. */
.coverplay { position: relative; display: block; text-decoration: none; flex: none; border-radius: 10px; }
.coverplay .playbadge {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  /* Sits on album art of any colour, so this ignores the theme tokens and
     carries its own contrast. */
  background: rgba(12, 12, 12, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 2px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: background 120ms ease, transform 120ms ease;
}
.coverplay .playbadge svg { width: 22px; height: 22px; margin-left: 2px; }
.coverplay:hover .playbadge, .coverplay:focus-visible .playbadge {
  background: rgba(12, 12, 12, 0.82); transform: scale(1.06);
}
.coverplay:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.ytbtn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 7px 14px 7px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-1); color: var(--accent-ink);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: border-color 120ms ease, color 120ms ease;
}
.ytbtn svg { width: 15px; height: 15px; flex: none; }
.ytbtn:hover { border-color: var(--accent-ink); }
/* A search, not a match — it should not look like it knows the answer. */
.ytbtn.guess { color: var(--ink-2); font-weight: 500; }
.ytbtn.guess:hover { border-color: var(--baseline); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .coverplay .playbadge, .ytbtn { transition: none; }
  .coverplay:hover .playbadge { transform: none; }
}
@media (max-width: 620px) {
  .pagehead { gap: 14px; }
  .pagehead .cover.xl { width: 92px; height: 92px; }
  .pagehead h1 { font-size: 21px; }
}
.statrow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px 20px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 16px;
}
.statrow .v { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.statrow .l { color: var(--muted); font-size: 12px; margin-top: 1px; }
.page .card { margin-bottom: 16px; }
.page .cols2 .card { margin-bottom: 0; }
.page .cols2 { margin-bottom: 16px; }
.playlog { max-height: 340px; overflow-y: auto; font-size: 13px; }
.logrow {
  display: grid; grid-template-columns: 128px 1fr auto; gap: 10px; align-items: baseline;
  padding: 3px 0; border-bottom: 1px solid var(--grid);
}
.logrow time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.logrow .lt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logrow .la { color: var(--ink-2); font-size: 12.5px; }

footer.site { margin-top: 60px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--grid); padding-top: 16px; }
footer.site a { color: var(--accent-ink); }
.gaplist { margin: 6px 0 0; padding-left: 18px; }
