:root {
  --bg: #111; --panel: #1a1a1a; --ink: #eceae4; --muted: #8f8c85; --line: #2e2e2e; --chip: #232323;
  --accent: #ff4d5e; --mark: #6b5600; --shadow: 0 12px 40px rgba(0,0,0,.5);
  --cond: "Bahnschrift SemiCondensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3ef; --panel: #fff; --ink: #1c1c1c; --muted: #6b6b6b; --line: #dedbd2; --chip: #ecebe5;
    --mark: #ffe58a; --shadow: 0 12px 40px rgba(0,0,0,.18);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.locked { overflow: hidden; }
html, body { overflow-x: clip; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; }
input, select, button { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
button { cursor: pointer; }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; height: 58px; }
.logo { font: 700 19px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.logo span, h1 span { color: var(--accent); }
.tabs { display: flex; gap: 2px; font: 600 14px var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.tabs a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 4px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
#q { flex: 1 1 200px; min-width: 0; font-size: 15px; }
.support { font: 600 13px var(--cond); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 7px 12px;
  border-radius: 999px; background: var(--accent); color: #fff; white-space: nowrap; }
main { padding: 24px 16px 60px; min-height: 70vh; }
.foot { color: var(--muted); font-size: 13px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
.foot .support { margin-left: 6px; font-size: 11px; padding: 4px 10px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.hero h1 { margin: 0; font: 700 clamp(34px, 6vw, 64px)/0.95 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.tagline { margin: 10px 0 0; max-width: 60ch; color: var(--ink); opacity: .85; }
.stat { margin: 8px 0 0; color: var(--muted); font: 14px var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.hosts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; max-width: 560px; }
.host { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 14px 4px 4px; }
.host:hover { border-color: var(--accent); }
.host span { display: flex; flex-direction: column; line-height: 1.15; }
.host i { font-style: normal; color: var(--muted); font-size: 12px; }
.face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--chip); }
.face.mono { display: grid; place-items: center; font: 700 15px var(--cond); color: var(--accent); letter-spacing: .04em; }

/* timeline */
.timeline { padding: 6px 0 4px; }
.row { position: relative; display: flex; align-items: stretch; gap: 12px; }
.track { position: relative; flex: 1; height: 74px; }
.line { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--ink); opacity: .7; }
.line::before, .line::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.line::before { left: -3px; } .line::after { right: -3px; }
.yr, .mo { position: absolute; top: 6px; transform: translateX(-50%); background: none; border: 0; padding: 4px 6px;
  font: 600 14px var(--cond); letter-spacing: .1em; color: var(--ink); opacity: .75; }
.mo { font-size: 11px; color: var(--muted); }
.yr:hover, .yr.on { opacity: 1; color: var(--accent); }
.yr.on::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.rowlab { width: 64px; flex: none; background: none; border: 0; text-align: left; font: 700 16px var(--cond); letter-spacing: .08em; color: var(--muted); padding: 34px 0 0; }
.rowlab.on, .rowlab:hover { color: var(--accent); }
.mk { position: absolute; top: 36px; width: 2px; height: 21px; margin-left: -1px; background: var(--accent); opacity: .55; border-radius: 1px; }
.mk.silent { background: var(--muted); opacity: .35; }
.mk.cur { opacity: 1; }
.mk:hover { opacity: 1; height: 29px; top: 32px; width: 4px; margin-left: -2px; z-index: 2; }
.row.single .mk { width: 6px; margin-left: -3px; border-radius: 3px; }
.legend { color: var(--muted); font-size: 12px; margin: 8px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend .mk { position: static; display: inline-block; height: 12px; margin: 0 2px 0 8px; opacity: 1; }
.legend .mk.silent { opacity: .6; }
.tip { position: absolute; z-index: 30; display: flex; gap: 10px; align-items: center; max-width: 340px; padding: 8px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); pointer-events: none; font-size: 13px; }
.tip img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; }
.tip span { display: flex; flex-direction: column; } .tip b { font: 600 12px var(--cond); letter-spacing: .08em; color: var(--accent); }
.tip i { color: var(--muted); font-size: 12px; }

/* year cards */
.year h2, h2.sub { font: 700 30px var(--cond); letter-spacing: .06em; margin: 30px 0 14px; }
.year h2 small { font-size: 15px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 14px; }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px 10px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.cardimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--chip); transition: transform .15s; }
.card:hover .cardimg { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.silent .cardimg { filter: grayscale(1); opacity: .7; }
.cdate { font: 600 12px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card.silent .cdate { color: var(--muted); }
.ctitle { font-size: 14px; line-height: 1.3; }
.ph { display: flex; flex-direction: column; justify-content: space-between; padding: 10px; aspect-ratio: 1; border-radius: 4px; overflow: hidden;
  background: linear-gradient(135deg, var(--chip), var(--panel)); border: 1px solid var(--line); }
.ph b { font: 700 26px var(--cond); color: var(--accent); letter-spacing: .04em; }
.ph span { font: 600 13px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* browse */
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.summary, .muted { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.bc { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.bc .thumb, .bc .ph { width: 110px; height: 110px; object-fit: cover; border-radius: 4px; }
.bc .ph b { font-size: 20px; } .bc .ph span { font-size: 11px; }
.bc h3 { margin: 2px 0 4px; font-size: 18px; } .bc h3 a { text-decoration: none; } .bc h3 a:hover { color: var(--accent); }
.date { font: 600 13px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.more { display: block; margin: 20px auto; }
.ms { position: relative; }
.ms summary { list-style: none; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 28px 7px 10px; white-space: nowrap; position: relative; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary::after { content: ""; position: absolute; right: 11px; top: 50%; margin-top: -3px; border: 5px solid transparent; border-top-color: var(--muted); }
.msmenu { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; min-width: 260px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px; box-shadow: var(--shadow); }
.msmenu label { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 14px; cursor: pointer; }
.msmenu .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.msact { display: flex; gap: 6px; margin-bottom: 6px; } .msact button { font-size: 12px; padding: 3px 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* mixes, chips, tracks */
.mix { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.mix:first-of-type { border-top: 0; }
.mixhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.part, .plays { font-size: 12px; color: var(--muted); }
.whos, .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.who { font-size: 13px; text-decoration: none; color: var(--accent); }
.who:hover { text-decoration: underline; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip.dl { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.noaudio { color: var(--muted); border-color: var(--muted); font-weight: 600; }
.chip.srch { background: transparent; color: var(--muted); border-style: dashed; }
.s-mixcloud, .s-mixcloud-fan { border-color: #5000ff88; } .s-archive, .s-wayback { border-color: #42809f; }
.s-youtube { border-color: #ff000088; } .s-soundcloud { border-color: #ff550088; }
details.tl, details.notes { margin-top: 8px; }
details.tl summary, details.notes summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details.notes p { white-space: pre-line; font-size: 14px; margin: 6px 0 0; }
ol.tracks { margin: 6px 0 0; padding-left: 28px; font-size: 14px; }
ol.tracks li { padding: 2px 0; }
.lbl { color: var(--muted); }
.buy { font-size: 11px; padding: 0 7px; border-radius: 999px; color: var(--muted); background: none; margin-left: 4px; opacity: .6; }
li:hover .buy { opacity: 1; } .buy:hover { color: var(--accent); border-color: var(--accent); }
.stores { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; }
.store { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; }
.store:hover { background: var(--accent); color: #fff; }

/* artists */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.acard { display: flex; gap: 14px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.acard:hover { border-color: var(--accent); }
.acard .face { width: 72px; height: 72px; } .acard .face.mono { font-size: 22px; }
.acard b { display: block; font-size: 16px; } .acard p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.role { display: block; font-style: normal; color: var(--accent); font: 600 12px var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.alist { columns: 4 200px; column-gap: 20px; font-size: 14px; }
.alist a { display: block; text-decoration: none; padding: 2px 0; break-inside: avoid; } .alist a:hover { color: var(--accent); }

/* about */
.about { max-width: 70ch; } .about h2 { font: 700 24px var(--cond); letter-spacing: .06em; text-transform: uppercase; margin: 28px 0 8px; }
.about p { margin: 0 0 12px; }

/* drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(620px, 100%); overflow-y: auto; background: var(--bg);
  border-left: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px 24px 40px; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.x { position: sticky; top: 0; float: right; z-index: 2; font: 600 12px var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.ep .big, .ep .ph { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 14px; }
.ep h2, .artist h2 { margin: 2px 0 8px; font: 700 28px/1.1 var(--cond); letter-spacing: .02em; }
.epnotes { white-space: pre-line; color: var(--muted); font-size: 14px; }
.pn { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font: 600 13px var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.pn a { text-decoration: none; color: var(--accent); }
.ahead { display: flex; gap: 18px; align-items: center; margin: 8px 0 14px; }
.bigface { width: 128px; height: 128px; } .bigface.mono { font-size: 40px; }
.ahead .n, .ahead .credit { display: block; margin-top: 4px; }
.artist h3 { font: 700 16px var(--cond); letter-spacing: .1em; text-transform: uppercase; margin: 22px 0 8px; color: var(--muted); }
.credit { font-size: 12px; color: var(--muted); }

@media (max-width: 760px) {
  .bar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px 12px; }
  #q { order: 3; flex-basis: 100%; }
  .tabs { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs a { padding: 6px 7px; }
  .logo { font-size: 16px; }
  .mo { font-size: 9px; letter-spacing: 0; padding: 4px 0; }
  .mo:nth-of-type(even) { display: none; }
  .track { min-width: 0; }
  .support { margin-left: auto; }
  .hero { grid-template-columns: 1fr; } .hosts { justify-content: flex-start; }
  .yr { font-size: 11px; padding: 4px 2px; letter-spacing: .02em; }
  .rowlab { width: 44px; font-size: 13px; }
  .bc { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .bc .thumb, .bc .ph { width: 72px; height: 72px; } .bc .ph span { display: none; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .drawer { padding: 14px 16px 40px; }
  .bigface { width: 88px; height: 88px; }
}
.sg { font: 600 11px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); align-self: center; margin-right: 2px; }
.links .sg:not(:first-child), .stores .sg:not(:first-child) { flex-basis: 100%; margin-top: 4px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 4px 6px; }

/* genres: heatmap, episode genre bar, per-track dot */
.genres h2 small { color: var(--muted); font-weight: 400; font-size: .6em; margin-left: 8px; }
.hmf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.gchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink); text-decoration: none; }
.gchip:hover, .gchip.on { border-color: var(--accent); }
.gchip.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.gchip i, .hm th i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.gchip small { color: var(--muted); }
.gchip.mood { font-style: italic; }
.hmwrap { overflow-x: auto; margin: 12px 0; }
.hm { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.hm th { font-weight: 400; color: var(--muted); white-space: nowrap; padding: 0 4px; }
.hm thead th a { color: var(--muted); text-decoration: none; }
.hm tbody th { text-align: left; color: var(--ink); }
.hm tbody th i { margin-right: 6px; }
.hm td { padding: 0; }
.hm td a { display: block; min-width: 26px; height: 22px; line-height: 22px; text-align: center; color: var(--ink); text-decoration: none; border-radius: 3px; outline: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.hm td a:hover { outline: 2px solid var(--ink); }
.hm td.low { opacity: .45; }
.hm td:last-child a { font-weight: 700; }
.gbar { margin: 12px 0; }
.gseg { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.glist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.curve { margin: 10px 0 4px; }
.curve svg { display: block; width: 100%; height: 34px; margin-top: 4px; background: color-mix(in srgb, var(--line) 35%, transparent); border-radius: 4px; }
.xmenu { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.hmf .sg { margin: 0 2px 0 8px; }
.hmf .sg:first-child { margin-left: 0; }
#hmfd { padding: 3px 8px; font-size: 12px; }
.chip.listen { background: var(--accent); color: #fff; border-color: var(--accent); }
[hidden] { display: none !important; }
