/* ==========================================================================
   AURORA — Claymorphism + Liquid Glass design system
   ========================================================================== */
:root {
  --bg-0: #0b0716;
  --bg-1: #140d2b;
  --bg-2: #1c1340;
  --ink: #f4f1ff;
  --ink-2: rgba(244, 241, 255, 0.72);
  --ink-3: rgba(244, 241, 255, 0.48);
  --accent: #a78bfa;
  --accent-2: #f472b6;
  --accent-3: #22d3ee;
  --accent-4: #fbbf24;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --clay-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55), inset 0 -8px 16px rgba(0, 0, 0, 0.28), inset 0 6px 12px rgba(255, 255, 255, 0.10);
  --clay-shadow-sm: 0 10px 24px -10px rgba(0, 0, 0, 0.5), inset 0 -5px 10px rgba(0, 0, 0, 0.25), inset 0 4px 8px rgba(255, 255, 255, 0.10);
  --clay-shadow-pressed: inset 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 -3px 8px rgba(255, 255, 255, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sidebar-w: 260px;
  --player-h: 96px;
  --topbar-h: 72px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% -10%, #2b1a63 0%, transparent 60%),
              radial-gradient(900px 700px at 110% 20%, #4a1942 0%, transparent 55%),
              radial-gradient(800px 600px at 50% 120%, #0f3a4a 0%, transparent 55%),
              linear-gradient(160deg, var(--bg-1), var(--bg-0) 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(167, 139, 250, 0.45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); background-clip: padding-box; border: 3px solid transparent; }

/* ---------- Floating background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: float 22s var(--ease) infinite alternate; }
.orb-1 { width: 520px; height: 520px; left: -140px; top: -120px; background: radial-gradient(circle at 30% 30%, #8b5cf6, #4c1d95 70%); }
.orb-2 { width: 460px; height: 460px; right: -120px; top: 15%; background: radial-gradient(circle at 30% 30%, #ec4899, #831843 70%); animation-delay: -7s; animation-duration: 26s; }
.orb-3 { width: 420px; height: 420px; left: 35%; bottom: -160px; background: radial-gradient(circle at 30% 30%, #22d3ee, #155e75 70%); animation-delay: -13s; animation-duration: 30s; }
.orb-4 { width: 300px; height: 300px; left: 60%; top: 40%; background: radial-gradient(circle at 30% 30%, #fbbf24, #92400e 70%); opacity: 0.25; animation-delay: -4s; }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

/* ---------- Liquid glass primitive ---------- */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 var(--glass-highlight), inset 0 -1px 0 rgba(255,255,255,0.05);
}
.glass::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,0.14), transparent 60%);
  z-index: 0;
}
.glass > * { position: relative; z-index: 1; }

/* ---------- Clay primitive ---------- */
.clay {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border-radius: var(--radius-lg);
  box-shadow: var(--clay-shadow);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.clay:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -14px rgba(0,0,0,0.6), inset 0 -8px 16px rgba(0,0,0,0.28), inset 0 6px 12px rgba(255,255,255,0.14); }
.clay-pressed { box-shadow: var(--clay-shadow-pressed) !important; transform: translateY(1px) scale(0.99) !important; }

/* ---------- Layout ---------- */
.app-layout { position: relative; z-index: 1; display: flex; min-height: 100vh; padding: 16px; gap: 16px; padding-bottom: calc(var(--player-h) + 32px); }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  border-radius: var(--radius-xl);
  padding: 22px 16px;
  position: sticky; top: 16px; height: calc(100vh - var(--player-h) - 48px);
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
}
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.topbar { height: var(--topbar-h); border-radius: var(--radius-xl); display: flex; align-items: center; gap: 14px; padding: 0 18px; position: sticky; top: 16px; z-index: 20; }
.view { flex: 1; min-width: 0; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Sidebar ---------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 18px; }
.brand-logo { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3)); box-shadow: var(--clay-shadow-sm); display: grid; place-items: center; font-size: 18px; color: #fff; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; background: linear-gradient(90deg, #fff, #d8ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; }
.nav-section { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .14em; padding: 14px 12px 6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; color: var(--ink-2); font-weight: 500; transition: all .3s var(--ease); position: relative; }
.nav-link i { width: 20px; text-align: center; font-size: 15px; opacity: .85; }
.nav-link:hover { background: var(--glass); color: var(--ink); }
.nav-link.active { color: #fff; background: linear-gradient(135deg, rgba(167,139,250,0.35), rgba(244,114,182,0.2)); box-shadow: var(--clay-shadow-sm); }
.nav-link.active::after { content: ''; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 4px; height: 24px; border-radius: 99px; background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 0 16px var(--accent); }
.sidebar-foot { margin-top: auto; padding: 14px; border-radius: 20px; font-size: 12px; color: var(--ink-3); }
.sidebar-foot a { color: var(--ink-2); }

/* ---------- Topbar ---------- */
.search-box { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 99px; background: rgba(0,0,0,0.25); box-shadow: var(--clay-shadow-pressed); border: 1px solid rgba(255,255,255,0.06); max-width: 560px; transition: box-shadow .3s; }
.search-box:focus-within { box-shadow: var(--clay-shadow-pressed), 0 0 0 3px rgba(167,139,250,0.35); }
.search-box input { flex: 1; background: none; border: 0; outline: 0; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: var(--ink-3); }
.search-box i { color: var(--ink-3); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); box-shadow: var(--clay-shadow-sm); color: var(--ink-2); transition: all .3s var(--ease); border: 1px solid rgba(255,255,255,0.08); }
.icon-btn:hover { color: #fff; transform: translateY(-2px); }
.icon-btn:active { box-shadow: var(--clay-shadow-pressed); transform: translateY(0); }
.icon-btn.active { color: var(--accent-2); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 16px; font-weight: 600; font-size: 14px; transition: all .3s var(--ease); white-space: nowrap; border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--clay-shadow-sm); background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)); color: var(--ink); }
.btn:hover { transform: translateY(-2px); }
.btn:active { box-shadow: var(--clay-shadow-pressed); transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #a78bfa, #ec4899 60%, #f472b6); color: #fff; border-color: rgba(255,255,255,0.25); box-shadow: 0 14px 30px -10px rgba(236,72,153,0.6), inset 0 -6px 12px rgba(0,0,0,0.25), inset 0 4px 8px rgba(255,255,255,0.3); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--glass); box-shadow: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 12px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 15px; border-radius: 20px; }
.btn-danger { background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 0 4px; }
.section-title { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.section-title i { font-size: 18px; color: var(--accent); }
.section-sub { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.see-all { color: var(--ink-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--glass); transition: all .3s; }
.see-all:hover { color: #fff; background: var(--glass-strong); }
.muted { color: var(--ink-3); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { border-radius: var(--radius-xl); padding: 44px; min-height: 380px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; overflow: hidden; position: relative; margin-bottom: 40px; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 30%, rgba(236,72,153,0.25), transparent 60%), radial-gradient(50% 60% at 10% 90%, rgba(34,211,238,0.2), transparent 60%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-title { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.02; margin: 14px 0 18px; background: linear-gradient(90deg, #fff 0%, #e9d5ff 50%, #a5f3fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.hero-art { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-disc { width: min(300px, 100%); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, #1a1033, #2b1a63, #1a1033, #3b1f5e, #1a1033); box-shadow: var(--clay-shadow), 0 0 80px rgba(167,139,250,0.3); display: grid; place-items: center; animation: spin 18s linear infinite; position: relative; overflow: hidden; }
.hero-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; z-index: 0; }
.hero-disc::before { z-index: 1; }
.hero-disc::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 6px, rgba(255,255,255,0.04) 6px 7px); }
.hero-disc::after { content: ''; width: 26%; height: 26%; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--clay-shadow-sm), 0 0 0 10px rgba(11,7,22,0.9); position: relative; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-float { position: absolute; padding: 12px 16px; border-radius: 18px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: bob 5s var(--ease) infinite alternate; }
.hero-float i { color: var(--accent-3); }
.hero-float.f1 { top: 8%; right: 4%; }
.hero-float.f2 { bottom: 10%; left: 0; animation-delay: -2.5s; }
@keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-lg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { padding: 14px; border-radius: var(--radius-lg); cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.card-art { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 24px -10px rgba(0,0,0,0.6); background: var(--art-bg, linear-gradient(135deg, #6366f1, #ec4899)); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-art img { transform: scale(1.06); }
.art-fallback { position: relative; overflow: hidden; width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; color: rgba(255,255,255,0.85); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%), var(--art-bg); }
.art-fallback::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.05) 14px 16px); }
.card-play { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: 0 10px 24px -6px rgba(236,72,153,0.7), inset 0 2px 4px rgba(255,255,255,0.4); opacity: 0; transform: translateY(10px) scale(.9); transition: all .35s var(--ease); z-index: 2; }
.card:hover .card-play, .card.playing .card-play { opacity: 1; transform: none; }
.card-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.card.playing .card-title { color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1); }
.badge-top { position: absolute; top: 10px; left: 10px; z-index: 2; }
.badge-acc { background: linear-gradient(135deg, rgba(167,139,250,0.5), rgba(244,114,182,0.4)); }

/* collection card */
.collection-card .card-art { border-radius: 22px; }
.collection-card .art-fallback { font-size: 36px; }

/* ---------- Genre pills / chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 600; background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); box-shadow: var(--clay-shadow-sm); border: 1px solid rgba(255,255,255,0.08); color: var(--ink-2); transition: all .3s var(--ease); display: inline-flex; gap: 8px; align-items: center; }
.chip:hover { color: #fff; transform: translateY(-2px); }
.chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.chip small { opacity: .6; }
.genre-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.genre-tile { height: 130px; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; cursor: pointer; background: var(--tile, linear-gradient(135deg, #6366f1, #ec4899)); box-shadow: var(--clay-shadow); transition: transform .4s var(--ease); }
.genre-tile:hover { transform: translateY(-4px) rotate(-0.5deg); }
.genre-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,0.35), transparent 60%); }
.genre-tile i { position: absolute; right: -8px; top: -4px; font-size: 82px; opacity: .22; transform: rotate(16deg); }
.genre-tile b { font-family: var(--font-display); font-size: 20px; position: relative; }
.genre-tile span { font-size: 12px; opacity: .8; position: relative; }

/* ---------- Track list ---------- */
.tracklist { display: flex; flex-direction: column; gap: 8px; }
.track { display: grid; grid-template-columns: 36px 56px 1fr auto auto auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; background: var(--glass); border: 1px solid transparent; transition: all .3s var(--ease); cursor: pointer; }
.track:hover { background: var(--glass-strong); border-color: var(--glass-border); transform: translateX(4px); }
.track.playing { background: linear-gradient(135deg, rgba(167,139,250,0.22), rgba(244,114,182,0.12)); border-color: rgba(167,139,250,0.3); }
.track-num { color: var(--ink-3); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.track.playing .track-num { color: var(--accent); }
.track-art { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--art-bg); box-shadow: 0 6px 14px -6px rgba(0,0,0,0.6); position: relative; }
.track-art img { width: 100%; height: 100%; object-fit: cover; }
.track-art .art-fallback { font-size: 20px; }
.track-info { min-width: 0; }
.track-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track.playing .track-title { color: var(--accent); }
.track-sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.track-genre { font-size: 12px; color: var(--ink-3); padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,0.25); }
.track-time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.track-actions { display: flex; gap: 4px; }
.track-actions .icon-btn { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; background: transparent; border: 0; }
.track-actions .icon-btn:hover { background: var(--glass-strong); }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq span { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.3s; } .eq span:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.paused .eq span { animation-play-state: paused; }

/* ---------- Detail header ---------- */
.detail-head { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px; border-radius: var(--radius-xl); margin-bottom: 32px; position: relative; overflow: hidden; align-items: end; }
.detail-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--art-bg, #8b5cf6) 40%, transparent), transparent 70%); pointer-events: none; }
.detail-head > * { position: relative; z-index: 1; }
.detail-art { aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--art-bg); box-shadow: var(--clay-shadow), 0 30px 60px -20px rgba(0,0,0,0.7); }
.detail-art img { width: 100%; height: 100%; object-fit: cover; }
.detail-art .art-fallback { font-size: 80px; }
.detail-title { font-size: clamp(32px, 4.5vw, 56px); font-weight: 800; line-height: 1.05; margin: 10px 0 12px; }
.detail-sub { color: var(--ink-2); font-size: 15px; line-height: 1.7; max-width: 640px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lyrics { white-space: pre-wrap; line-height: 1.9; color: var(--ink-2); font-size: 15px; padding: 28px; border-radius: var(--radius-lg); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px; border-radius: 22px; margin-bottom: 22px; }
.select { height: 42px; padding: 0 40px 0 16px; border-radius: 14px; background: rgba(0,0,0,0.28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a78bfa' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; box-shadow: var(--clay-shadow-pressed); border: 1px solid rgba(255,255,255,0.06); color: var(--ink); -webkit-appearance: none; appearance: none; outline: 0; }
.select option { background: #1c1340; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--glass); border: 1px solid var(--glass-border); transition: all .25s; }
.page-btn:hover { background: var(--glass-strong); }
.page-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

/* ---------- Empty / loader ---------- */
.empty { text-align: center; padding: 70px 20px; border-radius: var(--radius-xl); color: var(--ink-3); }
.empty i { font-size: 48px; margin-bottom: 16px; display: block; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty h3 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.loader { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.loader span { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.loader span:nth-child(2) { animation-delay: .2s; background: var(--accent-2); } .loader span:nth-child(3) { animation-delay: .4s; background: var(--accent-3); }
@keyframes pulse { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1); opacity: 1; } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Player ---------- */
.player { position: fixed; left: 16px; right: 16px; bottom: 16px; height: var(--player-h); border-radius: 28px; z-index: 50; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(300px, 2fr) minmax(200px, 1fr); align-items: center; gap: 16px; padding: 0 20px; transition: transform .5s var(--ease); }
.player.hidden-player { transform: translateY(140%); }
.p-now { display: flex; align-items: center; gap: 14px; min-width: 0; }
.p-art { width: 60px; height: 60px; border-radius: 16px; overflow: hidden; background: var(--art-bg, linear-gradient(135deg,#6366f1,#ec4899)); box-shadow: var(--clay-shadow-sm); flex: 0 0 60px; position: relative; cursor: pointer; }
.p-art img { width: 100%; height: 100%; object-fit: cover; }
.p-art .art-fallback { font-size: 22px; }
.p-meta { min-width: 0; }
.p-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.p-center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.p-controls { display: flex; align-items: center; gap: 8px; }
.p-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); transition: all .25s var(--ease); }
.p-btn:hover { color: #fff; background: var(--glass); }
.p-btn.active { color: var(--accent); }
.p-play { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 18px; box-shadow: 0 12px 26px -8px rgba(236,72,153,0.7), inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -4px 8px rgba(0,0,0,0.2); }
.p-play:hover { transform: scale(1.05); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.p-progress { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.slider { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) var(--pct, 0%), rgba(255,255,255,0.12) var(--pct, 0%)); box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); outline: 0; cursor: pointer; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 0 4px rgba(167,139,250,0.25); transition: transform .2s; }
.slider:hover::-webkit-slider-thumb { transform: scale(1.2); }
.slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.p-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.p-vol { display: flex; align-items: center; gap: 8px; width: 140px; }
.p-vol .slider { height: 5px; }

/* ---------- Queue panel ---------- */
.queue-panel { position: fixed; right: 16px; bottom: calc(var(--player-h) + 28px); width: 380px; max-height: 60vh; border-radius: 24px; z-index: 45; display: flex; flex-direction: column; overflow: hidden; animation: fadeUp .35s var(--ease); }
.queue-panel[hidden] { display: none; }
.queue-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--glass-border); font-weight: 700; font-family: var(--font-display); }
.queue-list { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.queue-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; cursor: pointer; transition: background .2s; }
.queue-item:hover { background: var(--glass); }
.queue-item.current { background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(244,114,182,0.12)); }
.queue-item .track-art { width: 40px; height: 40px; border-radius: 10px; }
.queue-item .track-art .art-fallback { font-size: 14px; }

/* ---------- Toasts ---------- */
.toast-root { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { padding: 14px 18px; border-radius: 18px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 12px; backdrop-filter: blur(20px); background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06)); border: 1px solid var(--glass-border); box-shadow: var(--clay-shadow-sm); animation: toastIn .4s var(--ease); pointer-events: auto; min-width: 240px; }
.toast i { color: var(--accent-3); }
.toast.error i { color: #fb7185; } .toast.success i { color: #4ade80; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.95); } to { opacity: 1; transform: none; } }

/* ---------- Mobile nav ---------- */
.mobile-nav { display: none; }

/* ---------- Visualizer bars ---------- */
.viz { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.viz span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--accent), var(--accent-2)); min-height: 4px; transition: height .08s; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius-lg); }
.feature i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--clay-shadow-sm); margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-3); font-size: 14px; line-height: 1.7; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .detail-head { grid-template-columns: 200px 1fr; }
  .track { grid-template-columns: 30px 48px 1fr auto auto; }
  .track-genre { display: none; }
}
@media (max-width: 860px) {
  :root { --player-h: 84px; }
  .app-layout { padding: 12px; padding-bottom: calc(var(--player-h) + 90px); gap: 12px; }
  .sidebar { display: none; }
  .topbar { top: 12px; height: 62px; padding: 0 12px; }
  .menu-btn { display: grid; }
  .hero { padding: 28px; min-height: auto; }
  .detail-head { grid-template-columns: 1fr; padding: 22px; }
  .detail-art { max-width: 240px; }
  .player { left: 12px; right: 12px; bottom: 84px; grid-template-columns: 1fr auto; padding: 0 14px 10px; border-radius: 22px; }
  .p-center { position: absolute; left: 14px; right: 14px; bottom: 4px; gap: 0; }
  .p-progress .slider { height: 4px; }
  .p-progress .slider::-webkit-slider-thumb { width: 10px; height: 10px; box-shadow: none; }
  .topbar-actions .icon-btn:not(.menu-btn) { width: 38px; height: 38px; }
  .topbar-actions a[href="/liked"] { display: none; }
  .p-controls { display: none; }
  .p-progress span { display: none; }
  .p-right .p-vol, .p-right .p-btn-queue, .p-right .p-btn-like { display: none; }
  .p-right .p-play-mobile { display: grid; }
  .queue-panel { left: 12px; right: 12px; width: auto; bottom: calc(var(--player-h) + 100px); }
  .mobile-nav { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; height: 64px; border-radius: 22px; z-index: 60; justify-content: space-around; align-items: center; padding: 0 6px; }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--ink-3); padding: 8px 10px; border-radius: 14px; transition: all .25s; }
  .mobile-nav a i { font-size: 18px; }
  .mobile-nav a.active { color: #fff; background: linear-gradient(135deg, rgba(167,139,250,0.35), rgba(244,114,182,0.2)); }
  .track { grid-template-columns: 44px 1fr auto; padding: 8px 10px; }
  .track-num, .track-time { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .section-title { font-size: 20px; }
  .toast-root { left: 12px; right: 12px; top: 84px; }
}
.p-play-mobile { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
