:root {
  --rust: #C1440E;
  --rust-2: #e2601f;
  --teal: #2de6c8;
  --basalt: #1A1110;
  --dust: #F4EBE1;

  --bg: #120c0b;
  --bg-2: var(--basalt);
  --surface: #221716;
  --surface-2: #2d1f1d;
  --surface-3: #3a2a27;
  --text: var(--dust);
  --dim: #a99186;
  --dim-2: #7a665d;
  --line: rgba(244, 235, 225, .07);
  --line-2: rgba(244, 235, 225, .12);
  --teal-soft: rgba(45, 230, 200, .12);
  --rust-soft: rgba(193, 68, 14, .16);
  --red: #ff5f52;
  --amber: #f5b53a;
  --purple: #a78bfa;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: var(--dust);
  --bg-2: #ede2d5;
  --surface: #fffaf5;
  --surface-2: #f3e7da;
  --surface-3: #e6d6c5;
  --text: var(--basalt);
  --dim: #6e5a4f;
  --dim-2: #9a847a;
  --line: rgba(26, 17, 16, .08);
  --line-2: rgba(26, 17, 16, .16);
  --teal: #0fa88f;
  --teal-soft: rgba(15, 168, 143, .12);
  --shadow: 0 20px 50px -24px rgba(60, 30, 20, .35);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100dvh; padding-bottom: var(--console-h, 96px);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.flip { transform: scaleX(-1); }
.ic-teal { color: var(--teal); } .ic-rust { color: var(--rust-2); } .ic-amber { color: var(--amber); } .ic-dim { color: var(--dim-2); }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.dim { color: var(--dim); } .ok { color: var(--teal); } .teal { color: var(--teal); }
.small { font-size: 10px; } .strong { font-weight: 700; font-size: 14px; } .up { text-transform: uppercase; letter-spacing: .1em; }
.sep { color: var(--line-2); }

/* ---------- pings / pills ---------- */
.ping { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
.ping.red { background: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.pill.red { background: rgba(255,95,82,.1); border-color: rgba(255,95,82,.35); color: var(--red); }
.pill.teal { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 30%, transparent); color: var(--teal); }
.pill.sm { padding: 3px 9px; font-size: 10px; max-width: 100%; min-width: 0; }
.pill.sm > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill:empty { display: none; }
.tag-mono { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--dim); border: 1px solid var(--line); vertical-align: middle; }
.live-tag { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--dim); letter-spacing: .08em; }
.is-playing .live-tag { background: var(--teal-soft); color: var(--teal); }
.is-loading .live-tag { background: rgba(245,181,58,.15); color: var(--amber); }
.is-error .live-tag { background: rgba(255,95,82,.15); color: var(--red); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.hdr-row { max-width: 1720px; margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 32px); height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 50px; width: auto; display: block; object-fit: contain; box-sizing: border-box; }
.badge-live { display: none; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent); font-size: 11px; color: var(--dim); }
.badge-live b { font-family: 'JetBrains Mono', monospace; color: var(--teal); font-weight: 600; }
.region-wrap { position: relative; display: none; }
.region { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--text); cursor: pointer; transition: .15s; }
.region:hover, .region[aria-expanded="true"] { background: var(--surface-2); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.region span { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region .caret { transition: transform .2s; }
.region[aria-expanded="true"] .caret { transform: rotate(180deg); }

.menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 300px; border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.2); animation: menuIn .18s cubic-bezier(.2,.9,.3,1.1) both; transform-origin: top left; }
.menu-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--dim-2); }
.menu-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 13px; }
.menu-search input::placeholder { color: var(--dim-2); }
.menu-list { max-height: min(380px, 55vh); overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 500; color: var(--text); transition: .12s; }
.menu-item .flag { font-size: 17px; width: 24px; text-align: center; flex: none; line-height: 1; }
.menu-item .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .ct { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--dim); flex: none; }
.menu-item:hover, .menu-item.hl { background: var(--line-2); }
.menu-item[aria-selected="true"] { background: var(--teal-soft); color: var(--teal); }
.menu-item[aria-selected="true"] .ct { color: var(--teal); }
.menu-item.sep { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.menu-empty { padding: 18px; text-align: center; font-size: 12px; color: var(--dim); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
button > svg, button > span, .region > *, .tab > * { pointer-events: none; }
.omni-wrap { flex: 1; min-width: 0; max-width: 680px; position: relative; }
.omni .clear { padding: 4px; color: var(--dim); } .omni .clear:hover { color: var(--text); }
.search-menu { left: 0; right: 0; width: auto; transform-origin: top center; }
.search-menu .menu-list { max-height: min(520px, 70vh); padding: 8px; }
.menu-head { padding: 10px 10px 4px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim-2); display: flex; align-items: center; gap: 8px; }
.menu-head .ic { width: 12px; height: 12px; }
.menu-item .mini { width: 36px; height: 36px; border-radius: 10px; flex: none; overflow: hidden; position: relative; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; background: linear-gradient(135deg, var(--h1, var(--rust)), var(--h2, var(--teal))); }
.menu-item .mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-item .ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--tc, var(--teal)) 18%, transparent); color: var(--tc, var(--teal)); }
.menu-item .ico .ic { width: 18px; height: 18px; }
.menu-item .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.menu-item .txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .txt small { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item.all { justify-content: center; color: var(--teal); font-weight: 600; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; }
.menu-item mark { background: none; color: var(--teal); font-weight: 700; }
.menu-loading { display: flex; align-items: center; gap: 8px; padding: 12px; font-size: 12px; color: var(--dim); }
.menu-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--teal); animation: spin .8s linear infinite; }
.omni { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--dim-2); transition: .2s; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.omni:focus-within { border-color: color-mix(in srgb, var(--teal) 60%, transparent); box-shadow: 0 0 0 3px var(--teal-soft); color: var(--teal); }
.omni input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; }
.omni input::placeholder { color: var(--dim-2); }
.omni kbd { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--dim); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 5px; }
.seg { display: none; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); }
.seg button { padding: 5px 10px; border-radius: 7px; font-family: inherit; font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.seg button.on { background: var(--teal-soft); color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent); }
.mono-pill { display: none; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-family: inherit; font-size: 12px; font-weight: 500; color: var(--teal); }
.cta { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 12px; background: linear-gradient(100deg, var(--rust), var(--rust-2)); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 8px 20px -8px var(--rust); transition: .2s; }
.cta:hover { filter: brightness(1.1); } .cta:active { transform: scale(.98); }
.cta b { font-family: 'JetBrains Mono', monospace; background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 5px; }
.cta.big { height: 46px; padding: 0 28px; font-size: 12px; }
.sq { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--dim); transition: .2s; }
.sq:hover { color: var(--text); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.sq.s { width: 32px; height: 32px; border-radius: 9px; }
.sq.on { color: var(--rust-2); border-color: var(--rust); background: var(--rust-soft); }
.ghost { display: inline-flex; align-items: center; gap: 4px; padding: 6px; border-radius: 8px; color: var(--dim); transition: .15s; }
.ghost:hover { color: var(--text); }
.ghost.on { color: var(--rust-2); }

.tabs { border-top: 1px solid var(--line); max-width: 1720px; margin: 0 auto; padding: 8px clamp(16px, 2.5vw, 32px); display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; font-size: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; color: var(--dim); font-weight: 500; border: 1px solid transparent; transition: .15s; }
.tab:hover { background: var(--line); color: var(--text); }
.tab.on { background: var(--line-2); color: var(--text); font-weight: 600; border-color: var(--line-2); }
/* tab icons: same colour as the (unselected) tab text; the secondary colour when selected */
.tab .ic { color: inherit; }
.tab.on .ic { color: var(--teal); }
.n-live { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: rgba(255,95,82,.15); color: var(--red); }
.n-live:empty { display: none; }

/* ---------- layout ---------- */
main { max-width: 1720px; margin: 0 auto; padding: 24px clamp(16px, 2.5vw, 32px); display: grid; gap: 40px; min-width: 0; }
.view { display: grid; gap: 40px; min-width: 0; }
.sec { display: grid; gap: 16px; min-width: 0; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap; min-width: 0; }
h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; flex: 1 1 auto; min-width: 0; }
h2 > .tag-mono, .sec-h .arrows, .sec-h .linkb { flex: none; white-space: nowrap; }
h2 > .pill { flex: 0 1 auto; min-width: 0; }
.bar { width: 10px; align-self: stretch; min-height: 24px; border-radius: 999px; flex: none; }
.bar.rust { background: var(--rust-2); } .bar.teal { background: var(--teal); } .bar.purple { background: var(--purple); }
.linkh { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: inherit; font-weight: 700; line-height: 1.2; color: inherit; white-space: nowrap; flex: none; transition: .15s; }
.linkh:hover { color: var(--teal); }
.linkb { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--teal); }
.linkb:hover { filter: brightness(1.15); }
.arrows { display: flex; gap: 8px; }
.empty { text-align: center; color: var(--dim); padding: 60px 0; }
.more { display: flex; justify-content: center; padding-top: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); padding: clamp(22px, 3vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; animation: rise .5s both; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, var(--rust-soft) 0%, transparent 60%), radial-gradient(circle at 100% 100%, var(--teal-soft), transparent 50%); pointer-events: none; }
.hero > * { position: relative; }
.hero-l { display: grid; gap: 18px; max-width: 780px; flex: 1 1 320px; min-width: 0; }
h1 { overflow-wrap: anywhere; }
.hero-track > div:not(.hero-art):not(.eq) { flex: 1; min-width: 0; }
#heroTags { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero-sub { margin-top: 8px; font-size: 16px; color: var(--dim); }
.hero-sub .ok { font-weight: 600; }
.hero-track { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); flex-wrap: wrap; }
.hero-art { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--h1, var(--rust)), var(--h2, var(--teal))); flex: none; box-shadow: 0 8px 16px -6px rgba(0,0,0,.6); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-track .eq { margin-left: auto; }
.hero-r { display: flex; flex-direction: column; align-items: center; gap: 16px; flex: none; }
.tune { display: inline-flex; align-items: center; gap: 12px; padding: 18px 32px; border-radius: 18px; background: linear-gradient(100deg, var(--rust), var(--rust-2)); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 20px 40px -12px var(--rust); transition: .2s; }
.tune .ic { width: 24px; height: 24px; }
.tune:hover { transform: translateY(-2px); filter: brightness(1.08); } .tune:active { transform: scale(.97); }
.hero-acts { display: flex; gap: 12px; }
.hero-acts .sq { width: 46px; height: 46px; border-radius: 13px; }

/* ---------- equalizer ---------- */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; padding: 4px 10px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid var(--line); }
.eq.big { height: 34px; gap: 4px; padding: 5px 14px; }
.eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--teal); transform-origin: bottom; transform: scaleY(.2); transition: transform .4s; }
.eq i:nth-child(3n) { background: var(--rust-2); }
.is-playing .eq i, .eq.live i { animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.55s; } .eq i:nth-child(4) { animation-delay: -.1s; }
.eq i:nth-child(5) { animation-delay: -.4s; } .eq i:nth-child(6) { animation-delay: -.7s; } .eq i:nth-child(7) { animation-delay: -.3s; } .eq i:nth-child(8) { animation-delay: -.85s; }

/* ---------- station cards ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 12px; margin: -6px -4px -12px; scroll-padding: 0 4px; scrollbar-width: none; }
#genreRows { display: grid; gap: 44px; }
.sec-h { margin-bottom: 4px; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.card { position: relative; text-align: left; display: flex; flex-direction: column; padding: 12px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 60%, var(--bg)) 100%); transition: transform .2s, border-color .2s, box-shadow .2s; animation: rise .22s both; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--teal) 35%, transparent); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--teal) 40%, transparent); }
.card[aria-current="true"] { border-color: var(--rust-2); box-shadow: 0 0 0 1px var(--rust), 0 12px 30px -12px var(--rust); }
.art { position: relative; aspect-ratio: 1; width: 100%; border-radius: 12px; overflow: hidden; padding: 8px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, var(--h1), var(--h2)); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 2px 12px rgba(0,0,0,.25); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-top, .art-bot { position: relative; display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.85); z-index: 1; }
.art-top .lv { padding: 2px 5px; border-radius: 4px; background: var(--rust); color: #fff; letter-spacing: .08em; }
.art-top .lv.on { background: var(--teal); color: var(--basalt); }
.art-bot { text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.art-mid { position: relative; z-index: 1; text-align: center; margin: auto 0; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.art-mid b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.art-mid small { display: block; font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.art.has-img .art-mid { display: none; }
.art.has-img .art-top, .art.has-img .art-bot { background: rgba(10,6,5,.55); backdrop-filter: blur(4px); padding: 3px 6px; border-radius: 6px; margin: -2px; }
.art-ov { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(18,12,11,.6); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s; }
.card:hover .art-ov, .card[aria-current="true"] .art-ov { opacity: 1; }
.art-ov span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--basalt); box-shadow: 0 10px 20px -6px rgba(0,0,0,.6); transform: scale(.8); transition: transform .2s; }
.card:hover .art-ov span { transform: scale(1); }
.art-ov .ic { width: 20px; height: 20px; }
.card[aria-current="true"].is-playing .art-ov span .ic { display: none; }
.card[aria-current="true"].is-playing .art-ov span::after { content: ""; width: 14px; height: 14px; background: linear-gradient(90deg, var(--basalt) 0 30%, transparent 30% 70%, var(--basalt) 70%); }
.card h3 { margin-top: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: .15s; }
.card:hover h3 { color: var(--teal); }
.card p { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card .fav { position: absolute; top: 18px; right: 18px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,12,11,.6); color: #fff; opacity: 0; transition: .2s; }
.card:hover .fav, .card .fav.on { opacity: 1; }
.card .fav.on { color: var(--rust-2); }
.card .fav .ic { width: 14px; height: 14px; }
.card .fav.on .ic { fill: currentColor; }

/* near you — larger cards */
.near { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.near .card { padding: 16px; border-radius: 24px; }
.near .art { border-radius: 18px; padding: 12px; }
.near .art-mid b { font-size: 40px; }
.near .card h3 { font-size: 15px; margin-top: 14px; }
.near .card p { font-size: 12px; }
.near .cfoot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.near .cfoot .tag-mono { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near .cfoot .acts { display: flex; gap: 2px; }
.near .cfoot .ghost .ic { width: 15px; height: 15px; }
.cfoot { display: none; }
.near .cfoot { display: flex; }
.near .card .fav { display: none; }

/* genre tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; text-align: left; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 14%, var(--surface)), var(--surface)); transition: .2s; animation: rise .22s both; }
.tile:hover { border-color: color-mix(in srgb, var(--tc) 55%, transparent); transform: translateY(-2px); }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 20%, transparent); color: var(--tc); flex: none; }
.tile .ico .ic { width: 20px; height: 20px; }
.tile b { display: block; font-size: 12px; font-weight: 700; }
.tile small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--dim); margin-top: 2px; }

/* browse chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); color: var(--dim); }
.chip.on { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 35%, transparent); color: var(--teal); }

.skeleton { aspect-ratio: 1/1.35; border-radius: 18px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.near .skeleton { aspect-ratio: 1/1.4; }

/* ---------- player console ---------- */
.console { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(24px); border-top: 1px solid var(--line-2); padding: 12px clamp(16px, 2.5vw, 32px); }
.console::before { content: ""; position: absolute; inset: 0; pointer-events: none; display: grid; }
.console > * { position: relative; }
.console { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1.4fr) minmax(200px, 1fr); align-items: center; gap: 20px; max-width: 100%; }
.c-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.c-art-wrap { position: relative; flex: none; }
.c-art { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--h1, var(--surface-3)), var(--h2, var(--surface-2))); border: 1px solid var(--line-2); }
.c-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-art .ic { width: 22px; height: 22px; color: var(--dim); }
.c-dot { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.c-dot .ping { width: 8px; height: 8px; background: var(--dim-2); }
.c-dot .ping::after { animation: none; }
.is-playing .c-dot .ping { background: var(--teal); } .is-playing .c-dot .ping::after { animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
.c-meta { min-width: 0; display: grid; gap: 2px; }
.c-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.c-title h4 { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta p { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta .mono:empty { display: none; }
.c-center { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.c-transport { display: flex; align-items: center; gap: 16px; }
.c-transport .ghost span { font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.playbtn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--basalt); box-shadow: 0 10px 24px -8px var(--teal); transition: transform .15s; }
.playbtn:hover { transform: scale(1.06); } .playbtn:active { transform: scale(.95); }
.playbtn > * { grid-area: 1/1; }
.playbtn .ic { width: 22px; height: 22px; }
.playbtn .i-pause, .playbtn .spinner { display: none; }
.is-playing .playbtn .i-play { display: none; } .is-playing .playbtn .i-pause { display: block; }
.is-loading .playbtn .i-play, .is-loading .playbtn .i-pause { display: none; }
.is-loading .playbtn .spinner { display: block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(26,17,16,.25); border-top-color: var(--basalt); animation: spin .8s linear infinite; }
.c-buffer { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 10px; }
.bufbar { flex: 1; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bufbar div { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--rust-2), var(--teal)); transition: width .4s; }
.c-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.vol { display: flex; align-items: center; gap: 6px; }
.vol input { width: 100px; height: 5px; appearance: none; background: var(--surface-3); border-radius: 999px; accent-color: var(--teal); cursor: pointer; }
.vol input::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--bg-2); }
.vol .mono { width: 32px; text-align: right; }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 20px); z-index: 60; padding: 10px 16px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (min-width: 640px) { .mono-pill { display: inline-flex; } }
@media (min-width: 900px) { .region-wrap { display: block; } }
@media (min-width: 1100px) { .seg { display: flex; } }
@media (min-width: 1280px) { .badge-live { display: inline-flex; } }
@media (max-width: 1100px) {
  .console { grid-template-columns: minmax(0, 1fr) auto; }
  .c-right { display: none; }
  .c-buffer { display: none; }
}
@media (max-width: 720px) {
  /* two rows: logo + actions on top; region + search below */
  .hdr-row { height: auto; flex-wrap: wrap; row-gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { order: 1; }
  .hdr-right { order: 2; margin-left: auto; gap: 8px; }
  .region-wrap { order: 3; }
  .omni-wrap { order: 4; }
  .region span { max-width: 118px; }
  .brand img { height: 42px; }
  .cta span, .omni kbd { display: none; }
  .cta { padding: 0 12px; }
  .hero-r { width: 100%; flex-direction: row; justify-content: space-between; }
  .tune { padding: 14px 20px; font-size: 14px; }
  .row { grid-auto-columns: minmax(140px, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .near { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card, .tile { min-width: 0; }
  .linkb span, #changeRegion { font-size: 0; gap: 0; } #changeRegion .ic { width: 18px; height: 18px; }
  h2 > .tag-mono { display: none; }
  h2 { font-size: 19px; }
  .hero-track { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .near .art-mid b { font-size: 28px; }
  .c-transport .ghost span { display: none; }
  .c-transport { gap: 6px; }
  #resync, .c-meta .mono, .c-dot { display: none; }
  .c-art { width: 44px; height: 44px; border-radius: 11px; }
  .c-left { gap: 10px; }
  .hero-track .eq { display: none; }
  .hero { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- terms & policies acceptance gate ---------- */
html.dw-locked, html.dw-locked body { overflow: hidden; }
.dwg { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(193,68,14,.28), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(45,230,200,.14), transparent 60%), var(--bg); }
.dwg-card { width: min(560px, 100%); margin: auto; padding: 28px 26px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dwg-card[hidden] { display: none; }
.dwg-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; margin-bottom: 14px; }
.dwg-card h2 { font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.dwg-lead { color: var(--dim); margin: 0 0 14px; line-height: 1.55; }
.dwg-points { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.dwg-points li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--dim); }
.dwg-points li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.dwg-points b { color: var(--text); }
.dwg-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; line-height: 1.55; cursor: pointer; }
.dwg-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rust); cursor: pointer; }
.dwg-check a, .dwg-foot a { color: var(--teal); }
.dwg-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,95,82,.12); border: 1px solid rgba(255,95,82,.4); color: var(--red); font-size: 13px; }
.dwg-err[hidden] { display: none; }
.dwg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.dwg-accept, .dwg-decline { height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.dwg-accept { background: linear-gradient(100deg, var(--rust), var(--rust-2, #e0561a)); color: #fff; box-shadow: 0 8px 20px -8px var(--rust); }
.dwg-accept:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.dwg-decline { border: 1px solid var(--line); color: var(--dim); }
.dwg-decline:hover { color: var(--text); border-color: var(--dim); }
.dwg-foot { margin: 16px 0 0; text-align: center; font-size: 11px; color: var(--dim); font-family: 'JetBrains Mono', monospace; }
.legal-link { color: var(--dim); text-decoration: none; } .legal-link:hover { color: var(--teal); }
@media (max-width: 480px) { .dwg-card { padding: 22px 18px 18px; } .dwg-actions > button { flex: 1 1 100%; } }


/* ---------- podcasts ---------- */
.pod-search { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; padding: 0 6px 0 14px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); max-width: 640px; }
.pod-search:focus-within { border-color: color-mix(in srgb, var(--teal) 50%, transparent); }
.pod-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 14px; }
.pod-search .cta { height: 36px; }
.pod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; margin-top: 14px; }
.pod-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; transition: transform .2s, border-color .2s; }
.pod-card:hover, .pod-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--teal) 40%, transparent); outline: 0; }
.pod-card h3 { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pod-card p { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 28px; color: #fff; background: var(--surface-3, #3a2b28); }
.pod-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pod-head { display: flex; gap: 18px; align-items: center; margin: 14px 0 18px; }
.pod-head .pod-art { width: 132px; flex: none; }
.pod-head h2 { font-size: clamp(20px, 3vw, 28px); line-height: 1.2; margin-bottom: 4px; }
.pod-head p { color: var(--dim); font-size: 13px; }
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ep { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; cursor: pointer; transition: border-color .2s; }
.ep:hover, .ep:focus-visible, .ep[aria-current="true"] { border-color: color-mix(in srgb, var(--teal) 45%, transparent); outline: 0; }
.ep-play { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.ep[aria-current="true"] .ep-play { background: var(--teal); color: var(--bg); }
.ep-play .ic { width: 16px; height: 16px; }
.ep-main { min-width: 0; flex: 1; }
.ep-main b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-main span { font-size: 11px; color: var(--dim); font-family: 'JetBrains Mono', monospace; }
@media (max-width: 720px) { .pod-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .pod-head .pod-art { width: 88px; } }

/* ---------- site footer ---------- */
.site-foot { margin: 40px clamp(16px, 2.5vw, 32px) 20px; padding: 36px clamp(20px, 4vw, 44px) 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); max-width: 1720px; }
@media (min-width: 1800px) { .site-foot { margin-left: auto; margin-right: auto; } }
.sf-grid { display: grid; gap: 32px; grid-template-columns: 1fr; max-width: 1200px; margin: 0 auto; }
@media (min-width: 700px) { .sf-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .sf-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.sf-logo { height: 54px; width: auto; display: block; object-fit: contain; box-sizing: border-box; }
.sf-blurb { margin-top: 12px; max-width: 320px; font-size: 13px; line-height: 1.6; color: var(--dim); }
.sf-small { margin-top: 14px; font-size: 12px; color: var(--dim); }
.site-foot h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sf-link { padding: 0; background: none; border: 0; font: inherit; font-size: 13px; color: var(--dim); text-decoration: none; text-align: left; cursor: pointer; transition: color .15s; word-break: break-word; }
.sf-link:hover, .sf-link:focus-visible { color: var(--text); outline: 0; }
.sf-text { font-size: 13px; color: var(--dim); }
.sf-pill { display: inline-flex; gap: 8px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); color: var(--teal); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s; }
.sf-pill:hover { background: var(--teal-soft); }
.sf-copy { max-width: 1200px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.6; color: var(--dim); }

.pod-modes { margin: 14px 0 4px; }
.pod-modes .chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 12px; }
.pod-note { margin: 12px 0 14px; color: var(--dim); font-size: 13px; }
#podMore, #podLiveMore { margin-top: 18px; }
@media (max-width: 720px) { .pod-search .cta { width: 40px; padding: 0; justify-content: center; } }

/* theme-matched logo: white wordmark on dark, dark wordmark on light */
:root .logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
.browse-chips { margin: 14px 0 6px; } .browse-chips:empty { display: none; }

/* Region ("Worldwide Cluster") stays visible on phones and tablets: .hdr-left dissolves so its
   children (logo, region) take part in the header's flex layout. */
@media (max-width: 899px) {
  .hdr-left { display: contents; }
  .brand { order: 1; flex: none; }
  .region-wrap { display: block; order: 2; flex: none; }
  .omni-wrap { order: 3; flex: 1 1 0; min-width: 0; max-width: none; }
  .hdr-right { order: 4; flex: none; }
  .region { height: 42px; }
  .mono-pill, .omni kbd { display: none; }
  .region-wrap .menu, .search-menu { position: fixed; left: 12px; right: 12px; width: auto; top: 128px; }
}
@media (max-width: 720px) {
  /* row 1: logo · region icon · presets · theme (grouped right) — row 2: search (the ::before is a forced line break) */
  .hdr-row { row-gap: 0; column-gap: 8px; }
  .brand { order: 1; }
  .region-wrap { order: 2; margin-left: auto; }
  .hdr-right { order: 3; margin-left: 0; }
  .hdr-row::before { content: ""; order: 4; flex: 0 0 100%; height: 0; }
  .omni-wrap { order: 5; margin-top: 10px; }
}

/* Phones: the region button is just an icon, a globe for worldwide or the chosen country's flag. */
.region-flag { display: none; }
@media (max-width: 720px) {
  .region { width: 42px; padding: 0; justify-content: center; gap: 0; }
  .region #regionLabel, .region .caret { display: none; }
  .region-flag { font-size: 20px; line-height: 1; }
  .region.has-flag .region-flag { display: inline; }
  .region.has-flag .region-globe { display: none; }
  .region .ic { width: 20px; height: 20px; }
}

/* ---------- content guard: no selecting, saving, printing (see guard.js) ---------- */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
img, svg { -webkit-user-drag: none; user-drag: none; }
html.dw-shield body > * { visibility: hidden !important; }
@media print { html { display: none !important; } }

/* view switch: a short fade instead of a hard swap */
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
.view:not([hidden]) { animation: viewIn .16s ease-out both; }
@media (prefers-reduced-motion: reduce) { .view:not([hidden]), .card, .tile { animation: none !important; } }
