:root {
  --bg: #0f1420;
  --sidebar: #151b28;
  --panel: #1a2232;
  --panel-2: #202a3d;
  --panel-3: #263247;
  --text: #e8eef9;
  --muted: #919db3;
  --dim: #626e83;
  --line: rgba(255, 255, 255, 0.065);
  --line-strong: rgba(255, 255, 255, 0.13);
  --accent: #ff5b62;
  --accent-soft: #ff9a91;
  --blue: #6ea8ff;
  --green: #4fd1a1;
  --gold: #f3c969;
  --purple: #b18cff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", Inter,
    system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(38% 45% at 78% -10%, rgba(255, 91, 98, 0.08), transparent 60%),
    radial-gradient(35% 40% at 8% 105%, rgba(82, 130, 255, 0.08), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  display: block;
  width: 1em;
  height: 1em;
}

.svg-sprite {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
}

::selection {
  background: rgba(255, 91, 98, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 91, 98, 0.65);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: #303b50;
  background-clip: padding-box;
}

/* ---------------- shell / sidebar ---------------- */

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: calc(100vh - 78px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 40%),
    var(--sidebar);
}

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

.brand-mark {
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 16px rgba(255, 91, 98, 0.28));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-text small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
}

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px 18px;
}

.nav-label {
  margin: 22px 10px 8px;
  color: #5f6a7d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-label:first-child {
  margin-top: 4px;
}

.nav-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 4px;
}

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

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 39px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a8b3c6;
  font-size: 12px;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #6f7b91;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 91, 98, 0.12), rgba(255, 255, 255, 0.035));
  color: #fff;
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-item.active svg {
  color: var(--accent-soft);
}

.sidebar-playlists {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 2px 0;
}

.sidebar-empty {
  margin: 6px 9px;
  color: #596479;
  font-size: 9px;
  line-height: 1.6;
}

.sidebar-playlist {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 7px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #909cb0;
  font-size: 10.5px;
  text-align: left;
  white-space: nowrap;
}

.sidebar-playlist img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: cover;
}

.sidebar-playlist span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-playlist:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.sidebar-user {
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.sidebar-login {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #b8c2d3;
  font-size: 11px;
}

.sidebar-login svg {
  width: 14px;
  height: 14px;
  color: var(--accent-soft);
}

.sidebar-login:hover {
  border-color: rgba(255, 91, 98, 0.32);
  background: rgba(255, 91, 98, 0.07);
  color: #fff;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
  flex: 1;
}

.profile-copy strong {
  overflow: hidden;
  color: #d9e1ef;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  color: var(--gold);
  font-size: 7.5px;
}

/* ---------------- main / topbar ---------------- */

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

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  height: 64px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 32, 0.66);
  backdrop-filter: blur(22px);
}

.history-buttons {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.3;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(440px, 46vw);
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.search-box:focus-within {
  border-color: rgba(255, 91, 98, 0.38);
  background: rgba(255, 255, 255, 0.055);
}

.search-box > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #69758a;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
}

.search-box input::placeholder {
  color: #687388;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-box kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #5c677c;
  font-family: var(--mono);
  font-size: 7px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6f7a8e;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.api-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(79, 209, 161, 0.7);
}

.api-pill.is-off i {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(243, 201, 105, 0.55);
}

.top-login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #b7c1d2;
  font-size: 9.5px;
}

.top-login svg {
  width: 12px;
  height: 12px;
}

.top-login:hover {
  border-color: rgba(255, 91, 98, 0.35);
  color: #fff;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 160px;
  padding: 3px 9px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #c6d0df;
  font-size: 9.5px;
}

#topUserName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-user:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-chevron {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  color: #6d7a8e;
}

.top-actions {
  position: relative;
}

.account-menu {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 85;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(22, 29, 44, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  animation: rise 0.18s ease both;
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px 11px;
  border-bottom: 1px solid var(--line);
}

.account-menu-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.account-menu-copy strong {
  overflow: hidden;
  color: #e2eaf6;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-copy small {
  color: #6f7c90;
  font-size: 7.5px;
}

.account-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 6px;
}

.account-menu-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a5b1c3;
  font-size: 9px;
  text-align: left;
}

.account-menu-actions button svg {
  width: 13px;
  height: 13px;
  color: #77849a;
}

.account-menu-actions button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.account-menu-actions button:last-child:hover {
  background: rgba(255, 91, 98, 0.08);
  color: #ffaaa6;
}

.play-mode-button {
  color: #77849a;
}

.play-mode-button.is-active {
  color: var(--accent-soft);
}

.one-click-parse {
  color: #8d9ab0;
}

.one-click-parse:hover {
  color: var(--accent-soft);
}

#sleepTimerBtn.is-active {
  color: var(--gold);
}

.avatar {
  position: relative;
  display: grid;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #263147;
  color: #7e8ca4;
}

.avatar img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.has-image img {
  display: block;
}

.avatar.has-image > svg,
.avatar.has-image > span {
  display: none;
}

.avatar.tiny {
  width: 23px;
  height: 23px;
  font-size: 8px;
}

.avatar.small {
  width: 33px;
  height: 33px;
  font-size: 10px;
}

.avatar.player-avatar {
  width: 46px;
  height: 46px;
  border-radius: 7px;
}

.avatar.player-avatar > svg {
  width: 18px;
  height: 18px;
}

.page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 30px 120px;
}

.page-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------------- typography / common ---------------- */

.eyebrow {
  margin: 0;
  color: #68758a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.page-head h1 {
  margin: 8px 0 0;
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.page-head .sub {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.date-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #6d798e;
  font-family: var(--mono);
  font-size: 7.5px;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 34px 0 13px;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 4px 0 0;
  color: #68758a;
  font-size: 9px;
}

.section-more {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #7c879b;
  font-size: 8.5px;
}

.section-more:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff6a6f, #e6414e);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(255, 91, 98, 0.2);
}

.primary-button svg {
  width: 13px;
  height: 13px;
}

.primary-button:hover {
  filter: brightness(1.07);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #aab5c7;
  font-size: 9.5px;
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8490a4;
  font-size: 9px;
}

.text-button:hover {
  color: #fff;
}

.mini-icon {
  display: grid;
  width: 21px;
  height: 21px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6a768b;
}

.mini-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mini-icon svg {
  width: 12px;
  height: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  text-align: center;
}

.empty-state .empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #657187;
}

.empty-state .empty-icon svg {
  width: 25px;
  height: 25px;
}

.empty-state h2 {
  margin: 18px 0 7px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 320px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.09);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.skeleton {
  border-radius: 7px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 25%,
    rgba(255, 255, 255, 0.075) 37%,
    rgba(255, 255, 255, 0.035) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

/* ---------------- home ---------------- */

.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  color: var(--text);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #d6dfef;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

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

.feature-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.feature-copy p {
  margin: 5px 0 0;
  color: #7d8aa0;
  font-size: 9.5px;
  line-height: 1.5;
}

.feature-spotlight {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 236px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #202a3d;
  text-align: left;
}

.feature-spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.feature-spotlight::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(8, 12, 20, 0.9));
  content: "";
}

.feature-spotlight:hover img {
  opacity: 0.68;
  transform: scale(1.04);
}

.feature-spotlight-copy {
  position: relative;
  z-index: 1;
}

.feature-spotlight-copy span {
  color: #d6dde9;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.feature-spotlight-copy strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-spotlight-copy p {
  margin: 4px 0 0;
  color: #aab5c6;
  font-size: 9.5px;
}

/* ---------------- playlist cards ---------------- */

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.playlist-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #222c3f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.playlist-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-count {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(6, 9, 15, 0.62);
  color: #e9eff8;
  font-family: var(--mono);
  font-size: 7px;
  backdrop-filter: blur(8px);
}

.play-count svg {
  width: 9px;
  height: 9px;
}

.play-fab {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 91, 98, 0.92);
  color: #fff;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.play-fab svg {
  width: 12px;
  height: 12px;
  transform: translateX(1px);
}

.playlist-card:hover .play-fab {
  opacity: 1;
  transform: translateY(0);
}

.playlist-name {
  display: block;
  overflow: hidden;
  margin-top: 9px;
  color: #d8e1ef;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-creator {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #67758a;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- song table ---------------- */

.song-table {
  display: flex;
  flex-direction: column;
}

.song-table-head,
.song-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1.75fr) minmax(100px, 0.9fr) 66px 52px 58px;
  gap: 10px;
  align-items: center;
}

.song-table-head {
  padding: 0 9px 9px;
  border-bottom: 1px solid var(--line);
  color: #5d697e;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.song-row {
  min-height: 54px;
  padding: 6px 9px;
  border-radius: 6px;
  transition: background 0.16s ease;
  cursor: pointer;
}

.song-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.song-row.active {
  background: linear-gradient(90deg, rgba(255, 91, 98, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: inset 2px 0 0 var(--accent);
}

.song-index {
  color: #5f6c81;
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.song-row.active .song-index {
  color: var(--accent-soft);
}

.song-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.song-thumb {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: #222d41;
}

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

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

.song-copy strong {
  display: block;
  overflow: hidden;
  color: #dbe4f1;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #6d7b90;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-album {
  overflow: hidden;
  color: #758298;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-tag {
  display: inline-flex;
  justify-self: start;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: #8592a7;
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.quality-tag.hires {
  border-color: rgba(177, 140, 255, 0.22);
  background: rgba(177, 140, 255, 0.07);
  color: #c5a8ff;
}

.quality-tag.lossless {
  border-color: rgba(79, 209, 161, 0.22);
  background: rgba(79, 209, 161, 0.06);
  color: var(--green);
}

.quality-tag.exhigh {
  border-color: rgba(243, 201, 105, 0.22);
  background: rgba(243, 201, 105, 0.06);
  color: var(--gold);
}

.song-duration {
  color: #657287;
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
}

.row-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.row-parse {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5e6b80;
  opacity: 0.35;
  transition: color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.song-row:hover .row-parse {
  opacity: 1;
}

.row-parse:hover {
  background: rgba(255, 91, 98, 0.08);
  color: var(--accent-soft);
}

.row-parse svg {
  width: 12px;
  height: 12px;
}

.row-like {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5e6b80;
  opacity: 0;
  transition: color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

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

.row-like:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-soft);
}

.row-like.liked {
  color: var(--accent);
}

.row-like svg {
  width: 12px;
  height: 12px;
}

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

.equalizer i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
  animation: equalize 0.9s ease-in-out infinite alternate;
}

.equalizer i:nth-child(2) {
  animation-delay: -0.3s;
}

.equalizer i:nth-child(3) {
  animation-delay: -0.55s;
}

/* ---------------- detail header ---------------- */

.detail-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.detail-cover {
  width: 190px;
  height: 190px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #222d41;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

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

.detail-copy {
  min-width: 0;
  padding-bottom: 3px;
}

.detail-copy h1 {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #8592a7;
  font-size: 9.5px;
}

.detail-meta .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #59667b;
}

.detail-desc {
  max-width: 700px;
  margin: 12px 0 0;
  overflow: hidden;
  color: #78859a;
  font-size: 9px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

/* ---------------- charts / artists / search ---------------- */

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chart-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
}

.chart-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.chart-card img {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.chart-info strong {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-info span {
  display: block;
  margin-top: 4px;
  color: #718096;
  font-size: 8.5px;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
}

.artist-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.artist-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.artist-card strong {
  overflow: hidden;
  max-width: 100%;
  margin-top: 9px;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-card span {
  margin-top: 3px;
  color: #6d7a90;
  font-size: 8px;
}

.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.search-tabs button {
  height: 30px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #78859a;
  font-size: 9.5px;
}

.search-tabs button:hover {
  color: #dbe4f1;
}

.search-tabs button.active {
  border-color: rgba(255, 91, 98, 0.24);
  background: rgba(255, 91, 98, 0.1);
  color: #ffc0bb;
}

.search-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -8px 0 16px;
  color: #5f6c80;
  font-size: 8px;
}

.search-history > span {
  margin-right: 2px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.search-history button {
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #8c99ac;
  font-size: 8px;
}

.search-history button:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 300px;
  color: var(--muted);
  font-size: 10px;
}

/* ---------------- quality parser ---------------- */

.parse-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.parse-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #78859a;
  font-size: 9.5px;
}

.parse-tabs button svg {
  width: 13px;
  height: 13px;
}

.parse-tabs button:hover {
  color: #dbe4f1;
}

.parse-tabs button.active {
  border-color: rgba(255, 91, 98, 0.24);
  background: rgba(255, 91, 98, 0.1);
  color: #ffc0bb;
}

.parse-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.parse-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(255, 91, 98, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.025);
}

.parse-intro h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.parse-intro p {
  max-width: 680px;
  margin: 5px 0 0;
  color: #7d8aa0;
  font-size: 9px;
  line-height: 1.7;
}

.parse-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(79, 209, 161, 0.18);
  border-radius: 999px;
  background: rgba(79, 209, 161, 0.06);
  color: var(--green);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.parse-search {
  display: flex;
  gap: 8px;
}

.parse-search input {
  flex: 1;
  min-width: 0;
  height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 10.5px;
}

.parse-search input::placeholder {
  color: #59667b;
}

.parse-search input:focus {
  border-color: rgba(255, 91, 98, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 91, 98, 0.07);
}

.parse-search .primary-button {
  flex: 0 0 auto;
  height: 43px;
  padding: 0 18px;
  border-radius: 8px;
}

.parse-hint {
  margin: -3px 0 0;
  color: #5f6c80;
  font-size: 8px;
  line-height: 1.6;
}

.parse-hint code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--mono);
  font-size: 7.5px;
}

.parse-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 9.5px;
}

.parse-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 91, 98, 0.18);
  border-radius: 8px;
  background: rgba(255, 91, 98, 0.06);
  color: #ff9ca2;
  font-size: 9.5px;
  line-height: 1.6;
}

.parse-result {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.parse-song-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(255, 91, 98, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.018);
}

.parse-cover {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #222d41;
}

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

.parse-song-copy {
  min-width: 0;
  flex: 1;
}

.parse-song-copy h3 {
  overflow: hidden;
  margin: 0;
  color: #e4ecf7;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parse-song-copy p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #78859a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parse-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  color: #5f6c80;
  font-size: 8px;
}

.parse-meta span {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.parse-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.parse-quality-head,
.parse-quality-row {
  display: grid;
  grid-template-columns: minmax(115px, 1.1fr) 84px minmax(130px, 1fr) 78px 142px;
  gap: 10px;
  align-items: center;
}

.parse-quality-head {
  padding: 9px 17px;
  border-bottom: 1px solid var(--line);
  color: #5d697e;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.parse-quality-row {
  min-height: 53px;
  padding: 7px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.parse-quality-row:last-child {
  border-bottom: 0;
}

.parse-quality-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.parse-level {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.parse-level-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5b677a;
}

.parse-quality-row.is-available .parse-level-dot {
  background: var(--green);
  box-shadow: 0 0 9px rgba(79, 209, 161, 0.45);
}

.parse-quality-row.is-fallback .parse-level-dot {
  background: var(--blue);
  box-shadow: 0 0 9px rgba(110, 168, 255, 0.45);
}

.parse-quality-row.is-trial .parse-level-dot {
  background: var(--gold);
  box-shadow: 0 0 9px rgba(243, 201, 105, 0.45);
}

.parse-level strong {
  display: block;
  overflow: hidden;
  color: #ccd7e6;
  font-size: 9.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parse-level small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #5d6a7e;
  font-family: var(--mono);
  font-size: 6.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parse-status {
  display: inline-flex;
  justify-self: start;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #7e8b9e;
  font-size: 7px;
  white-space: nowrap;
}

.parse-status.available {
  border-color: rgba(79, 209, 161, 0.2);
  background: rgba(79, 209, 161, 0.055);
  color: var(--green);
}

.parse-status.fallback {
  border-color: rgba(110, 168, 255, 0.2);
  background: rgba(110, 168, 255, 0.055);
  color: var(--blue);
}

.parse-status.trial {
  border-color: rgba(243, 201, 105, 0.2);
  background: rgba(243, 201, 105, 0.055);
  color: var(--gold);
}

.parse-status.unavailable {
  color: #5e6a7e;
}

.parse-detail {
  min-width: 0;
  color: #8b98ab;
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.5;
}

.parse-detail small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #5b687c;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parse-size {
  color: #718095;
  font-family: var(--mono);
  font-size: 7.5px;
  text-align: right;
  white-space: nowrap;
}

.parse-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.parse-copy,
.parse-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: #9aa6b8;
  font-size: 7.5px;
  white-space: nowrap;
}

.parse-copy svg,
.parse-download svg {
  width: 10px;
  height: 10px;
}

.parse-copy:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.parse-download {
  border-color: rgba(255, 91, 98, 0.2);
  background: rgba(255, 91, 98, 0.08);
  color: #ffb0ab;
}

.parse-download:hover {
  border-color: rgba(255, 91, 98, 0.38);
  background: rgba(255, 91, 98, 0.14);
  color: #fff;
}

.parse-download.is-disabled {
  pointer-events: none;
  opacity: 0.32;
}

.parse-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 17px;
  border-top: 1px solid var(--line);
  color: #59667a;
  font-size: 7.5px;
  line-height: 1.7;
}

.parse-note svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #6f7c90;
}

.parse-track-list {
  display: flex;
  flex-direction: column;
}

.parse-track-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.parse-track-block:last-child {
  border-bottom: 0;
}

.parse-track-row {
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1.9fr) minmax(100px, 0.9fr) 72px 74px 80px;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 7px 16px;
}

.parse-track-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.parse-track-index {
  color: #5b687c;
  font-family: var(--mono);
  font-size: 7.5px;
  text-align: center;
}

.parse-track-cover {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 5px;
  background: #222d41;
}

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

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

.parse-track-copy strong {
  display: block;
  overflow: hidden;
  color: #d6e0ee;
  font-size: 9.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parse-track-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #637086;
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parse-track-album {
  overflow: hidden;
  color: #6d7b90;
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parse-track-quality {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.parse-track-duration {
  color: #66748a;
  font-family: var(--mono);
  font-size: 7.5px;
  text-align: right;
  white-space: nowrap;
}

.parse-track-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.parse-track-button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: #9eabbb;
  font-size: 7.5px;
  white-space: nowrap;
}

.parse-track-button:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.parse-track-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.parse-track-panel {
  padding: 0 16px 12px 93px;
  background: rgba(7, 11, 18, 0.24);
}

.parse-track-panel .parse-quality-head,
.parse-track-panel .parse-quality-row {
  grid-template-columns: minmax(110px, 1.1fr) 78px minmax(120px, 1fr) 68px 132px;
  padding-right: 0;
  padding-left: 0;
}

.parse-track-panel .parse-quality-row {
  min-height: 43px;
}

.parse-track-panel .parse-note {
  padding-right: 0;
  padding-left: 0;
}

.parse-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: #657287;
  font-size: 9px;
  text-align: center;
}

.parse-empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: #536074;
}

/* ---------------- player ---------------- */

.player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  height: 78px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(17, 23, 35, 0.92);
  backdrop-filter: blur(26px);
}

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

.player-avatar img {
  border-radius: 7px;
}

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

.player-copy strong {
  overflow: hidden;
  color: #dce5f2;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-copy span {
  overflow: hidden;
  color: #6c798e;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.like-button svg {
  width: 14px;
  height: 14px;
}

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

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

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.play-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf3fc;
  color: #141b28;
  transition: transform 0.16s ease, background 0.16s ease;
}

.play-button svg {
  width: 16px;
  height: 16px;
}

.play-button:hover {
  background: #fff;
  transform: scale(1.04);
}

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

.progress-row span,
.np-progress span {
  flex: 0 0 auto;
  min-width: 30px;
  color: #647187;
  font-family: var(--mono);
  font-size: 7px;
}

.progress-row span:last-child,
.np-progress span:last-child {
  text-align: right;
}

input[type="range"] {
  --progress: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(
    to right,
    var(--accent) 0,
    var(--accent) var(--progress),
    rgba(255, 255, 255, 0.12) var(--progress),
    rgba(255, 255, 255, 0.12) 100%
  );
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  -webkit-appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.quality-select {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #69768b;
  font-size: 7.5px;
  white-space: nowrap;
}

.quality-select select {
  height: 27px;
  max-width: 105px;
  padding: 0 20px 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #1a2232;
  color: #b5c0d2;
  font-size: 8px;
  cursor: pointer;
}

.volume-range {
  width: 55px;
}

/* ---------------- queue ---------------- */

.queue-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 78px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: 340px;
  border-left: 1px solid var(--line);
  background: rgba(18, 24, 37, 0.98);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(26px);
  animation: slide-left 0.22s ease both;
}

.queue-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 13px;
  border-bottom: 1px solid var(--line);
}

.queue-drawer header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.queue-drawer header strong {
  font-size: 12px;
}

.queue-drawer header span {
  color: #6d7a8f;
  font-size: 8px;
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border-radius: 6px;
  cursor: pointer;
}

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

.queue-item.active {
  background: rgba(255, 91, 98, 0.1);
}

.queue-item img {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
}

.queue-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.queue-copy strong {
  overflow: hidden;
  color: #d3ddea;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-copy span {
  overflow: hidden;
  color: #66748a;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-remove {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5e6b80;
  opacity: 0;
}

.queue-item:hover .queue-remove {
  opacity: 1;
}

.queue-remove:hover {
  background: rgba(255, 91, 98, 0.1);
  color: #ffaaa6;
}

.queue-remove svg {
  width: 11px;
  height: 11px;
}

/* ---------------- now playing ---------------- */

.now-playing {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b101a;
}

.np-backdrop {
  position: absolute;
  inset: -70px;
  background-position: center;
  background-size: cover;
  filter: blur(80px) saturate(1.2);
  opacity: 0.32;
  transform: scale(1.12);
}

.np-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 50%, transparent, rgba(6, 9, 15, 0.72)),
    linear-gradient(180deg, rgba(6, 9, 15, 0.35), rgba(6, 9, 15, 0.94));
}

.np-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  width: 34px;
  height: 34px;
  color: #d0d8e5;
}

.np-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 7vw;
  align-items: center;
  width: min(1120px, 86vw);
  flex: 1;
  min-height: 0;
  margin: 0 auto;
  padding-top: 4vh;
}

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

.np-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #222d41;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

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

.np-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #5f6d83;
}

.np-cover-fallback svg {
  width: 48px;
  height: 48px;
}

.np-cover.no-image img {
  display: none;
}

.np-cover.no-image .np-cover-fallback {
  display: grid;
}

.np-left h1 {
  overflow: hidden;
  margin: 21px 0 0;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-left p {
  overflow: hidden;
  margin: 6px 0 0;
  color: #aeb9ca;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-left p + p {
  margin-top: 3px;
  color: #69778c;
  font-size: 9px;
}

.np-quality {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8b98ab;
  font-family: var(--mono);
  font-size: 7.5px;
}

.np-quality-select {
  height: 28px;
  margin-left: 7px;
  padding: 0 20px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #aeb9ca;
  font-size: 8px;
  vertical-align: 5px;
  cursor: pointer;
}

.np-right {
  min-height: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.np-lyrics {
  width: 100%;
  height: 64vh;
  overflow-y: auto;
  padding: 22vh 10px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  scrollbar-width: none;
}

.np-lyrics::-webkit-scrollbar {
  display: none;
}

.np-lyrics .lyric-line {
  margin: 0;
  padding: 10px 0;
  color: rgba(207, 218, 233, 0.28);
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  transition: color 0.22s ease, font-size 0.22s ease;
}

.np-lyrics .lyric-line.active {
  color: #f6f1e9;
  font-size: clamp(24px, 2.6vw, 34px);
}

.np-lyrics .lyric-translation {
  display: block;
  margin-top: 4px;
  color: rgba(207, 218, 233, 0.32);
  font-size: 0.48em;
  font-weight: 400;
}

.lyric-empty {
  margin: 0;
  color: #5f6d82;
  font-size: 12px;
  text-align: center;
}

.lyric-word {
  color: inherit;
  transition: color 0.16s ease, text-shadow 0.16s ease;
}

.lyric-word.sung {
  color: inherit;
}

.lyric-word.active {
  color: #fff3df;
  text-shadow: 0 0 18px color-mix(in srgb, var(--cover-accent, #ff5b62) 60%, transparent);
}

html[data-theme="light"] .lyric-word.active {
  color: #182231;
  text-shadow: 0 0 16px rgba(255, 91, 98, 0.25);
}

.np-controls {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(540px, 80vw);
  margin: 0 auto;
  padding-bottom: 28px;
}

.np-progress {
  gap: 12px;
}

.np-progress span {
  min-width: 34px;
  font-size: 8px;
}

.np-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.np-side-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #cbd5e4;
}

.np-side-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.np-side-button svg {
  width: 16px;
  height: 16px;
}

.np-play {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 248, 253, 0.92);
  color: #101722;
}

.np-play svg {
  width: 20px;
  height: 20px;
}

/* ---------------- login modal ---------------- */

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  padding: 18px;
  place-items: center;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.74);
  backdrop-filter: blur(12px);
}

.login-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(70% 40% at 100% 0%, rgba(255, 91, 98, 0.11), transparent 65%),
    #151c2a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: rise 0.28s ease both;
}

.login-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.login-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 91, 98, 0.08);
}

.login-mark svg {
  width: 31px;
  height: 31px;
}

.login-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-title p {
  margin: 3px 0 0;
  color: #69768b;
  font-size: 8.5px;
}

.login-config {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 9px;
  border: 1px solid rgba(243, 201, 105, 0.18);
  border-radius: 8px;
  background: rgba(243, 201, 105, 0.055);
  color: #c2a965;
}

.login-config > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.login-config strong {
  display: block;
  color: #e3c987;
  font-size: 9.5px;
}

.login-config p {
  margin: 4px 0 0;
  font-size: 8.5px;
  line-height: 1.6;
}

.login-config code {
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 8px;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 18px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.login-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6f7c90;
  font-size: 8.5px;
}

.login-tabs button svg {
  width: 11px;
  height: 11px;
}

.login-tabs button.active {
  background: rgba(255, 91, 98, 0.11);
  color: #ffc0bb;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 98, 0.17);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: #8d99ac;
  font-size: 8.5px;
  cursor: pointer;
  user-select: none;
}

.remember-row input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.login-panels {
  padding-top: 13px;
}

.login-dialog.is-unconfigured .login-panels {
  opacity: 0.45;
  pointer-events: none;
}

.qr-frame {
  position: relative;
  display: grid;
  width: 186px;
  height: 186px;
  margin: 8px auto 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #f4f1eb;
}

.qr-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #111823;
  color: #69768b;
  font-size: 8.5px;
}

.qr-user {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(8, 12, 20, 0.84);
  color: #fff;
  font-size: 9px;
  backdrop-filter: blur(4px);
}

.qr-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.qr-tip {
  min-height: 17px;
  margin: 10px 0 0;
  color: #b9c3d3;
  font-size: 9.5px;
  text-align: center;
}

.login-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  color: #5f6c80;
  font-size: 7.5px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #a8b3c4;
  font-size: 8.5px;
}

.field > span {
  padding-left: 2px;
}

.field input,
.field select,
.login-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #0f1521;
  color: var(--text);
  font-size: 10px;
}

.field input,
.field select {
  height: 38px;
  padding: 0 10px;
}

.field input::placeholder,
.login-panel textarea::placeholder {
  color: #566276;
}

.field input:focus,
.field select:focus,
.login-panel textarea:focus {
  border-color: rgba(255, 91, 98, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 91, 98, 0.08);
}

.phone-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 6px;
}

.phone-row select,
.account-row select {
  padding: 0 6px;
  font-size: 8.5px;
}

.captcha-row {
  display: flex;
  gap: 6px;
}

.captcha-row input {
  flex: 1;
  min-width: 0;
}

.code-button {
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #b6c0d1;
  font-size: 8.5px;
}

.code-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.code-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.account-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px;
}

.login-panel textarea {
  min-height: 104px;
  padding: 9px;
  resize: vertical;
  line-height: 1.6;
  font-family: var(--mono);
  font-size: 9px;
}

.panel-copy {
  margin: 0 0 10px;
  color: #8491a5;
  font-size: 9px;
  line-height: 1.7;
}

.panel-copy a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.panel-copy code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 8px;
}

.form-message {
  margin: -3px 0 0;
  color: #ff8e95;
  font-size: 8.5px;
  line-height: 1.5;
}

.login-submit {
  height: 39px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b70, #df3d4b);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(255, 91, 98, 0.18);
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.07);
}

.login-submit:disabled {
  cursor: default;
  opacity: 0.55;
}

.login-footnote {
  margin: 16px 3px 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: #515d71;
  font-size: 7.5px;
  line-height: 1.6;
  text-align: center;
}

/* ---------------- song context menu ---------------- */

.song-context-menu {
  position: fixed;
  z-index: 140;
  width: 206px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(22, 29, 44, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  animation: rise 0.14s ease both;
}

.context-song-name {
  overflow: hidden;
  padding: 7px 9px 8px;
  border-bottom: 1px solid var(--line);
  color: #8e9bb0;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 31px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b4c0d1;
  font-size: 9px;
  text-align: left;
}

.song-context-menu button svg {
  width: 13px;
  height: 13px;
  color: #77849a;
}

.song-context-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.song-context-menu button:first-of-type:hover {
  background: rgba(255, 91, 98, 0.09);
  color: #ffb0ab;
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  z-index: 130;
  max-width: min(420px, calc(100vw - 30px));
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(26, 34, 50, 0.97);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 9.5px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- animations ---------------- */

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

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

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page > * {
  animation: rise 0.35s ease both;
}

/* ---------------- responsive ---------------- */

@media (max-width: 1240px) {
  .playlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .artist-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .np-content {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 5vw;
  }
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 68px minmax(0, 1fr);
  }

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

  .brand-text,
  .nav-label,
  .sidebar-playlists,
  .sidebar-user .profile-copy,
  .sidebar-login span,
  .nav-item span {
    display: none;
  }

  .sidebar-scroll {
    padding: 8px 9px;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-item.active {
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .sidebar-user {
    padding: 9px;
  }

  .sidebar-login {
    justify-content: center;
    padding: 0;
  }

  .sidebar-profile {
    justify-content: center;
  }

  .sidebar-profile .mini-icon {
    display: none;
  }

  .page {
    padding: 24px 22px 115px;
  }

  .topbar {
    padding: 0 22px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-spotlight {
    min-height: 190px;
  }

  .song-table-head,
  .song-row {
    grid-template-columns: 28px minmax(0, 1.8fr) minmax(90px, 0.8fr) 58px 46px 54px;
  }

  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .np-content {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 4vw;
  }

  .np-left h1 {
    font-size: 25px;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 72px);
  }

  .sidebar {
    position: fixed;
    right: 0;
    bottom: 72px;
    left: 0;
    z-index: 55;
    display: block;
    height: 54px;
    border-top: 1px solid var(--line);
    border-right: 0;
    background: rgba(20, 26, 39, 0.97);
    backdrop-filter: blur(20px);
  }

  .brand,
  .nav-label,
  .sidebar-playlists,
  .sidebar-user,
  .nav-list:nth-of-type(2) .nav-item[data-route="liked"] {
    display: none;
  }

  .sidebar-scroll {
    height: 54px;
    overflow: visible;
    padding: 6px 10px;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 2px;
  }

  .nav-list:nth-of-type(2) {
    display: none;
  }

  .nav-item {
    height: 42px;
    flex: 1;
    max-width: 82px;
    border-radius: 6px;
  }

  .nav-item span {
    display: block;
    font-size: 7.5px;
  }

  .nav-item svg {
    width: 15px;
    height: 15px;
  }

  .nav-item {
    flex-direction: column;
    gap: 3px;
  }

  .main-shell {
    min-height: calc(100vh - 72px);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 60px;
    padding: 0 12px;
    gap: 8px;
  }

  .history-buttons {
    display: none;
  }

  .search-box {
    width: auto;
    flex: 1;
    height: 36px;
  }

  .search-box kbd {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .api-pill {
    display: none;
  }

  #topUserName {
    display: none;
  }

  .page {
    height: auto;
    min-height: calc(100vh - 132px);
    overflow: visible;
    padding: 20px 14px 150px;
  }

  .page-head h1 {
    font-size: 25px;
  }

  .home-feature-grid {
    gap: 10px;
  }

  .feature-card {
    min-height: 94px;
    padding: 11px 13px;
  }

  .feature-icon {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

  .feature-copy strong {
    font-size: 13px;
  }

  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .playlist-name {
    font-size: 9.5px;
  }

  .song-table-head {
    display: none;
  }

  .song-row {
    grid-template-columns: 25px minmax(0, 1fr) 48px 54px;
    gap: 8px;
    min-height: 52px;
    padding: 6px 4px;
  }

  .song-album,
  .song-quality {
    display: none;
  }

  .song-thumb {
    width: 36px;
    height: 36px;
  }

  .detail-header {
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  .detail-cover {
    width: 104px;
    height: 104px;
    border-radius: 9px;
  }

  .detail-copy h1 {
    margin-top: 5px;
    font-size: 22px;
  }

  .detail-desc {
    display: none;
  }

  .detail-meta {
    margin-top: 6px;
    font-size: 8.5px;
  }

  .detail-actions {
    margin-top: 10px;
  }

  .detail-actions .primary-button,
  .detail-actions .ghost-button {
    height: 31px;
    padding: 0 10px;
    font-size: 8.5px;
  }

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

  .artist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .artist-card img {
    width: 64px;
    height: 64px;
  }

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

  .player-avatar {
    width: 39px !important;
    height: 39px !important;
  }

  .player-copy strong {
    max-width: 130px;
  }

  .player-center {
    display: block;
  }

  .player-controls {
    gap: 6px;
  }

  .player-controls .icon-button {
    display: none;
  }

  .progress-row {
    display: none;
  }

  .player-right {
    display: none;
  }

  .queue-drawer {
    bottom: 72px;
    width: min(340px, 90vw);
  }

  .np-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: auto;
    padding: 54px 25px 0;
    overflow-y: auto;
  }

  .np-left {
    width: min(260px, 64vw);
    flex: 0 0 auto;
  }

  .np-left h1 {
    margin-top: 14px;
    font-size: 23px;
  }

  .np-right {
    width: 100%;
    flex: 1;
    min-height: 260px;
  }

  .np-lyrics {
    height: 260px;
    padding: 90px 0;
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  }

  .np-lyrics .lyric-line {
    padding: 7px 0;
    font-size: 16px;
    text-align: center;
  }

  .np-lyrics .lyric-line.active {
    font-size: 19px;
  }

  .np-controls {
    width: auto;
    margin: 0 25px;
    padding: 14px 0 20px;
  }

  .np-close {
    top: 14px;
    right: 14px;
  }

  .login-modal {
    padding: 10px;
  }

  .login-dialog {
    max-height: calc(100vh - 20px);
    padding: 17px;
    border-radius: 15px;
  }

  .login-tabs button svg {
    display: none;
  }

  .phone-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .account-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .parse-search {
    flex-direction: column;
  }

  .parse-search .primary-button {
    width: 100%;
  }

  .parse-intro {
    flex-direction: column;
  }

  .parse-badge {
    align-self: flex-start;
  }

  .parse-quality-head {
    display: none;
  }

  .parse-quality-row {
    grid-template-columns: minmax(0, 1fr) 58px 110px;
    gap: 5px 8px;
    padding: 9px 12px;
  }

  .parse-level {
    grid-column: 1 / 2;
  }

  .parse-status {
    grid-column: 2 / 3;
  }

  .parse-row-actions {
    grid-column: 3 / 4;
  }

  .parse-detail {
    grid-column: 1 / 3;
    grid-row: 2;
    padding-left: 14px;
  }

  .parse-size {
    display: none;
  }

  .parse-song-head {
    align-items: flex-start;
    padding: 11px 12px;
  }

  .parse-cover {
    width: 56px;
    height: 56px;
  }

  .parse-song-copy h3 {
    font-size: 14px;
  }

  .parse-actions {
    display: none;
  }

  .parse-track-row {
    grid-template-columns: 22px 34px minmax(0, 1fr) 62px;
    gap: 7px;
    padding: 7px 10px;
  }

  .parse-track-album,
  .parse-track-quality,
  .parse-track-duration {
    display: none;
  }

  .parse-track-index {
    font-size: 7px;
  }

  .parse-track-panel {
    padding: 0 10px 10px;
  }

  .parse-track-panel .parse-quality-row {
    grid-template-columns: minmax(0, 1fr) 58px 110px;
    padding-right: 0;
    padding-left: 0;
  }

  .parse-note {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 420px) {
  .top-login span {
    display: none;
  }

  .top-login {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .song-row {
    grid-template-columns: minmax(0, 1fr) 44px 24px;
  }

  .song-index {
    display: none;
  }

  .playlist-grid {
    gap: 10px;
  }

  .section-head {
    margin-top: 26px;
  }

  .np-left {
    width: min(230px, 70vw);
  }
}

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

/* ---------------- app modals ---------------- */

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  padding: 20px;
  place-items: center;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(10px);
}

.app-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.app-modal-head h2 {
  margin: 5px 0 0;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.comments-dialog,
.mv-dialog,
.playlist-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #151c2a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  animation: rise 0.2s ease both;
}

.mv-dialog {
  width: min(920px, 100%);
}

.playlist-dialog {
  width: min(420px, 100%);
}

.comments-list {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  padding: 8px 14px;
}

.comment-item {
  display: flex;
  gap: 9px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.comment-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #263147;
}

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

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

.comment-copy strong {
  color: #b9c6d8;
  font-size: 8px;
  font-weight: 500;
}

.comment-copy p {
  margin: 4px 0 0;
  color: #d7e1ef;
  font-size: 9.5px;
  line-height: 1.65;
  word-break: break-word;
}

.comment-copy small {
  display: block;
  margin-top: 5px;
  color: #627086;
  font-size: 7.5px;
}

.comment-reply {
  margin-top: 5px;
  padding: 6px 8px;
  border-left: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #8d9aad;
  font-size: 8px;
  line-height: 1.5;
}

.comment-form {
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

.comment-form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 100px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #0f1521;
  color: var(--text);
  font-size: 9px;
  resize: vertical;
}

.comment-form textarea:focus {
  border-color: rgba(255, 91, 98, 0.45);
}

.comment-form .primary-button {
  flex: 0 0 auto;
  align-self: flex-end;
  height: 34px;
}

.mv-frame {
  display: grid;
  min-height: 220px;
  padding: 12px;
  background: #070b12;
  place-items: center;
}

.mv-frame video {
  width: 100%;
  max-height: 62vh;
  border-radius: 7px;
  background: #000;
}

.playlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 19px;
}

.playlist-form .field textarea {
  min-height: 74px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #0f1521;
  color: var(--text);
  font-size: 10px;
  resize: vertical;
}

.playlist-form .remember-row {
  margin-top: 0;
}

/* ---------------- profile / favorites / cloud / settings ---------------- */

.profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(65% 120% at 100% 0%, rgba(255, 91, 98, 0.12), transparent 70%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.profile-avatar {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: #263147;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

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

.profile-copy h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.profile-copy p {
  margin: 7px 0 0;
  color: #8794a9;
  font-size: 9.5px;
  line-height: 1.6;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 13px;
}

.profile-stats span {
  color: #6e7b90;
  font-size: 8.5px;
}

.profile-stats strong {
  margin-right: 3px;
  color: #dbe5f2;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.profile-links button {
  height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #a8b4c6;
  font-size: 8.5px;
}

.profile-links button:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.favorites-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.favorites-tabs button {
  height: 29px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #7c899d;
  font-size: 9px;
}

.favorites-tabs button.active {
  border-color: rgba(255, 91, 98, 0.24);
  background: rgba(255, 91, 98, 0.1);
  color: #ffc0bb;
}

.cloud-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.cloud-upload-copy {
  flex: 1;
  min-width: 180px;
}

.cloud-upload-copy strong {
  display: block;
  font-size: 10.5px;
}

.cloud-upload-copy span {
  display: block;
  margin-top: 4px;
  color: #6c798e;
  font-size: 8px;
}

.cloud-upload-progress {
  color: var(--gold);
  font-size: 8px;
}

.own-playlist-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.own-playlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
}

.own-playlist-row:last-child {
  border-bottom: 0;
}

.own-playlist-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.own-playlist-row img {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  object-fit: cover;
}

.own-playlist-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.own-playlist-copy strong {
  overflow: hidden;
  color: #d6e0ee;
  font-size: 9.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.own-playlist-copy small {
  color: #637086;
  font-size: 7.5px;
}

.cloud-upload input[type="file"] {
  display: none;
}

.cloud-list {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.cloud-row {
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1.8fr) minmax(100px, 0.8fr) 74px 145px;
  gap: 9px;
  align-items: center;
  min-height: 55px;
  padding: 7px 15px;
  border-bottom: 1px solid var(--line);
}

.cloud-row:last-child {
  border-bottom: 0;
}

.cloud-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

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

.cloud-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.cloud-action {
  height: 25px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: #98a5b8;
  font-size: 7px;
}

.cloud-action:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.cloud-action.danger:hover {
  border-color: rgba(255, 91, 98, 0.3);
  background: rgba(255, 91, 98, 0.08);
  color: #ffaaa6;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.setting-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}

.setting-card h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.setting-card p {
  margin: 5px 0 12px;
  color: #6f7c90;
  font-size: 8.5px;
  line-height: 1.6;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 35px;
  border-top: 1px solid var(--line);
  color: #aab6c8;
  font-size: 9px;
}

.setting-row:first-of-type {
  border-top: 0;
}

.setting-row select {
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111827;
  color: #b8c4d5;
  font-size: 8px;
}

.theme-options {
  display: flex;
  gap: 5px;
}

.theme-options button {
  height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #8491a5;
  font-size: 8px;
}

.theme-options button.active {
  border-color: rgba(255, 91, 98, 0.3);
  background: rgba(255, 91, 98, 0.09);
  color: #ffb7b2;
}

.setting-toggle {
  position: relative;
  width: 31px;
  height: 17px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 99px;
  background: #303b50;
  cursor: pointer;
  transition: background 0.16s ease;
}

.setting-toggle::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.16s ease;
}

.setting-toggle.on {
  background: var(--accent);
}

.setting-toggle.on::after {
  transform: translateX(14px);
}

.queue-page-row {
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1.8fr) minmax(100px, 0.9fr) 58px 70px;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
}

.queue-page-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.queue-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.collect-button.active {
  border-color: rgba(255, 91, 98, 0.3);
  background: rgba(255, 91, 98, 0.09);
  color: #ffaaa6;
}

.spectrum-canvas {
  display: block;
  width: 100%;
  height: 42px;
  margin-bottom: 2px;
  opacity: 0.85;
}

/* ---------------- theme ---------------- */

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5fa;
  --sidebar: #ffffff;
  --panel: #ffffff;
  --panel-2: #edf1f7;
  --panel-3: #e3e9f2;
  --text: #182231;
  --muted: #647187;
  --dim: #8a96a8;
  --line: rgba(22, 35, 54, 0.1);
  --line-strong: rgba(22, 35, 54, 0.18);
}

html[data-theme="light"] body {
  background:
    radial-gradient(38% 45% at 78% -10%, rgba(255, 91, 98, 0.07), transparent 60%),
    radial-gradient(35% 40% at 8% 105%, rgba(82, 130, 255, 0.07), transparent 65%),
    var(--bg);
  color: var(--text);
}

html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar,
html[data-theme="light"] .player,
html[data-theme="light"] .queue-drawer,
html[data-theme="light"] .account-menu,
html[data-theme="light"] .song-context-menu,
html[data-theme="light"] .login-dialog,
html[data-theme="light"] .comments-dialog,
html[data-theme="light"] .mv-dialog,
html[data-theme="light"] .playlist-dialog {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

html[data-theme="light"] .nav-item,
html[data-theme="light"] .sidebar-playlist,
html[data-theme="light"] .song-copy small,
html[data-theme="light"] .playlist-creator,
html[data-theme="light"] .song-album,
html[data-theme="light"] .detail-meta,
html[data-theme="light"] .profile-copy p,
html[data-theme="light"] .parse-intro p,
html[data-theme="light"] .parse-hint,
html[data-theme="light"] .parse-note,
html[data-theme="light"] .setting-card p {
  color: #69758a;
}

html[data-theme="light"] .song-copy strong,
html[data-theme="light"] .playlist-name,
html[data-theme="light"] .profile-copy h1,
html[data-theme="light"] .profile-stats strong,
html[data-theme="light"] .detail-copy h1,
html[data-theme="light"] .page-head h1,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .parse-song-copy h3,
html[data-theme="light"] .player-copy strong {
  color: #182231;
}

html[data-theme="light"] .song-row:hover,
html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .queue-item:hover,
html[data-theme="light"] .parse-track-row:hover {
  background: rgba(20, 35, 55, 0.045);
}

html[data-theme="light"] .search-box,
html[data-theme="light"] .parse-search input,
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .login-panel textarea,
html[data-theme="light"] .comment-form textarea,
html[data-theme="light"] .playlist-form textarea {
  background: #f0f3f8;
  color: #182231;
}

html[data-theme="light"] .song-row.active {
  background: linear-gradient(90deg, rgba(255, 91, 98, 0.12), rgba(20, 35, 55, 0.025));
}

html[data-theme="light"] .player {
  border-top-color: rgba(22, 35, 54, 0.12);
}

html[data-theme="light"] .now-playing {
  background: #eef2f8;
}

html[data-theme="light"] .np-shade {
  background:
    radial-gradient(70% 70% at 50% 50%, transparent, rgba(255, 255, 255, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(240, 244, 250, 0.95));
}

html[data-theme="light"] .np-lyrics .lyric-line {
  color: rgba(30, 45, 65, 0.3);
}

html[data-theme="light"] .np-lyrics .lyric-line.active {
  color: #182231;
}

html[data-theme="light"] .np-left p,
html[data-theme="light"] .np-quality {
  color: #657287;
}

html[data-theme="light"] .toast {
  background: #fff;
  color: #182231;
}

html[data-theme="light"] .parse-result,
html[data-theme="light"] .song-table,
html[data-theme="light"] .cloud-list {
  background: rgba(255, 255, 255, 0.55);
}

/* cover adaptive */
body.has-cover-color .player {
  border-top-color: color-mix(in srgb, var(--cover-accent) 55%, transparent);
}

body.has-cover-color .np-shade {
  background:
    radial-gradient(70% 70% at 50% 50%, transparent, rgba(6, 9, 15, 0.7)),
    linear-gradient(180deg, rgba(6, 9, 15, 0.25), color-mix(in srgb, var(--cover-accent) 15%, rgba(6, 9, 15, 0.95)));
}

body.has-cover-color .play-button,
body.has-cover-color .np-play {
  background: color-mix(in srgb, var(--cover-accent) 65%, #f5f8fd);
}

html[data-theme="light"] body.has-cover-color .np-shade {
  background:
    radial-gradient(70% 70% at 50% 50%, transparent, rgba(255, 255, 255, 0.65)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), color-mix(in srgb, var(--cover-accent) 10%, rgba(240, 244, 250, 0.96)));
}

/* ---------------- new responsive ---------------- */

@media (max-width: 760px) {
  .profile-hero {
    align-items: flex-start;
    padding: 15px;
  }

  .profile-avatar {
    width: 66px;
    height: 66px;
  }

  .profile-copy h1 {
    font-size: 21px;
  }

  .profile-stats {
    gap: 10px;
  }

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

  .cloud-row {
    grid-template-columns: 22px 34px minmax(0, 1fr) 62px;
    padding: 7px 10px;
  }

  .cloud-row > .cloud-album,
  .cloud-row > .cloud-size {
    display: none;
  }

  .cloud-actions {
    grid-column: 4;
  }

  .queue-page-row {
    grid-template-columns: 22px 34px minmax(0, 1fr) 64px;
    padding: 6px 10px;
  }

  .queue-page-row > .queue-page-album,
  .queue-page-row > .queue-page-duration {
    display: none;
  }

  .comments-dialog,
  .mv-dialog,
  .playlist-dialog {
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }

  .app-modal {
    padding: 10px;
  }

  .spectrum-canvas {
    height: 30px;
  }
}
