/* ============ lumina · dark stage ============ */
:root {
  --bg: #05070c;
  --panel: rgba(10, 15, 27, 0.62);
  --panel-2: rgba(14, 21, 37, 0.78);
  --ink: #e9effe;
  --ink-2: rgba(220, 232, 255, 0.62);
  --ink-3: rgba(200, 216, 246, 0.38);
  --line: rgba(150, 185, 255, 0.1);
  --line-2: rgba(160, 200, 255, 0.18);
  --cyan: #63e6ff;
  --blue: #6ea8ff;
  --violet: #a78bfa;
  --grad: linear-gradient(100deg, #63e6ff, #6ea8ff 52%, #a78bfa);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(99, 230, 255, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}
.aurora i:nth-child(1) {
  width: 52vw; height: 52vw;
  left: 4%; top: -14%;
  background: radial-gradient(circle, rgba(56, 132, 255, 0.34), transparent 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 46vw; height: 46vw;
  right: -6%; top: 18%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.26), transparent 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to { transform: translate3d(6vw, 5vh, 0) scale(1.08); }
}
@keyframes drift-b {
  to { transform: translate3d(-5vw, -4vh, 0) scale(1.12); }
}

.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 180, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 180, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 22%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 22%, #000 10%, transparent 78%);
  opacity: 0.7;
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding: 0 34px;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.82), rgba(5, 7, 12, 0.42));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(99, 230, 255, 0.36);
  background: rgba(99, 230, 255, 0.06);
  color: var(--cyan);
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 0 22px rgba(99, 230, 255, 0.18), inset 0 0 12px rgba(99, 230, 255, 0.1);
}
.brand-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-name em {
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.34em;
  color: var(--ink-3);
  transform: translateY(-1px);
}

.now-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 48vw;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.55);
  color: var(--ink-2);
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.now-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.now-pill.active {
  color: var(--ink);
  border-color: rgba(99, 230, 255, 0.34);
  box-shadow: 0 0 24px rgba(99, 230, 255, 0.12);
}
.eq-mini {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 13px; height: 12px;
  flex: 0 0 auto;
}
.eq-mini i {
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: var(--cyan);
  opacity: 0.5;
}
.now-pill.active .eq-mini i { animation: mini-bounce 0.9s ease-in-out infinite alternate; }
.now-pill.active .eq-mini i:nth-child(2) { animation-delay: 0.18s; }
.now-pill.active .eq-mini i:nth-child(3) { animation-delay: 0.36s; }
@keyframes mini-bounce {
  from { height: 3px; opacity: 0.5; }
  to { height: 12px; opacity: 1; }
}

/* ---------- main ---------- */
main {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: 120px 34px 230px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.25s, border-color 0.25s, background 0.25s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--grad);
  color: #051019;
  box-shadow: 0 10px 34px rgba(84, 178, 255, 0.26), 0 0 60px rgba(167, 139, 250, 0.16);
}
.btn.primary:hover { box-shadow: 0 14px 44px rgba(84, 178, 255, 0.38), 0 0 80px rgba(167, 139, 250, 0.24); }
.btn.primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.btn.ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
}
.btn.ghost:hover { border-color: rgba(160, 205, 255, 0.4); color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.btn.sm { height: 42px; padding: 0 20px; font-size: 13px; border-radius: 11px; }
.btn-ico { font-size: 11px; transform: translateY(-1px); }

/* ---------- tracks ---------- */
.tracks-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 24px 18px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(15, 22, 39, 0.9), rgba(8, 12, 22, 0.88));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.045);
  overflow: hidden;
}
.tracks-card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 230, 255, 0.5), transparent);
  opacity: 0.6;
}

.tracks-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 6px 16px;
  border-bottom: 1px solid var(--line);
}
.tracks-head h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tracks-note {
  font: 400 10px/1.4 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.btn-add {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-2);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
  flex: 0 0 auto;
}
.btn-add:hover {
  color: var(--cyan);
  border-color: rgba(99, 230, 255, 0.4);
  background: rgba(99, 230, 255, 0.07);
  box-shadow: 0 0 20px rgba(99, 230, 255, 0.12);
}

.track-list { display: flex; flex-direction: column; gap: 3px; padding-top: 10px; }

.track {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.track:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.track.is-active {
  background: linear-gradient(90deg, rgba(99, 230, 255, 0.09), rgba(167, 139, 250, 0.05) 60%, transparent);
  border-color: rgba(99, 230, 255, 0.22);
}
.track.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.track.is-local { padding-right: 40px; }

.track .num {
  font: 400 10px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.track.is-active .num { color: var(--cyan); }

.tinfo { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tinfo strong {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tinfo em {
  font: 400 10.5px/1.4 var(--mono);
  font-style: normal;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tinfo .tag {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(99, 230, 255, 0.28);
  border-radius: 4px;
  color: rgba(99, 230, 255, 0.8);
  font-size: 9px;
  line-height: 1.2;
  vertical-align: 1px;
}

.track .tdur {
  font: 400 11px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.track.is-active .tdur { color: var(--ink-2); }

.track-del {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.track:hover .track-del, .track:focus-within .track-del { opacity: 1; }
.track-del:hover { color: #ff9bb0; border-color: rgba(255, 120, 150, 0.35); }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 16px; height: 14px; justify-self: end; opacity: 0; }
.track.is-active .eq { opacity: 1; }
.eq i {
  width: 3px;
  border-radius: 1px;
  background: var(--cyan);
  opacity: 0.85;
  height: 3px;
  transform-origin: bottom;
}
.track.is-active .eq i:nth-child(1) { height: 6px; }
.track.is-active .eq i:nth-child(2) { height: 10px; }
.track.is-active .eq i:nth-child(3) { height: 4px; }
.track.is-active .eq i:nth-child(4) { height: 8px; }
body.is-audio-playing .track.is-active .eq i { animation: eq-bounce 0.9s ease-in-out infinite; }
body.is-audio-playing .track.is-active .eq i:nth-child(2) { animation-delay: 0.15s; }
body.is-audio-playing .track.is-active .eq i:nth-child(3) { animation-delay: 0.3s; }
body.is-audio-playing .track.is-active .eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq-bounce {
  0%, 100% { height: 3px; }
  50% { height: 13px; }
}

.tracks-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font: 400 10px/1.5 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.credits {
  margin-top: 56px;
  text-align: center;
  font: 400 10px/1.9 var(--mono);
  letter-spacing: 0.04em;
  color: rgba(200, 216, 246, 0.3);
}
.credits a { border-bottom: 1px solid rgba(160, 200, 255, 0.2); transition: color 0.2s; }
.credits a:hover { color: var(--ink-2); }

/* ---------- player ---------- */
.player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  width: min(1180px, calc(100% - 40px));
  padding: 8px 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(30px) saturate(1.25);
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.055);
}

.wave-wrap {
  position: relative;
  height: 54px;
  border-radius: 10px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.wave-wrap:focus-visible { box-shadow: 0 0 0 1px rgba(99, 230, 255, 0.5); }
#wave { width: 100%; height: 100%; display: block; }

.wave-hint {
  position: absolute;
  right: 8px;
  top: 1px;
  font: 400 9px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.wave-wrap:hover .wave-hint { opacity: 1; }

.player-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}

.now-meta { display: flex; align-items: center; gap: 13px; flex: 1 1 auto; min-width: 0; }
.cover {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(140deg, hsl(200 85% 60%), hsl(260 75% 45%));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}
.player.is-playing .cover { box-shadow: 0 0 24px rgba(99, 230, 255, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35); }

.meta-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.meta-text strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-text span {
  font: 400 10.5px/1.4 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.controls { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ctl {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.25s;
}
.ctl svg { width: 19px; height: 19px; fill: currentColor; }
.ctl:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.ctl:active { transform: scale(0.94); }
.ctl.play {
  width: 48px; height: 48px;
  background: var(--grad);
  color: #041018;
  box-shadow: 0 8px 28px rgba(84, 178, 255, 0.32), 0 0 50px rgba(167, 139, 250, 0.18);
}
.ctl.play:hover { box-shadow: 0 10px 36px rgba(84, 178, 255, 0.45), 0 0 70px rgba(167, 139, 250, 0.26); }
.ctl.play svg { width: 21px; height: 21px; }
.player .ico-pause { display: none; }
.player.is-playing .ctl.play .ico-play { display: none; }
.player.is-playing .ctl.play .ico-pause { display: block; }

.timebox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 400 11.5px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.timebox #tCur { color: var(--ink-2); }
.timebox i { font-style: normal; opacity: 0.5; }

.vol { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ctl.small { width: 32px; height: 32px; }
.ctl.small svg { width: 17px; height: 17px; }
.player .ico-mute { display: none; }
.vol.is-muted .ico-vol { display: none; }
.vol.is-muted .ico-mute { display: block; }
.vol.is-muted .ctl.small { color: #ff9bb0; }

#vol {
  -webkit-appearance: none;
  appearance: none;
  width: 74px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  --vol: 85%;
}
#vol::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, var(--cyan), var(--violet)) 0 0 / var(--vol) 100% no-repeat,
    rgba(255, 255, 255, 0.12);
}
#vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: #eaf6ff;
  border: none;
  box-shadow: 0 0 10px rgba(99, 230, 255, 0.55);
}
#vol::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
#vol::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--grad); }
#vol::-moz-range-thumb {
  width: 11px; height: 11px;
  border: none;
  border-radius: 50%;
  background: #eaf6ff;
  box-shadow: 0 0 10px rgba(99, 230, 255, 0.55);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 210px;
  transform: translate(-50%, 14px);
  z-index: 60;
  max-width: min(420px, calc(100% - 40px));
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink-2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- modal ---------- */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 4, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal[hidden] { display: none; }

.modal-card {
  width: min(470px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0c1322, #080d18);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), inset 0 1px rgba(255, 255, 255, 0.05);
  animation: modal-in 0.24s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-head h3 { font-size: 18px; font-weight: 600; letter-spacing: 0.01em; }
.modal-close {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--ink); border-color: var(--line-2); }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 150px;
  padding: 22px;
  border: 1px dashed rgba(140, 190, 255, 0.28);
  border-radius: 16px;
  background: rgba(99, 230, 255, 0.025);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.drop:hover, .drop.is-drag {
  border-color: rgba(99, 230, 255, 0.6);
  background: rgba(99, 230, 255, 0.06);
  box-shadow: inset 0 0 40px rgba(99, 230, 255, 0.05);
}
.drop-ico {
  font-size: 18px;
  color: var(--cyan);
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 230, 255, 0.3);
  border-radius: 10px;
  margin-bottom: 4px;
}
.drop strong { font-size: 13.5px; font-weight: 500; }
.drop small { font: 400 10px/1 var(--mono); color: var(--ink-3); letter-spacing: 0.06em; }
.file-info {
  margin-top: 8px;
  font: 400 10.5px/1.4 var(--mono);
  color: var(--cyan);
  word-break: break-all;
}

.field { margin-top: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field label span { opacity: 0.6; letter-spacing: 0.04em; text-transform: none; }
.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus {
  border-color: rgba(99, 230, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 230, 255, 0.1);
}

.modal-hint {
  margin-top: 16px;
  font: 400 10px/1.6 var(--mono);
  color: var(--ink-3);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  main { padding-bottom: 250px; }
}

@media (max-width: 780px) {
  .topbar { height: 64px; padding: 0 18px; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; }
  .brand-name em { display: none; }
  .now-pill { max-width: 56vw; padding: 7px 12px; }
  main { padding: 96px 18px 250px; }
  .tracks-note { display: none; }
  .tracks-card { padding: 20px 14px 14px; }

  .player { width: calc(100% - 20px); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 6px 14px 12px; }
  .wave-wrap { height: 44px; }
  .player-row { flex-wrap: wrap; gap: 10px 14px; margin-top: 4px; }
  .now-meta { flex: 1 1 auto; }
  .controls { order: 2; }
  .timebox { order: 3; margin-left: auto; }
  .vol { order: 4; flex: 0 0 auto; }
  #vol { width: 60px; }
  .cover { width: 42px; height: 42px; border-radius: 11px; font-size: 19px; }
  .meta-text strong { font-size: 13.5px; }
  .meta-text span { font-size: 10px; }
  .ctl.play { width: 44px; height: 44px; }
  .toast { bottom: 220px; }
}

@media (max-width: 520px) {
  .btn { height: 48px; padding: 0 22px; }
  .track { grid-template-columns: 22px minmax(0, 1fr) auto 16px; gap: 9px; padding: 11px 6px; }
  .track.is-local { padding-right: 34px; }
  .tinfo strong { font-size: 14px; }
  .modal { padding: 14px; }
  .modal-card { padding: 18px; border-radius: 18px; }
  .now-meta { flex: 1 1 100%; }
  #vol { display: none; }
  .player-row { gap: 8px 10px; }
  main { padding-bottom: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .aurora i { animation: none; }
}