:root {
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 10px;
  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.25rem;
  --text-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
}
[data-theme="dark"] {
  --bg: #121110; --surface: #1a1918; --surface-2: #232120; --line: #2e2c2a;
  --text: #f1ece4; --muted: #a09a91; --faint: #6e6962;
  --accent: #ff5a36; --accent-soft: rgba(255, 90, 54, .14); --accent-text: #ff7a5c;
}
[data-theme="light"] {
  --bg: #f6f3ee; --surface: #fffdfa; --surface-2: #efebe4; --line: #e0dad1;
  --text: #1d1b19; --muted: #6a645c; --faint: #9a938a;
  --accent: #e2421d; --accent-soft: rgba(226, 66, 29, .1); --accent-text: #c23512;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--text-base)/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 34px; height: 34px; color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { white-space: nowrap; font: 800 1.15rem/1 var(--font-display); letter-spacing: -.01em; }
.brand-text span { font-size: var(--text-xs); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: var(--text-sm); }
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.on { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.theme { background: none; border: 1px solid var(--line); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.theme:hover { color: var(--text); }

/* hero + search */
.hero { padding: 48px 0 20px; }
.hero h1 { font: 800 var(--text-xl)/1.05 var(--font-display); letter-spacing: -.02em; margin: 0 0 8px; max-width: 22ch; }
.hero p { margin: 0; color: var(--muted); }
.search { position: relative; margin: 24px 0 8px; }
.search input { width: 100%; padding: 16px 18px 16px 50px; font-size: var(--text-lg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.hint { font-size: var(--text-sm); color: var(--faint); margin: 0 0 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.filters input, .filters select { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: var(--text-sm); }
.filters input { flex: 1 1 240px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }

/* stats strip */
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 24px 0 0; }
.stat b { display: block; font: 800 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* section heads */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 10px; }
.sec-head h2 { font: 700 var(--text-lg)/1.2 var(--font-display); margin: 0; }
.sec-head .count { color: var(--muted); font-size: var(--text-sm); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; align-items: center; gap: 16px; padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none; }
a.row:hover { background: var(--surface); }
.song-row { grid-template-columns: 1fr auto; }
.song-row .t { font-weight: 700; }
.song-row .a { color: var(--muted); }
.song-row .meta { font-size: var(--text-xs); color: var(--faint); margin-top: 2px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge.hot { background: var(--accent-soft); color: var(--accent-text); }
.show-row { grid-template-columns: 96px 1fr auto; }
.show-row .d { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted); }
.show-row .n { font-weight: 600; }
.show-row .c { font-size: var(--text-xs); color: var(--faint); margin-top: 2px; }
.artist-row { grid-template-columns: 1fr auto auto; }
.small { font-size: var(--text-xs); color: var(--faint); }
mark { background: var(--accent-soft); color: var(--accent-text); border-radius: 3px; padding: 0 2px; }

/* detail pages */
.back { display: inline-flex; gap: 6px; align-items: center; margin: 28px 0 0; color: var(--muted); text-decoration: none; font-size: var(--text-sm); }
.back:hover { color: var(--text); }
.detail-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: end; margin: 18px 0 8px; }
.detail-head.nocover { grid-template-columns: 1fr; }
.cover { width: 160px; height: 160px; border-radius: var(--r); object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); font-weight: 700; margin-bottom: 6px; }
.detail-head h1 { font: 800 var(--text-xl)/1.08 var(--font-display); letter-spacing: -.02em; margin: 0 0 10px; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: var(--text-sm); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 700; font-size: var(--text-sm); margin-top: 14px; }
.btn:hover { filter: brightness(1.08); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btns .btn { margin-top: 0; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); filter: none; }
.listen-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ptag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; margin-right: 6px; background: var(--surface-2); color: var(--muted); vertical-align: 1px; }
.ptag.ht { background: var(--accent-soft); color: var(--accent-text); }
.ptag.alt { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.version { margin: 20px 0 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; font-size: var(--text-sm); display: grid; gap: 6px; max-width: 75ch; }
.version a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.comments { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--text-sm); color: var(--muted); }
.comments b { color: var(--text); margin-right: 6px; }
.desc { white-space: pre-wrap; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; margin: 20px 0 0; font-size: var(--text-sm); max-width: 75ch; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: var(--text-xs); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.tracks { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: var(--text-sm); }
.tracks th { text-align: left; font-weight: 500; color: var(--faint); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.tracks td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tracks tr:hover td { background: var(--surface); }
.tracks .num, .tracks .time { font-family: var(--font-mono); color: var(--faint); white-space: nowrap; width: 1%; }
.tracks .seg td { color: var(--faint); font-style: italic; }
.tracks a { text-decoration: none; }
.tracks a:hover .tt { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tt { font-weight: 600; }
.ta { color: var(--muted); }
.tracks .r { text-align: right; width: 1%; }

.play { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.play .d { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted); padding-top: 2px; }
.play .n a { font-weight: 600; text-decoration: none; }
.play .n a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ctx { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin-top: 8px; font-size: var(--text-sm); }
.ctx span { color: var(--faint); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.ctx a { color: var(--muted); text-decoration: none; }
.ctx a:hover { color: var(--text); }
.listen { font-size: var(--text-sm); color: var(--accent-text); text-decoration: none; white-space: nowrap; font-weight: 600; }
.listen:hover { text-decoration: underline; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.empty b { display: block; font: 700 var(--text-lg) var(--font-display); color: var(--text); margin-bottom: 4px; }
.loading { padding: 80px 0; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
.more { display: block; margin: 16px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; cursor: pointer; font-size: var(--text-sm); }
.more:hover { border-color: var(--accent); }
.foot { color: var(--faint); font-size: var(--text-xs); padding: 48px 20px 32px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .top-inner { gap: 12px; }
  .brand-text span { display: none; }
  .tabs a { padding: 7px 10px; }
  .hero { padding-top: 28px; }
  .show-row, .play { grid-template-columns: 1fr auto; }
  .show-row .d, .play .d { grid-column: 1 / -1; }
  .artist-row { grid-template-columns: 1fr auto; }
  .artist-row .hide-sm { display: none; }
  .detail-head { grid-template-columns: 1fr; }
  .cover { width: 112px; height: 112px; }
  .tracks .time, .tracks th.time { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* home */
.feature { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 40px 0 8px; align-items: start; }
.feature-art img { width: 220px; height: 220px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); display: block; }
.feature-art:empty { display: none; }
.feature:has(.feature-art:empty) { grid-template-columns: 1fr; }
.feature h1 { font: 800 var(--text-xl)/1.05 var(--font-display); letter-spacing: -.02em; margin: 0 0 10px; overflow-wrap: anywhere; }
.feature-desc { white-space: pre-wrap; color: var(--muted); font-size: var(--text-sm); margin-top: 14px; max-width: 62ch; }
.feature-tl { grid-column: 1 / -1; list-style: none; counter-reset: t; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.feature-tl li { counter-increment: t; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: var(--text-sm); display: flex; gap: 10px; min-width: 0; }
.feature-tl li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); color: var(--faint); }
.feature-tl li.more-li::before { content: ''; }
.feature-tl a { text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-tl a:hover .tt { color: var(--accent-text); }
.home-search { margin: 28px 0 8px; }
.home-search input { font-size: var(--text-base); padding: 14px 18px 14px 50px; }
.sec-head a.count { text-decoration: none; }
.sec-head a.count:hover { color: var(--accent-text); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { position: relative; display: block; aspect-ratio: 1; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img, .card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface-2); }
.card-b { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; display: grid; gap: 4px; background: linear-gradient(to top, rgba(0,0,0,.93) 40%, rgba(0,0,0,.72) 75%, rgba(0,0,0,.35) 92%, transparent); color: #fff; }
.card .eyebrow { margin: 0; color: #ffb3a0; }
.card-t { font-weight: 700; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.card-b .small { color: rgba(255,255,255,.78); }
.card-p { margin-top: 4px; }
.card-p .ptag { background: rgba(0,0,0,.5); color: #fff; }
.card-p .ptag.ht { background: var(--accent); color: #fff; }
.season-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.chip:hover { border-color: var(--accent); }
.chip span { color: var(--muted); font-size: var(--text-xs); }

/* seasons */
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.season { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s; }
.season:hover { border-color: var(--accent); }
.season-n { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface-2); }
.season-n span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.season-n b { font: 800 2.2rem/1 var(--font-display); }
.season-b { display: grid; gap: 4px; min-width: 0; }
.season-y { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted); }
.season-c b { font-size: var(--text-lg); }
.bar { height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.season-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; padding: 14px 6px; border-bottom: 1px solid var(--line); align-items: start; }
.ep:hover { background: var(--surface); }
.ep-n { font: 800 1.5rem/1 var(--font-display); color: var(--faint); text-decoration: none; padding-top: 2px; font-variant-numeric: tabular-nums; }
.ep:hover .ep-n { color: var(--accent-text); }
.ep-t { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ep-t:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.ep-v { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: var(--text-xs); }
.ep-v a { color: var(--muted); text-decoration: none; }
.ep-v a:hover { color: var(--text); }
.ep-l { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ep-l .ptag { margin: 0; }

@media (max-width: 720px) {
  .top-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 6px; }
  .tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .theme { margin-left: auto; }
  .feature { grid-template-columns: 1fr; padding-top: 24px; }
  .feature-art img { width: 132px; height: 132px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-b { padding: 32px 10px 10px; }
  .ep { grid-template-columns: 40px 1fr; }
  .ep-l { grid-column: 2; justify-content: flex-start; }
}

/* player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.player[hidden] { display: none; }
body.has-player { padding-bottom: 120px; }
.pl-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(260px, 1.3fr) auto; gap: 16px; align-items: center; padding-top: 10px; padding-bottom: 6px; }
.pl-meta { min-width: 0; }
.pl-meta .eyebrow { margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name { font-weight: 700; font-size: var(--text-sm); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-src { display: flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.pl-src button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.pl-src button.on { background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.pl-slot { min-width: 0; }
.pl-slot iframe { display: block; border: 0; width: 100%; height: 60px; border-radius: 8px; }
.pl-slot audio { width: 100%; height: 40px; display: block; }
.pl-close { background: none; border: 1px solid var(--line); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }
.pl-close:hover { color: var(--text); }
.pl-msg { font-size: var(--text-xs); color: var(--muted); padding-bottom: 8px; min-height: 4px; }
.pl-msg:empty { padding-bottom: 4px; }
.listen-here { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 24px 0 0; }
.listen-here .btn { margin: 0; border: 0; cursor: pointer; font-family: inherit; }
.listen-here .btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.jump { font: inherit; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-text); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.jump:hover { background: var(--accent); color: #fff; }
.songjump { all: unset; cursor: pointer; display: block; }
.songjump:hover .tt { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.songjump:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.tracks a.badge { text-decoration: none; }
.tracks a.badge:hover { box-shadow: 0 0 0 1px var(--accent); }
.tracks tr.now td { background: var(--accent-soft); }
.tracks tr.now .num { color: var(--accent-text); font-weight: 700; }
.tracks tr.cued td { box-shadow: inset 0 1px 0 var(--accent), inset 0 -1px 0 var(--accent); }
@media (max-width: 720px) {
  .pl-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
  .pl-src { grid-row: 1; grid-column: 2; }
  .pl-close { position: absolute; top: -40px; right: 12px; background: var(--surface); }
  .pl-slot { grid-column: 1 / -1; }
  body.has-player { padding-bottom: 150px; }
  .tracks .time, .tracks th.time { display: table-cell; }
}

/* discovery panels */
.discover { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 8px; }
.discover.two { margin-top: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.panel header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.panel h3 { font: 700 1.05rem/1.2 var(--font-display); margin: 0; }
.panel header p { margin: 2px 0 0; font-size: var(--text-xs); color: var(--faint); }
.shuffle { flex: none; background: var(--surface-2); border: 0; border-radius: 999px; padding: 5px 12px; font-size: var(--text-xs); font-weight: 700; cursor: pointer; color: var(--muted); }
.shuffle:hover { color: var(--text); background: var(--accent-soft); }
.pick { display: grid; gap: 2px; text-decoration: none; margin: 4px 0 10px; }
.pick-t { font: 800 1.6rem/1.1 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pick:hover .pick-t { color: var(--accent-text); }
.pick-a { color: var(--muted); }
.mini { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mini li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: var(--text-sm); min-width: 0; }
.mini li:first-child { border-top: 0; }
.mini li > a:first-child { text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini li > a:first-child:hover .tt, .mini li > a:first-child:hover { color: var(--accent-text); }
.mini .small { flex: none; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip, .across .chip { font-size: var(--text-sm); padding: 5px 11px; cursor: pointer; color: var(--text); font-family: inherit; }
.chip span { margin-left: 6px; color: var(--faint); font-size: var(--text-xs); }
.timeline { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin: 20px 0 0; padding: 0 2px; max-width: 640px; }
.ty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ty i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 0; }
.ty span { font-size: 10px; color: var(--faint); font-family: var(--font-mono); }

/* episode nav */
.epnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; }
.nav-b { display: grid; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; min-width: 0; }
a.nav-b:hover { border-color: var(--accent); }
.nav-b span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.nav-b b { font-family: var(--font-mono); font-size: var(--text-base); }
.nav-b.l b::before { content: '← '; color: var(--accent-text); }
.nav-b.r b::after { content: ' →'; color: var(--accent-text); }
.nav-b.u b::before { content: '↑ '; color: var(--accent-text); }
.nav-b.d b::after { content: ' ↓'; color: var(--accent-text); }
.nav-b.r, .nav-b.d { text-align: right; }
.nav-b em { font-style: normal; font-size: var(--text-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-b.off { opacity: .45; }
.across { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.across .chip { padding: 3px 9px; font-size: var(--text-xs); font-family: var(--font-mono); }
.across .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.across .chip.off { opacity: .35; cursor: default; }
.across a.small { margin-left: 6px; text-decoration: none; color: var(--accent-text); }

/* segmented + grid */
.seg { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; margin-top: 16px; }
.seg a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.seg a.on { background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.grid-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid-tools .seg { margin-top: 16px; }
.pan { display: inline-flex; gap: 4px; margin: 16px 0 0 auto; }
.pan button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; }
.pan button:hover { border-color: var(--accent); }
.chips.rowjump { margin-top: 14px; }
.chips.rowjump .chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.sgrid-wrap { position: relative; overflow: auto; max-height: calc(100vh - 300px); min-height: 360px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: grab; overscroll-behavior: contain; scrollbar-width: thin; outline: none; }
.sgrid-wrap:focus-visible { border-color: var(--accent); }
.sgrid-wrap.dragging { cursor: grabbing; user-select: none; }
.sgrid-wrap.dragging a { pointer-events: none; }
.sgrid { --cw: 104px; display: grid; grid-template-columns: 76px repeat(var(--cols), var(--cw)); grid-auto-rows: var(--cw); width: max-content; }
.compact .sgrid { --cw: 46px; }
.sg-corner, .sg-col { position: sticky; top: 0; z-index: 2; background: var(--surface); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--faint); height: 32px; border-bottom: 1px solid var(--line); }
.sgrid { grid-template-rows: 32px; }
.sg-corner { left: 0; z-index: 3; }
.sg-row { position: sticky; left: 0; z-index: 1; background: var(--surface); display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border-right: 1px solid var(--line); text-decoration: none; }
.sg-row b { font: 800 1.3rem/1 var(--font-display); }
.sg-row span { font-size: 10px; color: var(--faint); font-family: var(--font-mono); margin-top: 3px; }
.sg-row:hover b { color: var(--accent-text); }
.sg-cell { position: relative; margin: 3px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--accent) calc(var(--heat, 0) * 70% + 8%), var(--surface-2)); text-decoration: none; display: block; transition: transform .12s, box-shadow .12s; }
.sg-cell img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.sg-cell:hover { transform: scale(1.06); z-index: 1; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.sg-cell.empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); opacity: .5; }
.sg-cell.empty:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.sg-cell.focus { box-shadow: 0 0 0 3px var(--accent); }
.sg-code { position: absolute; left: 4px; bottom: 4px; font: 700 11px/1 var(--font-mono); background: rgba(0,0,0,.65); color: #fff; padding: 3px 5px; border-radius: 4px; }
.compact .sg-code { position: static; display: grid; place-items: center; height: 100%; background: none; color: var(--text); font-size: 10px; padding: 0; }
.sg-live { position: absolute; top: 4px; left: 4px; font: 700 9px/1 var(--font-body); letter-spacing: .06em; background: var(--accent); color: #fff; padding: 2px 4px; border-radius: 3px; }
.sg-x { position: absolute; top: 4px; right: 4px; font: 700 10px/1 var(--font-mono); background: var(--bg); color: var(--text); padding: 2px 4px; border-radius: 3px; }
.compact .sg-live, .compact .sg-x { display: none; }

@media (max-width: 720px) {
  .discover { grid-template-columns: 1fr; }
  .epnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epnav .nav-b.u { order: -1; } .epnav .nav-b.d { order: -1; }
  .sgrid { --cw: 84px; grid-template-columns: 58px repeat(var(--cols), var(--cw)); }
  .compact .sgrid { --cw: 40px; }
  .pan { margin-left: 0; }
  .sgrid-wrap { max-height: 62vh; }
}

.tracks td.r { white-space: nowrap; }

/* Spotify playlist kit (show page) */
.kit { margin: 20px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.kit summary { cursor: pointer; font-weight: 600; }
.kit-step { margin: 14px 0 0; }
.kit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.kit-head span { display: flex; gap: 6px; flex-wrap: wrap; }
.kit .kit-btn { margin: 0; padding: 6px 12px; font-size: var(--text-xs); cursor: pointer; font-family: inherit; border: 0; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.kit textarea, .kit input { width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: var(--text-sm); resize: vertical; }
.kit input { margin: 0 0 6px; }
.kit-cover { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }

/* screen-reader-only text (page change announcements) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.foot a { color: inherit; }
.share-link { color: var(--muted); }

/* ---- Émissions : grille + filtres ---- */
.shows-hero { padding-bottom: 8px; }
.grid-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.grid-tools.sub { margin: 4px 0 12px; }
.filters.inline { margin: 0; flex: 1 1 320px; }
.catchips { margin-top: 14px; gap: 8px; }
.catchips .chip { padding: 6px 12px; font-size: var(--text-sm); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on span { color: rgba(255,255,255,.85); }
.catsep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.rowjump { align-items: center; }

/* ---- Musique : découverte compacte ---- */
.dpanel { margin: 0 0 8px; padding: 0; overflow: hidden; }
.dtabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.dtabs button { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; font: 600 var(--text-sm) var(--font-body); color: var(--muted); cursor: pointer; }
.dtabs button:hover { color: var(--text); }
.dtabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.dsub { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px 4px; }
.dsub p { margin: 0; font-size: var(--text-xs); color: var(--faint); }
.dpanel > .mini, .dpanel > .chips, .dpanel > .picks { padding: 4px 18px 16px; margin: 0; }
.mini.cols { columns: 2 320px; column-gap: 28px; }
.mini.cols li { break-inside: avoid; }
.chips.tight { gap: 6px; }
.chips.tight .chip { padding: 4px 10px; font-size: var(--text-xs); }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sec-head .seg { margin-left: auto; }

/* ---- Vidéos ---- */
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; }
.vcard { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .15s; }
.vcard:hover, .vcard.on { border-color: var(--accent); transform: translateY(-2px); }
.vcard .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.vcard .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .vplay { font-style: normal; line-height: 1; padding-left: 2px; position: absolute; left: 12px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.vcard-b { padding: 12px 14px 14px; display: grid; gap: 4px; }
.vcard-t { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stage { margin: 0 0 28px; scroll-margin-top: 80px; }
.stage .frame { position: relative; aspect-ratio: 16 / 9; max-height: 70vh; background: #000; border-radius: var(--r); overflow: hidden; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage-b h2 { font: 700 1.2rem/1.25 var(--font-display); margin: 14px 0 6px; }
.row.on { border-color: var(--accent); }
@media (max-width: 720px) { .mini.cols { columns: 1; } .catsep { display: none; } }

.chip .cn { font-weight: inherit; }

.tabs a { white-space: nowrap; }
@media (max-width: 720px) { .tabs { overflow-x: auto; scrollbar-width: none; } }

/* ---- Émissions : la case « Au hasard » ---- */
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.weekly-box { position: relative; flex: none; width: 150px; }
.weekly { position: relative; display: block; width: 150px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; transition: border-color .15s, transform .15s; }
.weekly:hover { border-color: var(--accent); transform: translateY(-2px); }
.weekly img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.weekly-l { position: absolute; left: 8px; top: 8px; font: 700 10px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.6); padding: 4px 7px; border-radius: 999px; }
.weekly-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font: 700 var(--text-xs)/1.2 var(--font-mono); color: #fff; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekly-re { position: absolute; right: -8px; top: -8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 15px; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.weekly-re:hover { border-color: var(--accent); color: var(--accent-text); }
@media (max-width: 720px) { .weekly-box, .weekly { width: 96px; } .weekly-l { font-size: 8px; } }

/* ---- À venir ---- */
.vcard .vlink { display: block; text-decoration: none; color: inherit; }
.vcard-tag { padding: 0 14px 14px; margin-top: -4px; }
.ptag.hot { background: var(--accent); color: #fff; text-decoration: none; }
.ptag.new { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
a.ptag { text-decoration: none; }

/* vignettes vidéo : 4 colonnes sur ordinateur, 3 sur tablette, 2 sur mobile */
.vcards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vcard-b { padding: 9px 11px 10px; gap: 2px; }
.vcard-t { font-size: var(--text-sm); }
.vcard-tag { padding: 0 11px 11px; }
.vcard .vplay { left: 8px; bottom: 8px; width: 28px; height: 28px; font-size: 11px; }
@media (max-width: 960px) { .vcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .vcard-t { font-size: var(--text-xs); } }

/* ---- « À réutiliser » ---- */
.rbtn { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; margin-right: 6px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); font-weight: 700; font-size: var(--text-sm); text-decoration: none; vertical-align: middle; }
.rbtn:hover { border-color: var(--accent); color: var(--accent-text); }
.rbtn.on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.rbtn.wait { border-style: solid; }
.rbtn.big { height: 36px; padding: 0 14px; display: inline-flex; gap: 6px; }
.segn { margin-left: 6px; font-size: var(--text-xs); color: var(--faint); }
.reuse-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.reuse-row a { text-decoration: none; }
.reuse-row .meta a { text-decoration: underline; }
.reuse-note { margin-top: 6px; font-size: var(--text-sm); color: var(--muted); font-style: italic; }
.reuse-row .t { font-weight: 700; color: var(--text); }
.reuse-row .a { color: var(--muted); }
.reuse-row .meta { font-size: var(--text-xs); color: var(--faint); margin-top: 3px; }

.install-btn { margin-top: 12px; }
