/* ==========================================================================
   心安音乐 · 网页播放器
   视觉基调：深青蓝、低对比、留白，强调专辑封面与同步歌词。
   ========================================================================== */

@property --ambient-color {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(58, 99, 123);
}

@property --ambient-color-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(43, 78, 98);
}

@property --ambient-color-3 {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(25, 47, 61);
}

@property --lyric-progress {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

:root {
  --sidebar-w: clamp(218px, 13.05vw, 252px);
  --topbar-h: clamp(64px, 4.17vw, 80px);
  --player-h: clamp(94px, 5.56vw, 108px);
  --cover-size: clamp(300px, 22.42vw, 430px);

  --page-bg: #1b2e3b;
  --page-bg-deep: #172a36;
  --sidebar-bg: rgba(20, 35, 45, 0.82);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.045);

  --text: #f4f8fa;
  --text-soft: #b7c8d2;
  --text-muted: #7894a5;
  --text-faint: #5c788a;
  --accent: #ff2f73;
  --accent-deep: #e6155e;
  --sky: #8cc3dd;
  --player: rgba(26, 44, 55, 0.98);

  --ambient-color: rgb(58, 99, 123);
  --ambient-color-2: rgb(43, 78, 98);
  --ambient-color-3: rgb(25, 47, 61);

  --font-ui: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei UI",
    "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  color-scheme: dark;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(157, 210, 236, 0.8);
  outline-offset: 3px;
}

button:disabled {
  cursor: default;
}

::selection {
  background: rgba(137, 194, 221, 0.3);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f2f8fb;
  color: #183040;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon--small {
  width: 1.18em;
  height: 1.18em;
}

.icon--tiny {
  width: 0.95em;
  height: 0.95em;
}

/* --------------------------------------------------------------------------
   应用骨架与氛围背景
   -------------------------------------------------------------------------- */

.app {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) var(--player-h);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #0b1720 0%, #10232e 50%, #071117 100%);
  transition:
    --ambient-color 1.15s var(--ease),
    --ambient-color-2 1.15s var(--ease),
    --ambient-color-3 1.15s var(--ease);
}

.ambient-layer {
  position: absolute;
  inset: -12%;
  z-index: -3;
  background:
    radial-gradient(ellipse 70% 62% at 18% 16%, var(--ambient-color), transparent 66%),
    radial-gradient(ellipse 58% 52% at 86% 8%, var(--ambient-color-2), transparent 62%),
    radial-gradient(ellipse 84% 68% at 54% 104%, var(--ambient-color-3), transparent 70%);
  filter: blur(46px) saturate(1.2);
  opacity: 0.92;
  pointer-events: none;
  transform: scale(1.08);
}

.glass-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 20, 27, 0.16), rgba(7, 16, 22, 0.32)),
    radial-gradient(110% 76% at 50% -10%, rgba(255, 255, 255, 0.085), transparent 58%);
  box-shadow: inset 0 0 130px rgba(3, 10, 15, 0.2);
  -webkit-backdrop-filter: blur(34px) saturate(1.28);
  backdrop-filter: blur(34px) saturate(1.28);
  pointer-events: none;
}

.app::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.app::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 24, 32, 0.12), transparent 25%, transparent 82%, rgba(9, 21, 29, 0.1));
}

.app.is-loading .stage-group {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   侧边栏
   -------------------------------------------------------------------------- */

.sidebar {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  grid-row: 1;
  grid-column: 1;
  min-height: 0;
  padding: clamp(28px, 2.1vw, 40px) 0 20px;
  overflow: hidden auto;
  background:
    linear-gradient(180deg, rgba(16, 32, 42, 0.52), rgba(12, 25, 33, 0.36)),
    radial-gradient(500px 350px at 0 0, rgba(255, 255, 255, 0.055), transparent 70%);
  border-right: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.025),
    12px 0 42px rgba(2, 10, 15, 0.06);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  backdrop-filter: blur(26px) saturate(1.35);
  scrollbar-width: none;
  animation: fade-in 0.5s ease;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(9px, 0.7vw, 12px);
  margin: 0 clamp(24px, 2vw, 34px) clamp(34px, 3vw, 56px);
  user-select: none;
}

.brand-mark {
  width: clamp(28px, 1.8vw, 35px);
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.16));
}

.brand-name {
  color: #f6fafc;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.45vw, 28px);
  font-weight: 650;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(42px, 2.7vw, 51px);
  padding: 0 clamp(25px, 1.9vw, 33px);
  border-radius: 0;
  color: #cbd9e1;
  font-size: clamp(14px, 0.92vw, 17px);
  font-weight: 500;
  letter-spacing: 0.15px;
  text-align: left;
  transition:
    color 0.22s ease,
    background-color 0.22s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.nav-item.is-active {
  color: #fff;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 1.45vw, 28px);
  color: currentColor;
}

.nav-item.is-active .nav-icon {
  color: #e8f5fb;
}

.side-section {
  margin-top: clamp(28px, 2.4vw, 45px);
}

.side-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: clamp(20px, 1.55vw, 29px);
}

.side-heading {
  margin: 0 clamp(25px, 1.9vw, 33px) clamp(12px, 0.8vw, 15px);
  color: #6f8a9b;
  font-size: clamp(11px, 0.69vw, 13px);
  font-weight: 500;
  letter-spacing: 0.8px;
}

.side-heading-row .side-heading {
  margin-right: 0;
}

.side-add {
  display: grid;
  width: 26px;
  height: 26px;
  margin: -8px 0 7px;
  place-items: center;
  border-radius: 7px;
  color: #8099a9;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.side-add:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.side-item {
  min-height: clamp(40px, 2.55vw, 48px);
  color: #c6d5de;
  font-size: clamp(13.5px, 0.9vw, 16.5px);
}

.nav-count {
  min-width: 20px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #b7c9d3;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.playlist-section {
  margin-top: clamp(24px, 2vw, 36px);
}

.playlist-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(38px, 2.4vw, 45px);
  gap: clamp(10px, 0.8vw, 14px);
  padding: 0 clamp(27px, 2vw, 35px);
  overflow: hidden;
  color: #b3c6d1;
  font-size: clamp(13px, 0.85vw, 15.5px);
  text-align: left;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.playlist-item .icon {
  color: #6f899a;
}

.playlist-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.playlist-item.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.user-playlists {
  display: flex;
  flex-direction: column;
}

.playlist-login-entry {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  gap: 10px;
  padding: 0 clamp(27px, 2vw, 35px);
  color: #657f8f;
  font-size: clamp(12px, 0.8vw, 14px);
  text-align: left;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.playlist-login-entry:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #b9ced8;
}

.playlist-login-entry .icon {
  width: 15px;
  height: 15px;
}

.playlist-empty-hint {
  padding: 9px clamp(27px, 2vw, 35px) 11px;
  color: #536f7f;
  font-size: 10px;
  line-height: 1.55;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto clamp(25px, 1.9vw, 33px) 0;
  padding-top: 26px;
  color: #506b7b;
  font-size: 10px;
  letter-spacing: 0.15px;
}

.sidebar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6eaf8c;
  box-shadow: 0 0 0 4px rgba(110, 175, 140, 0.09);
}

/* --------------------------------------------------------------------------
   工作区与顶栏
   -------------------------------------------------------------------------- */

.workspace {
  display: flex;
  flex-direction: column;
  grid-row: 1;
  grid-column: 2;
  min-width: 0;
  min-height: 0;
}

.topbar {
  position: relative;
  z-index: 25;
  display: flex;
  flex: 0 0 var(--topbar-h);
  align-items: center;
  height: var(--topbar-h);
  gap: clamp(12px, 1.1vw, 20px);
  padding: 0 clamp(22px, 1.85vw, 36px);
  animation: topbar-reveal 0.55s var(--ease-out);
}

.is-desktop .topbar {
  -webkit-app-region: drag;
  user-select: none;
}

.is-desktop .topbar button,
.is-desktop .topbar input,
.is-desktop .topbar .search-shell,
.is-desktop .topbar .avatar-shell,
.is-desktop .topbar .topbar-right {
  -webkit-app-region: no-drag;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-nav-button {
  display: none;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  color: #b6c9d3;
  background: rgba(255, 255, 255, 0.035);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.mobile-nav-button:hover {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.mobile-nav-button .icon {
  width: 20px;
  height: 20px;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0 0 var(--player-h);
  z-index: 88;
  background: rgba(6, 17, 24, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(3px);
}

.mobile-nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.chrome-button {
  display: grid;
  width: clamp(33px, 2vw, 39px);
  height: clamp(33px, 2vw, 39px);
  place-items: center;
  border-radius: 50%;
  color: #9eb3c0;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.chrome-button .icon {
  width: clamp(17px, 1.05vw, 20px);
  height: clamp(17px, 1.05vw, 20px);
  stroke-width: 1.85;
}

.chrome-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: #f2f8fb;
}

.chrome-button:disabled {
  opacity: 0.28;
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(274px, 17.5vw, 338px);
  height: clamp(36px, 2.3vw, 44px);
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: clamp(9px, 0.7vw, 12px);
  background: rgba(79, 108, 126, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 8px 20px rgba(9, 22, 30, 0.06);
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.search-shell:hover {
  background: rgba(84, 115, 134, 0.54);
}

.search-shell:focus-within {
  border-color: rgba(185, 224, 241, 0.2);
  background: rgba(88, 120, 140, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 3px rgba(128, 187, 214, 0.07);
}

.search-icon {
  width: clamp(17px, 1.05vw, 20px);
  height: clamp(17px, 1.05vw, 20px);
  margin-right: 9px;
  color: #aec2ce;
}

.search-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f9fc;
  font-size: clamp(13px, 0.82vw, 15px);
  letter-spacing: 0.15px;
}

.search-input::placeholder {
  color: #b0c4cf;
  opacity: 0.88;
}

.search-input:focus,
.search-input:focus-visible {
  outline: none;
}

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

.search-clear {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #c7d6de;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-kbd {
  display: grid;
  width: 19px;
  height: 19px;
  margin-left: 9px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  color: rgba(218, 232, 239, 0.6);
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1;
}

.search-shell.has-value .search-kbd {
  display: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  width: max(100%, 380px);
  max-height: min(450px, 62vh);
  padding: 7px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(21, 38, 49, 0.96);
  box-shadow:
    0 24px 70px rgba(4, 13, 19, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(26px) saturate(1.25);
  animation: pop-in 0.18s var(--ease);
}

.search-results::before {
  display: block;
  margin: 7px 10px 6px;
  color: #668393;
  content: attr(data-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.search-result {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  padding: 8px 9px;
  border-radius: 8px;
  text-align: left;
}

.search-result:hover,
.search-result.is-selected {
  background: rgba(255, 255, 255, 0.065);
}

.search-result img {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 5px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

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

.search-result-title {
  display: block;
  overflow: hidden;
  color: #edf5f9;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-title mark {
  background: none;
  color: #9bd4ee;
}

.search-result-sub {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7c98a8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-badge {
  flex: none;
  padding: 2px 5px;
  border: 1px solid rgba(245, 197, 111, 0.38);
  border-radius: 3px;
  color: #e5c589;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.search-empty {
  padding: 28px 16px;
  color: #7894a4;
  font-size: 12px;
  text-align: center;
}

.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-loading::before {
  width: 12px;
  height: 12px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: #b8e0f2;
  border-radius: 50%;
  content: "";
  animation: spin 0.8s linear infinite;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(7px, 0.55vw, 11px);
}

.top-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(30px, 1.85vw, 35px);
  gap: 6px;
  padding: 0 clamp(10px, 0.75vw, 14px);
  border-radius: 999px;
  font-size: clamp(11px, 0.7vw, 13px);
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease-spring),
    filter 0.2s ease;
}

.top-pill:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.ai-pill {
  background: rgba(217, 232, 240, 0.88);
  color: #1a3546;
  box-shadow: 0 5px 15px rgba(10, 27, 37, 0.08);
}

.ai-pill .icon {
  width: 15px;
  height: 15px;
}

.svip-pill {
  background: rgba(188, 205, 216, 0.9);
  color: #1e3747;
  font-family: var(--font-display);
  font-size: 11px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.avatar-shell {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
}

.avatar-button {
  position: relative;
  display: grid;
  width: clamp(36px, 2.2vw, 42px);
  height: clamp(36px, 2.2vw, 42px);
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition:
    box-shadow 0.25s ease,
    transform 0.32s var(--ease-spring);
}

.avatar-button:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 6px 20px rgba(6, 18, 26, 0.26);
  transform: scale(1.055);
}

.avatar-button:active {
  transform: scale(0.94);
}

.avatar-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.avatar-button:hover img {
  transform: scale(1.07) rotate(2deg);
}

.avatar-button img.is-swapping {
  animation: avatar-swap 0.45s var(--ease-out);
}

.avatar-button.is-bumping {
  animation: avatar-pop 0.5s var(--ease-spring);
}

.avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -1px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #26404f;
  border-radius: 50%;
  background: #dcecf3;
  color: #1a3546;
  opacity: 0;
  box-shadow: 0 3px 9px rgba(3, 14, 20, 0.25);
  transform: translateY(2px) scale(0.55);
  transition:
    opacity 0.2s ease,
    transform 0.3s var(--ease-spring),
    background-color 0.2s ease;
}

.avatar-edit .icon {
  width: 10px;
  height: 10px;
}

.avatar-shell:hover .avatar-edit,
.avatar-shell:focus-within .avatar-edit,
.avatar-edit:focus-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.avatar-shell:hover .avatar-edit:hover {
  background: #fff;
  transform: translateY(0) scale(1.12) rotate(-8deg);
}

.avatar-edit:active {
  transform: scale(0.9) !important;
}

@media (hover: none) {
  .avatar-edit {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-status-dot {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid #243e4e;
  border-radius: 50%;
  background: #73c99d;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s ease,
    transform 0.25s var(--ease-spring);
}

.avatar-button.is-authenticated .auth-status-dot {
  opacity: 1;
  transform: scale(1);
}

.top-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.13);
}

.window-button {
  display: grid;
  width: clamp(26px, 1.65vw, 31px);
  height: clamp(26px, 1.65vw, 31px);
  place-items: center;
  border-radius: 6px;
  color: #94aab8;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.window-button .icon {
  width: clamp(15px, 0.95vw, 18px);
  height: clamp(15px, 0.95vw, 18px);
  stroke-width: 1.4;
}

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

.window-button.close-button:hover {
  background: rgba(222, 66, 85, 0.78);
  color: #fff;
}

/* --------------------------------------------------------------------------
   主内容与正在播放
   -------------------------------------------------------------------------- */

.content {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0 clamp(20px, 2.5vw, 48px);
  overflow: hidden auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.stage {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 8px 0 clamp(24px, 2.4vw, 44px) 15.8%;
  transition:
    opacity 0.25s ease,
    filter 0.25s ease;
}

.stage.has-error {
  opacity: 0.14;
  pointer-events: none;
  filter: blur(1px);
}

.stage-group {
  display: flex;
  flex-direction: column;
  width: min(100%, 1000px);
  gap: clamp(13px, 1vw, 19px);
  transform: translateY(calc(-1.8% - 16px));
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease);
}

.stage-head {
  display: flex;
  align-items: center;
  min-height: 23px;
  gap: 13px;
  color: #7896a7;
  opacity: 0.84;
  transition: opacity 0.2s ease;
}

.stage-head:hover {
  opacity: 1;
}

.chart-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a5c1d0;
  font-size: clamp(11px, 0.7vw, 13px);
  font-weight: 600;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.chart-switch:hover {
  color: #e6f4fa;
}

.chart-switch .icon {
  color: #6e8c9d;
}

.signal {
  display: flex;
  align-items: flex-end;
  width: 13px;
  height: 13px;
  gap: 2px;
}

.signal i {
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: signal 1.35s ease-in-out infinite;
}

.signal i:nth-child(1) {
  height: 4px;
  animation-delay: -0.25s;
}

.signal i:nth-child(2) {
  height: 8px;
  animation-delay: -0.7s;
}

.signal i:nth-child(3) {
  height: 11px;
  animation-delay: -0.1s;
}

.signal i:nth-child(4) {
  height: 6px;
  animation-delay: -0.48s;
}

.stage-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.stage-caption {
  overflow: hidden;
  color: #688494;
  font-size: clamp(10px, 0.64vw, 12px);
  letter-spacing: 0.25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing {
  display: grid;
  grid-template-columns: var(--cover-size) minmax(280px, 510px);
  column-gap: clamp(34px, 3.7vw, 72px);
  align-items: start;
  animation: content-reveal 0.72s 0.04s var(--ease-out) both;
}

.artwork-column {
  min-width: 0;
}

.cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: clamp(9px, 0.7vw, 13px);
  background:
    radial-gradient(circle at 30% 15%, rgba(156, 204, 225, 0.23), transparent 50%),
    #1b3343;
  box-shadow:
    0 38px 68px rgba(4, 14, 21, 0.32),
    0 7px 20px rgba(5, 16, 23, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.055);
  isolation: isolate;
}

.cover-wrap::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  opacity: 1;
  transition:
    opacity 0.45s ease,
    transform 1.25s var(--ease),
    filter 0.55s ease;
  will-change: opacity, transform, filter;
}

.cover-image.is-changing {
  opacity: 0.16;
  filter: blur(5px);
  transform: scale(1.035);
}

.cover-wrap:hover .cover-image {
  transform: scale(1.012);
}

.cover-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.14), transparent 31%),
    linear-gradient(345deg, rgba(0, 0, 0, 0.12), transparent 42%);
  opacity: 0.45;
}

.cover-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: rgba(19, 37, 48, 0.7);
  color: #d2e2ea;
  font-size: 12px;
  letter-spacing: 0.3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
}

.cover-wrap.is-loading .cover-loading {
  opacity: 1;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(238, 250, 255, 0.9);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.cover-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  width: clamp(42px, 2.8vw, 51px);
  height: clamp(42px, 2.8vw, 51px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(14, 30, 40, 0.53);
  color: #f5fbff;
  opacity: 0;
  box-shadow: 0 8px 22px rgba(2, 10, 16, 0.25);
  transform: translateY(5px) scale(0.95);
  transition:
    opacity 0.23s ease,
    transform 0.3s var(--ease-spring),
    background-color 0.2s ease;
  backdrop-filter: blur(12px);
}

.cover-wrap:hover .cover-play,
.cover-play:focus-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cover-play:hover {
  background: rgba(24, 48, 62, 0.76);
}

.cover-play .icon {
  width: 21px;
  height: 21px;
  margin-left: 2px;
  transition:
    opacity 0.18s ease,
    transform 0.32s var(--ease-spring);
}

.cover-wrap.is-playing .cover-play .icon {
  opacity: 0;
  transform: scale(0.5) rotate(18deg);
}

.cover-play::after {
  position: absolute;
  width: 15px;
  height: 17px;
  background:
    linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px, currentColor 9px 14px);
  content: "";
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.18s ease,
    transform 0.32s var(--ease-spring);
}

.cover-wrap.is-playing .cover-play::after {
  opacity: 1;
  transform: scale(1);
}

.track-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(19px, 1.55vw, 27px);
  padding-left: 1px;
}

.track-copy {
  min-width: 0;
  padding-top: 1px;
}

.track-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.track-title {
  overflow: hidden;
  color: #f4f9fb;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.36vw, 27px);
  font-weight: 640;
  letter-spacing: 0.1px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-badge {
  flex: none;
  padding: 1px 4px;
  border: 1px solid rgba(237, 201, 123, 0.5);
  border-radius: 3px;
  color: #e8c77d;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.35;
}

.track-sub {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
}

.track-artist {
  overflow: hidden;
  color: #8ea7b5;
  font-size: clamp(12px, 0.77vw, 14px);
  letter-spacing: 0.1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist.is-link {
  cursor: pointer;
  transition: color 0.2s ease;
}

.track-artist.is-link:hover {
  color: #d7e7ef;
}

.follow-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 4px;
  border-radius: 4px;
  color: #6d8999;
  font-size: clamp(10px, 0.66vw, 12px);
  opacity: 0.88;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.follow-button .icon {
  width: 12px;
  height: 12px;
}

.follow-button:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #c7dbe5;
}

.follow-button.is-following {
  color: #86a7b8;
}

.like-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: none;
  gap: 2px;
  margin-top: -5px;
}

.like-button {
  display: grid;
  width: clamp(38px, 2.45vw, 46px);
  height: clamp(38px, 2.45vw, 46px);
  place-items: center;
  border-radius: 50%;
  color: #d4e2e9;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s var(--ease-spring);
}

.like-button .icon {
  width: clamp(21px, 1.38vw, 27px);
  height: clamp(21px, 1.38vw, 27px);
  stroke-width: 1.55;
  transition: fill 0.2s ease;
}

.like-button:hover {
  background: rgba(255, 255, 255, 0.055);
  transform: scale(1.04);
}

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

.like-button.is-liked .icon {
  fill: currentColor;
  stroke: currentColor;
}

.like-button.is-pulsing {
  animation: heart-pulse 0.45s var(--ease-spring);
}

.like-label {
  color: #718b9b;
  font-size: clamp(9px, 0.58vw, 11px);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.like-button.is-liked + .like-label {
  color: #c47f94;
}

.track-facts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding-left: 1px;
  overflow: hidden;
  color: #5e7a8a;
  font-size: clamp(9px, 0.6vw, 11px);
  letter-spacing: 0.15px;
  white-space: nowrap;
}

.track-album {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fact-dot {
  width: 2px;
  height: 2px;
  flex: none;
  border-radius: 50%;
  background: #537081;
}

.track-pay {
  flex: none;
}

/* --------------------------------------------------------------------------
   歌词
   -------------------------------------------------------------------------- */

.lyrics-panel {
  position: relative;
  min-width: 0;
  height: calc(var(--cover-size) + clamp(24px, 2vw, 38px));
  align-self: start;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 7%,
    #000 77%,
    rgba(0, 0, 0, 0.18) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 7%,
    #000 77%,
    rgba(0, 0, 0, 0.18) 95%,
    transparent 100%
  );
}

.lyrics-scroll {
  height: 100%;
  padding: clamp(16px, 1.25vw, 24px) 5px 80px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

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

.lyrics-list {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
  padding-bottom: 30vh;
}

.lyric-line {
  --lyric-base: rgba(112, 150, 171, 0.72);
  --lyric-shine: #fbfeff;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: clamp(50px, 4vw, 76px);
  padding: 0;
  flex-direction: column;
  gap: 3px;
  border-radius: 10px;
  isolation: isolate;
  color: var(--lyric-base);
  font-family: var(--font-ui);
  font-size: clamp(23px, 1.7vw, 32px);
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.55;
  text-align: left;
  text-shadow: none;
  transition:
    opacity 0.45s ease,
    transform 0.5s var(--ease),
    color 0.4s ease,
    font-weight 0.2s ease;
}

.lyric-line::before {
  position: absolute;
  inset: 3px -3px;
  z-index: -1;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(144, 202, 230, 0.14),
    rgba(128, 186, 214, 0.045) 54%,
    transparent 92%
  );
  box-shadow: inset 2px 0 0 rgba(172, 222, 243, 0.28);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0.94);
  transform-origin: left center;
  transition:
    opacity 0.45s ease,
    transform 0.5s var(--ease);
}

.lyric-line span {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: normal;
}

.lyric-line .lyric-text {
  position: relative;
  z-index: 1;
  background-image: linear-gradient(
    90deg,
    var(--lyric-shine) 0%,
    var(--lyric-shine) var(--lyric-progress),
    var(--lyric-base) var(--lyric-progress),
    var(--lyric-base) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lyric-translation {
  display: block !important;
  color: rgba(178, 207, 221, 0.58);
  font-size: 0.47em;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.45;
  opacity: 0.62;
  overflow: visible;
  white-space: normal;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.lyric-line.is-active .lyric-translation {
  display: block !important;
  color: rgba(206, 232, 243, 0.86);
  opacity: 0.94;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  animation: lyric-translation-in 0.5s 0.06s var(--ease-out) both;
}

.lyrics-panel.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.3s ease,
    transform 0.35s var(--ease),
    visibility 0.3s ease;
}

.lyric-line.is-past {
  --lyric-base: rgba(85, 121, 141, 0.47);
  color: var(--lyric-base);
}

.lyric-line.is-past .lyric-translation {
  opacity: 0.3;
}

.lyric-line.is-near {
  --lyric-base: rgba(136, 176, 197, 0.8);
  color: var(--lyric-base);
}

.lyric-line.is-near .lyric-translation {
  opacity: 0.7;
}

.lyric-line:hover {
  --lyric-base: rgba(197, 223, 235, 0.9);
  color: var(--lyric-base);
  transform: translateX(3px);
}

.lyric-line.is-active {
  --lyric-base: rgba(205, 234, 247, 0.82);
  --lyric-shine: #fbfeff;
  color: var(--lyric-base);
  font-weight: 620;
  letter-spacing: 0.7px;
  opacity: 1;
  transform: translateX(2px);
}

.lyric-line.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.lyric-line.is-active .lyric-text {
  animation: lyric-line-in 0.55s var(--ease-out) both;
}

.lyric-line.is-active span {
  overflow: visible;
}

.lyric-line.is-interlude {
  --lyric-base: rgba(106, 143, 162, 0.56);
  color: var(--lyric-base);
  font-size: 0.76em;
  letter-spacing: 1px;
}

.lyric-line.is-interlude.is-active {
  --lyric-base: rgba(217, 236, 245, 0.6);
  --lyric-shine: #eaf8ff;
  color: var(--lyric-base);
}

.lyric-skeleton {
  position: relative;
  width: 100%;
  min-height: clamp(50px, 4vw, 76px);
}

.lyric-skeleton::before {
  display: block;
  width: var(--w, 60%);
  height: clamp(15px, 1vw, 19px);
  margin-top: clamp(17px, 1.2vw, 23px);
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.095) 45%,
    rgba(255, 255, 255, 0.045) 100%
  );
  background-size: 210% 100%;
  content: "";
  animation: skeleton 1.7s ease-in-out infinite;
}

.lyrics-message {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  max-width: 310px;
  padding: clamp(70px, 7vw, 110px) 0 0 2px;
  color: #6e8999;
  animation: fade-up 0.35s var(--ease);
}

.lyrics-message-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  color: #7e9cab;
  background: rgba(255, 255, 255, 0.03);
}

.lyrics-message strong {
  color: #a4b9c5;
  font-size: 15px;
  font-weight: 500;
}

.lyrics-message span:last-child {
  margin-top: 7px;
  color: #607c8c;
  font-size: 12px;
  line-height: 1.7;
}

.lyrics-shade {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 11%;
  pointer-events: none;
}

.lyrics-shade--top {
  top: 0;
  background: linear-gradient(to bottom, rgba(31, 55, 69, 0.18), transparent);
}

.lyrics-shade--bottom {
  bottom: 0;
  height: 20%;
  background: linear-gradient(to top, rgba(27, 46, 59, 0.37), transparent);
}

.lyrics-tools {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lyrics-panel:hover .lyrics-tools,
.lyrics-panel:focus-within .lyrics-tools {
  opacity: 1;
}

.lyrics-label {
  color: #7895a5;
  font-size: 9px;
  letter-spacing: 1.4px;
}

.lyrics-center-button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #9ab7c6;
  background: rgba(255, 255, 255, 0.04);
}

.lyrics-center-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   底部播放器
   -------------------------------------------------------------------------- */

.player {
  position: relative;
  z-index: 40;
  grid-row: 2;
  grid-column: 1 / -1;
  height: var(--player-h);
  padding-bottom: var(--safe-bottom);
  background:
    linear-gradient(180deg, rgba(20, 37, 47, 0.5), rgba(11, 23, 30, 0.62)),
    radial-gradient(900px 200px at 50% 0, rgba(255, 255, 255, 0.07), transparent 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 -18px 60px rgba(2, 10, 15, 0.14);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  backdrop-filter: blur(30px) saturate(1.4);
  animation: player-reveal 0.62s var(--ease-out);
}

.progress-wrap {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  z-index: 4;
  height: 12px;
  transform: translateY(-50%);
}

.progress-track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(153, 188, 207, 0.17);
  transition: height 0.16s ease;
}

.progress-wrap:hover .progress-track,
.progress-wrap:focus-within .progress-track {
  height: 3px;
}

.progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #6fa4c2, #a7d1e5);
  box-shadow: 0 0 12px rgba(144, 202, 230, 0.37);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s linear;
  will-change: transform;
}

.app.is-seeking .progress-fill {
  transition: none;
}

.progress-hover {
  --hover-x: 0px;
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.progress-wrap.is-hovering .progress-hover {
  opacity: 1;
}

.progress-hover-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--hover-x, 0px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(221, 245, 255, 0.16), rgba(236, 251, 255, 0.56));
  box-shadow: 0 0 10px rgba(181, 230, 250, 0.2);
  transform: translateY(-50%);
  transition: height 0.16s ease;
}

.progress-wrap:hover .progress-hover-fill,
.progress-wrap:focus-within .progress-hover-fill {
  height: 3px;
}

.progress-hover-line {
  position: absolute;
  top: 50%;
  left: var(--hover-x, 0px);
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: rgba(229, 248, 255, 0.82);
  box-shadow: 0 0 10px rgba(173, 224, 247, 0.55);
  transform: translate(-50%, -50%) scaleY(0.45);
  transition: transform 0.18s var(--ease);
}

.progress-wrap.is-hovering .progress-hover-line {
  transform: translate(-50%, -50%) scaleY(1);
}

.progress-hover-time {
  position: absolute;
  bottom: 20px;
  left: clamp(31px, var(--hover-x, 0px), calc(100% - 31px));
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 22, 30, 0.72);
  color: #edf9ff;
  font-family: var(--font-display);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(1, 8, 12, 0.28);
  opacity: 0;
  transform: translate(-50%, 4px) scale(0.96);
  transition:
    opacity 0.16s ease,
    transform 0.2s var(--ease);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.progress-wrap.is-hovering .progress-hover-time {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.seek-slider {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  width: 100%;
  height: 16px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
}

.seek-slider::-webkit-slider-runnable-track {
  height: 2px;
}

.seek-slider::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: #d7eef9;
  box-shadow: 0 0 0 4px rgba(154, 208, 233, 0.15);
  -webkit-appearance: none;
}

.seek-slider::-moz-range-track {
  height: 2px;
}

.seek-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #d7eef9;
}

.player-main {
  height: 100%;
}

.player-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(300px, 1fr);
  align-items: center;
  height: 100%;
  padding: 0 clamp(22px, 1.85vw, 36px);
}

.player-left,
.player-right {
  display: flex;
  align-items: center;
}

.player-left {
  min-width: 0;
  gap: clamp(14px, 1.15vw, 22px);
}

.player-right {
  justify-content: flex-end;
  gap: clamp(10px, 0.9vw, 17px);
}

.player-icon {
  display: grid;
  width: clamp(29px, 1.8vw, 35px);
  height: clamp(29px, 1.8vw, 35px);
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #a9beca;
  opacity: 0.87;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.player-icon .icon {
  width: clamp(17px, 1.05vw, 20px);
  height: clamp(17px, 1.05vw, 20px);
}

.player-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f2f8fb;
  opacity: 1;
}

.player-icon.is-active {
  color: #d5ebf5;
  opacity: 1;
}

.player-icon.is-muted {
  color: #7f99a8;
}

.comment-button {
  display: flex;
  width: auto;
  gap: 5px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: -0.2px;
}

.comment-count {
  color: #a3bac7;
  font-size: clamp(10px, 0.63vw, 12px);
}

.more-button {
  margin-left: 1px;
}

.player-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: clamp(5px, 0.8vw, 15px);
  color: #b6c9d3;
  font-family: var(--font-display);
  font-size: clamp(11px, 0.74vw, 14px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

#current-time {
  color: #dceaf1;
}

.time-divider {
  color: #637e8e;
}

.player-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.15vw, 41px);
}

.transport-button {
  display: grid;
  width: clamp(34px, 2.15vw, 42px);
  height: clamp(34px, 2.15vw, 42px);
  place-items: center;
  border-radius: 50%;
  color: #d8e6ed;
  opacity: 0.9;
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease-spring);
}

.transport-button .icon {
  width: clamp(21px, 1.35vw, 27px);
  height: clamp(21px, 1.35vw, 27px);
}

.transport-button:hover {
  color: #fff;
  opacity: 1;
  transform: scale(1.06);
}

.transport-button:active {
  transform: scale(0.96);
}

.play-button {
  position: relative;
  display: grid;
  width: clamp(66px, 4.4vw, 86px);
  height: clamp(44px, 2.95vw, 56px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.05);
  color: #f7fbfd;
  box-shadow:
    0 10px 30px rgba(2, 10, 16, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s var(--ease-spring);
  will-change: transform;
}

.play-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 14px 38px rgba(2, 10, 16, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: scale(1.035);
}

.play-button:active {
  transform: scale(0.965);
}

.play-button .icon {
  grid-area: 1 / 1;
  width: clamp(20px, 1.3vw, 25px);
  height: clamp(20px, 1.3vw, 25px);
  transition:
    opacity 0.18s ease,
    transform 0.34s var(--ease-spring);
}

.play-button .play-icon {
  margin-left: 2px;
  opacity: 1;
  transform: scale(1) rotate(0);
}

.play-button .pause-icon {
  display: block;
  opacity: 0;
  transform: scale(0.55) rotate(-18deg);
}

.play-button .player-spinner {
  display: none;
}

.is-playing .play-button .play-icon {
  display: block;
  opacity: 0;
  transform: scale(0.55) rotate(18deg);
}

.is-playing .play-button .pause-icon {
  display: block;
  opacity: 1;
  transform: scale(1) rotate(0);
}

.play-button.is-loading .play-icon,
.play-button.is-loading .pause-icon {
  opacity: 0;
}

.play-button.is-loading .player-spinner {
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #f4fbff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.play-button-glow {
  position: absolute;
  inset: -12px -18px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(158, 212, 237, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.is-playing .play-button-glow {
  opacity: 1;
  animation: breathe 3.8s ease-in-out infinite;
}

.quality-pill {
  height: clamp(24px, 1.55vw, 30px);
  padding: 0 clamp(7px, 0.55vw, 10px);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: #93acb9;
  font-size: clamp(10px, 0.67vw, 12px);
  letter-spacing: 0.3px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.quality-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e3f1f7;
}

.word-button {
  position: relative;
  display: grid;
  width: clamp(25px, 1.45vw, 28px);
  height: clamp(25px, 1.45vw, 28px);
  place-items: center;
  border-radius: 5px;
  color: #9eb5c1;
  font-size: clamp(10px, 0.7vw, 13px);
  font-weight: 500;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.word-button:hover {
  color: #f5fbfe;
}

.word-button.is-active {
  color: #d7eaf4;
}

.word-button.is-active::after {
  position: absolute;
  right: 5px;
  bottom: 3px;
  left: 5px;
  height: 1px;
  border-radius: 2px;
  background: rgba(209, 237, 249, 0.75);
  content: "";
}

.volume-popover {
  position: absolute;
  right: clamp(76px, 5.8vw, 112px);
  bottom: calc(100% + 14px);
  z-index: 50;
  display: flex;
  align-items: center;
  width: 47px;
  height: 188px;
  padding: 14px 0 10px;
  flex-direction: column;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(25, 44, 56, 0.96);
  box-shadow: 0 20px 45px rgba(3, 12, 18, 0.26);
  backdrop-filter: blur(20px);
  animation: pop-in 0.18s var(--ease);
}

.volume-value {
  color: #a8bfcb;
  font-family: var(--font-display);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.volume-track {
  position: relative;
  width: 3px;
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.volume-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 75%;
  border-radius: 3px;
  background: #b6d9e9;
}

.volume-slider {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(-90deg);
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #e5f7ff;
  box-shadow: 0 0 0 4px rgba(160, 210, 233, 0.13);
  -webkit-appearance: none;
}

.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #e5f7ff;
}

.volume-mute-button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #8fa9b7;
}

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

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

/* --------------------------------------------------------------------------
   队列抽屉
   -------------------------------------------------------------------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0 0 var(--player-h);
  z-index: 55;
  background: rgba(7, 18, 25, 0.42);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.queue-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: var(--player-h);
  z-index: 60;
  display: flex;
  width: min(468px, 94vw);
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(23, 41, 52, 0.985), rgba(18, 34, 44, 0.99)),
    radial-gradient(500px 300px at 100% 0, rgba(71, 111, 133, 0.17), transparent 70%);
  box-shadow: -30px 0 80px rgba(2, 10, 15, 0.27);
  transform: translate3d(103%, 0, 0);
  transition: transform 0.38s var(--ease-out);
  will-change: transform;
  backface-visibility: hidden;
  backdrop-filter: blur(28px) saturate(1.18);
}

.queue-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex: none;
  padding: clamp(25px, 2.1vw, 34px) clamp(22px, 1.55vw, 28px) 17px;
}

.drawer-kicker {
  display: block;
  margin-bottom: 5px;
  color: #5f7c8d;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
}

.drawer-title {
  color: #f2f8fb;
  font-size: clamp(20px, 1.35vw, 25px);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.drawer-close {
  display: grid;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  place-items: center;
  border-radius: 50%;
  color: #8ea7b5;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

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

.drawer-close .icon {
  width: 18px;
  height: 18px;
}

.drawer-chart {
  flex: none;
  padding: 0 clamp(18px, 1.35vw, 24px) 13px;
}

.chart-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.015);
}

.chart-banner-cover {
  position: relative;
  width: 63px;
  height: 63px;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 16px rgba(4, 14, 20, 0.2);
}

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

.chart-banner-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 4px;
  background: rgba(18, 34, 44, 0.7);
  color: #dfeff7;
  font-size: 9px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.chart-banner-copy {
  min-width: 0;
}

.chart-banner-copy strong {
  display: block;
  color: #eaf4f8;
  font-size: 14px;
  font-weight: 600;
}

.chart-banner-copy p {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #7793a2;
  font-size: 10.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chart-banner-copy span {
  display: block;
  margin-top: 4px;
  color: #557080;
  font-size: 9.5px;
}

.chart-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.chart-tab {
  height: 31px;
  border-radius: 6px;
  color: #7894a4;
  font-size: 11.5px;
  font-weight: 500;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.chart-tab:hover {
  color: #d4e5ed;
}

.chart-tab.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #eff8fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 7px clamp(22px, 1.55vw, 28px) 9px;
  color: #607d8e;
  font-size: 10.5px;
  letter-spacing: 0.3px;
}

.drawer-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  height: 24px;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: #819eae;
  font-size: 9.5px;
  letter-spacing: 0.1px;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.toolbar-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #e5f2f8;
}

.toolbar-button--danger {
  width: 24px;
  padding: 0;
  justify-content: center;
}

.toolbar-button--danger:hover {
  border-color: rgba(232, 103, 120, 0.2);
  background: rgba(232, 103, 120, 0.1);
  color: #f0a0ac;
}

.clear-history {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #607d8e;
  font-size: 10px;
  transition: color 0.2s ease;
}

.clear-history:hover {
  color: #c7dbe5;
}

.queue-list {
  flex: 1;
  min-height: 0;
  padding: 0 10px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.queue-list::-webkit-scrollbar {
  width: 7px;
}

.queue-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.queue-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  gap: 1px;
  padding: 3px 8px 3px 0;
  border-radius: 8px;
  text-align: left;
  transition: background-color 0.18s ease;
}

.queue-main {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 10px;
  padding: 7px 6px 7px 11px;
  border-radius: 7px;
  color: inherit;
  text-align: left;
}

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

.queue-row:focus-within {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(166, 211, 232, 0.15);
}

.queue-row.is-current {
  background:
    linear-gradient(90deg, rgba(118, 168, 193, 0.13), rgba(255, 255, 255, 0.025));
}

.queue-row.is-current::before {
  position: absolute;
  top: 50%;
  left: 1px;
  width: 2px;
  height: 19px;
  border-radius: 2px;
  background: #a8d4e8;
  content: "";
  transform: translateY(-50%);
}

.queue-index {
  width: 21px;
  flex: none;
  color: #617d8d;
  font-family: var(--font-display);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.queue-row.is-current .queue-index {
  color: #b8ddec;
}

.queue-cover {
  position: relative;
  width: 39px;
  height: 39px;
  flex: none;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
}

.queue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.queue-row.is-current .queue-cover img {
  opacity: 1;
}

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

.queue-title {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #dbe8ef;
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-row.is-current .queue-title {
  color: #f5fbfd;
}

.queue-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  overflow: hidden;
  color: #6a8696;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-sub span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-pay {
  flex: none;
  color: #b9975f;
  font-size: 8px;
  letter-spacing: 0.3px;
}

.queue-duration {
  flex: none;
  color: #5b7585;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.queue-like {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #607d8e;
  opacity: 0;
  transition:
    opacity 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.queue-like .icon {
  width: 14px;
  height: 14px;
}

.queue-row:hover .queue-like,
.queue-like.is-liked,
.queue-like:focus-visible {
  opacity: 1;
}

.queue-like:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #dcebf2;
}

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

.queue-like.is-liked .icon {
  fill: currentColor;
}

.queue-remove {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #5f7c8c;
  opacity: 0;
  transition:
    opacity 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.queue-remove .icon {
  width: 13px;
  height: 13px;
}

.queue-row:hover .queue-remove,
.queue-remove:focus-visible {
  opacity: 1;
}

.queue-remove:hover {
  background: rgba(225, 94, 111, 0.11);
  color: #e79aa6;
}

.queue-row.is-unplayable {
  opacity: 0.58;
}

.queue-row.is-unplayable:hover {
  background: rgba(255, 255, 255, 0.03);
}

.queue-equalizer {
  display: flex;
  align-items: flex-end;
  width: 15px;
  height: 13px;
  flex: none;
  gap: 2px;
}

.queue-equalizer i {
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: #b9e1f1;
  animation: equalizer 0.75s ease-in-out infinite alternate;
}

.queue-equalizer i:nth-child(2) {
  height: 9px;
  animation-delay: -0.24s;
}

.queue-equalizer i:nth-child(3) {
  height: 6px;
  animation-delay: -0.48s;
}

.queue-drawer.is-paused .queue-equalizer i {
  animation-play-state: paused;
}

.drawer-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 35px 80px;
  flex-direction: column;
  text-align: center;
  animation: fade-up 0.3s var(--ease);
}

.drawer-empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
  color: #718d9d;
  background: rgba(255, 255, 255, 0.025);
}

.drawer-empty-icon .icon {
  width: 23px;
  height: 23px;
}

.drawer-empty h3 {
  color: #b9ccd6;
  font-size: 14px;
  font-weight: 500;
}

.drawer-empty p {
  max-width: 230px;
  margin-top: 8px;
  color: #607c8c;
  font-size: 11px;
  line-height: 1.7;
}

.drawer-empty .primary-button {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   通用按钮、提示、对话框、错误状态
   -------------------------------------------------------------------------- */

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(223, 239, 247, 0.92);
  color: #1a3546;
  font-size: 12px;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    transform 0.2s var(--ease-spring);
}

.primary-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #9fb7c4;
  font-size: 12px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f4fafc;
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: calc(var(--player-h) + 22px);
  z-index: 120;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(18, 35, 46, 0.96);
  color: #d9e8ef;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 18px 42px rgba(2, 10, 15, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--ease);
  backdrop-filter: blur(18px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast::before {
  width: 5px;
  height: 5px;
  flex: none;
  margin-top: 7px;
  border-radius: 50%;
  background: #8fc9e3;
  content: "";
}

.toast.is-error::before {
  background: #ea6980;
}

.toast.is-success::before {
  background: #87cba7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 18, 25, 0.52);
  backdrop-filter: blur(5px);
  animation: fade-in 0.2s ease;
}

.confirm-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  width: min(380px, calc(100vw - 36px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(24, 43, 55, 0.98);
  box-shadow: 0 30px 80px rgba(2, 10, 15, 0.38);
  transform: translate(-50%, -50%);
  animation: dialog-in 0.25s var(--ease);
  backdrop-filter: blur(24px);
}

.confirm-dialog h2 {
  color: #f1f8fb;
  font-size: 17px;
  font-weight: 600;
}

.confirm-dialog p {
  margin-top: 10px;
  color: #8ba4b2;
  font-size: 12px;
  line-height: 1.75;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.stage-error {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  width: min(400px, calc(100% - 40px));
  padding: 34px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(24, 43, 55, 0.58);
  text-align: center;
  transform: translate(-50%, -54%);
  backdrop-filter: blur(18px);
  animation: fade-up 0.35s var(--ease);
}

.error-orb {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #87a6b6;
  background: rgba(255, 255, 255, 0.035);
}

.stage-error h2 {
  color: #e1edf2;
  font-size: 18px;
  font-weight: 560;
}

.stage-error p {
  margin-top: 8px;
  color: #7893a2;
  font-size: 12px;
  line-height: 1.7;
}

.stage-error .primary-button {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   听歌模式
   -------------------------------------------------------------------------- */

.app.is-focus-mode {
  grid-template-columns: 0 minmax(0, 1fr);
}

.app.is-focus-mode .sidebar {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-20px);
}

.app.is-focus-mode .stage {
  padding-left: 8%;
  justify-content: center;
}

.app.is-focus-mode .stage-group {
  width: min(100%, 1120px);
  transform: translateY(0);
}

.app.is-focus-mode .now-playing {
  grid-template-columns: minmax(320px, var(--cover-size)) minmax(320px, 520px);
  column-gap: clamp(60px, 7vw, 130px);
}

.app.is-focus-mode .lyrics-panel {
  height: calc(var(--cover-size) + 40px);
}

.app.is-focus-mode .stage-head {
  opacity: 0.42;
}

.focus-exit {
  position: fixed;
  top: 22px;
  right: 25px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  height: 32px;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(20, 39, 51, 0.6);
  color: #a7c0cc;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    background-color 0.2s ease;
  backdrop-filter: blur(16px);
}

.app.is-focus-mode .focus-exit {
  opacity: 1;
  pointer-events: auto;
}

.focus-charts {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(20, 39, 51, 0.58);
  box-shadow:
    0 12px 32px rgba(2, 10, 15, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}

.app.is-focus-mode .focus-charts {
  display: flex;
}

.focus-chart {
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  color: #8da9b8;
  font-size: 11px;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.3s var(--ease-spring);
}

.focus-chart:hover {
  color: #f2fbff;
}

.focus-chart.is-active {
  background: rgba(221, 244, 255, 0.9);
  color: #183544;
  font-weight: 600;
}

.focus-chart:active {
  transform: scale(0.94);
}

@media (max-width: 760px) {
  .focus-charts {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .focus-charts::-webkit-scrollbar {
    display: none;
  }

  .focus-chart {
    height: 27px;
    padding: 0 11px;
    font-size: 10px;
  }

  .app.is-focus-mode .focus-exit {
    top: 54px;
    right: 12px;
    height: 28px;
    font-size: 10px;
  }
}

.focus-exit:hover {
  background: rgba(31, 56, 70, 0.86);
  color: #fff;
}

/* --------------------------------------------------------------------------
   NoScript
   -------------------------------------------------------------------------- */

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 999;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #203a49;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   登录 / 注册 / 账号菜单
   -------------------------------------------------------------------------- */

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 108;
  background: rgba(5, 16, 23, 0.65);
  animation: fade-in 0.22s ease;
  backdrop-filter: blur(8px);
}

.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 109;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
  padding: 28px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(360px 250px at 80% 0, rgba(95, 142, 165, 0.16), transparent 65%),
    linear-gradient(160deg, rgba(31, 53, 66, 0.99), rgba(18, 35, 45, 0.995));
  box-shadow:
    0 34px 95px rgba(0, 7, 12, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%);
  animation: dialog-in 0.3s var(--ease-out);
  will-change: transform, opacity;
  backface-visibility: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.auth-modal::-webkit-scrollbar {
  width: 6px;
}

.auth-modal::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #8ba6b5;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

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

.auth-close .icon {
  width: 17px;
  height: 17px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-brand img {
  width: 30px;
  height: auto;
}

.auth-kicker {
  display: block;
  margin-bottom: 2px;
  color: #6d8d9d;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.1px;
}

.auth-brand h2 {
  color: #f4fafc;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: 0.2px;
}

.auth-description {
  margin-bottom: 20px;
  color: #7e9aa9;
  font-size: 12px;
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab {
  height: 34px;
  border-radius: 6px;
  color: #7894a4;
  font-size: 12px;
  font-weight: 500;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-tab:hover {
  color: #d3e4ec;
}

.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #f2fafd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field > span {
  color: #86a2b1;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-label-row > span {
  color: #86a2b1;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.auth-forgot {
  padding: 0;
  color: #86b7cd;
  font-size: 10px;
  transition: color 0.18s ease;
}

.auth-forgot:hover {
  color: #d7f1fb;
}

.auth-back-login {
  display: block;
  margin: 13px auto 0;
  color: #86b7cd;
  font-size: 10.5px;
  transition: color 0.18s ease;
}

.auth-back-login:hover {
  color: #e2f6fd;
}

.auth-field input,
.playlist-dialog input {
  width: 100%;
  height: 41px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  outline: none;
  background: rgba(10, 25, 34, 0.35);
  color: #f2f9fc;
  font-size: 12.5px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-field input::placeholder,
.playlist-dialog input::placeholder {
  color: #5f7a8a;
}

.auth-field input:focus,
.playlist-dialog input:focus {
  border-color: rgba(150, 204, 229, 0.32);
  background: rgba(10, 25, 34, 0.52);
  box-shadow: 0 0 0 3px rgba(122, 181, 209, 0.07);
}

.auth-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-code-row input {
  min-width: 0;
  flex: 1;
  letter-spacing: 4px;
}

.code-button {
  height: 41px;
  flex: none;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #b7ced9;
  font-size: 10.5px;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.code-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.code-button:disabled {
  color: #617c8c;
  cursor: default;
}

.auth-submit {
  height: 42px;
  margin-top: 3px;
  border-radius: 8px;
  background: rgba(224, 241, 249, 0.94);
  color: #193545;
  font-size: 12.5px;
  font-weight: 650;
  transition:
    background-color 0.2s ease,
    transform 0.2s var(--ease-spring),
    opacity 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.form-error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(236, 105, 123, 0.16);
  border-radius: 6px;
  background: rgba(203, 68, 88, 0.08);
  color: #e89ba7;
  font-size: 10.5px;
  line-height: 1.55;
}

.auth-footnote {
  margin-top: 16px;
  color: #577383;
  font-size: 9.5px;
  line-height: 1.6;
  text-align: center;
}

.account-menu {
  position: fixed;
  top: calc(var(--topbar-h) + 7px);
  right: clamp(22px, 1.85vw, 36px);
  z-index: 80;
  width: 252px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(28, 49, 61, 0.98), rgba(18, 35, 45, 0.99));
  box-shadow:
    0 22px 58px rgba(2, 10, 15, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: pop-in 0.18s var(--ease);
  backdrop-filter: blur(24px);
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-summary img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

.account-copy strong {
  display: block;
  overflow: hidden;
  color: #f0f8fb;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7895a4;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-stats {
  display: flex;
  gap: 18px;
  padding: 11px 4px;
  color: #6d8998;
  font-size: 10px;
}

.account-stats strong {
  margin-right: 3px;
  color: #cfe3ec;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.account-action {
  display: flex;
  align-items: center;
  width: 100%;
  height: 35px;
  gap: 8px;
  padding: 0 8px;
  border-radius: 6px;
  color: #a8beca;
  font-size: 11px;
  text-align: left;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

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

.account-action .icon {
  width: 15px;
  height: 15px;
}

.account-action--danger {
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0 0 6px 6px;
  color: #b98c96;
}

.account-action--danger:hover {
  color: #f1abb7;
}

/* --------------------------------------------------------------------------
   自定义头像
   -------------------------------------------------------------------------- */

.password-backdrop {
  position: fixed;
  inset: 0;
  z-index: 112;
  background: rgba(5, 16, 23, 0.66);
  animation: fade-in 0.22s ease;
  backdrop-filter: blur(8px);
}

.password-dialog {
  z-index: 113;
  width: min(420px, calc(100vw - 32px));
}

.password-dialog-head {
  margin: 2px 0 18px;
  padding-right: 24px;
}

.password-dialog-head .dialog-kicker {
  margin-bottom: 5px;
}

.password-dialog-head h2 {
  color: #f1f9fc;
  font-size: 20px;
  font-weight: 620;
}

.password-dialog-head p {
  margin-top: 7px;
  color: #7e9aa9;
  font-size: 11px;
  line-height: 1.65;
}

.password-dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-dialog .confirm-actions {
  margin-top: 7px;
}

/* --------------------------------------------------------------------------
   评论
   -------------------------------------------------------------------------- */

.comments-backdrop {
  position: fixed;
  inset: 0;
  z-index: 114;
  background: rgba(5, 16, 23, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade-in 0.22s ease;
}

.comments-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 115;
  display: flex;
  width: min(520px, calc(100vw - 32px));
  max-height: min(78dvh, 680px);
  padding: 24px 24px 18px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(340px 240px at 84% 0, rgba(103, 157, 182, 0.18), transparent 64%),
    linear-gradient(160deg, rgba(31, 55, 69, 0.94), rgba(13, 29, 39, 0.96));
  box-shadow:
    0 34px 90px rgba(2, 10, 15, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: translate(-50%, -50%);
  animation: dialog-in 0.26s var(--ease-out);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  backdrop-filter: blur(32px) saturate(1.5);
}

.comments-head {
  padding-right: 26px;
}

.comments-head h2 {
  color: #f1f9fc;
  font-size: 20px;
  font-weight: 620;
}

.comments-head p {
  margin-top: 5px;
  overflow: hidden;
  color: #7e9aa9;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comments-list {
  min-height: 90px;
  margin-top: 16px;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.comments-list::-webkit-scrollbar {
  width: 5px;
}

.comments-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.comment-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.comment-main {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f8b9a;
  font-size: 10px;
}

.comment-meta strong {
  overflow: hidden;
  color: #c7dde8;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-content {
  margin-top: 5px;
  color: #c9dbe4;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-delete {
  margin-left: auto;
  color: #a57983;
  font-size: 10px;
}

.comment-delete:hover {
  color: #f0aab6;
}

.comments-empty {
  padding: 26px 12px;
  color: #6f8b9a;
  font-size: 11px;
  text-align: center;
}

.comments-form {
  display: flex;
  margin-top: 12px;
  padding-top: 14px;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.comments-form textarea {
  width: 100%;
  min-height: 58px;
  max-height: 120px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  outline: none;
  background: rgba(9, 23, 32, 0.42);
  color: #eef8fc;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.comments-form textarea:focus {
  border-color: rgba(150, 204, 229, 0.32);
  background: rgba(9, 23, 32, 0.58);
}

.comments-form textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.comments-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comments-login-hint {
  color: #6f8b9a;
  font-size: 10px;
}

.comments-actions .primary-button {
  min-width: 92px;
  height: 34px;
  font-size: 11px;
}

@media (max-width: 560px) {
  .comments-dialog {
    width: calc(100vw - 20px);
    max-height: 82dvh;
    padding: 20px 18px 14px;
  }

  .comments-list {
    max-height: 42dvh;
  }
}

/* --------------------------------------------------------------------------
   听歌模式页面
   -------------------------------------------------------------------------- */

.listening-page {
  width: 100%;
  min-height: 100%;
  padding: 10px clamp(24px, 3.4vw, 58px) 42px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.app.is-listening .stage,
.app.is-listening .stage-error {
  display: none;
}

.listening-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 26px;
}

.listening-kicker {
  display: block;
  margin-bottom: 6px;
  color: #6f8c9b;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.1px;
}

.listening-head h1 {
  color: #f4fbfe;
  font-size: clamp(30px, 2.7vw, 44px);
  font-weight: 650;
  letter-spacing: 0.3px;
}

.listening-head p {
  margin-top: 8px;
  color: #7894a4;
  font-size: 12px;
  line-height: 1.7;
}

.listening-back {
  height: 34px;
  flex: none;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #a8c1cf;
  font-size: 11px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.listening-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.listening-block {
  margin-bottom: 34px;
}

.listening-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.listening-block-head h2 {
  color: #dcecf3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.listening-block-head p {
  color: #617e8e;
  font-size: 10px;
}

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

.mode-card {
  display: flex;
  min-height: 68px;
  padding: 15px 18px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.065);
  color: #dcebf2;
  text-align: left;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.25s var(--ease-spring);
}

.mode-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.mode-card.is-active {
  border-color: rgba(185, 229, 249, 0.32);
  background: rgba(198, 233, 249, 0.12);
}

.mode-card strong {
  color: #e8f4fa;
  font-size: 13px;
  font-weight: 580;
}

.mode-card span {
  color: #7894a4;
  font-size: 10px;
}

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

.playlist-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  transition:
    transform 0.3s var(--ease-spring),
    border-color 0.2s ease;
}

.playlist-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.playlist-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

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

.playlist-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(4, 12, 18, 0.86));
  pointer-events: none;
}

.playlist-card-copy {
  position: absolute;
  right: 11px;
  bottom: 10px;
  left: 11px;
  z-index: 1;
}

.playlist-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f4fbfe;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.playlist-card-copy span {
  display: block;
  margin-top: 4px;
  color: rgba(206, 229, 240, 0.65);
  font-size: 9px;
}

.listening-empty {
  padding: 30px 12px;
  color: #6f8b9a;
  font-size: 11px;
  text-align: center;
}

.listening-tracks {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.listening-tracks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 14px;
}

.listening-tracks-head h2 {
  color: #eaf6fb;
  font-size: 18px;
  font-weight: 620;
}

.listening-tracks-head p {
  margin-top: 5px;
  color: #6f8b9a;
  font-size: 10px;
}

.listening-tracks-head .primary-button {
  height: 34px;
  padding: 0 16px;
  font-size: 11px;
}

.playlist-track-list {
  display: flex;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
  flex-direction: column;
  scrollbar-width: thin;
}

.playlist-track {
  display: grid;
  grid-template-columns: 30px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #a9c0cd;
  font-size: 11px;
  text-align: left;
  transition: background-color 0.18s ease;
}

.playlist-track:hover {
  background: rgba(255, 255, 255, 0.055);
}

.playlist-track.is-active {
  background: rgba(160, 215, 239, 0.1);
  color: #f1fbff;
}

.playlist-track-index {
  color: #5e7a89;
  font-family: var(--font-display);
  font-size: 9px;
  text-align: center;
}

.playlist-track img {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  object-fit: cover;
}

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

.playlist-track-copy strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-track-copy span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #6f8b9a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-track-time {
  color: #5e7a89;
  font-size: 10px;
}

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

@media (max-width: 920px) {
  .mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .listening-page {
    padding: 8px 18px 32px;
  }

  .listening-head {
    padding-top: 4px;
    padding-bottom: 18px;
  }

  .listening-head h1 {
    font-size: 28px;
  }

  .listening-head p {
    max-width: 250px;
  }

  .listening-back {
    height: 30px;
    padding: 0 12px;
  }

  .listening-block {
    margin-bottom: 26px;
  }

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

  .mode-card {
    min-height: 58px;
    padding: 11px 13px;
  }

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

  .playlist-track-list {
    max-height: 48vh;
  }
}

.avatar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 112;
  background: rgba(5, 16, 23, 0.66);
  animation: fade-in 0.22s ease;
  backdrop-filter: blur(8px);
}

.avatar-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 113;
  width: min(456px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 27px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(360px 260px at 82% 0, rgba(100, 151, 175, 0.17), transparent 64%),
    linear-gradient(160deg, rgba(31, 53, 66, 0.995), rgba(18, 35, 45, 0.995));
  box-shadow:
    0 34px 95px rgba(0, 7, 12, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%);
  animation: dialog-in 0.3s var(--ease-out);
  will-change: transform, opacity;
  backface-visibility: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.avatar-dialog::-webkit-scrollbar {
  width: 6px;
}

.avatar-dialog::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.avatar-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #8ba6b5;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.3s var(--ease-spring);
}

.avatar-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: rotate(90deg);
}

.avatar-close .icon {
  width: 17px;
  height: 17px;
}

.avatar-dialog-head {
  margin-bottom: 20px;
  padding-right: 26px;
}

.avatar-dialog-head h2 {
  color: #f1f9fc;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: 0.2px;
}

.avatar-dialog-head p {
  margin-top: 8px;
  color: #7e9aa9;
  font-size: 11.5px;
  line-height: 1.65;
}

.avatar-editor {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.avatar-dropzone {
  position: relative;
  width: 156px;
  height: 156px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 20%, rgba(148, 197, 219, 0.18), transparent 56%),
    #1b3343;
  box-shadow:
    0 18px 38px rgba(3, 13, 19, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: pointer;
  touch-action: none;
  transition:
    transform 0.3s var(--ease-spring),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
}

.avatar-dropzone:hover {
  border-color: rgba(173, 218, 239, 0.28);
  transform: scale(1.018);
}

.avatar-dropzone.is-dragging {
  cursor: grabbing;
  transform: scale(1.02);
}

.avatar-dropzone.is-dragover {
  border-color: rgba(177, 226, 248, 0.72);
  box-shadow:
    0 0 0 5px rgba(138, 201, 230, 0.12),
    0 18px 38px rgba(3, 13, 19, 0.3);
  transform: scale(1.04);
}

.avatar-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transform-origin: center;
  will-change: transform;
  transition: filter 0.3s ease;
}

.avatar-dropzone.is-dragging .avatar-preview-image {
  filter: brightness(0.92);
}

.avatar-crop-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 7px rgba(18, 35, 46, 0.12),
    inset 0 0 46px rgba(2, 12, 18, 0.32);
  pointer-events: none;
}

.avatar-dropzone-hint {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  color: #d3e7f0;
  font-size: 9.5px;
  letter-spacing: 0.2px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(3, 14, 20, 0.7);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.avatar-dropzone.has-image .avatar-dropzone-hint {
  opacity: 0;
}

.avatar-editor-side {
  min-width: 0;
}

.avatar-editor-tip {
  color: #86a2b1;
  font-size: 10.5px;
  line-height: 1.65;
}

.avatar-zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: #7995a4;
  font-size: 10px;
}

.avatar-zoom input {
  width: 100%;
  margin: 0;
  accent-color: #a8d4e8;
  cursor: pointer;
}

.avatar-zoom input:disabled {
  cursor: default;
  opacity: 0.4;
}

.avatar-zoom output {
  min-width: 34px;
  color: #b9d3df;
  font-family: var(--font-display);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.avatar-choose {
  width: 100%;
  margin-top: 15px;
  gap: 6px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.25s var(--ease-spring);
}

.avatar-choose:hover {
  transform: translateY(-1px);
}

.avatar-choose .icon {
  width: 14px;
  height: 14px;
  color: #9fc2d2;
}

.avatar-file-note {
  margin-top: 9px;
  color: #5e7989;
  font-size: 9px;
  line-height: 1.55;
}

.avatar-dialog .form-error {
  margin-top: 14px;
}

.avatar-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 21px;
}

.avatar-dialog-confirm {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar-reset {
  color: #9b8990;
}

.avatar-reset:hover {
  border-color: rgba(232, 129, 146, 0.2);
  background: rgba(203, 68, 88, 0.08);
  color: #e7a4ae;
}

.avatar-dialog .primary-button {
  position: relative;
  overflow: hidden;
}

.avatar-dialog .primary-button::after {
  position: absolute;
  top: -40%;
  left: -60%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  content: "";
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
}

.avatar-dialog .primary-button:hover::after {
  left: 130%;
}

.playlist-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 111;
  width: min(372px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background:
    radial-gradient(300px 200px at 85% 0, rgba(96, 145, 168, 0.14), transparent 68%),
    linear-gradient(160deg, rgba(31, 53, 66, 0.99), rgba(18, 35, 45, 0.995));
  box-shadow: 0 30px 80px rgba(0, 7, 12, 0.44);
  transform: translate(-50%, -50%);
  animation: dialog-in 0.26s var(--ease-out);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.playlist-dialog-head {
  margin-bottom: 20px;
}

.dialog-kicker {
  display: block;
  margin-bottom: 4px;
  color: #648291;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.9px;
}

.playlist-dialog h2 {
  color: #f1f9fc;
  font-size: 19px;
  font-weight: 600;
}

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

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   交互微动效
   统一使用弹簧缓动，让 hover / active / focus 的反馈更连贯。
   -------------------------------------------------------------------------- */

:where(button, a[href], [role="button"], input[type="range"]) {
  -webkit-tap-highlight-color: transparent;
}

.nav-item {
  transition:
    color 0.24s ease,
    background-color 0.28s ease,
    transform 0.3s var(--ease-spring);
}

.nav-item::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 0;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, rgba(207, 240, 253, 0.96), rgba(124, 185, 214, 0.4));
  box-shadow: 0 0 12px rgba(160, 216, 241, 0.48);
  content: "";
  opacity: 0;
  transform: translateY(-50%);
  transition:
    height 0.34s var(--ease-spring),
    opacity 0.25s ease;
}

.nav-item:hover::before {
  height: 34%;
  opacity: 0.55;
}

.nav-item.is-active::before {
  height: 58%;
  opacity: 1;
}

.nav-item .nav-icon {
  transition:
    transform 0.34s var(--ease-spring),
    color 0.24s ease;
}

.nav-item:hover .nav-icon {
  transform: translateX(2px) scale(1.06);
}

.nav-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.side-add {
  transition:
    color 0.2s ease,
    background-color 0.24s ease,
    transform 0.38s var(--ease-spring);
}

.side-add:hover {
  transform: rotate(90deg) scale(1.08);
}

.side-add:active {
  transform: rotate(90deg) scale(0.92);
}

.playlist-item {
  transition:
    color 0.22s ease,
    background-color 0.28s ease,
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease;
}

.playlist-item:hover {
  transform: translateX(3px);
}

.playlist-item.is-active {
  box-shadow: inset 2px 0 0 rgba(167, 219, 241, 0.55);
}

.playlist-login-entry {
  transition:
    color 0.22s ease,
    background-color 0.28s ease,
    transform 0.3s var(--ease-spring);
}

.playlist-login-entry:hover {
  transform: translateX(3px);
}

.mobile-nav-button,
.chrome-button,
.window-button,
.player-icon,
.transport-button,
.drawer-close,
.auth-close,
.lyrics-center-button,
.volume-mute-button,
.comment-button,
.more-button {
  transition:
    color 0.2s ease,
    background-color 0.26s ease,
    box-shadow 0.3s ease,
    opacity 0.22s ease,
    transform 0.3s var(--ease-spring);
}

.mobile-nav-button:hover,
.chrome-button:hover:not(:disabled),
.window-button:hover,
.volume-mute-button:hover {
  transform: scale(1.08);
}

.mobile-nav-button:active,
.chrome-button:active:not(:disabled),
.window-button:active,
.volume-mute-button:active {
  transform: scale(0.9);
}

.window-button .icon,
.chrome-button .icon,
.mobile-nav-button .icon {
  transition: transform 0.32s var(--ease-spring);
}

.close-button:hover .icon,
.drawer-close:hover .icon,
.auth-close:hover .icon,
.avatar-close:hover .icon {
  transform: rotate(90deg);
}

.minimize-button:hover .icon {
  transform: translateY(2px);
}

.player-icon:hover {
  transform: translateY(-1px) scale(1.06);
}

.player-icon:active,
.transport-button:active {
  transform: scale(0.92);
}

.player-icon .icon,
.transport-button .icon,
.quality-pill,
.word-button {
  transition:
    transform 0.32s var(--ease-spring),
    color 0.2s ease,
    background-color 0.26s ease,
    box-shadow 0.3s ease;
}

.player-icon:hover .icon {
  transform: scale(1.1);
}

.transport-button:hover .icon {
  transform: scale(1.08);
}

.transport-button:hover {
  box-shadow: 0 6px 18px rgba(3, 13, 19, 0.14);
}

.like-button {
  position: relative;
}

.like-button::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 72, 128, 0.6);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.like-button.is-pulsing::after {
  animation: like-burst 0.58s var(--ease-out);
}

.like-button:hover .icon {
  transform: scale(1.08);
}

.follow-button {
  transition:
    color 0.2s ease,
    background-color 0.26s ease,
    transform 0.28s var(--ease-spring);
}

.follow-button:hover {
  transform: translateY(-1px);
}

.follow-button:active {
  transform: scale(0.94);
}

.search-icon {
  transition:
    color 0.24s ease,
    transform 0.34s var(--ease-spring);
}

.search-shell:focus-within .search-icon {
  color: #e2f5fd;
  transform: scale(1.1);
}

.search-clear {
  transition:
    background-color 0.22s ease,
    transform 0.32s var(--ease-spring);
}

.search-clear:hover {
  transform: scale(1.1) rotate(90deg);
}

.search-result {
  transition:
    background-color 0.22s ease,
    transform 0.3s var(--ease-spring);
}

.search-result:hover,
.search-result.is-selected {
  transform: translateX(3px);
}

.search-result img {
  transition: transform 0.42s var(--ease);
}

.search-result:hover img {
  transform: scale(1.07);
}

.top-pill {
  position: relative;
  overflow: hidden;
}

.top-pill > * {
  position: relative;
  z-index: 1;
}

.top-pill::after {
  position: absolute;
  top: -40%;
  left: -70%;
  width: 45%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
}

.top-pill:hover::after {
  left: 130%;
}

.top-pill:active {
  transform: translateY(0) scale(0.96);
}

.chart-switch .icon {
  transition: transform 0.36s var(--ease-spring);
}

.chart-switch:hover .icon {
  transform: rotate(180deg);
}

.track-artist.is-link {
  transition:
    color 0.22s ease,
    transform 0.3s var(--ease-spring);
}

.track-artist.is-link:hover {
  transform: translateX(2px);
}

.cover-sheen {
  transition:
    opacity 0.4s ease,
    transform 0.8s var(--ease);
}

.cover-wrap:hover .cover-sheen {
  opacity: 0.62;
  transform: translateX(2%);
}

.cover-play .icon {
  transition:
    opacity 0.18s ease,
    transform 0.32s var(--ease-spring);
}

.cover-play:hover .icon {
  transform: scale(1.08);
}

.lyrics-center-button:hover .icon {
  transform: rotate(180deg);
}

.lyrics-center-button .icon {
  transition: transform 0.5s var(--ease-spring);
}

.chart-tab,
.auth-tab {
  transition:
    color 0.2s ease,
    background-color 0.28s ease,
    box-shadow 0.3s ease,
    transform 0.28s var(--ease-spring);
}

.chart-tab:hover,
.auth-tab:hover {
  transform: translateY(-1px);
}

.chart-tab:active,
.auth-tab:active {
  transform: scale(0.96);
}

.chart-tab.is-active,
.auth-tab.is-active {
  transform: translateY(0);
}

.toolbar-button {
  transition:
    color 0.18s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    transform 0.28s var(--ease-spring);
}

.toolbar-button:hover {
  transform: translateY(-1px);
}

.toolbar-button:active {
  transform: scale(0.94);
}

.clear-history {
  transition:
    color 0.2s ease,
    transform 0.28s var(--ease-spring);
}

.clear-history:hover {
  transform: translateX(2px);
}

.queue-row {
  transition:
    background-color 0.22s ease,
    transform 0.32s var(--ease-spring);
}

.queue-row:hover {
  transform: translateX(2px);
}

.queue-row.is-current::before {
  transition:
    height 0.3s var(--ease-spring),
    opacity 0.25s ease;
}

.queue-cover img {
  transition:
    opacity 0.28s ease,
    transform 0.45s var(--ease);
}

.queue-row:hover .queue-cover img {
  transform: scale(1.09);
}

.queue-like,
.queue-remove {
  transform: scale(0.72);
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    background-color 0.22s ease,
    transform 0.3s var(--ease-spring);
}

.queue-row:hover .queue-like,
.queue-like.is-liked,
.queue-like:focus-visible,
.queue-row:hover .queue-remove,
.queue-remove:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.queue-like:hover,
.queue-remove:hover {
  transform: scale(1.12);
}

.queue-title-text {
  transition: color 0.24s ease;
}

.queue-row:hover .queue-title-text {
  color: #f2fafd;
}

.drawer-toolbar-actions {
  transition: opacity 0.25s ease;
}

.account-action {
  transition:
    color 0.18s ease,
    background-color 0.24s ease,
    transform 0.3s var(--ease-spring);
}

.account-action:hover {
  transform: translateX(3px);
}

.account-action .icon {
  transition:
    color 0.2s ease,
    transform 0.3s var(--ease-spring);
}

.account-action:hover .icon {
  transform: scale(1.1);
}

.account-summary img.is-swapping {
  animation: avatar-swap 0.45s var(--ease-out);
}

.primary-button,
.ghost-button,
.auth-submit,
.code-button,
.auth-tab,
.chart-tab {
  will-change: transform;
}

.primary-button,
.auth-submit {
  position: relative;
  overflow: hidden;
}

.primary-button::after,
.auth-submit::after {
  position: absolute;
  top: -40%;
  left: -65%;
  width: 42%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-20deg);
  transition: left 0.58s var(--ease);
}

.primary-button:hover::after,
.auth-submit:hover:not(:disabled)::after {
  left: 135%;
}

.primary-button:hover,
.auth-submit:hover:not(:disabled) {
  box-shadow:
    0 10px 24px rgba(2, 12, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.primary-button:active,
.ghost-button:active,
.auth-submit:active:not(:disabled),
.code-button:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.quality-pill:hover {
  transform: translateY(-1px);
}

.quality-pill:active {
  transform: scale(0.94);
}

.word-button::after {
  position: absolute;
  right: 5px;
  bottom: 3px;
  left: 5px;
  height: 1px;
  border-radius: 2px;
  background: rgba(209, 237, 249, 0.75);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s var(--ease);
}

.word-button.is-active::after {
  transform: scaleX(1);
}

.volume-fill {
  transition: height 0.2s var(--ease);
}

.focus-exit {
  transition:
    opacity 0.25s ease,
    background-color 0.24s ease,
    color 0.2s ease,
    transform 0.3s var(--ease-spring);
}

.focus-exit:hover {
  transform: translateY(-1px);
}

.toast {
  transform: translate3d(16px, 8px, 0) scale(0.98);
}

.toast.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* 歌词的阅读节奏：正在播放时，页脚歌词标签会轻轻呼吸。 */
.is-playing .lyrics-label {
  animation: lyric-label-breathe 2.8s ease-in-out infinite;
}

.is-playing .signal i {
  animation-play-state: running;
}

.app:not(.is-playing) .signal i {
  animation-play-state: paused;
  opacity: 0.5;
}

.track-title.is-swapping,
.track-artist.is-swapping {
  animation: track-swap 0.45s var(--ease-out);
}

.nav-count.is-bumping {
  animation: count-bump 0.42s var(--ease-spring);
}

.avatar-dropzone .avatar-preview-image {
  transition:
    transform 0.18s var(--ease),
    filter 0.3s ease;
}

.avatar-dropzone.is-dragging .avatar-preview-image {
  transition: filter 0.3s ease;
}

.form-error {
  animation: error-in 0.3s var(--ease-out);
}

.auth-field {
  animation: field-in 0.34s var(--ease-out) both;
}

.auth-tabs,
.chart-tabs {
  transition: box-shadow 0.3s ease;
}

/* --------------------------------------------------------------------------
   动效
   -------------------------------------------------------------------------- */

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

@keyframes signal {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

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

@keyframes equalizer {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes heart-pulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.2);
  }
  65% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes topbar-reveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes content-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes player-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes avatar-swap {
  0% {
    opacity: 0.35;
    filter: blur(2px);
    transform: scale(0.86) rotate(-5deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) rotate(0);
  }
}

@keyframes avatar-pop {
  0% {
    box-shadow: 0 0 0 0 rgba(174, 226, 247, 0.5);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 0 0 7px rgba(174, 226, 247, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(174, 226, 247, 0);
    transform: scale(1);
  }
}

@keyframes like-burst {
  0% {
    opacity: 0.9;
    transform: scale(0.55);
  }
  70% {
    opacity: 0.32;
  }
  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@keyframes lyric-line-in {
  0% {
    opacity: 0.25;
    transform: translate3d(7px, 6px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes lyric-translation-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lyric-label-breathe {
  0%,
  100% {
    opacity: 0.52;
    letter-spacing: 1.4px;
  }
  50% {
    opacity: 1;
    letter-spacing: 1.9px;
  }
}

@keyframes track-swap {
  0% {
    opacity: 0.18;
    filter: blur(2px);
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes count-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.24);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes error-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes field-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1320px) {
  .stage {
    padding-left: 12%;
  }

  .now-playing {
    grid-template-columns: var(--cover-size) minmax(230px, 370px);
    column-gap: clamp(30px, 3.6vw, 54px);
  }

  .player-inner {
    grid-template-columns: minmax(220px, 1fr) auto minmax(265px, 1fr);
  }
}

@media (max-width: 1120px) {
  :root {
    --cover-size: clamp(280px, 27vw, 340px);
  }

  .stage {
    padding-left: clamp(26px, 5.5vw, 64px);
  }

  .now-playing {
    grid-template-columns: var(--cover-size) minmax(220px, 1fr);
    column-gap: clamp(28px, 4vw, 45px);
  }

  .search-shell {
    width: clamp(240px, 25vw, 300px);
  }

  .window-button.minimize-button {
    display: none;
  }

  .topbar-right {
    gap: 6px;
  }

  .quality-pill {
    display: none;
  }

  .player-inner {
    grid-template-columns: minmax(180px, 1fr) auto minmax(210px, 1fr);
  }

  .player-left {
    gap: 8px;
  }

  .comment-count {
    display: none;
  }

  .comment-button {
    width: clamp(29px, 1.8vw, 35px);
    padding: 0;
  }

  .player-right {
    gap: 7px;
  }

  .lyric-line {
    font-size: clamp(22px, 2.35vw, 28px);
  }
}

@media (max-width: 920px) {
  :root {
    --sidebar-w: 0px;
    --cover-size: clamp(280px, 37vw, 340px);
    --topbar-h: 64px;
  }

  .queue-like {
    opacity: 0.85;
    transform: scale(1);
  }

  .queue-remove {
    opacity: 0.7;
    transform: scale(1);
  }

  .workspace {
    grid-column: 1 / -1;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: var(--player-h);
    left: 0;
    z-index: 90;
    display: flex;
    width: min(84vw, 300px);
    visibility: hidden;
    opacity: 0;
    background:
      linear-gradient(180deg, rgba(17, 32, 41, 0.82), rgba(12, 25, 33, 0.74)),
      radial-gradient(420px 320px at 0 0, rgba(255, 255, 255, 0.055), transparent 70%);
    box-shadow: 24px 0 70px rgba(2, 10, 15, 0.32);
    transform: translateX(-103%);
    transition:
      transform 0.32s var(--ease),
      opacity 0.25s ease,
      visibility 0s linear 0.32s;
  }

  .app.is-mobile-nav-open .sidebar {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition:
      transform 0.32s var(--ease),
      opacity 0.25s ease,
      visibility 0s linear 0s;
  }

  .mobile-nav-button {
    display: grid;
  }

  .topbar {
    padding: 0 18px;
  }

  .search-shell {
    width: clamp(230px, 38vw, 330px);
    margin-left: auto;
  }

  .topbar-left {
    gap: 2px;
  }

  .history-button {
    display: none;
  }

  .ai-pill span,
  .svip-pill,
  .top-divider,
  .window-button {
    display: none;
  }

  .ai-pill {
    width: 34px;
    padding: 0;
  }

  .avatar-button {
    width: 36px;
    height: 36px;
  }

  .stage {
    padding-left: clamp(24px, 6vw, 50px);
  }

  .app.is-focus-mode .stage {
    padding-left: 6%;
  }

  .app.is-focus-mode .now-playing {
    grid-template-columns: minmax(280px, var(--cover-size)) minmax(260px, 1fr);
    column-gap: clamp(36px, 6vw, 66px);
  }

  .player-inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 18px;
  }

  .player-left .more-button,
  .player-left .player-time {
    display: none;
  }

  .player-right .word-button {
    display: none;
  }

  .player-center {
    gap: clamp(15px, 3.5vw, 29px);
  }

  .drawer-backdrop {
    bottom: 0;
  }

  .queue-drawer {
    bottom: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --player-h: 102px;
    --cover-size: min(64vw, 330px);
  }

  .app {
    overflow: hidden;
  }

  .topbar {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 14px;
  }

  .search-shell {
    width: auto;
    height: 38px;
    flex: 1;
    min-width: 0;
    margin-left: 0;
  }

  .topbar-right {
    flex: none;
  }

  .topbar-right .ai-pill {
    display: none;
  }

  .account-menu {
    top: calc(var(--topbar-h) + 5px);
    right: 14px;
  }

  .content {
    padding: 0 18px;
    overflow-y: auto;
  }

  .stage {
    align-items: flex-start;
    min-height: auto;
    padding: 20px 0 38px;
  }

  .stage-group {
    width: 100%;
    gap: 16px;
    transform: none;
  }

  .stage-head {
    justify-content: center;
  }

  .now-playing {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .artwork-column {
    display: flex;
    align-items: center;
    width: min(100%, 360px);
    margin: 0 auto;
    flex-direction: column;
  }

  .cover-wrap {
    width: var(--cover-size);
  }

  .track-meta {
    width: var(--cover-size);
    margin-top: 17px;
  }

  .track-facts {
    width: var(--cover-size);
  }

  .lyrics-panel {
    width: 100%;
    height: min(46vh, 380px);
    border-top: 1px solid rgba(255, 255, 255, 0.045);
  }

  .lyrics-scroll {
    padding-top: 24px;
  }

  .lyrics-tools {
    opacity: 0.7;
  }

  .lyric-line {
    min-height: 55px;
    font-size: clamp(21px, 5.6vw, 27px);
  }

  .lyrics-shade--top {
    height: 6%;
  }

  .player-inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 12px;
  }

  .player-left {
    gap: 2px;
  }

  .player-left .comment-button,
  .player-left .player-icon:not(.more-button) {
    display: none;
  }

  .player-right .quality-pill,
  .player-right .window-button,
  .player-right .word-button {
    display: none;
  }

  .player-right {
    gap: 3px;
  }

  .player-center {
    gap: 17px;
  }

  .transport-button {
    width: 36px;
    height: 36px;
  }

  .play-button {
    width: 66px;
    height: 42px;
  }

  .volume-popover {
    right: 52px;
  }

  .toast-region {
    right: 12px;
    bottom: calc(var(--player-h) + 10px + var(--safe-bottom));
  }

  .app.is-focus-mode .stage {
    padding-left: 0;
    justify-content: flex-start;
  }

  .app.is-focus-mode .now-playing {
    grid-template-columns: 1fr;
  }

  .app.is-focus-mode .lyrics-panel {
    height: 40vh;
  }
}

@media (max-width: 480px) {
  .topbar-right .avatar-button {
    width: 34px;
    height: 34px;
  }

  .avatar-dialog {
    padding: 23px 19px;
  }

  .avatar-editor {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 17px;
  }

  .avatar-editor-side {
    width: 100%;
  }

  .avatar-dropzone {
    width: 146px;
    height: 146px;
  }

  .avatar-choose {
    margin-top: 12px;
  }

  .avatar-dialog-actions {
    flex-wrap: wrap;
  }

  .avatar-dialog-confirm {
    margin-left: auto;
  }

  .auth-code-row {
    flex-wrap: wrap;
  }

  .code-button {
    width: 100%;
  }

  .auth-modal {
    padding: 23px 20px;
    border-radius: 15px;
  }

  .auth-brand h2 {
    font-size: 22px;
  }

  .account-menu {
    right: 14px;
    width: min(252px, calc(100vw - 28px));
  }

  .stage-head {
    justify-content: flex-start;
  }

  .stage-caption,
  .stage-divider {
    display: none;
  }

  .track-title {
    font-size: 21px;
  }

  .player-right #repeat-button {
    display: none;
  }

  .queue-drawer {
    width: 100%;
    border-left: 0;
  }

  .queue-duration {
    display: none;
  }

  .chart-banner-copy p {
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 380px) {
  :root {
    --topbar-h: 60px;
    --player-h: 96px;
  }

  .topbar {
    gap: 8px;
    padding: 0 10px;
  }

  .mobile-nav-button,
  .topbar-right .avatar-button {
    width: 32px;
    height: 32px;
  }

  .search-shell {
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .search-input {
    font-size: 12.5px;
  }

  .search-kbd {
    display: none;
  }

  .content {
    padding: 0 14px;
  }

  .stage {
    padding: 16px 0 30px;
  }

  .track-title {
    font-size: 20px;
  }

  .like-button {
    width: 34px;
    height: 34px;
  }

  .like-button .icon {
    width: 21px;
    height: 21px;
  }

  .lyrics-panel {
    height: min(44vh, 330px);
  }

  .lyric-line {
    min-height: 49px;
    font-size: 20px;
  }

  .player-inner {
    padding: 0 8px;
  }

  .player-center {
    gap: 12px;
  }

  .transport-button {
    width: 33px;
    height: 33px;
  }

  .play-button {
    width: 58px;
    height: 38px;
  }

  .player-right {
    gap: 1px;
  }

  .queue-like,
  .queue-remove {
    opacity: 1;
  }

  .queue-like {
    width: 24px;
  }

  .queue-remove {
    width: 22px;
  }

  .auth-modal {
    padding: 20px 17px;
  }

  .avatar-dialog {
    padding: 20px 16px;
  }

  .avatar-dropzone {
    width: 132px;
    height: 132px;
  }

  .avatar-dialog-head h2 {
    font-size: 20px;
  }

  .auth-brand h2 {
    font-size: 20px;
  }

  .auth-description {
    font-size: 11px;
  }

  .account-menu {
    right: 10px;
    width: calc(100vw - 20px);
  }

  .toast-region {
    right: 8px;
    width: calc(100vw - 16px);
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  :root {
    --cover-size: clamp(255px, 20vw, 350px);
  }

  .stage {
    padding-top: 0;
    padding-bottom: 18px;
  }

  .stage-group {
    gap: 9px;
  }

  .track-meta {
    margin-top: 15px;
  }

  .lyrics-panel {
    height: calc(var(--cover-size) + 15px);
  }

  .lyric-line {
    min-height: clamp(48px, 3.6vw, 59px);
  }
}

@media (max-height: 620px) {
  .app {
    min-height: 0;
  }
}

@media (max-height: 560px) {
  :root {
    --player-h: 84px;
    --topbar-h: 56px;
  }

  .stage {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 22px;
  }

  .stage-group {
    transform: none;
  }

  .queue-drawer {
    bottom: var(--player-h);
  }

  .drawer-backdrop {
    bottom: var(--player-h);
  }

  .player-inner {
    padding: 0 16px;
  }

  .player-time {
    display: none;
  }
}

@media (max-height: 560px) and (max-width: 920px) {
  .stage {
    align-items: flex-start;
    padding: 8px 18px 16px;
  }

  .stage-head {
    display: none;
  }

  .stage-group {
    gap: 0;
    transform: none;
  }

  .now-playing {
    display: block;
  }

  .artwork-column {
    display: grid;
    align-items: center;
    width: 100%;
    margin: 0;
    grid-template-columns: clamp(120px, 34vh, 170px) minmax(0, 1fr);
    grid-template-areas:
      "cover meta"
      "cover facts";
    column-gap: 16px;
    row-gap: 3px;
  }

  .cover-wrap {
    width: 100%;
    grid-area: cover;
    border-radius: 8px;
  }

  .track-meta {
    width: auto;
    margin: 0;
    align-self: end;
    grid-area: meta;
  }

  .track-facts {
    width: auto;
    margin-top: 0;
    align-self: start;
    grid-area: facts;
  }

  .lyrics-panel {
    display: none;
  }

  .track-title {
    font-size: 18px;
  }

  .track-sub {
    margin-top: 4px;
  }

  .follow-button,
  .like-wrap {
    display: none;
  }

  .player-right .quality-pill {
    display: none;
  }
}

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

/* --------------------------------------------------------------------------
   清晰度、毛玻璃与手机本地版精修
   -------------------------------------------------------------------------- */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.brand-name {
  font-weight: 600;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(16, 33, 44, 0.6), rgba(10, 22, 30, 0.5)),
    radial-gradient(520px 360px at 0 0, rgba(255, 255, 255, 0.065), transparent 70%);
  border-right-color: rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(32px) saturate(1.55);
  backdrop-filter: blur(32px) saturate(1.55);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.035),
    12px 0 46px rgba(2, 10, 15, 0.08);
}

.player {
  background:
    linear-gradient(180deg, rgba(18, 38, 50, 0.6), rgba(8, 20, 28, 0.72)),
    radial-gradient(900px 210px at 50% 0, rgba(255, 255, 255, 0.085), transparent 70%);
  border-top-color: rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(36px) saturate(1.6);
  backdrop-filter: blur(36px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 -20px 62px rgba(2, 10, 15, 0.16);
}

.search-shell {
  background: rgba(17, 37, 49, 0.58);
  border-color: rgba(255, 255, 255, 0.075);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 24px rgba(4, 14, 20, 0.12);
}

.search-results {
  background:
    linear-gradient(180deg, rgba(23, 43, 56, 0.86), rgba(12, 28, 38, 0.92));
  border-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  box-shadow:
    0 26px 70px rgba(3, 12, 18, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.account-menu {
  background:
    linear-gradient(180deg, rgba(28, 50, 63, 0.84), rgba(14, 31, 41, 0.9));
  border-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
}

.auth-modal,
.avatar-dialog,
.playlist-dialog,
.password-dialog,
.confirm-dialog {
  background:
    radial-gradient(360px 260px at 82% 0, rgba(105, 158, 183, 0.18), transparent 64%),
    linear-gradient(160deg, rgba(31, 55, 69, 0.9), rgba(14, 30, 40, 0.94));
  border-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  backdrop-filter: blur(32px) saturate(1.5);
  box-shadow:
    0 34px 90px rgba(2, 10, 15, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.is-standalone .playlist-section {
  display: block;
}

#modal-backdrop {
  z-index: 118;
}

#confirm-dialog {
  z-index: 119;
}

@media (max-width: 760px) {
  :root {
    --cover-size: min(56vw, 280px);
    --player-h: 96px;
  }

  .stage {
    padding-top: 12px;
  }

  .stage-group {
    gap: 14px;
  }

  .track-meta {
    margin-top: 13px;
  }

  .lyrics-panel {
    height: min(38vh, 300px);
  }

  .lyric-line {
    min-height: 48px;
    font-size: clamp(20px, 5.2vw, 25px);
  }

  .lyric-translation {
    font-size: 0.52em;
    opacity: 0.58;
  }

  .is-standalone .topbar-right {
    display: flex;
  }

  .is-standalone .search-shell {
    width: auto;
  }

  .player-left .comment-button {
    display: inline-flex !important;
  }

  .player-left .comment-count {
    font-size: 9px;
  }

  .search-results {
    position: fixed;
    top: calc(var(--topbar-h) + 4px);
    right: 14px;
    left: 14px;
    width: auto;
    max-height: min(56vh, 430px);
  }

  .search-shell {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

