:root {
  --bg: #061019;
  --bg-elevated: #0a1723;
  --bg-elevated-2: #0d1d2a;
  --surface: rgba(12, 28, 41, 0.82);
  --surface-strong: #102433;
  --surface-soft: rgba(18, 41, 57, 0.62);
  --line: rgba(174, 222, 236, 0.11);
  --line-strong: rgba(92, 224, 223, 0.2);
  --text: #f4fbff;
  --text-soft: #a8bcc7;
  --text-dim: #708792;
  --blue: #4e8fff;
  --blue-strong: #2b72ef;
  --teal: #3be0d2;
  --teal-strong: #11bcb4;
  --cyan: #7cecf3;
  --danger: #ff758e;
  --shadow: 0 28px 90px rgba(0, 8, 16, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --sidebar: 248px;
  --player: 92px;
  --topbar: 76px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

html[data-theme="daylight"] {
  --bg: #edf8fb;
  --bg-elevated: #f7fcfd;
  --bg-elevated-2: #e8f5f7;
  --surface: rgba(247, 252, 253, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: rgba(223, 240, 244, 0.76);
  --line: rgba(16, 73, 91, 0.11);
  --line-strong: rgba(15, 148, 159, 0.22);
  --text: #0a1b27;
  --text-soft: #415e6b;
  --text-dim: #6f8993;
  --shadow: 0 28px 80px rgba(32, 91, 110, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(26, 145, 184, .12), transparent 32%),
    radial-gradient(circle at 35% 35%, rgba(36, 108, 234, .08), transparent 30%),
    var(--bg);
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(80px);
  opacity: .22;
  border-radius: 999px;
  z-index: 0;
}

.ambient-one {
  width: 420px;
  height: 420px;
  top: -240px;
  right: 8vw;
  background: #16afc7;
}

.ambient-two {
  width: 300px;
  height: 300px;
  bottom: 8vh;
  left: 24vw;
  background: #246feb;
  opacity: .12;
}

.music-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) var(--player);
  height: 100vh;
  height: 100dvh;
}

.sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(5, 16, 25, .72);
  backdrop-filter: blur(28px) saturate(135%);
}

html[data-theme="daylight"] .sidebar {
  background: rgba(239, 249, 251, .78);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 10px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(72, 153, 255, .13), rgba(58, 224, 210, .1)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.brand-wave {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.brand-wave-one { height: 12px; }
.brand-wave-two { height: 22px; }
.brand-wave-three { height: 16px; }

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: -.03em;
}

.brand-copy small {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-label {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.nav-link svg {
  width: 19px;
  height: 19px;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-soft);
  transform: translateX(2px);
}

.nav-link.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(55, 131, 248, .14), rgba(55, 218, 204, .07)),
    var(--surface-soft);
}

.nav-link.is-active svg {
  color: var(--teal);
}

.sidebar-divider {
  height: 1px;
  background: var(--line);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(59, 224, 210, .08);
}

.sidebar-status div {
  display: grid;
  gap: 2px;
}

.sidebar-status strong {
  font-size: 11px;
}

.sidebar-status span:last-child {
  color: var(--text-dim);
  font-size: 10px;
}

.workspace {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(220px, 620px) 1fr;
  gap: 18px;
  align-items: center;
  height: var(--topbar);
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 16, 25, .84), rgba(6, 16, 25, .58));
  backdrop-filter: blur(25px) saturate(130%);
}

html[data-theme="daylight"] .topbar {
  background: linear-gradient(180deg, rgba(243, 251, 252, .92), rgba(243, 251, 252, .7));
}

.history-controls {
  display: flex;
  gap: 8px;
}

.history-controls button,
.icon-button,
.player button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.history-controls button,
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-soft);
  transition: 160ms var(--ease);
}

.history-controls button:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.global-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.global-search > svg {
  position: absolute;
  left: 15px;
  width: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

.global-search input {
  width: 100%;
  height: 43px;
  padding: 0 48px 0 45px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 30, 43, .72);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: 160ms var(--ease);
}

html[data-theme="daylight"] .global-search input {
  background: rgba(255,255,255,.8);
}

.global-search input::placeholder {
  color: var(--text-dim);
}

.global-search input:focus {
  border-color: rgba(59, 224, 210, .5);
  box-shadow: 0 0 0 4px rgba(59, 224, 210, .08);
}

.global-search kbd {
  position: absolute;
  right: 13px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-dim);
  background: var(--surface-soft);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.topbar-actions {
  justify-self: end;
}

.music-page {
  height: calc(100% - var(--topbar));
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 36px 38px 72px;
}

.music-page::-webkit-scrollbar {
  width: 10px;
}

.music-page::-webkit-scrollbar-thumb {
  background: rgba(131, 180, 194, .15);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 99px;
}

.page-stack {
  display: grid;
  gap: 38px;
  width: min(1460px, 100%);
  margin: 0 auto;
}

.page-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.eyebrow {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.page-heading h1,
.hero-copy h1,
.entity-copy h1,
.error-page h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 5vw, 74px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: .98;
}

.page-heading p,
.hero-copy p,
.entity-copy p,
.truth-panel p,
.search-prompt p,
.empty-state p,
.error-page p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.hero-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(115deg, rgba(21, 50, 72, .94), rgba(8, 27, 40, .83) 52%, rgba(10, 46, 56, .78)),
    var(--bg-elevated);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.045);
}

html[data-theme="daylight"] .hero-panel {
  background:
    linear-gradient(115deg, rgba(247, 253, 255, .96), rgba(229, 246, 250, .92) 52%, rgba(221, 245, 244, .9)),
    var(--bg-elevated);
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -100px;
  top: -150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 218, 211, .18), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.hero-copy h1 {
  font-size: clamp(48px, 6vw, 86px);
}

.hero-copy p {
  max-width: 600px;
  font-size: clamp(15px, 1.4vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.01em;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    border-color 160ms var(--ease);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #031218;
  background: linear-gradient(135deg, #76eff0, #42d4d1 48%, #66a2ff);
  box-shadow: 0 12px 35px rgba(49, 200, 205, .18);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.035);
}

.hero-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.hero-disc {
  position: relative;
  width: clamp(180px, 20vw, 280px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,.02) 0 2px, transparent 3px 7px),
    conic-gradient(from 210deg, #0b1928, #1a63b3, #0d313e, #16a3a8, #0a1723, #377fd8, #0b1928);
  box-shadow:
    0 40px 80px rgba(0, 6, 14, .45),
    inset 0 0 45px rgba(255,255,255,.03);
  animation: slow-spin 28s linear infinite;
}

.hero-disc::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: inherit;
}

.hero-disc-core {
  position: absolute;
  inset: 37%;
  border-radius: 999px;
  background: var(--bg);
  box-shadow:
    0 0 0 16px rgba(66, 212, 209, .17),
    0 0 60px rgba(72, 143, 255, .35);
}

.spectrum {
  position: absolute;
  right: 2%;
  bottom: 4%;
  display: flex;
  gap: 4px;
  align-items: end;
  height: 66px;
  opacity: .8;
}

.spectrum i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  animation: spectrum 1.6s var(--ease) infinite alternate;
}

.spectrum i:nth-child(1) { height: 28%; animation-delay: -.4s; }
.spectrum i:nth-child(2) { height: 62%; animation-delay: -.9s; }
.spectrum i:nth-child(3) { height: 38%; animation-delay: -.1s; }
.spectrum i:nth-child(4) { height: 86%; animation-delay: -.7s; }
.spectrum i:nth-child(5) { height: 54%; animation-delay: -.3s; }
.spectrum i:nth-child(6) { height: 100%; animation-delay: -1.1s; }
.spectrum i:nth-child(7) { height: 45%; animation-delay: -.5s; }
.spectrum i:nth-child(8) { height: 74%; animation-delay: -.8s; }
.spectrum i:nth-child(9) { height: 35%; animation-delay: -.15s; }
.spectrum i:nth-child(10) { height: 92%; animation-delay: -.6s; }
.spectrum i:nth-child(11) { height: 58%; animation-delay: -1s; }
.spectrum i:nth-child(12) { height: 41%; animation-delay: -.25s; }

@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes spectrum { to { transform: scaleY(.55); opacity: .5; } }

.content-section {
  display: grid;
  gap: 18px;
}

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

.section-heading > div {
  display: grid;
  gap: 5px;
}

.section-heading h2,
.empty-state h2,
.truth-panel h2,
.search-prompt h2,
.queue-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.035em;
}

.section-heading > a {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.section-heading > a:hover {
  color: var(--teal);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px;
}

.track-card,
.release-card {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.cover-button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.cover-button .artwork {
  transition: transform 320ms var(--ease), filter 320ms var(--ease);
}

.cover-button:hover .artwork {
  transform: scale(1.025);
  filter: brightness(.92);
}

.floating-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #021217;
  background: var(--teal);
  box-shadow: 0 10px 25px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(7px) scale(.94);
  transition: 180ms var(--ease);
}

.floating-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.cover-button:hover .floating-play,
.cover-button:focus-visible .floating-play {
  opacity: 1;
  transform: none;
}

.track-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 2px;
}

.track-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-title:hover {
  color: var(--teal);
}

.track-subtitle {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-subtitle:hover {
  color: var(--text);
}

.micro-label,
.result-count {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.artwork {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.artwork-circle {
  border-radius: 999px;
}

.artwork-hero {
  width: clamp(210px, 24vw, 350px);
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(235, 252, 255, .8);
  background:
    radial-gradient(circle at 75% 25%, rgba(71, 229, 215, .22), transparent 34%),
    linear-gradient(145deg, #0d2436, #123a4a 48%, #1d4f81);
}

.artwork-placeholder span {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 760;
  letter-spacing: -.06em;
}

.track-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 25, 37, .5);
}

html[data-theme="daylight"] .track-table {
  background: rgba(255,255,255,.48);
}

.track-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1.2fr) minmax(130px, .8fr) 64px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 8px 16px 8px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms var(--ease);
}

.track-row:last-child {
  border-bottom: 0;
}

.track-row:hover {
  background: rgba(84, 183, 205, .055);
}

.track-row-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.track-play-icon {
  display: none;
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.track-row:hover .track-index {
  display: none;
}

.track-row:hover .track-play-icon {
  display: block;
}

.track-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.track-row-main strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row-main a,
.track-row-release {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row-main a:hover,
.track-row-release:hover {
  color: var(--teal);
}

.track-row-duration {
  justify-self: end;
  color: var(--text-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 22px 18px;
}

.artist-card {
  display: grid;
  gap: 9px;
  text-align: center;
}

.artist-card .artwork {
  transition: 220ms var(--ease);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

.artist-card:hover .artwork {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.artist-card strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-card > span {
  color: var(--text-dim);
  font-size: 11px;
}

.entity-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: end;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 25%, rgba(64, 139, 241, .14), transparent 30%),
    linear-gradient(125deg, rgba(13, 36, 51, .88), rgba(8, 24, 36, .72));
}

html[data-theme="daylight"] .entity-hero {
  background:
    radial-gradient(circle at 12% 25%, rgba(64, 139, 241, .12), transparent 30%),
    rgba(247, 252, 253, .82);
}

.entity-copy {
  display: grid;
  gap: 12px;
  padding-bottom: 6px;
}

.entity-copy h1 {
  font-size: clamp(42px, 7vw, 90px);
}

.entity-copy p {
  max-width: 720px;
}

.entity-copy p a {
  color: var(--text);
  font-weight: 700;
}

.entity-copy .button {
  justify-self: start;
  margin-top: 4px;
}

.truth-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.truth-panel > div:last-child {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.truth-icon,
.search-orb,
.empty-orbit {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--teal);
  background: linear-gradient(145deg, rgba(64, 139, 241, .11), rgba(59, 224, 210, .08));
}

.search-prompt,
.empty-state,
.error-page {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  text-align: center;
  background: rgba(8, 25, 36, .25);
}

.search-prompt p,
.empty-state p,
.error-page p {
  max-width: 640px;
}

.empty-orbit svg,
.search-orb svg {
  width: 25px;
  height: 25px;
}

.error-page {
  margin: 7vh auto;
  max-width: 820px;
}

.error-page .empty-orbit span {
  font-size: 14px;
  font-weight: 800;
}

.mobile-nav {
  display: none;
}

.player {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(340px, 1.45fr) minmax(220px, .9fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(6, 18, 28, .94);
  backdrop-filter: blur(30px) saturate(145%);
  box-shadow: 0 -18px 55px rgba(0, 8, 14, .14);
}

html[data-theme="daylight"] .player {
  background: rgba(242, 251, 252, .94);
}

.player-track {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.player-art {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-art span {
  font-size: 18px;
}

.player-track-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.player-track-copy strong,
.player-track-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track-copy strong {
  font-size: 12px;
}

.player-track-copy span {
  color: var(--text-soft);
  font-size: 10.5px;
}

.player-center {
  display: grid;
  gap: 7px;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.player-controls button,
.player-tools button {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  color: var(--text-soft);
  opacity: .95;
  transition: 150ms var(--ease);
}

.player-controls button:hover,
.player-tools button:hover {
  color: var(--text);
  transform: scale(1.06);
}

.player-controls button.is-active {
  color: var(--teal);
}

.player-controls .play-main {
  width: 39px;
  height: 39px;
  border-radius: 999px;
  color: #04131a;
  background: var(--text);
  opacity: 1;
}

.player-controls .play-main:hover {
  background: var(--teal);
}

.play-main .icon-pause {
  display: none;
}

.player.is-playing .play-main .icon-play {
  display: none;
}

.player.is-playing .play-main .icon-pause {
  display: block;
}

.play-main svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.repeat-one {
  display: none;
  position: absolute;
  right: -1px;
  top: -2px;
  width: 12px;
  height: 12px;
  place-items: center;
  border-radius: 999px;
  color: #04131a;
  background: var(--teal);
  font-size: 8px;
  font-weight: 900;
}

[data-player-repeat][data-mode="one"] .repeat-one {
  display: grid;
}

.player-timeline {
  display: grid;
  grid-template-columns: 36px minmax(120px, 1fr) 36px;
  gap: 9px;
  align-items: center;
}

.player-timeline time {
  color: var(--text-dim);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.player-timeline time:last-child {
  text-align: right;
}

.player input[type="range"] {
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) var(--range-fill, 0%), rgba(160, 199, 211, .17) var(--range-fill, 0%));
  cursor: pointer;
}

.player input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
  transition: opacity 120ms var(--ease);
}

.player input[type="range"]:hover::-webkit-slider-thumb,
.player input[type="range"]:focus::-webkit-slider-thumb {
  opacity: 1;
}

.player-tools {
  display: grid;
  grid-template-columns: auto auto minmax(60px, 110px);
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.volume-icon {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.queue-drawer {
  position: fixed;
  z-index: 80;
  right: 18px;
  top: 18px;
  bottom: calc(var(--player) + 18px);
  width: min(390px, calc(100vw - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 21, 31, .96);
  backdrop-filter: blur(30px) saturate(145%);
  box-shadow: 0 32px 90px rgba(0,0,0,.42);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: 220ms var(--ease);
}

html[data-theme="daylight"] .queue-drawer {
  background: rgba(244, 252, 253, .97);
}

.queue-drawer.is-open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

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

.queue-heading > div:first-child {
  display: grid;
  gap: 3px;
}

.queue-list {
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 5px;
}

.queue-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 6px 7px;
  border-radius: 12px;
  cursor: pointer;
}

.queue-item:hover,
.queue-item.is-current {
  background: var(--surface-soft);
}

.queue-item-art {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-strong);
}

.queue-item-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.queue-item-copy strong,
.queue-item-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item-copy strong {
  font-size: 11px;
}

.queue-item-copy span {
  color: var(--text-dim);
  font-size: 9.5px;
}

.queue-position {
  color: var(--text-dim);
  font-size: 9px;
}

.queue-empty {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.5;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: calc(var(--player) + 20px);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 340px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  font-size: 11px;
  animation: toast-in 180ms var(--ease);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px); }
}

.music-page.is-navigating {
  opacity: .58;
  transition: opacity 100ms linear;
}

@media (max-width: 1080px) {
  :root {
    --sidebar: 198px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr .65fr;
  }

  .player {
    grid-template-columns: minmax(180px, .7fr) minmax(300px, 1.4fr) minmax(160px, .7fr);
  }

  .track-row {
    grid-template-columns: 42px minmax(170px, 1fr) 64px;
  }

  .track-row-release {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --player: 72px;
    --topbar: 66px;
  }

  body {
    overflow: hidden;
  }

  .music-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    grid-column: 1;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 14px;
  }

  .history-controls {
    display: none;
  }

  .global-search {
    grid-column: 1;
  }

  .global-search kbd {
    display: none;
  }

  .global-search input {
    height: 40px;
    padding-right: 15px;
  }

  .music-page {
    height: calc(100% - var(--topbar));
    padding: 22px 16px 154px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 42;
    left: 0;
    right: 0;
    bottom: var(--player);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 58px;
    border-top: 1px solid var(--line);
    background: rgba(6, 18, 28, .96);
    backdrop-filter: blur(24px);
  }

  html[data-theme="daylight"] .mobile-nav {
    background: rgba(243, 251, 252, .96);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 650;
  }

  .mobile-nav a svg {
    width: 18px;
    height: 18px;
  }

  .mobile-nav a.is-active {
    color: var(--teal);
  }

  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 12px;
    gap: 10px;
  }

  .player-track {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .player-art {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .player-center {
    display: block;
  }

  .player-controls {
    gap: 5px;
  }

  .player-controls [data-player-shuffle],
  .player-controls [data-player-prev],
  .player-controls [data-player-repeat],
  .player-timeline,
  .player-tools {
    display: none;
  }

  .player-controls .play-main {
    width: 42px;
    height: 42px;
  }

  .hero-panel {
    min-height: 430px;
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .hero-visual {
    min-height: 145px;
  }

  .hero-disc {
    width: 150px;
  }

  .spectrum {
    right: 7%;
    bottom: 0;
  }

  .entity-hero {
    grid-template-columns: 1fr;
    align-items: start;
    text-align: left;
  }

  .entity-hero .artwork-hero {
    width: min(62vw, 270px);
  }

  .track-row {
    grid-template-columns: 40px minmax(0, 1fr) 50px;
    padding-right: 10px;
  }

  .track-row-release {
    display: none;
  }

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

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

  .truth-panel {
    grid-template-columns: 1fr;
  }

  .queue-drawer {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: calc(var(--player) + 8px);
    width: auto;
    height: min(70vh, 580px);
    transform: translateY(calc(100% + 100px));
  }

  .queue-drawer.is-open {
    transform: none;
  }

  .toast-region {
    right: 12px;
    left: 12px;
    bottom: calc(var(--player) + 70px);
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .page-heading h1,
  .hero-copy h1,
  .entity-copy h1 {
    font-size: 43px;
  }

  .hero-copy p {
    font-size: 14px;
  }

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

  .section-heading {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
