:root {
  --bg: #fff0f5;
  --card: #ffffff;
  --ink: #1f1b1d;
  --muted: #7a6772;
  --rabbit: #ff6b9d;
  --rabbit-dark: #e91e78;
  --rabbit-light: #ffe4ed;
  --pink-100: #fce7f3;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(233, 30, 120, 0.06), 0 8px 24px rgba(233, 30, 120, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rabbit-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--pink-100);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-logo { font-weight: 700; color: var(--rabbit-dark); font-size: 1rem; }
.site-nav a {
  padding: 0.5rem 1rem; border-radius: 999px; background: var(--rabbit);
  color: white; font-size: 0.875rem; font-weight: 500;
}
.site-nav a:hover { background: var(--rabbit-dark); text-decoration: none; }

.artist-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.hero {
  display: flex; gap: 1.5rem; align-items: center;
  padding: 1.5rem; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.hero-img, .hero-avatar {
  width: 160px; height: 160px; border-radius: 20px; flex-shrink: 0;
  object-fit: cover;
}
.hero-avatar {
  background: linear-gradient(135deg, var(--rabbit), var(--rabbit-dark));
  color: white; display: grid; place-items: center;
  font-size: 3rem; font-weight: 700;
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
  margin: 0 0 0.25rem; font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--rabbit-dark);
  letter-spacing: -0.02em;
}
.disambig { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; font-style: italic; }

.tags { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tags li span,
.tags li .tag-link {
  display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px;
  background: var(--pink-100); color: var(--rabbit-dark); font-size: 0.78rem; font-weight: 500;
  text-decoration: none; transition: background 0.15s;
}
.tags li .tag-link:hover { background: var(--pink-300); color: white; text-decoration: none; }

.external {
  margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted);
}
.external a { color: var(--rabbit-dark); }

.cta { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn-primary {
  display: inline-block; padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--rabbit); color: white; font-weight: 600; font-size: 0.95rem;
}
.btn-primary:hover { background: var(--rabbit-dark); text-decoration: none; }
.btn-secondary {
  display: inline-block; padding: 0.6rem 1.1rem; border-radius: 999px;
  background: #fff4e4; color: #a46200; font-weight: 600; font-size: 0.95rem;
  border: 1px solid #ffd699;
}
.btn-secondary:hover { background: #ffe8c2; color: #7a4a00; text-decoration: none; }
/* Amazon-specific variant — slightly more prominent amber + stronger
   weight. Kept as a modifier class so other secondary buttons stay
   neutral. */
.btn-amazon { background: #fff1d0; color: #7a4a00; border-color: #f5c77a; }
.btn-amazon:hover { background: #ffe3a0; color: #5a3500; }
.affiliate-note {
  margin: 0.45rem 0 0; color: var(--muted); font-size: 0.72rem; font-style: italic;
}

.grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem;
}
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }

.col-main > section, .col-side > aside {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem; margin-bottom: 1.25rem;
}

section h2, aside h2 {
  margin: 0 0 0.75rem; font-size: 1.1rem; color: var(--rabbit-dark); letter-spacing: -0.01em;
}

.bio-body p { margin: 0 0 0.75rem; color: var(--ink); }
.bio-source { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.8rem; }

.similar-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem;
}
.similar-list a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--rabbit-light);
  color: var(--rabbit-dark); font-weight: 500; font-size: 0.9rem;
  transition: background 0.15s;
  min-height: 60px;
}
.similar-list a:hover { background: var(--pink-100); text-decoration: none; }
.similar-list .similar-body {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; flex: 1; gap: 0.1rem;
}
.similar-list .similar-name {
  /* Max 2 lines, ellipsised if longer — keeps card height predictable */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.2; overflow-wrap: anywhere;
}
.similar-list .match { font-size: 0.72rem; color: var(--muted); font-weight: 400; white-space: nowrap; }
/* Same trick as the genre top-artists grid: both real images and
   letter-tile fallback must share an identical 40×40 box, with
   `inline-flex` on the span so width/height actually apply. */
.similar-thumb,
.similar-thumb--fallback {
  width: 40px; height: 40px; min-width: 40px; min-height: 40px;
  border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.similar-thumb { object-fit: cover; background: var(--pink-100); }
.similar-thumb--fallback {
  font-weight: 700; color: white; font-size: 1rem; line-height: 1;
  background: linear-gradient(135deg, var(--rabbit), var(--rabbit-dark));
}

.track-list { padding: 0 0 0 1.5rem; margin: 0; }
.track-list li { margin-bottom: 0.6rem; }
.track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.track-name { font-weight: 500; color: var(--ink); text-decoration: none; }
a.track-name:hover { color: var(--rabbit-dark); }
a.rel-title { color: var(--ink); text-decoration: none; }
a.rel-title:hover { color: var(--rabbit-dark); }
.track-actions { display: inline-flex; gap: 0.65rem; flex-shrink: 0; }
.listen-out { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.buy-out { font-size: 0.78rem; color: #a46200; white-space: nowrap; }
.buy-out:hover { color: #7a4a00; }
.track-list audio { width: 100%; margin-top: 0.3rem; height: 32px; }

.rel-list { list-style: none; padding: 0; margin: 0; }
.rel-list li {
  display: flex; gap: 0.75rem; padding: 0.4rem 0;
  border-bottom: 1px solid var(--pink-100); align-items: baseline;
}
.rel-list li:last-child { border: none; }
.rel-title { flex: 1; }
.rel-year, .rel-type { color: var(--muted); font-size: 0.85rem; }
.rel-buy { font-size: 0.78rem; color: #a46200; white-space: nowrap; }
.rel-buy:hover { color: #7a4a00; }

.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; font-size: 0.9rem; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; }

.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted); font-size: 0.85rem;
  border-top: 1px solid var(--pink-100);
}
.site-footer p { margin: 0.25rem 0; }
.affiliate-disclosure { color: var(--muted); font-size: 0.78rem; opacity: 0.7; }

.breadcrumb {
  font-size: 0.88rem; color: var(--muted);
  margin: 0 0 1rem; display: flex; flex-wrap: wrap; row-gap: 0.25rem; align-items: center;
}
.breadcrumb a { color: var(--rabbit-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--muted); }
.breadcrumb .bc-sep {
  color: var(--pink-300);
  margin: 0 0.5rem;
  font-size: 0.9em;
  line-height: 1;
}

.intro p {
  margin: 0 0 0.75rem; color: var(--ink); font-size: 1.02rem; line-height: 1.65;
}
.intro p:last-child { margin-bottom: 0; }

.similar-lead {
  margin: 0 0 0.85rem; color: var(--muted); font-size: 0.92rem;
}

.faq details {
  border-top: 1px solid var(--pink-100);
  padding: 0.75rem 0;
}
.faq details:first-of-type { border-top: none; padding-top: 0; }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none; padding-right: 1.5rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  color: var(--rabbit-dark); font-weight: 400; font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq details p {
  margin: 0.5rem 0 0; color: var(--ink); font-size: 0.95rem; line-height: 1.6;
}

/* ─── Genre page ─────────────────────────────────────────────────── */

.hero-genre {
  justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--pink-100), var(--card));
}
.hero-genre .hero-text h1 { font-size: clamp(2rem, 5vw, 3rem); }

.top-artists-lead {
  margin: 0 0 0.85rem; color: var(--muted); font-size: 0.92rem;
}

.artists-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.5rem;
}
/* Every thumb — both real images and the letter-tile fallback — must
   render at the same 56×56 box with identical border radius so rows
   align uniformly regardless of whether a photo was available.
   `inline-flex` + explicit width/height gives the span the same box
   behaviour as the <img>. */
.artist-thumb,
.artist-thumb--fallback {
  width: 56px; height: 56px; min-width: 56px; min-height: 56px;
  border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.artist-thumb { object-fit: cover; background: var(--pink-100); }
.artist-thumb--fallback {
  font-weight: 700; color: white; font-size: 1.5rem; line-height: 1;
  background: linear-gradient(135deg, var(--rabbit), var(--rabbit-dark));
  box-shadow: inset 0 -8px 18px rgba(0,0,0,0.08);
}
.artist-body {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; flex: 1; gap: 0.2rem;
}
/* min-height ensures rows stay the same height whether the name
   wraps to 1 or 2 lines — visually predictable grid. */
.artist-card a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.85rem; border-radius: 14px; min-height: 76px;
  background: var(--rabbit-light); color: var(--rabbit-dark);
  text-decoration: none; font-size: 0.9rem; transition: background 0.15s;
}
.artist-card a:hover { background: var(--pink-100); }
.artist-card .name {
  font-weight: 500; min-width: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.2; overflow-wrap: anywhere;
}
.artist-card .artist-listeners { font-size: 0.72rem; color: var(--muted); font-weight: 400; white-space: nowrap; }

.genre-pills {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.genre-pills li a {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--pink-100); color: var(--rabbit-dark);
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
  transition: background 0.15s;
}
.genre-pills li a:hover { background: var(--pink-300); color: white; }

/* ─── Track / Album pages ─────────────────────────────────────── */

.hero-text .by { font-size: 0.7em; font-weight: 500; color: var(--muted); }
.hero-text .by a { color: var(--rabbit-dark); }

.tracklist {
  list-style: none; padding: 0; margin: 0;
}
.tracklist li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--pink-100);
}
.tracklist li:last-child { border: none; }
.tracklist-link {
  flex: 1; display: flex; align-items: center; gap: 0.75rem;
  color: var(--ink); text-decoration: none;
}
.tracklist-link:hover { color: var(--rabbit-dark); }
.tracklist-num {
  flex-shrink: 0; width: 1.5rem; color: var(--muted); font-size: 0.8rem; text-align: right;
}
.tracklist-name { flex: 1; font-weight: 500; }
.tracklist-dur { color: var(--muted); font-size: 0.82rem; flex-shrink: 0; }

.sim-artist { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

.see-all { margin: 0.85rem 0 0; font-size: 0.9rem; }
.see-all a { color: var(--rabbit-dark); font-weight: 500; }

.similar-detail-list { list-style: none; padding: 0; margin: 0; }
.similar-detail {
  padding: 0.75rem 0; border-bottom: 1px solid var(--pink-100);
}
.similar-detail:last-child { border: none; }
.similar-detail .similar-name { font-weight: 600; color: var(--rabbit-dark); }
.similar-detail .match { margin-left: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.similar-reason { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--ink); }

.listicle-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: listicle;
}
.listicle-list li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--pink-100);
}
.listicle-list li:last-child { border: none; }
.list-rank {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--rabbit-light); color: var(--rabbit-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 0.88rem;
}
.list-name { font-weight: 600; color: var(--rabbit-dark); flex: 1; text-decoration: none; }
.list-name:hover { text-decoration: underline; }
.list-listeners { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

.guide-body h2 { margin: 1.5rem 0 0.6rem; font-size: 1.3rem; color: var(--rabbit-dark); }
.guide-body h3 { margin: 1rem 0 0.4rem; font-size: 1.08rem; color: var(--ink); }
.guide-body p { margin: 0 0 0.85rem; line-height: 1.65; }
.guide-body ul { margin: 0 0 0.85rem 1.2rem; }
.guide-body li { margin-bottom: 0.25rem; }

/* ─── Depth tabs (default / deep / abyss) ─────────────────────────── */
.depth-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.35rem;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  width: fit-content;
}
.depth-tab {
  display: inline-flex; align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--rabbit-dark);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.depth-tab:hover {
  background: var(--rabbit-light);
  text-decoration: none;
}
.depth-tab--current {
  background: var(--rabbit);
  color: white;
  cursor: default;
}
.depth-tab--current:hover {
  background: var(--rabbit-dark);
  color: white;
}
.depth-tab--disabled {
  color: var(--muted);
  opacity: 0.45;
  cursor: not-allowed;
}

/* ─── Per-level intro paragraph ─────────────────────────────────────
   Sits just under the main bio intro and is the only piece of body
   copy that changes per level — visually it's a quiet "context line"
   so it doesn't compete with the bio for attention.                 */
.level-intro {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--pink-100);
  border-left: 3px solid var(--rabbit);
  border-radius: 0 12px 12px 0;
}
.level-intro p {
  margin: 0;
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.6;
}
.level-intro--deep { border-left-color: var(--rabbit-dark); }
.level-intro--abyss {
  border-left-color: #4a1d3d;
  background: #fbe9f2;
}

/* ─── "Latest activity from related artists" rail ──────────────── */
.recent-releases {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.recent-releases h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--rabbit-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rr-list {
  list-style: none;
  margin: 0; padding: 0;
}
.rr-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--pink-100);
  font-size: 0.92rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem;
}
.rr-list li:last-child { border-bottom: none; }
.rr-artist {
  font-weight: 600;
  color: var(--rabbit-dark);
  text-decoration: none;
}
.rr-artist:hover { text-decoration: underline; }
.rr-sep { color: var(--muted); }
.rr-title { color: var(--ink); }
.rr-year, .rr-type {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: var(--pink-100);
  color: var(--rabbit-dark);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
}

/* Internal links injected into the intro body. Subtle so they don't
   compete with the prose, but discoverable on hover. */
.intro p a.intro-link,
.bio p a.intro-link {
  color: var(--rabbit-dark);
  text-decoration: none;
  border-bottom: 1px dashed var(--rabbit);
  transition: border-bottom-style 0.15s, color 0.15s;
}
.intro p a.intro-link:hover,
.bio p a.intro-link:hover {
  color: var(--rabbit);
  border-bottom-style: solid;
  text-decoration: none;
}

/* ─── Crossover scenes (genre page → top combos involving this genre) */
.crossovers {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.crossovers h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--rabbit-dark);
}
.crossovers-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.crossover-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.crossover-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--pink-100);
  border-radius: 12px;
}
.crossover-link {
  font-weight: 600; color: var(--rabbit-dark);
  text-decoration: none;
  flex: 1 1 auto;
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: baseline;
}
.crossover-link:hover { text-decoration: underline; }
.crossover-with { font-size: 0.95rem; }
.crossover-count {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  background: white;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.crossover-genre-link {
  font-size: 0.78rem;
  color: var(--rabbit);
  text-decoration: none;
  white-space: nowrap;
}
.crossover-genre-link:hover { text-decoration: underline; }

/* ─── Discovery of the day ────────────────────────────────────────── */
.discovery-page .hero-genre h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.discovery-grid {
  list-style: none; margin: 1.5rem 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  /* Mobile: 1 column with 3 picks visible (the 4th is below the fold,
     still loaded but lower priority). */
  .discovery-grid { grid-template-columns: 1fr; }
}
.discovery-pick {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  border-left: 3px solid var(--rabbit);
}
.discovery-pick--deep { border-left-color: #4a1d3d; background: #fbe9f2; }
.discovery-link {
  display: flex; gap: 0.75rem; align-items: center;
  text-decoration: none; color: var(--ink);
}
.discovery-link:hover { text-decoration: none; }
.discovery-link:hover .discovery-name { color: var(--rabbit); }
.discovery-img,
.discovery-avatar {
  width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0;
  object-fit: cover;
}
.discovery-avatar {
  background: linear-gradient(135deg, var(--rabbit), var(--rabbit-dark));
  color: white; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 700;
}
.discovery-meta { min-width: 0; flex: 1; }
.discovery-tag {
  display: inline-block;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
  background: white;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
}
.discovery-pick--deep .discovery-tag { background: var(--pink-100); color: var(--rabbit-dark); }
.discovery-name {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  color: var(--rabbit-dark);
}
.discovery-track {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.discovery-track-name { color: var(--ink); font-weight: 500; }
.discovery-pick audio {
  width: 100%;
  height: 32px;
}

.discovery-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.discovery-nav-link {
  color: var(--rabbit-dark); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s;
}
.discovery-nav-link:hover { background: var(--pink-100); text-decoration: none; }
.discovery-nav-today {
  background: var(--rabbit); color: white;
}
.discovery-nav-today:hover { background: var(--rabbit-dark); color: white; }
