:root {
  --ink: #070809;
  --paper: #e9ecef;
  --muted: #6f7680;
  --line: rgba(255, 255, 255, 0.16);
  --chrome: #cfd4d9;
  --silver: #f4f6f8;
  --bright: #ffffff;
  --graphite: #2b3036;
  --live: #34d48c;
  --panel: rgba(18, 20, 23, 0.82);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  overflow-x: hidden;
}

body.player-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(180deg, #050607 0%, #111418 100%);
}

body.library-open {
  overflow: hidden;
}

button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--silver);
  background: rgba(7, 8, 9, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.68), 0 8px 22px rgba(0,0,0,0.42);
}

.nav-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover { color: var(--bright); }

.hub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--silver);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.hub-link:hover { background: rgba(255,255,255,0.16); }

.icon-button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

.icon-button {
  width: 42px;
  color: var(--silver);
  background: rgba(255,255,255,0.12);
}

.icon-button.hidden { display: none; }

.primary-button {
  padding: 0 18px;
  background: var(--silver);
  color: #08090a;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.28), 0 8px 24px rgba(255,255,255,0.08);
}

.secondary-button {
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #111316;
  color: var(--silver);
  text-decoration: none;
}

.ghost-button {
  padding: 0 16px;
  color: var(--silver);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

button svg,
.hub-link svg,
.hero-hub-button svg { width: 18px; height: 18px; flex: 0 0 auto; }

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: start;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 28%, rgba(255,255,255,0.18), transparent 14%),
    linear-gradient(135deg, #050607 0%, #161a1f 52%, #060708 100%);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  opacity: 0.34;
  filter: grayscale(0.45) contrast(1.05) brightness(1.28);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5,6,7,0.9), rgba(16,18,21,0.6) 48%, rgba(6,7,8,0.22)),
    linear-gradient(0deg, rgba(5,6,7,0.78), rgba(5,6,7,0.02) 55%);
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 54px;
  color: var(--silver);
}

.hero-logo {
  display: block;
  width: clamp(132px, 30vw, 214px);
  aspect-ratio: 1;
  margin: 0 0 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.44),
    0 0 0 8px rgba(255,255,255,0.035),
    0 28px 80px rgba(0,0,0,0.58);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--chrome);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2 { margin: 0; line-height: 1.03; letter-spacing: 0; }

h1 {
  max-width: 11ch;
  font-size: clamp(54px, 12vw, 112px);
  text-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

h2 { font-size: clamp(28px, 5vw, 42px); }

.hero-copy {
  max-width: 620px;
  margin: 18px 0 26px;
  color: rgba(255,255,255,0.86);
  font-size: 19px;
  line-height: 1.5;
}

.hero-hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin: 0 0 18px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  color: var(--silver);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  font-weight: 850;
}

.hero-hub-button:hover { background: rgba(255,255,255,0.16); }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.hero-cta-row .hero-hub-button {
  margin: 0;
}

.hero-advertise-button {
  background: rgba(52, 212, 140, 0.14);
  border-color: rgba(52, 212, 140, 0.46);
}

.hero-advertise-button:hover {
  background: rgba(52, 212, 140, 0.22);
}

.player-panel {
  width: min(640px, 100%);
  max-width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07)),
    rgba(10,12,14,0.66);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,0.42);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.92);
  font-weight: 750;
}

.event-strip,
.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,214,102,0.28);
  border-radius: 8px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,214,102,0.12);
}

.event-strip[hidden],
.resume-card[hidden] {
  display: none;
}

.event-strip div,
.resume-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.event-kicker,
.resume-card span {
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.event-strip strong,
.resume-card strong {
  overflow-wrap: anywhere;
}

.event-strip > span {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
}

.resume-card {
  border-color: rgba(52,212,140,0.3);
  background: rgba(52,212,140,0.12);
}

.now-playing-card {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.09);
}

.now-playing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.now-playing-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.song-info-toggle {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: #f4f6f8;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.info-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}

.sync-pill {
  flex: 0 1 auto;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: rgba(255,255,255,0.66);
  background: rgba(0,0,0,0.22);
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-pill.is-live {
  color: #bff7dc;
  border-color: rgba(52,212,140,0.35);
  background: rgba(52,212,140,0.12);
}

.rating-card {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
}

.now-playing-label,
.now-playing-artist,
.rating-label,
.rating-status {
  margin: 0;
}

.now-playing-label,
.rating-label {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.now-playing-title {
  margin: 6px 0 4px;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.now-playing-artist {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  font-weight: 650;
}

.audio-wave {
  position: relative;
  display: grid;
  grid-template-columns: repeat(32, minmax(2px, 1fr));
  align-items: center;
  gap: 2px;
  height: 50px;
  margin: 12px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(52,212,140,0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 42%, rgba(255,255,255,0) 58%, rgba(255,255,255,0.04)),
    linear-gradient(90deg, rgba(52,212,140,0.12), rgba(255,214,102,0.08)),
    rgba(0,0,0,0.2);
  overflow: hidden;
}

.audio-wave::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(52,212,140,0), rgba(232,255,244,0.3), rgba(255,214,102,0));
  transform: translateY(-50%);
  pointer-events: none;
}

.audio-wave span {
  position: relative;
  z-index: 1;
  display: block;
  height: var(--h);
  min-height: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e8fff4 0%, #34d48c 44%, #34d48c 56%, #ffd666 100%);
  box-shadow: 0 0 9px rgba(52,212,140,0.24);
  animation: wavePulse 980ms ease-in-out infinite alternate;
  animation-delay: var(--d);
}

.audio-wave.is-analyzed span {
  animation: none;
  height: 10%;
  opacity: 0.72;
  transition: height 80ms linear, opacity 80ms linear;
}

@keyframes wavePulse {
  from {
    height: max(7px, calc(var(--h) * 0.42));
    opacity: 0.58;
  }
  to {
    height: var(--h);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-wave span,
  .audio-wave.is-analyzed span {
    animation: none;
    transition: none;
  }
}

.song-insight {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.72);
  background: rgba(0,0,0,0.2);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.song-insight.is-new {
  color: #ffe8a6;
  border-color: rgba(255,214,102,0.28);
  background: rgba(255,214,102,0.12);
}

.song-info-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.13);
}

.song-info-drawer[hidden] {
  display: none;
}

.song-info-drawer dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.song-info-drawer div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}

.song-info-drawer dt {
  color: rgba(255,255,255,0.58);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.song-info-drawer dd {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.rating-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.rating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: var(--silver);
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.rating-button:hover,
.rating-button.selected {
  border-color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.22);
}

.rating-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.rating-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.rating-status {
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 650;
}

.chat-panel {
  width: min(640px, 100%);
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: var(--silver);
  background: rgba(8,9,11,0.72);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.chat-panel > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.chat-panel > summary::-webkit-details-marker { display: none; }

.chat-panel > summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.chat-summary-meta {
  justify-content: flex-end;
  min-width: 0;
}

.chat-reply-alert {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(255, 214, 102, 0.5);
  border-radius: 999px;
  color: #08090a;
  background: #ffd666;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.chat-reply-alert[hidden] {
  display: none;
}

.chat-reply-jump {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 214, 102, 0.5);
  border-radius: 999px;
  color: #08090a;
  background: #ffd666;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.chat-reply-jump[hidden] {
  display: none;
}

.chat-panel > summary svg {
  width: 18px;
  height: 18px;
}

.chat-panel > summary small {
  color: rgba(255,255,255,0.64);
  font-size: 12px;
  font-weight: 750;
}

.chat-messages {
  display: grid;
  gap: 8px;
  max-height: clamp(380px, 48vh, 560px);
  overflow-y: auto;
  padding: 0 14px 12px;
}

.chat-empty,
.chat-message {
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.chat-empty {
  padding: 14px;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  font-weight: 700;
}

.chat-message {
  padding: 10px 12px;
}

.chat-message.is-reply-to-viewer {
  border-color: rgba(255, 214, 102, 0.42);
  background: rgba(255, 214, 102, 0.12);
  box-shadow: inset 3px 0 0 #ffd666;
}

.chat-message.is-jump-target {
  outline: 2px solid rgba(255, 214, 102, 0.85);
  outline-offset: 2px;
}

.chat-message header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 800;
}

.chat-message header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  color: #08090a;
  background: var(--silver);
  font-size: 10px;
  font-weight: 950;
  vertical-align: 1px;
  white-space: nowrap;
}

.chat-message p {
  margin: 5px 0 0;
  color: rgba(255,255,255,0.94);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chat-song-context {
  display: inline-flex;
  max-width: 100%;
  margin-top: 6px;
  border-radius: 6px;
  background: rgba(255, 214, 102, 0.12);
  padding: 4px 7px;
  color: rgba(255, 235, 180, 0.92);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.chat-reply-context,
.chat-replying,
.chat-editing {
  display: flex;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.chat-reply-context {
  margin-top: 8px;
  padding: 8px 10px;
  flex-direction: column;
}

.chat-message.is-reply-to-viewer .chat-reply-context {
  border-color: rgba(255, 214, 102, 0.38);
  background: rgba(0,0,0,0.18);
}

.chat-bottom-button {
  position: sticky;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  min-height: 34px;
  margin: -2px 14px 10px auto;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  background: rgba(8,9,11,0.92);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.chat-bottom-button[hidden] {
  display: none;
}

.chat-bottom-button svg {
  width: 15px;
  height: 15px;
}

.chat-reply-context strong,
.chat-replying span,
.chat-editing span {
  color: rgba(255,255,255,0.76);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.chat-reply-context span,
.chat-reply-context small,
.chat-replying p,
.chat-editing p {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.chat-reply-context small {
  color: rgba(255, 235, 180, 0.86);
  font-size: 11px;
  font-weight: 850;
}

.chat-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-action-button,
.chat-reaction-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.chat-reaction-button.selected {
  color: #08090a;
  background: var(--silver);
}

.chat-reaction-heart,
.chat-reaction-heart.selected {
  color: #ff5a6f;
}

.chat-reaction-heart.selected {
  border-color: rgba(255,90,111,0.72);
  background: rgba(255,90,111,0.16);
}

.chat-replying,
.chat-editing {
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 12px;
  padding: 10px 12px;
}

.chat-replying[hidden],
.chat-editing[hidden] {
  display: none;
}

.chat-replying div,
.chat-editing div {
  min-width: 0;
}

.chat-replying p,
.chat-editing p {
  margin: 4px 0 0;
}

.chat-reply-cancel,
.chat-edit-cancel {
  min-height: 34px;
  flex: 0 0 auto;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 0 14px 12px;
}

.chat-form label {
  display: grid;
  gap: 5px;
}

.chat-form label span {
  color: rgba(255,255,255,0.66);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.chat-status {
  margin: 0;
  padding: 0 14px 14px;
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  font-weight: 650;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a6adb4;
}

.status-dot.live {
  background: var(--live);
  box-shadow: 0 0 0 6px rgba(52,212,140,0.18);
}

audio {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  border-radius: 8px;
  background: #111316;
  filter: invert(1) grayscale(1) contrast(0.92);
}

.stream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.stream-actions a { text-decoration: none; }

.donate-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
}

.donate-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.donate-card summary::-webkit-details-marker {
  display: none;
}

.donate-card p {
  margin: 0;
}

.donate-card p:not(.donate-kicker) {
  margin-top: 4px;
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.donate-kicker {
  color: var(--bright);
  font-size: 15px;
  font-weight: 850;
}

.donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: #08090a;
  background: var(--silver);
  text-decoration: none;
  font-weight: 850;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.28), 0 8px 24px rgba(255,255,255,0.08);
}

.donate-button:hover {
  background: var(--bright);
}

.donate-button svg {
  width: 18px;
  height: 18px;
}

.donate-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.donate-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--bright);
  background: rgba(0,0,0,0.2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.donate-menu a:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
}

.donate-menu a > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.donate-menu a > svg {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: rgba(255,255,255,0.68);
  flex: 0 0 auto;
}

.donate-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #08090a;
  background: var(--silver);
  font-size: 12px;
  font-weight: 950;
  flex: 0 0 auto;
}

.donate-menu-icon.rumble,
.donate-menu-icon.mg,
.donate-menu-icon.give {
  background: #39ff14;
}

.donate-menu-icon.cash {
  background: #00d632;
}

.donate-menu-icon.paypal {
  background: #69b8ff;
}

.donate-menu-icon.patreon {
  background: #ff737d;
}

.donate-menu-icon.substack {
  background: #ff9a56;
}

.ticker {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 14px clamp(16px, 4vw, 48px);
  color: var(--silver);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: #0b0c0e;
  white-space: nowrap;
}

.ticker span { font-weight: 750; }

.workspace-grid,
.submit-band,
.review-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

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

.panel,
.submit-band,
.review-band {
  border-top: 4px solid var(--graphite);
}

.panel {
  padding: 22px;
  border-radius: 8px;
  color: var(--silver);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    #111316;
  box-shadow: 0 20px 55px rgba(5,6,7,0.16);
}

.panel-heading,
.section-heading,
.queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading svg {
  width: 30px;
  height: 30px;
  color: var(--chrome);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 800; text-align: right; }

.panel-copy,
.form-note {
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.panel-copy { margin: 18px 0; }
.form-note { margin: 0; font-size: 13px; }

.submit-band .form-note {
  color: #5f6670;
  font-weight: 750;
}
.panel-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

input[type="file"] {
  padding: 9px 10px;
  background: #fff;
}

textarea { resize: vertical; }

.panel .secondary-button { margin-top: 14px; width: 100%; }

.panel-link-button { width: 100%; }

.advertiser-panel {
  grid-column: 1 / -1;
}

.advertiser-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.advertiser-message-field,
.advertiser-submit-button,
.advertiser-form .form-note {
  grid-column: 1 / -1;
}

.advertiser-submit-button {
  width: 100%;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.leaderboard-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.leaderboard-list,
.new-song-list {
  display: grid;
  gap: 8px;
}

.leaderboard-row,
.new-song-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 30px;
  border-radius: 8px;
  color: #08090a;
  background: var(--silver);
  font-size: 12px;
  font-weight: 950;
}

.leaderboard-row strong,
.new-song-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--bright);
  font-size: 14px;
}

.leaderboard-row small,
.new-song-row small {
  grid-column: 2;
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  font-weight: 750;
}

.new-song-heading {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.new-song-row {
  border-color: rgba(255,214,102,0.2);
  background: rgba(255,214,102,0.08);
}

.submission-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.wide { grid-column: 1 / -1; }

.submission-rules {
  padding: 16px 18px;
  border: 1px solid rgba(17, 19, 22, 0.16);
  border-radius: 8px;
  background: #f4f7f7;
  color: #2b343e;
}

.submission-rules h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.submission-rules ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
}

.submission-rules li + li { margin-top: 5px; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #2b343e;
  line-height: 1.45;
}

.check input { width: 18px; min-height: 18px; margin-top: 3px; }

.queue-toolbar { margin-top: 18px; justify-content: flex-start; flex-wrap: wrap; }

.queue-search {
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  max-width: 520px;
  min-height: 43px;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(8,9,10,0.08);
}

.queue-search svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #6e7681;
}

.queue-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #171b1f;
  background: transparent;
  font: inherit;
  font-weight: 750;
}

.queue-search input::placeholder {
  color: #7f8790;
  font-weight: 700;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.admin-stats article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-stats small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-stats strong {
  display: block;
  margin-top: 5px;
  color: #171b1f;
  font-size: 24px;
}

.admin-dashboard {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.admin-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #171b1f;
  background: #f1f3f5;
  overflow: hidden;
}

.admin-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 14px 16px;
  color: #171b1f;
  cursor: pointer;
  list-style: none;
}

.admin-section > summary::-webkit-details-marker { display: none; }

.admin-section > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: white;
  font-size: 18px;
  font-weight: 850;
}

.admin-section[open] > summary::after { content: "-"; }

.admin-section > summary span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.admin-section > summary svg {
  width: 19px;
  height: 19px;
  color: #b9222f;
}

.admin-section > summary strong {
  font-size: 17px;
}

.admin-section > summary small {
  color: #47505a;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.admin-section > :not(summary) {
  margin: 0 16px 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tool-grid a { text-decoration: none; }

.breaking-panel,
.ratings-panel {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.breaking-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.58);
}

.breaking-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.breaking-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.breaking-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.breaking-card h3 { margin: 0 0 4px; font-size: 20px; }
.breaking-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.credential-grid > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
}

.credential-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.credential-grid strong {
  overflow-wrap: anywhere;
  color: #171b1f;
  font-size: 14px;
}

.copy-button {
  min-height: 34px;
  justify-content: center;
  padding: 0 10px;
}

.copy-button svg {
  width: 15px;
  height: 15px;
}

.rating-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(5, auto);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #171b1f;
  background: white;
}

.chat-admin-row {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.chat-control-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.chat-control-toolbar strong,
.chat-control-toolbar span {
  display: block;
}

.chat-control-toolbar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.chat-admin-row.is-deleted {
  opacity: 0.58;
}

.chat-admin-row.is-flagged {
  border-color: rgba(180, 83, 9, 0.4);
  background: #fff8ed;
}

.chat-admin-row.is-bot {
  border-color: rgba(19, 99, 77, 0.26);
  background: #f0faf6;
}

.moderation-note {
  display: block;
  margin-top: 6px;
  color: #92400e !important;
}

.rating-row strong { display: block; }

.rating-row span,
.rating-row small {
  color: #47505a;
  font-size: 12px;
  font-weight: 750;
}

.rating-metric {
  min-width: 54px;
  text-align: right;
}

.weight-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.queue-song-picker {
  flex: 1 1 320px;
  min-width: min(100%, 280px);
}

.play-queue {
  margin-top: 12px;
}

.play-queue-row {
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.play-queue-row.is-locked {
  background: #f8fafc;
  color: #171b1f;
}

.play-queue-row.is-current {
  border-color: rgba(19, 99, 77, 0.28);
  background: #f0faf6;
  color: #171b1f;
}

.play-queue-actions {
  display: flex;
  justify-content: flex-end;
}

.play-queue-actions .ghost-button {
  min-height: 34px;
  padding: 0 12px;
}

.metadata-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.8fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.weight-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.weight-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: white;
  font-size: 12px;
  font-weight: 850;
}

.weight-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.weight-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.weight-table th,
.weight-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.weight-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.weight-table td {
  color: #171b1f;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.weight-table td:first-child {
  min-width: 260px;
  white-space: normal;
}

.weight-table tr:last-child td { border-bottom: 0; }

.weight-table tr.has-override {
  background: #f0faf6;
}

.weight-table strong,
.weight-table span,
.weight-table small {
  display: block;
}

.weight-table span,
.weight-table small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.weight-input {
  width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: #171b1f;
  background: #f8faf9;
  font: inherit;
  font-weight: 800;
}

.weight-input:focus {
  outline: 2px solid rgba(29,119,113,0.28);
  border-color: #2d6d6a;
}

.weight-actions {
  display: flex;
  gap: 8px;
}

.weight-actions .secondary-button,
.weight-actions .ghost-button {
  min-height: 34px;
  padding: 0 10px;
}

.weight-actions svg {
  width: 15px;
  height: 15px;
}

.daypart-board {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.daypart-board h3 {
  margin: 0;
  font-size: 22px;
}

.daypart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daypart-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.daypart-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.daypart-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.daypart-card li { color: #171b1f; }
.daypart-card strong { display: block; font-size: 13px; }
.daypart-card span,
.daypart-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.reach-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.reach-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.reach-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.reach-card h3 {
  margin: 0 0 12px;
  color: #171b1f;
  font-size: 18px;
}

.reach-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reach-metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
}

.reach-metrics small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.reach-metrics strong {
  display: block;
  margin-top: 4px;
  color: #171b1f;
  font-size: 18px;
}

.reach-breakdown {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.reach-breakdown small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.reach-breakdown span {
  overflow-wrap: anywhere;
  color: #171b1f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.reach-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.reach-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.reach-table th,
.reach-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.reach-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.reach-table td {
  color: #171b1f;
  font-size: 13px;
  font-weight: 750;
}

.reach-table tr:last-child td { border-bottom: 0; }

.review-admin h1 {
  margin: 0;
  color: #171b1f;
  font-size: clamp(34px, 5vw, 58px);
}

.review-admin .form-note {
  color: #38424d;
  font-weight: 750;
}

.review-admin,
.review-admin p,
.review-admin li,
.review-admin label,
.review-admin output,
.review-admin td,
.review-admin dd {
  color: #171b1f;
}

.review-admin small,
.review-admin .panel-status,
.review-admin .empty-state,
.review-admin .field span {
  color: #47505a;
}

.review-admin strong,
.review-admin h2,
.review-admin h3 {
  color: #111316;
}

.review-admin .secondary-button,
.review-admin .ghost-button {
  border: 1px solid #c9ced4;
  background: #fff;
  color: #171b1f;
  box-shadow: 0 1px 0 rgba(8,9,10,0.12);
}

.review-admin .secondary-button:hover,
.review-admin .ghost-button:hover {
  border-color: #aeb5bd;
  background: #f7f8f8;
}

.review-admin .secondary-button:disabled,
.review-admin .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.admin-token-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-top: 24px;
}

.queue {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-section .queue { margin-top: 14px; }
.compact-queue { gap: 10px; }

.submission-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.submission-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.submission-card h3 { margin: 0 0 4px; font-size: 20px; }
.submission-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.submission-card a { color: #2d6d6a; font-weight: 800; overflow-wrap: anywhere; }

.submission-card audio { margin-top: 2px; }

.metadata-audit {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e7e3;
  border-radius: 8px;
  background: #f7fbfa;
}

.metadata-audit.is-warning {
  border-color: #e4a82f;
  background: #fff8e8;
}

.metadata-audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metadata-audit-header strong {
  color: #171b1f;
  font-size: 13px;
}

.metadata-audit-header span {
  color: #2d6d6a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metadata-audit.is-warning .metadata-audit-header span {
  color: #9a5f00;
}

.metadata-audit dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.metadata-audit dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metadata-audit dd {
  margin: 2px 0 0;
  color: #171b1f;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.metadata-audit p {
  color: #7a4300;
  font-weight: 800;
}

.advertiser-lead-card {
  gap: 12px;
}

.advertiser-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.review-note-field {
  display: grid;
  gap: 7px;
}

.review-note-field span,
.review-note-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-note-field textarea {
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: #171b1f;
  background: #f8faf9;
  font: inherit;
  line-height: 1.45;
}

.review-note-field textarea:focus {
  outline: 2px solid rgba(29,119,113,0.28);
  border-color: #2d6d6a;
}

.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(29,119,113,0.12);
  color: #2d6d6a;
  font-size: 12px;
  font-weight: 850;
}

.pill.live {
  background: rgba(185,34,47,0.14);
  color: #b9222f;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: #47505a;
  background: #f8faf9;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(16px, 4vw, 48px);
  color: rgba(255,255,255,0.74);
  background: #050607;
}

.footer a {
  color: var(--bright);
  font-weight: 800;
  text-decoration: none;
}

.footer a:hover { color: var(--chrome); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.song-library-page {
  min-height: 100vh;
}

.library-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
  color: var(--silver);
}

.library-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 30px;
}

.library-hero h1 {
  max-width: none;
  font-size: clamp(42px, 9vw, 86px);
}

.library-hero .hero-copy {
  max-width: 620px;
}

.library-listen-button {
  flex: 0 0 auto;
}

.library-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 180px;
  gap: 12px;
  margin-bottom: 14px;
}

.library-search,
.library-select {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.library-search {
  gap: 10px;
  padding: 0 14px;
}

.library-search svg {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.68);
  flex: 0 0 auto;
}

.library-search input,
.library-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--silver);
  background: transparent;
}

.library-search input::placeholder {
  color: rgba(255,255,255,0.58);
}

.library-select {
  gap: 8px;
  padding: 0 12px;
}

.library-select span {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.library-select select {
  appearance: none;
  font-weight: 800;
}

.library-select option {
  color: #111316;
}

.library-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.library-summary > div {
  min-height: 82px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
}

.library-summary strong,
.library-summary span {
  display: block;
}

.library-summary strong {
  font-size: 28px;
  line-height: 1;
}

.library-summary span {
  margin-top: 6px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.song-results {
  display: grid;
  gap: 8px;
}

.library-loading {
  min-height: 140px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.06);
}

.song-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(112px, 150px);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--silver);
  background: rgba(255,255,255,0.07);
  text-align: left;
  cursor: pointer;
}

.song-row:hover,
.song-row.selected {
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.12);
}

.song-row img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.song-row-main,
.song-row-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.song-row-main strong,
.song-row-main span,
.song-row-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-row-main strong {
  font-size: 17px;
}

.song-row-main span,
.song-row-meta {
  color: rgba(255,255,255,0.64);
}

.song-row-meta {
  justify-items: end;
  font-size: 12px;
  font-weight: 800;
}

.song-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(13,15,18,0.88);
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.song-detail-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.song-detail-panel h2 {
  font-size: 28px;
}

.song-detail-panel p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.45;
}

.song-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.song-detail-stats div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
}

.song-detail-stats dt,
.song-detail-stats dd {
  margin: 0;
}

.song-detail-stats dt {
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.song-detail-stats dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

.song-detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.song-detail-actions button,
.song-detail-actions a {
  width: 100%;
}

.song-detail-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.library-rating-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
}

.song-preview-player {
  display: grid;
  gap: 8px;
}

.song-preview-player[hidden] {
  display: none;
}

.song-preview-player audio {
  width: 100%;
}

.download-note {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  font-size: 13px;
  line-height: 1.45;
}

.lyrics-box {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
}

.lyrics-box summary {
  cursor: pointer;
  font-weight: 850;
}

.lyrics-box pre {
  max-height: 280px;
  margin: 12px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  color: rgba(255,255,255,0.72);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.library-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #070809;
}

.library-overlay[hidden] {
  display: none;
}

.library-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 34px);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: var(--silver);
  background: rgba(7, 8, 9, 0.96);
}

.library-overlay-bar .eyebrow {
  margin-bottom: 3px;
}

.library-overlay-bar strong {
  display: block;
  font-size: 22px;
}

.library-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #070809;
}

@media (max-width: 760px) {
  .topbar { gap: 10px; }
  .nav-links { display: none; }
  .hero { min-height: 1120px; }
  .hero-content { padding-bottom: 40px; }
  .hero-logo { margin-inline: auto; }
  .hero-copy { font-size: 18px; }
  .stream-actions > button,
  .stream-actions > a {
    flex: 1 1 100%;
    padding-inline: 10px;
  }
  .donate-card {
    align-items: stretch;
    flex-direction: column;
  }
  .donate-card summary {
    align-items: stretch;
    flex-direction: column;
  }
  .donate-button { width: 100%; }
  .donate-menu { grid-template-columns: 1fr; }
  .workspace-grid,
  .submission-form,
  .advertiser-form { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-section > summary {
    align-items: start;
    flex-direction: column;
  }
  .admin-section > summary::after {
    position: absolute;
    right: 16px;
  }
  .admin-section { position: relative; }
  .admin-section > summary small { padding-right: 38px; text-align: left; }
  .queue-search {
    flex-basis: 100%;
    max-width: none;
  }
  .tool-grid { grid-template-columns: 1fr; }
  .rating-actions { grid-template-columns: 1fr; }
  .event-strip,
  .resume-card {
    align-items: stretch;
    flex-direction: column;
  }
  .now-playing-head { gap: 8px; }
  .now-playing-tools { max-width: 68%; }
  .sync-pill { max-width: 128px; }
  .resume-card .primary-button { width: 100%; }
  .song-info-drawer dl { grid-template-columns: 1fr; }
  .chat-messages { max-height: clamp(360px, 52vh, 500px); }
  .chat-replying { align-items: stretch; flex-direction: column; }
  .chat-form { grid-template-columns: 1fr; }
  .credential-grid { grid-template-columns: 1fr; }
  .advertiser-lead-grid { grid-template-columns: 1fr; }
  .daypart-grid { grid-template-columns: 1fr; }
  .reach-summary-grid { grid-template-columns: 1fr; }
  .weight-toolbar,
  .metadata-form { grid-template-columns: 1fr; }
  .rating-row { grid-template-columns: 1fr 1fr 1fr; }
  .play-queue-row { grid-template-columns: 1fr; }
  .play-queue-actions { justify-content: stretch; }
  .play-queue-actions .ghost-button { width: 100%; }
  .rating-row > div:first-child { grid-column: 1 / -1; }
  .admin-token-form { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .library-shell { padding-top: 24px; }
  .library-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .library-hero h1 { font-size: 52px; }
  .library-listen-button { width: 100%; }
  .library-controls,
  .library-summary,
  .library-layout {
    grid-template-columns: 1fr;
  }
  .song-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .song-row img {
    width: 52px;
    height: 52px;
  }
  .song-row-meta {
    grid-column: 2;
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .song-detail-panel {
    position: static;
  }
  .song-detail-panel.song-detail-inline {
    margin: 4px 0 10px;
  }
  .song-detail-stats {
    grid-template-columns: 1fr;
  }
  .library-overlay-bar {
    min-height: 64px;
  }
  .library-overlay-bar strong {
    font-size: 18px;
  }
  .footer { flex-direction: column; }
}
