:root {
  --bg: #0e0d18;
  --bg-2: #151329;
  --card: #1d1a38;
  --card-2: #242047;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f2ff;
  --muted: #a29ec2;
  --gold: #f6c453;
  --violet: #a06bff;
  --pink: #ff6b9d;
  --green: #4ade80;
  --danger: #ff6b6b;
  --grad: linear-gradient(135deg, #a06bff 0%, #ff6b9d 55%, #f6c453 120%);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, #2a1f52 0%, transparent 55%),
    radial-gradient(900px 600px at -10% 20%, #3a1840 0%, transparent 50%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.boot-loading {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Header / top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 8px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: #160e2b;
  box-shadow: 0 6px 18px rgba(160, 107, 255, 0.45);
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 30px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 12vw, 58px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 360px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  padding: 15px 22px;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.2s ease;
  text-decoration: none;
  width: 100%;
  color: inherit;
}

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

.btn-primary {
  background: var(--grad);
  color: #160e2b;
  box-shadow: 0 12px 28px rgba(255, 107, 157, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 11px;
  width: auto;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature .tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: 1px;
}

.tag-new {
  background: rgba(74, 222, 128, 0.16);
  color: var(--green);
}

.tag-soon {
  background: rgba(246, 196, 83, 0.16);
  color: var(--gold);
}

/* ---------- Cards ---------- */
.section-title {
  font-size: 15px;
  color: var(--muted);
  margin: 30px 0 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* ---------- Forms ---------- */
.auth-wrap {
  padding-top: 24px;
}

.auth-title {
  font-size: 28px;
  margin: 0 0 6px;
}

.auth-desc {
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 14px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 15px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(160, 107, 255, 0.22);
}

.field input::placeholder {
  color: #6b6788;
}

.account-note {
  margin: -6px 0 16px;
  color: #817a98;
  font-size: 10px;
  line-height: 1.65;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: -8px 0 12px;
  min-height: 0;
}

.auth-alt {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

.auth-alt a,
.link {
  color: var(--pink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.dev-entry {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- App home (after login) ---------- */
.greeting {
  padding: 26px 0 8px;
}

.greeting h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.greeting p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mode-grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.14s ease, border 0.2s ease;
  text-align: left;
  width: 100%;
  color: inherit;
  display: block;
}

.mode-card:active {
  transform: scale(0.98);
}

.mode-card .mode-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mode-icon {
  font-size: 30px;
}

.mode-card h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mode-card.locked {
  cursor: default;
  opacity: 0.75;
}

.mode-card.locked:active {
  transform: none;
}

.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.chip.hot {
  background: rgba(255, 107, 157, 0.16);
  color: var(--pink);
}

.chip.gold {
  background: rgba(246, 196, 83, 0.16);
  color: var(--gold);
}

.logout-row {
  text-align: center;
  margin-top: 28px;
}

.best-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.best-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.best-item span {
  font-size: 12px;
  color: var(--muted);
}

.best-item b {
  font-size: 20px;
  color: var(--gold);
}

/* ---------- Back button ---------- */
.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

/* ---------- Game ---------- */
.game-wrap {
  padding-top: 24px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.game-level {
  font-weight: 700;
  font-size: 15px;
}

.game-count {
  color: var(--muted);
  font-size: 14px;
}

.countdown {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(246, 196, 83, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.countdown.warn {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.16);
  animation: countdownPulse 0.8s infinite;
}

@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar {
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.game-score {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  margin-bottom: 18px;
}

.game-score b {
  color: var(--gold);
  font-size: 22px;
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 22px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  color: #160e2b;
  background: var(--grad);
  box-shadow: 0 14px 32px rgba(255, 107, 157, 0.28);
  transition: transform 0.12s ease;
}

.play-btn:active {
  transform: scale(0.98);
}

.play-btn.playing {
  box-shadow: 0 0 0 4px rgba(160, 107, 255, 0.35);
}

.play-btn[disabled] {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.play-ic {
  font-size: 20px;
}

.play-hint {
  text-align: center;
  color: #6b6788;
  font-size: 13px;
  margin: 10px 0 18px;
}

.exam-q {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.exam-q p {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

.exam-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink);
  background: rgba(255, 107, 157, 0.14);
  border-radius: 999px;
  padding: 3px 10px;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  background: rgba(28, 24, 50, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--text);
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.55;
  font-family: inherit;
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    border 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.option:active {
  transform: scale(0.965);
}

.option.correct {
  background: rgba(74, 222, 128, 0.16);
  border-color: var(--green);
  color: var(--green);
  animation: optionCorrectPulse 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.option.wrong {
  background: rgba(255, 107, 107, 0.14);
  border-color: var(--danger);
  color: var(--danger);
}

.option[disabled] {
  cursor: default;
}

.challenge-option-letter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.065);
  color: #c4bddb;
  font-size: 11px;
  font-weight: 800;
}

.option.correct .challenge-option-letter {
  background: rgba(74, 222, 128, 0.2);
  color: var(--green);
}

.option.wrong .challenge-option-letter {
  background: rgba(255, 107, 107, 0.16);
  color: var(--danger);
}

.challenge-option-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

@keyframes optionCorrectPulse {
  0% { transform: scale(0.965); }
  55% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

.challenge-menu {
  position: relative;
  padding-top: 30px;
}

.challenge-eyebrow {
  margin-bottom: 9px;
  color: #ff91b5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.challenge-menu .auth-title {
  margin-bottom: 10px;
  font-size: clamp(32px, 9vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.challenge-menu .auth-desc {
  margin-bottom: 22px;
  line-height: 1.75;
}

.challenge-menu .mode-grid {
  gap: 12px;
}

.challenge-menu .mode-card {
  overflow: hidden;
  border-color: rgba(156, 39, 176, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 104, 155, 0.09), transparent 42%),
    linear-gradient(145deg, rgba(34, 27, 61, 0.94), rgba(23, 19, 44, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  animation: challengeCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.challenge-menu .mode-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -62px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(156, 39, 176, 0.14);
  filter: blur(26px);
  pointer-events: none;
}

.challenge-menu .mode-card:nth-child(2) {
  animation-delay: 0.06s;
}

.challenge-menu .mode-card:nth-child(3) {
  animation-delay: 0.12s;
}

.challenge-menu .mode-card:active {
  transform: scale(0.97);
}

@keyframes challengeCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.challenge-shell {
  position: relative;
  padding-top: 28px;
}

.challenge-shell .game-meta {
  margin-bottom: 12px;
}

.challenge-shell .game-level {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.challenge-shell .game-count {
  font-size: 11px;
  letter-spacing: 0.3px;
}

.challenge-shell .progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

.challenge-shell .progress-bar {
  background: linear-gradient(90deg, #9c27b0, #ff689b 72%, #ffd479);
  box-shadow: 0 0 18px rgba(255, 104, 155, 0.38);
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.challenge-shell .game-score {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.challenge-shell .game-score b {
  font-size: 18px;
}

.challenge-audio-card {
  position: relative;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 22px;
  border: 1px solid rgba(156, 39, 176, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 104, 155, 0.1), transparent 44%),
    linear-gradient(145deg, rgba(34, 27, 61, 0.92), rgba(23, 19, 44, 0.94));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: challengeCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.challenge-audio-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(156, 39, 176, 0.16);
  filter: blur(28px);
  pointer-events: none;
}

.challenge-audio-card .play-btn {
  position: relative;
  z-index: 1;
  min-height: 78px;
  border-radius: 18px;
}

.challenge-audio-card .play-hint {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  line-height: 1.65;
}

.challenge-shell .options {
  margin-top: 18px;
  gap: 10px;
}

.challenge-shell .exam-q {
  position: relative;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 22px;
  border-color: rgba(156, 39, 176, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 104, 155, 0.09), transparent 42%),
    linear-gradient(145deg, rgba(34, 27, 61, 0.95), rgba(23, 19, 44, 0.95));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: challengeCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.challenge-shell .exam-q p {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.7;
}

.challenge-result {
  padding-top: 24px;
}

.challenge-result-card {
  position: relative;
  padding: 28px 20px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 104, 155, 0.15), transparent 42%),
    radial-gradient(circle at 0% 70%, rgba(156, 39, 176, 0.16), transparent 44%),
    rgba(20, 16, 38, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  animation: challengeCardIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.challenge-result-card .result-badge {
  animation: resultBadgeIn 0.65s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.challenge-result-card .result-score {
  font-size: clamp(70px, 20vw, 88px);
  animation: resultBadgeIn 0.62s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.challenge-result-card .result-rating {
  font-size: 18px;
}

.challenge-result-card .result-desc {
  margin-bottom: 22px;
  line-height: 1.7;
}

.challenge-result-card .hero-cta {
  max-width: 100%;
}

@keyframes resultBadgeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Result ---------- */
.result-wrap {
  padding-top: 30px;
  text-align: center;
}

.result-badge {
  font-size: 54px;
  margin-bottom: 6px;
}

.result-score {
  font-size: 72px;
  line-height: 1;
  margin: 0 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-score span {
  font-size: 24px;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

.result-rating {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}

.result-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

/* ---------- 杰迷人格鉴定 ---------- */
#app.page-fade {
  animation: pageFadeIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.persona-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.persona-landing {
  padding: 34px 0 8px;
  text-align: center;
}

.persona-kicker {
  display: inline-block;
  color: #ff91b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.8px;
}

.persona-landing h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 12vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.2px;
}

.persona-landing h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.persona-lead {
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 430px;
}

.persona-dim-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}

.persona-dim-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #c8c2db;
  font-size: 12px;
}

.persona-dim-cloud b {
  color: #ff91b5;
  font-size: 10px;
  letter-spacing: 0.6px;
}

.persona-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.persona-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.persona-stats b {
  color: #fff;
  font-size: 24px;
}

.persona-stats span {
  color: #8f88aa;
  font-size: 11px;
}

.persona-start {
  min-height: 56px;
  font-size: 17px;
}

.persona-footnote {
  color: #77718d;
  font-size: 11px;
  margin: 14px 0 0;
}

.persona-quiz {
  padding-top: 26px;
}

.persona-quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.persona-counter {
  color: #a7a1bd;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.persona-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.persona-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9c27b0, #ff689b 72%, #ffd479);
  box-shadow: 0 0 18px rgba(255, 104, 155, 0.42);
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.persona-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 2px 20px;
  color: #88819f;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.persona-question-card {
  position: relative;
  min-height: 175px;
  padding: 22px;
  border: 1px solid rgba(156, 39, 176, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 104, 155, 0.09), transparent 43%),
    linear-gradient(145deg, rgba(34, 27, 61, 0.95), rgba(23, 19, 44, 0.95));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.persona-question-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(156, 39, 176, 0.16);
  filter: blur(30px);
  pointer-events: none;
}

.persona-question-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
}

.persona-type,
.persona-difficulty {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
}

.persona-type {
  color: #ff9dbe;
  background: rgba(255, 104, 155, 0.13);
}

.persona-difficulty {
  color: #bdb5d6;
  background: rgba(255, 255, 255, 0.06);
}

.persona-question-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.7;
  font-weight: 720;
  letter-spacing: -0.2px;
}

.persona-blank {
  display: inline-block;
  width: 52px;
  height: 1em;
  margin: 0 4px;
  vertical-align: -0.08em;
  border-bottom: 2px solid rgba(255, 145, 181, 0.75);
  background: linear-gradient(180deg, transparent, rgba(255, 104, 155, 0.08));
}

.persona-question-hint {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #77718e;
  font-size: 11px;
}

.persona-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.persona-option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(28, 24, 50, 0.82);
  color: #f3f0ff;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.persona-option:active:not([disabled]) {
  transform: scale(0.965);
}

.persona-option.selected {
  border-color: rgba(255, 145, 181, 0.75);
  background: rgba(156, 39, 176, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 104, 155, 0.08);
}

.persona-option.correct {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(74, 222, 128, 0.12);
  color: #a9f5c4;
}

.persona-option.wrong {
  border-color: rgba(255, 107, 107, 0.7);
  background: rgba(255, 107, 107, 0.11);
  color: #ffaaaa;
}

.persona-option[disabled] {
  cursor: default;
}

.persona-option-letter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.065);
  color: #c4bddb;
  font-size: 11px;
  font-weight: 800;
}

.persona-option.selected .persona-option-letter,
.persona-option.correct .persona-option-letter {
  color: #fff;
  background: rgba(255, 104, 155, 0.48);
}

.persona-option-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.persona-confirm-multi {
  margin-top: 12px;
  transition: opacity 0.2s ease, transform 0.12s ease;
}

.persona-confirm-multi:disabled {
  opacity: 0.36;
}

.persona-fill-form {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(28, 24, 50, 0.82);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.persona-fill-form label {
  display: block;
  margin-bottom: 8px;
  color: #aaa3c1;
  font-size: 11px;
}

.persona-fill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.persona-fill-row input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.persona-fill-row input:focus {
  border-color: rgba(255, 145, 181, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 104, 155, 0.09);
}

.persona-inline-submit {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--grad);
  color: #160e2b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.persona-inline-submit:active {
  transform: scale(0.96);
}

.persona-fill-form.correct {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(74, 222, 128, 0.07);
}

.persona-fill-form.wrong {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.06);
}

.persona-feedback {
  margin-top: 14px;
  padding: 16px;
  border-radius: 17px;
  animation: feedbackRise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.persona-feedback.good {
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.08);
}

.persona-feedback.bad {
  border: 1px solid rgba(255, 107, 107, 0.24);
  background: rgba(255, 107, 107, 0.065);
}

.persona-feedback-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.persona-feedback-title b {
  color: #ffd479;
  font-size: 17px;
}

.persona-feedback p {
  margin: 9px 0 5px;
  color: #c9c3db;
  font-size: 13px;
}

.persona-feedback p strong {
  color: #fff;
}

.persona-feedback small {
  color: #8f88a7;
  font-size: 11px;
  line-height: 1.65;
}

.persona-next-wrap {
  display: none;
  margin-top: 14px;
}

.persona-next-wrap.show {
  display: block;
  animation: feedbackRise 0.32s ease both;
}

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

.persona-result {
  padding-top: 20px;
}

.persona-report-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 104, 155, 0.16), transparent 40%),
    radial-gradient(circle at 0% 60%, rgba(156, 39, 176, 0.18), transparent 44%),
    rgba(20, 16, 38, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.persona-report-kicker {
  margin-bottom: 22px;
  color: #ff91b5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-align: center;
}

.persona-grade-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.persona-grade {
  min-width: 91px;
  font-size: 104px;
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -8px;
  background: linear-gradient(145deg, #fff 15%, #ffd479 52%, #ff689b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 24px rgba(255, 104, 155, 0.2));
}

.persona-grade-row > div {
  min-width: 0;
}

.persona-report-label {
  margin: 0 0 3px;
  color: #918aa9;
  font-size: 10px;
  letter-spacing: 1px;
}

.persona-grade-row h1 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.25;
}

.persona-accuracy {
  margin: 7px 0 0;
  color: #a7a1bb;
  font-size: 12px;
}

.persona-accuracy b {
  color: #ff91b5;
  font-size: 18px;
}

.persona-personality {
  margin: 20px 0 12px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: #d7d2e6;
  font-size: 13px;
  text-align: center;
}

.persona-radar-box {
  padding: 3px 0 0;
}

.persona-radar-box canvas {
  display: block;
  width: 100%;
  height: auto;
}

.persona-score-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.persona-score-row {
  display: grid;
  grid-template-columns: 24px 64px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  color: #8f88a7;
  font-size: 10px;
}

.persona-score-row.top {
  color: #ffd479;
}

.persona-score-code {
  font-weight: 800;
}

.persona-score-name {
  white-space: nowrap;
}

.persona-score-bar {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.persona-score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9c27b0, #ff689b);
  animation: scoreGrow 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.persona-score-row.top .persona-score-bar i {
  background: linear-gradient(90deg, #ff689b, #ffd479);
}

.persona-score-row b {
  text-align: right;
  font-size: 10px;
}

@keyframes scoreGrow {
  from { width: 0; }
}

.persona-copy-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.persona-copy-card {
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.035);
}

.persona-copy-card span {
  color: #ff91b5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.persona-copy-card p {
  margin: 5px 0 0;
  color: #e6e2f1;
  font-size: 13px;
  line-height: 1.6;
}

.persona-result-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.persona-share-card {
  position: fixed;
  left: -2000px;
  top: 0;
  width: 540px;
  height: 960px;
  padding: 38px 44px 34px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 104, 155, 0.24), transparent 30%),
    radial-gradient(circle at 4% 64%, rgba(156, 39, 176, 0.3), transparent 38%),
    linear-gradient(160deg, #17112d 0%, #0f0a1c 54%, #120b21 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.persona-capture-stage {
  position: fixed;
  inset: 0;
  z-index: 9990;
  overflow: visible;
  pointer-events: none;
}

.persona-share-card.capturing {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9991;
}

.persona-capture-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(9, 6, 18, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.persona-capture-overlay > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.persona-capture-overlay b {
  font-size: 17px;
}

.persona-capture-overlay span {
  color: #9f98b5;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.share-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.28;
  pointer-events: none;
}

.share-glow-a {
  width: 260px;
  height: 260px;
  top: 190px;
  left: -120px;
  background: #9c27b0;
}

.share-glow-b {
  width: 220px;
  height: 220px;
  right: -100px;
  bottom: 70px;
  background: #ff689b;
}

.share-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.5px;
}

.share-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #a06bff, #ff689b);
  color: #160e2b;
  font-size: 18px;
  font-weight: 900;
}

.share-hero {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  text-align: center;
}

.share-grade {
  display: block;
  height: 130px;
  font-size: 142px;
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -10px;
  color: #ffd479;
  text-shadow:
    0 4px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(255, 104, 155, 0.32);
  -webkit-text-fill-color: #ffd479;
}

.share-hero h1 {
  margin: 6px 0 4px;
  font-size: 27px;
  line-height: 1.3;
}

.share-accuracy {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-top: 7px;
}

.share-accuracy b {
  color: #ff91b5;
  font-size: 29px;
}

.share-accuracy span {
  color: #a9a2bc;
  font-size: 12px;
}

.share-hero p {
  margin: 10px 0 0;
  color: #cfc9df;
  font-size: 15px;
}

#personaShareRadar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 260px;
  margin: 5px auto 0;
}

.share-copy-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.share-copy-item {
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.04);
}

.share-copy-item span {
  color: #ff91b5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.share-copy-item p {
  margin: 3px 0 0;
  color: #ece8f5;
  font-size: 12px;
  line-height: 1.55;
}

.share-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.share-qr {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  padding: 7px;
  border-radius: 12px;
  background: #fff;
}

.share-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.share-footer h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 16px;
}

.share-footer p {
  margin: 0;
  color: #8f88a7;
  font-size: 11px;
}

.persona-image-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 5, 14, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.persona-image-dialog {
  width: min(100%, 430px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 12px;
  border-radius: 20px;
  background: #19122a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.persona-image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 10px;
  color: #d9d3e8;
  font-size: 12px;
}

.persona-image-head button {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-family: inherit;
  cursor: pointer;
}

.persona-image-dialog > img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.persona-image-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.persona-image-actions .btn {
  display: flex;
}

.persona-image-note {
  margin: 10px 3px 2px;
  color: #8f88a7;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 390px) {
  .persona-question-card {
    padding: 18px;
  }

  .persona-question-card h1 {
    font-size: 19px;
  }

  .persona-report-card {
    padding: 18px;
  }

  .persona-grade {
    min-width: 77px;
    font-size: 88px;
  }

  .persona-grade-row h1 {
    font-size: 20px;
  }

  .persona-score-row {
    grid-template-columns: 22px 58px minmax(0, 1fr) 34px;
  }
}

/* ---------- Friends & leaderboard ---------- */
.add-friend form {
  display: flex;
  gap: 10px;
}

.add-friend input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.add-friend input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(160, 107, 255, 0.22);
}

.add-friend .form-error {
  margin: 10px 0 0;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.friend-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #160e2b;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
}

.friend-name {
  flex: 1;
  font-weight: 600;
}

.muted-line {
  color: var(--muted);
  font-size: 14px;
}

.board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 6px;
  margin-bottom: 14px;
}

.board-title {
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
}

.board-row.me {
  background: rgba(246, 196, 83, 0.1);
}

.board-row .rank {
  width: 22px;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}

.board-row:nth-child(2) .rank,
.board-row:nth-child(3) .rank,
.board-row:nth-child(4) .rank {
  color: var(--gold);
}

.board-row .name {
  flex: 1;
  font-weight: 600;
}

.board-row .pts {
  font-weight: 700;
  color: var(--gold);
}

/* ---------- Placeholder screen ---------- */
.coming {
  padding: 70px 20px;
  text-align: center;
}

.coming .big {
  font-size: 54px;
  display: block;
  margin-bottom: 14px;
}

.coming h2 {
  margin: 0 0 8px;
}

.coming p {
  color: var(--muted);
  margin: 0 0 26px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%) translateY(20px);
  background: #2a2650;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 88%;
  text-align: center;
  z-index: 50;
}

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

@media (min-width: 640px) {
  #app {
    padding: 0 24px 80px;
  }
}

/* ================= 音乐资料库（Apple Music 风格） ================= */
body.music-theme {
  background: #f7f7fa;
  color: #1d1d1f;
}

body.music-theme #app {
  max-width: 560px;
  padding: 0 16px 40px;
}

.music-view {
  padding-top: 6px;
}

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

.music-back {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
}

.music-heading h1,
.music-topbar-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: #1d1d1f;
}

.music-heading p {
  margin: 2px 0 0;
  color: #86868b;
  font-size: 13px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 14px;
  padding-bottom: 24px;
  align-items: stretch;
}

.album-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: #1d1d1f;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.album-card:active {
  transform: scale(0.97);
}

.album-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  background: #e5e5ea;
}

.album-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #e5e5ea;
}

.album-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.3em;
}

.album-sub {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: #86868b;
  min-height: 1.5em;
}

.album-hero {
  text-align: center;
  padding: 4px 0 20px;
}

.album-hero-art {
  width: 76%;
  max-width: 300px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  display: block;
  margin: 0 auto;
}

.album-hero-title {
  margin: 18px 0 4px;
  font-size: 24px;
  letter-spacing: -0.3px;
}

.album-hero-sub {
  margin: 0 0 16px;
  color: #86868b;
  font-size: 13px;
}

.album-hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pill {
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  font-family: inherit;
}

.pill-primary {
  background: #fa243c;
  color: #fff;
}

.track-list {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.track-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.track-row:active {
  background: rgba(0, 0, 0, 0.03);
}

.track-index {
  width: 22px;
  flex: 0 0 22px;
  text-align: center;
  color: #86868b;
  font-size: 13px;
}

.track-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row.playing .track-title,
.track-row.playing .track-index {
  color: #fa243c;
}

.track-actions {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}

.icon-btn-sm {
  border: none;
  background: none;
  color: #86868b;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: none;
  line-height: 1;
}

.music-empty {
  color: #86868b;
  text-align: center;
  padding: 40px 0;
}

.music-download-hint {
  color: #86868b;
  font-size: 12px;
  text-align: center;
  padding: 14px 0 4px;
  line-height: 1.6;
}

/* 资料库歌单置顶 */
.library-playlists {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.library-playlists::-webkit-scrollbar {
  display: none;
}

.playlist-card {
  flex: 0 0 118px;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  color: #1d1d1f;
  font-family: inherit;
  cursor: pointer;
}

.playlist-cover {
  width: 118px;
  height: 118px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8e8ed, #d1d1d6);
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #86868b;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

.new-cover {
  background: #fff;
  border: 1px dashed #c7c7cc;
  color: #fa243c;
  font-size: 30px;
}

.liked-cover {
  background: linear-gradient(135deg, #ff6b9d, #a06bff);
  color: #fff;
}

.playlist-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-sub {
  display: block;
  font-size: 12px;
  color: #86868b;
}

.section-label {
  font-size: 18px;
  font-weight: 800;
  margin: 4px 0 12px;
  color: #1d1d1f;
}

.album-cover-btn {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  margin: 0 auto;
  cursor: pointer;
}

.playlist-hero {
  text-align: center;
  padding: 4px 0 20px;
}

.playlist-hero-cover {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #a06bff, #ff6b9d);
  color: #fff;
  font-size: 48px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

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

.playlist-hero h1 {
  margin: 0 0 4px;
  font-size: 24px;
  color: #1d1d1f;
}

.playlist-hero p {
  margin: 0 0 16px;
  color: #86868b;
  font-size: 13px;
}

/* 全屏播放器 */
.full-player {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #f7f7fa;
  color: #1d1d1f;
  display: flex;
  flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.full-player.show {
  transform: translateY(0);
  pointer-events: auto;
}

.fp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px;
}

.fp-top-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #86868b;
  text-transform: uppercase;
}

.fp-icon {
  border: none;
  background: none;
  font-size: 22px;
  color: #1d1d1f;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.fp-icon.active {
  color: #fa243c;
}

.fp-cover-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 0 18px;
}

.fp-cover {
  width: min(78vw, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  background: #e5e5ea;
}

.fp-info {
  text-align: center;
  padding-bottom: 10px;
}

.fp-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.3px;
}

.fp-sub {
  margin: 4px 0 0;
  color: #86868b;
  font-size: 14px;
}

.fp-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
}

.fp-cur,
.fp-dur {
  font-size: 11px;
  color: #86868b;
  font-variant-numeric: tabular-nums;
  width: 36px;
  text-align: center;
}

.fp-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(to right, #fa243c var(--p, 0%), #d1d1d6 var(--p, 0%));
  outline: none;
  margin: 0;
}

.fp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fa243c;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.fp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px;
}

.fp-play {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;
  background: #fa243c;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(250, 36, 60, 0.35);
}

.fp-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-top: 10px;
}

/* 歌曲操作面板 */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.sheet-wrap.show {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 560px);
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  color: #1d1d1f;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.sheet-grip {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d1d1d6;
  margin: 4px auto 14px;
}

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

.sheet-title {
  font-weight: 800;
  font-size: 17px;
}

.sheet-sub {
  color: #86868b;
  font-size: 13px;
  margin-top: 2px;
}

.sheet-close {
  border: none;
  background: #f2f2f7;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.sheet-list {
  display: flex;
  flex-direction: column;
}

.sheet-item {
  border: none;
  background: none;
  text-align: left;
  padding: 15px 6px;
  font-size: 16px;
  color: #1d1d1f;
  border-bottom: 1px solid #f0f0f3;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.sheet-item span {
  color: #86868b;
  font-size: 13px;
}

/* ===== 音乐库深色主题（与站点黑紫背景一致） ===== */
body.music-theme {
  background:
    radial-gradient(1200px 700px at 80% -10%, #2a1f52 0%, transparent 55%),
    radial-gradient(900px 600px at -10% 20%, #3a1840 0%, transparent 50%),
    #0e0d18;
  color: #f4f2ff;
}

body.music-theme .music-heading h1,
body.music-theme .music-topbar-title,
body.music-theme .section-label,
body.music-theme .album-name,
body.music-theme .playlist-name,
body.music-theme .album-hero-title,
body.music-theme .playlist-hero h1 {
  color: #f4f2ff;
}

body.music-theme .music-heading p,
body.music-theme .album-sub,
body.music-theme .playlist-sub,
body.music-theme .album-hero-sub,
body.music-theme .playlist-hero p,
body.music-theme .music-download-hint,
body.music-theme .track-index,
body.music-theme .music-empty {
  color: #a29ec2;
}

body.music-theme .music-back {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.music-theme .track-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.music-theme .track-list {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.music-theme .track-title {
  color: #f4f2ff;
}

body.music-theme .track-row.playing .track-title,
body.music-theme .track-row.playing .track-index {
  color: #ff8fb3;
}

body.music-theme .icon-btn-sm {
  color: rgba(255, 255, 255, 0.72);
}

body.music-theme .pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.music-theme .pill-primary {
  background: #fff;
  color: #111;
}

body.music-theme .pill-primary .icon {
  color: #111;
}

body.music-theme .playlist-cover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

body.music-theme .new-cover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.music-theme .liked-cover {
  background: linear-gradient(135deg, #ff6b9d, #a06bff);
  color: #fff;
}

body.music-theme .playlist-hero-cover {
  background: linear-gradient(135deg, #a06bff, #ff6b9d);
  color: #fff;
}

/* 极简线性图标 */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.track-index .icon {
  width: 13px;
  height: 13px;
}

.pill .icon {
  margin-right: 6px;
}

.sheet-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 迷你播放器深色 */
.player-bar {
  background: rgba(22, 19, 40, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.player-time,
.player-sub {
  color: rgba(255, 255, 255, 0.6);
}

.player-range {
  background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, 0.2) var(--p, 0%));
}

.player-range::-webkit-slider-thumb {
  background: #fff;
}

.player-btn {
  color: #fff;
}

.player-play {
  color: #fff;
}

/* 全屏播放器：深色 + 专辑主色渐变 */
.full-player {
  background: #0b0a12;
  color: #fff;
}

.fp-top-title,
.fp-sub,
.fp-cur,
.fp-dur {
  color: rgba(255, 255, 255, 0.62);
}

.fp-icon {
  color: #fff;
}

.fp-icon.active {
  color: #fff;
}

.fp-icon[data-action='fp-shuffle']:not(.active),
.fp-icon[data-action='fp-repeat']:not(.active) {
  color: rgba(255, 255, 255, 0.45);
}

.fp-play {
  background: #fff;
  color: #111;
}

.fp-play .icon {
  color: #111;
}

.fp-range {
  background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, 0.22) var(--p, 0%));
}

.fp-range::-webkit-slider-thumb {
  background: #fff;
}

/* 深色歌曲操作面板 */
.sheet {
  background: #17142a;
  color: #fff;
}

.sheet-sub,
.sheet-item span {
  color: #a29ec2;
}

.sheet-item {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sheet-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sheet-grip {
  background: rgba(255, 255, 255, 0.25);
}

.sheet-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

/* ===== 全屏播放页（深紫品牌版） ===== */
.full-player {
  display: block;
  padding: 0;
  overflow-y: auto;
  background:
    radial-gradient(900px 600px at 18% 0%, rgba(156, 39, 176, 0.3) 0%, transparent 55%),
    radial-gradient(800px 600px at 92% 100%, rgba(255, 104, 155, 0.16) 0%, transparent 55%),
    #0f0a1c;
}

.fp-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.fp-glow-a {
  width: 420px;
  height: 420px;
  background: #9c27b0;
  top: -120px;
  left: -80px;
  animation: fpDriftA 18s ease-in-out infinite alternate;
}

.fp-glow-b {
  width: 380px;
  height: 380px;
  background: #ff689b;
  bottom: -140px;
  right: -100px;
  opacity: 0.18;
  animation: fpDriftB 24s ease-in-out infinite alternate;
}

@keyframes fpDriftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(80px, 40px) scale(1.12); }
}

@keyframes fpDriftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, -30px) scale(1.08); }
}

.fp-particles {
  position: absolute;
  right: 32px;
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.full-player.playing .fp-particles {
  opacity: 0.55;
}

.fp-particles i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff689b, #9c27b0);
  transform-origin: bottom;
  animation: fpBar 1.4s ease-in-out infinite;
}

.fp-particles i:nth-child(1) { height: 40%; animation-delay: 0s; }
.fp-particles i:nth-child(2) { height: 75%; animation-delay: 0.18s; }
.fp-particles i:nth-child(3) { height: 100%; animation-delay: 0.36s; }
.fp-particles i:nth-child(4) { height: 60%; animation-delay: 0.54s; }
.fp-particles i:nth-child(5) { height: 85%; animation-delay: 0.72s; }

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

.fp-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.fp-card {
  position: relative;
  width: min(100%, 400px);
  padding: 18px 26px 24px;
  border-radius: 24px;
  background: rgba(25, 18, 40, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(156, 39, 176, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.fp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.fp-topbar-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fp-close,
.fp-sidebar-open,
.fp-mini-icon,
.fp-skip {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  font-size: 18px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.fp-close:hover,
.fp-sidebar-open:hover,
.fp-mini-icon:hover,
.fp-skip:hover {
  color: #fff;
}

.fp-close:active,
.fp-sidebar-open:active,
.fp-mini-icon:active,
.fp-skip:active,
.fp-play:active {
  transform: scale(0.92);
}

.fp-cover-wrap {
  flex: none;
  position: relative;
  width: 70%;
  margin: 8px auto 56px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.fp-cover-glow {
  position: absolute;
  width: 96%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.55), transparent 66%);
  filter: blur(28px);
}

.fp-cover {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background: #1a1530;
}

.fp-info {
  text-align: center;
  padding-bottom: 0;
}

.fp-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.fp-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b8b0cc;
}

.fp-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
}

.fp-cur,
.fp-dur {
  font-size: 11px;
  color: #b8b0cc;
  width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fp-range-wrap {
  position: relative;
  flex: 1;
}

.fp-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #9c27b0 0%, #ff689b var(--p, 0%), rgba(255, 255, 255, 0.18) var(--p, 0%));
  outline: none;
  margin: 0;
  cursor: pointer;
}

.fp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 104, 155, 0.8);
  transition: transform 0.15s ease;
}

.fp-range:hover::-webkit-slider-thumb {
  transform: scale(1.3);
}

.fp-tooltip {
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  background: rgba(20, 14, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.fp-tooltip.show {
  opacity: 1;
}

.fp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 22px 0 0;
}

.fp-skip {
  font-size: 24px;
}

.fp-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #9c27b0, #ff689b);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(156, 39, 176, 0.45);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.fp-play:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 40px rgba(255, 104, 155, 0.5);
}

.fp-play .icon {
  color: #fff;
}

.fp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-mini-icon {
  font-size: 18px;
}

.fp-mini-icon.active {
  color: #ff689b;
}

.fp-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.fp-volume-range {
  width: 100px;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.fp-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.fp-sidebar {
  width: 250px;
  align-self: stretch;
  max-height: min(80vh, 620px);
  padding: 16px 12px;
  border-radius: 20px;
  background: rgba(25, 18, 40, 0.5);
  border: 1px solid rgba(156, 39, 176, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  box-sizing: border-box;
}

.fp-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 12px;
  color: #b8b0cc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.fp-queue {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-queue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  color: #b8b0cc;
  text-align: left;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.fp-queue-row:hover {
  background: rgba(156, 39, 176, 0.16);
  color: #fff;
}

.fp-queue-row.playing {
  color: #ff8fb3;
}

.fp-queue-num {
  width: 18px;
  text-align: center;
  opacity: 0.6;
}

.fp-queue-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.full-player.sidebar-hidden .fp-sidebar {
  display: none;
}

.fp-sidebar-open {
  display: grid;
  place-items: center;
}

@media (max-width: 899px) {
  .fp-layout {
    padding: 16px;
  }

  .fp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(82vw, 320px);
    max-height: none;
    border-radius: 0 20px 20px 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 5;
    background: rgba(18, 13, 30, 0.96);
  }

  .full-player.sidebar-open .fp-sidebar {
    transform: translateX(0);
  }

  .fp-card {
    padding: 18px 20px 22px;
  }

  .fp-cover-wrap {
    width: 74%;
    margin-bottom: 48px;
  }

  .fp-title {
    font-size: 22px;
  }
}

/* ---------- 打赏开发者 ---------- */
.reward-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
}

.reward-qr {
  width: min(78vw, 320px);
  max-width: 100%;
  border-radius: 16px;
  display: block;
  margin: 0 auto 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.reward-thanks {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.reward-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 音乐搜索 ---------- */
.library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 18px;
}

.search-ic {
  color: #b8b0cc;
  font-size: 17px;
  flex: 0 0 auto;
}

.library-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}

.library-search input::placeholder {
  color: #8f88a8;
}

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

.search-clear {
  display: none;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.library-search.has-text .search-clear {
  display: grid;
}

.search-results {
  display: none;
}

.search-results.show {
  display: block;
}

.track-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-title-wrap .track-title {
  flex: none;
}

.track-sub {
  font-size: 11px;
  color: #a29ec2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 歌词播放页布局 ===== */
.fp-card {
  width: min(100%, 900px);
  max-width: 900px;
  flex: 1 1 auto;
  min-width: 0;
}

.fp-main {
  display: block;
}

.fp-visual {
  min-width: 0;
}

.fp-cover-wrap {
  width: 58%;
  margin: 4px auto 18px;
}

.fp-lyrics-panel {
  position: relative;
  height: 36vh;
  min-height: 220px;
  margin-top: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.fp-lyrics {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 26px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.lyrics-credits {
  position: relative;
  padding: 18px;
  margin: 2px 0 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 104, 155, 0.1), transparent 44%),
    linear-gradient(145deg, rgba(156, 39, 176, 0.14), rgba(25, 18, 40, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  animation: creditsReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lyrics-credits::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -55px;
  bottom: -68px;
  border-radius: 50%;
  background: rgba(156, 39, 176, 0.2);
  filter: blur(28px);
  pointer-events: none;
}

.lyrics-credits-head {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.lyrics-credits-kicker {
  display: block;
  margin-bottom: 4px;
  color: #ff9abb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.4px;
}

.lyrics-credits h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.2px;
}

.lyrics-credit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px 18px;
}

.lyrics-credit-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.lyrics-credit-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lyrics-credit-label {
  color: #9e96b8;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.4px;
}

.lyrics-credit-value {
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.lyrics-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #b8b0cc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.lyrics-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
}

.lyric-line {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 17px;
  font-family: inherit;
  text-align: left;
  line-height: 1.65;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transform-origin: left center;
  transition:
    color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease,
    text-shadow 0.45s ease,
    letter-spacing 0.45s ease;
  will-change: transform, opacity, filter;
}

.lyric-line::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9abb, #9c27b0);
  box-shadow: 0 0 14px rgba(255, 104, 155, 0.55);
  opacity: 0;
  transform: translateY(-50%);
  transition:
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.lyric-line.near {
  color: rgba(255, 255, 255, 0.66);
  transform: translateX(4px) scale(0.992);
}

.lyric-line.far {
  color: rgba(255, 255, 255, 0.34);
  transform: translateX(1px) scale(0.978);
}

.lyric-line.active {
  color: #fff;
  transform: translateX(12px) scale(1.035);
  letter-spacing: 0.12px;
  text-shadow: 0 0 24px rgba(255, 104, 155, 0.24);
  animation: lyricFocus 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyric-line.active::before {
  height: 1.15em;
  opacity: 1;
  animation: lyricAccentPulse 2.8s ease-in-out 0.65s infinite;
}

.fp-lyrics.is-gliding .lyric-line:not(.active) {
  filter: blur(0.18px);
}

@keyframes lyricFocus {
  0% {
    opacity: 0.35;
    transform: translateX(4px) scale(0.985);
    filter: blur(0.7px);
  }
  100% {
    opacity: 1;
    transform: translateX(12px) scale(1.035);
    filter: blur(0);
  }
}

@keyframes lyricAccentPulse {
  0%, 100% {
    opacity: 0.78;
    box-shadow: 0 0 12px rgba(255, 104, 155, 0.38);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 104, 155, 0.68);
  }
}

@keyframes creditsReveal {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lyrics-empty {
  color: #b8b0cc;
  text-align: center;
  padding: 60px 0;
  font-size: 14px;
}

.fp-bottom-area {
  margin-top: 10px;
}

@media (min-width: 900px), (min-width: 640px) and (orientation: landscape) {
  .fp-main {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 36px;
    align-items: center;
  }

  .fp-cover-wrap {
    width: 100%;
    margin: 0 0 18px;
  }

  .fp-info {
    text-align: left;
  }

  .fp-lyrics-panel {
    height: 430px;
    min-height: 0;
    margin-top: 0;
  }

  .lyric-line {
    font-size: 19px;
    margin-bottom: 18px;
  }

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

  .lyrics-credit-item:nth-last-child(2) {
    border-bottom: 0;
  }

  .fp-title {
    font-size: 24px;
  }

  .fp-controls {
    gap: 40px;
  }
}

@media (max-width: 899px) {
  .fp-cover-wrap {
    width: 52%;
    margin: 4px auto 18px;
  }

  .fp-lyrics-panel {
    height: 36vh;
    min-height: 220px;
  }

  .fp-title {
    font-size: 22px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .fp-layout {
    align-items: flex-start;
    padding: 8px 14px;
  }

  .fp-card {
    padding: 8px 18px 12px;
  }

  .fp-main {
    grid-template-columns: minmax(130px, 185px) 1fr;
    gap: 24px;
  }

  .fp-cover-wrap {
    width: 100%;
    margin-bottom: 9px;
  }

  .fp-title {
    font-size: 18px;
  }

  .fp-sub {
    margin-top: 3px;
    font-size: 11px;
  }

  .fp-lyrics-panel {
    height: min(47vh, 250px);
    min-height: 160px;
  }

  .fp-lyrics {
    padding: 18px 14px;
  }

  .lyric-line {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.45;
  }

  .lyrics-credits {
    padding: 13px;
    margin-bottom: 18px;
  }

  .lyrics-credits-head {
    margin-bottom: 10px;
  }

  .lyrics-credit-grid {
    gap: 7px 14px;
  }

  .lyrics-credit-item {
    padding-bottom: 6px;
  }

  .fp-progress {
    margin-top: 10px;
  }

  .fp-controls {
    gap: 26px;
    padding-top: 8px;
  }

  .fp-play {
    width: 50px;
    height: 50px;
  }

  .fp-skip {
    font-size: 20px;
  }

  .fp-bottom {
    margin-top: 8px;
    padding-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lyric-line,
  .lyric-line::before {
    transition: none;
  }

  .lyric-line.active {
    animation: none;
  }

  .lyrics-credits {
    animation: none;
  }
}

/* 底部播放器 */
.player-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(92vw, 540px);
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  color: #1d1d1f;
  display: none;
  overflow: hidden;
}

.player-bar.show {
  display: block;
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0;
}

.player-time {
  font-size: 10px;
  color: #86868b;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.player-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #fa243c var(--p, 0%), rgba(0, 0, 0, 0.12) var(--p, 0%));
  outline: none;
  margin: 0;
}

.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fa243c;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.player-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 10px;
}

.player-cover {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 7px;
  object-fit: cover;
  background: #e5e5ea;
}

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

.player-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-size: 11px;
  color: #86868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.player-btn {
  border: none;
  background: none;
  color: #1d1d1f;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  text-decoration: none;
  line-height: 1;
}

.player-play {
  font-size: 20px;
  color: #fa243c;
}

body.has-player #app {
  padding-bottom: 120px;
}

/* ---------- 兑换码 ---------- */
.code-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  margin-bottom: 14px;
}

.code-value {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  word-break: break-all;
  line-height: 1.5;
}

.code-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.code-warning {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ff9b9b;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 14px;
  text-align: center;
}

/* ================= 全屏播放器：封面 / 歌词 / 沉浸歌词 / 横屏分栏 ================= */
.full-player {
  display: block;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: #0f0a1c;
  font-family: "PingFang SC", "苹方", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", sans-serif;
}

.fp-ambient,
.fp-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fp-ambient {
  overflow: hidden;
  z-index: 0;
}

.fp-ambient-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  filter: blur(44px) saturate(1.18);
  opacity: 0.72;
  transition: filter 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.fp-scrim {
  z-index: 0;
  background:
    radial-gradient(900px 700px at 25% 0%, rgba(16, 26, 46, 0.2), rgba(8, 7, 15, 0.7) 76%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.28) 0%, rgba(6, 5, 12, 0.2) 46%, rgba(6, 5, 12, 0.78) 100%);
}

.fp-glow,
.fp-particles {
  z-index: 1;
}

.fp-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.fp-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  padding:
    max(12px, env(safe-area-inset-top))
    22px
    max(14px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-sizing: border-box;
}

.fp-header {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  flex: 0 0 auto;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-close,
.fp-round-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease;
}

.fp-close .icon,
.fp-round-btn .icon,
.fp-mini-icon .icon,
.fp-skip .icon,
.fp-tool-button .icon {
  width: 19px;
  height: 19px;
  display: block;
}

.fp-close .icon {
  width: 21px;
  height: 21px;
}

.fp-close:active,
.fp-round-btn:active,
.fp-mini-track:active,
.fp-tool-button:active {
  transform: scale(0.92);
}

.fp-mini-track {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.fp-mini-cover {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.fp-mini-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-mini-title {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1.25;
}

.fp-mini-sub {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.fp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  transition: opacity 0.35s ease;
}

.fp-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: block;
}

.fp-cover-stage,
.fp-lyrics-stage {
  min-width: 0;
  min-height: 0;
}

.fp-cover-stage {
  position: relative;
  display: none;
}

.fp-lyrics-stage {
  display: none;
}

.fp-art-trigger {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.fp-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: static;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  background: #181423;
}

.fp-cover-info {
  min-width: 0;
}

.fp-title {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.5px;
}

.fp-sub {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 400;
}

.fp-cover-actions {
  display: flex;
  gap: 9px;
}

.fp-lyrics-panel {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 90%, transparent 100%);
}

.fp-lyrics {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 38% 8px 38%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.full-player .lyric-line {
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  font-family: "PingFang SC", "苹方", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: -0.1px;
  cursor: pointer;
  transform-origin: left center;
  transition:
    color 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease,
    filter 0.55s ease,
    text-shadow 0.5s ease,
    letter-spacing 0.5s ease;
  will-change: transform, opacity, filter, font-size;
}

.full-player .lyric-line:not(.active) {
  color: rgba(255, 255, 255, 0.7);
  opacity: var(--lyric-opacity, 0.5);
  filter: blur(var(--lyric-blur, 0.6px));
  transform: translateX(var(--lyric-x, 0)) scale(var(--lyric-scale, 1));
}

.full-player .lyric-line.active {
  color: #fff;
  opacity: 1;
  filter: none;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.45px;
  transform: translateX(7px) scale(1);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.26);
  animation: none;
}

.full-player .lyric-line.active::before {
  display: none;
}

.full-player .fp-lyrics.is-gliding .lyric-line:not(.active) {
  filter: blur(var(--lyric-blur, 0.6px));
}

.full-player .fp-lyrics.is-browsing .lyric-line:not(.active) {
  color: rgba(255, 255, 255, 0.86);
  opacity: 0.9;
  filter: none;
  transform: translateX(0) scale(1);
}

.full-player .fp-lyrics.is-browsing .lyric-line.active {
  color: #fff;
  opacity: 1;
  filter: none;
}

@keyframes fpLyricFocus {
  from {
    opacity: 0.35;
    transform: translateX(1px) scale(0.955);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translateX(7px) scale(1);
    filter: blur(0);
  }
}

.fp-cover-info,
.fp-cover-actions,
.fp-lyrics-button {
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-bottom-area {
  position: relative;
  z-index: 7;
  flex: 0 0 auto;
  margin: 0 -22px;
  padding: 0 22px max(2px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 6, 13, 0.64) 27%, rgba(7, 6, 13, 0.9));
}

.fp-progress {
  margin-top: 10px;
}

.fp-range {
  height: 4px;
  background: linear-gradient(to right, #f4f2f8 0%, #f4f2f8 var(--p, 0%), rgba(255, 255, 255, 0.22) var(--p, 0%));
}

.fp-range::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  background: #fff;
  box-shadow: none;
}

.fp-cur,
.fp-dur {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.fp-controls {
  padding: 13px 0 8px;
  gap: 48px;
}

.fp-skip {
  padding: 10px;
  color: rgba(255, 255, 255, 0.94);
}

.fp-skip .icon {
  width: 29px;
  height: 29px;
}

.fp-play {
  width: 62px;
  height: 62px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.fp-play:hover {
  box-shadow: 0 14px 40px rgba(255, 104, 155, 0.28);
}

.fp-play .icon {
  color: #fff;
}

.fp-bottom {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 0;
  gap: 8px;
}

.fp-tool-button {
  min-width: 58px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

.fp-volume {
  gap: 7px;
}

.fp-volume-range {
  width: min(28vw, 120px);
  background: rgba(255, 255, 255, 0.22);
}

.fp-mini-icon {
  color: rgba(255, 255, 255, 0.68);
}

/* 封面页：全屏专辑图 */
.fp-view-cover .fp-ambient-img {
  transform: none;
  filter: none;
  opacity: 1;
}

.fp-view-cover .fp-scrim {
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.18), rgba(5, 8, 15, 0.02) 38%, rgba(6, 5, 12, 0.76) 76%, rgba(6, 5, 12, 0.96));
}

.fp-view-cover .fp-header {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 18px;
  right: 18px;
}

.fp-view-cover .fp-mini-track,
.fp-view-cover .fp-header-actions {
  opacity: 0;
  pointer-events: none;
}

.fp-view-cover .fp-cover-stage {
  display: block;
  position: relative;
  height: 100%;
}

.fp-view-cover .fp-art-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fp-view-cover .fp-art-trigger .fp-cover {
  opacity: 0;
}

.fp-view-cover .fp-cover-info {
  position: absolute;
  left: 1px;
  right: 104px;
  bottom: 12px;
  z-index: 3;
  text-align: left;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.fp-view-cover .fp-title {
  font-size: 28px;
}

.fp-view-cover .fp-cover-actions {
  position: absolute;
  right: 0;
  bottom: 8px;
  z-index: 3;
}

.fp-view-cover .fp-close,
.fp-view-cover .fp-cover-actions .fp-round-btn {
  background: rgba(16, 15, 24, 0.3);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.fp-view-cover .fp-lyrics-stage {
  display: none;
}

/* 紧凑歌词页 */
.fp-view-lyrics .fp-cover-stage {
  display: none;
}

.fp-view-lyrics .fp-lyrics-stage {
  display: flex;
  height: 100%;
  animation: fpLyricsReveal 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-view-lyrics .fp-lyrics-panel {
  flex: 1;
}

.fp-view-lyrics .fp-lyrics {
  padding: 31% 5px 38%;
}

.fp-view-lyrics .lyrics-credits {
  background: rgba(14, 12, 25, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.fp-view-lyrics .fp-ambient-img {
  filter: blur(48px) saturate(1.22);
  opacity: 0.66;
}

/* 沉浸歌词页 */
.fp-view-immersive .fp-cover-stage {
  display: none;
}

.fp-view-immersive .fp-lyrics-stage {
  display: flex;
  height: 100%;
  animation: fpImmersiveReveal 0.66s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-view-immersive .fp-header {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  justify-content: center;
  min-height: 50px;
}

.fp-view-immersive .fp-close {
  position: absolute;
  left: 0;
  opacity: 0.62;
}

.fp-view-immersive .fp-mini-track {
  padding: 3px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.fp-view-immersive .fp-mini-cover {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 12px;
}

.fp-view-immersive .fp-mini-meta,
.fp-view-immersive .fp-header-actions {
  display: none;
}

.fp-view-immersive .fp-lyrics {
  padding: 24% 2px 40%;
}

.fp-view-immersive .lyrics-credits,
.fp-view-immersive .lyrics-divider {
  display: none;
}

.fp-view-immersive .fp-ambient-img {
  transform: scale(1.35);
  filter: blur(62px) saturate(1.12);
  opacity: 0.52;
}

.fp-view-immersive .fp-scrim {
  background:
    radial-gradient(900px 700px at 40% 10%, rgba(14, 22, 38, 0.18), rgba(7, 6, 13, 0.82) 78%),
    linear-gradient(180deg, rgba(6, 8, 15, 0.16), rgba(5, 4, 11, 0.86));
}

.fp-view-immersive .lyric-line {
  font-size: 21px;
  line-height: 1.62;
}

.fp-view-immersive .lyric-line.active {
  font-size: 30px;
  line-height: 1.45;
}

.fp-view-immersive .fp-bottom-area {
  background: linear-gradient(180deg, transparent, rgba(5, 4, 10, 0.86) 34%, rgba(5, 4, 10, 0.97));
}

.fp-view-immersive .fp-lyrics-button {
  min-width: 38px;
  width: 38px;
  padding: 0;
}

.fp-view-immersive .fp-lyrics-button span {
  display: none;
}

.fp-view-immersive .fp-mini-track {
  animation: fpImmersiveCover 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fpLyricsReveal {
  from {
    opacity: 0.2;
    transform: translateY(16px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fpImmersiveReveal {
  from {
    opacity: 0.15;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fpImmersiveCover {
  from { opacity: 0; transform: translateY(-8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fp-view-cover .fp-cover-info,
.fp-view-cover .fp-cover-actions {
  animation: fpCoverReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* 电脑 / 手机横屏分栏 */
.full-player.fp-wide .fp-card {
  max-width: 1180px;
  padding:
    max(14px, env(safe-area-inset-top))
    32px
    max(12px, env(safe-area-inset-bottom));
}

.fp-wide .fp-header {
  min-height: 54px;
}

.fp-wide.fp-view-cover .fp-mini-track,
.fp-wide.fp-view-cover .fp-header-actions {
  opacity: 1;
  pointer-events: auto;
}

.fp-wide .fp-main {
  display: grid;
  grid-template-columns: minmax(250px, 42%) minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  min-height: 0;
}

.fp-wide .fp-cover-stage,
.fp-wide .fp-lyrics-stage {
  display: flex;
  height: 100%;
  min-height: 0;
  align-items: center;
}

.fp-wide .fp-cover-stage {
  flex-direction: column;
  justify-content: center;
}

.fp-wide .fp-lyrics-stage {
  flex-direction: column;
}

.fp-wide .fp-art-trigger {
  position: relative;
  inset: auto;
  width: min(100%, 58vh);
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.fp-wide .fp-art-trigger .fp-cover {
  opacity: 1;
}

.fp-wide .fp-cover-info {
  position: static;
  width: 100%;
  margin-top: 17px;
  text-align: left;
}

.fp-wide .fp-title {
  font-size: 24px;
}

.fp-wide .fp-cover-actions {
  display: none;
}

.fp-wide .fp-ambient-img {
  transform: scale(1.3);
  filter: blur(52px) saturate(1.2);
  opacity: 0.58;
}

.fp-wide .fp-lyrics-panel {
  width: 100%;
  height: 100%;
}

.fp-wide .fp-lyrics {
  padding: 29% 5px 32%;
}

.fp-wide .lyric-line {
  font-size: 18px;
}

.fp-wide .lyric-line.active {
  font-size: 27px;
}

.fp-wide .fp-bottom-area {
  margin: 0;
  padding: 0;
  background: transparent;
}

.fp-wide .fp-progress {
  margin-top: 4px;
}

.fp-wide .fp-controls {
  padding: 8px 0 5px;
  gap: 38px;
}

.fp-wide .fp-play {
  width: 54px;
  height: 54px;
}

.fp-wide .fp-bottom {
  padding-top: 4px;
}

@media (max-height: 600px) and (orientation: landscape) {
  .fp-wide .fp-card {
    padding: 8px 18px 6px;
  }

  .fp-wide .fp-header {
    min-height: 42px;
  }

  .fp-wide .fp-main {
    grid-template-columns: minmax(160px, 34%) minmax(0, 1fr);
    gap: 26px;
  }

  .fp-wide .fp-art-trigger {
    width: min(100%, 48vh);
  }

  .fp-wide .fp-cover-info {
    margin-top: 8px;
  }

  .fp-wide .fp-title {
    font-size: 17px;
  }

  .fp-wide .fp-sub {
    font-size: 11px;
  }

  .fp-wide .fp-lyrics {
    padding: 24% 4px 28%;
  }

  .fp-wide .lyric-line {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .fp-wide .lyric-line.active {
    font-size: 22px;
  }

  .fp-wide .fp-controls {
    padding-top: 4px;
  }

  .fp-wide .fp-play {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 420px) {
  .fp-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .fp-mini-title,
  .fp-mini-sub {
    max-width: 150px;
  }

  .fp-view-cover .fp-title {
    font-size: 25px;
  }

  .fp-view-immersive .lyric-line.active {
    font-size: 27px;
  }

  .fp-controls {
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-ambient-img,
  .fp-header,
  .full-player .lyric-line,
  .fp-cover-info,
  .fp-cover-actions {
    transition: none;
  }
}

/* 专辑封面统一正方形，并支持从详情页直接下载 */
.album-hero-art {
  width: min(82vw, 330px);
  max-width: 330px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.cover-download-btn {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.cover-download-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(10, 8, 18, 0.66);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.cover-download-label .icon {
  width: 13px;
  height: 13px;
}

.cover-download-btn:active .album-hero-art {
  transform: scale(0.985);
}

.cover-download-btn .album-hero-art {
  transition: transform 0.18s ease;
}

/* 大封面保持正方形，顶部不再覆盖封面 */
.fp-view-cover .fp-ambient-img {
  transform: scale(1.28);
  filter: blur(54px) saturate(1.18);
  opacity: 0.56;
}

.fp-view-cover .fp-scrim {
  background:
    radial-gradient(800px 680px at 35% 10%, rgba(15, 22, 38, 0.22), rgba(7, 6, 13, 0.82) 76%),
    linear-gradient(180deg, rgba(5, 7, 14, 0.34), rgba(6, 5, 12, 0.78));
}

.fp-view-cover .fp-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.fp-view-cover .fp-cover-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
}

.fp-view-cover .fp-art-trigger {
  position: relative;
  inset: auto;
  order: 1;
  width: min(82vw, 430px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 21px;
  overflow: hidden;
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.4);
}

.fp-view-cover .fp-art-trigger .fp-cover {
  opacity: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.fp-view-cover .fp-cover-info {
  position: static;
  order: 2;
  width: min(82vw, 430px);
  margin: 0;
  right: auto;
  bottom: auto;
  text-align: center;
}

.fp-view-cover .fp-cover-actions {
  position: static;
  order: 3;
  right: auto;
  bottom: auto;
  justify-content: center;
  margin-top: 2px;
}

.fp-view-cover .fp-title {
  font-size: 32px;
}

.fp-view-cover .fp-sub {
  font-size: 16px;
}

.fp-mini-title {
  font-size: 19px;
}

.fp-mini-sub {
  font-size: 13px;
}

.full-player .lyric-line {
  font-size: 18px;
}

.full-player .lyric-line.active {
  font-size: 29px;
}

.fp-view-immersive .lyric-line {
  font-size: 23px;
}

.fp-view-immersive .lyric-line.active {
  font-size: 33px;
}

.fp-wide .fp-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.fp-wide .fp-art-trigger {
  width: min(100%, 54vh);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.fp-wide .fp-art-trigger .fp-cover {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.fp-wide .fp-cover-info {
  text-align: left;
}

.fp-wide .fp-title {
  font-size: 30px;
}

.fp-wide .fp-sub {
  font-size: 16px;
}

.fp-wide .lyric-line {
  font-size: 20px;
}

.fp-wide .lyric-line.active {
  font-size: 30px;
}

@media (max-height: 600px) and (orientation: landscape) {
  .fp-wide .fp-art-trigger {
    width: min(100%, 46vh);
  }

  .fp-wide .fp-title {
    font-size: 22px;
  }

  .fp-wide .lyric-line {
    font-size: 17px;
  }

  .fp-wide .lyric-line.active {
    font-size: 25px;
  }
}

@media (max-width: 420px) {
  .fp-view-cover .fp-title {
    font-size: 29px;
  }

  .full-player .lyric-line.active {
    font-size: 27px;
  }

  .fp-view-immersive .lyric-line.active {
    font-size: 31px;
  }
}

/* 全站轻柔点击反馈与页面过渡 */
button:not(.lyric-line),
a:not(.cover-download-btn),
.track-row,
.player-cover,
.player-meta {
  transition-duration: 0.26s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

button:active:not(:disabled):not(.locked):not(.lyric-line),
a:not(.cover-download-btn):active,
.track-row:active,
.player-cover:active,
.player-meta:active {
  transform: scale(0.985) !important;
}

.lyric-line:active {
  opacity: 0.96;
}

.cover-download-btn:active {
  transform: none !important;
}

#app.page-fade {
  animation: pageSoftFade 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageSoftFade {
  from {
    opacity: 0;
    filter: blur(2.5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.site-disclaimer {
  max-width: 460px;
  margin: 38px auto 6px;
  padding: 18px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #706b85;
  font-size: 10px;
  line-height: 1.75;
  text-align: center;
  letter-spacing: 0.1px;
}

.site-disclaimer strong {
  color: #948da9;
  font-weight: 650;
}

.site-contact {
  display: block;
  margin-top: 8px;
  color: #807996;
  font-size: 10px;
  letter-spacing: 0.5px;
}

/* 本地进度备份 */
.progress-backup-card {
  position: relative;
  margin: 18px 0 24px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 145, 181, 0.25);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 104, 155, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(46, 30, 72, 0.94), rgba(25, 20, 48, 0.96));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.progress-backup-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 104, 155, 0.12);
  filter: blur(28px);
  pointer-events: none;
}

.backup-eyebrow {
  position: relative;
  z-index: 1;
  color: #ff91b5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.progress-backup-card h3 {
  position: relative;
  z-index: 1;
  margin: 6px 0 8px;
  font-size: 20px;
  color: #fff;
}

.backup-warning {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #b9b2cc;
  font-size: 12px;
  line-height: 1.7;
}

.backup-last {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #ffd479;
  font-size: 10px;
}

.backup-save-btn {
  position: relative;
  z-index: 1;
}

.backup-restore {
  position: relative;
  z-index: 1;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 11px auto 0;
  color: #ff9abb;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
}

.backup-restore input {
  display: none;
}

/* 资料库底部：听歌回忆 */
.listening-replay {
  position: relative;
  isolation: isolate;
  margin: 34px 0 8px;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 92% 4%, rgba(246, 196, 83, 0.3), transparent 42%),
    linear-gradient(145deg, #3b2654, #171126 72%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: replayEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.listening-replay::before {
  content: "";
  position: absolute;
  inset: -36px;
  z-index: -2;
  background-image: var(--replay-cover, none);
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(1.25);
  opacity: 0.54;
  transform: scale(1.16);
}

.listening-replay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 10, 28, 0.16), rgba(12, 8, 22, 0.78)),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08), transparent 48%);
}

.replay-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.replay-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 8px;
}

.replay-year {
  display: block;
  font-size: 52px;
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -2px;
}

.replay-hero h2 {
  margin: 7px 0 0;
  font-size: 19px;
  line-height: 1.2;
}

.replay-total {
  flex: 0 0 auto;
  text-align: right;
}

.replay-total > b {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1px;
}

.replay-total > span {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.replay-total p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.replay-total p strong {
  color: #fff;
  font-size: 14px;
}

.replay-unique {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.6;
}

.replay-section-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 750;
}

.replay-list {
  display: grid;
  gap: 7px;
}

.replay-track {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  animation: replayRowIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease;
}

.replay-track:nth-child(1) { animation-delay: 0.12s; }
.replay-track:nth-child(2) { animation-delay: 0.18s; }
.replay-track:nth-child(3) { animation-delay: 0.24s; }

.replay-track:hover {
  background: rgba(255, 255, 255, 0.085);
}

.replay-rank {
  width: 20px;
  flex: 0 0 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.replay-track img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}

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

.replay-meta b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.replay-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}

.replay-nums {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.replay-nums b {
  color: #ffd479;
  font-size: 11px;
}

.replay-nums small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  white-space: nowrap;
}

.replay-empty {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.7;
}

.replay-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
  text-align: center;
}

@keyframes replayEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 380px) {
  .replay-hero {
    align-items: flex-start;
  }

  .replay-year {
    font-size: 45px;
  }

  .replay-total > b {
    font-size: 27px;
  }
}
