:root {
  --bg: #07080f;
  --panel: rgba(17, 19, 31, 0.72);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f9;
  --muted: #8f94aa;
  --muted-strong: #b8bcd0;
  --accent: #8b7cff;
  --accent-2: #4ad9d9;
  --danger: #ff6b81;
  --hue: 264;
  --shell: 460px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --lyric-color: #fff;
  --lyric-font-size: 26px;
  --lyric-bilingual-second: 0.85;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
}

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

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

button {
  cursor: pointer;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(139, 124, 255, 0.4);
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}

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

/* 环境光 */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.34;
}

.ambient::before {
  top: -30vmax;
  left: -22vmax;
  background: radial-gradient(circle, hsl(var(--hue) 92% 58%), transparent 66%);
  animation: drift 20s ease-in-out infinite alternate;
}

.ambient::after {
  right: -24vmax;
  bottom: -34vmax;
  background: radial-gradient(circle, hsl(calc(var(--hue) + 72) 85% 48%), transparent 66%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 5vh, 0) scale(1.12);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mini-wave {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* App 外壳 */

.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

.app-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .app {
    height: min(920px, calc(100dvh - 40px));
    margin: 20px auto;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(8, 9, 16, 0.93);
    box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.95),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
  }
}

/* 顶栏 */

.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
}

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

.song-count {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, hsl(var(--hue) 90% 66%), hsl(calc(var(--hue) + 65) 85% 58%));
  color: #0a0913;
  box-shadow: 0 8px 20px -10px hsl(var(--hue) 90% 60% / 0.9);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text em {
  font-style: normal;
  background: linear-gradient(100deg, hsl(var(--hue) 90% 74%), hsl(calc(var(--hue) + 70) 90% 62%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(calc(var(--hue) + 60) 90% 66%);
  box-shadow: 0 0 0 4px hsl(calc(var(--hue) + 60) 90% 66% / 0.14);
  animation: pulse 2.4s ease-in-out infinite;
}

.topbar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-badges {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid hsl(var(--hue) 80% 64% / 0.22);
  border-radius: 999px;
  background: hsl(var(--hue) 80% 62% / 0.1);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  color: hsl(var(--hue) 85% 78%);
}

.tag.is-muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(105deg, hsl(var(--hue) 88% 64%), hsl(calc(var(--hue) + 55) 82% 58%));
  color: #0a0913;
  box-shadow: 0 10px 28px -14px hsl(var(--hue) 90% 60% / 0.9);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px -14px hsl(var(--hue) 90% 60% / 1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-danger {
  background: linear-gradient(105deg, #ff7a8a, #ff5470);
  color: #1a060a;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

/* 首页 hero */

.hero {
  padding: 6px 18px 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.hero h1 {
  font-size: clamp(28px, 8.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.grad-text {
  background: linear-gradient(100deg, hsl(var(--hue) 90% 78%), hsl(calc(var(--hue) + 70) 90% 66%) 52%, #ffa6d2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-points li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: hsl(var(--hue) 90% 68%);
  box-shadow: 0 0 8px hsl(var(--hue) 90% 64% / 0.8);
}

.hero-visual {
  margin-top: 22px;
}

.glass-card {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(32, 34, 54, 0.86), rgba(12, 13, 22, 0.9));
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
}

.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}

.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5df1b8;
  box-shadow: 0 0 10px rgba(93, 241, 184, 0.7);
}

.mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  margin-left: auto;
}

.mini-eq i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: hsl(var(--hue) 90% 70%);
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}

.mini-eq i:nth-child(2) {
  animation-delay: 0.18s;
}

.mini-eq i:nth-child(3) {
  animation-delay: 0.36s;
}

.mini-eq i:nth-child(4) {
  animation-delay: 0.54s;
}

.mini-title {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mini-artist {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.mini-lyrics {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0 16px;
}

.mini-line {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.26);
}

.mini-line:nth-child(3) {
  color: rgba(255, 255, 255, 0.4);
}

.mini-line.is-active {
  font-size: 15px;
  color: #fff;
  background: linear-gradient(90deg, hsl(var(--hue) 90% 82%), #fff 45%, hsl(calc(var(--hue) + 70) 90% 78%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mini-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.mini-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, hsl(var(--hue) 90% 66%), hsl(calc(var(--hue) + 70) 90% 62%));
  background-size: 200% 100%;
  animation: mini-wave 4s ease-in-out infinite;
}

body.has-songs .hero-sub,
body.has-songs .hero-points,
body.has-songs .hero-visual {
  display: none;
}

body.has-songs .hero {
  padding-bottom: 14px;
}

/* 曲库 */

.library {
  padding: 0 18px 30px;
  scroll-margin-top: 12px;
}

.library-head {
  margin-bottom: 12px;
}

.library-head h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.library-head p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 42px;
  margin-bottom: 14px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search:focus-within {
  border-color: hsl(var(--hue) 80% 65% / 0.5);
  background: rgba(255, 255, 255, 0.055);
}

.search svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
}

.search input::placeholder {
  color: var(--muted);
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.song-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.25s ease,
    background 0.25s ease;
}

.song-card:hover,
.song-card:focus-visible {
  transform: translateY(-2px);
  border-color: hsl(var(--h) 85% 68% / 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.song-art {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: radial-gradient(130% 130% at 18% 0%, hsl(var(--h) 88% 62% / 0.95), transparent 60%),
    radial-gradient(120% 140% at 90% 110%, hsl(calc(var(--h) + 60) 80% 52% / 0.8), transparent 64%),
    linear-gradient(150deg, #191b2a, #0a0b12);
}

.art-letter {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.song-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.35);
}

.song-footer .tag {
  padding: 2px 8px;
  font-size: 10px;
  background: hsl(var(--h) 80% 60% / 0.14);
  border-color: hsl(var(--h) 80% 60% / 0.2);
  color: hsl(var(--h) 80% 78%);
}

.song-delete {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease, background 0.2s ease;
}

.song-delete svg {
  width: 15px;
  height: 15px;
}

.song-delete:hover {
  color: #fff;
  background: rgba(255, 84, 112, 0.75);
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.sk-thumb,
.sk-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.sk-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
}

.sk-lines {
  flex: 1;
}

.sk-line {
  height: 11px;
  border-radius: 99px;
}

.sk-line.short {
  width: 42%;
  margin-top: 9px;
}

.empty-state {
  padding: 46px 22px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.018);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: hsl(var(--hue) 85% 72%);
}

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

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
}

.empty-state p {
  margin: 8px auto 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* 播放页 */

.app-player {
  background: transparent;
}

.app-topbar-player {
  padding: 12px 14px 6px;
}

.lyrics-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, rgba(14, 16, 27, 0.4), rgba(8, 9, 17, 0.62));
}

.lyrics-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

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

.lyrics-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 42%;
  padding-bottom: 46%;
}

.lyric-line {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 26px 10px 30px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  font-size: var(--lyric-font-size);
  font-weight: 700;
  line-height: 1.5;
  color: var(--lyric-color);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.35s ease;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.62);
}

.lyric-line.passed {
  color: rgba(255, 255, 255, 0.42);
}

.lyric-line.active {
  color: #fff;
}

.lyric-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 3px;
  height: 1.1em;
  border-radius: 99px;
  background: linear-gradient(180deg, hsl(var(--hue) 92% 76%), hsl(calc(var(--hue) + 70) 92% 62%));
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.lyric-line.active::before {
  transform: translateY(-50%) scaleY(1);
}

.lyric-text {
  transition: opacity 0.25s ease;
}

.lyric-line.active .lyric-text {
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(90deg, #fff 0 var(--p, 0%), rgba(255, 255, 255, 0.32) var(--p, 0%) 100%);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lyric-line.is-instrumental .lyric-text {
  opacity: 0.55;
  letter-spacing: 0.28em;
  font-size: calc(var(--lyric-font-size) * 0.8);
}

.lyrics-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60vh;
  padding: 30px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.lyrics-empty strong {
  font-size: 17px;
  color: var(--muted-strong);
}

.lyrics-mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 2;
  pointer-events: none;
}

.lyrics-mask-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(7, 8, 15, 0.92), transparent);
}

.lyrics-mask-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(7, 8, 15, 0.92), transparent);
}

.follow-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 22, 35, 0.92);
  backdrop-filter: blur(16px);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-strong);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9);
}

.follow-btn svg {
  width: 14px;
  height: 14px;
}

.follow-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.mini-player {
  position: relative;
  z-index: 4;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(12, 14, 22, 0.9);
  backdrop-filter: blur(22px);
}

.mini-seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time {
  width: 38px;
  flex-shrink: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: center;
}

.seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, hsl(var(--hue) 90% 70%) 0 var(--fill, 0%), rgba(255, 255, 255, 0.12) var(--fill, 0%) 100%);
  outline: none;
  cursor: pointer;
}

.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px hsl(var(--hue) 90% 66% / 0.22);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
}

.mini-seek-row:hover .seek::-webkit-slider-thumb,
.seek:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
}

.mini-cover {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: conic-gradient(from 210deg, hsl(var(--hue) 90% 64%), hsl(calc(var(--hue) + 72) 86% 56%), hsl(var(--hue) 90% 64%));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 0 0 5px rgba(5, 6, 10, 0.32), 0 6px 18px rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mini-meta {
  flex: 1;
  min-width: 0;
}

.mini-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-meta small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--hue) 90% 70%), hsl(calc(var(--hue) + 70) 86% 60%));
  color: #0a0913;
  box-shadow: 0 12px 28px -12px hsl(var(--hue) 90% 62% / 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-play:active {
  transform: scale(0.94);
}

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

.mini-play .icon-pause {
  display: none;
}

body.is-playing .mini-play .icon-play {
  display: none;
}

body.is-playing .mini-play .icon-pause {
  display: block;
}

.player-state {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 11, 0.86);
  backdrop-filter: blur(16px);
}

.player-state-card {
  width: min(360px, 100%);
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #12141f, #0a0b13);
  text-align: center;
}

.player-state-card h2 {
  font-size: 18px;
  font-weight: 700;
}

.player-state-card p {
  margin: 8px 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 弹窗 */

.modal {
  width: min(460px, calc(100vw - 24px));
  max-height: min(90dvh, 780px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #12141f, #0a0b13);
  color: var(--text);
  box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.26s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.modal::backdrop {
  background: rgba(4, 5, 10, 0.7);
  backdrop-filter: blur(10px);
}

.modal form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.modal-head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-head p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.modal-close {
  margin: -4px -6px 0 0;
}

.modal-body {
  display: grid;
  gap: 15px;
  padding: 18px 22px;
  overflow-y: auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-strong);
}

.field-label b {
  color: hsl(var(--hue) 85% 70%);
  font-weight: 600;
}

.field-label em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.32);
  text-align: right;
}

.field input[type="text"],
.field input[type="url"],
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 11px 13px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
  font-size: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.field input:focus,
.field textarea:focus {
  border-color: hsl(var(--hue) 80% 65% / 0.6);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px hsl(var(--hue) 85% 62% / 0.1);
}

.file-drop {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover,
.file-drop:focus-visible,
.file-drop.is-dragging {
  border-color: hsl(var(--hue) 85% 66% / 0.65);
  background: hsl(var(--hue) 80% 60% / 0.07);
}

.file-drop.has-file {
  border-style: solid;
  border-color: hsl(var(--hue) 80% 66% / 0.35);
  background: hsl(var(--hue) 80% 60% / 0.07);
}

.file-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: hsl(var(--hue) 85% 62% / 0.14);
  color: hsl(var(--hue) 88% 76%);
}

.file-icon svg {
  width: 19px;
  height: 19px;
}

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

.file-copy strong {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-copy small {
  font-size: 10.5px;
  color: var(--muted);
}

.form-error {
  padding: 10px 13px;
  border: 1px solid rgba(255, 107, 129, 0.28);
  border-radius: 12px;
  background: rgba(255, 107, 129, 0.1);
  font-size: 12px;
  color: #ffb3bf;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 22px 20px;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 9, 19, 0.25);
  border-top-color: #0a0913;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.btn.is-busy .btn-spinner {
  display: block;
}

.btn.is-busy .btn-label {
  opacity: 0.7;
}

.modal-small {
  width: min(360px, calc(100vw - 24px));
}

.modal-small .modal-actions {
  padding: 0 22px 20px;
}

.confirm-body {
  padding: 26px 24px 18px;
  text-align: center;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 17px;
  background: rgba(255, 107, 129, 0.12);
  border: 1px solid rgba(255, 107, 129, 0.22);
  color: #ff8fa0;
}

.confirm-icon svg {
  width: 24px;
  height: 24px;
}

.confirm-body h2 {
  font-size: 17px;
  font-weight: 700;
}

.confirm-body p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  word-break: break-all;
}

/* 提示条 */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(20, 22, 35, 0.94);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  font-size: 12.5px;
  color: var(--text);
  animation: toast-in 0.25s ease both;
}

.toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5df1b8;
  box-shadow: 0 0 10px rgba(93, 241, 184, 0.7);
}

.toast.is-error::before {
  background: #ff6b81;
  box-shadow: 0 0 10px rgba(255, 107, 129, 0.7);
}

.toast.is-warn::before {
  background: #ffc861;
  box-shadow: 0 0 10px rgba(255, 200, 97, 0.7);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* 404 */

.not-found-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  overflow: hidden;
}

.not-found {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
}

.not-found .eyebrow {
  margin-bottom: 20px;
}

.not-found h1 {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.not-found p {
  margin: 14px 0 26px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 420px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .field-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .field-label em {
    margin-left: 0;
    text-align: left;
  }

  .file-copy small {
    display: none;
  }
}

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