/* ═══════════════════════════════════════════════════════════════════════════
   Müzik Panel — Apple-style Liquid Glass
   Neutral dark canvas, bright frosted white glass, a single system-blue accent.
   Crisp thin borders, specular top-edge highlight, calm depth. No color cast.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Canvas — neutral near-black (Apple system grays), no purple */
  --bg-0: #0a0a0c;
  --bg-1: #131317;

  /* Text — Apple off-white ramp */
  --text: #f5f5f7;
  --text-dim: #a1a1a9;
  --text-faint: #6c6c76;

  /* Accents — restrained: one system blue, pink for likes, green for ok */
  --accent: #0a84ff;        /* system blue (dark) */
  --accent-2: #64d2ff;      /* lighter cyan-blue, for the queue action */
  --accent-press: #0a6fe0;
  --like: #ff375f;          /* system pink */
  --ok: #30d158;            /* system green */

  /* Liquid glass tokens — brighter, whiter, thin crisp edges */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.11);
  --glass-brd: rgba(255, 255, 255, 0.14);
  --glass-brd-bright: rgba(255, 255, 255, 0.26);
  --hairline: rgba(255, 255, 255, 0.08);

  --blur: 30px;
  --radius: 24px;
  --radius-sm: 15px;

  --shadow: 0 8px 30px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --tint: #cfd2da; /* neutral cool sheen used on placeholders */
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-0);
  overflow: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }

/* ── Icons (inline SVG line set — replaces emoji everywhere) ─────────────── */
.ic { width: 1em; height: 1em; display: block; flex: none; }
.nav-item .ni, .brand-icon, .vol-icon, .logout { display: grid; place-items: center; }
.brand-icon { font-size: 21px; color: var(--text); }
.nav-item .ni { font-size: 18px; }
.pill .ic, .back .ic { width: 16px; height: 16px; }
.search-go .ic { width: 19px; height: 19px; }
.detail-cover .ic { width: 38px; height: 38px; color: var(--accent); }
.pl-cover .ic { width: 30px; height: 30px; color: var(--text-dim); }
.pl-card.new .plus .ic { width: 28px; height: 28px; }
.row-art.ph .ic { width: 20px; height: 20px; }

/* ── Background — clean neutral with a soft cool light, no neon ──────────── */
.bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(100% 70% at 50% -8%, #1c1c24 0%, #101015 45%, var(--bg-0) 78%),
    var(--bg-0);
}
.blob { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
/* Soft, desaturated ambient light — gives the glass something to refract at its
   edges without tinting the UI. Cool highlight + a faint system-blue + a warm
   neutral, all low-saturation so it reads as "premium depth", not "neon". */
.b1 { width: 62vw; height: 62vw; background: rgba(190, 200, 220, 0.16); top: -20vw; left: 6vw; animation: drift1 34s ease-in-out infinite; }
.b2 { width: 50vw; height: 50vw; background: rgba(10, 132, 255, 0.16); bottom: -18vw; right: -6vw; animation: drift2 40s ease-in-out infinite; }
.b3 { width: 42vw; height: 42vw; background: rgba(120, 140, 170, 0.10); top: 44%; left: 46%; animation: drift3 46s ease-in-out infinite; }
.bg-grain { position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,3vw) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4vw,-3vw) scale(1.06); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4vw,2vw) scale(0.94); } }

/* ── Liquid glass primitive ─────────────────────────────────────────────── */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(150%) brightness(1.06);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%) brightness(1.06);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
}
/* Specular sheen: a bright hairline on the top edge + a faint diagonal gloss —
   the signature of Apple's liquid glass. */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0) 32%),
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0) 42%);
  -webkit-mask: linear-gradient(180deg, #000, transparent 58%);
          mask: linear-gradient(180deg, #000, transparent 58%);
}

/* ── Login ──────────────────────────────────────────────────────────────── */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 92vw); border-radius: 30px; padding: 46px 38px; text-align: center; }
.login-logo { font-size: 56px; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.5)); }
.login-card h1 { font-size: 29px; margin: 16px 0 10px; letter-spacing: -0.03em; font-weight: 700; }
.login-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin-bottom: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  border: none; cursor: pointer; font: inherit; font-weight: 600; color: #fff;
  padding: 14px 22px; border-radius: 15px; text-decoration: none;
  transition: transform .15s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn-discord { background: #5865F2; box-shadow: 0 10px 26px rgba(88,101,242,.4); width: 100%; }

/* ── App layout ─────────────────────────────────────────────────────────── */
.app {
  position: fixed; inset: 0; padding: 18px;
  display: grid; grid-template-columns: 236px 1fr; grid-template-rows: 1fr auto;
  grid-template-areas: "side main" "player player";
  gap: 18px;
}

/* Sidebar */
.sidebar { grid-area: side; border-radius: var(--radius); padding: 22px 16px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.brand-icon { font-size: 22px; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; color: var(--text-dim);
  font: inherit; font-weight: 550; font-size: 15px; padding: 12px 14px; border-radius: 13px;
  cursor: pointer; transition: background .18s ease, color .18s ease;
}
.nav-item .ni { font-size: 17px; width: 20px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-item.active {
  color: #fff; background: rgba(255,255,255,0.10);
  border-color: var(--glass-brd); box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 4px; border-top: 1px solid var(--hairline); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.me-avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-brd); background: #222; object-fit: cover; }
.me-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout { color: var(--text-faint); text-decoration: none; font-size: 18px; padding: 6px; border-radius: 10px; transition: all .15s; }
.logout:hover { color: var(--like); background: rgba(255,255,255,0.06); }

/* Main */
.main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.topbar h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.guild-badge {
  font-size: 12.5px; color: var(--text-dim); padding: 7px 13px; border-radius: 999px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-brd); backdrop-filter: blur(12px);
}
.view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2px 4px 8px; }
.view::-webkit-scrollbar { width: 10px; }
.view::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.view::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); background-clip: content-box; }

/* ── Search bar ─────────────────────────────────────────────────────────── */
.searchbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  border-radius: 999px; padding: 6px 8px 6px 22px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--blur)) saturate(150%) brightness(1.06); box-shadow: var(--shadow);
}
.searchbar input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--text);
  font: inherit; font-size: 16.5px; padding: 12px 0; letter-spacing: -0.01em;
}
.searchbar input::placeholder { color: var(--text-faint); }
.search-go {
  width: 46px; height: 46px; flex: none; border: none; cursor: pointer; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 18px;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(10,132,255,.4), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s, filter .2s;
}
.search-go:hover { transform: scale(1.05); filter: brightness(1.08); }

/* Section label */
.section-label { font-size: 12.5px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 6px 6px 12px; }

/* ── Track rows ─────────────────────────────────────────────────────────── */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--glass-bg); border: 1px solid var(--hairline);
  backdrop-filter: blur(16px) saturate(140%) brightness(1.05); transition: background .16s, border-color .16s;
}
.row:hover { background: var(--glass-bg-strong); border-color: var(--glass-brd); }
.row-art { width: 46px; height: 46px; flex: none; border-radius: 10px; object-fit: cover; background: linear-gradient(160deg,#26262c,#17171b); box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.row-art.ph { display: grid; place-items: center; font-size: 19px; color: var(--text-faint); }
.row-meta { flex: 1; min-width: 0; }
.row-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row-dur { font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; margin-right: 4px; }
.row-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.iconbtn {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid transparent; background: rgba(255,255,255,0.04);
  color: var(--text-dim); cursor: pointer; font-size: 16px; transition: background .16s, color .16s, transform .12s;
}
.iconbtn:hover { background: rgba(255,255,255,0.1); color: var(--text); transform: translateY(-1px); }
.iconbtn.play:hover { color: var(--accent); }
.iconbtn.queue:hover { color: var(--accent-2); }
.iconbtn.add:hover { color: var(--ok); }
.iconbtn.like { font-size: 17px; }
.iconbtn.like:hover { color: var(--like); }
.iconbtn.like.on { color: var(--like); background: rgba(255,55,95,.15); border-color: rgba(255,55,95,.34); }
.iconbtn.del:hover { color: var(--like); }

/* ── Playlist / server grid ─────────────────────────────────────────────── */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pl-card {
  border-radius: var(--radius-sm); padding: 12px; cursor: pointer; position: relative; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-brd); backdrop-filter: blur(16px) brightness(1.05);
  transition: transform .16s, background .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.pl-card:hover { transform: translateY(-3px); background: var(--glass-bg-strong); border-color: var(--glass-brd-bright); }
.pl-cover { font-size: 30px; }
/* Mosaic/single/placeholder playlist cover */
.pl-coverbox { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: block;
  background: linear-gradient(160deg,#26262c,#17171b); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.pl-coverbox.single { object-fit: cover; }
.pl-coverbox.ph { display: grid; place-items: center; color: var(--text-dim); }
.pl-coverbox.ph .ic { width: 34px; height: 34px; }
.pl-coverbox.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pl-coverbox.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.pl-name { font-weight: 650; font-size: 15.5px; margin-top: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-count { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
/* Detail header cover: mosaic/single variants */
.detail-cover.single { display: block; object-fit: cover; padding: 0; }
.detail-cover.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  place-items: stretch; overflow: hidden; padding: 0; }
.detail-cover.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.pl-card.new { align-items: center; justify-content: center; text-align: center; color: var(--text-dim); border-style: dashed; }
.pl-card.new:hover { color: var(--text); }
.pl-card.new .plus { font-size: 30px; font-weight: 300; }

/* Back link */
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text-dim); font: inherit; font-size: 14px; cursor: pointer; margin-bottom: 16px; padding: 6px 4px; }
.back:hover { color: var(--text); }

/* Detail header */
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.detail-cover { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; font-size: 38px; background: var(--glass-bg-strong); border: 1px solid var(--glass-brd); box-shadow: var(--shadow); }
.detail-title { font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.detail-sub { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.detail-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; border: 1px solid var(--glass-brd); color: var(--text);
  background: var(--glass-bg-strong); transition: background .16s, transform .12s;
}
.pill:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.pill.primary { background: var(--accent); border: 1px solid transparent; color: #fff; box-shadow: 0 6px 18px rgba(10,132,255,.36), inset 0 1px 0 rgba(255,255,255,.3); }
.pill.primary:hover { background: var(--accent-press); }

/* ── Empty / loading ────────────────────────────────────────────────────── */
.empty { text-align: center; color: var(--text-faint); padding: 60px 20px; }
.empty .em-ico { font-size: 44px; opacity: .85; }
.empty p { margin-top: 12px; font-size: 15px; }
.spinner { width: 30px; height: 30px; margin: 60px auto; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.sm { width: 20px; height: 20px; margin: 20px auto; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Now playing bar ────────────────────────────────────────────────────── */
.player { grid-area: player; border-radius: var(--radius); padding: 12px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.np-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.np-art { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; background: linear-gradient(160deg,#26262c,#17171b); box-shadow: 0 3px 12px rgba(0,0,0,.4); }
.np-meta { min-width: 0; }
.np-title { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-author { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-controls { display: flex; align-items: center; gap: 8px; }
.ctrl { width: 40px; height: 40px; border-radius: 12px; border: none; background: rgba(255,255,255,.05); color: var(--text); font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .12s; }
.ctrl:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.ctrl.small { width: 36px; height: 36px; font-size: 14px; }
.ctrl.small.on { background: rgba(10,132,255,.22); color: #fff; border: 1px solid rgba(10,132,255,.4); }
.ctrl-main { width: 48px; height: 48px; font-size: 19px; background: var(--accent); color: #fff; box-shadow: 0 5px 16px rgba(10,132,255,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.ctrl-main:hover { background: var(--accent-press); }
.np-extra { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.vol-icon { color: var(--text-dim); font-size: 15px; }
.vol { -webkit-appearance: none; appearance: none; width: 120px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.16); outline: none; }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.vol::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: #fff; cursor: pointer; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 118px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--glass-bg-strong); backdrop-filter: blur(24px) saturate(150%) brightness(1.1);
  border: 1px solid var(--glass-brd); color: var(--text); padding: 12px 22px; border-radius: 14px;
  font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 100; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(255,55,95,.5); }
.toast.ok { border-color: rgba(48,209,88,.5); }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 90; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(440px, 94vw); max-height: 80vh; border-radius: 26px; padding: 26px; display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2,.9,.3,1.25); }
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(10px); } }
.modal h3 { font-size: 20px; margin-bottom: 4px; letter-spacing: -0.02em; }
.modal .sub { color: var(--text-dim); font-size: 13.5px; margin-bottom: 18px; }
.modal-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 0 -4px; padding: 0 4px; }
.modal-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid transparent; transition: background .15s, border-color .15s; text-align: left; font: inherit; color: var(--text);
}
.modal-item:hover { background: rgba(255,255,255,.1); border-color: var(--glass-brd); }
.modal-item .mi-ico { font-size: 18px; width: 24px; text-align: center; }
.modal-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #333; }
.modal-item .mi-sub { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.field { display: flex; gap: 8px; margin-top: 16px; }
.field input { flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--glass-brd); border-radius: 13px; color: var(--text); font: inherit; font-size: 14.5px; padding: 12px 14px; outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--accent); }
.modal-close { position: absolute; top: 18px; right: 20px; background: none; border: none; color: var(--text-faint); font-size: 20px; cursor: pointer; }
.modal-close:hover { color: var(--text); }

/* Queue modal — remove button aligned right */
.modal-item .q-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-item .qx { width: 30px; height: 30px; margin-left: auto; opacity: 0; }
.modal-item:hover .qx { opacity: 1; }
.modal-item .mi-ico .ic { width: 15px; height: 15px; }

/* ── Live lyrics overlay ────────────────────────────────────────────────── */
.lyrics {
  position: fixed; inset: 18px 18px 104px 18px; z-index: 80; border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; animation: fade .2s ease;
}
.lyrics-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--hairline); }
.lyrics-title { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyrics-head .iconbtn { width: 40px; height: 40px; }
.lyrics-body { flex: 1; overflow-y: auto; padding: 34vh 24px; text-align: center; scroll-behavior: smooth; }
.lyrics-body::-webkit-scrollbar { width: 10px; }
.lyrics-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.ly-line {
  font-size: 25px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.32;
  color: var(--text-faint); padding: 8px 0; cursor: default;
  transition: color .3s ease, opacity .3s ease, transform .3s ease, filter .3s ease;
  filter: blur(0.4px); opacity: .55;
}
.ly-line.past { opacity: .38; }
.ly-line.active { color: var(--text); opacity: 1; transform: scale(1.05); filter: blur(0); text-shadow: 0 2px 20px rgba(255,255,255,.12); }
.ly-plain { text-align: left; white-space: pre-wrap; line-height: 1.85; font-size: 16px; color: var(--text-dim); max-width: 680px; margin: 0 auto; }

/* ── Mobile bottom nav (hidden on desktop) ──────────────────────────────── */
.mobile-nav { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr; grid-template-rows: 1fr auto auto;
    grid-template-areas: "main" "player" "nav"; padding: 12px; gap: 10px;
  }
  .sidebar { display: none; }
  .player { grid-template-columns: 1fr auto; }
  .np-extra { display: none; }
  .topbar h2 { font-size: 21px; }

  .mobile-nav {
    grid-area: nav; display: flex; justify-content: space-around; align-items: stretch;
    padding: 6px 4px; border-radius: 18px;
  }
  .mobile-nav .nav-item {
    flex: 1; flex-direction: column; gap: 3px; align-items: center; justify-content: center;
    padding: 7px 2px; font-size: 10px; font-weight: 600; border: none; background: none;
    color: var(--text-faint); border-radius: 12px;
  }
  .mobile-nav .nav-item.active { color: #fff; background: none; box-shadow: none; }
  .mobile-nav .nav-item .mni { display: grid; place-items: center; }
  .mobile-nav .nav-item .mni .ic { width: 21px; height: 21px; }
  .mobile-nav .nav-item.active .mni { color: var(--accent); }
  .mobile-nav .mnl { line-height: 1; }

  /* Tighter home grids on small screens */
  .covers { grid-auto-columns: 132px; }
  .cover-wrap { width: 132px; height: 132px; }
  .cover-title, .cover-sub { width: 132px; }
  .pl-grid { grid-template-columns: repeat(2, 1fr); }
  .toast { bottom: 150px; }
}

/* ── Home hero: bot stats + invite (search view) ─────────────────────────── */
.home-hero { margin-bottom: 18px; }
.hero-card {
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-id { display: flex; align-items: center; gap: 14px; }
.hero-avatar {
  width: 56px; height: 56px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--glass-brd); flex: none;
}
.hero-avatar.ph {
  display: grid; place-items: center; color: var(--tint);
  background: var(--glass-bg); font-size: 26px;
}
.hero-name { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.hero-tag { color: var(--text-dim); font-size: 13.5px; margin-top: 2px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stat {
  background: var(--glass-bg); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 12px 10px; text-align: center;
}
.hs-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hs-lbl { color: var(--text-dim); font-size: 12px; margin-top: 3px; }
.hero-invite {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; color: #fff; font-weight: 600; font-size: 14.5px;
  background: var(--accent); border: 1px solid transparent;
  padding: 12px 16px; border-radius: 999px;
  transition: background .15s ease, transform .1s ease;
}
.hero-invite:hover { background: var(--accent-press); }
.hero-invite:active { transform: scale(.98); }
.hero-invite .ic { width: 18px; height: 18px; }

/* ── Home: mood chips, listening sections, artist strip ──────────────────── */
.mood-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.chip {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  color: var(--text); font-size: 13px; font-weight: 550;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.chip:hover { background: var(--glass-bg-strong); border-color: var(--glass-brd-bright); }
.chip:active { transform: scale(.97); }
.home-sections { margin-top: 8px; }
.home-sections .section-label { margin-top: 22px; }
.row-plays {
  font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 999px; background: var(--glass-bg);
  border: 1px solid var(--hairline); white-space: nowrap;
}
.artist-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 116px;
  gap: 12px; overflow-x: auto; padding: 4px 2px 6px; margin-top: 12px;
  scrollbar-width: thin;
}
.artist-card { text-align: center; }
.artist-av {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--glass-brd); margin: 0 auto 8px; display: block;
}
.artist-av.ph { display: grid; place-items: center; color: var(--tint);
  background: var(--glass-bg); font-size: 30px; }
.artist-name { font-size: 13.5px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.artist-plays { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

/* ── Home redesign: greeting, quick tiles, now-playing, summary, covers ──── */
.greet { border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.greet-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-brd); flex: none; }
.greet-av.ph { display: grid; place-items: center; color: var(--tint); background: var(--glass-bg); font-size: 22px; }
.greet-text { flex: 1; min-width: 0; }
.greet-hi { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.greet-sub { color: var(--text-dim); font-size: 13.5px; margin-top: 3px; }
.greet-invite { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: #fff; font-weight: 600; font-size: 13.5px; background: var(--accent); padding: 11px 15px; border-radius: 999px; white-space: nowrap; flex: none; transition: background .15s; }
.greet-invite:hover { background: var(--accent-press); }
.greet-invite .ic { width: 16px; height: 16px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 4px; }
.tile { display: flex; flex-direction: column; gap: 11px; padding: 15px; border-radius: var(--radius-sm); background: var(--glass-bg); border: 1px solid var(--glass-brd); cursor: pointer; transition: transform .16s, background .18s, border-color .18s; }
.tile:hover { transform: translateY(-3px); background: var(--glass-bg-strong); border-color: var(--glass-brd-bright); }
.tile-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.tile-ic .ic { width: 20px; height: 20px; }
.tile.likes .tile-ic { color: var(--like); background: rgba(255,55,95,.12); }
.tile.lists .tile-ic { color: var(--accent); background: rgba(10,132,255,.12); }
.tile.shuffle .tile-ic { color: var(--accent-2); background: rgba(100,210,255,.12); }
.tile.blend .tile-ic { color: var(--ok); background: rgba(48,209,88,.12); }
.tile-label { font-weight: 650; font-size: 14.5px; }
.tile-sub { font-size: 12px; color: var(--text-dim); margin-top: -7px; }

.np-card { border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 18px; margin: 14px 0 4px; position: relative; overflow: hidden; }
.npc-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(46px) brightness(.45) saturate(1.5); transform: scale(1.4); opacity: .7; }
.np-card > *:not(.npc-bg) { position: relative; z-index: 1; }
.npc-art { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow-lg); flex: none; background: linear-gradient(160deg,#26262c,#17171b); }
.npc-art.ph { display: grid; place-items: center; }
.npc-info { flex: 1; min-width: 0; }
.npc-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.npc-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.npc-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 5px; }
.npc-sub { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.npc-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); margin-top: 12px; overflow: hidden; }
.npc-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.npc-ctrl { display: flex; gap: 8px; flex: none; }
.npc-ctrl .ctrl { background: rgba(255,255,255,.14); }

.wk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.wk-item { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--glass-bg); border: 1px solid var(--hairline); }
.wk-num { font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-num.accent { color: var(--accent-2); }
.wk-lbl { font-size: 12px; color: var(--text-dim); margin-top: 3px; }

.covers { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; margin-top: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
/* Slim, subtle horizontal scrollbars for the carousels (replaces the thick,
   bright default bar that looked heavy under each row). */
.covers::-webkit-scrollbar, .artist-strip::-webkit-scrollbar { height: 7px; }
.covers::-webkit-scrollbar-track, .artist-strip::-webkit-scrollbar-track { background: transparent; }
.covers::-webkit-scrollbar-thumb, .artist-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14); border-radius: 999px; border: 2px solid transparent; background-clip: content-box;
}
.covers::-webkit-scrollbar-thumb:hover, .artist-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.28); background-clip: content-box;
}
.cover-card { cursor: pointer; }
.cover-wrap { position: relative; width: 150px; height: 150px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.42); }
.cover-art { width: 100%; height: 100%; object-fit: cover; display: block; background: linear-gradient(160deg,#26262c,#17171b); transition: transform .3s; }
.cover-art.ph { display: grid; place-items: center; color: var(--text-faint); }
.cover-art.ph .ic { width: 30px; height: 30px; }
.cover-card:hover .cover-art { transform: scale(1.06); }
.cover-play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(10,132,255,.55); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; border: none; cursor: pointer; }
.cover-play .ic { width: 16px; height: 16px; }
.cover-card:hover .cover-play { opacity: 1; transform: translateY(0); }
.cover-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); color: #fff; }
.cover-title { font-size: 13.5px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 150px; }
.cover-sub { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 150px; }

@media (max-width: 720px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .greet-invite span { display: none; }
}

/* ── Profile view ────────────────────────────────────────────────────────── */
.prof-head { border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.prof-av { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-brd); flex: none; }
.prof-av.ph { display: grid; place-items: center; color: var(--tint); background: var(--glass-bg); font-size: 30px; }
.prof-name { font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.prof-sub { color: var(--text-dim); font-size: 13.5px; margin-top: 3px; }
.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pstat { padding: 16px 14px; border-radius: var(--radius-sm); background: var(--glass-bg); border: 1px solid var(--hairline); text-align: center; }
.pstat-num { font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.pstat-lbl { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.prof-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.pbadge { padding: 8px 14px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-brd); font-size: 13px; font-weight: 550; }
@media (max-width: 720px) { .prof-stats { grid-template-columns: repeat(2, 1fr); } }
.prof-periods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.pcard { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--glass-bg); border: 1px solid var(--hairline); }
.pcard-lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 600; }
.pcard-main { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }
.pcard-main span { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.pcard-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
@media (max-width: 720px) { .prof-periods { grid-template-columns: 1fr; } }

/* ── Artist page ─────────────────────────────────────────────────────────── */
.artist-card { cursor: pointer; transition: transform .16s; }
.artist-card:hover { transform: translateY(-3px); }
.detail-cover.round { border-radius: 50%; }
.detail-cover.round.single { border-radius: 50%; display: block; object-fit: cover; padding: 0; }
.detail-cover.round.ph { color: var(--text-dim); }
.detail-cover.round.ph .ic { width: 34px; height: 34px; }
