:root {
  color-scheme: light;
  --bg: #c5d0dd;
  --panel: #ffffff;
  --panel-soft: #f1f7ff;
  --panel-glass: rgba(255, 255, 255, 0.92);
  --line: rgba(15, 25, 45, 0.13);
  --line-strong: rgba(15, 25, 45, 0.22);
  --text: #101726;
  --muted: #334155;
  --cyan: #12e5df;
  --pink: #ff2f80;
  --yellow: #f3ee24;
  --orange: #ff8b33;
  --green: #35e58b;
  --violet: #7767ff;
  --coral: #ff5f64;
  --royal: #214dff;
  --shadow: 0 24px 70px rgba(35, 55, 86, 0.16);
  --canvas-surface:
    linear-gradient(180deg, rgba(219, 226, 234, 0.9), rgba(192, 203, 215, 0.72)),
    #d5dde7;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171d26;
  --panel: #080d16;
  --panel-soft: #101722;
  --panel-glass: rgba(9, 14, 24, 0.82);
  --line: rgba(190, 207, 229, 0.16);
  --line-strong: rgba(190, 207, 229, 0.28);
  --text: #edf4ff;
  --muted: #cbd5e1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --canvas-surface: linear-gradient(180deg, rgba(14, 21, 33, 0.96), rgba(8, 12, 20, 0.96));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  width: min(1720px, calc(100% - clamp(32px, 6vw, 112px)));
  min-height: calc(100vh - clamp(24px, 3vw, 48px));
  margin: clamp(12px, 1.5vw, 24px) auto;
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--canvas-surface);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .app-shell {
  background: var(--canvas-surface);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: var(--canvas-surface);
}

:root[data-theme="dark"] .sidebar {
  background: var(--canvas-surface);
}

.sidebar-mobile-header {
  display: contents;
}

.brand {
  position: relative;
  display: block;
  width: 190px;
  max-width: 100%;
  margin-inline: auto;
  transform: scale(1.21);
  transform-origin: center center;
}

.brand::before {
  position: absolute;
  inset: 8% -7% 0;
  content: "";
  border-radius: 28px;
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 207, 51, 0.5), transparent 38%),
    radial-gradient(circle at 60% 64%, rgba(18, 229, 223, 0.46), transparent 42%),
    radial-gradient(circle at 48% 58%, rgba(119, 103, 255, 0.34), transparent 52%);
  filter: blur(14px);
  opacity: 0.72;
  transform-origin: center;
  animation: logoAura 4.8s ease-in-out infinite;
}

.brand img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 55%;
  animation: logoDance 5.6s ease-in-out infinite;
}

/* The supplied pulse logo already contains its own animation; avoid stacking
   a second transform animation on top of it. */
.brand img[src*="raw-lyrics-pulse4.gif"] {
  animation: none;
}

.search-wrap {
  position: relative;
  display: block;
}

.catalog-search-label {
  display: block;
}

.search-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  color: var(--text);
  border: 2px solid rgba(18, 229, 223, 0.76);
  border-radius: var(--radius);
  outline: none;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(255, 47, 128, 0.08),
    0 12px 26px rgba(39, 60, 94, 0.14);
}

.search-wrap input::placeholder {
  color: #061018;
  opacity: 1;
}

:root[data-theme="dark"] .search-wrap input {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  caret-color: #ffffff;
}

:root[data-theme="dark"] .search-wrap input::placeholder {
  color: #ffffff;
  opacity: 0.92;
}

:root[data-theme="dark"] .search-icon {
  border-color: #edf4ff;
  box-shadow: 0 0 14px rgba(18, 229, 223, 0.52);
}

.search-wrap input:focus {
  border-color: var(--pink);
  box-shadow:
    0 0 0 3px rgba(18, 229, 223, 0.2),
    0 12px 26px rgba(39, 60, 94, 0.16);
}

.catalog-autocomplete {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(420px, 54dvh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(4, 11, 24, 0.34);
}

.catalog-autocomplete-group + .catalog-autocomplete-group {
  margin-top: 5px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.catalog-autocomplete-group > span {
  display: block;
  padding: 4px 7px 5px;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-autocomplete-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 7px;
  color: var(--text);
  text-decoration: none;
  border-radius: 5px;
}

.catalog-autocomplete-item:hover,
.catalog-autocomplete-item:focus-visible,
.catalog-autocomplete-item[aria-selected="true"] {
  color: var(--ink);
  outline: 0;
  background: color-mix(in srgb, var(--cyan) 20%, var(--panel));
}

.catalog-autocomplete-kind {
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-autocomplete-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.catalog-autocomplete-copy strong,
.catalog-autocomplete-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-autocomplete-copy strong {
  font-size: 0.78rem;
}

.catalog-autocomplete-copy small {
  color: var(--muted);
  font-size: 0.66rem;
}

.search-icon,
.nav-glyph {
  position: absolute;
  display: inline-block;
}

.search-icon {
  top: 14px;
  left: 14px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.nav-stack {
  display: grid;
  gap: 9px;
}

.popular-artists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.popular-artists .nav-section-label {
  grid-column: 1 / -1;
}

.popular-artists .popular-artist-link:nth-of-type(n + 21) {
  display: none;
}

.popular-artist-link {
  min-width: 0;
  padding: 8px 9px;
  overflow: hidden;
  color: #101726;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--artist-tone-border, rgba(119, 103, 255, 0.38));
  border-radius: var(--radius);
  background: var(--artist-tone-bg, rgba(255, 255, 255, 0.72));
  box-shadow: 0 10px 20px var(--artist-tone-shadow, rgba(39, 60, 94, 0.08));
  font-size: 0.82rem;
  font-weight: 820;
}

.popular-artist-link.sentiment-negative {
  --artist-tone-bg: #ffc1d8;
  --artist-tone-border: rgba(255, 47, 128, 0.84);
  --artist-tone-shadow: rgba(255, 47, 128, 0.16);
}

.popular-artist-link.sentiment-mixed {
  --artist-tone-bg: #d9d4ff;
  --artist-tone-border: rgba(119, 103, 255, 0.74);
  --artist-tone-shadow: rgba(119, 103, 255, 0.14);
}

.popular-artist-link.sentiment-reflective {
  --artist-tone-bg: #bde8ff;
  --artist-tone-border: rgba(33, 77, 255, 0.64);
  --artist-tone-shadow: rgba(33, 77, 255, 0.13);
}

.popular-artist-link.sentiment-positive {
  --artist-tone-bg: #bcffd3;
  --artist-tone-border: rgba(53, 229, 139, 0.78);
  --artist-tone-shadow: rgba(53, 229, 139, 0.16);
}

.popular-artist-link.sentiment-neutral {
  --artist-tone-bg: #f1f5f9;
  --artist-tone-border: rgba(100, 116, 139, 0.46);
  --artist-tone-shadow: rgba(100, 116, 139, 0.12);
}

.popular-artist-link:hover,
.popular-artist-link.is-current {
  color: #061018;
  border-color: rgba(255, 230, 0, 0.9);
  background:
    linear-gradient(0deg, rgba(255, 230, 0, 0.12), rgba(255, 230, 0, 0.12)),
    var(--artist-tone-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 0, 0.65),
    0 10px 20px var(--artist-tone-shadow);
}

:root[data-theme="dark"] .popular-artist-link {
  color: #edf4ff;
  background: color-mix(in srgb, var(--artist-tone-bg) 24%, #0f172a);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  cursor: pointer;
  text-align: left;
  color: #17243a;
  border: 1px solid rgba(42, 68, 105, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(39, 60, 94, 0.07);
}

.nav-item:hover,
.nav-item.is-active {
  color: #061018;
  border-color: rgba(18, 229, 223, 0.78);
  background: #dffffd;
  box-shadow: 0 12px 24px rgba(18, 229, 223, 0.14);
}

:root[data-theme="dark"] .nav-item {
  color: #d6deeb;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .nav-item:hover,
:root[data-theme="dark"] .nav-item.is-active {
  background: rgba(18, 229, 223, 0.12);
}

.nav-glyph {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  opacity: 0.78;
}

.nav-glyph.overview {
  border-radius: 50%;
}

.nav-glyph.overview::after {
  position: absolute;
  inset: 4px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.nav-glyph.vocabulary {
  border-radius: 3px;
}

.nav-glyph.vocabulary::before,
.nav-glyph.vocabulary::after {
  position: absolute;
  right: 3px;
  left: 3px;
  height: 1px;
  content: "";
  background: currentColor;
}

.nav-glyph.vocabulary::before {
  top: 5px;
}

.nav-glyph.vocabulary::after {
  bottom: 5px;
}

.nav-glyph.rhyme {
  border-radius: 3px 50% 3px 50%;
  transform: rotate(45deg);
}

.nav-section-label {
  margin: 14px 0 0;
  color: #00aaa6;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

:root[data-theme="dark"] .nav-section-label {
  color: #40fff7;
  -webkit-text-stroke: 0.28px rgba(255, 255, 255, 0.9);
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(18, 229, 223, 0.86),
    0 0 22px rgba(255, 47, 128, 0.34);
}

.view-section-label,
.nav-item[data-view] {
  font-weight: 1000;
}

.genre-item {
  min-height: 42px;
  padding-right: 15px;
  padding-left: 15px;
  color: #1f2f46;
  font-size: 0.9rem;
  font-weight: 760;
  background: #ffffff;
}

.genre-item:hover {
  color: #061018;
  border-color: rgba(42, 68, 105, 0.2);
  background: #f7fbff;
  box-shadow: 0 10px 22px rgba(39, 60, 94, 0.08);
}

:root[data-theme="dark"] .genre-item {
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .genre-item {
  color: #ffffff;
  text-shadow:
    -1px 0 #061018,
    0 1px #061018,
    1px 0 #061018,
    0 -1px #061018,
    0 2px 4px rgba(0, 0, 0, 0.46);
  -webkit-text-stroke: 0.22px #061018;
}

.genre-item.genre-hiphop {
  background: #ffb4d4;
  border-color: rgba(255, 47, 128, 0.92);
}

.genre-item.genre-pop {
  background: #9dfff8;
  border-color: rgba(18, 229, 223, 0.96);
}

.genre-item.genre-rnb {
  background: #c6c0ff;
  border-color: rgba(119, 103, 255, 0.92);
}

.genre-item.genre-rock {
  background: #ffc79a;
  border-color: rgba(255, 139, 51, 0.96);
}

.genre-item.genre-electronic {
  background: #9dffc6;
  border-color: rgba(53, 229, 139, 0.96);
}

.genre-item.genre-country {
  background: #fffd88;
  border-color: rgba(226, 220, 0, 0.96);
}

:root[data-theme="dark"] .genre-item.genre-hiphop {
  background: #ff2f80;
  border-color: #ff9ac4;
  box-shadow: 0 0 18px rgba(255, 47, 128, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

:root[data-theme="dark"] .genre-item.genre-pop {
  background: #12e5df;
  border-color: #a7fffb;
  box-shadow: 0 0 18px rgba(18, 229, 223, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

:root[data-theme="dark"] .genre-item.genre-rnb {
  background: #7767ff;
  border-color: #c8c2ff;
  box-shadow: 0 0 18px rgba(119, 103, 255, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

:root[data-theme="dark"] .genre-item.genre-rock {
  background: #ff8b33;
  border-color: #ffd1ac;
  box-shadow: 0 0 18px rgba(255, 139, 51, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

:root[data-theme="dark"] .genre-item.genre-electronic {
  background: #35e58b;
  border-color: #b7ffd8;
  box-shadow: 0 0 18px rgba(53, 229, 139, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

:root[data-theme="dark"] .genre-item.genre-country {
  background: #f3ee24;
  border-color: #fffaa7;
  box-shadow: 0 0 18px rgba(243, 238, 36, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.genre-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  fill: currentColor;
  filter:
    drop-shadow(-0.7px 0 #061018)
    drop-shadow(0 0.7px #061018)
    drop-shadow(0.7px 0 #061018)
    drop-shadow(0 -0.7px #061018)
    drop-shadow(0 0 7px currentColor);
}

.genre-icon path {
  stroke: #061018;
  stroke-width: 1.15px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.genre-icon.hiphop {
  color: var(--pink);
}

.genre-icon.pop {
  color: var(--cyan);
}

.genre-icon.rnb {
  color: var(--violet);
}

.genre-icon.rock {
  color: var(--orange);
}

.genre-icon.electronic {
  color: var(--green);
}

.genre-icon.country {
  color: var(--yellow);
}

.sidebar-rankings {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.desktop-artist-rankings {
  display: grid;
}

.profile-artist-rankings {
  display: none;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.profile-artist-rankings-heading {
  margin-bottom: 12px;
}

.profile-artist-rankings-heading .eyebrow {
  margin-bottom: 3px;
}

.profile-artist-rankings-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.profile-artist-rankings .sidebar-rankings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-artist-rankings .sidebar-ranking-card {
  min-height: 100%;
}

.profile-artist-rankings .sidebar-ranking-name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.sidebar-ranking-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px 12px 10px;
  color: #061018;
  border: 1px solid rgba(6, 16, 24, 0.28);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(39, 60, 94, 0.16);
}

.sidebar-ranking-negative {
  background:
    linear-gradient(135deg, rgba(255, 47, 128, 0.92), rgba(255, 139, 51, 0.86)),
    var(--pink);
}

.sidebar-ranking-positive {
  background:
    linear-gradient(135deg, rgba(18, 229, 223, 0.92), rgba(33, 77, 255, 0.82)),
    var(--cyan);
}

.sidebar-ranking-kicker {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-ranking-card h2 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.1;
}

.sidebar-ranking-list {
  display: grid;
  gap: 3px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.sidebar-ranking-list li {
  display: grid;
  grid-template-columns: 1.2em minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
}

.sidebar-ranking-list li::before {
  content: counter(sidebar-rank);
  counter-increment: sidebar-rank;
  font-size: 0.6rem;
  font-weight: 950;
  opacity: 0.72;
}

.sidebar-ranking-list {
  counter-reset: sidebar-rank;
}

.sidebar-ranking-list a {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.sidebar-ranking-list a:hover .sidebar-ranking-name,
.sidebar-ranking-list a:focus-visible .sidebar-ranking-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-ranking-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-ranking-score {
  font-size: 0.58rem;
  font-weight: 950;
  white-space: nowrap;
}

.sidebar-ranking-note {
  margin: 2px 0 0;
  font-size: 0.53rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.78;
}

.sidebar-year-explorer {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-soft) 86%, transparent);
}

.sidebar-year-explorer h2 {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.15;
}

.sidebar-year-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.sidebar-year-table td {
  padding: 0;
  border: 1px solid var(--line-strong);
  text-align: center;
}

.sidebar-year-link {
  display: block;
  width: 100%;
  min-height: 27px;
  padding: 4px 2px;
  cursor: pointer;
  color: var(--text);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.sidebar-year-link:hover,
.sidebar-year-link:focus-visible {
  color: #061018;
  background: var(--cyan);
  outline: 0;
}

.sidebar-year-explorer .sidebar-ranking-note {
  margin-top: 0;
  color: var(--muted);
  opacity: 1;
}

.content-disclosure {
  max-width: 70ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.property-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.property-links a {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration-color: color-mix(in srgb, var(--royal) 55%, transparent);
  text-underline-offset: 4px;
}

.property-links a:hover,
.property-links a:focus-visible {
  color: var(--royal);
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 8px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-shadow: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  font-size: clamp(2.42rem, 4.125vw, 4.455rem);
  font-weight: 800;
  -webkit-text-fill-color: currentColor;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.08rem;
  letter-spacing: 0;
}

#artist-name {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--coral);
  font-size: 1.3rem;
  font-weight: 760;
  text-shadow:
    -1px 0 #ffffff,
    0 1px #ffffff,
    1px 0 #ffffff,
    0 -1px #ffffff,
    1px 1px 0 rgba(18, 229, 223, 0.68);
}

:root[data-theme="dark"] #artist-name {
  text-shadow:
    -1px 0 rgba(255, 255, 255, 0.82),
    0 1px rgba(255, 255, 255, 0.82),
    1px 0 rgba(255, 255, 255, 0.82),
    0 -1px rgba(255, 255, 255, 0.82),
    1px 1px 0 rgba(18, 229, 223, 0.68);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-stat {
  display: grid;
  min-width: 146px;
  min-height: 40px;
  padding: 5px 10px 6px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 5px 14px rgba(16, 23, 38, 0.08);
  line-height: 1;
}

.catalog-stat span,
.catalog-stat small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-stat strong {
  margin: 2px 0 1px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1;
}

:root[data-theme="dark"] .catalog-stat {
  border-color: rgba(255, 255, 255, 0.6);
  border-left-color: var(--cyan);
  background: rgba(5, 7, 13, 0.94);
  box-shadow: 0 0 12px rgba(18, 229, 223, 0.16);
}

.catalog-disclaimer {
  max-width: 72rem;
  margin: 0 0 16px;
  padding: 9px 12px;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
  background: color-mix(in srgb, var(--yellow) 10%, transparent);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.artist-submission-trigger {
  padding: 0;
  cursor: pointer;
  color: var(--cyan);
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.artist-submission-trigger:hover,
.artist-submission-trigger:focus-visible {
  color: var(--ink);
  outline: none;
}

.artist-submission-dialog {
  width: min(460px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.artist-submission-dialog::backdrop {
  background: rgba(3, 9, 20, 0.76);
  backdrop-filter: blur(4px);
}

.artist-submission-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.artist-submission-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.artist-submission-heading .eyebrow,
.artist-submission-heading h2 {
  margin: 0;
}

.artist-submission-heading h2 {
  margin-top: 3px;
  font-size: 1.35rem;
}

.artist-submission-close {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  place-items: center;
}

.artist-submission-field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.artist-submission-field em {
  color: var(--muted);
  font-weight: 600;
}

.artist-submission-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--canvas-surface);
  font: inherit;
}

.artist-submission-field input:focus-visible {
  border-color: var(--cyan);
  outline: 2px solid color-mix(in srgb, var(--cyan) 42%, transparent);
  outline-offset: 1px;
}

.artist-submission-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.artist-submission-status {
  min-height: 1.3em;
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.artist-submission-status.is-error {
  color: #e34f5f;
}

.artist-submission-status.is-success {
  color: #149d69;
}

.artist-submission-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.artist-submission-cancel,
.artist-submission-submit {
  min-height: 40px;
  padding: 0 13px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.artist-submission-cancel {
  color: var(--text);
  background: transparent;
}

.artist-submission-submit {
  color: #07151d;
  border-color: var(--cyan);
  background: var(--cyan);
}

.artist-submission-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.language-flag-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 4px 6px;
  border: 1px solid #101726;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(18, 229, 223, 0.12);
}

.language-flag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(16, 23, 38, 0.28);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

.language-flag-button svg {
  display: block;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.language-flag-button:hover,
.language-flag-button.is-active {
  border-color: var(--cyan);
  background: #ecfffd;
  box-shadow: 0 0 0 1px rgba(18, 229, 223, 0.36), 0 8px 14px rgba(18, 229, 223, 0.16);
}

:root[data-theme="dark"] .language-flag-group {
  border-color: rgba(255, 255, 255, 0.85);
  background: #05070d;
  box-shadow: 0 0 12px rgba(18, 229, 223, 0.18);
}

:root[data-theme="dark"] .language-flag-button {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.user-button,
.auth-button,
.theme-toggle,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
}

.user-button {
  position: relative;
  width: 42px;
  border: 2px solid var(--royal);
  background: #ffffff;
}

:root[data-theme="dark"] .user-button {
  background: rgba(255, 255, 255, 0.05);
}

.user-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
}

.user-icon::before {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 2px var(--cyan);
  transform: translateX(-50%);
}

.user-icon::after {
  position: absolute;
  right: 2px;
  bottom: 1px;
  left: 2px;
  height: 10px;
  content: "";
  border: 3px solid var(--cyan);
  border-bottom-width: 2px;
  border-radius: 999px 999px 6px 6px;
  background: rgba(255, 47, 128, 0.92);
}

.auth-button {
  padding: 0 18px;
  color: #ffffff;
  border: 2px solid var(--royal);
  background: var(--coral);
  font-weight: 800;
}

.theme-toggle {
  gap: 9px;
  padding: 0 12px;
  color: #ffffff;
  border: 1px solid #000000;
  background: #000000;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #ffffff;
}

:root[data-theme="dark"] .theme-toggle {
  color: #000000;
  border-color: #ffffff;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #000000;
}

.toggle-track {
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  padding: 2px;
  border-radius: 999px;
  background: var(--cyan);
}

.toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

:root[data-theme="dark"] .toggle-thumb {
  transform: translateX(16px);
}

.dashboard-grid {
  --top-panel-height: clamp(430px, 44vw, 580px);
  display: grid;
  grid-template-areas:
    "profile clusters clusters"
    "songs songs albums";
  /* Give the profile enough room for its portrait and signal content. */
  grid-template-columns: minmax(512px, 46%) minmax(0, 1fr) minmax(360px, 30%);
  grid-template-rows: minmax(var(--top-panel-height), auto) auto;
  gap: 16px;
  align-items: start;
  padding-top: 22px;
}

.dashboard-column {
  display: contents;
  min-width: 0;
}

.hero-card,
.cluster-panel,
.leaderboard-panel,
.albums-panel,
.pipeline-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.88);
}

:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .cluster-panel,
:root[data-theme="dark"] .leaderboard-panel,
:root[data-theme="dark"] .albums-panel,
:root[data-theme="dark"] .pipeline-panel {
  background: rgba(15, 23, 42, 0.84);
}

:root[data-theme="dark"] .hero-card {
  color: #061018;
  border-color: rgba(18, 229, 223, 0.36);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.54),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

/* Warm paper surface for the artist profile modal. */
.hero-card,
:root[data-theme="dark"] .hero-card {
  background: #ffe8d4;
}

:root[data-theme="dark"] .leaderboard-panel {
  color: #061018;
  background: rgba(255, 255, 255, 0.94);
}

.hero-card .eyebrow,
.leaderboard-panel .eyebrow,
.albums-panel .eyebrow {
  color: var(--coral);
}

.hero-card .eyebrow {
  color: #061018;
}

.leaderboard-panel .eyebrow,
.albums-panel .eyebrow {
  color: #101726;
  margin-bottom: 8px;
  font-size: 1.63rem;
  line-height: 1;
  -webkit-text-stroke: 0.5px #ffffff;
  text-shadow:
    -0.5px 0 #ffffff,
    0 0.5px #ffffff,
    0.5px 0 #ffffff,
    0 -0.5px #ffffff,
    1px 1px 0 rgba(18, 229, 223, 0.55);
}

:root[data-theme="dark"] .leaderboard-panel .eyebrow,
:root[data-theme="dark"] .albums-panel .eyebrow {
  color: #edf4ff;
}

.hero-card {
  grid-area: profile;
  display: grid;
  container-type: inline-size;
  grid-template-columns: minmax(180px, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto auto auto minmax(106px, 0.72fr) auto;
  column-gap: 10px;
  row-gap: 7px;
  align-self: stretch;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: visible;
  padding: 14px;
}

.artist-visual {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 5;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-content: stretch;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}

.portrait {
  position: relative;
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(39, 60, 94, 0.16);
}

:root[data-theme="dark"] .portrait {
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(39, 60, 94, 0.18);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-strip {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  grid-row: auto;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  max-width: 100%;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: var(--radius);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: rgba(226, 232, 240, 0.86);
}

.artist-visual .cluster-signal-card {
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  align-self: end;
  padding: 7px 8px;
}

:root[data-theme="dark"] .rank-strip {
  background: rgba(226, 232, 240, 0.92);
}

.metric-label,
td,
.pipeline-list p {
  color: var(--muted);
}

.rank-strip span {
  min-width: 0;
  color: #334155;
  font-weight: 620;
}

:root[data-theme="dark"] .rank-strip span {
  color: #334155;
}

.rank-strip strong {
  flex: 0 0 auto;
  color: var(--pink);
  font-size: 1.08rem;
  font-weight: 700;
}

.artist-copy {
  display: contents;
  align-content: start;
  min-width: 0;
}

.artist-copy .section-heading,
.artist-bio,
.polarizing-profile-badge,
.profile-actions {
  grid-column: 2;
}

.artist-copy .section-heading {
  grid-row: 1;
}

.artist-bio {
  grid-row: 2;
  min-height: 0;
}

.polarizing-profile-badge {
  grid-row: 5;
}

.profile-actions {
  grid-row: 4;
  align-self: start;
}

/* The reference profile moves the supporting rank strip out of the visual stack. */
.hero-card .rank-strip {
  display: none;
}

.hero-card #artist-name {
  text-shadow: none;
}

.artist-copy .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow actions"
    "name actions"
    "rankings rankings";
  column-gap: 10px;
  row-gap: 0;
}

.artist-copy .section-heading > div:first-child {
  display: contents;
}

.artist-copy .section-heading .eyebrow {
  grid-area: eyebrow;
}

.artist-copy .section-heading #artist-name {
  grid-area: name;
}

.artist-copy .section-heading .artist-profile-heading-actions {
  grid-area: actions;
}

.profile-rank-summary {
  grid-area: rankings;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin-top: 8px;
}

.profile-rank-item {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(16, 23, 38, 0.18);
  border-top-width: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-rank-item small,
.profile-rank-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-rank-item small {
  color: #475569;
  font-size: 0.55rem;
  font-weight: 820;
  text-transform: uppercase;
}

.profile-rank-item strong {
  margin-top: 1px;
  color: #101726;
  font-size: 0.76rem;
  font-weight: 900;
}

.profile-rank-item strong em {
  color: #64748b;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 700;
}

.profile-rank-summary[data-percentile-ranks] {
  grid-template-columns: 1fr;
  gap: 4px;
}

.profile-rank-summary[data-percentile-ranks] .profile-rank-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
}

.profile-rank-summary[data-percentile-ranks] .profile-rank-item small,
.profile-rank-summary[data-percentile-ranks] .profile-rank-item strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.profile-rank-summary[data-percentile-ranks] .profile-rank-item small {
  line-height: 1.15;
}

.profile-rank-summary[data-percentile-ranks] .profile-rank-item strong {
  margin-top: 0;
  font-size: 0.86rem;
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
}

.profile-rank-summary[data-percentile-ranks] .profile-rank-item strong em {
  display: block;
  margin-top: 2px;
  line-height: 1.1;
}

.profile-rank-wholesome {
  border-top-color: #35e58b;
}

.profile-rank-negative {
  border-top-color: #ff3f72;
}

.profile-rank-vocabulary {
  border-top-color: #7767ff;
}

.hero-card .share-button {
  color: #ffffff;
  border-color: #101726;
  background: #101726;
}

.hero-card .share-button:hover,
.hero-card .share-button:focus-visible,
.hero-card .share-button.is-feedback {
  color: #061018;
  border-color: var(--cyan);
  background: var(--cyan);
}

.artist-visual .cluster-signal-card .signal-card {
  min-height: 74px;
  padding: 10px 11px;
}

.lyric-trend-card {
  grid-column: 1 / -1;
  grid-row: 5;
  min-height: 0;
}

.hero-card.has-polarizing-badge .lyric-trend-card {
  grid-column: 1 / 2;
}

.hero-card.has-polarizing-badge .polarizing-profile-badge {
  grid-column: 2;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.album-insights-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel-soft);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 820;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.album-insights-trigger:hover,
.album-insights-trigger:focus-visible {
  color: #061018;
  border-color: var(--cyan);
  background: var(--cyan);
  outline: none;
  transform: translateY(-1px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(53, 229, 139, 0.35);
  border-radius: 999px;
  color: #baffd9;
  background: rgba(53, 229, 139, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.artist-bio {
  min-width: 0;
  max-width: 680px;
  max-height: none;
  margin: 6px 0 0;
  overflow: visible;
  color: #061018;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.artist-bio-detail {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  max-width: 680px;
  margin: 0;
  padding: 10px 0 4px;
  color: #334155;
  border-top: 1px solid rgba(148, 163, 184, 0.34);
  font-size: 0.88rem;
  font-weight: 560;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.artist-bio-detail .artist-life-event {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 7px 9px;
  border-left: 4px solid #111827;
  color: #1f2937;
  background: rgba(15, 23, 42, 0.08);
  line-height: 1.35;
}

.artist-life-event strong {
  color: #111827;
  font-size: 0.69rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.artist-life-event span {
  font-size: 0.78rem;
  font-weight: 720;
}

:root[data-theme="dark"] .artist-bio-detail {
  color: #334155;
}

.artist-bio.is-expanded {
  max-height: none;
  overflow: visible;
}

:root[data-theme="dark"] .artist-bio {
  color: #061018;
}

.polarizing-profile-badge {
  display: grid;
  gap: 4px;
  align-self: start;
  width: min(100%, 330px);
  max-height: none;
  margin-top: 6px;
  padding: 7px 9px;
  overflow: visible;
  border: 1px solid rgba(213, 32, 50, 0.45);
  border-radius: 8px;
  color: #061018;
  background: linear-gradient(135deg, rgba(255, 47, 95, 0.18), rgba(255, 207, 51, 0.16));
  box-shadow: 0 10px 26px rgba(213, 32, 50, 0.16);
}

.polarizing-profile-badge strong {
  color: #d52032;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.polarizing-profile-badge small {
  color: #334155;
  font-size: 0.7rem;
  font-weight: 800;
}

.polarizing-profile-badge div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.polarizing-profile-badge span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: #d52032;
  font-size: 0.72rem;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42);
}

.polarizing-profile-badge span strong {
  color: #fff6b8;
  font-size: inherit;
  text-transform: none;
}

:root[data-theme="dark"] .polarizing-profile-badge {
  color: #061018;
  background: linear-gradient(135deg, rgba(255, 47, 95, 0.22), rgba(255, 207, 51, 0.2));
  box-shadow: 0 0 20px rgba(213, 32, 50, 0.34);
}

.read-more-button {
  justify-self: start;
  max-width: 100%;
  min-height: 30px;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0 10px;
  cursor: pointer;
  color: #101726;
  border: 1px solid rgba(4, 170, 166, 0.64);
  border-radius: var(--radius);
  background: var(--cyan);
  box-shadow: 0 10px 18px rgba(18, 229, 223, 0.22);
  font-weight: 340;
  white-space: normal;
}

.read-more-button:hover {
  background: #6ffcf8;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
}

.profile-actions[hidden],
.read-more-button[hidden] {
  display: none;
}

.profile-actions .read-more-button {
  flex: 0 0 auto;
}

.lyric-trend-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(18, 229, 223, 0.34);
  border-radius: var(--radius);
  color: #061018;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(39, 60, 94, 0.12);
}

:root[data-theme="dark"] .lyric-trend-card {
  background: rgba(248, 250, 252, 0.94);
}

.trend-card-head,
.trend-latest,
.trend-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.trend-card-head {
  justify-content: space-between;
}

.trend-card-head strong {
  display: block;
  color: #101726;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.trend-card-head small {
  display: block;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 740;
}

.trend-card-head b {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: #8b5cf6;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trend-card-head b.is-posthumous {
  border: 1px solid #111827;
  background: #111827;
  box-shadow: inset 0 -2px 0 rgba(255, 207, 51, 0.8);
}

.trend-chart {
  display: block;
  width: 100%;
  height: 76px;
  overflow: visible;
}

.trend-chart line {
  stroke: rgba(71, 85, 105, 0.22);
  stroke-width: 1.2;
}

.trend-chart text {
  fill: #475569;
  font-size: 10px;
  font-weight: 800;
}

.trend-chart .trend-death-line {
  stroke: #111827;
  stroke-width: 2.6;
  stroke-dasharray: 5 3;
  opacity: 0.94;
}

.trend-chart .trend-death-label {
  fill: #111827;
  font-size: 9px;
  font-weight: 1000;
}

.trend-line {
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.2));
}

.trend-marker {
  opacity: 0.18;
  stroke: #ffffff;
  stroke-width: 1.5;
  cursor: crosshair;
  transition: opacity 160ms ease, r 160ms ease;
}

.trend-chart:hover .trend-marker,
.trend-marker:hover {
  opacity: 0.92;
}

.trend-marker:hover {
  r: 6;
}

.trend-legend {
  flex-wrap: wrap;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #334155;
  font-size: 0.67rem;
  font-weight: 850;
}

.trend-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--trend-color);
}

.trend-latest {
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 820;
}

.trend-latest strong {
  color: #101726;
  font-size: 0.67rem;
}

.metric-row {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 6;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-self: end;
  margin: 0;
}

.metric-row > div {
  min-width: 0;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .metric-row > div {
  background: rgba(248, 250, 252, 0.94);
}

:root[data-theme="dark"] .hero-card .metric-value {
  color: #101726;
}

:root[data-theme="dark"] .hero-card .metric-label {
  color: #475569;
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.metric-label {
  color: #334155;
  font-size: 0.62rem;
  font-weight: 500;
}

@container (max-width: 380px) {
  .hero-card {
    grid-template-columns: minmax(112px, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    padding: 12px;
  }

  .hero-card .eyebrow {
    font-size: 0.68rem;
  }

  #artist-name {
    font-size: 1.1rem;
  }

  .artist-bio {
    max-height: none;
    margin-top: 5px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .read-more-button {
    align-self: center;
    min-height: 28px;
    margin-top: auto;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .rank-strip {
    min-height: 52px;
    padding: 7px 9px;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-row > div {
    min-height: 54px;
    padding: 8px;
  }

  .metric-value {
    font-size: 0.98rem;
  }

  .metric-label {
    font-size: 0.64rem;
  }
}

.cluster-panel {
  position: relative;
  grid-area: clusters;
  display: flex;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bubble-surface, #ffe8d4);
  contain: layout paint;
}

:root[data-theme="dark"] .cluster-panel {
  background: var(--bubble-surface, #ffe8d4);
}

.cluster-panel > .section-heading {
  display: none;
}

.cluster-signal-card {
  display: grid;
  justify-items: center;
  max-width: min(170px, 100%);
  padding: 6px 10px;
  color: #061018;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 18px rgba(18, 229, 223, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.cluster-signal-card[hidden] {
  display: none;
}

.cluster-signal-card span,
.cluster-signal-card small {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-extremes {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 2px;
}

.signal-row {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.cluster-signal-card strong {
  max-width: 100%;
  color: #061018;
  font-size: 0.78rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-drag-label {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 50%;
  padding: 3px 9px;
  color: #050a12;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 14px rgba(18, 229, 223, 0.22);
  font-size: 0.78rem;
  font-weight: 850;
  transform: translateX(-50%);
  pointer-events: none;
}

.cluster-click-label {
  position: absolute;
  z-index: 20;
  top: 35px;
  left: 50%;
  padding: 3px 9px;
  color: #050a12;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 14px rgba(255, 47, 128, 0.2);
  font-size: 0.72rem;
  font-weight: 850;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

select {
  height: 34px;
  padding: 0 28px 0 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

:root[data-theme="dark"] select {
  background: #0c121d;
}

.cluster-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin-top: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--bubble-surface, #ffe8d4);
}

.bubble-wrap {
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: scale 180ms ease, z-index 180ms ease;
  touch-action: none;
}

.bubble-wrap.is-dragging {
  scale: 1.14;
  z-index: 90;
}

.bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  place-items: center;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: var(--size);
  height: var(--size);
  padding: var(--bubble-pad, 12px);
  cursor: grab;
  border: 0;
  outline: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.34), transparent 12%), var(--tone);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--tone) 56%, transparent),
    0 0 16px color-mix(in srgb, var(--tone) 72%, transparent),
    0 0 34px color-mix(in srgb, var(--tone) 58%, transparent),
    0 18px 42px rgba(0, 0, 0, 0.3);
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 3px rgba(6, 16, 24, 0.52);
  -webkit-text-stroke: 0.12px #061018;
  animation: bubbleNeonPulse 2.4s ease-in-out infinite;
  transition: opacity 180ms ease, scale 180ms ease, box-shadow 180ms ease;
}

.bubble-label {
  display: block;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.96);
  font-size: var(--label-size, 1rem);
  font-weight: 930;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.bubble-count {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--count-size, 0.88rem);
  font-weight: 700;
  line-height: 1;
}

.bubble-wrap.is-top-bubble .bubble {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--tone) 72%, transparent),
    0 0 24px color-mix(in srgb, var(--tone) 96%, transparent),
    0 0 58px color-mix(in srgb, var(--tone) 82%, transparent),
    0 22px 52px rgba(0, 0, 0, 0.36);
}

.bubble-wrap.is-low-bubble .bubble {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--tone) 48%, transparent),
    0 0 10px color-mix(in srgb, var(--tone) 52%, transparent),
    0 0 22px color-mix(in srgb, var(--tone) 36%, transparent),
    0 12px 30px rgba(0, 0, 0, 0.24);
}

.bubble-wrap.is-dragging .bubble {
  cursor: grabbing;
}

.bubble-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: min(260px, 72vw);
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 80;
}

.bubble-wrap.popover-align-left .bubble-popover {
  left: 0;
  transform: translate(0, 8px);
}

.bubble-wrap.popover-align-right .bubble-popover {
  right: 0;
  left: auto;
  transform: translate(0, 8px);
}

.bubble-wrap.popover-above .bubble-popover {
  top: auto;
  bottom: calc(100% + 10px);
}

.bubble-wrap:hover,
.bubble-wrap:focus-within,
.bubble-wrap.is-selected {
  z-index: 60;
}

.bubble-wrap:hover .bubble,
.bubble-wrap:focus-within .bubble,
.bubble-wrap.is-selected .bubble {
  scale: 1.16;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--tone) 76%, transparent),
    0 0 34px color-mix(in srgb, var(--tone) 100%, transparent),
    0 0 72px color-mix(in srgb, var(--tone) 94%, transparent),
    0 24px 58px rgba(0, 0, 0, 0.4);
}

.bubble-wrap.is-dragging .bubble {
  scale: 1;
}

.bubble-wrap.is-dragging .bubble-popover {
  opacity: 0;
  pointer-events: none;
}

.bubble-wrap.is-selected .bubble-popover,
.bubble-wrap:focus-within .bubble-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.bubble-wrap.popover-align-left.is-selected .bubble-popover,
.bubble-wrap.popover-align-left:focus-within .bubble-popover,
.bubble-wrap.popover-align-right.is-selected .bubble-popover,
.bubble-wrap.popover-align-right:focus-within .bubble-popover {
  transform: translate(0, 0);
}

.bubble-popover-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
}

.bubble-popover-head span {
  color: var(--cyan);
  white-space: nowrap;
}

.bubble-popover-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 8px;
}

.bubble-popover-stats span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #dbe7f5;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 820;
}

.bubble-song-list {
  display: grid;
  gap: 5px;
  max-height: 230px;
  overflow: auto;
}

.bubble-song-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 6px 8px;
  cursor: pointer;
  color: #101726;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 760;
  text-align: left;
}

.bubble-song-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-song-link strong {
  color: var(--pink);
  font-size: 0.78rem;
}

.bubble-song-link:hover,
.bubble-song-link:focus-visible {
  border-color: var(--cyan);
  background: #ffffff;
}

.bubble-empty {
  margin: 0;
  color: #ffffff;
  font-size: 0.75rem;
}

.song-breakdown {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 120;
  width: min(420px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 28px));
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: var(--radius);
  background: rgba(241, 245, 249, 0.97);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

:root[data-theme="dark"] .song-breakdown {
  background: rgba(15, 23, 42, 0.97);
}

.song-breakdown h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.25rem;
}

.song-breakdown-close {
  float: right;
  min-height: 30px;
  padding: 0 10px;
  cursor: pointer;
  color: #ffffff;
  border: 1px solid var(--royal);
  border-radius: 6px;
  background: var(--coral);
  font-weight: 820;
}

.song-breakdown-meta {
  margin-bottom: 12px;
  color: #26384f;
  font-weight: 720;
}

:root[data-theme="dark"] .song-breakdown-meta {
  color: #dbe7f5;
}

.song-breakdown-words {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.song-breakdown-words span {
  padding: 6px 8px;
  border: 1px solid rgba(18, 229, 223, 0.45);
  border-radius: 999px;
  background: rgba(18, 229, 223, 0.14);
  color: #101726;
  font-size: 0.76rem;
  font-weight: 780;
}

:root[data-theme="dark"] .song-breakdown-words span {
  color: #edf4ff;
}

.song-breakdown-words strong {
  color: var(--pink);
}

.song-breakdown-contexts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-breakdown-contexts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #26384f;
  font-size: 0.76rem;
}

:root[data-theme="dark"] .song-breakdown-contexts li {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7f5;
}

.song-breakdown-contexts span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-breakdown-contexts strong {
  color: var(--pink);
  white-space: nowrap;
}

@keyframes logoAura {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.96) rotate(-1deg);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.04) rotate(1.2deg);
  }
}

@keyframes logoDance {
  0%,
  100% {
    transform: translateY(0) rotate(-0.8deg);
  }

  50% {
    transform: translateY(-3px) rotate(0.8deg);
  }
}

@keyframes bubbleNeonPulse {
  0%,
  100% {
    filter: saturate(1.08) brightness(1);
  }

  50% {
    filter: saturate(1.34) brightness(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  h1,
  .brand,
  .brand::before,
  .brand img,
  .bubble {
    animation: none;
  }
}

.cluster-stage[data-focus]:not([data-focus="all"]) .bubble-wrap {
  opacity: 1;
  scale: 1;
}

.leaderboard-panel,
.albums-panel,
.pipeline-panel {
  padding: 18px;
}

.leaderboard-panel {
  grid-area: songs;
  background: rgba(148, 163, 184, 0.5);
}

:root[data-theme="dark"] .leaderboard-panel {
  background: rgba(71, 85, 105, 0.5);
}

.albums-panel {
  grid-area: albums;
  background: rgba(148, 163, 184, 0.42);
}

:root[data-theme="dark"] .albums-panel {
  border-color: rgba(226, 232, 240, 0.18);
  background: rgba(51, 65, 85, 0.92);
}

.ghost-button {
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  background: #ffffff;
}

:root[data-theme="dark"] .ghost-button {
  background: rgba(255, 255, 255, 0.04);
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: #26384f;
  font-size: 0.86rem;
  font-weight: 820;
}

:root[data-theme="dark"] .sort-wrap {
  color: #dbe7f5;
}

.sort-wrap select {
  min-width: 210px;
  height: 40px;
  color: #101726;
  border: 1px solid rgba(42, 68, 105, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 760;
}

:root[data-theme="dark"] .sort-wrap select {
  color: #edf4ff;
  background: rgba(15, 23, 42, 0.88);
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(148, 163, 184, 0.5);
}

table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

/* Keep column labels available while comparing long song and album lists. The
   table remains fully expanded; only the header gains a visual anchor during
   normal page scrolling. */
.songs-table thead,
.albums-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
}

.songs-table thead th,
.albums-table thead th {
  border-bottom: 2px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.08);
}

.albums-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .albums-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.055);
}

.songs-table,
.albums-table {
  table-layout: fixed;
}

.songs-table {
  min-width: 100%;
}

.albums-table {
  min-width: 100%;
}

.songs-table th:nth-child(1),
.songs-table td:nth-child(1) {
  width: 44%;
}

.songs-table th:nth-child(2),
.songs-table td:nth-child(2) {
  width: 26%;
}

.songs-table th:nth-child(3),
.songs-table td:nth-child(3) {
  width: 18%;
}

.songs-table th:nth-child(4),
.songs-table td:nth-child(4) {
  width: 12%;
}

.albums-table th:nth-child(1),
.albums-table td:nth-child(1) {
  width: 55%;
}

.albums-table th:nth-child(2),
.albums-table td:nth-child(2) {
  width: 28%;
}

.albums-table th:nth-child(3),
.albums-table td:nth-child(3) {
  width: 17%;
}

th,
td {
  padding: 13px clamp(8px, 1vw, 14px);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  color: #26384f;
  font-weight: 720;
  vertical-align: middle;
}

.songs-table th:first-child,
.songs-table td:first-child,
.albums-table th:first-child,
.albums-table td:first-child {
  padding-left: 16px;
}

th {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.songs-table th:nth-child(3),
.songs-table td:nth-child(3),
.songs-table th:nth-child(4),
.songs-table td:nth-child(4),
.albums-table th:nth-child(2),
.albums-table td:nth-child(2),
.albums-table th:nth-child(3),
.albums-table td:nth-child(3) {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

:root[data-theme="dark"] th,
:root[data-theme="dark"] td {
  color: #e2e8f0;
}

:root[data-theme="dark"] .albums-panel .table-wrap {
  border-color: rgba(226, 232, 240, 0.26);
  background: rgba(30, 41, 59, 0.62);
}

:root[data-theme="dark"] .albums-panel th {
  color: #ffffff;
  background: rgba(148, 163, 184, 0.42);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  -webkit-text-stroke: 0;
}

:root[data-theme="dark"] .albums-panel td,
:root[data-theme="dark"] .albums-panel .album-title-cell {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.62);
  -webkit-text-stroke: 0;
}

:root[data-theme="dark"] .albums-panel .album-row:hover {
  background: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .albums-panel .album-row.is-active {
  background: rgba(18, 229, 223, 0.18);
}

:root[data-theme="dark"] .leaderboard-panel th,
:root[data-theme="dark"] .leaderboard-panel td,
:root[data-theme="dark"] .leaderboard-panel .track-cell,
:root[data-theme="dark"] .leaderboard-panel .song-title-cell,
:root[data-theme="dark"] .leaderboard-panel .release-cell {
  color: #061018;
}

.release-cell {
  color: var(--album-text);
  font-weight: 780;
  font-size: 1.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow:
    -0.65px 0 #ffffff,
    0 0.65px #ffffff,
    0.65px 0 #ffffff,
    0 -0.65px #ffffff;
  -webkit-text-stroke: 0.16px #ffffff;
}

.album-row {
  cursor: pointer;
}

.album-row:hover {
  background: rgba(255, 255, 255, 0.82);
}

.album-row.is-active {
  background: rgba(18, 229, 223, 0.14);
  box-shadow: inset 4px 0 0 var(--cyan);
}

.album-title-cell {
  color: var(--album-text);
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow:
    -0.65px 0 #ffffff,
    0 0.65px #ffffff,
    0.65px 0 #ffffff,
    0 -0.65px #ffffff;
  -webkit-text-stroke: 0.16px #ffffff;
}

th {
  color: var(--text);
  background: rgba(226, 232, 240, 0.88);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

:root[data-theme="dark"] th {
  background: rgba(255, 255, 255, 0.04);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  background: rgba(255, 255, 255, 0.68);
}

:root[data-theme="dark"] tbody tr {
  background: rgba(15, 23, 42, 0.54);
}

:root[data-theme="dark"] .leaderboard-panel tbody tr {
  background: rgba(226, 232, 240, 0.74);
}

:root[data-theme="dark"] .leaderboard-panel th {
  background: rgba(203, 213, 225, 0.88);
}

:root[data-theme="dark"] .leaderboard-panel .table-wrap {
  background: rgba(148, 163, 184, 0.55);
}

.leaderboard-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #061018;
  border: 1px solid rgba(18, 229, 223, 0.54);
  border-radius: 6px;
  background: rgba(18, 229, 223, 0.22);
  font-size: 0.74rem;
  font-weight: 850;
  text-decoration: none;
}

.leaderboard-link:hover,
.leaderboard-link:focus-visible {
  background: rgba(18, 229, 223, 0.38);
}

.song-table-row {
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.song-table-row:hover td,
.song-table-row:focus-visible td {
  background: rgba(18, 229, 223, 0.12);
}

.song-table-row:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.track-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  min-width: 0;
}

.song-title-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.08em;
  text-shadow:
    -0.65px 0 #ffffff,
    0 0.65px #ffffff,
    0.65px 0 #ffffff,
    0 -0.65px #ffffff;
  -webkit-text-stroke: 0.16px #ffffff;
}

.track-chip {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 38px;
  place-items: center;
  align-content: center;
  border-radius: 7px;
  color: #061018;
  background: var(--track-color);
  line-height: 1;
}

.track-chip span {
  font-size: 0.52rem;
  font-weight: 850;
  text-transform: uppercase;
}

.track-chip strong {
  font-size: 0.8rem;
  font-weight: 950;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 54px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  color: #101722;
  background: var(--theme-tone);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.55);
  font-size: clamp(0.78rem, 0.86vw, 0.96rem);
  font-weight: 850;
  line-height: 1.05;
  overflow: hidden;
  text-align: center;
  vertical-align: middle;
}

.theme-pill-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-pill-profanity,
.theme-pill-negative,
.theme-pill-conflict,
.theme-pill-fear,
.theme-pill-despair,
.theme-pill-objectification {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.theme-pill-positive,
.theme-pill-hope,
.theme-pill-greed,
.theme-pill-tenderness,
.theme-pill-community,
.theme-pill-status,
.theme-pill-motif,
.theme-pill-phrase {
  color: #07111f;
}

.theme-pill-spiritual,
.theme-pill-faith {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.58);
}

.pipeline-panel {
  display: none;
  background:
    linear-gradient(135deg, rgba(255, 47, 128, 0.1), transparent 38%),
    var(--panel-glass);
}

.pipeline-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pipeline-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pipeline-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #061018;
  background: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
}

.pipeline-list strong {
  display: block;
  margin-bottom: 4px;
}

.pipeline-list p {
  margin-bottom: 0;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 170px minmax(220px, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .popular-artists,
  .nav-stack {
    grid-column: 1 / -1;
  }

  .nav-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-section-label {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .sidebar-rankings {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .sidebar-year-explorer {
    grid-column: 1 / -1;
  }

}

@media (max-width: 900px) {
  .app-shell {
    width: calc(100% - 24px);
    min-height: calc(100vh - 24px);
    margin: 12px auto;
  }

  .workspace {
    padding: 20px;
  }

  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-areas:
      "profile"
      "clusters"
      "songs"
      "albums";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .cluster-panel {
    height: min(440px, 58vw);
    max-height: none;
    min-height: 360px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .portrait,
  .rank-strip,
  .cluster-signal-card,
  .artist-copy .section-heading,
  .artist-bio,
  .artist-bio-detail,
  .artist-bio.is-expanded,
  .polarizing-profile-badge,
  .profile-actions,
  .lyric-trend-card,
  .metric-row {
    grid-column: 1;
    grid-row: auto;
  }

  .artist-copy {
    display: grid;
    grid-template-rows: auto;
  }

  .artist-visual {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    align-items: stretch;
  }

  .rank-strip {
    margin-top: 0;
  }

  .hero-card.has-polarizing-badge .lyric-trend-card,
  .hero-card.has-polarizing-badge .polarizing-profile-badge {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .sidebar {
    position: static;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .brand {
    width: 150px;
  }

  .popular-artists,
  .nav-stack {
    grid-template-columns: 1fr;
  }

  .sidebar-rankings {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .metric-row,
  .artist-visual {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .topbar-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .language-flag-group {
    flex: 1 1 190px;
    justify-content: center;
  }

  .language-flag-button {
    flex: 0 0 36px;
    width: 36px;
  }

  .theme-toggle {
    justify-content: flex-start;
    min-width: 136px;
  }

  .auth-button {
    flex: 1 1 180px;
  }

  .cluster-stage {
    min-height: 340px;
    height: 340px;
  }

  .cluster-panel {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }

  .bubble-popover {
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Artist discovery navigation */
.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.topbar-identity {
  min-width: 0;
}

.topbar-navigation {
  display: flex;
  align-items: center;
}

.artists-menu-wrap {
  position: static;
}

.artists-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 112px;
  height: 40px;
  padding: 0 16px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-glass);
  box-shadow: 0 8px 20px rgba(35, 55, 86, 0.08);
  font-weight: 820;
}

.artists-menu-button:hover,
.artists-menu-button:focus-visible,
.artists-menu-button[aria-expanded="true"] {
  color: var(--royal);
  border-color: color-mix(in srgb, var(--royal) 52%, var(--line-strong));
  background: var(--panel);
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 77, 255, 0.1), 0 10px 22px rgba(35, 55, 86, 0.12);
}

.menu-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.artists-menu-button[aria-expanded="true"] .menu-chevron {
  transform: translateY(2px) rotate(225deg);
}

.artists-mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(920px, 100%);
  max-height: min(660px, 72vh);
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 96%, var(--bg));
  box-shadow: 0 28px 70px rgba(15, 25, 45, 0.24);
}

.artists-mega-menu[hidden] {
  display: none;
}

:root[data-theme="dark"] .artists-mega-menu {
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.58);
}

.mega-menu-heading,
.artist-discovery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.mega-menu-heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mega-menu-intro {
  min-width: 0;
}

.mega-artist-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 100%);
  margin-top: 7px;
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.mega-artist-search:focus-within {
  color: var(--royal);
  border-color: color-mix(in srgb, var(--royal) 58%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--royal) 13%, transparent);
}

.mega-artist-search span {
  font-size: 1.12rem;
  line-height: 1;
}

.mega-artist-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
}

.mega-artist-search input::placeholder {
  color: var(--muted);
}

.mega-menu-intro h2 {
  margin-top: 9px;
}

.artist-count {
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.mega-menu-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-close {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-soft);
  font-size: 1.25rem;
  line-height: 1;
}

.mega-menu-close:hover,
.mega-menu-close:focus-visible {
  color: var(--royal);
  border-color: color-mix(in srgb, var(--royal) 48%, var(--line));
  background: var(--panel);
  outline: none;
}

.artists-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.artist-discovery-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-soft) 78%, transparent);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.artist-discovery-link:hover,
.artist-discovery-link:focus-visible {
  color: var(--royal);
  border-color: color-mix(in srgb, var(--royal) 38%, var(--line));
  background: var(--panel);
  outline: none;
}

.artist-discovery-link.is-current {
  color: var(--royal);
  border-color: color-mix(in srgb, var(--royal) 58%, var(--line));
  background: color-mix(in srgb, var(--royal) 9%, var(--panel));
  box-shadow: inset 3px 0 0 var(--royal);
}

.artist-avatar {
  position: relative;
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
}

.artist-avatar img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-monogram {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.artist-avatar .artist-monogram {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
}

.artist-discovery-link:hover .artist-monogram,
.artist-discovery-link:focus-visible .artist-monogram,
.artist-discovery-link.is-current .artist-monogram {
  color: #ffffff;
  border-color: var(--royal);
  background: var(--royal);
}

.artist-link-copy {
  display: block;
  min-width: 0;
}

.artist-link-copy strong,
.artist-link-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-link-copy strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.artist-link-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.1;
}

.artist-link-mega {
  min-height: 54px;
  padding: 7px 9px;
}

.artist-marquee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  box-shadow: 0 10px 28px rgba(35, 55, 86, 0.08);
}

.marquee-label {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: stretch;
  padding: 0 16px;
  place-items: center;
  color: var(--muted);
  border-right: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.7rem;
  font-weight: 880;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.artist-marquee-viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.artist-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: artistMarquee 72s linear infinite;
}

.artist-marquee:focus-within .artist-marquee-track {
  animation-play-state: paused;
}

.artist-marquee-group {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px 7px 0;
}

.artist-link-marquee {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 4px 11px 4px 5px;
  border-color: var(--line);
  background: var(--panel-soft);
}

.artist-link-marquee .artist-monogram {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}

.artist-link-marquee .artist-avatar {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
}

.artist-link-marquee.is-current {
  box-shadow: none;
}

.artist-discovery {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: 0 14px 34px rgba(35, 55, 86, 0.09);
}

.artist-discovery-heading {
  margin-bottom: 16px;
}

.footer-back-link {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.footer-back-link:hover,
.footer-back-link:focus-visible {
  color: var(--royal);
}

.footer-artist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.artist-link-footer {
  min-height: 56px;
  padding: 8px 10px;
  border-color: var(--line);
}

@keyframes artistMarquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-identity {
    grid-column: 1 / -1;
  }

  .artists-mega-grid,
  .footer-artist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .artists-mega-grid,
  .footer-artist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-navigation,
  .artists-menu-button {
    width: 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .artists-mega-menu {
    position: fixed;
    inset: 12px;
    width: auto;
    max-height: none;
    padding: 14px;
  }

  .artists-mega-grid,
  .footer-artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-marquee {
    grid-template-columns: minmax(0, 1fr);
  }

  .marquee-label {
    display: none;
  }

  .artist-discovery {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .artists-mega-grid,
  .footer-artist-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .artist-marquee-viewport {
    overflow-x: auto;
    mask-image: none;
  }

  .artist-marquee-track {
    animation: none;
  }

  .artist-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* Top signal widget */
.artist-visual .cluster-signal-card {
  min-height: 142px;
  padding: 10px;
}

.cluster-signal-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-color: rgba(203, 213, 225, 0.96);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cluster-signal-card .signal-widget-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.cluster-signal-card .signal-widget-heading::after {
  flex: 1 1 auto;
  min-width: 10px;
  height: 1px;
  content: "";
  background: #dbe3ee;
}

.cluster-signal-card .signal-extremes {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.cluster-signal-card .signal-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.cluster-signal-card .signal-card-positive {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.cluster-signal-card .signal-card-polarizing {
  border-color: #fed7aa;
  background: #fff7ed;
}

.cluster-signal-card .signal-card-meta,
.cluster-signal-card .signal-score {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cluster-signal-card .signal-card-meta {
  gap: 6px;
}

.cluster-signal-card .signal-type,
.cluster-signal-card .signal-score {
  margin: 0;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
}

.cluster-signal-card .signal-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cluster-signal-card .signal-type span {
  display: inline-block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cluster-signal-card .signal-card-positive .signal-type,
.cluster-signal-card .signal-card-positive .signal-count {
  color: #166534;
}

.cluster-signal-card .signal-card-positive .signal-type span {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

.cluster-signal-card .signal-card-polarizing .signal-type,
.cluster-signal-card .signal-card-polarizing .signal-count {
  color: #c2410c;
}

.cluster-signal-card .signal-card-polarizing .signal-type span {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.13);
}

.cluster-signal-card .signal-word {
  max-width: 100%;
  color: #061018;
  font-size: 1rem;
  font-weight: 840;
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-signal-card .signal-score {
  gap: 4px;
  color: #64748b;
  font-weight: 620;
}

.cluster-signal-card .signal-score span,
.cluster-signal-card .signal-score b {
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.cluster-signal-card .signal-count {
  font-weight: 850;
}

.cluster-signal-card .signal-divider {
  color: #94a3b8;
}

/* Cyberpunk artist ticker */
.artist-marquee {
  min-height: 62px;
  border-color: #222b36;
  border-radius: 12px;
  background: #050505;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.07), 0 10px 28px rgba(15, 23, 42, 0.12);
}

.marquee-label {
  padding: 0 20px;
  color: #ffffff;
  border-right-color: #222b36;
  background: #050505;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.artist-marquee-viewport {
  position: relative;
  isolation: isolate;
  -webkit-mask-image: none;
  mask-image: none;
}

.artist-marquee-viewport::before,
.artist-marquee-viewport::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 32px;
  content: "";
  pointer-events: none;
}

.artist-marquee-viewport::before {
  left: 0;
  background: linear-gradient(to right, #050505, transparent);
}

.artist-marquee-viewport::after {
  right: 0;
  background: linear-gradient(to left, #050505, transparent);
}

.artist-marquee-track {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation-duration: 214.5s;
  animation-timing-function: linear;
}

@media (min-width: 1181px) {
  .topbar {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  }

  .topbar-actions {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .desktop-catalog-stat {
    flex: 0 1 146px;
  }

  .theme-toggle .toggle-track {
    display: none;
  }
}

@keyframes artistMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.artist-marquee-group {
  gap: 12px;
  padding: 10px 12px 10px 0;
}

.artist-link-marquee {
  min-height: 40px;
  padding: 5px 16px 5px 5px;
  color: #aaaaaa;
  border-color: #333333;
  border-radius: 999px;
  background: #111111;
  box-shadow: none;
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.artist-link-marquee .artist-monogram {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  color: #aaaaaa;
  border-color: #444444;
  background: #222222;
  font-size: 0.62rem;
}

.artist-link-marquee .artist-link-copy strong {
  color: #aaaaaa;
  font-size: 0.78rem;
  font-weight: 750;
}

.artist-link-marquee:hover,
.artist-link-marquee:focus-visible {
  color: #ff00ff;
  border-color: #ff00ff;
  background: #1a0014;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
  outline: none;
  transform: translateY(-2px);
}

.artist-link-marquee:hover .artist-monogram,
.artist-link-marquee:focus-visible .artist-monogram {
  color: #ff00ff;
  border-color: #ff00ff;
  background: #260020;
}

.artist-link-marquee:hover .artist-link-copy strong,
.artist-link-marquee:focus-visible .artist-link-copy strong {
  color: #ff00ff;
}

.artist-link-marquee.is-current,
.artist-link-marquee.is-current:hover,
.artist-link-marquee.is-current:focus-visible {
  color: #00ffff;
  border-color: #00ffff;
  background: #001a1a;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), inset 0 0 8px rgba(0, 255, 255, 0.1);
  transform: none;
}

.artist-link-marquee.is-current .artist-monogram,
.artist-link-marquee.is-current:hover .artist-monogram,
.artist-link-marquee.is-current:focus-visible .artist-monogram {
  color: #000000;
  border-color: #00ffff;
  background: #00ffff;
  box-shadow: 0 0 10px #00ffff;
}

.artist-link-marquee.is-current .artist-link-copy strong,
.artist-link-marquee.is-current:hover .artist-link-copy strong,
.artist-link-marquee.is-current:focus-visible .artist-link-copy strong {
  color: #00ffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Current artist accent, sidebar labels, and the restored bubble controls */
.nav-section-label,
:root[data-theme="dark"] .nav-section-label {
  color: #f3ee24;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.artist-title-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0.04em 0.16em 0.08em;
  cursor: pointer;
  color: inherit;
  border: 1px solid #f5c542;
  border-radius: 0;
  background: color-mix(in srgb, #94a3b8 10%, transparent);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.artist-title-trigger:hover,
.artist-title-trigger:focus-visible {
  color: inherit;
  border-color: #ffe08a;
  background: color-mix(in srgb, #f5c542 14%, transparent);
  outline: none;
  text-shadow: none;
}

.artist-change-trigger {
  display: block;
  margin-top: 5px;
  padding: 0;
  cursor: pointer;
  color: #ff8b33;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.artist-change-trigger:hover,
.artist-change-trigger:focus-visible {
  color: #ffb36d;
  outline: none;
}

.cluster-instructions {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
  pointer-events: none;
}

.cluster-instructions .cluster-drag-label,
.cluster-instructions .cluster-click-label {
  position: static;
  top: auto;
  left: auto;
  transform: none;
}

.cluster-sort-row {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  pointer-events: auto;
}

.palette-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: #0b1b3a;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 10px rgba(11, 27, 58, 0.22);
  pointer-events: auto;
  appearance: none;
}

.bubble-palette-control {
  position: absolute;
  z-index: 35;
  top: 12px;
  right: 12px;
}

.bubble-palette-popover {
  position: absolute;
  top: 36px;
  right: 0;
  display: grid;
  gap: 9px;
  width: 188px;
  padding: 11px;
  color: #e8f0ff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.bubble-palette-popover[hidden] {
  display: none;
}

.bubble-palette-popover strong {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bubble-palette-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.bubble-palette-swatch {
  width: 21px;
  height: 21px;
  padding: 0;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.bubble-palette-swatch:hover,
.bubble-palette-swatch:focus-visible,
.bubble-palette-swatch[aria-selected="true"] {
  border-color: #ffffff;
  outline: none;
  transform: scale(1.12);
}

.bubble-palette-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 700;
}

.bubble-palette-custom input {
  width: 30px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: transparent;
}

.palette-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.palette-icon:hover,
.palette-icon:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
  background: #273f93;
  outline: none;
}

.auto-sort-button {
  pointer-events: auto;
  min-height: 24px;
  padding: 2px 8px;
  cursor: pointer;
  color: #061018;
  border: 1px solid #f3ee24;
  border-radius: 999px;
  background: #f3ee24;
  box-shadow: 0 0 12px rgba(243, 238, 36, 0.45);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.auto-sort-button:hover,
.auto-sort-button:focus-visible,
.auto-sort-button[aria-pressed="true"] {
  color: #ffffff;
  border-color: #ffffff;
  background: #7c5cff;
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.68);
  outline: none;
}

.auto-sort-button:disabled {
  cursor: default;
  opacity: 1;
}

/* Neo-brutalist sentiment buttons: each artist owns one flat, loud tone. */
.artist-link-marquee.sentiment-negative,
.artist-link-marquee.sentiment-mixed,
.artist-link-marquee.sentiment-reflective,
.artist-link-marquee.sentiment-positive,
.artist-link-marquee.sentiment-neutral,
.artist-link-marquee.sentiment-negative:hover,
.artist-link-marquee.sentiment-mixed:hover,
.artist-link-marquee.sentiment-reflective:hover,
.artist-link-marquee.sentiment-positive:hover,
.artist-link-marquee.sentiment-neutral:hover,
.artist-link-marquee.sentiment-negative:focus-visible,
.artist-link-marquee.sentiment-mixed:focus-visible,
.artist-link-marquee.sentiment-reflective:focus-visible,
.artist-link-marquee.sentiment-positive:focus-visible,
.artist-link-marquee.sentiment-neutral:focus-visible {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: var(--artist-tone-bg);
  box-shadow: 0 0 15px var(--artist-tone-glow), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.artist-link-marquee.sentiment-negative .artist-monogram,
.artist-link-marquee.sentiment-mixed .artist-monogram,
.artist-link-marquee.sentiment-reflective .artist-monogram,
.artist-link-marquee.sentiment-positive .artist-monogram,
.artist-link-marquee.sentiment-neutral .artist-monogram {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: rgba(6, 16, 24, 0.2);
  box-shadow: none;
}

.artist-link-marquee.sentiment-negative .artist-link-copy strong,
.artist-link-marquee.sentiment-mixed .artist-link-copy strong,
.artist-link-marquee.sentiment-reflective .artist-link-copy strong,
.artist-link-marquee.sentiment-positive .artist-link-copy strong,
.artist-link-marquee.sentiment-neutral .artist-link-copy strong {
  color: var(--artist-tone-text);
  text-shadow: none;
}

.artist-link-marquee.sentiment-negative.is-current,
.artist-link-marquee.sentiment-mixed.is-current,
.artist-link-marquee.sentiment-reflective.is-current,
.artist-link-marquee.sentiment-positive.is-current,
.artist-link-marquee.sentiment-neutral.is-current,
.artist-link-marquee.sentiment-negative.is-current:hover,
.artist-link-marquee.sentiment-mixed.is-current:hover,
.artist-link-marquee.sentiment-reflective.is-current:hover,
.artist-link-marquee.sentiment-positive.is-current:hover,
.artist-link-marquee.sentiment-neutral.is-current:hover {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: var(--artist-tone-bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 22px var(--artist-tone-glow);
}

/* Songs and Albums inherit the current ticker artist's colour, without outlines. */
:root[data-theme="dark"] .leaderboard-panel,
:root[data-theme="dark"] .albums-panel {
  color: #edf4ff;
  border-color: rgba(226, 232, 240, 0.2);
  background: #293548;
}

.leaderboard-panel .eyebrow,
.albums-panel .eyebrow,
:root[data-theme="dark"] .leaderboard-panel .eyebrow,
:root[data-theme="dark"] .albums-panel .eyebrow {
  color: var(--artist-accent, var(--cyan));
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.leaderboard-panel th,
.albums-panel th,
:root[data-theme="dark"] .leaderboard-panel th,
:root[data-theme="dark"] .albums-panel th {
  color: var(--artist-accent, var(--cyan));
  text-shadow: none;
}

.leaderboard-panel .song-title-cell,
.leaderboard-panel .release-cell,
.albums-panel .album-title-cell,
:root[data-theme="dark"] .leaderboard-panel .song-title-cell,
:root[data-theme="dark"] .leaderboard-panel .release-cell,
:root[data-theme="dark"] .albums-panel .album-title-cell {
  color: var(--artist-accent, var(--cyan));
  text-shadow: none;
  -webkit-text-stroke: 0;
}

/* Compact ranked signal lists: five negative and five positive terms. */
.artist-visual .cluster-signal-card {
  min-height: 0;
}

.cluster-signal-card .signal-extremes {
  gap: 6px;
}

.cluster-signal-card .signal-card {
  padding: 7px 8px;
}

.cluster-signal-card .signal-term-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  margin: 1px 0 0;
  padding: 0;
  list-style: none;
}

.cluster-signal-card .signal-term-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 4px;
  font-size: 0.61rem;
  line-height: 1.1;
}

.cluster-signal-card .signal-rank {
  color: #64748b;
  font-size: 0.54rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.cluster-signal-card .signal-term {
  min-width: 0;
  overflow: hidden;
  color: #061018;
  font-size: 0.64rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-signal-card .signal-count {
  font-size: 0.57rem;
  font-variant-numeric: tabular-nums;
}

/* The profile shows one strongest term per side; give that term the full
   card width and keep the rank, term, and count centred as a single unit. */
.artist-visual .cluster-signal-card .signal-card {
  min-height: 88px;
  padding: 12px 13px;
}

.artist-visual .cluster-signal-card .signal-card-meta {
  justify-content: center;
}

.artist-visual .cluster-signal-card .signal-type {
  font-size: 0.67rem;
}

.artist-visual .cluster-signal-card .signal-term-list {
  grid-template-columns: 1fr;
  gap: 6px;
}

.artist-visual .cluster-signal-card .signal-term-list li {
  grid-template-columns: 1fr auto 1fr;
  min-height: 32px;
  gap: 7px;
  font-size: 0.72rem;
}

.artist-visual .cluster-signal-card .signal-rank {
  justify-self: end;
  font-size: 0.68rem;
}

.artist-visual .cluster-signal-card .signal-term {
  justify-self: center;
  color: #061018;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.artist-visual .cluster-signal-card .signal-count {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 900;
}

/* Keep the table interior on the same slate surface as its surrounding panel. */
:root[data-theme="dark"] .leaderboard-panel .table-wrap,
:root[data-theme="dark"] .albums-panel .table-wrap,
:root[data-theme="dark"] .leaderboard-panel tbody tr,
:root[data-theme="dark"] .albums-panel tbody tr {
  background: #293548;
}

/* Final hierarchy pass for the Top Lyric Signals widget. */
.artist-visual .cluster-signal-card {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.artist-visual .cluster-signal-card .signal-widget-heading {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.artist-visual .cluster-signal-card .signal-card {
  gap: 8px;
  min-height: 96px;
  padding: 11px 12px;
  border-radius: 8px;
}

.artist-visual .cluster-signal-card .signal-card-positive {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.artist-visual .cluster-signal-card .signal-card-polarizing {
  border-color: #fecaca;
  background: #fef2f2;
}

.artist-visual .cluster-signal-card .signal-card-meta {
  justify-content: center;
}

.artist-visual .cluster-signal-card .signal-type {
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.artist-visual .cluster-signal-card .signal-card-positive .signal-type,
.artist-visual .cluster-signal-card .signal-card-positive .signal-count {
  color: #166534;
}

.artist-visual .cluster-signal-card .signal-card-positive .signal-type span {
  background: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.artist-visual .cluster-signal-card .signal-card-polarizing .signal-type,
.artist-visual .cluster-signal-card .signal-card-polarizing .signal-count {
  color: #991b1b;
}

.artist-visual .cluster-signal-card .signal-card-polarizing .signal-type span {
  background: #991b1b;
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.12);
}

.artist-visual .cluster-signal-card .signal-term-list {
  gap: 8px;
}

.artist-visual .cluster-signal-card .signal-term-list li {
  grid-template-columns: 1fr auto 1fr;
  min-height: 36px;
  gap: 8px;
}

.artist-visual .cluster-signal-card .signal-rank {
  justify-self: end;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 500;
}

.artist-visual .cluster-signal-card .signal-term {
  justify-self: center;
  color: #1f2937;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
}

.artist-visual .cluster-signal-card .signal-count {
  justify-self: start;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1;
}

/* Artist Profile typography hierarchy on the warm modal surface. */
.hero-card .artist-copy .eyebrow {
  margin-bottom: 5px;
  color: #666666;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.hero-card #artist-name {
  margin-bottom: 8px;
  color: #ff4d6d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.hero-card .artist-bio {
  margin-top: 0;
  color: #2d3748;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.55;
}

.hero-card .artist-bio-detail {
  color: #718096;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  border-top-color: #e2e8f0;
}

:root[data-theme="dark"] .hero-card .artist-bio,
:root[data-theme="dark"] .hero-card .artist-bio-detail {
  color: #2d3748;
}

:root[data-theme="dark"] .hero-card .artist-bio-detail {
  color: #718096;
}

.artist-visual .cluster-signal-card .signal-card-positive .signal-type {
  color: #94e8b4;
}

.artist-visual .cluster-signal-card .signal-card-positive .signal-type span {
  background: #94e8b4;
  box-shadow: 0 0 0 3px rgba(148, 232, 180, 0.18);
}

.artist-visual .cluster-signal-card .signal-card-polarizing .signal-type {
  color: #d81e5b;
}

.artist-visual .cluster-signal-card .signal-card-polarizing .signal-type span {
  background: #d81e5b;
  box-shadow: 0 0 0 3px rgba(216, 30, 91, 0.15);
}

:root[data-theme="dark"] .leaderboard-panel th,
:root[data-theme="dark"] .albums-panel th {
  background: rgba(255, 255, 255, 0.06);
}

/* Artist discovery uses genre colour, keeping sentiment out of the preview. */
.artist-discovery-link[class*="genre-"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--artist-tone-border) 72%, var(--line));
  background: color-mix(in srgb, var(--artist-tone-bg) 18%, var(--panel-soft));
  box-shadow: 0 8px 18px var(--artist-tone-shadow);
}

.artist-discovery-link[class*="genre-"] .artist-monogram {
  color: var(--artist-tone-bg);
  border-color: color-mix(in srgb, var(--artist-tone-border) 72%, var(--line));
  background: color-mix(in srgb, var(--artist-tone-bg) 16%, var(--panel));
}

.artist-discovery-link[class*="genre-"]:hover,
.artist-discovery-link[class*="genre-"]:focus-visible {
  color: var(--text);
  border-color: var(--artist-tone-border);
  background: color-mix(in srgb, var(--artist-tone-bg) 28%, var(--panel));
  box-shadow: 0 0 0 1px var(--artist-tone-border), 0 12px 24px var(--artist-tone-shadow);
}

.artist-discovery-link[class*="genre-"]:hover .artist-monogram,
.artist-discovery-link[class*="genre-"]:focus-visible .artist-monogram {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: var(--artist-tone-bg);
}

.artist-discovery-link.is-current[class*="genre-"] {
  color: var(--text);
  border-color: var(--artist-tone-border);
  background: color-mix(in srgb, var(--artist-tone-bg) 30%, var(--panel));
  box-shadow: inset 3px 0 0 var(--artist-tone-bg), 0 0 0 1px var(--artist-tone-border);
}

.artist-link-marquee[class*="genre-"] {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: var(--artist-tone-bg);
  box-shadow: 0 0 12px var(--artist-tone-glow);
}

.artist-link-marquee[class*="genre-"] .artist-monogram {
  color: var(--artist-tone-text);
  border-color: color-mix(in srgb, var(--artist-tone-border) 72%, #050505);
  background: color-mix(in srgb, var(--artist-tone-bg) 32%, #050505);
}

.artist-link-marquee[class*="genre-"] .artist-link-copy strong {
  color: var(--artist-tone-text);
}

.artist-link-marquee[class*="genre-"]:hover,
.artist-link-marquee[class*="genre-"]:focus-visible {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: color-mix(in srgb, var(--artist-tone-bg) 86%, #ffffff);
  box-shadow: 0 0 15px var(--artist-tone-glow);
}

.artist-link-marquee.is-current[class*="genre-"] {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: var(--artist-tone-bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 22px var(--artist-tone-glow);
}

.artist-link-marquee.is-current[class*="genre-"] .artist-monogram {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: color-mix(in srgb, var(--artist-tone-bg) 36%, #050505);
  box-shadow: none;
}

.artist-link-marquee.is-current[class*="genre-"] .artist-link-copy strong {
  color: var(--artist-tone-text);
  text-shadow: none;
}

/* Give the two signal cards room below the artist bio and keep each signal readable. */
.artist-visual {
  grid-template-rows: auto auto;
  align-content: start;
}

/* Keep the portrait at its earlier compact, square presentation as the profile grows. */
.portrait {
  height: auto;
  aspect-ratio: 123 / 132;
  align-self: start;
}

.artist-copy .cluster-signal-card {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  max-width: none;
  min-height: 0;
  align-self: start;
  padding: 10px 12px;
}

.artist-copy .cluster-signal-card .signal-extremes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.artist-copy .cluster-signal-card .signal-card {
  min-height: 74px;
  padding: 10px 11px;
}

.artist-copy .cluster-signal-card .signal-term-list {
  grid-template-columns: 1fr;
  gap: 4px;
}

.artist-copy .cluster-signal-card .signal-term {
  overflow: visible;
  font-size: 0.84rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

/* Keep ticker monograms readable against their bright genre pills. */
.artist-link-marquee[class*="genre-"] .artist-monogram,
.artist-link-marquee[class*="sentiment-"] .artist-monogram,
.artist-link-marquee.is-current[class*="genre-"] .artist-monogram,
.artist-link-marquee.is-current[class*="sentiment-"] .artist-monogram {
  color: #061018;
  border-color: rgba(255, 255, 255, 0.82);
  background: color-mix(in srgb, var(--artist-tone-bg, #94a3b8) 70%, #ffffff) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26), 0 0 10px var(--artist-tone-glow, rgba(255, 255, 255, 0.24));
}

/* Footer discovery buttons stay in the neutral page-button language.
   Genre colour is reserved for the small monogram accent, so the footer
   supports discovery without turning every card into a coloured panel. */
.artist-link-footer[class*="genre-"] {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel-soft);
  box-shadow: none;
}

.artist-link-footer[class*="genre-"]:hover,
.artist-link-footer[class*="genre-"]:focus-visible {
  color: var(--text);
  border-color: var(--royal);
  background: var(--panel);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--royal) 52%, transparent);
  outline: none;
}

.artist-link-footer.is-current[class*="genre-"] {
  color: var(--text);
  border-color: var(--royal);
  background: color-mix(in srgb, var(--royal) 8%, var(--panel-soft));
  box-shadow: inset 3px 0 0 var(--royal);
}

.artist-link-footer[class*="genre-"] .artist-monogram {
  color: var(--artist-tone-bg);
  border-color: color-mix(in srgb, var(--artist-tone-border) 72%, var(--line));
  background: color-mix(in srgb, var(--artist-tone-bg) 12%, var(--panel));
  box-shadow: none;
}

.artist-link-footer[class*="genre-"]:hover .artist-monogram,
.artist-link-footer[class*="genre-"]:focus-visible .artist-monogram,
.artist-link-footer.is-current[class*="genre-"] .artist-monogram {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: var(--artist-tone-bg);
}

/* Mega-menu artist cards inherit the exact saturated genre surface used by
   the sidebar genre buttons. */
.artist-link-mega[class*="genre-"] {
  color: #ffffff;
  border-color: var(--artist-tone-border);
  background: var(--artist-tone-bg);
  box-shadow: 0 0 18px color-mix(in srgb, var(--artist-tone-bg) 72%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  text-shadow:
    -1px 0 #061018,
    0 1px #061018,
    1px 0 #061018,
    0 -1px #061018;
  -webkit-text-stroke: 0.18px #061018;
}

.artist-link-mega[class*="genre-"] .artist-link-copy small {
  color: inherit;
}

.artist-link-mega[class*="genre-"] .artist-monogram {
  color: #061018;
  border-color: color-mix(in srgb, var(--artist-tone-border) 72%, #061018);
  background: color-mix(in srgb, var(--artist-tone-bg) 32%, #ffffff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.artist-link-mega[class*="genre-"]:hover,
.artist-link-mega[class*="genre-"]:focus-visible,
.artist-link-mega.is-current[class*="genre-"] {
  color: #ffffff;
  border-color: #ffffff;
  background: var(--artist-tone-bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 22px var(--artist-tone-glow);
}

@media (max-width: 1180px) {
  .artist-copy .cluster-signal-card {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .artist-copy .cluster-signal-card .signal-extremes {
    grid-template-columns: 1fr;
  }
}

/* Share controls stay compact and work on both desktop and touch layouts. */
.artist-profile-heading-actions {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel-soft);
  font-size: 0.72rem;
  font-weight: 820;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.share-button:hover,
.share-button:focus-visible {
  color: #061018;
  border-color: var(--cyan);
  background: var(--cyan);
  outline: none;
}

.share-button.is-feedback {
  color: #061018;
  border-color: var(--cyan);
  background: var(--cyan);
}

.share-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.share-network-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.share-network-button svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-network-copy svg,
.share-network-email svg {
  fill: none;
}

.share-network-copy svg rect {
  fill: none;
}

.share-network-whatsapp svg path:first-child {
  fill: none;
}

.share-network-button:hover,
.share-network-button:focus-visible,
.share-network-button.is-feedback {
  color: #061018;
  border-color: var(--cyan);
  background: var(--cyan);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(18, 229, 223, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.share-network-x {
  color: #ffffff;
  border-color: #111827;
  background: #111827;
}

.share-network-facebook {
  color: #ffffff;
  border-color: #1877f2;
  background: #1877f2;
}

.share-network-whatsapp {
  color: #061018;
  border-color: #25d366;
  background: #25d366;
}

.share-network-email {
  color: #061018;
  border-color: var(--orange);
  background: var(--orange);
}

.song-breakdown-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}

.song-breakdown-close {
  float: none;
}

/* Marquee artist pills use genre colour as their ink and accent only. */
.artist-link-marquee[class*="genre-"],
.artist-link-marquee[class*="genre-"]:hover,
.artist-link-marquee[class*="genre-"]:focus-visible,
.artist-link-marquee.is-current[class*="genre-"] {
  color: var(--artist-tone-bg);
  border-color: var(--artist-tone-border);
  background: #050505;
  box-shadow: 0 0 18px color-mix(in srgb, var(--artist-tone-bg) 72%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.artist-link-marquee[class*="genre-"] .artist-link-copy strong,
.artist-link-marquee.is-current[class*="genre-"] .artist-link-copy strong {
  color: var(--artist-tone-bg);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.artist-link-marquee[class*="genre-"] .artist-monogram,
.artist-link-marquee.is-current[class*="genre-"] .artist-monogram {
  color: var(--artist-tone-text);
  border-color: var(--artist-tone-border);
  background: var(--artist-tone-bg) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.artist-link-marquee[class*="genre-"]:hover,
.artist-link-marquee[class*="genre-"]:focus-visible,
.artist-link-marquee.is-current[class*="genre-"] {
  box-shadow: 0 0 0 1px var(--artist-tone-border), 0 0 22px color-mix(in srgb, var(--artist-tone-bg) 72%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

/* The Click-to-change-artist menu uses the same black/genre-ink language. */
.artist-link-mega[class*="genre-"],
.artist-link-mega[class*="genre-"]:hover,
.artist-link-mega[class*="genre-"]:focus-visible,
.artist-link-mega.is-current[class*="genre-"] {
  color: var(--artist-tone-bg);
  border-color: var(--artist-tone-border);
  background: #050505;
  box-shadow: 0 0 18px color-mix(in srgb, var(--artist-tone-bg) 72%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.artist-link-mega[class*="genre-"] .artist-link-copy strong,
.artist-link-mega[class*="genre-"] .artist-link-copy small {
  color: var(--artist-tone-bg);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.artist-link-mega[class*="genre-"] .artist-monogram,
.artist-link-mega.is-current[class*="genre-"] .artist-monogram {
  color: var(--artist-tone-bg);
  border-color: var(--artist-tone-border);
  background: #111111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.artist-link-mega[class*="genre-"]:hover,
.artist-link-mega[class*="genre-"]:focus-visible,
.artist-link-mega.is-current[class*="genre-"] {
  box-shadow: 0 0 0 1px var(--artist-tone-border), 0 0 22px color-mix(in srgb, var(--artist-tone-bg) 72%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

/* Keep the picker and marquee readable at a glance: a crisp outer ring sits
   outside the existing genre glow, giving each dark pill a deliberate double
   border without bringing back the bright filled cards. */
.artist-link-marquee[class*="genre-"],
.artist-link-marquee[class*="genre-"]:hover,
.artist-link-marquee[class*="genre-"]:focus-visible,
.artist-link-marquee.is-current[class*="genre-"],
.artist-link-mega[class*="genre-"],
.artist-link-mega[class*="genre-"]:hover,
.artist-link-mega[class*="genre-"]:focus-visible,
.artist-link-mega.is-current[class*="genre-"] {
  box-shadow: 0 0 0 1px #050505, 0 0 0 2px var(--artist-tone-border), 0 0 18px color-mix(in srgb, var(--artist-tone-bg) 72%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* Top lyric signals: present the term and its count as one centred pair. */
.cluster-signal-card .signal-term-list li,
.artist-visual .cluster-signal-card .signal-term-list li,
.artist-copy .cluster-signal-card .signal-term-list li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  grid-template-columns: none;
  gap: 10px;
  min-height: 36px;
  text-align: center;
}

.cluster-signal-card .signal-term,
.artist-visual .cluster-signal-card .signal-term,
.artist-copy .cluster-signal-card .signal-term {
  justify-self: auto;
  overflow: visible;
  max-width: 100%;
  text-align: center;
}

.cluster-signal-card .signal-count,
.artist-visual .cluster-signal-card .signal-count,
.artist-copy .cluster-signal-card .signal-count {
  justify-self: auto;
  flex: 0 0 auto;
}

.cluster-signal-card .signal-rank {
  display: none;
}

/* Retro jukebox song cards: keep the table semantics, but give every song a
   bold title band and a notched release ribbon inspired by the reference. */
:root {
  --jukebox-red: #ff3b3b;
  --jukebox-pink: #ffc1c1;
  --jukebox-cream: #fffaf4;
  --jukebox-ink: #171717;
  --jukebox-glow: rgba(255, 59, 59, 0.22);
  --jukebox-genre: #ff3b3b;
  --jukebox-genre-text: #171717;
}

.songs-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

.songs-table thead tr {
  background: transparent;
}

.songs-table tbody tr.song-table-row {
  background: var(--jukebox-pink);
  background-color: var(--jukebox-pink) !important;
  box-shadow: 0 2px 0 var(--jukebox-glow);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

/* Match the alternating red/white jukebox cards in the reference. */
.songs-table tbody tr.song-table-row:nth-child(even),
.songs-table tbody tr.song-table-row:nth-child(even) td {
  background-color: var(--jukebox-cream) !important;
}

.songs-table tbody tr.song-table-row td {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--jukebox-ink);
  border-top: 2px solid var(--jukebox-red);
  border-bottom: 2px solid var(--jukebox-red);
  background: var(--jukebox-pink);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.songs-table tbody tr.song-table-row td:first-child {
  border-left: 2px solid var(--jukebox-red);
}

.songs-table tbody tr.song-table-row td:last-child {
  border-right: 2px solid var(--jukebox-red);
}

.songs-table tbody tr.song-table-row:hover,
.songs-table tbody tr.song-table-row:focus-visible {
  filter: saturate(1.08);
  box-shadow: 0 0 0 2px var(--jukebox-red), 0 5px 14px var(--jukebox-glow);
  transform: translateY(-1px);
}

.songs-table tbody tr.song-table-row:hover td,
.songs-table tbody tr.song-table-row:focus-visible td {
  background: var(--jukebox-pink) !important;
}

.songs-table tbody tr.song-table-row:nth-child(even):hover td,
.songs-table tbody tr.song-table-row:nth-child(even):focus-visible td {
  background: var(--jukebox-cream) !important;
}

.songs-table .song-title-band .track-cell {
  gap: 10px;
  color: var(--jukebox-ink);
}

.songs-table .song-title-band .track-chip {
  flex-basis: 40px;
  width: 40px;
  height: 38px;
  border: 2px solid var(--jukebox-red);
  border-radius: 2px;
  color: var(--jukebox-ink);
  background: var(--jukebox-cream);
  box-shadow: none;
}

.songs-table .song-title-band .track-chip span {
  color: var(--jukebox-red);
}

.songs-table .song-title-band .track-chip strong {
  color: var(--jukebox-ink);
}

.songs-table .jukebox-song-title {
  display: -webkit-box;
  overflow: hidden;
  color: #000 !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.35vw, 1.04rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-shadow: none;
  -webkit-text-stroke: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: normal;
}

.songs-table .jukebox-song-title::before,
.songs-table .jukebox-song-title::after {
  color: #000 !important;
  font-family: inherit;
}

.songs-table .jukebox-song-title::before { content: "\201C"; }
.songs-table .jukebox-song-title::after { content: "\201D"; }

.songs-table .jukebox-release-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 34px;
  overflow: visible;
  padding: 6px 18px;
  color: var(--jukebox-ink);
  border: 2px solid var(--jukebox-red);
  background: var(--jukebox-cream);
  clip-path: polygon(0 0, 4% 50%, 0 100%, 100% 100%, 96% 50%, 100% 0);
  font-size: 0.92rem;
  font-weight: 780;
  line-height: 1.15;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.songs-table .year-link {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.songs-table .year-link:hover,
.songs-table .year-link:focus-visible {
  filter: brightness(1.06) saturate(1.08);
  outline: 2px solid var(--jukebox-red);
  outline-offset: 2px;
}

.songs-table .jukebox-metric {
  color: var(--jukebox-ink);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center;
}

.songs-table .play-cell {
  padding-right: 6px;
  padding-left: 6px;
  text-align: center;
}

.songs-table .song-play-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.songs-table .song-play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  padding: 2px 4px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: var(--jukebox-cream);
  color: var(--jukebox-ink);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.songs-table .song-play-logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
}

.songs-table .song-play-youtube {
  color: var(--jukebox-red);
}

.songs-table .song-play-spotify {
  color: #14833b;
}

.songs-table .song-play-link:hover,
.songs-table .song-play-link:focus-visible {
  filter: saturate(1.15);
  box-shadow: 0 0 0 2px currentColor;
  transform: translateY(-1px);
}

.songs-table tbody tr.song-table-row .theme-pill {
  min-height: 30px;
  padding: 4px 9px;
  border: 2px solid var(--theme-tone);
  border-radius: 2px;
  color: var(--jukebox-ink);
  background: var(--jukebox-cream);
  box-shadow: none;
  font-weight: 850;
}

/* Album insight and release-year drill-down surfaces. The cards intentionally
   expose the data basis so an "unknown" release remains honest instead of
   implying that a placeholder is a verified date. */
.insights-modal[hidden] {
  display: none;
}

.insights-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 9, 20, 0.76);
  backdrop-filter: blur(4px);
}

.insights-dialog {
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.insights-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.insights-dialog-heading h3 {
  margin: 3px 0 4px;
  color: var(--text);
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
}

.insights-dialog-heading .eyebrow {
  margin: 0;
}

.insights-dialog-subtitle {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.insights-close {
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel-soft);
  font-size: 1.25rem;
  line-height: 1;
}

.insights-close:hover,
.insights-close:focus-visible {
  color: #061018;
  border-color: var(--cyan);
  background: var(--cyan);
  outline: none;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
  padding-top: 16px;
}

.insight-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.insight-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.insight-card-heading .eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.65rem;
}

.insight-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.insight-year {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--panel);
  font-size: 0.7rem;
  font-weight: 820;
  white-space: nowrap;
}

.insight-card-badges {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.insight-sales {
  padding: 4px 7px;
  color: var(--text);
  border: 1px solid rgba(53, 229, 139, 0.55);
  border-radius: 5px;
  background: color-mix(in srgb, #35e58b 12%, var(--panel));
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 820;
  white-space: nowrap;
}

.insight-meta,
.insight-themes-label {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.insight-themes-label {
  margin-top: 12px;
  color: var(--text);
  font-weight: 800;
}

.insight-theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.insight-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--theme-tone) 68%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-tone) 14%, var(--panel));
  font-size: 0.72rem;
  font-weight: 700;
}

.insight-theme-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-theme-pill strong {
  color: var(--theme-tone);
  font-variant-numeric: tabular-nums;
}

.insight-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  text-align: center;
}

.year-theme-saturation {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.year-theme-saturation.is-empty {
  color: var(--muted);
}

.year-theme-saturation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.year-theme-saturation-heading h4 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.theme-saturation-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.theme-saturation-row {
  display: grid;
  gap: 5px;
}

.theme-saturation-row-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

.theme-saturation-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.theme-saturation-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--theme-tone);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-tone) 20%, transparent);
}

.theme-saturation-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel);
}

.theme-saturation-bar span {
  display: block;
  width: var(--theme-share);
  height: 100%;
  border-radius: inherit;
  background: var(--theme-tone);
}

.theme-saturation-row small {
  color: var(--muted);
  font-size: 0.66rem;
}

@media (max-width: 640px) {
  .year-theme-saturation-heading {
    flex-direction: column;
  }
}

.wholesome-award-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
  padding: 11px 13px;
  color: var(--text);
  border: 1px solid rgba(53, 229, 139, 0.55);
  border-radius: 9px;
  background: color-mix(in srgb, #35e58b 12%, var(--panel-soft));
}

.wholesome-award-banner.is-unknown {
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

.wholesome-award-mark {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #061018;
  border-radius: 50%;
  background: #35e58b;
  font-size: 1.05rem;
}

.wholesome-award-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.wholesome-award-kicker {
  color: #13804b;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wholesome-award-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.wholesome-award-copy > span:last-child {
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.35;
}

.wholesome-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
  padding-top: 16px;
}

.wholesome-award-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(53, 229, 139, 0.48);
  border-radius: 9px;
  background: color-mix(in srgb, #35e58b 9%, var(--panel-soft));
}

.wholesome-award-card.is-unknown {
  border-color: var(--line);
  background: var(--panel-soft);
}

.wholesome-award-card .insight-year {
  justify-self: start;
}

.wholesome-award-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text);
}

.wholesome-award-card-title span {
  color: #20bd70;
}

.wholesome-award-card-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wholesome-award-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.wholesome-award-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wholesome-award-stats span {
  padding: 3px 6px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

@media (max-width: 640px) {
  .album-insights-trigger {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 0.64rem;
  }

  .section-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .insights-modal {
    padding: 12px;
  }

  .insights-dialog {
    max-height: 88vh;
  }
}

@media (max-width: 760px) {
  .songs-table tbody tr.song-table-row td {
    padding-right: 8px;
    padding-left: 8px;
  }

  .songs-table .jukebox-release-ribbon {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Mobile-first repair layer for the rebuilt dashboard. */
@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, calc(100% - 20px));
    min-height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    width: min(170px, 42vw);
    margin-inline: 0;
    transform: none;
  }

  .search-wrap {
    min-width: 0;
  }

  .popular-artists,
  .nav-stack,
  .desktop-artist-rankings,
  .sidebar-rankings,
  .sidebar-year-explorer {
    grid-column: 1 / -1;
  }

  .nav-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-rankings {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-artist-rankings {
    width: 100%;
    min-width: 0;
  }

  .desktop-artist-rankings .sidebar-ranking-card {
    padding: 14px 16px 13px;
  }

  .desktop-artist-rankings .sidebar-ranking-card h2 {
    font-size: 0.96rem;
  }

  .desktop-artist-rankings .sidebar-ranking-list li {
    grid-template-columns: 1.4em minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 0.76rem;
  }

  .desktop-artist-rankings .sidebar-ranking-name {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .workspace {
    padding: 18px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 14px;
  }

  .topbar-identity,
  .topbar-navigation,
  .topbar-actions {
    width: 100%;
    min-width: 0;
  }

  .topbar-navigation {
    order: -1;
  }

  .topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  h1 {
    max-width: 100%;
  }

  .artist-title-trigger {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dashboard-grid {
    --top-panel-height: auto;
    grid-template-areas:
      "profile"
      "clusters"
      "songs"
      "albums";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 14px;
  }

  .hero-card {
    height: auto;
    min-height: auto;
  }

  .cluster-panel {
    height: clamp(420px, 58vh, 620px);
    max-height: none;
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .sidebar {
    display: contents;
  }

  .sidebar-mobile-header {
    order: 1;
    display: grid;
    grid-template-columns: minmax(88px, 0.34fr) minmax(0, 1fr);
    align-items: center;
    align-self: stretch;
    gap: 10px;
    padding: 12px 12px 0;
  }

  .sidebar-mobile-header .brand {
    width: min(108px, 28vw);
    margin: 0;
    transform: none;
  }

  .sidebar-mobile-header .search-wrap {
    min-width: 0;
    margin: 0;
  }

  .sidebar > .nav-stack {
    order: 2;
    align-self: stretch;
    margin: 12px 12px 0;
  }

  .sidebar > .sidebar-rankings {
    order: 4;
    align-self: stretch;
    margin: 0 12px 16px;
  }

  .desktop-artist-rankings {
    display: none;
  }

  .sidebar > .sidebar-year-explorer {
    order: 5;
    align-self: stretch;
    margin: 0 12px 22px;
  }

  .search-wrap input {
    height: 44px;
  }

  .popular-artists,
  .nav-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-section-label {
    grid-column: 1 / -1;
  }

  .sidebar-rankings {
    grid-template-columns: 1fr;
  }

  .workspace {
    order: 3;
    width: 100%;
    padding: 14px 12px 22px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar-navigation,
  .artists-menu-button {
    width: 100%;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .language-flag-group {
    width: 100%;
    height: auto;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .theme-toggle,
  .auth-button,
  .ghost-button {
    width: 100%;
    min-width: 0;
  }

  h1 {
    font-size: clamp(2rem, 14vw, 3.25rem);
    line-height: 1.03;
    letter-spacing: 0;
  }

  .artist-title-trigger {
    display: inline;
    padding: 0 0.1em;
  }

  .artist-change-trigger {
    font-size: 0.72rem;
  }

  .artist-submission-dialog {
    width: min(calc(100% - 20px), 460px);
  }

  .artist-submission-form {
    padding: 16px;
  }

  .dashboard-grid {
    gap: 12px;
    padding-top: 14px;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
  }

  .artist-copy {
    display: contents;
  }

  .artist-visual,
  .portrait,
  .artist-copy .section-heading,
  .artist-bio,
  .artist-bio-detail,
  .artist-copy .cluster-signal-card,
  .profile-actions,
  .lyric-trend-card,
  .metric-row,
  .polarizing-profile-badge,
  .hero-card.has-polarizing-badge .lyric-trend-card,
  .hero-card.has-polarizing-badge .polarizing-profile-badge {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .artist-visual {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 8px;
  }

  .portrait {
    height: auto;
    max-height: 340px;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius);
  }

  .artist-copy .section-heading {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "name"
      "rankings"
      "actions";
    gap: 8px;
  }

  .artist-copy .cluster-signal-card,
  .polarizing-profile-badge {
    width: 100%;
    max-width: none;
  }

  .profile-actions .read-more-button {
    width: 100%;
    justify-content: center;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-row > div {
    min-height: 56px;
  }

  .cluster-panel {
    height: min(78vh, 520px);
    min-height: 390px;
  }

  .cluster-stage {
    height: 100%;
    min-height: 390px;
  }

  .cluster-instructions {
    top: 8px;
    right: 48px;
    left: 8px;
    width: auto;
    max-width: none;
    align-items: flex-start;
    transform: none;
  }

  .cluster-instructions .cluster-drag-label,
  .cluster-instructions .cluster-click-label {
    max-width: 100%;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }

  .cluster-sort-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    white-space: normal;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .songs-table,
  .albums-table {
    min-width: 640px;
  }

  .artist-marquee {
    grid-template-columns: 1fr;
  }

  .marquee-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .popular-artists,
  .nav-stack,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .language-flag-group {
    justify-content: flex-start;
  }

  .language-flag-button {
    flex: 1 1 40px;
    min-width: 40px;
  }

  .artist-bio,
  .artist-bio-detail {
    font-size: 0.86rem;
  }

  .artist-bio-detail .artist-life-event {
    margin-top: 8px;
  }

  .cluster-panel {
    height: 420px;
    min-height: 360px;
  }

  .cluster-stage {
    min-height: 360px;
  }

  .songs-table,
  .albums-table {
    min-width: 560px;
  }
}

/* Compact phone shell: keep the catalog controls present without making them the page. */
.mobile-utility-actions,
.mobile-catalog-actions,
.mobile-artist-picker {
  display: none;
}

.desktop-artist-submission {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sidebar-mobile-header {
    grid-template-columns: minmax(88px, 0.34fr) minmax(0, 1fr);
    grid-template-rows: 24px 44px 40px;
    align-items: stretch;
    gap: 5px 10px;
    padding: 9px 12px 0;
  }

  .sidebar-mobile-header .brand {
    grid-row: 1 / 5;
    grid-column: 1;
    align-self: center;
    width: min(100%, 108px);
  }

  .mobile-utility-actions {
    display: flex;
    grid-row: 1;
    grid-column: 2;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
  }

  .mobile-language-button,
  .mobile-theme-button,
  .mobile-user-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: var(--panel);
  }

  .mobile-language-button svg {
    display: block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
  }

  .mobile-theme-button .toggle-track {
    width: 24px;
    height: 14px;
    padding: 2px;
  }

  .mobile-theme-button .toggle-thumb {
    width: 10px;
    height: 10px;
  }

  :root[data-theme="dark"] .mobile-theme-button .toggle-thumb {
    transform: translateX(10px);
  }

  .mobile-user-button .user-icon {
    transform: scale(0.72);
  }

  .sidebar-mobile-header .search-wrap {
    grid-row: 2;
    grid-column: 2;
  }

  .mobile-catalog-actions {
    display: flex;
    grid-row: 3;
    grid-column: 2;
    align-items: end;
    justify-content: space-between;
    min-width: 0;
    gap: 8px;
  }

  .mobile-catalog-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: end;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-left: 0;
    background: transparent;
    box-shadow: none;
    gap: 2px 5px;
  }

  :root[data-theme="dark"] .mobile-catalog-stat {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-catalog-stat span {
    grid-column: 1 / -1;
    overflow: visible;
    color: var(--muted);
    font-size: 0.56rem;
    line-height: 1.05;
    letter-spacing: 0;
    text-overflow: clip;
    white-space: normal;
  }

  .mobile-catalog-stat strong {
    flex: 0 0 auto;
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
  }

  .mobile-catalog-stat small {
    display: none;
  }

  .mobile-catalog-actions .artist-submission-trigger {
    flex: 0 0 auto;
    color: var(--cyan);
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-artist-picker {
    display: grid;
    order: 2;
    align-self: stretch;
    gap: 5px;
    min-width: 0;
    margin: 9px 12px 0;
    padding: 8px;
    color: var(--ink);
    cursor: pointer;
    border: 1px solid var(--yellow);
    border-radius: 4px;
    background: color-mix(in srgb, var(--yellow) 7%, var(--panel));
    text-align: left;
  }

  .mobile-artist-picker-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .mobile-artist-picker-label {
    padding: 4px 6px;
    color: #1b1600;
    border: 1px solid var(--yellow);
    background: var(--yellow);
    font-size: 0.58rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .mobile-artist-picker-name {
    min-width: 0;
  }

  #mobile-artist-picker-name {
    overflow: hidden;
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-artist-picker-hint {
    color: var(--coral);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .sidebar > .nav-stack {
    order: 3;
    margin: 7px 12px 0;
  }

  .sidebar > .sidebar-rankings,
  .sidebar > .sidebar-year-explorer {
    display: none;
  }

  .workspace {
    order: 4;
    padding: 4px 12px 22px;
  }

  .workspace .topbar {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .workspace .topbar-identity {
    display: contents;
  }

  .workspace .topbar-identity > .eyebrow,
  .workspace .topbar-identity > h1,
  .workspace .artist-change-trigger,
  .workspace .topbar-actions {
    display: none;
  }

  .workspace .artists-menu-wrap {
    display: block;
  }

  .workspace .artists-mega-menu:not([hidden]) {
    position: fixed;
    z-index: 80;
    inset: 10px;
    width: auto;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }

  .artist-marquee {
    display: none;
  }

  .dashboard-grid {
    padding-top: 0;
  }

  .profile-artist-rankings {
    display: block;
    margin-top: 22px;
    padding-top: 16px;
  }

  .profile-artist-rankings .sidebar-rankings {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-artist-rankings .sidebar-ranking-card {
    padding: 12px;
  }

  .profile-artist-rankings .sidebar-ranking-list li {
    grid-template-columns: 1.4em minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 0.73rem;
  }

  .leaderboard-panel,
  .albums-panel {
    overflow: visible;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .songs-table,
  .albums-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .songs-table th,
  .songs-table td,
  .albums-table th,
  .albums-table td {
    padding: 9px 6px;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .songs-table th:first-child,
  .songs-table td:first-child,
  .albums-table th:first-child,
  .albums-table td:first-child {
    padding-left: 8px;
  }

  .songs-table th:nth-child(3),
  .songs-table td:nth-child(3),
  .songs-table th:nth-child(4),
  .songs-table td:nth-child(4),
  .albums-table th:nth-child(2),
  .albums-table td:nth-child(2),
  .albums-table th:nth-child(3),
  .albums-table td:nth-child(3),
  .songs-table .jukebox-release-ribbon,
  .songs-table .release-cell {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .songs-table .track-cell,
  .songs-table .song-play-links {
    min-width: 0;
    flex-wrap: wrap;
  }

  .songs-table .theme-pill {
    width: 100%;
    min-height: 30px;
    padding: 4px;
  }

  .songs-table .theme-pill-label {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .songs-table:has(.song-table-row) th:nth-child(1),
  .songs-table:has(.song-table-row) td:nth-child(1) {
    width: 35%;
  }

  .songs-table:has(.song-table-row) th:nth-child(2),
  .songs-table:has(.song-table-row) td:nth-child(2) {
    width: 19%;
  }

  .songs-table:has(.song-table-row) th:nth-child(3),
  .songs-table:has(.song-table-row) td:nth-child(3) {
    width: 27%;
  }

  .songs-table:has(.song-table-row) th:nth-child(4),
  .songs-table:has(.song-table-row) td:nth-child(4) {
    width: 19%;
  }

  .songs-table:has(.song-table-row) th {
    font-size: 0.62rem;
    overflow: visible;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  .songs-table:has(.song-table-row) .song-title-band .track-cell {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .songs-table:has(.song-table-row) .song-title-band .track-chip {
    flex-basis: 32px;
    width: 32px;
    height: 30px;
    border-width: 1px;
  }

  .songs-table:has(.song-table-row) .track-chip span {
    display: none;
  }

  .songs-table:has(.song-table-row) .track-chip strong {
    font-size: 0.74rem;
  }

  .songs-table:has(.song-table-row) .jukebox-release-ribbon {
    min-height: 28px;
    padding: 3px 4px;
    border-width: 1px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .songs-table:has(.song-table-row) .theme-pill {
    min-width: 0;
    min-height: 28px;
    padding: 2px 1px;
    border-width: 1px;
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .songs-table:has(.song-table-row) .theme-pill-label {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  .songs-table:has(.song-table-row) .play-cell {
    padding-right: 2px;
    padding-left: 2px;
  }

  .songs-table:has(.song-table-row) .song-play-links {
    flex-wrap: nowrap;
    gap: 3px;
  }

  .songs-table:has(.song-table-row) .song-play-link {
    min-width: 24px;
    width: 24px;
    height: 24px;
  }

  .songs-table:has(.song-table-row) .song-play-logo {
    width: 15px;
    height: 15px;
  }

  .cluster-panel,
  .cluster-stage {
    overflow: visible;
  }

  .bubble-popover {
    width: min(220px, calc(100vw - 112px));
    max-height: min(46dvh, 300px);
    padding: 9px;
  }

  .bubble-popover-head {
    gap: 7px;
    line-height: 1.2;
  }

  .bubble-popover-head strong,
  .bubble-popover-head span,
  .bubble-song-link span {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .bubble-popover-head span {
    white-space: normal;
    text-align: right;
  }

  .bubble-song-list {
    max-height: 190px;
  }

  .bubble-song-link {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .nav-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mobile-artist-picker-name {
    font-size: 1rem;
  }

  .mobile-artist-picker-hint {
    font-size: 0.58rem;
  }
}
