/* radiodani: mnemo's colors (near-black, cyan, cool white) on an old radio dial: a cyan
   needle, white labels. The only other loud colors are the covers' own. */

:root {
  --night: #0b1113;
  --night-2: #101a1d;
  --night-3: #1a272b;
  --paper: #f2f7f6;
  --paper-ink: #06201a;
  --onair: #5ce8c9;
  --dim: #92a5a3;
  --line: rgba(242, 247, 246, .12);
  --pink: #ff6f66;
  --sky: #7fd4c1;
  --yolk: #e8c95e;
  --tile: 64px;
  --gap: 6px;
  --name-w: 176px;
  --side: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

@media (max-width: 700px) {
  :root { --tile: 54px; --gap: 5px; --name-w: 40px; }
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 16px/1.5 Rubik, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- header ------------------------------------------------------------------------------- */

header.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
  padding: 18px var(--side) 14px;
}
.brand { text-decoration: none; }
.sections { display: flex; gap: 22px; font-weight: 600; }
.sections a { text-decoration: none; color: var(--dim); border-bottom: 2px solid transparent; padding-bottom: 2px; }
.sections a:hover { color: var(--paper); }
.sections a[aria-current] { color: var(--paper); border-color: var(--onair); }
.switches { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.switches span { display: flex; gap: 2px; }
.switches a { text-decoration: none; color: var(--dim); padding: 3px 9px; border-radius: 2px; }
.switches a:hover { color: var(--paper); }
.switches a[aria-current] { color: var(--paper-ink); background: var(--paper); }

/* --- letters cut out of papers -------------------------------------------------------------- */

.ransom { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px 2px; line-height: 1; }
.ransom .gap { width: .35em; }
.ransom .cut {
  display: inline-block; padding: .1em .14em .04em; font-size: 26px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.ransom.big .cut { font-size: clamp(30px, 4.4vw, 54px); }
.f0 { font-family: 'Abril Fatface', Rubik, serif; }
.f1 { font-family: 'Bungee', Rubik, sans-serif; font-size: .9em; }
.f2 { font-family: 'Special Elite', Rubik, monospace; }
.f3 { font-family: 'Rubik Mono One', Rubik, sans-serif; font-size: .85em; }
.f4 { font-family: 'Playfair Display', Rubik, serif; font-weight: 900; font-style: italic; }
.f5 { font-family: 'Alfa Slab One', Rubik, serif; }
.f6 { font-family: 'Bebas Neue', Rubik, sans-serif; font-size: 1.12em; }
.f7 { font-family: 'Archivo Black', Rubik, sans-serif; }
.f8 { font-family: 'Courier Prime', Rubik, monospace; font-weight: 700; }
.f9 { font-family: 'DM Serif Display', Rubik, serif; }
.f10 { font-family: 'Black Ops One', Rubik, sans-serif; }
.b0 { background: var(--paper); color: var(--paper-ink); }
.b1 { background: var(--onair); color: var(--paper-ink); }
.b2 { background: var(--night-3); color: var(--paper); }
.b3 { background: var(--yolk); color: var(--paper-ink); }
.b4 { background: var(--sky); color: var(--paper-ink); }
.b5 { background: var(--pink); color: var(--paper-ink); }
.r0 { transform: rotate(-4deg); }
.r1 { transform: rotate(3deg); }
.r2 { transform: rotate(-1.5deg) translateY(1px); }
.r3 { transform: rotate(5deg) translateY(2px); }
.r4 { transform: rotate(-3deg) translateY(-2px); }
.r5 { transform: rotate(1deg); }
.r6 { transform: rotate(-5deg) translateY(1px); }

/* --- the dial ------------------------------------------------------------------------------- */

.eter-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px;
  padding: 6px var(--side) 14px;
}
.live { margin: 0; font-weight: 600; }
.hint { margin: 0; color: var(--dim); font-size: 14px; }
.onair {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--onair); box-shadow: 0 0 0 4px rgba(92, 232, 201, .2); vertical-align: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .onair { animation: onair 2.4s ease-in-out infinite; }
}
@keyframes onair { 50% { box-shadow: 0 0 0 7px rgba(92, 232, 201, .05); } }

.skala {
  position: relative; display: grid; gap: 12px; padding: 20px 0;
  background: linear-gradient(var(--night-2), var(--night) 70%);
  border-block: 1px solid var(--line);
  touch-action: pan-y; user-select: none; cursor: grab;
}
.skala.turning { cursor: grabbing; }
.skala:focus-visible { outline-offset: -3px; }
/* the scale's ticks, top and bottom, like the printed glass */
.skala::before, .skala::after {
  content: ""; position: absolute; left: var(--name-w); right: 0; height: 7px;
  background: repeating-linear-gradient(90deg, rgba(242, 247, 246, .25) 0 1px, transparent 1px 14px);
}
.skala::before { top: 0; }
.skala::after { bottom: 0; }
.needle {
  position: absolute; top: 0; bottom: 0; z-index: 6; pointer-events: none;
  left: calc(var(--name-w) + (100% - var(--name-w)) / 2); width: 2px; margin-left: -1px;
  background: var(--onair); box-shadow: 0 0 14px rgba(92, 232, 201, .6);
}

.band {
  display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr); align-items: center;
  height: calc(var(--tile) + 6px);
}
.band-name {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  padding-left: var(--side); font-size: 14px; white-space: nowrap;
}
.band-title { overflow: hidden; text-overflow: ellipsis; }
.band-count { color: var(--dim); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .band-name { padding-left: 10px; }
  .band-title, .band-count { display: none; }
}
.track-window { position: relative; height: 100%; display: flex; align-items: center; overflow: clip visible; }
.track { display: flex; gap: var(--gap); will-change: transform; }
.skala:not(.turning) .track { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }

.tile {
  position: relative; flex: 0 0 var(--tile); width: var(--tile); height: var(--tile);
  padding: 0; border: 0; background: var(--night-3); cursor: pointer;
  transition: transform .18s ease;
}
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile:hover { transform: scale(1.35); z-index: 3; }
.tile.tuned { transform: scale(1.22); z-index: 2; box-shadow: 0 0 0 2px var(--paper); }
.tile.tuned:hover { transform: scale(1.4); }
.tile.playing::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--onair); box-shadow: 0 0 0 3px var(--night);
}
.tile-paper {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 4px;
  background: #15211f; color: var(--paper); overflow: hidden;
  font: 700 10px/1.1 Rubik, sans-serif; text-align: center; overflow-wrap: anywhere;
}
.tile-paper.quiet { background: var(--night-2); color: var(--dim); font-weight: 500; }
.turned { animation: turned .55s ease; }
@keyframes turned { from { transform: perspective(300px) rotateY(90deg); } }

.tuned-label {
  position: absolute; z-index: 7; top: 50%; left: calc(50% + var(--tile) * .78);
  transform: translateY(-50%); margin: 0; max-width: min(44%, 420px);
  padding: 5px 10px 6px; background: var(--paper); color: var(--paper-ink);
  font-size: 13px; line-height: 1.25; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); pointer-events: none;
}
.tuned-station { display: block; font-size: 11px; color: #3d5a55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuned-song { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .tuned-label { display: none; } }

.year {
  display: inline-block; padding: 0 5px; border-radius: 2px;
  background: var(--yolk); color: var(--paper-ink); font-weight: 800; font-size: .9em;
}

.knob {
  display: flex; align-items: center; gap: 18px;
  padding: 14px var(--side) 0 calc(var(--name-w) + 0px);
}
@media (max-width: 700px) { .knob { padding-left: var(--side); } }
.scan {
  flex: none; padding: 6px 18px; border: 1.5px solid var(--paper); border-radius: 999px;
  background: transparent; color: var(--paper); font-weight: 600; font-size: 14px; cursor: pointer;
}
.scan[aria-pressed="true"] { background: var(--onair); border-color: var(--onair); color: var(--paper-ink); }
#tune { flex: 1; appearance: none; height: 28px; background: transparent; cursor: pointer; }
#tune::-webkit-slider-runnable-track {
  height: 10px; background: repeating-linear-gradient(90deg, var(--dim) 0 1px, transparent 1px 10px);
  opacity: .7;
}
#tune::-moz-range-track { height: 10px; background: repeating-linear-gradient(90deg, var(--dim) 0 1px, transparent 1px 10px); }
#tune::-webkit-slider-thumb { appearance: none; width: 4px; height: 26px; margin-top: -8px; background: var(--onair); border: 0; }
#tune::-moz-range-thumb { width: 4px; height: 26px; background: var(--onair); border: 0; border-radius: 0; }

/* --- most played, under the dial ---------------------------------------------------------- */

.teaser { padding: 48px var(--side) 140px; }
.teaser-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 22px; }
.teaser-head h2 { margin: 0; font: 800 clamp(24px, 3vw, 32px)/1.1 Rubik, sans-serif; }
.teaser-head a { color: var(--dim); font-weight: 600; }
.teaser-head a:hover { color: var(--paper); }
.teaser-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 24px;
}
.teaser-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; text-decoration: none; }
.teaser-item img, .teaser-item .paper-cover { grid-row: 1; grid-column: 2; width: 100%; aspect-ratio: 1; object-fit: cover; }
.teaser-item .paper-cover { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.rank-cut {
  grid-row: 1; grid-column: 1; z-index: 1; margin-right: -.12em;
  font: 900 120px/.74 Rubik, sans-serif; letter-spacing: -.06em; color: var(--paper);
}
/* the number is cut out of the cover it stands next to */
.rank-cut[style] {
  background: var(--cover) center / cover; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-stroke: 2px var(--paper);
}
.teaser-text { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; color: var(--dim); }
.teaser-text b { display: block; color: var(--paper); font-size: 16px; font-weight: 600; }

.paper-cover {
  display: flex; align-items: center; justify-content: center; padding: 8%;
  background: radial-gradient(rgba(6, 32, 26, .12) 1px, transparent 1.2px) 0 0 / 5px 5px, var(--paper);
  color: var(--paper-ink); font-weight: 800; text-align: center; overflow: hidden;
}

/* --- the chart ---------------------------------------------------------------------------- */

.chart-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding: 10px var(--side) 6px;
}
.chart-head h1 { margin: 0; font: 900 clamp(44px, 7vw, 88px)/.95 Rubik, sans-serif; letter-spacing: -.02em; }
.periods, .countries { display: flex; flex-wrap: wrap; gap: 6px; }
.periods a, .countries a {
  padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.periods a:hover, .countries a:hover { border-color: var(--paper); }
.periods a[aria-current], .countries a[aria-current] { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.note { flex-basis: 100%; margin: 0; max-width: 72ch; color: var(--dim); font-size: 14px; }
.empty { padding: 40px var(--side); color: var(--dim); }

.podium {
  list-style: none; margin: 0; display: grid; gap: 22px;
  padding: 22px var(--side) 8px;
}
/* the ten: all the same size, one under the other; number, cover, then who played it */
.poster {
  display: grid; grid-template-columns: 200px 200px minmax(0, 1fr); grid-template-rows: auto 1fr;
  column-gap: 26px; background: var(--night-2);
}
.poster-num, .poster > .poster-img { grid-row: 1 / span 2; align-self: start; }
.poster-num { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* patterns in the cover's colors, like the countdown's numbers, taking turns */
.pattern-0 .poster-num { background: repeating-linear-gradient(-45deg, var(--c1) 0 18px, var(--c3) 18px 36px); }
.pattern-1 .poster-num { background: radial-gradient(circle, var(--c1) 0 8px, transparent 9px) 0 0 / 28px 28px, var(--c3); }
.pattern-2 .poster-num { background: conic-gradient(var(--c1) 25%, var(--c3) 0 50%, var(--c1) 0 75%, var(--c3) 0) 0 0 / 48px 48px; }
.num-cut {
  font: 900 150px/.8 Rubik, sans-serif; letter-spacing: -.08em; padding-right: .06em;
  background: var(--cover, var(--c2)) center / cover; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-stroke: 3px var(--paper);
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .28));
}
.poster:nth-child(n+10) .num-cut { font-size: 110px; }
.poster:nth-child(n+100) .num-cut { font-size: 78px; }
.poster-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.poster-info { padding: 18px 20px 4px 0; min-width: 0; }
.poster-stations { padding: 0 20px 18px 0; min-width: 0; }
.poster-stations .stats { margin: 6px 0 8px; }
.on-air { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.on-air li {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; white-space: nowrap;
}
.on-air .flag { margin: 0; }
.on-air b { padding: 1px 7px; border-radius: 999px; background: var(--paper); color: var(--paper-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) {
  .poster { grid-template-columns: 1fr 1fr; column-gap: 0; }
  .poster-num, .poster > .poster-img { grid-row: auto; }
  .poster-info, .poster-stations { grid-column: 1 / -1; padding-left: 16px; padding-right: 16px; }
  .num-cut { font-size: 34vw; }
  .poster:nth-child(n+10) .num-cut { font-size: 24vw; }
  .poster:nth-child(n+100) .num-cut { font-size: 17vw; }
}
.poster-rank { margin: 0 0 8px; }
.poster-title { margin: 0 0 8px; font: 800 clamp(22px, 2.4vw, 30px)/1.15 Rubik, sans-serif; overflow-wrap: anywhere; }
.poster-artist { margin: 0 0 6px; font-size: 18px; }
.stats { margin: 0 0 14px; color: var(--dim); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.actions .preview, .yt {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--paper); background: transparent; color: var(--paper);
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
}
.actions .preview { background: var(--paper); color: var(--paper-ink); }
.yt:hover, .actions .preview:hover { border-color: var(--yolk); }
.poster-img.paper-cover { font-size: clamp(22px, 3vw, 40px); line-height: 1.15; overflow-wrap: anywhere; }

.move { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.move.up { color: var(--onair); }
.move.down { color: var(--pink); }
.move.same { color: var(--dim); }
.move.new { padding: 1px 6px; background: var(--yolk); color: var(--paper-ink); }

.chart { list-style: none; margin: 18px 0 0; padding: 0 var(--side) 140px; }
.row {
  display: grid; grid-template-columns: 3ch 5ch 56px minmax(0, 1fr) 5ch auto auto;
  align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line);
}
.row-rank { font: 800 22px Rubik, sans-serif; text-align: right; font-variant-numeric: tabular-nums; }
.row-cover { width: 56px; height: 56px; padding: 0; border: 0; background: none; cursor: pointer; }
.row-cover:not(button) { cursor: default; }
.thumb { display: block; width: 56px; height: 56px; object-fit: cover; }
.thumb.paper-cover { padding: 4px; }
.thumb.paper-cover { font-size: 22px; }
.row-text { min-width: 0; }
.row-text b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-text span { color: var(--dim); }
.row-year { color: var(--dim); font-variant-numeric: tabular-nums; }
.row-stats {
  padding: 4px 8px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--dim); font: inherit; font-size: 14px; white-space: nowrap;
}
.row-stats:hover, .row-stats[aria-expanded="true"] { color: var(--paper); background: var(--night-2); }
.row-stats[aria-expanded="true"] .caret { display: inline-block; transform: rotate(180deg); }
.row-stations { grid-column: 3 / -1; padding: 2px 0 8px; }
.row-flags { margin-left: 6px; }
.row .yt { padding: 4px 10px; font-size: 13px; }
@media (max-width: 700px) {
  .row { grid-template-columns: 2.6ch 48px minmax(0, 1fr) auto; gap: 10px; }
  .row .move, .row-year { display: none; }
  .row-stats { grid-column: 2 / -1; justify-self: start; padding-left: 0; }
  .row-flags { display: none; }
  .row-stations { grid-column: 1 / -1; }
  .row-cover, .thumb { width: 48px; height: 48px; }
}

/* --- what plays ----------------------------------------------------------------------------- */

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; padding: 10px var(--side);
  background: var(--paper); color: var(--paper-ink); box-shadow: 0 -2px 0 rgba(0, 0, 0, .3);
}
.player[hidden] { display: none; }
.player-cover { width: 44px; height: 44px; object-fit: cover; }
.player-cover[hidden] { display: none; }
.player-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-label { color: #3d5a55; font-size: 13px; }
#player-stop {
  padding: 8px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--paper-ink); color: var(--paper); font-weight: 600; font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .skala:not(.turning) .track, .tile { transition: none; }
}

.flag { display: inline-block; width: 1.4em; height: 1.05em; object-fit: cover; vertical-align: -.15em; border-radius: 1px; }
.band-name .flag { flex: none; align-self: center; }
.stats .flag, .row-flags .flag { margin-left: 4px; }
.countries a { display: inline-flex; align-items: center; gap: 7px; }

/* --- a station's page ------------------------------------------------------------------------ */

.on-air a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.on-air li:has(a:hover) { border-color: var(--paper); }
a.tuned-station { text-decoration: none; }
a.tuned-station:hover { text-decoration: underline; }

.st-hero {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 28px 40px; align-items: end;
  padding: 18px var(--side) 30px;
}
.st-country { margin: 0 0 6px; color: var(--dim); font-weight: 600; }
.st-tech { margin-left: 10px; font-weight: 400; font-size: 13px; }
/* the name cut out of the cover of the song it plays most, like the numbers on the chart */
.st-name {
  margin: 0 0 14px; font: 900 clamp(48px, 9vw, 132px)/.88 Rubik, sans-serif; letter-spacing: -.035em;
  overflow-wrap: anywhere; color: var(--paper);
}
.st-hero[style] .st-name {
  background: var(--cover) center 30% / cover; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-stroke: 2px var(--paper);
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .35));
}
.st-now { margin: 0 0 14px; font-size: 17px; }
.st-now .onair { display: inline-block; vertical-align: 1px; }
.st-mirrors, .st-heard { margin: 12px 0 0; color: var(--dim); font-size: 14px; max-width: 70ch; }
.listen { font-size: 16px; padding: 9px 18px; }

.st-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: 0; }
.st-figures div { padding: 14px 16px; background: var(--night-2); }
.st-figures div:first-child { grid-column: 1 / -1; background: var(--onair); color: var(--paper-ink); }
.st-figures dt { font-size: 13px; color: var(--dim); }
.st-figures div:first-child dt { color: var(--paper-ink); }
.st-figures dd { margin: 2px 0 0; font: 800 40px/1 Rubik, sans-serif; }
.st-figures div:first-child dd { font-size: 64px; }
.st-figures small { font-size: .5em; margin-left: 2px; }
.st-figures div:first-child { order: -1; }
.st-figures dt { order: 2; }
.st-figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

.st-block { padding: 26px var(--side) 6px; min-width: 0; }
.st-block h2 { margin: 0 0 4px; font: 800 28px/1.1 Rubik, sans-serif; }
.st-note { margin: 0 0 14px; color: var(--dim); font-size: 14px; }
.st-block h2 + :not(.st-note) { margin-top: 14px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }

/* most played: a wall of covers, the top three big */
.mosaic {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-flow: dense; gap: 4px;
}
.mosaic .m1 { grid-column: span 3; grid-row: span 3; }
.mosaic .m2, .mosaic .m3 { grid-column: span 2; grid-row: span 2; }
.m-tile { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--night-3); color: var(--paper); text-align: left; }
button.m-tile { cursor: pointer; }
.m-img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.m-img.paper-cover, .r-img.paper-cover { display: flex; align-items: center; justify-content: center; font: 900 40px Rubik, sans-serif; }
.m-plays {
  position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--paper); color: var(--paper-ink); font-weight: 700; font-size: 13px;
}
.m1 .m-plays { font-size: 22px; padding: 2px 12px; top: 10px; left: 10px; }
.m-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px;
  background: linear-gradient(transparent, rgba(6, 12, 13, .92)); font-size: 14px; line-height: 1.25;
}
.m-caption b { display: block; font-size: 18px; }
.m1 .m-caption b { font-size: 26px; }
.m-tile:hover { outline: 2px solid var(--paper); outline-offset: -2px; }

/* bars: one series, cyan; the value at the tip */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); align-items: center; gap: 12px; }
.bar-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
a.bar-label { color: var(--paper); text-decoration: none; display: flex; align-items: center; gap: 6px; }
a.bar-label:hover { text-decoration: underline; }
.bar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar { display: block; width: var(--w); min-width: 3px; max-width: calc(100% - 3ch); height: 18px; border-radius: 0 4px 4px 0; background: var(--onair); }
.bar-value { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }

/* columns: hours of the day, decades */
.columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; height: 180px; }
.decades { height: 150px; max-width: 520px; }
.col { position: relative; display: flex; flex-direction: column; min-width: 0; }
.col-plot { position: relative; flex: 1; min-height: 0; }
.col-bar {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  height: var(--h); min-height: 2px; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--onair);
}
.col.none .col-bar { background: var(--line); height: 2px; }
.col-value { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 2px); text-align: center; color: var(--dim); font-size: 12px; }
.col-label { padding-top: 6px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; text-align: center; min-height: 1.4em; }
.col[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  padding: 4px 8px; border-radius: 4px; background: var(--paper); color: var(--paper-ink); font-size: 12px; white-space: nowrap; z-index: 2;
}
.col:hover .col-bar { background: var(--paper); }
.st-span { display: grid; gap: 4px; margin: 14px 0 0; color: var(--dim); font-size: 14px; }
.st-span b { color: var(--paper); font-weight: 600; }

/* only here */
.exclusive { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; }
.exclusive li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14px; color: var(--dim); }
.exclusive b { display: block; color: var(--paper); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-cover { padding: 0; border: 0; background: none; cursor: pointer; }
span.x-cover { cursor: default; }

/* the last day, newest first, a river of covers */
.st-river { padding-bottom: 140px; }
.river { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px 4px; }
.river li { display: grid; gap: 3px; }
.r-tile { display: block; padding: 0; border: 0; background: var(--night-3); color: var(--paper); aspect-ratio: 1; }
button.r-tile { cursor: pointer; }
.r-tile:hover { outline: 2px solid var(--paper); outline-offset: -2px; }
.r-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r-img.paper-cover { font-size: 22px; }
.river time { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .st-hero, .st-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .bars li { grid-template-columns: minmax(0, 9em) minmax(0, 1fr); }
}

/* --- all stations: find your own ---------------------------------------------------------- */

.find {
  flex: 1 1 320px; max-width: 560px; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--night-2); color: var(--paper); font: 500 18px Rubik, sans-serif;
}
.find:focus { outline: none; border-color: var(--onair); }
.countries button {
  padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: none; color: var(--paper);
  font: 600 15px Rubik, sans-serif; cursor: pointer;
}
.countries button:hover { border-color: var(--paper); }
.countries button[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.only { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 15px; cursor: pointer; }
.only input { accent-color: var(--onair); width: 18px; height: 18px; }

.station-list { list-style: none; margin: 12px 0 0; padding: 0 var(--side) 140px; }
.st-row {
  display: grid; grid-template-columns: 1.4em minmax(0, 1fr) auto 8.5em; align-items: center; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.st-row[hidden] { display: none; }
.st-row-text { min-width: 0; }
.st-row-name { display: block; color: var(--paper); font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row-name:hover { text-decoration: underline; }
.st-row-now { display: block; color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row-now .onair { display: inline-block; vertical-align: 1px; margin-right: 4px; }
.st-row.off .st-row-name { color: var(--dim); }
.st-row-plays { color: var(--dim); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-row .yt { justify-self: end; padding: 5px 12px; font-size: 13px; }
@media (max-width: 700px) {
  .st-row { grid-template-columns: 1.4em minmax(0, 1fr) auto; }
  .st-row-plays { display: none; }
}

/* --- by country: the lists side by side ---------------------------------------------------- */

.everywhere { padding: 14px var(--side) 0; }
.everywhere h2, .cmp-col h2 { margin: 0 0 12px; font: 800 24px/1.1 Rubik, sans-serif; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
.ev-list li { display: grid; gap: 2px; font-size: 14px; min-width: 0; padding: 6px; border-radius: 6px; }
.ev-cover { padding: 0; border: 0; background: none; cursor: pointer; margin-bottom: 6px; }
span.ev-cover { cursor: default; }
.ev-cover .thumb { width: 100%; height: auto; aspect-ratio: 1; }
.ev-list b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-artist { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-flags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }

.cmp-columns {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px;
  padding: 26px var(--side) 140px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--side);
}
.cmp-col { min-width: 0; scroll-snap-align: start; }
.cmp-col h2 a { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); text-decoration: none; }
.cmp-col h2 a:hover { text-decoration: underline; }
.cmp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cmp-item {
  display: grid; grid-template-columns: 2ch 40px minmax(0, 1fr) 2ch; align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: 6px; background: var(--night-2); cursor: default; outline: none;
}
.cmp-item .thumb { width: 40px; height: 40px; }
.cmp-item .thumb.paper-cover { font-size: 16px; padding: 2px; }
.cmp-rank { color: var(--dim); font-weight: 700; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.cmp-text { min-width: 0; font-size: 13px; line-height: 1.25; }
.cmp-text b, .cmp-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-text span { color: var(--dim); }
.cmp-spread { color: var(--dim); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
/* a song only this country plays: its own color */
.cmp-item.alone { box-shadow: inset 3px 0 0 var(--yolk); }
.cmp-item.alone .cmp-spread { color: var(--yolk); }
/* the song pointed at, in every country */
.cmp-item.lit, .ev-list li.lit { background: var(--onair); color: var(--paper-ink); }
.cmp-item.lit .cmp-text span, .cmp-item.lit .cmp-rank, .cmp-item.lit .cmp-spread, .ev-list li.lit .ev-artist { color: var(--paper-ink); }
.cmp-col h2 { margin-bottom: 2px; }
.cmp-base { margin: 0 0 12px; color: var(--dim); font-size: 13px; }
.cmp-base.thin { color: var(--yolk); }
