@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Sora:wght@600;700;800;900&display=swap");

:root {
  --red: #069494;
  --red-dark: #047070;
  --green: #069494;
  --gold: #FF8243;
  --purple: #FFC0CB;
  --pop-cyan: #00F0FF;
  --pop-pink: #FF46A2;
  --pop-yellow: #FFFF00;
  --pop-orange: #EE4B2B;
  --cream: #e8e0d0;
  --cream-2: #ddd4c0;
  --ink: #1a1513;
  --ink-2: #3a3228;
  --line: rgb(90 82 70 / 20%);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--cream);
  background: #0a0805;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========================
   TOPBAR — CONTAINED
   ======================== */

.topbar {
  background: rgb(9 13 21 / 82%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.55rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar .section-label {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--red);
  background: var(--cream);
  letter-spacing: -0.02em;
}

.brand-text {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}

.social-links {
  display: inline-flex;
  gap: 0.3rem;
}

.social-link {
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  color: var(--accent-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  transition: all 120ms ease;
  position: relative;
}

.social-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: "Sora", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgb(10 16 24 / 92%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  transition: opacity 120ms ease;
  z-index: 10;
}

.social-link[data-tooltip]:hover::after,
.social-link[data-tooltip]:focus-visible::after {
  opacity: 1;
}

body.theme-light .social-link[data-tooltip]::after {
  color: #0f1726;
  background: rgb(248 251 255 / 96%);
  border-color: rgb(15 98 254 / 26%);
}

.social-link:hover {
  background: transparent;
  color: #ffffff;
  border-color: transparent;
  opacity: 0.8;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 100;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--accent-main);
  background: var(--bg-main, #0f1218);
  color: var(--accent-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 160ms ease;
  padding: 0;
}

.jump-top {
  position: fixed;
  bottom: 1.4rem;
  left: 1.4rem;
  z-index: 100;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 18%);
  background: rgb(10 16 24 / 92%);
  color: var(--accent-main);
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, color 120ms ease, border-color 120ms ease;
}

.jump-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.jump-top:hover,
.jump-top:focus-visible {
  color: #ffffff;
  border-color: rgb(255 255 255 / 34%);
}

.theme-toggle:hover {
  background: var(--accent-main);
  color: #0d1622;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-main);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dark mode: show sun, hide moon */
.icon-moon { display: none; }
.icon-sun  { display: block; fill: currentColor; stroke: none; }

/* Light mode: show moon, hide sun */
body.theme-light .icon-moon { display: block; }
body.theme-light .icon-sun  { display: none; }

body.theme-light .theme-toggle {
  border-color: #181410;
  background: #f3f6fb;
  color: #181410;
}

body.theme-light .theme-toggle:hover {
  background: #181410;
  color: #ffffff;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

body.theme-light {
  color: #181410;
  background: #f2f2f2;
}

body.theme-light .page {
  background: #f2f2f2;
}

body.theme-light .topbar {
  background: rgb(248 251 255 / 86%);
  border-bottom-color: rgb(15 23 38 / 14%);
}

body.theme-light .brand-mark {
  background: #ffffff;
  color: #00c7d4;
}

body.theme-light .brand-text {
  color: #ffffff;
}

body.theme-light .social-link,
body.theme-light .theme-toggle {
  border-color: transparent;
  color: #0f62fe;
  background: transparent;
}

body.theme-light .jump-top {
  background: rgb(248 251 255 / 96%);
  color: #0f62fe;
  border-color: rgb(15 23 38 / 18%);
}

body.theme-light .jump-top:hover,
body.theme-light .jump-top:focus-visible {
  color: #0b4fd1;
  border-color: rgb(15 23 38 / 30%);
}

body.theme-light .social-link:hover,
body.theme-light .theme-toggle:hover {
  background: transparent;
  color: #0b4fd1;
  border-color: transparent;
}

body.theme-light .section-label,
body.theme-light .showcase-title-row h1,
body.theme-light .catalogue-head h1,
body.theme-light .results-head h2,
body.theme-light .filters-grid label,
body.theme-light .expanded-label,
body.theme-light .track-artists {
  color: #ee4b2b;
}

body.theme-light .hero-stage::after {
  background: linear-gradient(to bottom, rgb(242 242 242 / 0%) 0%, rgb(242 242 242 / 15%) 25%, rgb(242 242 242 / 35%) 50%, rgb(242 242 242 / 65%) 75%, rgb(242 242 242 / 100%) 100%);
}

body.theme-light .catalogue-head,
body.theme-light .catalogue-controls,
body.theme-light .results-head {
  border-bottom-color: rgb(24 20 16 / 16%);
}

body.theme-light .catalogue-head p,
body.theme-light .results-label,
body.theme-light #result-count,
body.theme-light #results-count {
  color: rgb(24 20 16 / 72%);
}

body.theme-light .filters-grid input,
body.theme-light .filters-grid select {
  color: #181410;
  border-bottom-color: rgb(24 20 16 / 20%);
}

body.theme-light .filters-grid select {
  color-scheme: light;
}

body.theme-light .filters-grid select option {
  background: #f3f6fb;
  color: #181410;
}

body.theme-light .filters-grid select option:checked {
  background: #0f62fe;
  color: #ffffff;
}

body.theme-light .filters-grid input::placeholder,
body.theme-light .filters-grid select::placeholder {
  color: rgb(24 20 16 / 45%);
}

body.theme-light .btn-primary {
  background: #00c7d4;
  border-color: #00c7d4;
  color: #ffffff;
}

body.theme-light .btn-primary:hover {
  background: #08929c;
  border-color: #08929c;
}

body.theme-light .btn-ghost {
  color: #181410;
  border-color: #181410;
}

body.theme-light .btn-ghost:hover {
  background: #181410;
  color: #ffffff;
}

body.theme-light .catalogue-results {
  background: #f2f2f2;
}

body.theme-light .catalogue-results::before {
  background: linear-gradient(to bottom, rgb(242 242 242 / 10%) 0%, rgb(242 242 242 / 55%) 60%, rgb(242 242 242 / 100%) 100%);
}

body.theme-light .catalogue-table {
  background: #ffffff;
  border-color: rgb(24 20 16 / 18%);
}

body.theme-light .catalogue-table th {
  background: #f5f5f5;
  color: #181410;
  border-bottom-color: rgb(24 20 16 / 20%);
}

body.theme-light .catalogue-table th.sortable:hover {
  color: #0f62fe;
}

body.theme-light .catalogue-table td {
  background: #ffffff;
  color: #181410;
  border-bottom-color: rgb(24 20 16 / 12%);
}

body.theme-light .catalogue-table tbody tr:hover td,
body.theme-light .catalogue-row-main:hover td {
  background: #f7f7f7;
}

body.theme-light .catalogue-row-main .platform-link {
  color: #181410;
  border-color: rgb(24 20 16 / 24%);
}

body.theme-light .catalogue-row-expanded .platform-link {
  color: #181410;
  border-color: rgb(24 20 16 / 24%);
}

body.theme-light .artist-line,
body.theme-light .expanded-value {
  color: #181410;
}

body.theme-light .source-track {
  color: #6b7280;
  opacity: 0.8;
}

body.theme-light .role-badge {
  background: #0f62fe;
  color: #ffffff;
}

body.theme-light .role-badge.role-instrumental {
  background: #cbd5e1;
  color: #181410;
}

body.theme-light .role-vocal {
  background: #00c7d4;
  color: #ffffff;
}

body.theme-light .role-instrumental {
  border-color: rgb(24 20 16 / 28%);
  color: #181410;
}

/* ========================
   PAGE WRAPPER
   ======================== */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  background: #0a0805;
}

/* ========================
  SHOWCASE — HERO ROTATOR
  ======================== */

.showcase {
  padding: 2.5rem 0 0;
}

.showcase-inner {
  position: relative;
}

.showcase-title-row {
  padding: 0 1.6rem 1rem;
}

.showcase-title-row h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FF8243;
}

.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.6rem 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.section-label {
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FF8243;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.hero-rotator {
  position: relative;
  border: 2px solid var(--ink);
  border-bottom: none;
  overflow: hidden;
}

.hero-rotator::after {
  display: none;
}

.hero-slide {
  --hero-bg-a: #0a0805;
  --hero-bg-b: #0a0805;
  --hero-glow: rgb(198 43 14 / 35%);
  --hero-stripe: rgb(232 224 208 / 11%);
  --hero-cover-bg: rgb(42 35 24 / 72%);
  --hero-cover-line: rgb(232 224 208 / 24%);
  --hero-text-fade: linear-gradient(90deg, rgb(0 0 0 / 0%) 44%, rgb(0 0 0 / 22%) 64%, rgb(0 0 0 / 58%) 82%, rgb(0 0 0 / 82%) 100%);
  position: absolute;
  inset: 0;
  min-height: 350px;
  padding: 2.1rem;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: #ffffff;
  background: var(--hero-bg-a);
  border: 3px solid #000000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 2000ms ease, visibility 0s linear 2000ms;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-text-fade);
  pointer-events: none;
  z-index: 0;
}

.hero-slide [data-tilt] {
  transition: transform 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 2000ms ease;
  animation: heroZoom 26s ease-in-out infinite alternate;
}

.hero-slide.hero-pan-y {
  background-position: 50% 46%;
  will-change: background-position;
}

.hero-slide.is-active.hero-pan-y {
  animation: heroZoom 26s ease-in-out infinite alternate, heroPanY 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { background-size: 104%; }
  100% { background-size: 112%; }
}

@keyframes heroPanY {
  0% { background-position: 50% 44%; }
  100% { background-position: 50% 56%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active,
  .hero-slide.is-active.hero-pan-y {
    animation: none;
  }
}

.hero-stage {
  position: relative;
  min-height: 390px;
  overflow: visible;
  display: flex;
  align-items: stretch;
}

.hero-stage::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: transparent;
  pointer-events: none;
  z-index: 8;
}

.hero-audio-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 12;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  background: rgb(9 13 21 / 62%);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.hero-audio-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  pointer-events: none;
}

.hero-audio-toggle:hover,
.hero-audio-toggle:focus-visible {
  background: rgb(255 153 0 / 82%);
  border-color: #ff9900;
  color: #0f1218;
  outline: none;
  transform: scale(1.05);
}

.hero-audio-toggle.is-on {
  background: #ff9900;
  border-color: #ff9900;
  color: #0f1218;
}

.hero-audio-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero-red { background: #0a0805; }
.hero-green { background: #0a0805; }
.hero-dark { background: #0a0805; }

.hero-cover {
  display: none !important;
  visibility: hidden;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
}

.hero-overlay {
  display: none;
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 100%);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
}

.hero-cover.motif-pop::after {
  background:
    radial-gradient(circle at 18% 25%, rgb(232 224 208 / 85%) 0 4px, transparent 4px),
    radial-gradient(circle at 72% 18%, rgb(198 43 14 / 80%) 0 6px, transparent 6px),
    radial-gradient(circle at 40% 64%, rgb(232 224 208 / 75%) 0 3px, transparent 3px),
    radial-gradient(circle at 82% 74%, rgb(43 58 43 / 80%) 0 5px, transparent 5px);
}

.hero-cover.motif-dnb::after {
  background:
    repeating-linear-gradient(135deg, rgb(232 224 208 / 32%) 0 6px, transparent 6px 14px),
    linear-gradient(90deg, rgb(198 43 14 / 28%) 0%, transparent 40% 60%, rgb(43 58 43 / 28%) 100%);
}

.hero-cover.motif-garage-house::after {
  background:
    linear-gradient(0deg, rgb(232 224 208 / 20%) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgb(232 224 208 / 20%) 0 1px, transparent 1px 100%),
    linear-gradient(145deg, rgb(198 43 14 / 25%), transparent 45%);
  background-size: 18px 18px, 18px 18px, auto;
}

.hero-cover.motif-rock::after {
  background:
    repeating-linear-gradient(170deg, rgb(232 224 208 / 28%) 0 2px, transparent 2px 10px),
    linear-gradient(160deg, rgb(198 43 14 / 28%) 10%, transparent 60%),
    linear-gradient(20deg, rgb(43 58 43 / 26%) 0%, transparent 52%);
}

.hero-cover.motif-electronic::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgb(232 224 208 / 28%) 28% 31%, transparent 31% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 44%, rgb(198 43 14 / 28%) 44% 47%, transparent 47% 100%),
    linear-gradient(120deg, rgb(43 58 43 / 22%), transparent 48%);
}

.hero-cover.motif-default::after {
  background:
    linear-gradient(120deg, rgb(232 224 208 / 18%), transparent 44%),
    repeating-linear-gradient(90deg, rgb(232 224 208 / 14%) 0 1px, transparent 1px 14px);
}

/* Special collage treatment for Alanis vs Royal Blood style */
.hero-cover.is-collage {
  background: #ede7db;
  background-image:
    linear-gradient(0deg, rgb(0 0 0 / 18%), rgb(0 0 0 / 18%)),
    var(--hero-collage-image, none);
  background-size: auto, cover;
  background-position: center;
  color: #111;
  padding: 0;
}

.hero-cover.is-collage::before {
  background:
    radial-gradient(circle at 20% 18%, rgb(124 51 162 / 85%) 0 18%, transparent 18%),
    radial-gradient(circle at 82% 74%, rgb(178 38 24 / 78%) 0 16%, transparent 16%),
    linear-gradient(110deg, rgb(255 255 255 / 36%) 0%, transparent 56%);
  opacity: 0.5;
}

.hero-cover.is-collage::after {
  opacity: 0.18;
  background:
    linear-gradient(0deg, rgb(0 0 0 / 10%) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgb(0 0 0 / 8%) 0 1px, transparent 1px 100%);
  background-size: 22px 22px;
}

.hero-cover.is-collage .hero-cover-tag,
.hero-cover.is-collage .hero-cover-title,
.hero-cover.is-collage .hero-cover-artists {
  display: none;
}

.hero-cover.is-collage .hero-cover-collage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 100%;
}

.hero-cover.is-collage .collage-side {
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
}

.hero-cover.is-collage .collage-left {
  background: linear-gradient(165deg, rgb(92 45 134 / 36%) 0%, rgb(0 0 0 / 25%) 64%, transparent 100%);
}

.hero-cover.is-collage .collage-right {
  background: linear-gradient(15deg, rgb(175 40 26 / 35%) 0%, rgb(0 0 0 / 25%) 64%, transparent 100%);
}

.hero-cover.is-collage .collage-vs {
  align-self: center;
  justify-self: center;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ede7db;
  background: #161310;
  border: 2px solid #ede7db;
  padding: 0.2rem 0.4rem;
  transform: rotate(-7deg);
  margin: 0 0.25rem;
}

.hero-cover.is-collage .collage-artist {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #14110f;
}

.hero-cover.is-collage .collage-track {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3b2f2f;
  background: rgb(255 255 255 / 55%);
  padding: 0.2rem 0.3rem;
  width: fit-content;
}

.hero-cover-tag,
.hero-cover-title,
.hero-cover-artists {
  position: relative;
  z-index: 1;
}

.hero-cover-tag {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
  font-weight: 800;
  color: #ffffff;
}

.hero-cover-title {
  margin: 0.8rem 0 0.5rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cover-artists {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0.95;
  max-width: 26ch;
  font-weight: 700;
  color: #ffffff;
}

.hero-content {
  position: absolute;
  top: 50%;
  right: 2.1rem;
  transform: translateY(-50%);
  z-index: 2;
  width: auto;
  max-width: 600px;
  padding: 0;
  text-align: right;
  display: block;
  visibility: visible;
}

.hero-kicker {
  display: none;
  margin: 0 0 0.6rem;
  font-family: "Sora", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.hero-title {
  display: block !important;
  margin: 0 0 1rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  visibility: visible;
}

.hero-artists {
  display: block !important;
  margin: 0;
  font-size: 1.1rem;
  opacity: 1;
  line-height: 1.3;
  color: #ffffff;
  font-weight: 600;
  visibility: visible;
}

.hero-meta {
  display: none;
  gap: 0.6rem;
  margin-top: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-pill {
  font-family: "Sora", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 30%);
}

.hero-dots {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / 85%);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 22%);
  outline: none;
}

.hero-dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 30%);
}

/* ========================
   CATALOGUE SECTION
   ======================== */

.catalogue-section {
  padding: 0 0 4rem;
}

.catalogue-inner {
  margin-top: -2px;
}

.catalogue-head {
  padding: 1.3rem 1.6rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid #3a3228;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 3;
}

.catalogue-head h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FF8243;
}

.catalogue-head p {
  margin: 0;
  color: rgb(232 224 208 / 50%);
  font-size: 0.8rem;
}

/* Controls */
.catalogue-controls {
  padding: 1.2rem 1.6rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid #3a3228;
}

.filters-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: "Sora", sans-serif;
  font-size: 0.6rem;
  color: #FF8243;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.filters-grid input,
.filters-grid select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #3a3228;
  background: transparent;
  color: #e8e0d0;
  padding: 0.45rem 0;
  outline: none;
  font: inherit;
  font-size: 0.76rem;
  transition: border-color 120ms ease;
  border-radius: 0;
}

.filters-grid select {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  padding-left: 0.35rem;
  padding-right: 0.75rem;
}

.filters-grid select option {
  background: #171d26;
  color: #f5f7fb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
}

.filters-grid select option:checked {
  background: #ff9900;
  color: #0f1218;
}

.filters-grid input:focus,
.filters-grid select:focus {
  border-bottom-color: #069494;
}

.track-title { display: block; }
.track-artists {
  display: block;
  font-size: 0.75rem;
  color: #FF8243;
  margin-top: 0.15rem;
}

/* Artist role badges */
.artist-lines { display: flex; flex-direction: column; gap: 0.35rem; }
.artist-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  font-size: 0.88rem;
}
.artist-track-note {
  opacity: 0.65;
  font-size: 0.82rem;
}
.role-badge {
  font-family: "Sora", sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.role-vocal {
  background: #0f62fe;
  color: #ffffff;
}

.role-instrumental {
  background: #334155;
  color: #ffffff;
}

.role-sample {
  background: #3d2b55;
  color: #d8b4fe;
}

.filters-grid input::placeholder {
  color: var(--ink-2);
  opacity: 0.45;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 120ms ease;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  font-size: 0.7rem;
}

.btn-primary {
  color: var(--cream);
  background: var(--green);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Results */
.catalogue-results {
  position: relative;
  background: #0a0805;
}

.catalogue-results::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(10, 8, 5, 0.1) 0%, rgba(10, 8, 5, 0.5) 60%, rgba(10, 8, 5, 1) 100%);
  pointer-events: none;
  z-index: 10;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.6rem 1rem;
  background: transparent;
  border-bottom: 1px solid #3a3228;
  position: relative;
  z-index: 15;
}

.results-head h2 {
  margin: 0;
  color: #FF8243;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.results-tools {
  margin: 0;
}

#results-count {
  color: #e8e0d0;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Table */
.catalogue-table-wrap {
  overflow: auto;
  position: relative;
  z-index: 15;
}

.catalogue-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: #1a1713;
  border: 1px solid #2a2318;
}

.catalogue-table th {
  text-align: left;
  padding: 1rem 1.6rem;
  border-bottom: 2px solid #FF8243;
  color: #FF8243;
  font-family: "Sora", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  background: #0f0d0a;
  white-space: nowrap;
}

.catalogue-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 120ms ease;
}

.catalogue-table th.sortable:hover {
  color: #ffb088;
}

.sort-indicator {
  display: inline-block;
  margin-left: 0.3rem;
  opacity: 0.3;
  transition: opacity 120ms ease;
}

.catalogue-table td {
  text-align: left;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid #3a3228;
  color: #e8e0d0;
  font-size: 0.88rem;
  background: #1a1713;
}

.catalogue-table tbody tr:hover td {
  background: #252118;
}

.track-title {
  display: inline;
  font-weight: 700;
}

.track-main-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.track-media-col {
  width: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.track-main-copy {
  min-width: 0;
}

.track-artwork-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgb(255 255 255 / 20%);
}

.track-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.track-preview-toggle {
  flex-shrink: 0;
}

.track-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.track-row-action {
  width: 2.6rem !important;
  height: 2.6rem !important;
  flex-shrink: 0;
}

.track-row-action > svg:not(.preview-progress-ring) {
  width: 16px !important;
  height: 16px !important;
}

.track-actions-cell {
  white-space: nowrap;
  text-align: right;
}

.track-title-wrap {
  display: block;
}

.track-title-explicit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1rem;
  height: 1rem;
  margin-left: 0.35rem;
  padding: 0 0.22rem;
  border-radius: 3px;
  background: #8d9098;
  color: #101318;
  font-family: "Sora", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.catalogue-row-main {
  cursor: pointer;
  transition: background 80ms ease;
}

.catalogue-row-main:hover td { 
  background: #2a2318;
}

.catalogue-row-main.is-open td {
  background: #1e1a16;
  color: #f2ece1;
  border-top: 1px solid rgb(232 224 208 / 16%);
  border-bottom: 1px solid rgb(232 224 208 / 14%);
  box-shadow: none;
}

.catalogue-row-main.is-open .track-title {
  color: #ffb088;
  text-shadow: none;
  font-weight: 700;
  letter-spacing: normal;
}

.catalogue-row-expanded { 
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.catalogue-row-expanded td {
  padding: 1.2rem 1.6rem;
  background: #171310;
  border-top: 1px solid rgb(232 224 208 / 14%);
  border-bottom: 1px solid rgb(232 224 208 / 14%);
  box-shadow: none;
}

.catalogue-row-expanded.is-open { 
  display: table-row;
  animation: expandRow 320ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.catalogue-row-expanded.is-closing {
  display: table-row;
  animation: closeRow 320ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expandRow {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@keyframes closeRow {
  from {
    max-height: 500px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}

.expanded-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.expanded-artists {
  flex: 1 1 auto;
  min-width: 0;
}

.expanded-right-col {
  flex: 0 0 33%;
  max-width: 22rem;
  min-width: 18rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: stretch;
}

.expanded-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.1rem;
  align-items: start;
}

.expanded-links-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.1rem;
  align-items: start;
}

.expanded-right-col .expanded-item {
  min-width: 0;
  max-width: none;
  text-align: left;
}

.expanded-value {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.expanded-item {
  background: transparent;
  border: none;
  padding: 0.2rem 0;
  box-shadow: none;
  opacity: 0;
  animation: fadeInItem 320ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.catalogue-row-expanded.is-open .expanded-item:nth-child(1) {
  border-left: none;
}

.catalogue-row-expanded.is-open .expanded-item:nth-child(2) {
  border-left: none;
}

.catalogue-row-expanded.is-open .expanded-item:nth-child(3) {
  border-left: none;
}

.catalogue-row-expanded.is-open .expanded-item:nth-child(4) {
  border-left: none;
}

.catalogue-row-expanded.is-open .expanded-item:nth-child(1) {
  animation-delay: 60ms;
}

.catalogue-row-expanded.is-open .expanded-item:nth-child(2) {
  animation-delay: 120ms;
}

.catalogue-row-expanded.is-open .expanded-item:nth-child(3) {
  animation-delay: 180ms;
}

.catalogue-row-expanded.is-open .expanded-item:nth-child(4) {
  animation-delay: 240ms;
}

.key-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.16rem 0.46rem;
  border: 1px solid rgb(90 176 255 / 44%);
  border-radius: 999px;
  color: var(--accent-main);
  background: rgb(90 176 255 / 10%);
  font-family: "Sora", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.key-pill--meta {
  margin-left: 0.18rem;
  min-width: auto;
  padding: 0.12rem 0.4rem;
  font-size: 0.56rem;
}

body.theme-light .key-pill {
  border-color: rgb(15 98 254 / 36%);
  background: rgb(15 98 254 / 10%);
  color: #0f62fe;
}

@keyframes fadeInItem {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expanded-label {
  margin: 0 0 0.4rem;
  color: #ffb088;
  font-family: "Sora", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.expanded-value {
  margin: 0;
  color: #f5efe4;
  font-size: 0.85rem;
}

.artist-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: #f5efe4;
  font-size: 0.9rem;
}

.role-badge {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #0f62fe;
  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  border-radius: 2px;
  text-align: center;
}

.role-badge.role-instrumental {
  background: #334155;
  color: #ffffff;
}

.artist-name {
  flex-grow: 1;
  min-width: 120px;
}

.artist-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.artist-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}
.source-track {
  margin: 0.1rem 0 0 0;
  padding-left: 0;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.85;
}

.catalogue-row-expanded .expanded-item {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.catalogue-row-expanded .expanded-item:nth-child(2),
.catalogue-row-expanded .expanded-item:nth-child(3) {
  text-align: center;
}

.expanded-right-col .expanded-item {
  text-align: left;
}

.expanded-right-col .expanded-links {
  text-align: left;
}

.expanded-right-col .expanded-links .detail-platforms {
  justify-content: flex-start;
}

.detail-platforms {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
}

.catalogue-row-expanded .expanded-item .artist-line,
.catalogue-row-expanded .expanded-item .artist-track-note {
  color: #f5efe4;
}



.platform-link {
  width: 1.7rem;
  height: 1.7rem;
  border: none;
  color: var(--cream);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 120ms ease;
  cursor: pointer;
  position: relative;
}

.platform-link:hover { background: var(--red); border-color: var(--red); }

.catalogue-row-expanded .platform-link:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.platform-link > svg:not(.preview-progress-ring) { width: 11px; height: 11px; fill: currentColor; }

.platform-link.copy-mashup-link {
  appearance: none;
  border: none;
  padding: 0;
  color: #f4c56a;
}

.platform-link.copy-mashup-link.is-copied {
  color: #22c55e;
}

.catalogue-row-main .platform-link {
  border-color: transparent;
  color: var(--accent-main);
}

.catalogue-row-main .platform-link:hover {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.artist-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.artist-avatar-link {
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
}

.artist-avatar-link:focus-visible {
  outline: 2px solid var(--accent-main);
  outline-offset: 2px;
}

.artist-support-link {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(232 224 208 / 78%);
  border: none;
  text-decoration: none;
  transition: all 120ms ease;
}

.artist-support-link svg {
  width: 8px;
  height: 8px;
  fill: currentColor;
}

.artist-support-link:hover {
  color: #ffffff;
  background: transparent;
  border-color: transparent;
}

.sample-audio-toggle,
.preview-audio-toggle {
  width: 1.3rem;
  height: 1.3rem;
  position: relative;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 34%);
  background: rgb(255 255 255 / 8%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.sample-audio-toggle > svg:not(.preview-progress-ring),
.preview-audio-toggle > svg:not(.preview-progress-ring) {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.sample-audio-toggle:hover,
.sample-audio-toggle:focus-visible,
.preview-audio-toggle:hover,
.preview-audio-toggle:focus-visible {
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 58%);
  transform: scale(1.05);
  outline: none;
}

.sample-audio-toggle.is-playing,
.preview-audio-toggle.is-playing {
  background: #FF9F1C;
  border-color: #FF9F1C;
  color: #0f1726;
}

.sample-audio-toggle.is-loading::after,
.preview-audio-toggle.is-loading::after,
.sample-audio-toggle.is-playing::after,
.preview-audio-toggle.is-playing::after {
  content: none;
}

.sample-audio-toggle > svg:not(.preview-progress-ring),
.preview-audio-toggle > svg:not(.preview-progress-ring) {
  position: relative;
  z-index: 1;
}

.preview-progress-ring {
  position: absolute;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  display: block;
  pointer-events: none;
  z-index: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
  opacity: 0;
}

.sample-audio-toggle.is-loading .preview-progress-ring,
.sample-audio-toggle.is-playing .preview-progress-ring,
.preview-audio-toggle.is-loading .preview-progress-ring,
.preview-audio-toggle.is-playing .preview-progress-ring {
  opacity: 1;
}

.sample-audio-toggle.is-loading,
.preview-audio-toggle.is-loading {
  --preview-progress: var(--preview-load, 0);
}

.sample-audio-toggle.is-playing,
.preview-audio-toggle.is-playing {
  --preview-progress: var(--preview-play, 0);
}

.preview-ring-bg {
  fill: none;
  stroke: rgb(255 255 255 / 22%);
  stroke-width: 3;
}

.preview-ring-fg {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--preview-progress, 0));
}

.sample-audio-toggle.is-playing .preview-ring-bg,
.preview-audio-toggle.is-playing .preview-ring-bg {
  stroke: rgb(15 23 38 / 28%);
}

body.theme-light .preview-ring-bg {
  stroke: rgb(15 23 38 / 18%);
}

body.theme-light .preview-ring-fg {
  stroke: #0f1726;
}

body.theme-light .sample-audio-toggle.is-playing .preview-ring-bg,
body.theme-light .preview-audio-toggle.is-playing .preview-ring-bg {
  stroke: rgb(255 255 255 / 55%);
}
body.theme-light .sample-audio-toggle,
body.theme-light .preview-audio-toggle {
  border-color: rgb(15 23 38 / 24%);
  background: rgb(15 23 38 / 7%);
  color: #0f1726;
}

body.theme-light .sample-audio-toggle:hover,
body.theme-light .sample-audio-toggle:focus-visible,
body.theme-light .preview-audio-toggle:hover,
body.theme-light .preview-audio-toggle:focus-visible {
  background: rgb(15 23 38 / 13%);
  border-color: rgb(15 23 38 / 36%);
}

body.theme-light .sample-audio-toggle.is-loading::after,
body.theme-light .preview-audio-toggle.is-loading::after {
  content: none;
}

body.theme-light .sample-audio-toggle.is-playing::after,
body.theme-light .preview-audio-toggle.is-playing::after {
  content: none;
}

/* Cards */
.catalogue-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: linear-gradient(to bottom, #2a2318 0%, #1a1713 50%, rgba(26, 23, 19, 0.6) 100%);
  border-top: 2px solid #2a2318;
  border-bottom: none;
  position: relative;
  margin-bottom: 0;
  padding-bottom: 3rem;
}

.catalogue-card {
  display: none !important;
}

.catalogue-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 35%) 60%, rgb(0 0 0 / 55%) 100%);
  pointer-events: none;
  z-index: 1;
}

.catalogue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgb(0 0 0 / 28%);
}

.mix-tag {
  margin: 0;
  color: #FF8243;
  font-family: "Sora", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.95;
}

.catalogue-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 0.3rem;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
}

.catalogue-card p {
  position: relative;
  z-index: 2;
  color: rgb(232 224 208 / 82%);
  font-size: 0.8rem;
  line-height: 1.35;
}

.catalogue-meta {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.catalogue-meta span {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgb(255 255 255 / 35%);
  color: rgb(255 255 255 / 75%);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgb(0 0 0 / 25%);
  backdrop-filter: blur(8px);
  border-radius: 3px;
  font-weight: 600;
}

body.theme-light .catalogue-row-main.is-open td {
  background: #ffffff;
  color: #181410;
  border-top: 1px solid rgb(24 20 16 / 14%);
  border-bottom: 1px solid rgb(24 20 16 / 14%);
}

body.theme-light .catalogue-row-main.is-open .track-title {
  color: #ee4b2b;
}

body.theme-light .catalogue-row-expanded td {
  background: #f9f9f9;
  border-top: 1px solid rgb(24 20 16 / 12%);
  border-bottom: 1px solid rgb(24 20 16 / 12%);
}

body.theme-light .expanded-item {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.theme-light .expanded-label {
  color: #ee4b2b;
}

body.theme-light .artist-support-link {
  color: rgb(24 20 16 / 78%);
  border-color: transparent;
}

body.theme-light .artist-support-link:hover {
  color: #181410;
  background: transparent;
  border-color: transparent;
}

body.theme-light .catalogue-row-expanded .expanded-item .artist-line,
body.theme-light .catalogue-row-expanded .expanded-item .artist-track-note,
body.theme-light .expanded-value {
  color: #181410;
}

body.theme-light .role-vocal {
  color: #0b9da8;
}

body.theme-light .role-instrumental {
  color: #3a3228;
}

/* Footer */
.footer {
  padding: 1.35rem 0 1.9rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  color: rgb(232 224 208 / 72%);
  font-size: 0.72rem;
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.footer-aliases,
.footer-copy {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-aliases {
  padding-top: 0.85rem;
  color: rgb(232 224 208 / 88%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-copy {
  color: rgb(232 224 208 / 66%);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 860px) {
  .page { padding: 0 1rem; }
  .topbar-inner { padding: 0.55rem 1rem; }
  .showcase-head {
    flex-wrap: wrap;
    row-gap: 0.7rem;
    padding: 0 0.8rem 0.6rem;
  }
  .footer-inner {
    padding: 0 1rem;
  }
  .hero-stage { min-height: 350px; }
  .hero-slide { min-height: 310px; padding: 1.5rem; }
  .hero-title { font-size: clamp(1.8rem, 5vw, 3rem); }
  .filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .expanded-grid {
    flex-direction: column;
  }
  .expanded-artists {
    max-width: none;
    width: 100%;
  }
  .expanded-right-col {
    width: 100%;
    flex-basis: auto;
  }
  .expanded-meta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .expanded-links-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .theme-toggle { right: 1rem; }
  .jump-top { left: 1rem; }
  .footer-inner {
    gap: 0.4rem;
  }
  .footer-aliases {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
  }
  .footer-copy {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }
  .showcase-head {
    align-items: flex-start;
  }
  .showcase-head .social-links {
    width: 100%;
    flex-wrap: wrap;
  }
  .hero-stage { min-height: 280px; }
  .hero-slide { min-height: 250px; padding: 1.2rem; }
  .hero-content { max-width: 100%; right: 1.2rem; }
  .hero-title { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .hero-dots {
    right: 0.75rem;
    bottom: 0.75rem;
    gap: 0.45rem;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
  }
  .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-card { min-height: 280px; }
  .expanded-right-col {
    width: 100%;
  }
  .expanded-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expanded-links-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-head { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
  .catalogue-head { flex-direction: column; gap: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ========================
   PALETTE RESET (READABILITY)
   ======================== */

:root {
  --bg-main: #0f1218;
  --surface-main: #171d26;
  --surface-elevated: #1e2632;
  --text-main: #f5f7fb;
  --text-muted: #c9d2e3;
  --line-strong: #2d384a;
  --accent-main: #ff9900;
  --accent-alt: #ffc766;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
}

.page,
.catalogue-results {
  background: var(--bg-main);
}

.catalogue-results::before {
  display: none;
}

.topbar {
  background: rgb(9 13 21 / 82%);
  border-bottom-color: rgb(255 255 255 / 12%);
}

.brand-mark {
  background: #f5f7fb;
  color: #182435;
}

.section-label,
.showcase-title-row h1,
.catalogue-head h1,
.results-head h2,
.filters-grid label,
.expanded-label,
.track-artists {
  color: var(--accent-main);
}

.catalogue-head,
.catalogue-controls,
.results-head {
  background: var(--bg-main);
  border-bottom-color: var(--line-strong);
}

.catalogue-head p,
#result-count,
#results-count {
  color: var(--text-muted);
}

.filters-grid input,
.filters-grid select {
  color: var(--text-main);
  border-bottom-color: var(--line-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.filters-grid input::placeholder,
.filters-grid select::placeholder {
  color: #8e9bb3;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent-main);
  border-color: var(--accent-main);
  color: #0d1622;
}

.btn-primary:hover {
  background: #84c6ff;
  border-color: #84c6ff;
  color: #09111a;
}

.btn-ghost {
  color: var(--text-main);
  border-color: #73819a;
}

.btn-ghost:hover {
  background: #2a3444;
  color: var(--text-main);
  border-color: #2a3444;
}

.catalogue-table {
  background: var(--surface-main);
  border-color: var(--line-strong);
}

.catalogue-table th {
  background: #141a22;
  color: var(--text-main);
  border-bottom-color: var(--line-strong);
}

.catalogue-table td {
  background: var(--surface-main);
  color: var(--text-main);
  border-bottom-color: var(--line-strong);
}

.catalogue-table tbody tr:hover td,
.catalogue-row-main:hover td {
  background: var(--surface-elevated);
}

.catalogue-row-main.is-open td {
  background: #222c3a;
  color: var(--text-main);
  border-top-color: #3b4b63;
  border-bottom-color: #3b4b63;
}

.catalogue-row-main.is-open .track-title {
  color: #ffb347;
}

.catalogue-row-expanded td {
  background: #1a222d;
  border-top-color: #314055;
  border-bottom-color: #314055;
}

.artist-line,
.expanded-value,
.catalogue-row-expanded .expanded-item .artist-track-note {
  color: var(--text-main);
}

.artist-track-note {
  opacity: 0.86;
}

.source-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.source-bitrate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  padding: 0.1rem 0.28rem;
  border-radius: 3px;
  background: rgb(142 144 152 / 32%);
  color: #8d9098;
  font-family: "Sora", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.source-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  border: 1px solid #5f738f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: #d8e6ff;
  background: rgb(21 31 44 / 75%);
}

.source-type-studio {
  border-color: #8aa6c9;
  color: #d9e9ff;
}

.source-type-uvr {
  border-color: #ffb347;
  color: #ffd089;
  background: rgb(61 39 9 / 75%);
}

.source-remix-credit {
  margin: -0.1rem 0 0.45rem 0;
  padding-left: 2.2rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #d2deef;
}

.source-remix-version {
  font-size: 0.72rem;
  color: #e6a817;
  font-style: normal;
}

.source-remix-label {
  opacity: 0.82;
  margin-right: 0.35rem;
}

.source-remix-links {
  opacity: 1;
}

.source-remixer-link,
.source-remixer-name {
  color: #d8e6ff;
}

.source-remixer-link:hover {
  color: #ffffff;
}

.role-vocal {
  color: var(--accent-alt);
  font-weight: 900;
}

.role-instrumental {
  color: #d5def0;
  font-weight: 800;
}

.platform-link,
.artist-support-link {
  color: #d8e6ff;
}

.platform-link:hover,
.catalogue-row-expanded .platform-link:hover,
.artist-support-link:hover {
  color: #ffffff;
  background: transparent;
  border-color: transparent;
}

body.theme-light {
  background: #f3f6fb;
  color: #0f1726;
}

body.theme-light .page,
body.theme-light .catalogue-results {
  background: #f3f6fb;
}

body.theme-light .topbar {
  background: rgb(248 251 255 / 86%);
  border-bottom-color: rgb(15 23 38 / 14%);
}

body.theme-light .footer-inner {
  border-top-color: rgb(15 23 38 / 18%);
  color: rgb(15 23 38 / 72%);
}

body.theme-light .footer-aliases {
  color: #0f1726;
}

body.theme-light .footer-copy {
  color: #46536a;
}

body.theme-light .brand-mark {
  color: #0f62fe;
}

body.theme-light .section-label,
body.theme-light .catalogue-head h1,
body.theme-light .results-head h2,
body.theme-light .filters-grid label,
body.theme-light .expanded-label,
body.theme-light .track-artists {
  color: #0f62fe;
}

body.theme-light .hero-stage::after {
  background: linear-gradient(to bottom, rgb(243 246 251 / 0%) 0%, rgb(243 246 251 / 15%) 25%, rgb(243 246 251 / 35%) 50%, rgb(243 246 251 / 65%) 75%, rgb(243 246 251 / 100%) 100%);
}

body.theme-light .catalogue-head,
body.theme-light .catalogue-controls,
body.theme-light .results-head {
  background: #f3f6fb;
  border-bottom-color: #d2dbea;
}

body.theme-light .catalogue-head p,
body.theme-light #result-count,
body.theme-light #results-count {
  color: #46536a;
}

body.theme-light .filters-grid input,
body.theme-light .filters-grid select {
  color: #181410;
  border-bottom-color: rgb(24 20 16 / 20%);
}

body.theme-light .filters-grid input::placeholder,
body.theme-light .filters-grid select::placeholder {
  color: rgb(24 20 16 / 45%);
}

body.theme-light .btn-primary {
  background: #0f62fe;
  border-color: #0f62fe;
  color: #ffffff;
}

body.theme-light .btn-primary:hover {
  background: #0b4fd1;
  border-color: #0b4fd1;
}

body.theme-light .btn-ghost {
  color: #181410;
  border-color: #181410;
}

body.theme-light .btn-ghost:hover {
  background: #181410;
  color: #ffffff;
}

body.theme-light .catalogue-table {
  background: #ffffff;
  border-color: #ced8e8;
}

body.theme-light .catalogue-table th {
  background: #eef3fb;
  color: #0f1726;
  border-bottom-color: #ced8e8;
}

body.theme-light .catalogue-table td {
  background: #ffffff;
  color: #0f1726;
  border-bottom-color: #d7deea;
}

body.theme-light .catalogue-table tbody tr:hover td,
body.theme-light .catalogue-row-main:hover td {
  background: #f5f8ff;
}

body.theme-light .catalogue-row-main.is-open td {
  background: #eaf2ff;
  border-top-color: #c6d9ff;
  border-bottom-color: #c6d9ff;
  color: #0f1726;
}

body.theme-light .catalogue-row-main.is-open .track-title {
  color: #0f62fe;
}

body.theme-light .track-artwork-thumb {
  border-color: rgb(15 23 38 / 18%);
}

body.theme-light .catalogue-row-expanded td {
  background: #f8fbff;
  border-top-color: #d7e3f8;
  border-bottom-color: #d7e3f8;
}

body.theme-light .artist-line,
body.theme-light .expanded-value,
body.theme-light .catalogue-row-expanded .expanded-item .artist-track-note {
  color: #0f1726;
}

body.theme-light .artist-track-note {
  opacity: 0.88;
}

body.theme-light .source-type-badge {
  border-color: #9bb3d9;
  color: #1a3f8f;
  background: rgb(231 239 255 / 90%);
}

body.theme-light .source-type-studio {
  border-color: #7ea2e3;
  color: #0f62fe;
}

body.theme-light .source-type-uvr {
  border-color: #ff9900;
  color: #b86700;
  background: rgb(255 241 214 / 95%);
}

body.theme-light .source-remix-credit {
  color: #334155;
}

body.theme-light .source-remixer-link,
body.theme-light .source-remixer-name {
  color: #0f62fe;
}

body.theme-light .source-remixer-link:hover {
  color: #0b4fd1;
}

body.theme-light .role-vocal {
  background: #0f62fe;
  color: #ffffff;
}

body.theme-light .role-instrumental {
  background: #334155;
  color: #ffffff;
}

/* Unified role badge palette overrides */
.role-badge.role-vocal {
  background: #FF4FA3;
  color: #ffffff;
}

.role-badge.role-instrumental {
  background: #00B8A9;
  color: #FFFFFF;
}

.role-badge.role-sample {
  background: #FF9F1C;
  color: #ffffff;
}

body.theme-light .role-badge.role-vocal {
  background: #FF4FA3;
  color: #ffffff;
}

body.theme-light .role-badge.role-instrumental {
  background: #00B8A9;
  color: #FFFFFF;
}

body.theme-light .role-badge.role-sample {
  background: #FF9F1C;
  color: #ffffff;
}

body.theme-light .platform-link,
body.theme-light .artist-support-link {
  color: #334155;
}

body.theme-light .platform-link:hover,
body.theme-light .artist-support-link:hover {
  color: #0f62fe;
}

.detail-platforms .platform-link {
  width: 2.65rem;
  height: 2.65rem;
}

.detail-platforms .platform-link svg {
  width: 19px;
  height: 19px;
}

.artist-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 0.6rem;
  border: 1px solid rgb(255 255 255 / 18%);
}

.artist-avatar--spacer {
  visibility: hidden;
  pointer-events: none;
}

.artist-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgb(60 74 96 / 80%);
  color: #d8e6ff;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 1;
}

body.theme-light .artist-avatar {
  border-color: rgb(15 23 38 / 18%);
}

body.theme-light .artist-avatar--placeholder {
  background: #d7e3f8;
  color: #0f1726;
}

.artist-spotify-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.35rem;
  color: #1DB954;
  opacity: 0.75;
  transition: opacity 120ms ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.artist-spotify-link svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.artist-spotify-link:hover {
  opacity: 1;
}

body.theme-light .artist-spotify-link {
  color: #1DB954;
}

.detail-platforms .platform-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: "Sora", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgb(10 16 24 / 92%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  transition: opacity 120ms ease;
  z-index: 5;
}

.detail-platforms .platform-link[data-tooltip]:hover::after,
.detail-platforms .platform-link[data-tooltip]:focus-visible::after {
  opacity: 1;
}

body.theme-light .detail-platforms .platform-link[data-tooltip]::after {
  color: #0f1726;
  background: rgb(248 251 255 / 96%);
  border-color: rgb(15 98 254 / 26%);
}

.track-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.42rem;
}

.mashup-meta-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.mashup-meta-duration {
  color: #d2deef;
  border-color: rgb(210 222 239 / 45%);
  background: rgb(21 31 44 / 70%);
}

.mashup-meta-remashter {
  color: #ffd089;
  border-color: rgb(255 208 137 / 48%);
  background: rgb(61 39 9 / 72%);
}

body.theme-light .mashup-meta-duration {
  color: #1a3f8f;
  border-color: rgb(126 162 227 / 55%);
  background: rgb(231 239 255 / 92%);
}

body.theme-light .mashup-meta-remashter {
  color: #b86700;
  border-color: rgb(255 153 0 / 55%);
  background: rgb(255 241 214 / 96%);
}

.expanded-description-wrap {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgb(216 230 255 / 24%);
}

.expanded-description {
  margin: 0.28rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #d2deef;
}

body.theme-light .expanded-description-wrap {
  border-top-color: rgb(15 98 254 / 22%);
}

body.theme-light .expanded-description {
  color: #334155;
}

@media (max-width: 1050px) {
  .expanded-grid {
    flex-direction: column;
  }

  .expanded-artists {
    max-width: none;
    width: 100%;
  }

  .expanded-right-col {
    width: min(100%, 30rem);
    flex-basis: auto;
  }
  .expanded-meta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .expanded-right-col {
    width: 100%;
  }
  .expanded-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expanded-links-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
