/* ====================================================================
   MINIMALER Radar — listening-console aesthetic
   MINIMALER brand: black & white only. Black is #111111.
   Greys are the only in-betweens; white carries every accent.
   ==================================================================== */

:root {
  --black:     #111111;   /* THE brand black */
  --raised:    #1b1b1b;
  --raised-2:  #242424;
  --line:      #323232;
  --line-soft: #1f1f1f;
  --white:     #ffffff;
  --grey:      #9b9b9b;
  --grey-dim:  #6c6c6c;
  --grey-faint:#484848;
  --radius:    3px;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Bricolage Grotesque", var(--mono);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100dvh; padding-bottom: 96px; }
a { color: inherit; }

/* ---- top bar ------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 4vw, 32px);
  background: rgba(17,17,17,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; }

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--grey);
}
.wordmark strong { color: var(--white); font-weight: 800; }

/* the pulsing radar "signal" dot — white on black */
.signal {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.5);
  animation: ping 2.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); }
  70%  { box-shadow: 0 0 0 13px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.status {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-item { color: var(--grey); white-space: nowrap; }
.status-item.dim { color: var(--grey-faint); }
.status-item b { color: var(--white); font-weight: 600; }
@media (max-width: 620px) {
  .status #stat-refresh { display: none; }
}

/* ---- view tabs ----------------------------------------------------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 0 clamp(14px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}
.tab {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--grey-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 13px 14px 11px;
  cursor: pointer;
  transition: color .14s, border-color .14s;
  margin-bottom: -1px;
}
.tab:hover { color: var(--white); }
.tab.active { color: var(--white); border-bottom-color: var(--white); }
.tab-count {
  display: inline-block;
  min-width: 17px;
  text-align: center;
  font-size: 10px;
  background: var(--white);
  color: var(--black);
  border-radius: 9px;
  padding: 1px 5px;
  margin-left: 4px;
  font-weight: 600;
}
.tab:not(.active) .tab-count { background: var(--grey-faint); color: var(--white); }

/* ---- language dropdown (EN / FR / RO / DE / ES / IT) -------------- */
.lang-toggle {
  margin-left: auto;          /* push to the right edge of the tabs row */
  display: flex;
  align-items: center;
  align-self: center;
}
.lang-select {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--grey-dim);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 8px;
  cursor: pointer;
  transition: color .14s, border-color .14s;
}
.lang-select:hover { color: var(--white); border-color: var(--grey-faint); }
.lang-select:focus-visible { outline: 1px solid var(--white); }
.lang-select option { background: var(--black); color: var(--white); }

/* ---- radar section pills ------------------------------------------ */
.sections {
  display: flex;
  gap: 7px;
  padding: 12px clamp(14px, 4vw, 32px) 11px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.sections[hidden] { display: none; }
.section-pill {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.section-pill:hover { color: var(--white); border-color: var(--grey-faint); }
.section-pill.active {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}
.section-count {
  display: inline-block;
  min-width: 15px;
  text-align: center;
  font-size: 10px;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 9px;
  background: var(--grey-faint);
  color: var(--white);
  font-weight: 600;
}
.section-pill.active .section-count { background: var(--black); color: var(--white); }

/* ---- controls ------------------------------------------------------ */
.controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px clamp(14px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}
.controls[hidden] { display: none; }
.control-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.control-line--end { justify-content: flex-end; gap: 16px; margin-top: 2px; }
.control-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--grey-faint);
  width: 38px;
  flex-shrink: 0;
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip, .toggle {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 11px;
  cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.chip:hover, .toggle:hover { color: var(--white); border-color: #454545; }
.chip.active {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}
.chip .count { opacity: .5; margin-left: 5px; }
.toggle[aria-pressed="true"] {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.sort {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-faint);
}
.sort select {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 8px;
  cursor: pointer;
}

/* ---- round 2a: search, selects, surprise, banner ------------------- */
.search {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--white);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
}
.search::placeholder { color: var(--grey-dim); }
.search:focus { outline: none; border-color: var(--grey-faint); }

.select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-faint);
}
.select-wrap select {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 7px;
  cursor: pointer;
}
.toggle--accent {
  border-color: var(--grey-faint);
  color: var(--white);
}
.toggle--accent:hover { border-color: var(--white); }

.filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 clamp(14px, 4vw, 32px);
  padding: 9px 13px;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-banner[hidden] { display: none; }
.filter-banner b { font-weight: 700; }
#banner-clear {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--black);
  background: none;
  border: 1px solid rgba(17,17,17,0.4);
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
  flex-shrink: 0;
}
#banner-clear:hover { border-color: var(--black); }

.show-more {
  display: block;
  width: 100%;
  margin: 18px 0 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--white);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.show-more:hover { border-color: var(--grey-faint); background: var(--raised-2); }

/* tappable label / artist */
.link-label, .link-artist {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px dotted var(--grey-faint);
  transition: color .12s, border-color .12s;
}
.link-label { color: var(--grey); }
.link-artist { color: var(--grey); }
.link-label:hover, .link-artist:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}
.dot-sep { color: var(--grey-faint); margin: 0 2px; }

/* surprise-me highlight pulse */
@keyframes flashcard {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); }
  20%  { box-shadow: 0 0 0 2px rgba(255,255,255,0.85); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); }
}
.release.flash { animation: flashcard 1.6s ease-out; }

/* ---- release list -------------------------------------------------- */
.release-list { padding: 0 clamp(14px, 4vw, 32px); }

.date-head {
  position: sticky;
  top: 53px;
  z-index: 20;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0 9px;
  background: linear-gradient(var(--black) 72%, transparent);
}
.date-head .d-day {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.date-head .d-rel {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-faint);
}
.date-head .d-rule { flex: 1; height: 1px; background: var(--line); align-self: center; }

/* ---- a release row ------------------------------------------------- */
.release {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(7px);
  animation: rise .4s ease forwards;
  cursor: pointer;
}
.release .cover img { transition: opacity .14s; }
.release:hover .cover img { opacity: .82; }
@keyframes rise { to { opacity: 1; transform: none; } }

.cover {
  width: 76px; height: 76px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 25%, rgba(255,255,255,0.06), transparent 55%);
}

.meta { min-width: 0; }

.release-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.badge-new {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1px 6px;
  transform: translateY(-1px);
}
.artists { font-size: 13px; color: var(--grey); margin-top: 1px; }
.spec {
  font-size: 11px;
  color: var(--grey-faint);
  letter-spacing: 0.02em;
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
}
.spec b { color: var(--grey); font-weight: 500; }
.spec .price { color: var(--white); }

.styles { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.style-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 7px;
}

/* ---- tracklist ----------------------------------------------------- */
.tracks { list-style: none; margin-top: 11px; display: flex; flex-direction: column; gap: 1px; }
.track {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  padding: 3px 0;
}
.play {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 9px;
  color: var(--grey);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.play:hover { color: var(--white); border-color: #454545; }
.play.playing {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}
.play[disabled] { opacity: .3; cursor: default; }
.track .pos { color: var(--grey-faint); width: 26px; flex-shrink: 0; font-size: 11px; }
.track .tname { color: var(--white); }
.track.loading .play { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* fallback "listen on store" when no snippets were found */
.listen-out {
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 6px 11px;
  text-decoration: none;
  transition: color .14s, border-color .14s;
}
.listen-out:hover { color: var(--white); border-color: var(--grey-dim); }

/* ---- footer row of a card: source + wishlist heart ---------------- */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-faint);
  text-decoration: none;
  transition: color .14s;
}
.source:hover { color: var(--white); }
.source .dot { color: var(--white); }

.heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;            /* push to the right of the title row */
  align-self: center;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white);
  background: var(--raised);
  border: 1px solid var(--grey-faint);
  border-radius: var(--radius);
  padding: 6px 11px;
  cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.heart:hover { border-color: var(--white); }
.heart .ico { font-size: 13px; line-height: 1; }
.heart.saved {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

/* repress "time on the shelf" line */
.repress-line {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
}

/* ---- wishlist view ------------------------------------------------- */
.store-group { margin-top: 8px; }
.store-head {
  position: sticky;
  top: 53px;
  z-index: 20;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0 10px;
  background: linear-gradient(var(--black) 72%, transparent);
}
.store-head .s-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.store-head .s-count {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-faint);
}
.store-head .s-rule { flex: 1; height: 1px; background: var(--line); align-self: center; }
.store-head .s-open {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-decoration: none;
}
.store-head .s-open:hover { color: var(--white); }

.wish {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.wish .cover { width: 54px; height: 54px; }
.wish .w-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}
.wish .w-sub {
  font-size: 11px;
  color: var(--grey-dim);
  margin-top: 2px;
}
.wish .w-sub a { color: var(--grey); text-decoration: none; }
.wish .w-sub a:hover { color: var(--white); }
.wish-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.w-open {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--black);
  background: var(--white);
  border-radius: var(--radius);
  padding: 5px 9px;
  text-decoration: none;
  white-space: nowrap;
}
.w-remove {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 9px;
  cursor: pointer;
}
.w-remove:hover { color: var(--white); border-color: #454545; }

/* ---- placeholder / empty ------------------------------------------ */
.placeholder, .empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--grey-faint);
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}

.page-foot {
  padding: 36px clamp(14px, 4vw, 32px) 24px;
  color: var(--grey-faint);
  font-size: 11px;
  line-height: 1.7;
  max-width: 560px;
}

/* ---- now-playing player bar --------------------------------------- */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px clamp(14px, 4vw, 32px);
  padding-bottom: calc(11px + env(safe-area-inset-bottom));
  background: rgba(27,27,27,0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  animation: slideup .26s ease;
}
@keyframes slideup { from { transform: translateY(100%); } }
/* the .player rule sets display:flex, which would override the [hidden]
   attribute — this keeps the bar truly hidden until a track is playing. */
.player[hidden] { display: none; }

.player-cover {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--raised);
}
.player-info { flex: 1; min-width: 0; }
.player-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-sub {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-progress {
  margin-top: 6px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}
.player-progress-fill { height: 100%; width: 0%; background: var(--white); }
.player-btn {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 13px;
  color: var(--white);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .14s;
}
.player-btn:hover { border-color: #454545; }
.player-btn--close { font-size: 11px; color: var(--grey-dim); }
.player-btn--skip { width: 32px; height: 32px; font-size: 11px; color: var(--grey); }
.player-controls { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.player-queue {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--grey-dim);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .13s;
}
.player-queue:hover { color: var(--white); }
.player-queue[hidden] { display: none; }
.radio-flag {
  color: var(--black);
  background: var(--white);
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.radio-flag[hidden] { display: none; }

/* ---- queue panel -------------------------------------------------- */
.queue-panel {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(69px + env(safe-area-inset-bottom));
  z-index: 45;
  max-height: 56vh;
  display: flex;
  flex-direction: column;
  background: rgba(20,20,20,0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  animation: slideup .22s ease;
}
.queue-panel[hidden] { display: none; }
.qp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(14px, 4vw, 32px);
  border-bottom: 1px solid var(--line-soft);
}
.qp-title {
  flex: 1;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
}
.qp-clear {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 9px;
  cursor: pointer;
}
.qp-clear:hover { color: var(--white); border-color: var(--grey-faint); }
.qp-close {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 11px;
  color: var(--grey-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.qp-close:hover { color: var(--white); border-color: var(--grey-faint); }

.qp-list { overflow-y: auto; padding: 6px clamp(14px, 4vw, 32px) 10px; }
.qp-empty {
  padding: 22px 0;
  text-align: center;
  font-size: 12px;
  color: var(--grey-dim);
}
.qp-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(20,20,20,0.98);
  cursor: pointer;
}
.qp-row:last-child { border-bottom: none; }
.qp-row.current { cursor: default; }
.qp-row.dragging {
  position: relative;
  z-index: 5;
  background: var(--raised-2);
  border-radius: var(--radius);
  border-bottom-color: transparent;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.qp-grip {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--grey-faint);
  cursor: grab;
  touch-action: none;
}
.qp-row.dragging .qp-grip { cursor: grabbing; }
.qp-now {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 8px;
  color: var(--white);
}
.qp-info { flex: 1; min-width: 0; }
.qp-track {
  font-size: 12.5px;
  color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qp-row.current .qp-track { font-weight: 700; }
.qp-rec {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qp-remove {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 10px;
  color: var(--grey-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.qp-remove:hover { color: var(--white); border-color: var(--grey-faint); }
.qp-tag {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-dim);
}
.qp-foot {
  padding: 9px clamp(14px, 4vw, 32px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-dim);
}
.qp-foot:empty { display: none; }

/* ---- browse: directories ------------------------------------------ */
.dir-section { margin-bottom: 30px; }
.dir-head { margin: 8px 0 16px; }
.dir-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  display: block;
}
.dir-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-faint);
}
.store-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.sc-main { flex: 1; min-width: 200px; }
.sc-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.sc-blurb {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--grey);
}
.sc-count {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-faint);
}
.sc-actions { display: flex; align-items: center; gap: 10px; }
.sc-browse {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: var(--radius);
  padding: 7px 13px;
  cursor: pointer;
  font-weight: 700;
}
.sc-browse:hover { background: #e2e2e2; }
.sc-open {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-faint);
  text-decoration: none;
}
.sc-open:hover { color: var(--white); }

.label-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 7px;
}
.label-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--grey);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  text-align: left;
  transition: color .12s, border-color .12s, background .12s;
}
.label-chip:hover {
  color: var(--white);
  border-color: var(--grey-faint);
  background: var(--raised-2);
}
.lc-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-count {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--grey-faint);
}
.label-chip:hover .lc-count { color: var(--grey); }

/* ---- record pop-up ------------------------------------------------ */
.record-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}
.record-modal[hidden] { display: none; }
.rm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(3px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.rm-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
  animation: rmpop .22s ease;
}
@keyframes rmpop { from { opacity: 0; transform: translateY(14px); } }
.rm-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 12px;
  color: var(--white);
  background: rgba(17,17,17,0.85);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.rm-close:hover { border-color: var(--grey-faint); }
.rm-scroll {
  overflow-y: auto;
  padding: clamp(16px, 4vw, 26px);
}
.rm-cover {
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  margin: 0 auto 16px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rm-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.rm-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.18;
}
.rm-artist {
  margin-top: 4px;
  font-size: 14px;
}
.rm-spec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-faint);
}
.rm-spec .price { color: var(--white); }
.rm-tracks { margin-top: 16px; }
.rm-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.rm-section-title {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grey-dim);
  margin-bottom: 10px;
}
.rm-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}
.rm-details dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-faint);
}
.rm-details dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--white);
}
.rm-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey);
  white-space: pre-line;
}
.rm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.rm-share {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 13px;
  cursor: pointer;
}
.rm-share:hover { color: var(--white); border-color: var(--grey-faint); }
.rm-store {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-faint);
  text-decoration: none;
}
.rm-store:hover { color: var(--white); }
.rm-discussion .rm-disc-soon {
  background: var(--raised);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.rm-disc-soon p {
  font-size: 12.5px;
  color: var(--grey);
}
.rm-disc-soon .rm-disc-sub {
  margin-top: 5px;
  font-size: 11px;
  color: var(--grey-faint);
}

/* ---- round 2b: play-next, preview-all, share, dead snippet --------- */
.queue-next {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px 7px;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.queue-next:hover { color: var(--white); border-color: var(--grey-faint); }
.play.dead { opacity: .3; cursor: default; }

.preview-all {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  transition: color .14s, border-color .14s;
}
.preview-all:hover { color: var(--white); border-color: var(--grey-faint); }

.share-btn {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-faint);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .12s;
}
.share-btn:hover { color: var(--white); }

/* ---- spotlight (surprise me / shared permalink) -------------------- */
.spotlight {
  position: relative;
  margin: 4px clamp(14px, 4vw, 32px) 14px;
  padding: 16px;
  background: var(--raised-2);
  border: 1px solid var(--grey-faint);
  border-radius: var(--radius);
  animation: slideup .24s ease;
}
.spotlight[hidden] { display: none; }
.sl-close {
  position: absolute;
  top: 9px; right: 10px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 11px;
  color: var(--grey-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.sl-close:hover { color: var(--white); border-color: var(--grey-faint); }
.sl-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grey-dim);
  margin-bottom: 12px;
}
.sl-body { display: flex; gap: 15px; align-items: flex-start; }
.sl-cover {
  width: 104px; height: 104px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--raised);
}
.sl-meta { min-width: 0; flex: 1; }
.sl-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
}
.sl-artist { font-size: 12.5px; color: var(--grey); margin-top: 3px; }
.sl-spec {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-faint);
  margin-top: 5px;
}
.sl-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sl-play, .sl-again, .sl-share {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  padding: 7px 13px;
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.sl-play {
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  font-weight: 700;
}
.sl-play:hover { background: #e2e2e2; }
.sl-play[hidden] { display: none; }
.sl-again, .sl-share {
  color: var(--grey);
  background: var(--raised);
  border: 1px solid var(--line);
}
.sl-again:hover, .sl-share:hover { color: var(--white); border-color: var(--grey-faint); }
.sl-store {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-faint);
  text-decoration: none;
}
.sl-store:hover { color: var(--white); }
.sl-store[hidden] { display: none; }

/* ---- toast -------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  z-index: 60;
  max-width: 80vw;
  padding: 9px 16px;
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  text-align: center;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.toast[hidden] { display: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- responsive --------------------------------------------------- */
@media (max-width: 480px) {
  .release { grid-template-columns: 60px 1fr; gap: 12px; }
  .cover { width: 60px; height: 60px; }
  .title { font-size: 15px; }
  .control-label { width: 100%; }
  .wish { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .wish .cover { width: 48px; height: 48px; }
  .player { gap: 9px; }
  .player-cover { width: 40px; height: 40px; }
  .player-controls { gap: 4px; }
  .player-btn { width: 34px; height: 34px; }
  .player-btn--skip { width: 29px; height: 29px; }
  .sl-body { flex-direction: column; }
  .sl-cover { width: 100%; height: auto; aspect-ratio: 1; max-width: 220px; }
}

/* ==== 2d-iii — accessibility & offline ============================= */

/* skip link — hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: 8px;
  top: -52px;
  z-index: 1000;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--white);
  color: var(--black);
  padding: 9px 15px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* a clear focus ring for keyboard users on every interactive element */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
/* on inverted (white) surfaces, ring in black so it stays visible */
.toggle.active:focus-visible,
.section-pill.active:focus-visible,
.chip.active:focus-visible,
.sc-browse:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--black);
  outline-offset: 2px;
}

/* offline indicator in the status bar */
.status-offline {
  color: var(--white);
  border: 1px solid var(--grey-faint);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* honour the OS "reduce motion" setting — kill animation and smooth scroll */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
