/* ============================================================
   音乐馆 · Dream Laden Bough
   午夜深潜 / aurora / glass
   ============================================================ */

:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --ink: #eef1fa;
  --ink-soft: #c3c9dd;
  --muted: #818aa6;
  --faint: #5a6280;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --glass: rgba(18, 22, 38, 0.62);
  --glass-hi: rgba(255, 255, 255, 0.05);

  /* 由当前曲目动态覆盖 */
  --art-a: #2b3a7a;
  --art-b: #6b4fa8;
  --art-c: #0b1024;
  --accent: #8f9dff;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 11px;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

* {
  box-sizing: border-box;
}

/* 注意：hidden 是 HTML 全局属性，SVG 元素上不生效，统一用属性选择器兜住 */
[hidden] {
  display: none !important;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(143, 157, 255, 0.3);
}

/* ---------------------------- 背景光雾 ---------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(58, 74, 168, 0.30), transparent 62%),
    radial-gradient(900px 620px at 92% 8%, rgba(120, 66, 168, 0.22), transparent 60%),
    radial-gradient(1000px 800px at 50% 112%, rgba(28, 96, 120, 0.20), transparent 62%),
    linear-gradient(180deg, #070a14 0%, #06080f 55%, #05070d 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.b1 {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: -14vw;
  background: radial-gradient(circle at 40% 40%, rgba(90, 108, 220, 0.55), transparent 66%);
  animation: drift1 34s var(--ease) infinite alternate;
}

.b2 {
  width: 40vw;
  height: 40vw;
  right: -10vw;
  top: 6vh;
  background: radial-gradient(circle at 50% 50%, rgba(160, 84, 200, 0.42), transparent 66%);
  animation: drift2 42s var(--ease) infinite alternate;
}

.b3 {
  width: 52vw;
  height: 34vw;
  left: 22vw;
  bottom: -18vw;
  background: radial-gradient(circle at 50% 50%, rgba(38, 132, 150, 0.35), transparent 68%);
  animation: drift3 48s var(--ease) infinite alternate;
}

@keyframes drift1 {
  to {
    transform: translate3d(6vw, 5vh, 0) scale(1.12);
  }
}
@keyframes drift2 {
  to {
    transform: translate3d(-7vw, 8vh, 0) scale(1.08);
  }
}
@keyframes drift3 {
  to {
    transform: translate3d(-5vw, -6vh, 0) scale(1.1);
  }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------------------------- 顶栏 ---------------------------- */

.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 40px 10px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #dfe4ff;
  background: linear-gradient(150deg, rgba(143, 157, 255, 0.28), rgba(143, 157, 255, 0.06));
  border: 1px solid rgba(143, 157, 255, 0.28);
  box-shadow: 0 6px 22px rgba(70, 84, 190, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.brand-text em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 3px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s, background 0.25s, width 0.3s var(--ease);
  width: 210px;
}

.search:focus-within {
  border-color: rgba(143, 157, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.search svg {
  width: 16px;
  height: 16px;
  color: var(--faint);
  flex: none;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

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

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

.ghost-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.ghost-btn:hover {
  color: var(--ink);
  border-color: rgba(143, 157, 255, 0.45);
  transform: rotate(22deg);
}

.ghost-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------------------------- 主体 ---------------------------- */

.shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 40px 60px;
}

/* ---------------- 左：唱机 ---------------- */

.stage {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.art-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.art-glow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.55;
  background: conic-gradient(
    from 0deg,
    var(--art-a),
    var(--art-b),
    var(--art-c),
    var(--art-a)
  );
  animation: spin 26s linear infinite;
  transition: background 0.9s var(--ease);
}

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

.art {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 100% at 18% 8%, var(--art-a) 0%, transparent 58%),
    radial-gradient(120% 110% at 86% 22%, var(--art-b) 0%, transparent 62%),
    linear-gradient(160deg, var(--art-c) 12%, #05070e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 34px 70px -28px rgba(0, 0, 0, 0.85),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  transition: background 0.9s var(--ease);
}

.art::after {
  /* 织物质感 */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.viz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}

.art-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.02) 26%,
    transparent 46%
  );
  pointer-events: none;
}

/* ---------------- 左：信息与控制 ---------------- */

.now {
  padding: 0 4px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
}

body.playing .kicker::before {
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 157, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(143, 157, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 157, 255, 0);
  }
}

.now-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-sub {
  margin: 9px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 进度条 */

.timeline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.t {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}

.timeline .t:last-of-type {
  text-align: right;
}

.track-input {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
}

.track-input::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.11);
}

.track-fill {
  position: absolute;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(143, 157, 255, 0.55), #cdd4ff);
  box-shadow: 0 0 12px rgba(143, 157, 255, 0.5);
  pointer-events: none;
}

.track-input input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.track-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(143, 157, 255, 0.16), 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s var(--ease);
}

.track-input input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.25);
}

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

.track-input input[type="range"]::-moz-range-track {
  background: transparent;
}

/* 控制按钮 */

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.ctl {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.18s var(--ease);
}

.ctl svg {
  width: 19px;
  height: 19px;
}

.ctl:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.ctl:active {
  transform: scale(0.93);
}

.ctl.on {
  color: #cdd4ff;
  background: rgba(143, 157, 255, 0.13);
  border-color: rgba(143, 157, 255, 0.3);
}

.ctl.sm {
  width: 32px;
  height: 32px;
}

.ctl.sm svg {
  width: 16px;
  height: 16px;
}

.play {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: #0a0d1c;
  background: linear-gradient(160deg, #ffffff 0%, #dfe4ff 55%, #b9c2ff 100%);
  box-shadow:
    0 14px 34px -10px rgba(143, 157, 255, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.2s var(--ease), box-shadow 0.3s;
}

.play svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 2;
}

.play .i-play {
  margin-left: 3px;
}

.play:hover {
  transform: scale(1.05);
  box-shadow:
    0 18px 42px -10px rgba(143, 157, 255, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

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

.play-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(143, 157, 255, 0.28);
  opacity: 0;
  transition: opacity 0.4s;
}

body.playing .play-ring {
  opacity: 1;
  animation: ringPulse 3.6s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.15;
  }
}

.volume {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.volume .track-input.vol {
  flex: 0 0 128px;
  height: 18px;
}

.volume .track-input.vol::before,
.volume .track-input.vol .track-fill {
  height: 2px;
}

.volume .track-input.vol input[type="range"] {
  height: 18px;
}

.volume .track-input.vol input[type="range"]::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 3px rgba(143, 157, 255, 0.14);
}

/* ---------------- 右：曲目表 ---------------- */

.library {
  min-width: 0;
  padding-top: 4px;
}

.lib-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.lib-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lib-meta {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.soft-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
}

.soft-btn svg {
  width: 13px;
  height: 13px;
}

.soft-btn:hover {
  color: var(--ink);
  border-color: rgba(143, 157, 255, 0.45);
  background: rgba(143, 157, 255, 0.12);
}

.tracks {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.tr {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  margin: 2px 0;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.24s var(--ease), border-color 0.24s, transform 0.24s var(--ease);
}

.tr:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-soft);
}

.tr.active {
  background: linear-gradient(
    100deg,
    rgba(143, 157, 255, 0.14),
    rgba(143, 157, 255, 0.045) 55%,
    transparent
  );
  border-color: rgba(143, 157, 255, 0.26);
}

.tr.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 26%;
  bottom: 26%;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.tr-idx {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.tr:hover .tr-idx .num,
.tr.active .tr-idx .num {
  opacity: 0;
}

.tr-idx .num {
  transition: opacity 0.18s;
  z-index: 2;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.02em;
}

.tr-idx .mini-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.18s;
  color: var(--ink);
  z-index: 3;
}

.tr-idx .mini-play svg {
  width: 13px;
  height: 13px;
}

.tr:hover .tr-idx .mini-play {
  opacity: 1;
}

/* 播放中的均衡器 */
.bars {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 13px;
  z-index: 3;
}

.tr.active.is-playing .bars {
  display: flex;
}

.tr.active.is-playing .tr-idx .num,
.tr.active.is-playing .mini-play {
  opacity: 0 !important;
}

.bars i {
  display: block;
  width: 2px;
  height: 6px;
  border-radius: 1px;
  background: #cdd4ff;
  animation: bar 1.05s ease-in-out infinite;
}

.bars i:nth-child(2) {
  animation-delay: 0.18s;
}
.bars i:nth-child(3) {
  animation-delay: 0.36s;
}
.bars i:nth-child(4) {
  animation-delay: 0.54s;
}

@keyframes bar {
  0%,
  100% {
    height: 5px;
    opacity: 0.5;
  }
  50% {
    height: 14px;
    opacity: 1;
  }
}

.tr-body {
  min-width: 0;
}

.tr-title {
  font-size: 14.5px;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 8px;
  display: none;
}

.tr-dur {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.empty {
  margin: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.9;
}

/* ---------------- 关于卡片 ---------------- */

.note {
  position: relative;
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(143, 157, 255, 0.09), transparent 60%),
    rgba(255, 255, 255, 0.022);
  overflow: hidden;
}

.note-k {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 11px;
}

.note h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 46ch;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px !important;
}

.note-meta span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

/* ---------------------------- 页脚 ---------------------------- */

.foot {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.foot .dot {
  opacity: 0.5;
}

.foot kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
}

/* ---------------------------- 管理面板 ---------------------------- */

.modal[hidden] {
  display: none;
}

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

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 11, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(170deg, rgba(24, 28, 46, 0.96), rgba(12, 15, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  animation: rise 0.35s var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

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

.panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.panel-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.panel-x svg {
  width: 15px;
  height: 15px;
}

.panel-x:hover {
  color: var(--ink);
}

.panel h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: 0.04em;
}

.hint {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--faint);
}

.panel-login form {
  display: flex;
  gap: 10px;
}

.panel-login input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  outline: none;
}

.panel-login input:focus {
  border-color: rgba(143, 157, 255, 0.5);
}

.primary {
  height: 42px;
  padding: 0 22px;
  border-radius: 11px;
  border: 0;
  background: linear-gradient(160deg, #ffffff, #c9d0ff);
  color: #0a0d1c;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}

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

.err {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #ff8b9a;
  min-height: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-right: 46px;
}

.link {
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  color: var(--ink-soft);
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 28px 20px;
  border-radius: 16px;
  border: 1.5px dashed rgba(143, 157, 255, 0.28);
  background: rgba(143, 157, 255, 0.045);
  cursor: pointer;
  text-align: center;
  transition: all 0.24s var(--ease);
}

.drop:hover,
.drop.over {
  border-color: rgba(143, 157, 255, 0.65);
  background: rgba(143, 157, 255, 0.1);
}

.drop svg {
  width: 26px;
  height: 26px;
  color: #aab4ff;
}

.drop strong {
  font-size: 13.5px;
  font-weight: 560;
}

.drop span {
  font-size: 11.5px;
  color: var(--faint);
}

.queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.q-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  font-size: 12.5px;
}

.q-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
}

.q-state {
  font-size: 11px;
  color: var(--faint);
  font-family: var(--mono);
}

.q-state.ok {
  color: #6ee7b7;
}

.q-state.bad {
  color: #ff8b9a;
}

.bar-mini {
  grid-column: 1 / -1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar-mini i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8f9dff, #cdd4ff);
  transition: width 0.2s linear;
}

.admin-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

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

.adm-title {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-sub {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

.icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}

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

.icon-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn.danger:hover {
  color: #ff8b9a;
  border-color: rgba(255, 139, 154, 0.4);
  background: rgba(255, 139, 154, 0.1);
}

/* 编辑行 */
.adm.edit {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
  background: rgba(143, 157, 255, 0.06);
  border-color: rgba(143, 157, 255, 0.28);
}

.adm.edit input {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}

.adm.edit input:focus {
  border-color: rgba(143, 157, 255, 0.55);
}

.adm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mini-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.mini-btn.solid {
  background: rgba(143, 157, 255, 0.85);
  border-color: transparent;
  color: #0a0d1c;
  font-weight: 600;
}

/* ---------------------------- Toast ---------------------------- */

.toast[hidden] {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(0);
  z-index: 80;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(20, 24, 40, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  animation: toastIn 0.28s var(--ease);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

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

@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 20px 24px 50px;
  }

  .stage {
    position: static;
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
  }

  .top {
    padding: 20px 24px 6px;
  }

  .foot {
    padding: 0 24px 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .search {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .search input {
    display: none;
  }

  .search.open {
    position: absolute;
    top: 66px;
    right: 18px;
    left: 18px;
    width: auto;
    justify-content: flex-start;
    padding: 0 12px;
    z-index: 20;
    background: rgba(14, 18, 32, 0.96);
  }

  .search.open input {
    display: block;
  }

  .shell {
    padding: 14px 18px 44px;
  }

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

  .play {
    width: 56px;
    height: 56px;
  }

  .controls {
    gap: 8px;
  }

  .tr {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 11px 10px;
  }

  .tr-tag {
    display: none !important;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .foot kbd {
    display: none;
  }
}

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