:root {
  --bg: #050713;
  --glass: rgba(12, 18, 38, 0.68);
  --glass-strong: rgba(13, 21, 44, 0.86);
  --line: rgba(191, 231, 255, 0.16);
  --line-hot: rgba(108, 235, 255, 0.48);
  --text: #f5f9ff;
  --muted: #8291b1;
  --cyan: #6cecff;
  --blue: #6d9cff;
  --violet: #a184ff;
  --pink: #ff86d4;
  --danger: #ff93a4;
  --deep-shadow: 0 36px 110px rgba(0, 0, 0, 0.48);
  --soft-shadow: 0 18px 54px rgba(0, 4, 20, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  color-scheme: dark;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(106, 83, 219, 0.3), transparent 42%),
    radial-gradient(circle at 2% 70%, rgba(33, 180, 208, 0.13), transparent 34%),
    linear-gradient(145deg, #080b1b 0%, #050712 48%, #080a18 100%);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.scene,
.scene-grid,
.scene-orb {
  position: fixed;
  pointer-events: none;
}

.scene {
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.scene-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 224, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 224, 255, 0.022) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 96%);
}

.scene-orb {
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(112px);
  opacity: 0.14;
  animation: scene-drift 18s ease-in-out infinite alternate;
}

.scene-orb-a {
  top: -18rem;
  left: -13rem;
  background: var(--cyan);
}

.scene-orb-b {
  top: 16%;
  right: -22rem;
  background: var(--violet);
  animation-delay: -7s;
}

.scene-orb-c {
  bottom: -24rem;
  left: 34%;
  background: var(--pink);
  animation-delay: -12s;
}

@keyframes scene-drift {
  to {
    transform: translate3d(48px, 34px, 0) scale(1.08);
  }
}

.page-shell {
  width: min(1450px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 58px;
}

.glass {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 34%),
    var(--glass);
  box-shadow: var(--deep-shadow), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}

.glass::before {
  position: absolute;
  top: 0;
  right: 11%;
  left: 11%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 242, 255, 0.6), transparent);
  content: "";
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  margin-bottom: 18px;
  padding: 11px 18px;
  border-radius: 24px;
  background: rgba(7, 12, 27, 0.62);
  box-shadow: var(--soft-shadow), inset 0 1px rgba(255, 255, 255, 0.055);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-crystal {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(166, 243, 255, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(190, 248, 255, 0.22), rgba(104, 134, 255, 0.08) 48%, rgba(161, 132, 255, 0.18));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 0 32px rgba(108, 236, 255, 0.12);
}

.brand-crystal::before {
  position: absolute;
  inset: -45% 36% -45% 32%;
  transform: rotate(28deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  content: "";
}

.brand-crystal i {
  position: absolute;
  width: 2px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--violet), #d9fbff);
  box-shadow: 0 0 10px var(--cyan);
  animation: logo-wave 1.05s ease-in-out infinite alternate;
}

.brand-crystal i:nth-child(1) { height: 14px; transform: translateX(-7px); }
.brand-crystal i:nth-child(2) { height: 25px; animation-delay: -0.55s; }
.brand-crystal i:nth-child(3) { height: 19px; transform: translateX(7px); animation-delay: -0.28s; }

@keyframes logo-wave {
  to { height: 8px; opacity: 0.55; }
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.brand-copy small,
.system-state,
.overline,
.section-head p,
.lyrics-status {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.system-state {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-state > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.system-state i,
.overline i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
  animation: signal 1.8s ease-out infinite;
}

.system-state b {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: #bdc7de;
  font-size: inherit;
}

@keyframes signal {
  50% { box-shadow: 0 0 0 6px rgba(108, 236, 255, 0.06), 0 0 18px var(--cyan); }
}

.music-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.player-panel,
.library-panel,
.lyrics-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 30px;
}

.player-panel {
  display: flex;
  min-height: 760px;
  flex-direction: column;
  padding: 25px 34px 28px;
  background:
    radial-gradient(circle at 50% 25%, rgba(108, 236, 255, 0.1), transparent 31%),
    radial-gradient(circle at 74% 10%, rgba(161, 132, 255, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 35%),
    rgba(9, 15, 33, 0.79);
}

.panel-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 470px;
  height: 470px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 233, 255, 0.08), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.player-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
}

.overline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bfc9df;
}

.time-chip,
.count-chip,
.lrc-chip {
  display: inline-grid;
  min-height: 29px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(108, 236, 255, 0.2);
  border-radius: 999px;
  color: #b9f5ff;
  background: rgba(108, 236, 255, 0.065);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.player-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.crystal-stage {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  margin: 2px 0 7px;
  isolation: isolate;
}

.crystal-stage::before {
  position: absolute;
  z-index: -2;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 236, 255, 0.18), rgba(109, 156, 255, 0.07) 44%, transparent 72%);
  filter: blur(16px);
  content: "";
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(108, 236, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c3f8ff;
  box-shadow: 0 0 16px var(--cyan);
  content: "";
}

.orbit-a {
  width: 350px;
  height: 350px;
  animation: orbit-spin 22s linear infinite;
}

.orbit-b {
  width: 314px;
  height: 314px;
  border-style: dashed;
  opacity: 0.58;
  animation: orbit-spin 17s linear infinite reverse;
}

.orbit-c {
  width: 382px;
  height: 284px;
  transform: rotate(-20deg);
  border-color: rgba(161, 132, 255, 0.09);
}

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

.crystal-disc {
  position: relative;
  width: min(292px, 64vw);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(207, 247, 255, 0.26);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.035) 0 1px, transparent 1.5px 5px),
    conic-gradient(from 18deg, #0a1024, #25264d 11%, #0a1021 26%, #1c3953 40%, #080d1e 56%, #38284e 73%, #091122 89%, #0a1024);
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.56),
    0 0 60px rgba(108, 236, 255, 0.11),
    inset 0 0 32px rgba(0, 0, 0, 0.72),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

.crystal-disc.is-playing {
  animation: disc-spin 8s linear infinite;
}

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

.disc-reflection {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 12%, rgba(163, 245, 255, 0.17) 19%, transparent 29% 57%, rgba(171, 140, 255, 0.14) 65%, transparent 77%);
  mask-image: radial-gradient(circle, transparent 0 33%, black 35% 100%);
}

.disc-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.disc-ring-a { inset: 13%; }
.disc-ring-b { inset: 24%; }

.disc-core {
  position: absolute;
  display: grid;
  inset: 34%;
  place-items: center;
  border: 1px solid rgba(224, 250, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, #f1fdff 0 3%, transparent 4%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(135deg, #5f63c7, #2698aa 54%, #a15194);
  box-shadow: 0 0 34px rgba(108, 236, 255, 0.21), inset 0 0 18px rgba(255, 255, 255, 0.14);
}

.equalizer {
  display: flex;
  align-items: center;
  height: 34px;
  gap: 2px;
}

.equalizer i {
  width: 2px;
  height: 27px;
  transform-origin: center;
  border-radius: 3px;
  background: rgba(246, 253, 255, 0.92);
  animation: equalizer 0.75s ease-in-out infinite alternate;
}

.equalizer i:nth-child(2n) { animation-duration: 0.54s; animation-delay: -0.3s; }
.equalizer i:nth-child(3n) { animation-duration: 1.04s; animation-delay: -0.58s; }
.crystal-disc:not(.is-playing) .equalizer i { animation-play-state: paused; transform: scaleY(0.2); }

@keyframes equalizer {
  to { transform: scaleY(0.17); opacity: 0.5; }
}

.track-identity {
  min-width: 0;
  text-align: center;
}

.track-identity > p:first-child {
  margin: 0;
  overflow: hidden;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.track-identity h1 {
  margin: 8px 0 0;
  overflow: hidden;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-lyric {
  min-height: 24px;
  margin: 12px 0 0;
  overflow: hidden;
  color: #9aa7c1;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 11px;
  width: min(600px, 100%);
  margin: 28px auto 0;
  color: #7785a3;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.range {
  --range-progress: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan) 0 var(--range-progress), rgba(151, 169, 211, 0.2) var(--range-progress) 100%);
}

.range::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: 2px solid #0b1330;
  border-radius: 50%;
  background: #c4f9ff;
  box-shadow: 0 0 15px rgba(108, 236, 255, 0.72);
  appearance: none;
}

.range::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(151, 169, 211, 0.2);
}

.range::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
}

.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #0b1330;
  border-radius: 50%;
  background: #c4f9ff;
  box-shadow: 0 0 15px rgba(108, 236, 255, 0.72);
}

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  margin-top: 13px;
}

.control {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.control:hover { transform: translateY(-2px) scale(1.04); }
.control:active { transform: scale(0.95); }
.control:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.control:disabled { cursor: not-allowed; opacity: 0.34; transform: none; }

.control-side {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #c4cde0;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  font-size: 10px;
}

.control-side:hover {
  border-color: var(--line-hot);
  color: var(--cyan);
  box-shadow: 0 0 25px rgba(108, 236, 255, 0.08), inset 0 1px rgba(255, 255, 255, 0.07);
}

.control-play {
  width: 68px;
  height: 68px;
  padding-left: 4px;
  border-radius: 50%;
  color: #06101d;
  background: linear-gradient(145deg, #d6fbff, #6cecff 49%, #9083ff);
  box-shadow: 0 13px 38px rgba(108, 236, 255, 0.27), inset 0 1px rgba(255, 255, 255, 0.82);
  font-size: 20px;
  font-weight: 900;
}

.control-play:hover { box-shadow: 0 16px 48px rgba(108, 236, 255, 0.38), inset 0 1px rgba(255, 255, 255, 0.84); }

.volume-control {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 10px;
  width: min(340px, 100%);
  margin: 15px auto 0;
  color: #7886a2;
  font-size: 10px;
}

.speaker { color: #a1acc1; font-size: 11px; }
.volume-control output { text-align: right; font-variant-numeric: tabular-nums; }

.track-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(600px, 100%);
  margin: 16px auto 0;
}

.track-meta > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.track-meta dt {
  color: #687694;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.track-meta dd {
  margin: 5px 0 0;
  overflow: hidden;
  color: #c0c9dc;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-column {
  display: grid;
  grid-template-rows: minmax(390px, 1.05fr) minmax(330px, 0.95fr);
  gap: 18px;
  min-width: 0;
}

.library-panel,
.lyrics-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 24px 21px 19px;
  box-shadow: var(--soft-shadow), inset 0 1px rgba(255, 255, 255, 0.055);
}

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

.section-head p,
.section-head h2 {
  margin: 0;
}

.section-head p { color: var(--cyan); }

.section-head h2 {
  margin-top: 5px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.count-chip {
  min-width: 42px;
  font-variant-numeric: tabular-nums;
}

.search-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin-bottom: 13px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(3, 7, 19, 0.48);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-field:focus-within {
  border-color: var(--line-hot);
  background: rgba(6, 11, 26, 0.8);
  box-shadow: 0 0 0 4px rgba(108, 236, 255, 0.045);
}

.search-field > span {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.search-field > span::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--muted);
  content: "";
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-field input::placeholder { color: #65718c; }

.search-field kbd {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #74809b;
  background: rgba(255, 255, 255, 0.03);
  font-family: inherit;
  font-size: 13px;
}

.status-banner {
  display: none;
  margin-bottom: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(108, 236, 255, 0.2);
  border-radius: 13px;
  color: #c9f7ff;
  background: rgba(108, 236, 255, 0.06);
  font-size: 12px;
}

.status-banner.is-visible { display: block; }

.status-banner.is-error {
  border-color: rgba(255, 147, 164, 0.34);
  color: #ffd9df;
  background: rgba(255, 147, 164, 0.08);
}

.track-list {
  display: grid;
  align-content: start;
  flex: 1;
  min-height: 0;
  max-height: 520px;
  gap: 8px;
  overflow: auto;
  padding: 1px 4px 1px 0;
  scrollbar-color: rgba(108, 236, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.track-list::-webkit-scrollbar,
.lyrics-box::-webkit-scrollbar { width: 4px; }
.track-list::-webkit-scrollbar-track,
.lyrics-box::-webkit-scrollbar-track { background: transparent; }
.track-list::-webkit-scrollbar-thumb,
.lyrics-box::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(108, 236, 255, 0.2); }

.track-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  text-align: left;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.track-item::before {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 2px;
  transform: scaleY(0);
  border-radius: 4px;
  background: linear-gradient(var(--cyan), var(--violet));
  box-shadow: 0 0 13px var(--cyan);
  content: "";
  transition: transform 220ms ease;
}

.track-item:hover {
  transform: translateX(3px);
  border-color: rgba(108, 236, 255, 0.14);
  background: rgba(108, 236, 255, 0.045);
}

.track-item.is-active {
  border-color: rgba(108, 236, 255, 0.28);
  background: linear-gradient(90deg, rgba(108, 236, 255, 0.105), rgba(161, 132, 255, 0.055));
  box-shadow: 0 8px 28px rgba(0, 6, 24, 0.3);
}

.track-item.is-active::before { transform: scaleY(1); }

.track-rank {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  color: #71809c;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 700;
}

.track-item.is-active .track-rank {
  border-color: rgba(108, 236, 255, 0.2);
  color: var(--cyan);
  background: rgba(108, 236, 255, 0.07);
}

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

.track-main strong,
.track-main small,
.track-side span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-main strong {
  color: #eff5ff;
  font-size: 13px;
  font-weight: 600;
}

.track-main small {
  margin-top: 5px;
  color: #77849f;
  font-size: 10px;
}

.track-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.track-side > span:first-child {
  color: #a3aec4;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.lyric-pill {
  max-width: 64px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #6f7c96;
  background: rgba(255, 255, 255, 0.022);
  font-size: 8px;
}

.lyric-pill.has-lyrics {
  border-color: rgba(108, 236, 255, 0.16);
  color: #abf3ff;
  background: rgba(108, 236, 255, 0.055);
}

.empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  margin: 0;
  color: #73809b;
  font-size: 12px;
  text-align: center;
}

.lyrics-panel {
  background:
    linear-gradient(180deg, rgba(161, 132, 255, 0.045), transparent 38%),
    var(--glass);
}

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

.lrc-chip {
  min-width: 43px;
  border-color: rgba(161, 132, 255, 0.22);
  color: #c7bdff;
  background: rgba(161, 132, 255, 0.07);
}

.lyrics-window {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 220px;
  max-height: 360px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.lyrics-box {
  display: grid;
  align-content: center;
  flex: 1;
  min-height: 0;
  min-width: 0;
  gap: 3px;
  overflow: auto;
  padding: 37% 4px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(161, 132, 255, 0.2) transparent;
  scrollbar-width: thin;
}

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

.mask-top { top: 0; background: linear-gradient(rgba(14, 21, 43, 0.98), transparent); }
.mask-bottom { bottom: 0; background: linear-gradient(transparent, rgba(14, 21, 43, 0.98)); }

.lyric-line,
.lyrics-empty {
  margin: 0;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: #6b7894;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: color 260ms ease, opacity 260ms ease, transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.lyrics-empty {
  color: #74819c;
  line-height: 1.9;
  text-align: center;
}

.lyric-line { opacity: 0.56; }
.lyric-line.is-past { opacity: 0.28; }
.lyric-line.is-next { color: #9da8bd; opacity: 0.76; }

.lyric-line.is-active {
  transform: translateX(5px);
  border-color: var(--cyan);
  color: #f0fdff;
  background: linear-gradient(90deg, rgba(108, 236, 255, 0.1), transparent 86%);
  opacity: 1;
  text-shadow: 0 0 17px rgba(108, 236, 255, 0.34);
}

.lyrics-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: #67748f;
}

.mini-wave {
  display: flex;
  align-items: center;
  height: 17px;
  gap: 2px;
}

.mini-wave i {
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(var(--violet), var(--cyan));
  animation: mini-wave 0.82s ease-in-out infinite alternate;
}

.mini-wave i:nth-child(2) { animation-delay: -0.2s; }
.mini-wave i:nth-child(3) { animation-delay: -0.55s; }
.mini-wave i:nth-child(4) { animation-delay: -0.34s; }
.mini-wave i:nth-child(5) { animation-delay: -0.7s; }

@keyframes mini-wave {
  to { transform: scaleY(0.28); opacity: 0.45; }
}

body.is-playing .scene-orb { opacity: 0.19; }

@media (max-width: 1050px) {
  .page-shell { width: min(880px, calc(100% - 28px)); }

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

  .player-panel { min-height: 740px; }

  .side-column {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .library-panel { min-height: 480px; }
  .lyrics-panel { height: 480px; min-height: 480px; max-height: 480px; }

  .track-list { max-height: 350px; }
  .lyrics-box { padding: 110px 4px; }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 620px);
    padding-top: 8px;
  }

  .topbar {
    min-height: 62px;
    margin-bottom: 12px;
    padding: 8px 11px;
    border-radius: 19px;
  }

  .brand { gap: 9px; }
  .brand-crystal { width: 43px; height: 43px; border-radius: 14px; }
  .brand-copy strong { font-size: 15px; letter-spacing: 0.12em; }
  .brand-copy small { font-size: 8px; letter-spacing: 0.12em; }
  .system-state > span { display: none; }
  .system-state b { padding-left: 0; border-left: 0; font-size: 8px; }

  .music-grid,
  .side-column { gap: 12px; }

  .side-column {
    grid-template-columns: 1fr;
  }

  .player-panel,
  .library-panel,
  .lyrics-panel { border-radius: 23px; }

  .player-panel {
    min-height: 690px;
    padding: 21px 17px 24px;
  }

  .crystal-stage { min-height: 315px; }
  .crystal-disc { width: min(250px, 67vw); }
  .orbit-a { width: 288px; height: 288px; }
  .orbit-b { width: 266px; height: 266px; }
  .orbit-c { width: 312px; height: 242px; }
  .track-identity h1 { font-size: 30px; }
  .live-lyric { font-size: 12px; }

  .library-panel,
  .lyrics-panel {
    min-height: 510px;
    padding: 21px 16px 17px;
  }

  .lyrics-panel { height: 510px; max-height: 510px; }

  .track-list { max-height: 390px; }
  .lyrics-box { padding: 120px 3px; }
  .track-meta { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .player-panel { min-height: 650px; }
  .crystal-stage { min-height: 278px; }
  .crystal-disc { width: 220px; }
  .orbit-a { width: 250px; height: 250px; }
  .orbit-b { width: 232px; height: 232px; }
  .orbit-c { width: 270px; height: 214px; }
  .track-identity h1 { font-size: 26px; }
  .timeline { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 7px; }
  .control-side { width: 44px; height: 44px; }
  .control-play { width: 61px; height: 61px; }
  .track-item { grid-template-columns: 34px minmax(0, 1fr); }
  .track-side {
    grid-column: 2;
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .track-side > span:first-child { align-self: center; }
}

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

/* 紧凑桌面工作区：在 1920×1080 且浏览器顶部占用空间时仍保持完整可见。 */
:root {
  --workspace-height: clamp(590px, calc(100vh - 150px), 670px);
}

.page-shell {
  padding-top: 14px;
  padding-bottom: 48px;
}

.topbar {
  min-height: 64px;
  margin-bottom: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.music-grid {
  grid-template-columns: minmax(520px, 1.35fr) minmax(360px, 0.8fr);
  align-items: start;
  gap: 12px;
}

.player-panel {
  height: var(--workspace-height);
  min-height: var(--workspace-height);
  max-height: var(--workspace-height);
  padding: 19px 30px 20px;
}

.side-column {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
  height: var(--workspace-height);
}

.library-panel,
.lyrics-panel {
  min-height: 0;
  padding: 17px 16px 13px;
}

.section-head {
  margin-bottom: 10px;
}

.section-head h2 {
  margin-top: 3px;
  font-size: 20px;
}

.search-field {
  min-height: 40px;
  margin-bottom: 8px;
}

.search-field input {
  height: 38px;
}

.track-list {
  display: grid;
  flex: 0 0 210px;
  grid-auto-rows: 48px;
  height: 210px;
  max-height: 210px;
  gap: 6px;
}

.track-item {
  min-height: 48px;
  padding: 5px 8px;
  border-radius: 13px;
}

.track-rank {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.track-main small {
  margin-top: 2px;
}

.crystal-stage {
  min-height: 258px;
  margin-top: 0;
  margin-bottom: 2px;
}

.crystal-disc {
  width: min(220px, 54vw);
}

.orbit-a { width: 264px; height: 264px; }
.orbit-b { width: 242px; height: 242px; }
.orbit-c { width: 286px; height: 218px; }

.track-identity h1 {
  margin-top: 5px;
  font-size: clamp(27px, 2.4vw, 35px);
}

.live-lyric-board {
  --lyric-flow-duration: 3s;
  position: relative;
  display: grid;
  width: min(620px, 100%);
  min-height: 46px;
  margin: 9px auto 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(108, 236, 255, 0.14);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(108, 236, 255, 0.035), rgba(161, 132, 255, 0.07), rgba(108, 236, 255, 0.035)),
    rgba(5, 10, 25, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 10px 34px rgba(0, 4, 20, 0.2);
}

.live-lyric-board::before {
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 236, 255, 0.42), transparent);
  content: "";
}

.live-lyric-base,
.live-lyric-flow {
  grid-area: 1 / 1;
  max-width: calc(100% - 28px);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-lyric-base {
  color: #7f8da9;
  text-shadow: 0 0 12px rgba(115, 139, 184, 0.18);
}

.live-lyric-flow {
  clip-path: inset(0 100% 0 0);
  color: transparent;
  background: linear-gradient(90deg, #64e9ff 0%, #efffff 34%, #a98cff 67%, #ff92d8 100%);
  background-position: 100% 50%;
  background-size: 220% 100%;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(108, 236, 255, 0.68));
  -webkit-background-clip: text;
  background-clip: text;
}

.live-lyric-board.has-flow .live-lyric-flow {
  opacity: 1;
  animation: lyric-flow-reveal var(--lyric-flow-duration) linear both;
  animation-play-state: paused;
}

body.is-playing .live-lyric-board.has-flow .live-lyric-flow {
  animation-play-state: running;
}

@keyframes lyric-flow-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
    background-position: 100% 50%;
  }
  100% {
    clip-path: inset(0 0 0 0);
    background-position: 0 50%;
  }
}

.timeline {
  margin-top: 13px;
}

.transport {
  margin-top: 7px;
}

.control-side {
  width: 43px;
  height: 43px;
}

.control-play {
  width: 59px;
  height: 59px;
}

.volume-control {
  margin-top: 9px;
}

.track-meta {
  margin-top: 10px;
}

.track-meta > div {
  padding: 8px 11px;
}

.lyrics-head {
  margin-bottom: 8px;
}

.lyrics-window {
  display: block;
  flex: 0 0 126px;
  height: 126px;
  min-height: 126px;
  max-height: 126px;
  overflow: hidden;
  border: 1px solid rgba(108, 236, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(108, 236, 255, 0.055), transparent 58%),
    rgba(4, 8, 21, 0.42);
}

.lyrics-box {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 0 12px;
}

.spectrum-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #55627d;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spectrum-previous {
  transform: scale(0.92);
  opacity: 0.55;
}

.spectrum-next {
  transform: scale(0.94);
  color: #75829d;
  opacity: 0.72;
}

.spectrum-active {
  z-index: 1;
  border-top: 1px solid rgba(108, 236, 255, 0.08);
  border-bottom: 1px solid rgba(108, 236, 255, 0.08);
  color: transparent;
  background:
    linear-gradient(90deg, transparent, rgba(108, 236, 255, 0.07) 28%, rgba(161, 132, 255, 0.08) 72%, transparent),
    linear-gradient(90deg, #72efff, #f4ffff, #aa91ff, #72efff);
  background-position: 0 0, 200% 50%;
  background-size: 100% 100%, 200% 100%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(108, 236, 255, 0.28);
  -webkit-background-clip: padding-box, text;
  background-clip: padding-box, text;
  animation: spectrum-text-flow 2.6s linear infinite;
}

.spectrum-active::after {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: -28%;
  width: 22%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(196, 250, 255, 0.15), transparent);
  content: "";
  animation: spectrum-scan 2.6s ease-in-out infinite;
}

@keyframes spectrum-text-flow {
  to { background-position: 0 0, 0 50%; }
}

@keyframes spectrum-scan {
  to { left: 108%; }
}

.sync-console {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 10px 8px;
  border: 1px solid rgba(161, 132, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108, 236, 255, 0.035), rgba(161, 132, 255, 0.055));
}

.sync-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sync-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7584a1;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sync-title i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.sync-console-head strong {
  color: #b6f5ff;
  font-size: 9px;
  font-weight: 600;
}

.sync-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sync-metrics > div {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.28);
}

.sync-metrics small,
.sync-metrics output {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-metrics small {
  color: #626f8c;
  font-size: 7px;
}

.sync-metrics output {
  margin-top: 2px;
  color: #bac6dc;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.sync-timeline {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(138, 158, 200, 0.12);
}

.sync-timeline i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 9px rgba(108, 236, 255, 0.5);
  transition: width 180ms linear;
}

@media (max-width: 1050px) {
  :root { --workspace-height: 640px; }

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

  .player-panel {
    height: var(--workspace-height);
    min-height: var(--workspace-height);
    max-height: var(--workspace-height);
  }

  .side-column {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .library-panel,
  .lyrics-panel {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }
}

@media (max-width: 720px) {
  .player-panel {
    height: 630px;
    min-height: 630px;
    max-height: 630px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .library-panel {
    height: 350px;
    min-height: 350px;
    max-height: 350px;
  }

  .lyrics-panel {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }

  .track-list {
    flex-basis: 210px;
    height: 210px;
    max-height: 210px;
  }

  /* 缩放或窄窗口下仍保持两张信息卡并排，避免 SOURCE 被固定面板裁切。 */
  .track-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .player-panel {
    height: 610px;
    min-height: 610px;
    max-height: 610px;
  }

  .crystal-stage {
    min-height: 230px;
  }

  .live-lyric-base,
  .live-lyric-flow {
    font-size: 12px;
  }
}
