:root {
  /* DARK (default) */
  --bg-0:        oklch(0.14 0.02 260);
  --bg-1:        oklch(0.18 0.025 260);
  --bg-glass:    oklch(0.22 0.03 260 / 0.55);
  --bg-glass-2:  oklch(0.26 0.035 260 / 0.42);
  --line:        oklch(0.95 0.02 240 / 0.08);
  --line-strong: oklch(0.95 0.02 240 / 0.16);
  --fg:          oklch(0.97 0.01 240);
  --fg-dim:      oklch(0.78 0.02 250);
  --fg-faint:    oklch(0.58 0.02 250);
  --accent-cyan: oklch(0.82 0.15 215);
  --accent-mag:  oklch(0.75 0.19 320);
  --accent-lime: oklch(0.88 0.16 140);
  --aurora-1:    oklch(0.55 0.22 215 / 0.55);
  --aurora-2:    oklch(0.52 0.24 320 / 0.45);
  --aurora-3:    oklch(0.58 0.20 280 / 0.4);
  --shadow-lg:   0 24px 64px -16px oklch(0 0 0 / 0.6);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

:root[data-theme="light"] {
  --bg-0:        oklch(0.975 0.008 240);
  --bg-1:        oklch(0.96 0.012 240);
  --bg-glass:    oklch(1 0 0 / 0.62);
  --bg-glass-2:  oklch(1 0 0 / 0.45);
  --line:        oklch(0.2 0.02 260 / 0.09);
  --line-strong: oklch(0.2 0.02 260 / 0.18);
  --fg:          oklch(0.22 0.02 260);
  --fg-dim:      oklch(0.42 0.02 260);
  --fg-faint:    oklch(0.58 0.02 260);
  --accent-cyan: oklch(0.58 0.17 215);
  --accent-mag:  oklch(0.55 0.22 320);
  --accent-lime: oklch(0.62 0.18 140);
  --aurora-1:    oklch(0.78 0.18 215 / 0.45);
  --aurora-2:    oklch(0.75 0.20 320 / 0.35);
  --aurora-3:    oklch(0.80 0.16 280 / 0.35);
  --shadow-lg:   0 24px 64px -16px oklch(0.2 0.02 260 / 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg-0);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

#root { height: 100vh; overflow: hidden; position: relative; isolation: isolate; }

/* ambient aurora — slowly drifting gradient blobs */
.aurora {
  position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  filter: blur(90px) saturate(1.2);
  opacity: 0.85;
}
.aurora::before, .aurora::after, .aurora > span {
  content: ""; position: absolute; border-radius: 50%;
  will-change: transform;
}
.aurora::before {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, var(--aurora-1) 0%, transparent 65%);
  top: -10%; left: -10%;
  animation: drift1 28s ease-in-out infinite alternate;
}
.aurora::after {
  width: 52vw; height: 52vw;
  background: radial-gradient(circle, var(--aurora-2) 0%, transparent 65%);
  bottom: -15%; right: -10%;
  animation: drift2 34s ease-in-out infinite alternate;
}
.aurora > span {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--aurora-3) 0%, transparent 65%);
  top: 35%; left: 40%;
  animation: drift3 40s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(15vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, -8vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-8vw, 6vh) scale(1.2); } }

/* subtle grain overlay */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* App shell grid */
.app {
  display: grid;
  grid-template-columns: 252px 1fr;
  grid-template-rows: 1fr auto;
  height: 100vh;
  gap: 8px;
  padding: 8px;
}
.sidebar   { grid-column: 1; grid-row: 1; }
.main      { grid-column: 2; grid-row: 1; min-width: 0; }
.player    { grid-column: 1 / -1; grid-row: 2; }

/* GLASS PANEL utility */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.06),
    var(--shadow-lg);
}
:root[data-theme="light"] .glass {
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.8),
    0 16px 40px -20px oklch(0.2 0.02 260 / 0.25);
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; overflow: hidden; }
.sidebar-inner { padding: 22px 18px; display: flex; flex-direction: column; gap: 24px; height: 100%; overflow: hidden; }

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 6px;
  position: relative;
  transition: color 0.16s;
  color: inherit;
  text-decoration: none;
}
a.brand, a.brand:hover, a.brand:visited { color: inherit; text-decoration: none; }
.brand-home-hint { opacity: 0; }
.brand-home { cursor: pointer; border-radius: 8px; }
.brand-home:hover { background: oklch(1 0 0 / 0.03); }
.brand-home:hover .brand-mark { transform: rotate(-6deg) scale(1.06); filter: saturate(1.3); }
.brand-home-hint {
  margin-left: auto;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-faint);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}
.brand-home:hover .brand-home-hint { opacity: 1; transform: translateX(0); }
.brand-mark { transition: transform 0.25s cubic-bezier(.4,1.6,.5,1), filter 0.25s; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 210deg at 50% 50%,
    var(--accent-cyan), var(--accent-mag), var(--accent-cyan));
  box-shadow: 0 0 20px oklch(0.7 0.2 280 / 0.4), inset 0 0 0 1px oklch(1 0 0 / 0.25);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 4px;
  background: var(--bg-0);
}
.brand-name {
  font-weight: 500; letter-spacing: -0.02em; font-size: 18px;
}
.brand-kind {
  font: 500 10px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-faint);
  margin-left: auto;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--fg-dim);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 14px;
  transition: all 0.15s ease;
  user-select: none;
}
.nav-item:hover { color: var(--fg); background: oklch(1 0 0 / 0.03); }
:root[data-theme="light"] .nav-item:hover { background: oklch(0.2 0.02 260 / 0.04); }
.nav-item.active {
  color: var(--fg);
  background: linear-gradient(135deg, oklch(0.5 0.15 215 / 0.15), oklch(0.5 0.15 320 / 0.1));
  border-color: var(--line-strong);
}
.nav-item .ic { width: 16px; height: 16px; flex: none; }

.section-label {
  font: 500 10px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fg-faint);
  padding: 0 12px 8px;
}

.playlists { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; min-height: 0; }
.playlist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 8px;
  color: var(--fg-dim); font-size: 13px; cursor: pointer;
  transition: all 0.1s ease;
}
.playlist-item:hover { color: var(--fg); background: oklch(1 0 0 / 0.03); }
:root[data-theme="light"] .playlist-item:hover { background: oklch(0.2 0.02 260 / 0.04); }
.playlist-item.active { color: var(--fg); background: oklch(1 0 0 / 0.05); }
.playlist-chip {
  width: 22px; height: 22px; border-radius: 5px; flex: none;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.1);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}

/* ===== MAIN ===== */
.main { display: flex; flex-direction: column; overflow: hidden; }
.main-inner {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}

.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.nav-arrows { display: flex; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
:root[data-theme="light"] .icon-btn { background: oklch(1 0 0 / 0.5); }
.icon-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.search {
  flex: 1; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  height: 38px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}
:root[data-theme="light"] .search { background: oklch(1 0 0 / 0.6); }
.search:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px oklch(0.7 0.18 215 / 0.15);
}
.search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--fg); font-family: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--fg-faint); }
.search .ic { color: var(--fg-faint); }
.search-kbd {
  font: 500 10px/1 "Geist Mono", ui-monospace, monospace;
  color: var(--fg-faint);
  padding: 3px 6px; border-radius: 4px;
  border: 1px solid var(--line);
}

.top-spacer { flex: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  height: 34px;
  border-radius: 999px;
  font: 500 12px/1 "Geist Mono", ui-monospace, monospace;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}
:root[data-theme="light"] .chip { background: oklch(1 0 0 / 0.6); }
.chip:hover { color: var(--fg); border-color: var(--line-strong); }
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 10px currentColor;
  color: var(--accent-lime);
}
.chip.warn .dot { background: oklch(0.8 0.16 60); color: oklch(0.8 0.16 60); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent-cyan), var(--accent-mag), var(--accent-lime), var(--accent-cyan));
  display: grid; place-items: center;
  font: 500 12px/1 "Geist Mono", monospace;
  color: var(--bg-0);
  cursor: pointer;
  border: 1px solid var(--line-strong);
}

/* scroll area */
.scroll {
  flex: 1; overflow-y: auto;
  padding: 24px 28px 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.scroll::-webkit-scrollbar { width: 8px; }
.scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

/* fund banner */
.fund-banner {
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg,
    oklch(0.5 0.18 215 / 0.12),
    oklch(0.5 0.18 320 / 0.12));
  border: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
}
.fund-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 50%, oklch(0.7 0.2 215 / 0.2), transparent 60%);
  pointer-events: none;
}
.fund-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-mag));
  display: grid; place-items: center;
  color: var(--bg-0);
  box-shadow: 0 0 20px oklch(0.7 0.18 280 / 0.4);
}
.fund-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fund-title { font-size: 14px; font-weight: 500; color: var(--fg); }
.fund-sub {
  font: 400 12px/1.4 "Geist Mono", ui-monospace, monospace;
  color: var(--fg-dim);
}
.fund-dismiss {
  background: none; border: none; color: var(--fg-faint);
  cursor: pointer; padding: 6px; border-radius: 6px;
}
.fund-dismiss:hover { color: var(--fg); background: oklch(1 0 0 / 0.05); }
.btn-primary {
  padding: 9px 16px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-mag));
  border: none; cursor: pointer;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.15) inset, 0 8px 24px -8px oklch(0.7 0.18 280 / 0.6);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px oklch(1 0 0 / 0.2) inset, 0 12px 28px -8px oklch(0.7 0.18 280 / 0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  padding: 9px 14px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--fg-dim); background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
.btn-ghost:hover { color: var(--fg); }

/* Page heading */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.page-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.page-kicker {
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  color: var(--fg-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 10px;
}
.page-sub { color: var(--fg-dim); font-size: 14px; margin-top: 8px; }
.page-head-right { display: flex; gap: 8px; align-items: center; }

/* Hero card — currently playing / resume */
.hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 24px;
  margin-bottom: 36px;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(30px) saturate(1.3);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 0%, oklch(0.6 0.2 215 / 0.25), transparent 50%),
              radial-gradient(circle at 90% 100%, oklch(0.6 0.2 320 / 0.2), transparent 55%);
  pointer-events: none;
}
.hero-cover {
  width: 220px; height: 220px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px -10px oklch(0 0 0 / 0.6);
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
}
.hero-cover .cover-art { width: 100%; height: 100%; }
.hero-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; }
.hero-tag {
  font: 500 10px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-cyan);
  display: flex; align-items: center; gap: 8px;
}
.hero-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.85); } }
.hero-title {
  font-size: 52px; font-weight: 500; letter-spacing: -0.03em; line-height: 0.95;
  text-wrap: balance;
}
.hero-meta { color: var(--fg-dim); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-meta .sep { color: var(--fg-faint); }
.hero-meta .pay {
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  color: var(--accent-lime);
  padding: 3px 8px; border-radius: 4px;
  background: oklch(0.6 0.18 140 / 0.12);
  border: 1px solid oklch(0.6 0.18 140 / 0.25);
}
.hero-actions { display: flex; gap: 10px; margin-top: 8px; }
.hero-actions .play-big {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--fg); color: var(--bg-0); border: none;
  display: grid; place-items: center; cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: 0 8px 24px -8px oklch(0 0 0 / 0.5);
}
.hero-actions .play-big:hover { transform: scale(1.06); }
.hero-actions .icon-btn-lg {
  width: 44px; height: 44px; border-radius: 50%;
  background: oklch(1 0 0 / 0.06);
  border: 1px solid var(--line);
  color: var(--fg-dim); cursor: pointer;
  display: grid; place-items: center;
}
.hero-actions .icon-btn-lg:hover { color: var(--fg); }
.hero-actions .icon-btn-lg.active { color: var(--accent-mag); background: oklch(0.6 0.2 320 / 0.15); border-color: oklch(0.6 0.2 320 / 0.3); }

/* Section */
.section { margin-bottom: 42px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.section-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.section-more { font-size: 12px; color: var(--fg-faint); font-family: "Geist Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.section-more:hover { color: var(--fg); }

/* Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.card {
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-2px); }
.card-cover {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -12px oklch(0 0 0 / 0.5);
}
.card-cover .cover-art { width: 100%; height: 100%; }
.card-play {
  position: absolute; right: 10px; bottom: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-lime); color: var(--bg-0);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(8px);
  transition: all 0.2s ease;
  border: none; cursor: pointer;
  box-shadow: 0 8px 20px -4px oklch(0 0 0 / 0.5);
}
.card:hover .card-play { opacity: 1; transform: translateY(0); }
.card-title {
  font-size: 14px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-sub {
  font-size: 12px; color: var(--fg-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Track row */
.track-table {
  display: flex; flex-direction: column; gap: 2px;
}
.track-row {
  display: grid;
  grid-template-columns: 32px 1fr 180px 80px 48px;
  align-items: center;
  padding: 8px 12px;
  gap: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s ease;
  font-size: 13px;
}
.track-row:hover { background: oklch(1 0 0 / 0.04); }
:root[data-theme="light"] .track-row:hover { background: oklch(0.2 0.02 260 / 0.04); }
.track-row.playing { background: oklch(0.6 0.18 215 / 0.1); }
.track-row.playing .track-title { color: var(--accent-cyan); }
.track-idx { color: var(--fg-faint); font: 500 12px/1 "Geist Mono", monospace; text-align: center; }
.track-row:hover .track-idx { color: var(--fg); }
.track-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-mini-cover { width: 36px; height: 36px; border-radius: 6px; overflow: hidden; flex: none; }
.track-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.track-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.track-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-dim); font-size: 12px; }
.track-album { color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-duration { color: var(--fg-faint); font: 500 12px/1 "Geist Mono", monospace; text-align: right; }
.track-like { display: grid; place-items: center; color: var(--fg-faint); cursor: pointer; }
.track-like.liked { color: var(--accent-mag); }
.track-like:hover { color: var(--fg); }

/* Artists row (circular) */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}
.artist-card { display: flex; flex-direction: column; gap: 10px; align-items: center; cursor: pointer; text-align: center; }
.artist-cover {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -12px oklch(0 0 0 / 0.5);
  transition: transform 0.2s ease;
}
.artist-card:hover .artist-cover { transform: scale(1.04); }

/* ===== PLAYER BAR ===== */
.player {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  min-height: 78px;
}
.player-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.player-cover { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; border: 1px solid var(--line); cursor: pointer; }
.player-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 12px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta-actions { display: flex; gap: 4px; margin-left: 10px; }
.mini-ic-btn {
  width: 28px; height: 28px; border: none; background: none;
  color: var(--fg-faint); cursor: pointer;
  display: grid; place-items: center; border-radius: 6px;
}
.mini-ic-btn:hover { color: var(--fg); background: oklch(1 0 0 / 0.04); }
.mini-ic-btn.liked { color: var(--accent-mag); }

.player-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.player-controls { display: flex; align-items: center; gap: 10px; }
.player-controls .ic-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: none; color: var(--fg-dim); cursor: pointer;
  display: grid; place-items: center;
}
.player-controls .ic-btn:hover { color: var(--fg); }
.player-controls .ic-btn.active { color: var(--accent-cyan); }
.play-pill {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--fg); color: var(--bg-0);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.1s ease;
}
.play-pill:hover { transform: scale(1.06); }

.progress-line { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; }
.progress-time { font: 500 11px/1 "Geist Mono", monospace; color: var(--fg-faint); width: 38px; text-align: center; flex: none; }
.progress-track {
  flex: 1; height: 4px; border-radius: 2px;
  background: oklch(1 0 0 / 0.08);
  position: relative; cursor: pointer;
  overflow: visible;
}
:root[data-theme="light"] .progress-track { background: oklch(0.2 0.02 260 / 0.1); }
.progress-fill {
  position: absolute; inset: 0; right: auto;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-mag));
  box-shadow: 0 0 12px oklch(0.7 0.18 280 / 0.4);
}
.progress-thumb {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--fg); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.15s ease;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.4);
}
.progress-track:hover .progress-thumb { opacity: 1; }

.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.volume { display: flex; align-items: center; gap: 8px; width: 120px; }
.volume-track { flex: 1; height: 4px; border-radius: 2px; background: oklch(1 0 0 / 0.08); position: relative; cursor: pointer; }
:root[data-theme="light"] .volume-track { background: oklch(0.2 0.02 260 / 0.1); }
.volume-fill { position: absolute; inset: 0; right: auto; border-radius: inherit; background: var(--fg-dim); }

/* NOW PLAYING — full screen takeover */
.now-playing {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg-0);
  display: flex; flex-direction: column;
  animation: np-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes np-in { from { transform: translateY(100%); } }
.now-playing.closing { animation: np-out 0.3s ease forwards; }
@keyframes np-out { to { transform: translateY(100%); opacity: 0.9; } }

.np-bg {
  position: absolute; inset: 0; z-index: 0;
  filter: blur(120px) saturate(1.5);
  opacity: 0.6;
  pointer-events: none;
}
.np-topbar {
  position: relative; z-index: 2;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.np-topbar-label {
  font: 500 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 10px;
}
.np-main {
  flex: 1; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  padding: 0 72px;
  align-items: center;
  min-height: 0;
}
.np-cover-wrap {
  display: flex; align-items: center; justify-content: flex-end;
}
.np-cover {
  width: min(440px, 100%); aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -20px oklch(0 0 0 / 0.7);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.now-playing.paused .np-cover { transform: scale(0.94); }
.np-side { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.np-tag {
  font: 500 10px/1 "Geist Mono", monospace; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-cyan); display: flex; align-items: center; gap: 10px;
}
.np-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan);
}
.np-title { font-size: 64px; font-weight: 500; letter-spacing: -0.035em; line-height: 0.95; text-wrap: balance; }
.np-artist { font-size: 20px; color: var(--fg-dim); }
.np-album-line { font-size: 13px; color: var(--fg-faint); font-family: "Geist Mono", monospace; letter-spacing: 0.05em; }
.np-lyrics {
  margin-top: 8px; padding: 16px 18px;
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.03);
  border: 1px solid var(--line);
  font-size: 14px; line-height: 1.6; color: var(--fg-dim);
  max-height: 160px; overflow-y: auto;
}
:root[data-theme="light"] .np-lyrics { background: oklch(0.2 0.02 260 / 0.03); }
.np-ctrls-row {
  margin-top: auto; padding: 28px 72px 36px;
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
}
.np-progress { display: flex; align-items: center; gap: 12px; width: min(720px, 100%); }
.np-controls { display: flex; align-items: center; gap: 20px; }
.np-play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--fg); color: var(--bg-0); border: none;
  display: grid; place-items: center; cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: 0 10px 30px -8px oklch(0 0 0 / 0.5);
}
.np-play:hover { transform: scale(1.06); }
.np-sec-ctrls { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 8px; }
.np-sec-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: oklch(1 0 0 / 0.04); border: 1px solid var(--line);
  color: var(--fg-dim); cursor: pointer;
  display: grid; place-items: center;
}
:root[data-theme="light"] .np-sec-btn { background: oklch(1 0 0 / 0.5); }
.np-sec-btn:hover { color: var(--fg); }
.np-sec-btn.active { color: var(--accent-mag); border-color: oklch(0.6 0.2 320 / 0.4); background: oklch(0.6 0.2 320 / 0.15); }

/* Search results */
.search-results { display: flex; flex-direction: column; gap: 32px; }
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--fg-dim);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

/* Share / Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(0 0 0 / 0.55);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } }
.modal {
  width: 440px; max-width: calc(100vw - 48px);
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes pop-in { from { transform: scale(0.95); opacity: 0; } }
.modal h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.modal p { font-size: 13px; color: var(--fg-dim); margin-bottom: 16px; }
.share-row {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid var(--line);
  font: 500 12px/1.4 "Geist Mono", monospace;
  color: var(--fg-dim);
  word-break: break-all;
}
:root[data-theme="light"] .share-row { background: oklch(0.2 0.02 260 / 0.03); }
.share-row .link-text { flex: 1; }
.share-targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.share-target {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 10px;
  background: oklch(1 0 0 / 0.03); border: 1px solid var(--line);
  cursor: pointer; color: var(--fg-dim);
  font-size: 11px;
}
:root[data-theme="light"] .share-target { background: oklch(0.2 0.02 260 / 0.03); }
.share-target:hover { color: var(--fg); border-color: var(--line-strong); }
.modal-close { position: absolute; top: 16px; right: 16px; }

/* Toast */
.toast {
  position: fixed; bottom: 108px; left: 50%; transform: translateX(-50%);
  z-index: 150;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  font-size: 13px; color: var(--fg);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex; align-items: center; gap: 10px;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.toast .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-lime); box-shadow: 0 0 8px var(--accent-lime); }

/* equalizer icon (playing indicator) */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq span {
  width: 2px; background: var(--accent-cyan); border-radius: 1px;
  animation: eq-bounce 1s ease-in-out infinite;
}
.eq span:nth-child(1) { animation-delay: -0.2s; }
.eq span:nth-child(2) { animation-delay: -0.6s; }
.eq span:nth-child(3) { animation-delay: -0.4s; }
.eq span:nth-child(4) { animation-delay: -0.1s; }
@keyframes eq-bounce {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* Scrollbar for the now-playing lyrics etc */
.np-lyrics::-webkit-scrollbar { width: 6px; }
.np-lyrics::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

/* Responsive-ish safety */
@media (max-width: 980px) {
  .app { grid-template-columns: 200px 1fr; }
  .hero { grid-template-columns: 160px 1fr; }
  .hero-cover { width: 160px; height: 160px; }
  .hero-title { font-size: 36px; }
  .np-main { grid-template-columns: 1fr; gap: 24px; padding: 0 24px; }
  .np-cover-wrap { justify-content: center; }
  .np-cover { width: min(280px, 100%); }
  .np-title { font-size: 36px; }
  .np-ctrls-row { padding: 20px 24px; }
}

/* Brand link reset — high specificity to beat UA defaults + any cached rules */
a.brand, a.brand:link, a.brand:visited, a.brand:hover, a.brand:active,
a.brand.brand-home, a.brand.brand-home:link, a.brand.brand-home:visited,
a.brand.brand-home:hover, a.brand.brand-home:active {
  color: var(--fg) !important;
  text-decoration: none !important;
}
a.brand.brand-home .brand-home-hint { opacity: 0 !important; }
a.brand.brand-home:hover .brand-home-hint { opacity: 1 !important; }
