/* ==========================================================================
   Aurelia Music — a white, luminous music experience
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI",
    Inter, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

  --bg: #ffffff;
  --sidebar-bg: rgba(250, 250, 252, 0.82);
  --surface: #f5f5f7;
  --surface-2: #ededf0;
  --surface-3: #e4e4e9;
  --ink: #111114;
  --ink-2: #3f3f46;
  --muted: #85858f;
  --faint: #a5a5ae;
  --line: rgba(17, 17, 20, 0.075);
  --line-strong: rgba(17, 17, 20, 0.13);
  --red: #fa233b;
  --red-deep: #df0f2c;
  --green: #2bb673;

  --shadow-xs: 0 1px 2px rgba(17, 17, 20, 0.05);
  --shadow-sm: 0 6px 18px rgba(17, 17, 20, 0.06);
  --shadow-md: 0 18px 44px rgba(17, 17, 20, 0.1);
  --shadow-lg: 0 32px 80px rgba(17, 17, 20, 0.16);

  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sidebar-w: 254px;
  --player-h: 88px;
  --topbar-h: 72px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -12%, rgba(255, 213, 219, 0.28), transparent 60%),
    radial-gradient(800px 420px at 10% 108%, rgba(222, 230, 255, 0.32), transparent 62%);
  z-index: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px 18px 22px;
  overflow-y: auto;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 20px;
}

.brand-mark span {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5d70, var(--red-deep));
  animation: brandPulse 2.8s ease-in-out infinite;
}

.brand-mark span:nth-child(1) {
  height: 9px;
  animation-delay: -0.6s;
}
.brand-mark span:nth-child(2) {
  height: 19px;
  animation-delay: -0.2s;
}
.brand-mark span:nth-child(3) {
  height: 13px;
  animation-delay: -0.9s;
}
.brand-mark span:nth-child(4) {
  height: 17px;
  animation-delay: -0.4s;
}

@keyframes brandPulse {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}

.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-sub {
  align-self: flex-end;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--faint);
  padding-bottom: 3px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  margin: 0 0 8px;
  padding: 0 12px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-item span[data-icon] {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: 0 0 auto;
  transition: color 0.18s ease;
}

.nav-item:hover {
  background: rgba(17, 17, 20, 0.045);
  color: var(--ink);
}

.nav-item.active {
  background: rgba(17, 17, 20, 0.075);
  color: var(--ink);
  font-weight: 600;
}

.nav-item.active span[data-icon] {
  color: var(--red);
}

.nav-item.slim {
  height: 30px;
  font-size: 12.8px;
  color: var(--muted);
}

.nav-item.slim:hover {
  color: var(--ink);
}

.sidebar-footer {
  margin-top: auto;
  padding: 0 6px;
}

.source-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-xs);
}

.source-card div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.source-card strong {
  font-size: 11.5px;
  font-weight: 650;
}

.source-card div span {
  font-size: 10.5px;
  color: var(--muted);
}

.source-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.14);
  flex: 0 0 auto;
}

.source-check {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--green);
}

.sidebar-note {
  margin: 12px 4px 0;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.main-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--topbar-h);
  padding: 0 34px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 150px;
}

.history-buttons {
  display: flex;
  gap: 2px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  flex: 0 0 auto;
}

.icon-button span[data-icon] {
  width: 19px;
  height: 19px;
}

.icon-button:hover {
  background: rgba(17, 17, 20, 0.06);
  color: var(--ink);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button.small {
  width: 30px;
  height: 30px;
}

.icon-button.small span[data-icon] {
  width: 16px;
  height: 16px;
}

.icon-button.is-on {
  color: var(--red);
}

.page-heading {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.page-kicker {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.page-heading strong {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-search {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  width: min(460px, 100%);
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(17, 17, 20, 0.045);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus-within {
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: 0 6px 24px rgba(17, 17, 20, 0.08);
}

.search-icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex: 0 0 auto;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
}

.search-field input::placeholder {
  color: var(--faint);
}

.search-field input::-webkit-search-cancel-button {
  appearance: none;
}

.search-field kbd {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  color: var(--faint);
  background: rgba(17, 17, 20, 0.055);
  border-radius: 5px;
  padding: 2px 5px;
}

.suggestions {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  backdrop-filter: blur(24px);
  z-index: 40;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.suggestion span[data-icon] {
  width: 13px;
  height: 13px;
  color: var(--faint);
  flex: 0 0 auto;
}

.suggestion:hover,
.suggestion.active {
  background: var(--surface);
  color: var(--ink);
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 130px;
}

.ghost-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px 0 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ghost-pill:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a31, #111114);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   View
   -------------------------------------------------------------------------- */

.view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 34px 70px;
  outline: none;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 20, 0.16) transparent;
}

.view::-webkit-scrollbar {
  width: 10px;
}

.view::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 20, 0.14);
  border: 3px solid #fff;
  border-radius: 999px;
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  animation: pageIn 0.45s var(--ease) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.page-title {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.page-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.5;
}

.page-intro {
  padding: 26px 0 26px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -0.005em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}

.btn span[data-icon] {
  width: 15px;
  height: 15px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 17, 20, 0.16);
}

.btn-dark:hover {
  background: #000;
  box-shadow: 0 12px 26px rgba(17, 17, 20, 0.22);
}

.btn-accent {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(250, 35, 59, 0.24);
}

.btn-accent:hover {
  background: var(--red-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn-ghost.is-on {
  color: var(--red);
  border-color: rgba(250, 35, 59, 0.35);
  background: rgba(250, 35, 59, 0.06);
}

.text-button {
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}

.text-button:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 350px;
  padding: 42px 44px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #eef0f4;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: -30%;
  background-size: cover;
  background-position: center;
  filter: blur(74px) saturate(1.7);
  opacity: 0.5;
  z-index: -2;
  transform: scale(1.1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.4) 70%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.35), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.82);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-badge span[data-icon] {
  width: 11px;
  height: 11px;
  color: #ff8c9b;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.3vw, 60px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.052em;
  max-width: 13ch;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.hero-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.hero-desc {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-art {
  position: absolute;
  right: 5.2%;
  top: 50%;
  width: 258px;
  height: 258px;
  transform: translateY(-50%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 17, 20, 0.3), 0 4px 12px rgba(17, 17, 20, 0.14);
  z-index: 1;
}

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

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Shelves and cards
   -------------------------------------------------------------------------- */

.section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.row-arrows {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.section:hover .row-arrows {
  opacity: 1;
}

.row-arrows .icon-button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.row-arrows .icon-button span[data-icon] {
  width: 14px;
  height: 14px;
}

.row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  margin: -2px -2px -8px;
}

.row::-webkit-scrollbar {
  display: none;
}

.card {
  width: 172px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}

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

.card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-xs);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-art img {
  transform: scale(1.045);
}

.card-art.round {
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.card-art.round img {
  border-radius: 50%;
}

.card-play {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.9);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 17, 20, 0.3);
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transition: opacity 0.22s ease, transform 0.25s var(--ease), background 0.2s ease;
  backdrop-filter: blur(8px);
}

.card-play span[data-icon] {
  width: 15px;
  height: 15px;
  margin-left: 1px;
}

.card:hover .card-play,
.card:focus-within .card-play {
  opacity: 1;
  transform: none;
}

.card-play:hover {
  background: var(--red);
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.card-title {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Top picks */

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s var(--ease);
  min-width: 0;
}

.pick:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.pick-art {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface);
}

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

.pick-info {
  min-width: 0;
}

.pick-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 640;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-info span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-play {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
}

.pick-play span[data-icon] {
  width: 13px;
  height: 13px;
  margin-left: 1px;
}

.pick:hover .pick-play {
  opacity: 1;
}

.pick-play:hover {
  background: var(--red);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Browse / radio
   -------------------------------------------------------------------------- */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.genre-tile {
  position: relative;
  min-height: 132px;
  border-radius: 16px;
  overflow: hidden;
  padding: 20px 20px 17px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.genre-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.genre-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, 0.3);
}

.genre-name {
  position: relative;
  z-index: 1;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -0.035em;
  color: #17171a;
}

.genre-tagline {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(23, 23, 26, 0.58);
  max-width: 26ch;
}

.genre-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(23, 23, 26, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.genre-arrow span[data-icon] {
  width: 12px;
  height: 12px;
}

.genre-tile:hover .genre-arrow {
  opacity: 1;
  transform: none;
}

.radio-list {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease;
}

.radio-row:hover {
  background: rgba(250, 250, 252, 0.8);
}

.radio-freq {
  width: 92px;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.04em;
  color: var(--red);
}

.radio-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.radio-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.radio-main {
  min-width: 0;
  flex: 1;
}

.radio-main strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.radio-main span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.radio-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex: 0 0 auto;
}

.radio-play span[data-icon] {
  width: 14px;
  height: 14px;
  margin-left: 1px;
}

.radio-row:hover .radio-play {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Detail pages
   -------------------------------------------------------------------------- */

.detail-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 30px;
  padding: 34px 8px 30px;
  isolation: isolate;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: -60px -34px -40px -34px;
  background-image: var(--art);
  background-size: cover;
  background-position: center 30%;
  filter: blur(80px) saturate(1.5);
  opacity: 0.22;
  z-index: -2;
  mask-image: linear-gradient(180deg, #000 10%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 92%);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: -60px -34px -40px -34px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.72) 72%, #fff);
}

.detail-cover {
  width: 216px;
  height: 216px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface-2);
  box-shadow: 0 26px 60px rgba(17, 17, 20, 0.24), 0 3px 8px rgba(17, 17, 20, 0.1);
}

.detail-cover.round {
  border-radius: 50%;
}

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

.detail-info {
  min-width: 0;
  padding-bottom: 4px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.01;
  font-weight: 780;
  letter-spacing: -0.048em;
  max-width: 20ch;
}

.detail-artists {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-2);
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}

.detail-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.detail-meta .source-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.05);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.detail-description {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Track table */

.track-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 8px;
  padding: 0 6px;
}

.track-count {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
}

.track-table {
  margin-top: 6px;
}

.track-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(100px, 200px) 38px 52px;
  gap: 14px;
  align-items: center;
  padding: 0 10px 9px;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.track-head span:nth-child(4) {
  text-align: center;
}

.track-head span:nth-child(5) {
  text-align: right;
}

.track-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(100px, 200px) 38px 52px;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: default;
  transition: background 0.16s ease;
}

.track-row:hover {
  background: rgba(17, 17, 20, 0.035);
}

.track-index {
  position: relative;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  text-align: center;
}

.track-row:hover .track-index > span:first-child {
  opacity: 0;
}

.track-index .row-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: var(--ink);
  transition: opacity 0.15s ease;
}

.track-index .row-play span[data-icon] {
  width: 14px;
  height: 14px;
  margin-left: 1px;
}

.track-row:hover .row-play {
  opacity: 1;
}

.track-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.track-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface);
}

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

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

.track-title {
  display: block;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-album {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-like {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
  justify-self: center;
}

.track-like span[data-icon] {
  width: 15px;
  height: 15px;
}

.track-row:hover .track-like,
.track-like.is-liked {
  opacity: 1;
}

.track-like:hover {
  background: rgba(17, 17, 20, 0.05);
  color: var(--ink);
}

.track-like.is-liked {
  color: var(--red);
}

.track-duration {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}

.track-row.is-current .track-title {
  color: var(--red);
  font-weight: 650;
}

.track-row.is-current .track-index {
  color: var(--red);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  justify-content: center;
}

.eq i {
  width: 2px;
  border-radius: 2px;
  background: var(--red);
  animation: eq 0.9s ease-in-out infinite alternate;
}

.eq i:nth-child(1) {
  height: 45%;
  animation-delay: -0.2s;
}
.eq i:nth-child(2) {
  height: 90%;
  animation-delay: -0.5s;
}
.eq i:nth-child(3) {
  height: 60%;
  animation-delay: -0.1s;
}

@keyframes eq {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.chip span[data-icon] {
  width: 12px;
  height: 12px;
  color: var(--faint);
}

.top-result {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  max-width: 620px;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.top-result:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.top-result-art {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface);
}

.top-result-art.round {
  border-radius: 50%;
}

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

.top-result-info {
  min-width: 0;
}

.top-result-info .eyebrow {
  margin-bottom: 5px;
}

.top-result-info strong {
  display: block;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-result-info span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Library
   -------------------------------------------------------------------------- */

.library-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.library-tab {
  position: relative;
  padding: 10px 14px 12px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.2s ease;
}

.library-tab:hover {
  color: var(--ink);
}

.library-tab.active {
  color: var(--ink);
  font-weight: 650;
}

.library-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--faint);
  margin-bottom: 16px;
}

.empty-icon span[data-icon] {
  width: 22px;
  height: 22px;
}

.empty-state strong {
  font-size: 15px;
  font-weight: 620;
  color: var(--ink);
}

.empty-state p {
  margin: 5px 0 0;
  font-size: 12.5px;
  max-width: 34ch;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Player bar
   -------------------------------------------------------------------------- */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--player-h);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(340px, 520px) minmax(230px, 1fr);
  align-items: center;
  gap: 26px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(32px) saturate(1.7);
  -webkit-backdrop-filter: blur(32px) saturate(1.7);
  box-shadow: 0 -8px 40px rgba(17, 17, 20, 0.045);
}

.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-art {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--faint);
  box-shadow: var(--shadow-xs);
}

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

.player-art span[data-icon] {
  width: 18px;
  height: 18px;
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-title {
  font-size: 12.8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 11.2px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.like-button {
  margin-left: 2px;
}

.like-button.is-liked {
  color: var(--red);
}

.like-button.is-liked span[data-icon] {
  fill: currentColor;
}

.expand-button {
  display: none;
}

.player-center {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.transport {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s var(--ease), background 0.2s ease;
  box-shadow: 0 6px 16px rgba(17, 17, 20, 0.18);
}

.play-button span[data-icon] {
  width: 15px;
  height: 15px;
}

.play-button:hover {
  transform: scale(1.06);
  background: #000;
}

.play-button:active {
  transform: scale(0.96);
}

.play-button.is-loading {
  pointer-events: none;
}

.play-button.is-loading span[data-icon] {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.play-button.large {
  width: 54px;
  height: 54px;
  box-shadow: 0 12px 32px rgba(17, 17, 20, 0.22);
}

.play-button.large span[data-icon] {
  width: 22px;
  height: 22px;
}

.transport .icon-button.is-on {
  color: var(--red);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.time {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  min-width: 30px;
  text-align: center;
  user-select: none;
}

.progress {
  position: relative;
  flex: 1;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3.5px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: height 0.15s ease;
}

.progress:hover::before {
  height: 5px;
}

.progress-buffer {
  position: absolute;
  left: 0;
  height: 3.5px;
  width: 0;
  border-radius: 999px;
  background: var(--surface-3);
  z-index: 1;
}

.progress-fill {
  position: absolute;
  left: 0;
  width: 0;
  height: 3.5px;
  border-radius: 999px;
  background: var(--ink);
  z-index: 2;
  transition: height 0.15s ease;
}

.progress:hover .progress-fill,
.progress:hover .progress-buffer {
  height: 5px;
}

.progress-knob {
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--ink);
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s ease;
}

.progress:hover .progress-knob {
  transform: translateY(-50%) scale(1);
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.volume {
  position: relative;
  width: 88px;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.volume::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--surface-3);
}

.volume-fill {
  position: absolute;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  width: 80%;
}

/* --------------------------------------------------------------------------
   Now playing
   -------------------------------------------------------------------------- */

.now-playing {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateY(102%);
  transition: transform 0.62s var(--ease);
  will-change: transform;
  overflow: hidden;
}

.now-playing.open {
  transform: none;
}

.np-backdrop {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  filter: blur(90px) saturate(1.7);
  opacity: 0;
  transition: opacity 0.8s ease, background-image 0.4s ease;
  z-index: 0;
}

.now-playing.open .np-backdrop {
  opacity: 0.3;
}

.now-playing::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 40%, rgba(255, 255, 255, 0.94) 100%);
  z-index: 0;
  pointer-events: none;
}

.np-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 26px;
  flex: 0 0 auto;
}

.np-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.np-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  color: var(--ink-2);
  backdrop-filter: blur(14px);
  transition: background 0.2s ease;
}

.np-close:hover {
  background: #fff;
  color: var(--ink);
}

.np-close span[data-icon] {
  width: 17px;
  height: 17px;
}

.np-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(30px, 5vw, 80px);
  padding: 0 clamp(26px, 5.5vw, 90px) 40px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

.np-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-bottom: 10px;
}

.np-art {
  width: min(400px, 42vh, 100%);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 40px 90px rgba(17, 17, 20, 0.3), 0 6px 18px rgba(17, 17, 20, 0.12);
  display: grid;
  place-items: center;
  color: var(--faint);
  align-self: center;
  margin-bottom: clamp(20px, 4vh, 42px);
  position: relative;
}

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

.np-art span[data-icon] {
  width: 34px;
  height: 34px;
}

.np-info {
  text-align: left;
}

.np-info h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-info p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-progress {
  margin-top: clamp(18px, 3.4vh, 34px);
}

.np-progress .progress {
  height: 16px;
}

.np-progress .progress::before,
.np-progress .progress-fill {
  height: 4px;
  background: rgba(17, 17, 20, 0.14);
}

.np-progress .progress-fill {
  background: var(--ink);
}

.np-times {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  margin-top: 2px;
}

.np-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  margin-top: clamp(14px, 2.6vh, 26px);
}

.np-controls .icon-button {
  width: 42px;
  height: 42px;
}

.np-controls .icon-button span[data-icon] {
  width: 22px;
  height: 22px;
}

.np-controls .icon-button.is-on {
  color: var(--red);
}

.np-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(14px, 2.4vh, 22px);
}

.np-volume > span[data-icon] {
  width: 16px;
  height: 16px;
  color: var(--faint);
}

.np-volume .volume {
  width: 130px;
}

.np-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 4px;
}

.np-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.np-tab {
  position: relative;
  padding: 11px 0 13px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.2s ease;
}

.np-tab:hover {
  color: var(--ink);
}

.np-tab.active {
  color: var(--ink);
  font-weight: 650;
}

.np-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

.np-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}

.np-queue-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
  flex: 0 0 auto;
}

.np-queue-head strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.np-queue {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 6px;
  scrollbar-width: thin;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 8px;
  border-radius: 9px;
  text-align: left;
  transition: background 0.15s ease;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.6);
}

.queue-item.is-current {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
}

.queue-item-art {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface-2);
}

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

.queue-item-copy {
  min-width: 0;
  flex: 1;
}

.queue-item-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item.is-current .queue-item-copy strong {
  color: var(--red);
}

.queue-item-copy span {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-dur {
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.lyrics {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 12px;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 620;
  line-height: 1.7;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: pre-line;
  scrollbar-width: thin;
}

.lyrics p {
  margin: 0 0 14px;
}

.lyrics-loading,
.lyrics-empty {
  font-size: 13px;
  font-weight: 450;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0;
}

.np-info-panel {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 6px;
}

.info-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.info-block:first-child {
  padding-top: 4px;
}

.info-block span {
  display: block;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}

.info-block strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.info-block p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Toasts / skeletons / states
   -------------------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 18px);
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(440px, 86vw);
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.92);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  animation: toastIn 0.35s var(--ease) both;
}

.toast span[data-icon] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #ff8c9b;
}

.toast.out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-md);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-hero {
  height: 350px;
  border-radius: var(--r-xl);
}

.skeleton-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.skeleton-card {
  width: 172px;
  flex: 0 0 auto;
}

.skeleton-card .skeleton {
  aspect-ratio: 1;
  width: 100%;
}

.skeleton-line {
  height: 11px;
  margin-top: 10px;
  border-radius: 5px;
}

.skeleton-line.short {
  width: 60%;
}

.boot-loader {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--faint);
  font-size: 12px;
}

.boot-mark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
}

.boot-mark span {
  width: 4px;
  border-radius: 999px;
  background: var(--red);
  animation: brandPulse 1.1s ease-in-out infinite;
}

.boot-mark span:nth-child(1) {
  height: 12px;
}
.boot-mark span:nth-child(2) {
  height: 26px;
  animation-delay: -0.2s;
}
.boot-mark span:nth-child(3) {
  height: 18px;
  animation-delay: -0.4s;
}
.boot-mark span:nth-child(4) {
  height: 23px;
  animation-delay: -0.6s;
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 48px 0;
}

.error-state h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.error-state p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  :root {
    --sidebar-w: 226px;
  }

  .topbar {
    padding: 0 26px;
  }

  .view {
    padding: 8px 26px 64px;
  }

  .page-heading {
    display: none;
  }

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

  .hero-art {
    width: 220px;
    height: 220px;
    right: 4%;
  }

  .hero {
    min-height: 320px;
    padding: 36px;
  }

  .np-body {
    gap: 38px;
  }

  .np-art {
    width: min(340px, 38vh);
  }
}

@media (max-width: 1020px) {
  :root {
    --sidebar-w: 76px;
  }

  .sidebar {
    padding: 26px 12px 18px;
    align-items: center;
  }

  .brand {
    padding: 0;
    justify-content: center;
    width: 100%;
  }

  .brand-word,
  .brand-sub,
  .nav-label,
  .nav-item span:not([data-icon]),
  .sidebar-footer,
  .nav-item.slim {
    display: none;
  }

  .nav-item {
    width: 44px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .nav-item span[data-icon] {
    width: 19px;
    height: 19px;
  }

  .nav-group {
    gap: 4px;
    align-items: center;
  }

  .np-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
    gap: 26px;
    padding-bottom: 30px;
  }

  .np-right {
    min-height: 340px;
    padding-bottom: 20px;
  }

  .np-left {
    align-items: center;
    padding-top: 6px;
  }

  .np-info {
    text-align: center;
    width: 100%;
  }

  .np-art {
    width: min(300px, 36vh);
    margin: 0 auto clamp(16px, 3vh, 26px);
  }

  .np-progress,
  .np-controls,
  .np-volume {
    width: 100%;
    max-width: 440px;
  }

  .np-volume {
    justify-content: center;
  }
}

@media (max-width: 780px) {
  :root {
    --player-h: 76px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    gap: 10px;
    padding: 0 16px;
    height: 64px;
  }

  .history-buttons {
    display: none;
  }

  .topbar-search {
    flex: 1;
  }

  .search-field kbd,
  .ghost-pill span:not(.avatar),
  .topbar-right {
    display: none;
  }

  .search-field {
    height: 36px;
  }

  .view {
    padding: 4px 16px 54px;
  }

  .page-intro {
    padding: 16px 0 20px;
  }

  .hero {
    min-height: 260px;
    padding: 26px 22px;
    border-radius: 20px;
  }

  .hero-art {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-desc {
    display: none;
  }

  .section {
    margin-top: 32px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .row-arrows {
    display: none;
  }

  .card {
    width: 138px;
  }

  .row {
    gap: 14px;
  }

  .detail-hero {
    gap: 18px;
    align-items: flex-end;
    padding: 18px 2px 22px;
  }

  .detail-cover {
    width: 112px;
    height: 112px;
    border-radius: 10px;
  }

  .detail-info h1 {
    font-size: 26px;
  }

  .detail-artists {
    font-size: 13px;
    margin-top: 7px;
  }

  .detail-actions {
    grid-column: 1 / -1;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .detail-hero {
    flex-wrap: wrap;
  }

  .track-head {
    grid-template-columns: 28px minmax(0, 1fr) 36px 44px;
    gap: 10px;
  }

  .track-row {
    grid-template-columns: 28px minmax(0, 1fr) 36px 44px;
    gap: 10px;
    padding: 6px 8px;
    min-height: 54px;
  }

  .track-head span:nth-child(3),
  .track-album {
    display: none;
  }

  .track-cover {
    width: 36px;
    height: 36px;
  }

  .track-title {
    font-size: 12.8px;
  }

  .track-artist {
    font-size: 10.8px;
  }

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

  .player-center {
    display: none;
  }

  .player-right {
    gap: 4px;
  }

  .volume-control,
  #btn-lyrics {
    display: none;
  }

  .expand-button {
    display: inline-flex;
  }

  .now-playing .np-topbar {
    height: 58px;
    padding: 0 16px;
  }

  .np-body {
    display: flex;
    flex-direction: column;
    padding: 0 20px 24px;
    gap: 20px;
    overflow-y: auto;
  }

  .np-art {
    width: min(240px, 30vh);
    border-radius: 13px;
  }

  .np-left {
    padding-bottom: 0;
  }

  .np-info h2 {
    font-size: 23px;
  }

  .np-info p {
    font-size: 13px;
  }

  .np-right {
    min-height: 300px;
  }

  .np-tab {
    font-size: 11px;
  }

  .np-controls {
    margin-top: 12px;
  }

  .np-controls .play-button.large {
    width: 48px;
    height: 48px;
  }

  .genre-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .genre-tile {
    min-height: 110px;
    padding: 15px;
  }

  .genre-name {
    font-size: 18px;
  }

  .genre-tagline {
    display: none;
  }

  .radio-freq {
    width: 70px;
    font-size: 14px;
  }

  .radio-live {
    display: none;
  }

  .picks-grid {
    grid-template-columns: 1fr;
  }

  .toast-stack {
    bottom: calc(var(--player-h) + 12px);
  }
}

@media (min-width: 781px) {
  .mobile-tabbar {
    display: none;
  }
}

/* Mobile bottom navigation */
.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--player-h);
  z-index: 55;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

@media (max-width: 780px) {
  .app {
    height: calc(100vh - var(--player-h) - 52px);
    height: calc(100dvh - var(--player-h) - 52px);
  }

  .mobile-tabbar {
    display: flex;
  }

  .view {
    padding-bottom: 28px;
  }
}

.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--faint);
}

.mobile-tabbar a span[data-icon] {
  width: 20px;
  height: 20px;
}

.mobile-tabbar a.active {
  color: var(--red);
}

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

/* --------------------------------------------------------------------------
   Finitions
   -------------------------------------------------------------------------- */

[hidden] {
  display: none !important;
}

.card-art-wrap {
  position: relative;
}

.art-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f4f4f7, #e6e6ec);
  color: #b6b6c0;
}

.art-empty > svg {
  width: 26px;
  height: 26px;
}

.art-empty.small > svg {
  width: 16px;
  height: 16px;
}

.detail-cover .art-empty > svg {
  width: 34px;
  height: 34px;
}

.track-row {
  cursor: pointer;
}

.track-row:focus-visible {
  outline-offset: -2px;
}

.is-liked span[data-icon] svg path {
  fill: currentColor;
  stroke: currentColor;
}

.detail-actions .like-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
}

.detail-actions .like-button:hover {
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.player-art {
  cursor: pointer;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 26px 20px;
}

.media-grid .card {
  width: 100%;
}

.library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.library-collage {
  display: flex;
  align-items: center;
  padding-right: 18px;
  flex: 0 0 auto;
}

.library-collage img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 11px;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 20, 0.16);
}

.library-collage img + img {
  margin-left: -22px;
  transform: rotate(4deg);
}

.library-collage img:last-child {
  transform: rotate(-5deg) translateY(4px);
}

.liked-cover {
  background: linear-gradient(140deg, #ff6579 0%, #fa233b 48%, #c10822 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 26px 60px rgba(250, 35, 59, 0.28), 0 3px 8px rgba(17, 17, 20, 0.1);
}

.liked-cover-inner {
  color: #fff;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 6px 14px rgba(120, 0, 12, 0.28));
}

.liked-cover-inner span[data-icon],
.liked-cover-inner > svg {
  width: 100%;
  height: 100%;
}

.liked-cover-inner svg path {
  fill: rgba(255, 255, 255, 0.16);
  stroke: #fff;
  stroke-width: 1.4;
}

.mood-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: clamp(30px, 4.5vw, 58px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.mood-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.06) 65%);
}

.mood-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.mood-copy .eyebrow {
  color: rgba(23, 23, 26, 0.45);
}

.mood-copy h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.mood-copy p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(23, 23, 26, 0.58);
  max-width: 38ch;
}

.mood-orbit {
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: 380px;
  height: 380px;
  z-index: 0;
}

.mood-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.mood-orbit span:nth-child(2) {
  inset: 60px;
}

.mood-orbit span:nth-child(3) {
  inset: 122px;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  box-shadow: 0 20px 50px rgba(17, 17, 20, 0.08);
}

.page-footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.01em;
}

.page-footer p {
  margin: 8px 0 0;
}

.footer-line {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 780px) {
  .mobile-tabbar {
    display: flex;
  }

  .library-collage {
    display: none;
  }

  .mood-hero {
    min-height: 230px;
  }

  .mood-orbit {
    width: 240px;
    height: 240px;
    right: -70px;
    bottom: -70px;
  }

  .np-progress,
  .np-controls,
  .np-volume {
    max-width: 100%;
  }

  .page-footer {
    margin-top: 42px;
  }
}

@media (max-width: 1020px) and (min-width: 781px) {
  .nav-item[data-section] {
    position: relative;
  }
}

/* Ajustements de largeur intermédiaire */
@media (max-width: 980px) {
  .player {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px) auto;
    gap: 14px;
    padding: 0 16px;
  }

  .volume-control,
  #btn-lyrics {
    display: none;
  }

  .topbar {
    padding: 0 24px;
  }

  .view {
    padding: 8px 24px 64px;
  }
}

@media (max-width: 900px) and (min-width: 781px) {
  .hero {
    min-height: 320px;
    padding: 30px;
  }

  .hero h1 {
    font-size: 34px;
    max-width: 12ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-art {
    width: 176px;
    height: 176px;
    right: 3.5%;
  }

  .hero-desc {
    display: none;
  }

  .hero-meta {
    font-size: 11.5px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .btn {
    height: 36px;
    padding: 0 16px;
    font-size: 12px;
  }
}

/* Empêche la grille de grandir avec le contenu : la vue doit scroller. */
.app {
  min-height: 0;
  overflow: hidden;
}

.main-shell {
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  min-height: 0;
}

/* La rangée de grille doit pouvoir rétrécir sous la hauteur de la fenêtre. */
.app {
  grid-template-rows: minmax(0, 1fr);
}
