/* MONO — 黑白极简 · 全屏沉浸式播放器 */

:root {
  --bg: #060606;
  --ink: #f4f2ee;
  --muted: rgba(244, 242, 238, 0.52);
  --dim: rgba(244, 242, 238, 0.3);
  --line: rgba(244, 242, 238, 0.13);
  --line-soft: rgba(244, 242, 238, 0.07);
  --surface: #0d0d0d;
  --surface-2: #141414;
  --sans: "Helvetica Neue", "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body { overflow: hidden; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol { fill: none; }

svg { width: 100%; height: 100%; display: block; }

/* ---------------------------------------------------------------- 背景 */

.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }

.bg {
  position: absolute;
  inset: -12%;
  background-position: center;
  background-size: cover;
  filter: blur(64px) grayscale(1) brightness(0.55) contrast(1.1);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 8s linear;
  will-change: opacity, transform;
}
.bg.is-on { opacity: 0.42; transform: scale(1.12); }

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(6, 6, 6, 0) 0%, rgba(6, 6, 6, 0.55) 62%, #060606 100%),
    linear-gradient(180deg, rgba(6, 6, 6, 0.72) 0%, rgba(6, 6, 6, 0) 34%, rgba(6, 6, 6, 0.92) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- 布局 */

.app {
  position: relative;
  z-index: 10;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 var(--pad);
}

/* ---------------------------------------------------------------- 顶栏 */

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: clamp(58px, 8vh, 76px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.42em;
  padding-left: 2px;
}
.brand sup { font-size: 8px; letter-spacing: 0; opacity: 0.45; margin-left: 2px; top: -0.6em; }

.top-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dim);
  transition: background 0.3s, box-shadow 0.3s;
}
.status-dot.is-playing { background: var(--ink); box-shadow: 0 0 0 3px rgba(244, 242, 238, 0.12); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(244, 242, 238, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(244, 242, 238, 0.04); }
}

.top-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.22s, background 0.22s, transform 0.22s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--ink); background: rgba(244, 242, 238, 0.07); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.is-active { color: var(--ink); }
.icon-btn.is-active::after {
  content: ""; position: absolute; margin-top: 26px; width: 3px; height: 3px; border-radius: 50%;
  background: currentColor;
}
.icon-btn.lg { width: 48px; height: 48px; }
.icon-btn.lg svg { width: 21px; height: 21px; }

.pill-btn {
  margin-left: 8px;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: background 0.24s, color 0.24s, border-color 0.24s;
}
.pill-btn:hover { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }

/* ---------------------------------------------------------------- 舞台 */

.stage {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(18px, 3.4vh, 40px);
  padding: clamp(10px, 2vh, 28px) 0;
  min-height: 0;
  text-align: center;
}

.rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: var(--dim);
  writing-mode: vertical-rl;
  user-select: none;
  display: none;
}
.rail.left { left: 0; }
.rail.right { right: 0; }
.rail.right span { transform: rotate(180deg); }
@media (min-width: 1100px) { .rail { display: block; } }

.art-wrap { position: relative; }

.art {
  position: relative;
  width: clamp(180px, min(38vh, 34vw), 400px);
  aspect-ratio: 1;
  background: #111 center/cover no-repeat;
  border: 1px solid rgba(244, 242, 238, 0.16);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 50px 110px -30px rgba(0, 0, 0, 0.95),
    0 10px 40px -10px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.art:hover { transform: translateY(-4px); }
.art img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
  transform: scale(1.03);
}
.art img.is-loaded { opacity: 1; transform: scale(1); }

.art-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(244, 242, 238, 0.18);
  background: repeating-linear-gradient(135deg, #101010 0 12px, #0b0b0b 12px 24px);
}
.art-fallback svg { width: 26%; height: 26%; }

.art-glare {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 66%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.info { max-width: min(640px, 88vw); }

.kicker {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: clamp(8px, 1.6vh, 16px);
}

.title {
  margin: 0;
  font-size: clamp(30px, min(6vw, 7vh), 74px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: opacity 0.4s;
}

.byline {
  margin-top: clamp(10px, 1.8vh, 18px);
  font-size: clamp(13px, 1.5vw, 15px);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.muted { color: var(--muted); }
.sep { width: 14px; height: 1px; background: var(--line); display: inline-block; }

.meta-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.tag { border: 1px solid var(--line); padding: 2px 7px; border-radius: 2px; letter-spacing: 0.12em; }

/* ---------------------------------------------------------------- 控制区 */

.deck { padding-bottom: clamp(14px, 2.4vh, 26px); }

.viz {
  width: 100%;
  height: clamp(24px, 4.4vh, 46px);
  display: block;
  opacity: 0.55;
  transition: opacity 0.5s;
}
.viz.dim { opacity: 0.18; }

.scrub { cursor: pointer; padding: 6px 0 0; touch-action: none; }
.scrub-track {
  position: relative;
  height: 2px;
  background: rgba(244, 242, 238, 0.16);
  transition: height 0.2s var(--ease);
}
.scrub:hover .scrub-track, .scrub.is-drag .scrub-track { height: 4px; }
.scrub-buffer { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(244, 242, 238, 0.22); }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
.scrub-knob {
  position: absolute; top: 50%; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s var(--ease);
}
.scrub:hover .scrub-knob, .scrub.is-drag .scrub-knob { transform: translate(-50%, -50%) scale(1); }

.scrub-times {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: clamp(6px, 1.4vh, 14px);
}
.ctl-group { display: flex; align-items: center; gap: 4px; }
.ctl-group.center { gap: clamp(8px, 2vw, 22px); justify-self: center; }
.ctl-group.end { justify-content: flex-end; gap: 10px; }

.play-btn {
  width: clamp(52px, 7.4vh, 66px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  transition: transform 0.24s var(--ease), background 0.24s;
  will-change: transform;
}
.play-btn svg { width: 42%; height: 42%; }
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(0.96); }
.play-btn.is-loading svg { opacity: 0.4; }

.vol { position: relative; width: clamp(54px, 8vw, 92px); height: 24px; display: grid; align-items: center; cursor: pointer; touch-action: none; }
.vol-track { height: 2px; background: rgba(244, 242, 238, 0.16); }
.vol-fill { height: 100%; width: 70%; background: var(--ink); }
.vol-knob {
  position: absolute; top: 50%; left: 70%;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s;
}
.vol:hover .vol-knob { transform: translate(-50%, -50%) scale(1); }

/* ---------------------------------------------------------------- 面板 */

.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(4, 4, 4, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 50;
  width: min(430px, 92vw);
  background: rgba(9, 9, 9, 0.9);
  backdrop-filter: blur(26px) saturate(1.1);
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform 0.5s var(--ease);
  box-shadow: -40px 0 80px -40px rgba(0, 0, 0, 0.9);
}
.panel.is-open { transform: none; }

.panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 0 20px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-tabs { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.panel-tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 8px 0 12px;
  font-size: 12.5px;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.2s;
}
.tab:hover { color: var(--muted); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
}

.panel-body { flex: 1; overflow-y: auto; padding: 6px 20px 20px; scrollbar-width: thin; }
.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(244, 242, 238, 0.16); }

.panel-foot {
  border-top: 1px solid var(--line-soft);
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.panel-foot:empty { display: none; }

.group-label {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 18px 0 8px;
}

.row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 6px 10px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.2s, padding 0.2s;
  border-radius: 4px;
}
.row:hover { background: rgba(244, 242, 238, 0.045); }
.row.is-current .row-title { color: var(--ink); }
.row.is-current .row-index { color: var(--ink); }
.row-index {
  font-size: 10.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.row-main { min-width: 0; }
.row-title {
  font-size: 13.5px;
  color: rgba(244, 242, 238, 0.86);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-sub {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-side { position: relative; display: flex; align-items: center; gap: 2px; min-height: 24px; }
.row-time { font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; transition: opacity 0.18s; }
.row-actions {
  position: absolute; right: -4px; top: 50%;
  transform: translateY(-50%);
  display: flex; gap: 0;
  opacity: 0;
  pointer-events: none;
  padding-left: 26px;
  background: linear-gradient(90deg, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, 0.92) 32%);
  transition: opacity 0.18s;
}
.row:hover .row-actions { opacity: 1; pointer-events: auto; }
.row:hover .row-time { opacity: 0; }
.row-actions .icon-btn { width: 26px; height: 26px; }
.row-actions .icon-btn svg { width: 15px; height: 15px; }

.empty {
  padding: 44px 0;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------- 弹窗 */

.modal {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: rgba(3, 3, 3, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.32s var(--ease);
  padding: 20px;
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal-card {
  width: min(400px, 100%);
  background: #0b0b0b;
  border: 1px solid var(--line);
  padding: 30px 28px 26px;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.36s var(--ease);
  max-height: 88vh;
  overflow-y: auto;
}
.modal.is-open .modal-card { transform: none; }
.modal-card.wide { width: min(520px, 100%); }

.modal-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.modal-sub { font-size: 11.5px; color: var(--dim); margin: 0 0 22px; letter-spacing: 0.04em; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 7px;
}
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.24s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.7;
  outline: none;
  resize: vertical;
  min-height: 66px;
  font-family: inherit;
  color: var(--ink);
}
.field textarea::placeholder { color: rgba(244, 242, 238, 0.26); }
.field input::placeholder { color: rgba(244, 242, 238, 0.26); }

.btn {
  width: 100%;
  height: 42px;
  background: var(--ink);
  color: #0a0a0a;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.24s, transform 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.99); }
.btn[disabled] { opacity: 0.4; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(244, 242, 238, 0.06); }

.switch-line {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 16px; font-size: 11.5px; color: var(--dim);
}
.switch-line button { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; }

.drop {
  border: 1px dashed var(--line);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.24s, background 0.24s;
  margin-bottom: 18px;
}
.drop:hover, .drop.is-over { border-color: rgba(244, 242, 238, 0.5); background: rgba(244, 242, 238, 0.03); }
.drop svg { width: 22px; height: 22px; margin: 0 auto 10px; color: var(--muted); }
.drop strong { display: block; font-size: 12.5px; font-weight: 500; }
.drop span { display: block; font-size: 10.5px; color: var(--dim); margin-top: 5px; letter-spacing: 0.06em; }
.drop.has-file { border-style: solid; border-color: rgba(244, 242, 238, 0.42); }

.progress-line { height: 2px; background: var(--line); margin-top: 14px; overflow: hidden; display: none; }
.progress-line.is-on { display: block; }
.progress-line div { height: 100%; width: 0; background: var(--ink); transition: width 0.2s linear; }

.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  z-index: 95;
  transform: translate(-50%, 14px);
  background: rgba(244, 242, 238, 0.96);
  color: #0a0a0a;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.36s var(--ease);
  max-width: 82vw;
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.playlist-card {
  border: 1px solid var(--line-soft);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.playlist-card:hover { border-color: var(--line); background: rgba(244, 242, 238, 0.03); }
.playlist-name { font-size: 13px; }
.playlist-count { font-size: 10.5px; color: var(--dim); }

.menu {
  position: fixed;
  z-index: 80;
  min-width: 180px;
  background: #101010;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  padding: 6px;
}
.menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; font-size: 12.5px; color: rgba(244, 242, 238, 0.85);
}
.menu button:hover { background: rgba(244, 242, 238, 0.07); color: var(--ink); }
.menu .menu-label { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); padding: 8px 10px 4px; }


/* ---------------------------------------------------------------- 歌词 */

.tag-btn { cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.tag-btn:hover { color: var(--ink); border-color: rgba(244, 242, 238, 0.4); }
.tag-btn.is-on { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }

.lyrics {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 70%, transparent 100%);
}
.app.is-lyrics .lyrics { opacity: 1; pointer-events: auto; }
.app.is-lyrics .art-wrap,
.app.is-lyrics .info { opacity: 0; pointer-events: none; transform: scale(0.98); transition: opacity 0.35s, transform 0.45s var(--ease); }
.art-wrap, .info { transition: opacity 0.35s, transform 0.45s var(--ease); }

.lyrics-inner {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 45vh 8px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  text-align: center;
}

.lyric-line {
  font-size: clamp(16px, 2.1vw, 27px);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(244, 242, 238, 0.26);
  padding: 0.28em 0;
  transition: color 0.4s var(--ease), opacity 0.4s, transform 0.4s var(--ease);
  transform-origin: center;
}
.lyric-line.is-past { color: rgba(244, 242, 238, 0.16); }
.lyric-line.is-active { color: var(--ink); transform: scale(1.03); }
.lyric-line.is-empty { opacity: 0.3; }
.lyric-empty {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 30vh 0;
}

/* ---------------------------------------------------------------- 搜索 */

.panel-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-search > svg { width: 15px; height: 15px; color: var(--dim); flex: none; }
.panel-search input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  font-size: 13px;
  padding: 3px 0;
  color: var(--ink);
}
.panel-search input::placeholder { color: var(--dim); }
.panel-search input::-webkit-search-cancel-button { display: none; }
.panel-search #q-clear { width: 26px; height: 26px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.panel-search #q-clear svg { width: 14px; height: 14px; }
.panel-search.has-q #q-clear { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- 拖拽排序 */

.row[draggable="true"] { cursor: grab; }
.row.is-dragging { opacity: 0.35; }
.row.drop-before { box-shadow: inset 0 1px 0 0 var(--ink); }
.row.drop-after { box-shadow: inset 0 -1px 0 0 var(--ink); }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 820px) {
  :root { --pad: 18px; }
  .stage { gap: 18px; padding-top: 4px; }
  .art { width: min(66vw, 34vh); }
  .top-mid { justify-content: flex-start; padding-left: 12px; }
  .top-mid .status-text { display: none; }
  .controls { grid-template-columns: auto 1fr auto; }
  .ctl-group.end { gap: 0; }
  #mute-btn { display: none; }
  .vol { display: none; }
  .meta-row { font-size: 9.5px; }
  .rail { display: none !important; }
  .row-actions { opacity: 1; }
  .title { font-size: clamp(28px, 8vw, 44px); }
  .lyric-line { font-size: 16px; line-height: 1.7; }
  .lyrics-inner { padding: 38vh 6px; }
}

@media (max-height: 620px) {
  .art { width: clamp(120px, 24vh, 220px); }
  .viz { display: none; }
  .meta-row { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
