/* Muux — midnight cyan identity */
:root {
  --bg: #02040a;
  --main-bg: #070b14;
  --card: #0c1220;
  --card-hover: #142238;
  --elevated: #101a2a;
  --accent: #11bfdc;
  --accent-bright: #22e3e3;
  --text: #f4fbff;
  --muted: #9bb0bf;
  --subdued: #607587;
  --border: #18283b;
  --player-h: 90px;
  --navm-h: 64px;
  --radius: 14px;
  --radius-lg: 18px;
  --play-bg: #22e3e3;
  --play-fg: #031014;
  --chip-on-bg: #22e3e3;
  --chip-on-fg: #031014;
  --bar-bg: rgba(180, 232, 241, 0.26);
  --bar-fill: #22e3e3;
  --hover: rgba(58, 202, 226, 0.09);
  --hover-strong: rgba(58, 202, 226, 0.16);
  --lyric-dim: rgba(255, 255, 255, 0.38);
  --lyric-past: rgba(255, 255, 255, 0.72);
  --lyric-now: #ffffff;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  --glass: rgba(2, 7, 15, 0.58);
  --tint: 192;
  --eq: var(--accent-bright);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #dcebf0;
  --main-bg: #f8fcfe;
  --card: #eaf4f7;
  --card-hover: #d9edf3;
  --elevated: #e0eef3;
  --accent: #007f99;
  --accent-bright: #009fbd;
  --text: #07131f;
  --muted: #496372;
  --subdued: #718896;
  --border: #c8dce4;
  --play-bg: #07131f;
  --play-fg: #ffffff;
  --chip-on-bg: #07131f;
  --chip-on-fg: #ffffff;
  --bar-bg: rgba(0, 0, 0, 0.18);
  --bar-fill: #008fa9;
  --hover: rgba(0, 127, 153, 0.07);
  --hover-strong: rgba(0, 127, 153, 0.12);
  --lyric-dim: rgba(0, 0, 0, 0.32);
  --lyric-past: rgba(0, 0, 0, 0.55);
  --lyric-now: #07131f;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.55);
  --eq: #008fa9;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.ic { width: 16px; height: 16px; fill: currentColor; display: block; }
img { display: block; }
a { color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 28%, transparent); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--text) 45%, transparent); }
::-webkit-scrollbar-track { background: transparent; }

#app {
  display: flex;
  height: 100vh;
  padding: 10px;
  gap: 10px;
  background: var(--bg);
}

/* Muux launch splash */
#splash {
  position: fixed; inset: 0; z-index: 300;
  background: #02040a;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#splash.gone {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.splash-inner {
  display: flex; flex-direction: column; align-items: center;
}
.splash-logo {
  width: 128px; height: 128px; object-fit: contain;
  animation: splashLogo 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  border-radius: 28px;
  filter: drop-shadow(0 0 38px rgba(34, 227, 227, 0.34));
}
.splash-name {
  margin-top: 18px;
  font-size: 30px; font-weight: 800; letter-spacing: -0.065em;
  color: #fff;
  animation: splashName 0.8s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes splashLogo {
  0% { opacity: 0; transform: scale(0.72); }
  70% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes splashName {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-logo, .splash-name { animation: none; }
}

/* ---------- sidebar ---------- */
#sidebar {
  width: 288px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.side-box {
  background: color-mix(in srgb, var(--main-bg) 96%, var(--accent) 4%);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}
.lib-box { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.q-box {
  flex: 0 1 auto; max-height: 38%; min-height: 132px;
  display: flex; flex-direction: column; overflow: hidden;
}
#side-queue { flex: 1; overflow-y: auto; min-height: 0; }
.sq-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  border-radius: 6px; width: 100%; text-align: left; cursor: pointer;
  transition: background 0.12s;
}
.sq-row:hover { background: var(--hover-strong); }
.sq-row img {
  width: 36px; height: 36px; border-radius: 4px; object-fit: cover;
  background: var(--elevated); flex-shrink: 0;
}
.sq-meta { min-width: 0; flex: 1; }
.sq-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-row.now .sq-t { color: var(--accent-bright); }
.sq-n { width: 16px; font-size: 11px; font-weight: 800; color: var(--accent-bright); flex-shrink: 0; text-align: center; }
.sq-tag { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; flex-shrink: 0; }
.sq-empty { color: var(--muted); font-size: 12.5px; padding: 8px 10px 12px; line-height: 1.5; }
.sq-sec { font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 8px 4px; }
.logo {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 22px; padding: 8px 10px 18px;
  letter-spacing: -0.055em;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 11px;
  flex-shrink: 0;
  background: transparent;
  display: block;
}
#nav-desktop { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 16px; padding: 10px 12px;
  border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 700;
  transition: color 0.18s, background 0.18s, transform 0.18s;
  text-align: left; width: 100%; letter-spacing: -0.01em; position: relative;
}
.nav-item:hover { color: var(--text); background: var(--hover); }
.nav-item.active { color: var(--text); }
#nav-desktop .nav-item.active {
  background: linear-gradient(90deg, rgba(34, 227, 227, 0.14), rgba(34, 227, 227, 0.03));
}
html[data-theme="light"] #nav-desktop .nav-item.active {
  color: #005f74;
  background: linear-gradient(90deg, rgba(0, 159, 189, 0.18), rgba(0, 159, 189, 0.04));
}
#nav-desktop .nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 999px; background: var(--accent-bright);
  box-shadow: 0 0 14px rgba(34, 227, 227, 0.45);
}
.nav-item .ic { width: 24px; height: 24px; }
.lib-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; }
.lib-title {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
  transition: color 0.18s;
}
.lib-title:hover { color: var(--text); }
.lib-title .ic { width: 24px; height: 24px; }
#lib-new, #side-q-clear { color: var(--muted); }
#side-q-clear.hidden { display: none !important; }
#lib-new:hover { color: var(--text); background: var(--hover); }
#lib-new .ic { width: 18px; height: 18px; }
#lib-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.lib-row {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px;
  cursor: pointer; text-align: left; width: 100%;
  transition: background 0.15s;
}
.lib-row:hover { background: var(--hover-strong); }
.lib-row img, .lib-row .lib-ph {
  width: 48px; height: 48px; border-radius: 4px; object-fit: cover;
  background: var(--elevated); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.lib-row.round img, .lib-row.round .lib-ph { border-radius: 50%; }
.lib-ph.liked-ph {
  background: linear-gradient(135deg, #07142c 0%, #087caa 52%, #22e3e3 100%);
  color: #fff;
}
.lib-ph.liked-ph .ic { width: 22px; height: 22px; }
.lib-row .lr-t { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row .lr-s { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row .lr-meta { min-width: 0; }
.lib-empty { color: var(--muted); font-size: 13px; padding: 14px 10px; line-height: 1.6; }
.lib-empty b { color: var(--text); }
.sidebar-footer { font-size: 11px; color: var(--subdued); padding: 12px 8px 4px; }

/* ---------- main ---------- */
#main {
  flex: 1; overflow-y: auto; min-width: 0; min-height: 0;
  background: var(--main-bg);
  border-radius: var(--radius);
  background-image:
    radial-gradient(ellipse at 18% 0%, hsla(var(--tint), 74%, 36%, 0.24), transparent 46%),
    linear-gradient(180deg, hsl(var(--tint), 28%, 17%) 0%, var(--main-bg) 390px);
  padding-bottom: 32px;
  transition: background-image 0.6s ease;
  border: 1px solid var(--border);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}
html[data-theme="light"] #main {
  background-image:
    radial-gradient(ellipse at 18% 0%, hsla(var(--tint), 72%, 70%, 0.28), transparent 48%),
    linear-gradient(180deg, hsl(var(--tint), 45%, 89%) 0%, var(--main-bg) 390px);
}
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--main-bg) 88%, transparent), transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tb-nav { display: flex; gap: 8px; flex-shrink: 0; }
.tb-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(2, 4, 10, 0.68);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform 0.15s, background 0.15s;
}
html[data-theme="light"] .tb-btn { background: rgba(0, 0, 0, 0.08); color: var(--text); }
.tb-btn:hover { transform: scale(1.06); }
.tb-btn:disabled { color: var(--subdued); cursor: default; transform: none; }
.tb-btn .ic { width: 18px; height: 18px; }
.tb-search {
  flex: 1; max-width: 420px; margin: 0 auto;
  position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 17px;
  background: color-mix(in srgb, var(--elevated) 90%, transparent);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--border), 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;
}
.tb-search > .ic { width: 20px; height: 20px; flex-shrink: 0; }
.tb-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-weight: 600;
}
.tb-search input::placeholder { color: var(--muted); opacity: 1; }
.tb-search input::-webkit-search-cancel-button { display: none; }
.tb-search:focus-within {
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--accent), 0 10px 30px rgba(0, 0, 0, 0.16);
}
.tb-search-clear {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); opacity: 0; pointer-events: none;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.tb-search.has-q .tb-search-clear { opacity: 1; pointer-events: auto; }
.tb-search-clear:hover { color: var(--text); background: var(--hover-strong); }
.tb-search-clear .ic { width: 15px; height: 15px; }
.tb-search:hover { background: var(--card-hover); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, var(--border)); }
.tb-search:focus-within:hover { box-shadow: inset 0 0 0 2px var(--accent), 0 10px 30px rgba(0, 0, 0, 0.16); }
.tb-search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  max-height: min(390px, 58vh); overflow-y: auto; padding: 7px;
  border: 1px solid var(--border); border-radius: 16px;
  background: color-mix(in srgb, var(--elevated) 96%, transparent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.tb-search-suggest.hidden { display: none; }
.tb-search-suggest button {
  width: 100%; min-width: 0; display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: 10px; color: var(--muted);
  text-align: left; font-size: 13.5px; font-weight: 650;
}
.tb-search-suggest button .ic { width: 16px; height: 16px; flex-shrink: 0; }
.tb-search-suggest button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-search-suggest button:hover,
.tb-search-suggest button.active { color: var(--text); background: var(--hover-strong); }
.tb-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
#view { max-width: 1480px; margin: 0 auto; padding: 14px 28px 56px; }
#view.view-enter { animation: fadeUp 0.38s ease; }
.page-title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800; margin-bottom: 22px;
  letter-spacing: -0.045em; line-height: 1.1;
}
.hello-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.hello-row .page-title { margin-bottom: 0; }
.greeting { font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 600; text-transform: capitalize; }

/* chips */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 7px 14px; background: var(--hover-strong);
  border-radius: 999px; font-size: 13px; color: var(--text); font-weight: 600;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.chip:hover { background: color-mix(in srgb, var(--text) 18%, transparent); transform: scale(1.03); }
.chip.active { background: var(--chip-on-bg); color: var(--chip-on-fg); font-weight: 700; }

/* Quick access tiles */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
@media (min-width: 1200px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.quick-card {
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border-radius: 12px; overflow: hidden; height: 66px;
  text-align: left; font-weight: 700; font-size: 14.5px;
  position: relative; min-width: 0;
  transition: background 0.18s, transform 0.18s;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}
html[data-theme="light"] .quick-card { background: rgba(0, 127, 153, 0.055); box-shadow: none; }
.quick-card:hover { background: var(--card-hover); transform: translateY(-2px); }
html[data-theme="light"] .quick-card:hover { background: rgba(0, 127, 153, 0.12); }
.quick-card img { width: 66px; height: 66px; object-fit: cover; background: var(--elevated); flex-shrink: 0; }
.quick-card .qc-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 44px; }
.quick-card .play-ov {
  position: absolute; right: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-bright); color: #000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(6px) scale(0.9);
  transition: opacity 0.2s, transform 0.2s;
}
.quick-card:hover .play-ov { opacity: 1; transform: none; }
.quick-card .play-ov .ic { width: 18px; height: 18px; }

/* shelf / carousel */
.shelf { margin-bottom: 40px; }
.shelf-title {
  font-size: 22px; font-weight: 800; margin-bottom: 14px;
  letter-spacing: -0.03em; display: flex; align-items: center; justify-content: space-between;
}
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 186px;
  gap: 6px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.car-btn {
  display: none;
  position: absolute; top: 70px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.72); color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}
.car-btn .ic { width: 18px; height: 18px; }
.car-prev { left: 6px; }
.car-next { right: 6px; }
.car-btn:hover { transform: scale(1.08); background: rgba(0, 0, 0, 0.88); }
.car-btn.off { opacity: 0.22; pointer-events: none; }
@media (min-width: 861px) {
  .carousel-wrap:hover .car-btn { display: flex; }
}
html[data-theme="light"] .car-btn {
  background: rgba(255, 255, 255, 0.94); color: #121212;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.card {
  width: 186px; scroll-snap-align: start; cursor: pointer;
  padding: 10px; border-radius: var(--radius-lg);
  transition: background 0.22s, transform 0.22s;
  position: relative;
}
.card:hover { background: color-mix(in srgb, var(--card-hover) 86%, transparent); transform: translateY(-3px); }
.card .art {
  position: relative; width: 166px; height: 166px; border-radius: 13px; overflow: hidden;
  background: var(--elevated); box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.card.artist .art { border-radius: 50%; }
.art-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #10263a 0%, #08111e 100%);
  color: #58798e; flex-shrink: 0;
}
.art-ph .ic { width: 38%; height: 38%; fill: currentColor; }
.card .art .art-ph { width: 100%; height: 100%; }
.art-ph-track { width: 40px; height: 40px; border-radius: 4px; }
.art-ph-track .ic { width: 18px; height: 18px; }
.art-ph-quick { width: 64px; height: 64px; flex-shrink: 0; }
.art-ph-quick .ic { width: 22px; height: 22px; }
.art-ph-sq { width: 36px; height: 36px; border-radius: 4px; }
.art-ph-sq .ic { width: 16px; height: 16px; }
.art-ph-sr { width: 148px; height: 148px; border-radius: 8px; flex-shrink: 0; }
.art-ph-lib, .lib-row .art-ph { width: 48px; height: 48px; border-radius: 4px; }
.lib-row.round .art-ph { border-radius: 50%; }
.art-ph-sm { width: 56px; height: 56px; border-radius: 8px; }
.art-ph-sm .ic { width: 22px; height: 22px; }
html[data-theme="light"] .art-ph { background: linear-gradient(145deg, #e4f1f5, #cddfe6); color: #678291; }
.card .art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease, opacity 0.22s ease, filter 0.22s ease;
}
.card:hover .art img { transform: scale(1.04); }
.card .art .play-ov {
  position: absolute; right: 8px; bottom: 8px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-bright); color: #000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.22s, transform 0.22s;
}
.card.artist .art .play-ov {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 2;
  transform: translate(-50%, calc(-50% + 8px)) scale(.92);
}
.card:hover .art .play-ov { opacity: 1; transform: translateY(0); }
.card.artist:hover .art img {
  opacity: .52;
  filter: saturate(.78) brightness(.76);
}
.card.artist:hover .art .play-ov {
  transform: translate(-50%, -50%) scale(1);
}
.play-ov .ic { width: 20px; height: 20px; }
.card .t {
  margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: -0.01em;
}
.card .s {
  margin-top: 5px; font-size: 13px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* track rows */
.track-list { display: flex; flex-direction: column; }
.track {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  transition: background 0.12s;
}
.track:hover { background: var(--hover-strong); }
.track.playing { background: var(--hover); }
.track.playing .tt { color: var(--accent-bright); }
.track img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--elevated); }
.track .tmeta { flex: 1; min-width: 0; }
.track .tt { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.track .ts { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.track .tdur { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.track .tbtn { color: var(--muted); padding: 6px; border-radius: 50%; opacity: 0; transition: opacity 0.15s, color 0.15s, transform 0.15s; line-height: 0; }
.track .tbtn .ic { width: 15px; height: 15px; }
.track:hover .tbtn, .track.playing .tbtn { opacity: 1; }
.track .tbtn:hover { color: var(--text); transform: scale(1.12); }
.track .tbtn[disabled] { opacity: 0.25 !important; pointer-events: none; transform: none; }
.track.q-user, .track.pl-track { cursor: grab; }
.track.q-user.dragging, .track.pl-track.dragging { opacity: 0.4; }
.track.q-user.drag-over, .track.pl-track.drag-over { box-shadow: inset 0 2px 0 var(--accent-bright); }
.eq {
  display: none; gap: 2px; align-items: flex-end; height: 14px; width: 14px; flex-shrink: 0;
}
.track.playing .eq { display: flex; }
.track.playing img { box-shadow: 0 0 0 2px var(--accent-bright); }
.eq i {
  width: 3px; height: 4px; background: var(--eq); border-radius: 1px;
  animation: eq 0.9s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.18s; }
.eq i:nth-child(3) { animation-delay: 0.36s; }
body.paused .eq i { animation: none; height: 5px; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* header pages */
.detail-head {
  display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap;
  margin: -24px -24px 0; padding: 72px 24px 24px;
  background:
    linear-gradient(180deg, transparent, var(--main-bg)),
    linear-gradient(180deg, hsl(var(--tint), 40%, 32%), hsl(var(--tint), 18%, 14%));
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 8px;
}
html[data-theme="light"] .detail-head {
  background:
    linear-gradient(180deg, transparent, var(--main-bg)),
    linear-gradient(180deg, hsl(var(--tint), 50%, 78%), hsl(var(--tint), 30%, 92%));
}
.detail-head img {
  width: 224px; height: 224px; border-radius: 8px; object-fit: cover;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55); background: var(--elevated);
}
.detail-head.artist img { border-radius: 50%; }
.detail-info { flex: 1; min-width: 260px; }
.detail-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.detail-info h1 { font-size: clamp(32px, 5vw, 72px); margin: 6px 0 14px; font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; }
.detail-info .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; max-width: 720px; font-weight: 500; }
.detail-head .detail-ph {
  width: 224px; height: 224px; border-radius: 8px;
  background: linear-gradient(135deg, #07142c 0%, #087caa 55%, #6ff7ef 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55); flex-shrink: 0;
}
.detail-head .detail-ph .ic { width: 72px; height: 72px; color: #fff; }
.track-head {
  display: flex; align-items: center;
  padding: 6px 14px 8px; margin: 8px 0 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--muted); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.th-n { width: 22px; text-align: center; margin-right: 54px; flex-shrink: 0; }
.th-t { flex: 1; }
.th-d { width: 48px; text-align: right; margin-right: 118px; flex-shrink: 0; }
.t-num {
  width: 22px; text-align: center; font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.track.playing .t-num { display: none; }
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 6px;
}
.chart-grid .card { width: auto; max-width: 220px; }
.chart-grid .card .art { width: 100%; height: auto; aspect-ratio: 1; }
#related-list {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: 10px 4px 32px;
  text-align: left;
}
#related-list.loading-note {
  width: 100%;
  padding: 40px 0;
  text-align: center;
}
#related-list .shelf { margin-bottom: 26px; }
#related-list .shelf-title {
  font-size: 18px;
  margin: 0 0 8px;
  padding: 8px 10px;
  letter-spacing: -0.025em;
}
#related-list .track-list { gap: 3px; }
#related-list .track {
  min-height: 66px;
  gap: 14px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
}
#related-list .track:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(103, 245, 240, 0.1);
}
#related-list .track img,
#related-list .track .art-ph-track {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
}
#related-list .track .tt {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}
#related-list .track .ts {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.56);
}
#related-list .track .tbtn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#related-list .track .btn-addpl,
#related-list .track .btn-dl { display: none; }
#related-list .carousel { grid-auto-columns: 140px; }
#related-list .card { width: 140px; padding: 8px; }
#related-list .card .art { width: 124px; height: 124px; }
#related-list .card .t { font-size: 13px; margin-top: 8px; }
#related-list .card .s { font-size: 12px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: transparent; border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  border-radius: 999px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
  transition: transform 0.12s, border-color 0.15s, background 0.15s;
}
.pill-btn .ic { width: 15px; height: 15px; }
.pill-btn:hover { border-color: var(--text); transform: scale(1.04); }
.pill-btn.primary {
  background: var(--accent-bright); border-color: transparent; color: #000;
  padding: 14px 32px; font-size: 15px;
}
.pill-btn.primary:hover { background: #63f4ee; transform: scale(1.05); }
.pill-btn:disabled, .pill-btn.primary:disabled { opacity: 0.5; pointer-events: none; transform: none; }

/* search */
.search-bar {
  display: flex; align-items: center; gap: 12px; background: var(--elevated);
  border-radius: 999px; padding: 12px 18px; margin-bottom: 12px;
  border: 2px solid transparent; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.search-bar:focus-within { border-color: var(--text); background: var(--card-hover); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.search-bar input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 15px; font-weight: 500; }
.search-bar input::placeholder { color: var(--muted); }
.search-ic { flex-shrink: 0; }
.search-clear {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); opacity: 0; pointer-events: none;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.search-bar.has-q .search-clear { opacity: 1; pointer-events: auto; }
.search-clear:hover { color: var(--text); background: var(--hover-strong); }
.search-clear .ic { width: 16px; height: 16px; }
.search-chips {
  display: flex; gap: 8px; max-width: 100%; overflow-x: auto;
  margin: 4px 0 24px; padding: 0 0 5px;
  scrollbar-width: none; overscroll-behavior-inline: contain;
}
.search-chips::-webkit-scrollbar { display: none; }
.search-chips .chip { flex: 0 0 auto; }
.suggest { display: flex; flex-direction: column; margin-bottom: 14px; }
.suggest button { text-align: left; padding: 10px 18px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.suggest button:hover { background: var(--hover-strong); color: var(--text); }
@media (min-width: 861px) {
  #view > .search-bar { display: none; }
}

.sr-top {
  width: min(100%, 760px); min-height: 196px;
  display: grid; grid-template-columns: 196px minmax(0, 1fr);
  align-items: stretch; gap: 0; overflow: hidden;
  margin: 0 0 32px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-hover) 88%, var(--accent) 12%), var(--card));
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--accent) 18%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  text-align: left; color: var(--text);
  transition: transform 0.18s, border-color 0.18s;
}
.sr-top:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 54%, var(--border)); }
.sr-top > img,
.sr-top > .art-ph-sr {
  width: 196px; height: 196px; object-fit: cover;
  border-radius: 0; box-shadow: none;
}
.sr-top.artist > img,
.sr-top.artist > .art-ph-sr {
  width: 164px; height: 164px; margin: 16px;
  border-radius: 50%;
}
.sr-meta {
  min-width: 0; padding: 24px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.sr-kicker { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.sr-title {
  max-width: 100%; font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.045em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sr-sub {
  width: 100%; margin: 8px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sr-top .pill-btn.primary { padding: 11px 20px; font-size: 14px; }

.recent-head { margin-bottom: 10px; }
.recent-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.recent-chip {
  display: inline-flex; align-items: center; overflow: hidden;
  border-radius: 999px; background: var(--elevated); border: 1px solid var(--border);
}
.recent-go { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 6px 8px 12px; font-size: 13px; font-weight: 650; }
.recent-go span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-go .ic, .recent-x .ic { width: 14px; height: 14px; }
.recent-x { padding: 8px 10px 8px 6px; color: var(--muted); }
.recent-x:hover { color: var(--text); }

/* mood grid */
.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.mood-card {
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 1; padding: 16px; border-radius: var(--radius);
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: #fff;
  background: var(--mc, #535353); cursor: pointer; border: none; text-align: left;
  display: flex; align-items: flex-start;
  transition: transform 0.18s, filter 0.18s;
}
.mood-card:hover { transform: scale(1.04); filter: brightness(1.08); }
.mood-card::after {
  content: "♪"; position: absolute; right: -6px; bottom: -10px;
  font-size: 64px; opacity: 0.28; transform: rotate(22deg);
}

/* library */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 6px; }
.lib-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; }
.liked-cover {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #07142c 0%, #087caa 54%, #22e3e3 100%) !important;
}
.liked-heart { width: 58px; height: 58px; color: #fff; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28)); }
.empty-note { color: var(--muted); font-size: 14.5px; padding: 48px 0; text-align: center; font-weight: 500; }
.empty-block {
  width: min(100%, 520px); min-height: 280px; margin: 24px auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px 24px; text-align: center;
}
.empty-ic {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: var(--elevated); border: 1px solid var(--border);
}
.empty-ic .ic { width: 26px; height: 26px; }
.empty-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.empty-s { max-width: 420px; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.empty-cta { margin-top: 20px; }

/* ---------- player bar ---------- */
#miniplayer {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h);
  background: color-mix(in srgb, var(--bg) 92%, var(--accent) 8%);
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center;
  padding: 0 16px; z-index: 40; gap: 16px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
#miniplayer.hidden { display: none; }
body.has-player #main, body.has-player #sidebar { margin-bottom: var(--player-h); }

.pb-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
#mini-art {
  width: 56px; height: 56px; border-radius: 6px; object-fit: cover;
  background: var(--elevated); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
#mini-art:hover { transform: scale(1.04); }
.mini-meta { min-width: 0; cursor: pointer; }
#mini-title {
  font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 861px) {
  #mini-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
  }
}
#mini-title:hover { text-decoration: underline; }
#mini-artist { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
#mini-artist.linkish { cursor: pointer; }
#mini-artist.linkish:hover { color: var(--text); text-decoration: underline; }
#mini-like { font-size: 16px; }

.pb-center {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  max-width: 720px; width: 100%; justify-self: center;
}
.pb-buttons { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  padding: 5px; border-radius: 50%; color: var(--muted); line-height: 0;
  transition: color 0.15s, transform 0.12s, background 0.12s;
}
.icon-btn .ic { width: 18px; height: 18px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--text); transform: scale(1.08); }
.icon-btn.liked { color: var(--accent-bright); }
#mini-shuffle.on, #mini-repeat.on, #np-shuffle.on, #np-repeat.on, #np-sleep.on { color: var(--accent-bright); }
.play-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--play-bg); color: var(--play-fg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 0 0 1px rgba(103, 245, 240, 0.28), 0 0 22px rgba(34, 227, 227, 0.18);
}
.play-circle .ic { width: 17px; height: 17px; }
.play-circle:hover { transform: scale(1.08); }
.pb-seek {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.pb-bar { flex: 1; height: 4px; background: var(--bar-bg); border-radius: 2px; position: relative; cursor: pointer; }
#mini-progress-fill { height: 100%; width: 0%; background: var(--bar-fill); border-radius: 2px; }
.pb-bar:hover { height: 6px; }
.pb-bar:hover #mini-progress-fill { background: var(--accent-bright); }
.pb-knob {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--play-bg); transform: translate(-50%, -50%); left: 0%;
  opacity: 0; transition: opacity 0.15s; pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.pb-bar:hover .pb-knob { opacity: 1; }

.pb-right { display: flex; align-items: center; gap: 9px; justify-self: end; }
.pb-vol-ic { color: var(--muted); line-height: 0; }
.pb-vol-ic .ic { width: 16px; height: 16px; }
.vol-ic { width: 16px; height: 16px; color: var(--muted); }
#mini-volume, #np-volume { accent-color: var(--bar-fill); height: 4px; cursor: pointer; }
#mini-volume { width: 93px; }
#mini-volume:hover, #np-volume:hover { accent-color: var(--accent-bright); }

/* ---------- bottom nav mobile ---------- */
#nav-mobile { display: none; }

/* ---------- now playing ---------- */
#nowplaying {
  position: fixed; inset: 0; z-index: 60;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #030711;
  color: #fff;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
#nowplaying.hidden { transform: translateY(100%); pointer-events: none; opacity: 0; }
#np-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(96px) brightness(0.19) saturate(1.35); transform: scale(1.5);
  opacity: 0.88;
  transition: background-image 0.6s ease;
}
#np-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(20, 199, 221, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.62) 52%, rgba(0, 0, 0, 0.84) 100%);
}
html[data-theme="light"] #np-bg::after {
  background:
    radial-gradient(circle at 50% 32%, rgba(17, 191, 220, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(248, 252, 254, 0.78) 0%, rgba(238, 247, 250, 0.9) 52%, rgba(232, 243, 247, 0.97) 100%);
}
.np-handle {
  display: none; width: 42px; height: 5px; border-radius: 99px;
  background: hsla(0, 0%, 100%, 0.35); margin: 6px auto 0;
}
.np-inner { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; max-width: 1080px; margin: 0 auto; padding: 16px 28px 24px; }
.np-topbar { display: flex; align-items: center; justify-content: space-between; }
.np-caption { font-size: 13px; letter-spacing: 0.025em; color: rgba(255,255,255,.72); font-weight: 750; }
.np-topbar .icon-btn {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.np-topbar .icon-btn:hover { color: #fff; background: rgba(0, 0, 0, 0.55); }
.np-tabs {
  display: flex; gap: 3px; justify-content: center; align-self: center;
  width: max-content; max-width: 100%; margin: 10px 0 6px; padding: 4px;
  flex-wrap: nowrap; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; background: rgba(4, 10, 18, 0.48);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.np-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 11px; font-size: 12.5px;
  color: rgba(255,255,255,.68); background: transparent; font-weight: 700;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
html[data-theme="light"] .np-tab { background: transparent; color: rgba(255,255,255,.75); }
.np-tab .ic { width: 14px; height: 14px; }
.np-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.np-tab.active { background: var(--accent-bright); color: #031014; box-shadow: 0 5px 16px rgba(34, 227, 227, 0.18); }
html[data-theme="light"] .np-tab.active { background: var(--accent-bright); color: #031014; }
.np-body { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.np-pane { display: none; height: 100%; overflow-y: auto; padding: 12px 4px; }
.np-pane.active { display: flex; flex-direction: column; }
#np-player.active { align-items: center; justify-content: center; overflow-y: auto; }
.np-player-content {
  width: 100%; flex: 0 0 auto; margin-block: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(9px, 1.6vh, 16px);
}
.np-art-wrap {
  width: min(54vw, 38dvh, 340px); aspect-ratio: 1; flex: 0 0 auto;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
  transition: transform 0.45s ease;
}
body:not(.paused) .np-art-wrap { transform: scale(1.01); }
#np-art { width: 100%; height: 100%; border-radius: 22px; object-fit: cover; background: var(--elevated); border: 1px solid rgba(103, 245, 240, 0.2); }
.np-meta { text-align: center; width: 100%; }
#np-title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
#np-artist { font-size: 15px; color: rgba(255,255,255,.72); margin-top: 5px; font-weight: 500; }
#np-artist.linkish { cursor: pointer; }
#np-artist.linkish:hover { color: #fff; text-decoration: underline; }
.np-seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; font-size: 11.5px; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
#nowplaying .icon-btn { color: rgba(255,255,255,.82); }
#nowplaying .icon-btn:hover { color: #fff; }
#nowplaying .play-big { background: var(--accent-bright) !important; color: #031014 !important; box-shadow: 0 0 30px rgba(34, 227, 227, 0.22); }
#nowplaying .pill-btn { color: #fff; border-color: hsla(0,0%,100%,.34); background: hsla(0,0%,100%,.10); }
#nowplaying .pill-btn:hover { border-color: #fff; }
#nowplaying .track .tt, #nowplaying .q-head, #nowplaying .q-empty-title { color: #fff; }
#nowplaying .track .ts, #nowplaying .track .tdur, #nowplaying .q-note, #nowplaying .q-hint, #nowplaying .loading-note, #nowplaying .q-empty-s { color: rgba(255,255,255,.65); }
#nowplaying .track .tbtn { color: rgba(255,255,255,.7); }
#nowplaying .q-clear { color: var(--accent-bright); }
#nowplaying .empty-title { color: #fff; }
#nowplaying .empty-s { color: rgba(255,255,255,.65); }
#nowplaying .empty-ic { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.np-seek input { flex: 1; accent-color: var(--accent-bright); height: 4px; }
.np-controls { display: flex; align-items: center; gap: 22px; }
.play-big {
  width: 64px; height: 64px; background: var(--play-bg); color: var(--play-fg) !important;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s;
}
.play-big .ic { width: 26px; height: 26px; }
.play-big:hover { transform: scale(1.07); }
.np-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.np-actions .np-extra { display: none !important; }
#np-more.has-on { color: var(--accent-bright); border-color: rgba(34, 227, 227, 0.55); }
.np-volume { display: flex; align-items: center; gap: 6px; }
.np-volume input { width: 100px; }
#np-lyric-preview {
  width: 100%; max-width: 520px; min-height: 0; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  background: rgba(255,255,255,.045); cursor: pointer; overflow: hidden;
  text-align: left; font-weight: 600; text-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
#np-lyric-preview:empty { display: none; }
#np-lyric-preview:hover {
  transform: translateY(-1px); border-color: rgba(103,245,240,.28);
  background: rgba(255,255,255,.07);
}
.np-lyric-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.np-lyric-head span:first-child {
  color: var(--accent-bright); font-size: 10px; font-weight: 850;
  letter-spacing: .1em; text-transform: uppercase;
}
.np-lyric-head span:last-child { color: rgba(255,255,255,.48); font-size: 10.5px; font-weight: 700; }
.np-lyric-context { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.np-preview-line {
  display: block; padding-left: 9px; border-left: 2px solid transparent;
  overflow: hidden; color: rgba(255,255,255,.36); font-size: 12.5px;
  line-height: 1.4; text-overflow: ellipsis; white-space: nowrap;
}
.np-preview-line.past { color: rgba(255,255,255,.44); }
.np-preview-line.active {
  border-left-color: var(--accent-bright); color: #fff;
  font-size: 13.5px; font-weight: 800;
}
.np-preview-line.next { color: rgba(255,255,255,.56); }

/* lyrics */
#np-lyrics {
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(34, 227, 227, 0.035), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.36));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}
.lyrics-toolbar {
  width: min(100%, 850px); margin-inline: auto; padding: 15px 18px 10px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  flex-shrink: 0;
}
.lyrics-track-meta { min-width: 0; }
#lyrics-track-title {
  overflow: hidden; color: #fff; font-size: 17px; font-weight: 800;
  line-height: 1.25; text-overflow: ellipsis; white-space: nowrap;
}
#lyrics-track-artist {
  margin-top: 2px; overflow: hidden; color: rgba(255,255,255,.52);
  font-size: 11.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap;
}
.lyrics-jump-hint {
  flex-shrink: 0; padding: 6px 9px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.035);
  font-size: 10.5px; font-weight: 700;
}
#lyrics-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(32px, 8vh, 72px) clamp(18px, 6vw, 68px);
  scroll-padding-block: 24%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 245, 240, 0.34) transparent;
}
#lyrics-container::-webkit-scrollbar { width: 6px; }
#lyrics-container::-webkit-scrollbar-track { background: transparent; }
#lyrics-container::-webkit-scrollbar-thumb {
  background: rgba(103, 245, 240, 0.3);
  border-radius: 99px;
}
.lyric-line {
  display: block; text-align: left; background: transparent;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 9px 14px;
  border-left: 3px solid transparent;
  border-radius: 0 12px 12px 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(21px, 2.7vw, 31px);
  font-weight: 750;
  line-height: 1.34;
  letter-spacing: -0.025em;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
}
.lyric-line:hover { color: rgba(255,255,255,.86); background: rgba(255, 255, 255, 0.035); }
.lyric-line:not(.active):hover { transform: translateX(3px); }
.lyric-line:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.lyric-line.active {
  color: #ffffff;
  transform: translateX(7px);
  border-left-color: var(--accent-bright);
  background: linear-gradient(90deg, rgba(34, 227, 227, 0.12), rgba(34, 227, 227, 0.015) 66%, transparent);
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.lyric-line.past { color: rgba(255, 255, 255, 0.58); }
.lyric-line.instrumental {
  color: rgba(103, 245, 240, 0.42);
  font-size: 16px;
  letter-spacing: 0.35em;
}
.lyric-line.instrumental.active { color: var(--accent-bright); }
.lyric-plain {
  width: min(100%, 720px);
  margin-inline: auto;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.85;
  color: rgba(255,255,255,.9);
  white-space: pre-wrap;
  font-weight: 550;
}
.lyrics-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.62);
  text-align: center;
  font-weight: 600;
}
#lyrics-source {
  flex-shrink: 0;
  min-height: 28px;
  padding: 7px 14px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: rgba(255,255,255,.4);
  font-size: 10.5px;
  text-align: right;
}

#queue-list, #related-list { padding: 4px; }
#queue-list {
  width: min(100%, 900px);
  margin-inline: auto;
}
#queue-list .track { width: 100%; min-width: 0; }
#queue-list .track .tmeta { min-width: 0; text-align: left; }
.q-head {
  font-size: 14px; font-weight: 800; color: var(--muted);
  padding: 20px 8px 8px; letter-spacing: -0.015em;
}
.q-head-row { display: flex; align-items: center; justify-content: space-between; }
.q-clear { font-size: 12px; font-weight: 700; color: var(--accent-bright); text-transform: none; letter-spacing: 0; }
.q-clear:hover { color: var(--text); }
.q-note {
  font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.45;
  padding: 4px 8px 2px;
}
.q-hint {
  font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.5;
  padding: 4px 8px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.q-hint .ic { width: 16px; height: 16px; flex-shrink: 0; }
.q-empty { text-align: center; padding: 48px 16px; }
.q-empty-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.q-empty-s { font-size: 13.5px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.q-num {
  width: 18px; text-align: center; font-size: 12px; font-weight: 800;
  color: var(--accent-bright); flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.track.q-user { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.track.q-radio { opacity: 0.88; }
.track.q-radio .tt { font-weight: 500; }
#mini-queue.has-q, #mini-queue-m.has-q { color: var(--accent-bright); }
#np-playnext.hidden, #np-queueadd.hidden { display: none !important; }
.q-modal-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.song-sheet { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.ss-art {
  width: min(220px, 70vw); height: min(220px, 70vw); border-radius: 12px;
  object-fit: cover; background: var(--elevated);
  box-shadow: 0 16px 40px rgba(0,0,0,.45); margin-bottom: 6px;
}
.ss-title { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; max-width: 100%; }
.ss-artist { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.ss-play { width: 100%; justify-content: center; padding: 14px 28px; font-size: 16px; }
.ss-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
@media (max-width: 980px){
  #mini-queue { display: none; }

}
@media (min-width: 981px) {
  #mini-queue-m { display: none; }
}
.loading-note { color: var(--muted); text-align: center; padding: 40px 0; font-weight: 500; }

/* modal */
#modal { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.65); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
#modal.hidden { display: none; }
.modal-card {
  background: var(--card-hover); border-radius: 16px; padding: 24px;
  width: min(92vw, 420px); max-height: 80vh; overflow-y: auto;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  animation: popIn 0.22s ease;
}
.modal-card h3 { margin-bottom: 16px; font-weight: 800; letter-spacing: -0.02em; }
.modal-card input {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: var(--hover-strong); border: none; color: var(--text); font-size: 14px;
  margin-bottom: 10px; outline: none; font-weight: 500;
}
.modal-row { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; font-weight: 500; width: 100%; text-align: left; background: transparent; color: var(--text); border: 0; }
.modal-row:hover { background: var(--hover-strong); }
.modal-row .ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.modal-row > span + span { margin-left: auto; }
.pl-list-label {
  font-size: 11.5px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 4px 8px;
}
.pl-pick {
  gap: 12px; padding: 10px 10px;
  background: var(--elevated);
  margin-bottom: 6px;
}
.pl-pick:hover { background: var(--card); }
.pl-pick-art, .pl-pick-ph {
  width: 44px; height: 44px; border-radius: 6px;
  object-fit: cover; background: var(--card); flex-shrink: 0;
}
.pl-pick-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #07142c 0%, #22e3e3 100%);
  color: #fff;
}
.pl-pick-ph .ic { width: 20px; height: 20px; color: #fff; }
.pl-pick-meta { min-width: 0; flex: 1; text-align: left; }
.pl-pick-name {
  display: block; font-size: 15px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-pick-count { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
html[data-theme="light"] .pl-pick { background: #f4f4f4; }
html[data-theme="light"] .pl-pick:hover { background: #ececec; }
html[data-theme="light"] .pl-pick-name { color: #121212; }
.modal-row.disabled, .modal-row[disabled] { opacity: 0.35; pointer-events: none; }
.sm-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.sm-head img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--elevated); flex-shrink: 0; }
.sm-meta { min-width: 0; }
.sm-t { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-s { font-size: 13px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions.hidden { display: none; }

.pl-form { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.pl-form-cover {
  width: 120px; height: 120px; border-radius: 12px; margin: 4px auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #07142c 0%, #087caa 55%, #6ff7ef 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.pl-form-cover .ic { width: 42px; height: 42px; color: #fff; fill: currentColor; }
.pl-form-cover.im { background: linear-gradient(135deg, #050a18 0%, #087caa 56%, #22e3e3 100%); }
.pl-form-label {
  font-size: 12px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
}
.modal-card .pl-form-input {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: var(--elevated); border: none; color: var(--text);
  font-size: 16px; font-weight: 600; outline: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
  margin-bottom: 8px; transition: box-shadow 0.15s, background 0.15s;
}
.pl-form-input::placeholder { color: var(--subdued); font-weight: 500; }
.pl-form-input:focus {
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--accent-bright);
}
.pl-form-input.shake { animation: plShake 0.38s ease; }
@keyframes plShake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.pl-form-hint { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 18px; line-height: 1.4; }
.pl-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.pl-form-actions .pill-btn.primary { padding: 12px 22px; font-size: 14px; }
.pl-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pl-presets .chip { margin: 0; }
.pl-presets .chip.active { background: var(--accent-bright); color: #000; }
@media (max-width: 860px) {
  .pl-form-cover { width: 100px; height: 100px; }
  .pl-form-actions { flex-direction: column-reverse; }
  .pl-form-actions .pill-btn { width: 100%; justify-content: center; }
}

/* stats */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 20px; text-align: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent);
}
.stat-num { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; color: var(--accent-bright); }
.stat-lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.stat-bar-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.sb-rank {
  width: 22px; flex-shrink: 0; font-size: 13px; font-weight: 800;
  color: var(--muted); font-variant-numeric: tabular-nums; text-align: center;
}
.sb-name { width: 160px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-bar { flex: 1; height: 10px; background: var(--hover-strong); border-radius: 5px; overflow: hidden; }
.sb-bar div { height: 100%; background: var(--accent-bright); border-radius: 5px; }
.sb-n { width: 40px; text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

#np-sb.on { border-color: var(--accent-bright); color: var(--accent-bright); }

/* ---------- floating widget ---------- */
#float-widget {
  position: fixed;
  z-index: 70;
  width: min(400px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-hover) 88%, var(--accent) 6%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent);
  cursor: grab;
  user-select: none;
  touch-action: none;
  animation: popIn 0.22s ease;
}
#float-widget.hidden { display: none; }
#float-widget.dragging { cursor: grabbing; animation: none; }
#fw-art {
  width: 64px; height: 64px; border-radius: 8px; object-fit: cover;
  background: var(--elevated); flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.fw-meta { min-width: 0; flex: 1; }
#fw-title {
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.02em;
}
#fw-artist {
  font-size: 11.5px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#fw-lyric {
  margin-top: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--accent-bright);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; min-height: 0; line-height: 1.3;
}
#fw-lyric:empty { display: none; }
#fw-lyric:hover { color: var(--text); }
.fw-bar {
  margin-top: 8px; height: 4px; background: var(--bar-bg);
  border-radius: 99px; cursor: pointer; overflow: hidden;
}
#fw-fill { height: 100%; width: 0; background: var(--accent-bright); border-radius: 99px; }
.fw-controls { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.fw-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer;
}
.fw-btn:hover { background: var(--hover-strong); }
.fw-btn .ic { width: 16px; height: 16px; }
.fw-play {
  width: 36px; height: 36px;
  background: var(--play-bg); color: var(--play-fg);
}
.fw-play:hover { transform: scale(1.06); background: var(--play-bg); }
.fw-play .ic { width: 16px; height: 16px; }
body.float-mode #miniplayer { opacity: 0; pointer-events: none; }
body.float-mode.has-player #main,
body.float-mode.has-player #sidebar { margin-bottom: 0; }
#mini-float.on, #np-float.on { color: var(--accent-bright); }
#np-float.on { border-color: var(--accent-bright); }

#toast {
  position: fixed; bottom: calc(var(--player-h) + 18px); left: 50%; transform: translateX(-50%);
  background: var(--accent-bright); color: #000; padding: 12px 24px;
  border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 90;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
#toast.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(8px); }

/* Hidden player. Default 720² = YouTube Music audio (hd720). .hq-audio = YouTube max. */
#yt-holder {
  position: fixed;
  width: 720px;
  height: 720px;
  left: 0;
  top: 0;
  opacity: 0.001;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
#yt-holder iframe,
#yt-player {
  width: 720px !important;
  height: 720px !important;
}
#pip-canvas, #pip-video {
  position: fixed;
  width: 90px;
  height: 160px;
  left: 0;
  bottom: 0;
  opacity: 0.01;
  pointer-events: none;
  z-index: -1;
}
body.hq-audio #yt-holder {
  width: 1920px;
  height: 1080px;
}
body.hq-audio #yt-holder iframe,
body.hq-audio #yt-player {
  width: 1920px !important;
  height: 1080px !important;
}

.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius);
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* Laptop overlay: keep Now Playing full-screen until there is room for three columns. */
@media (min-width: 861px) and (max-width: 1439px) {
  .np-inner { max-width: 720px; padding-bottom: 16px; }
  .np-art-wrap { width: min(34vw, 38dvh, 340px); }
  #np-player.active { justify-content: center; overflow-y: auto; }
  .np-player-content { gap: clamp(9px, 1.4vh, 14px); }
  .np-volume { display: none; }
  .np-tabs { flex-wrap: nowrap; }
}

/* Wide desktop: Now Playing becomes a right-side listening panel. */
@media (min-width: 1440px) {
  #nowplaying:not(.hidden) {
    position: relative; inset: auto; width: 372px; flex-shrink: 0;
    height: auto; align-self: stretch; border-radius: var(--radius);
    transform: none; opacity: 1; pointer-events: auto; z-index: 5;
    overflow: hidden; order: 3;
    animation: fadeUp 0.28s ease;
  }
  #nowplaying.hidden { display: none; transform: none; }
  #nowplaying .np-inner {
    max-width: none;
    padding: 12px 16px 14px;
    height: 100%;
  }
  #nowplaying .np-handle { display: none; }
  #nowplaying .np-caption { font-size: 11px; letter-spacing: 0.03em; }
  #nowplaying .np-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: stretch;
    width: 100%;
    gap: 2px;
    margin: 8px 0 5px;
  }
  #nowplaying .np-tab { justify-content: center; padding: 6px 4px; font-size: 11px; }
  #nowplaying .np-tab .ic { display: none; }
  #nowplaying .np-body { min-height: 0; }
  #nowplaying .np-pane { padding: 6px 0 0; }
  #nowplaying #np-player.active {
    justify-content: flex-start;
    align-items: center;
    padding-top: 8px;
    overflow-y: auto;
  }
  #nowplaying .np-player-content { gap: 10px; margin-block: 0; }
  #nowplaying .np-art-wrap {
    width: min(100%, 34vh, 250px);
    max-width: 250px;
    align-self: center;
  }
  #nowplaying .np-meta { max-width: 310px; text-align: center; }
  #nowplaying #np-title {
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #nowplaying #np-artist { margin-top: 4px; text-align: center; padding: 0; }
  #nowplaying .np-seek { width: 100%; max-width: 310px; }
  #nowplaying .np-controls { gap: 12px; justify-content: center; }
  #nowplaying .play-big { width: 52px; height: 52px; }
  #nowplaying .np-actions {
    gap: 8px;
    flex-wrap: nowrap;
    width: auto;
    justify-content: center;
  }
  #nowplaying .np-actions .pill-btn {
    padding: 8px;
    border-color: transparent;
    background: hsla(0, 0%, 100%, 0.08);
  }
  #nowplaying .np-actions .pill-btn span { display: none; }
  #nowplaying .np-actions .pill-btn .ic { width: 16px; height: 16px; }
  #nowplaying #np-speed span,
  #nowplaying #np-quality span { display: inline; font-size: 11px; font-weight: 800; }
  #nowplaying .np-volume { display: none; }
  #nowplaying #np-lyric-preview {
    width: 100%;
    max-width: 310px;
    min-height: 0;
    padding: 10px 11px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    text-align: left;
  }
  #nowplaying .np-lyric-context { margin-top: 6px; }
  #nowplaying .np-preview-line { font-size: 11px; }
  #nowplaying .np-preview-line.active { font-size: 12px; }
  #nowplaying #np-lyric-preview:empty { display: none; }
  #nowplaying #np-lyrics { border-radius: 12px; }
  #nowplaying .lyrics-toolbar { padding: 9px 6px 5px; align-items: flex-start; }
  #nowplaying #lyrics-track-title { font-size: 14px; }
  #nowplaying #lyrics-track-artist { font-size: 10.5px; }
  #nowplaying .lyrics-jump-hint { display: none; }
  #nowplaying #lyrics-container { padding: 4vh 6px; scroll-padding-block: 22%; }
  #nowplaying .lyric-line {
    padding: 7px 8px;
    font-size: 18px;
    line-height: 1.32;
  }
  #nowplaying .lyric-line.instrumental { font-size: 13px; }
  #nowplaying #lyrics-source { padding-inline: 6px; font-size: 9.5px; }
  #nowplaying #queue-list {
    width: 100%;
    padding: 4px 0 20px;
  }
  #nowplaying #queue-list .q-note,
  #nowplaying #queue-list .q-hint { padding-inline: 4px; }
  #nowplaying #queue-list .q-head { padding: 16px 4px 7px; font-size: 13px; }
  #nowplaying #queue-list .track {
    min-height: 54px;
    padding: 5px 4px;
    gap: 9px;
  }
  #nowplaying #queue-list .track img,
  #nowplaying #queue-list .track .art-ph-track {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  #nowplaying #queue-list .track .tt { font-size: 13px; }
  #nowplaying #queue-list .track .ts { font-size: 11.5px; }
  #nowplaying #queue-list .track .tdur { display: none; }
  #nowplaying #queue-list .track .tbtn { display: none; }
  #nowplaying #queue-list .track .btn-more {
    display: inline-flex;
    opacity: 0.72;
  }
  #nowplaying #related-list {
    width: 100%;
    padding: 4px 0 20px;
  }
  #nowplaying #related-list .shelf-title {
    padding-inline: 4px;
    font-size: 15px;
  }
  #nowplaying #related-list .track {
    min-height: 54px;
    padding: 5px 4px;
    gap: 9px;
  }
  #nowplaying #related-list .track img,
  #nowplaying #related-list .track .art-ph-track {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  #nowplaying #related-list .track .tt { font-size: 13px; }
  #nowplaying #related-list .track .ts { font-size: 11.5px; }
  #nowplaying #related-list .track .tbtn { display: none; }
  #nowplaying #related-list .track .btn-more {
    display: inline-flex;
    opacity: 0.72;
  }
  body.np-open.has-player #nowplaying { margin-bottom: var(--player-h); }
}

/* ---------- responsive ---------- */
@media (min-width: 861px) and (max-width: 1180px) {
  #sidebar { width: 244px; }
  .side-box { padding: 10px; }
  .logo { padding-inline: 8px; }
  .logo-img { width: 36px; height: 36px; border-radius: 10px; }
  .logo { font-size: 20px; }
  #view { padding-inline: 22px; }
  .track .btn-addpl, .track .btn-dl { display: none; }
  .th-d { margin-right: 70px; }
  .detail-head img, .detail-head .detail-ph { width: 188px; height: 188px; }
  .detail-info h1 { font-size: clamp(34px, 5vw, 54px); }
}
@media (max-width: 980px){
  .pb-right { display: none; }
  #miniplayer { grid-template-columns: 1fr 1.4fr; }
  .tb-search { max-width: 280px; }
}
@media (max-width: 860px){
  #app { padding: 0; gap: 0; }
  #sidebar { display: none; }
  #topbar { display: none; }
  #main { border: 0; border-radius: 0; }
  :root { --player-h: 64px; }
  .np-handle { display: block; }
  #miniplayer {
    left: 8px; right: 8px; bottom: calc(var(--navm-h) + env(safe-area-inset-bottom) + 8px); height: 64px;
    background: color-mix(in srgb, var(--card-hover) 92%, var(--accent) 8%);
    border-radius: 10px; display: flex; align-items: center; padding: 0 10px; gap: 10px;
    border: none; backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  body.has-player #main { margin-bottom: 0; padding-bottom: calc(var(--navm-h) + env(safe-area-inset-bottom) + 92px); }
  body.float-mode.has-player #main { padding-bottom: calc(var(--navm-h) + env(safe-area-inset-bottom) + 16px); }
  .pb-left { flex: 1; }
  #mini-art { width: 44px; height: 44px; }
  .pb-center { flex-direction: row; max-width: none; width: auto; }
  .pb-seek { position: absolute; left: 8px; right: 8px; bottom: 0; }
  .pb-seek span { display: none; }
  .pb-bar { height: 3px; }
  .pb-buttons { gap: 8px; }
  #mini-shuffle, #mini-repeat { display: none; }
  .play-circle { width: 34px; height: 34px; }
  #view { padding: 18px 16px 30px; }
  .search-bar { padding: 10px 14px; }
  .search-chips { margin-inline: -16px; padding-inline: 16px; }
  .recent-row {
    flex-wrap: nowrap; max-width: none; overflow-x: auto;
    margin-inline: -16px; padding: 0 16px 6px;
    scrollbar-width: none; overscroll-behavior-inline: contain;
  }
  .recent-row::-webkit-scrollbar { display: none; }
  .recent-chip { flex: 0 0 auto; }
  .sr-top {
    width: 100%; min-height: 116px;
    grid-template-columns: 116px minmax(0, 1fr);
    border-radius: 16px; margin-bottom: 26px;
  }
  .sr-top > img, .sr-top > .art-ph-sr { width: 116px; height: 116px; }
  .sr-top.artist > img, .sr-top.artist > .art-ph-sr { width: 92px; height: 92px; margin: 12px; }
  .sr-meta { padding: 14px 16px; }
  .sr-kicker { font-size: 11px; margin-bottom: 4px; }
  .sr-title { font-size: clamp(19px, 6vw, 24px); }
  .sr-sub { margin: 5px 0 0; font-size: 12.5px; -webkit-line-clamp: 2; }
  .sr-top .pill-btn.primary { display: none; }
  .mood-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
  .mood-card { font-size: 15px; padding: 14px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  #nav-mobile {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0;
    height: calc(var(--navm-h) + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, var(--bg) 48%, color-mix(in srgb, var(--bg) 88%, transparent));
    z-index: 45; padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  #nav-mobile .nav-item {
    flex: 1; flex-direction: column; gap: 3px; font-size: 10px; padding: 8px 0;
    justify-content: center; align-items: center; border-radius: 0; font-weight: 600;
  }
  #nav-mobile .nav-item.active { color: var(--accent-bright); }
  #nav-mobile .nav-item.active::after {
    content: ""; position: absolute; top: 4px; width: 18px; height: 2px;
    border-radius: 99px; background: var(--accent-bright);
    box-shadow: 0 0 12px rgba(34, 227, 227, 0.48);
  }
  .carousel { grid-auto-columns: 156px; }
  .card { width: 156px; padding: 10px; }
  .card .art { width: 136px; height: 136px; }
  .detail-head {
    flex-direction: column; align-items: center; text-align: center;
    padding: 40px 16px 24px; margin: -18px -16px 8px;
  }
  .detail-head img, .detail-head .detail-ph { width: min(52vw, 180px); height: min(52vw, 180px); }
  .detail-info { width: 100%; min-width: 0; }
  .detail-info h1 { font-size: clamp(28px, 9vw, 42px); overflow-wrap: anywhere; }
  .detail-info .sub { margin-inline: auto; }
  .detail-actions { justify-content: center; }
  .lib-actions { gap: 8px; }
  .lib-actions .pill-btn { flex: 1 1 auto; justify-content: center; }
  #toast { bottom: calc(var(--navm-h) + env(safe-area-inset-bottom) + 92px); }
  #np-lyrics { border-radius: 14px; }
  .lyrics-toolbar { padding: 11px 10px 7px; }
  #lyrics-track-title { font-size: 15px; }
  .lyrics-jump-hint { font-size: 10px; }
  #lyrics-container {
    padding: clamp(26px, 7vh, 48px) 3px;
    scroll-padding-block: 24%;
  }
  .lyric-line {
    padding: 8px 10px;
    font-size: clamp(19px, 6vw, 24px);
    line-height: 1.32;
  }
  .lyric-line.instrumental { font-size: 14px; }
  .lyric-plain { padding-inline: 12px; font-size: 17px; }
  #lyrics-source { text-align: center; }

  /* Track rows: ⋮ only — titles get the width */
  .track { gap: 10px; padding: 8px 6px; }
  .track .tbtn { display: none; }
  .track .btn-more { display: inline-flex !important; opacity: 1; }
  .track .btn-qrm, .track .btn-qup, .track .btn-qdn { display: none !important; }
  .track.q-user, .track.pl-track { cursor: pointer; }
  .track .tdur { min-width: 34px; font-size: 12px; }
  .track .tt { font-size: 14px; }
  .track.playing .eq { display: none; }
  #queue-list, #related-list { padding: 0; }
  #related-list { padding-bottom: 24px; }
  #related-list .shelf-title { padding: 10px 6px 7px; font-size: 16px; }
  #related-list .track { min-height: 60px; padding: 6px 4px; gap: 11px; }
  #related-list .track img,
  #related-list .track .art-ph-track { width: 48px; height: 48px; border-radius: 9px; }
  #related-list .track .tt { font-size: 13.5px; }
  #related-list .track .ts { font-size: 11.5px; }
  .q-head { padding: 14px 6px 6px; font-size: 11px; letter-spacing: 0.03em; }
  .q-note { display: none; }
  .q-hint { padding: 4px 6px 10px; font-size: 12.5px; }

  /* Now Playing fills the screen on touch-sized viewports. */
  .np-inner { padding: calc(2px + env(safe-area-inset-top)) 18px calc(10px + env(safe-area-inset-bottom)); }
  .np-handle { margin: 4px auto 2px; }
  .np-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 6px 0 2px;
    gap: 6px;
  }
  .np-tabs::-webkit-scrollbar { display: none; }
  .np-tab { padding: 6px 12px; font-size: 12px; flex-shrink: 0; }
  .np-pane { padding: 4px 0; }
  #np-player.active {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 4px 0 6px;
  }
  .np-player-content { gap: clamp(7px, 1.35vh, 12px); }
  .np-art-wrap {
    width: min(76vw, 36dvh, 320px);
    max-width: 320px;
    flex: 0 0 auto;
  }
  #np-title {
    font-size: 22px;
    line-height: 1.22;
    padding: 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  #np-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
  }
  .np-controls { gap: 15px; }
  .play-big { width: 60px; height: 60px; }
  .np-volume, #np-float { display: none !important; }
  .np-actions {
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }
  .np-actions .pill-btn {
    padding: 10px;
    border-color: transparent;
    background: hsla(0, 0%, 100%, 0.08);
  }
  .np-actions .pill-btn span { display: none; }
  .np-actions .pill-btn .ic { width: 20px; height: 20px; }
  #np-speed span, #np-quality span { display: inline; font-size: 11px; font-weight: 800; }
  #np-lyric-preview { min-height: 0; }
}

/* Short screens need a complete player more than a large cover. */
@media (max-height: 740px) and (max-width: 1439px) {
  .np-inner {
    max-width: 680px;
    padding-top: calc(4px + env(safe-area-inset-top));
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }
  .np-handle { margin-block: 2px 0; height: 4px; }
  .np-topbar .icon-btn { width: 32px; height: 32px; }
  .np-caption { font-size: 10px; letter-spacing: 1.8px; }
  .np-tabs { margin: 3px 0 2px; gap: 5px; }
  .np-tab { padding: 5px 10px; font-size: 11.5px; }
  .np-pane { padding-block: 3px; }
  .np-player-content { gap: 7px; }
  .np-art-wrap { width: min(62vw, 36dvh, 270px); }
  #np-title { font-size: 19px; line-height: 1.15; }
  #np-artist { margin-top: 2px; font-size: 13px; }
  .np-seek { max-width: 500px; }
  .np-controls { gap: 12px; }
  .play-big { width: 52px; height: 52px; }
  .play-big .ic { width: 22px; height: 22px; }
  .np-actions { gap: 7px; }
  .np-actions .pill-btn { padding: 7px; }
  #np-lyric-preview { min-height: 0; padding-block: 9px; }
  .np-preview-line.past { display: none; }
  #np-lyric-preview:empty { display: none; }
  #lyrics-container { padding-block: 20px; scroll-padding-block: 20%; }
}

/* Center one real content block; auto margins collapse safely when it overflows. */
@media (max-width: 699px) {
  #np-player.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #np-player .np-meta {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #np-player #np-lyric-preview { min-height: 102px; }
}

/* Tablet and laptop: an asymmetric listening desk uses the whole canvas. */
@media (min-width: 700px) and (max-width: 1439px) {
  .np-inner {
    max-width: 1060px;
    padding: max(18px, env(safe-area-inset-top)) clamp(28px, 5vw, 64px) 22px;
  }
  .np-handle { display: none; }
  .np-tabs { margin-block: 10px 8px; }
  #np-player.active {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: clamp(24px, 5vh, 48px) 0 24px;
    overflow-y: auto;
  }
  #np-player .np-player-content {
    display: grid;
    grid-template-columns: minmax(250px, 0.92fr) minmax(300px, 1fr);
    grid-template-rows: repeat(5, auto);
    align-content: center;
    align-items: center;
    justify-content: center;
    column-gap: clamp(34px, 6vw, 74px);
    row-gap: clamp(10px, 1.7vh, 16px);
  }
  #np-player .np-art-wrap {
    grid-column: 1;
    grid-row: 1 / 6;
    justify-self: end;
    width: min(100%, 44dvh, 360px);
    max-width: 360px;
  }
  #np-player .np-meta,
  #np-player .np-seek,
  #np-player .np-controls,
  #np-player .np-actions,
  #np-player #np-lyric-preview {
    grid-column: 2;
    width: 100%;
    max-width: 430px;
  }
  #np-player .np-meta { text-align: left; align-self: end; }
  #np-player #np-title {
    padding: 0;
    font-size: clamp(27px, 3.8vw, 40px);
    line-height: 1.04;
    text-align: left;
    -webkit-line-clamp: 3;
  }
  #np-player #np-artist {
    margin-top: 9px;
    padding: 0;
    font-size: 15px;
    text-align: left;
  }
  #np-player .np-seek { max-width: 430px; }
  #np-player .np-controls {
    justify-content: flex-start;
    gap: 10px;
  }
  #np-player .np-controls .icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
  }
  #np-player .play-big { width: 62px; height: 62px; margin-inline: 4px; }
  #np-player .np-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  #np-player .np-actions .pill-btn {
    padding: 8px 11px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.065);
  }
  #np-player .np-actions .pill-btn span { display: inline; }
  #np-player #np-lyric-preview {
    min-height: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.58);
  }
  #np-player #np-lyric-preview:empty { display: none; }
  #np-player .np-volume { display: none; }
}

@media (min-width: 700px) and (max-width: 1439px) and (max-height: 740px) {
  #np-player .np-player-content { align-content: start; }
}

@media (max-width: 480px) {
  #view { padding-inline: 14px; }
  .page-title { font-size: 30px; margin-bottom: 18px; }
  .shelf-title { font-size: 20px; }
  .quick-grid { grid-template-columns: 1fr; gap: 7px; }
  .quick-card { height: 60px; }
  .quick-card img, .art-ph-quick { width: 60px; height: 60px; }
  .quick-card .play-ov { opacity: 1; width: 34px; height: 34px; transform: none; }
  .carousel { grid-auto-columns: min(44vw, 154px); }
  .card { width: min(44vw, 154px); padding: 8px; }
  .card .art { width: 100%; height: auto; aspect-ratio: 1; }
  .track { padding-inline: 4px; }
  .track .tdur { display: none; }
  .track-head .th-d { display: none; }
  .sr-top { grid-template-columns: 104px minmax(0, 1fr); min-height: 104px; }
  .sr-top > img, .sr-top > .art-ph-sr { width: 104px; height: 104px; }
  .sr-top.artist > img, .sr-top.artist > .art-ph-sr { width: 82px; height: 82px; margin: 11px; }
  .sr-meta { padding: 12px 13px; }
  .sr-title { font-size: 19px; }
  .sr-sub { font-size: 12px; }
  .recent-row { margin-inline: -14px; padding-inline: 14px; }
  .lyrics-jump-hint { display: none; }
  .modal-card { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 16px 10px; }
  .stat-num { font-size: 27px; }
}

@media (max-width: 360px) {
  .np-tab { padding-inline: 10px; }
  .np-tab .ic { display: none; }
}


/* Light theme: Now Playing follows the application color mode. */
html[data-theme="light"] #nowplaying {
  background: #e8f3f7;
  color: #07131f;
}
html[data-theme="light"] #np-bg {
  filter: blur(96px) brightness(1.08) saturate(0.68);
  opacity: 0.2;
}
html[data-theme="light"] #nowplaying .play-big {
  background: #22e3e3 !important;
  color: #031014 !important;
}
html[data-theme="light"] #nowplaying .icon-btn { color: #35515f; }
html[data-theme="light"] #nowplaying .icon-btn:hover { color: #07131f; background: rgba(0, 127, 153, 0.1); }
html[data-theme="light"] #nowplaying .np-topbar .icon-btn {
  color: #173340;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(7, 19, 31, 0.08);
}
html[data-theme="light"] #nowplaying .pill-btn {
  color: #173340;
  border-color: rgba(7, 19, 31, 0.16);
  background: rgba(255, 255, 255, 0.56);
}
html[data-theme="light"] #nowplaying .pill-btn:hover { border-color: rgba(7, 19, 31, 0.42); }
html[data-theme="light"] #nowplaying #np-title { color: #07131f; }
html[data-theme="light"] #nowplaying #np-artist,
html[data-theme="light"] #nowplaying .np-seek,
html[data-theme="light"] #nowplaying .track .ts,
html[data-theme="light"] #nowplaying .track .tdur,
html[data-theme="light"] #nowplaying .q-note,
html[data-theme="light"] #nowplaying .q-hint,
html[data-theme="light"] #nowplaying .q-empty-s,
html[data-theme="light"] #nowplaying .loading-note { color: #5d7480; }
html[data-theme="light"] #nowplaying .np-caption { color: #496372; }
html[data-theme="light"] #nowplaying .track .tt,
html[data-theme="light"] #nowplaying .q-head,
html[data-theme="light"] #nowplaying .q-empty-title,
html[data-theme="light"] #nowplaying .card .t { color: #07131f; }
html[data-theme="light"] #nowplaying .track.playing .tt { color: #007f99; }
html[data-theme="light"] #nowplaying .track .tbtn { color: #496372; }
html[data-theme="light"] #nowplaying .track:hover { background: rgba(0, 127, 153, 0.08); }
html[data-theme="light"] #nowplaying .card .s { color: #5d7480; }
html[data-theme="light"] #nowplaying #np-art { border-color: rgba(0, 127, 153, 0.2); }
html[data-theme="light"] #nowplaying #np-lyric-preview {
  color: #496372;
  text-shadow: none;
  border-color: rgba(7, 19, 31, 0.08);
  background: rgba(255, 255, 255, 0.5);
}
html[data-theme="light"] #nowplaying #np-lyric-preview:hover {
  border-color: rgba(0, 127, 153, 0.3);
  background: rgba(255, 255, 255, 0.72);
}
html[data-theme="light"] .np-lyric-head span:first-child { color: #007f99; }
html[data-theme="light"] .np-lyric-head span:last-child { color: #718896; }
html[data-theme="light"] .np-preview-line { color: rgba(7, 19, 31, 0.38); }
html[data-theme="light"] .np-preview-line.past { color: rgba(7, 19, 31, 0.46); }
html[data-theme="light"] .np-preview-line.active {
  border-left-color: #009fbd; color: #07131f;
}
html[data-theme="light"] .np-preview-line.next { color: #496372; }
html[data-theme="light"] #np-lyrics {
  background:
    linear-gradient(90deg, rgba(0, 159, 189, 0.07), transparent 28%),
    rgba(255, 255, 255, 0.38);
  border-color: rgba(7, 19, 31, 0.08);
}
html[data-theme="light"] #lyrics-track-title { color: #07131f; }
html[data-theme="light"] #lyrics-track-artist { color: #5d7480; }
html[data-theme="light"] .lyrics-jump-hint {
  color: #5d7480; border-color: rgba(7, 19, 31, 0.09);
  background: rgba(255, 255, 255, 0.46);
}
html[data-theme="light"] .lyric-line { color: rgba(7, 19, 31, 0.4); }
html[data-theme="light"] .lyric-line:hover { color: #173340; background: rgba(0, 127, 153, 0.06); }
html[data-theme="light"] .lyric-line.past { color: rgba(7, 19, 31, 0.62); }
html[data-theme="light"] .lyric-line.active {
  color: #07131f;
  background: linear-gradient(90deg, rgba(0, 159, 189, 0.14), rgba(0, 159, 189, 0.02) 66%, transparent);
  text-shadow: none;
}
html[data-theme="light"] .lyrics-empty,
html[data-theme="light"] .lyric-plain { color: #35515f; }
html[data-theme="light"] #lyrics-source {
  color: #718896;
  border-top-color: rgba(7, 19, 31, 0.07);
}
html[data-theme="light"] #lyrics-container { scrollbar-color: rgba(0, 127, 153, 0.36) transparent; }
html[data-theme="light"] #lyrics-container::-webkit-scrollbar-thumb { background: rgba(0, 127, 153, 0.32); }
html[data-theme="light"] #nowplaying .np-tab {
  background: transparent;
  color: #496372;
}
html[data-theme="light"] #nowplaying .np-tab.active { background: #22e3e3; color: #031014; }
html[data-theme="light"] #nowplaying .np-tabs {
  border-color: rgba(7, 19, 31, 0.1);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(31, 76, 92, 0.1);
}
html[data-theme="light"] #nowplaying .np-handle { background: rgba(7, 19, 31, 0.25); }

html[data-theme="light"] .modal-card {
  background: #fff;
  color: #121212;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}
html[data-theme="light"] .modal-card h3,
html[data-theme="light"] .modal-row { color: #121212; }
html[data-theme="light"] .pl-form-label,
html[data-theme="light"] .pl-form-hint { color: #5a5a5a; }
html[data-theme="light"] .modal-card .pl-form-input {
  background: #f4f4f4;
  color: #121212;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

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