/* 宿舍点歌台 · 深夜音乐风样式（点歌页 + 主持页）
   原生 CSS，无外部字体 / 图片 / CDN。 */

:root {
  --bg: #07060d;
  --bg-2: #0a0814;
  --text: #f4f2ff;
  --text-dim: rgba(233, 229, 255, 0.64);
  --text-faint: rgba(233, 229, 255, 0.4);
  --violet: #7c5cff;
  --pink: #ff5c8a;
  --cyan: #5ce1ff;
  --green: #3ddc97;
  --amber: #ffb35c;
  --red: #ff6b6b;
  --grad: linear-gradient(120deg, #7c5cff 0%, #a55cff 46%, #ff5c8a 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.2), rgba(255, 92, 138, 0.14));
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.085);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --radius-sm: 15px;
  --shadow-card: 0 22px 48px -26px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 680px at 12% -8%, rgba(124, 92, 255, 0.32), transparent 62%),
    radial-gradient(880px 600px at 102% 0%, rgba(255, 92, 138, 0.2), transparent 58%),
    radial-gradient(900px 900px at 50% 116%, rgba(72, 46, 168, 0.26), transparent 62%),
    linear-gradient(180deg, #08060f 0%, #0a0714 54%, #07050d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.5) 0.7px, transparent 0.9px),
    radial-gradient(rgba(255, 255, 255, 0.32) 0.6px, transparent 0.9px);
  background-size: 170px 190px, 230px 210px;
  background-position: 12px 34px, 90px 110px;
  opacity: 0.16;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: #b9a6ff;
  text-decoration: none;
}

::selection {
  background: rgba(124, 92, 255, 0.4);
  color: #fff;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid rgba(150, 122, 255, 0.9);
  outline-offset: 2px;
}

.ico {
  display: block;
  flex: none;
}

.muted {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #dcd4ff;
  background: rgba(124, 92, 255, 0.22);
  border: 1px solid rgba(124, 92, 255, 0.32);
  vertical-align: 1px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ---------- 页面骨架 ---------- */
.app,
.admin {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(40px + var(--safe-b));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 11px var(--gutter) 10px;
  background: linear-gradient(180deg, rgba(8, 6, 15, 0.92) 0%, rgba(8, 6, 15, 0.72) 72%, rgba(8, 6, 15, 0) 100%);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 13px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand__text {
  min-width: 0;
}

.brand__title {
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56vw;
}

.brand__room {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
}

.status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--text-faint);
  line-height: 1.3;
}

.status-sep {
  width: 1px;
  height: 9px;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.14);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.dot--live {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.15);
  animation: pulse 2.6s ease-in-out infinite;
}

.dot--playing {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(92, 225, 255, 0.14);
  animation: pulse 1.8s ease-in-out infinite;
}

.dot--connecting,
.dot--reconnecting {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 179, 92, 0.14);
  animation: pulse 1.4s ease-in-out infinite;
}

.dot--offline {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.13);
}

.guest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  max-width: 46vw;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.guest:hover {
  border-color: var(--stroke-strong);
  background: var(--surface-2);
}

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

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 750;
  color: #fff;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  line-height: 1;
}

.guest__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest__edit {
  display: grid;
  place-items: center;
  color: var(--text-faint);
}

/* ---------- 提示条 ---------- */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid rgba(255, 179, 92, 0.28);
  background: rgba(255, 179, 92, 0.09);
  color: #ffd9a8;
}

.banner svg {
  flex: none;
  margin-top: 1px;
}

.banner span {
  min-width: 0;
  word-break: break-word;
}

/* ---------- 布局与卡片 ---------- */
.layout {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 12px;
}

.layout > .col {
  display: contents;
}

.hero { order: 1; }
.search-card { order: 2; }
.results-card { order: 3; }
.queue-card { order: 4; }
.mine-card { order: 5; }
.saved-card { order: 6; }

.card {
  position: relative;
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.062) 0%, rgba(255, 255, 255, 0.026) 100%);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

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

.card-head h2 {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ---------- 正在播放 ---------- */
.hero {
  overflow: hidden;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(130% 95% at 100% 0%, rgba(255, 92, 138, 0.17), transparent 56%),
    radial-gradient(120% 90% at 0% 0%, rgba(124, 92, 255, 0.2), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.024));
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.55) 0%, rgba(255, 92, 138, 0.3) 46%, rgba(255, 255, 255, 0.04) 82%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.62;
}

.hero > * {
  position: relative;
  z-index: 2;
}

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

.hero__main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 13px;
}

.hero__art {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
}

.hero__disc {
  position: absolute;
  top: 9px;
  right: -15px;
  z-index: 0;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 32%, #2b2344 0%, #120e1e 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.45);
  animation: spin 9s linear infinite;
  animation-play-state: paused;
  opacity: 0.92;
}

.hero__disc::after {
  content: '';
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.9;
  box-shadow: 0 0 14px rgba(255, 92, 138, 0.5);
}

.hero.is-playing .hero__disc {
  animation-play-state: running;
}

.hero--empty .hero__disc {
  opacity: 0.3;
  animation-play-state: running;
}

.hero__meta {
  min-width: 0;
  flex: 1;
}

.hero__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: 0.005em;
  word-break: break-word;
}

.hero--empty .hero__title {
  font-size: 17px;
  color: var(--text-dim);
}

.hero__artists {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__from {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-faint);
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.075);
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.45;
}

.hero__hint .ico {
  opacity: 0.8;
}

.progress {
  position: relative;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 92, 138, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* ---------- 封面 ---------- */
.cover {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #3b2d6e, #6b2f5c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.38);
}

.cover__ph {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
}

.cover__img {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.cover--hero {
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px rgba(0, 0, 0, 0.5);
}

.cover--song {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.cover--queue {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.cover--mini {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.cover--pending {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.cover--admin {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- 状态胶囊 & 均衡器 ---------- */
.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
}

.state-pill .dot {
  width: 6px;
  height: 6px;
}

.state-pill--playing {
  color: #8ff0c4;
  background: rgba(61, 220, 151, 0.12);
  border-color: rgba(61, 220, 151, 0.28);
}

.state-pill--paused {
  color: #ffd9a1;
  background: rgba(255, 179, 92, 0.12);
  border-color: rgba(255, 179, 92, 0.28);
}

.state-pill--offline {
  color: #ffb0b0;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.3);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 15px;
  flex: none;
  color: currentColor;
}

.eq i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: eq 1.05s ease-in-out infinite;
}

.eq i:nth-child(1) { height: 42%; animation-delay: -0.9s; }
.eq i:nth-child(2) { height: 78%; animation-delay: -0.45s; }
.eq i:nth-child(3) { height: 56%; animation-delay: -0.2s; }
.eq i:nth-child(4) { height: 92%; animation-delay: -0.7s; }

.eq--sm {
  height: 10px;
  width: 12px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--stroke);
  color: var(--text-dim);
}

.btn--ghost:hover {
  border-color: var(--stroke-strong);
  color: var(--text);
}

.btn--danger {
  background: rgba(255, 107, 107, 0.13);
  border-color: rgba(255, 107, 107, 0.32);
  color: #ffb4b4;
}

.btn--danger:hover {
  background: rgba(255, 107, 107, 0.2);
}

.btn--sm {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12.5px;
}

.btn--xs {
  min-height: 27px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--text-dim);
  background: var(--surface);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--stroke-strong);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.icon-btn--sm {
  width: 30px;
  height: 30px;
}

/* ---------- 搜索 ---------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 5px 5px 12px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(124, 92, 255, 0.66);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.search-box__icon {
  display: grid;
  place-items: center;
  color: var(--text-faint);
  flex: none;
}

.search-box__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 9px 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.01em;
}

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

.search-box__input::-webkit-search-cancel-button,
.search-box__input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-box__clear {
  width: 27px;
  height: 27px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
}

.search-box__submit {
  flex: none;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 12px;
}

.search-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.5;
}

.cooldown-hint {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #ffcf9a;
}

/* ---------- 搜索结果 ---------- */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.song {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  transition: background 0.18s ease;
}

.song:hover {
  background: rgba(255, 255, 255, 0.045);
}

.song__meta {
  min-width: 0;
}

.song__title {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song__sub {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song__dur {
  font-size: 10.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.song__btn {
  min-width: 58px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}

.song--sk {
  pointer-events: none;
}

.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.11) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk--cover {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.sk--line {
  height: 11px;
  margin: 3px 0;
  width: 72%;
}

.sk--line.sk--short {
  width: 46%;
  height: 9px;
}

.sk--btn {
  width: 58px;
  height: 30px;
  border-radius: 10px;
}

.results-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 13px;
  background: rgba(255, 107, 107, 0.08);
}

.results-error__text {
  font-size: 12px;
  color: #ffb4b4;
  line-height: 1.5;
  min-width: 0;
  word-break: break-word;
}

/* ---------- 队列 ---------- */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 42vh;
  margin: 0 -5px;
  padding: 0 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.queue-item {
  display: grid;
  grid-template-columns: 16px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 7px;
  border-radius: 13px;
  transition: background 0.18s ease;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.queue-item--current {
  background: rgba(124, 92, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.3);
}

.queue-item__idx {
  display: grid;
  place-items: center;
  font-size: 10.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.queue-item__meta {
  min-width: 0;
}

.queue-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item__sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item__right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.queue-item__dur {
  font-size: 10px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--mine {
  color: #ffc2d6;
  background: rgba(255, 92, 138, 0.16);
  border: 1px solid rgba(255, 92, 138, 0.3);
}

/* ---------- 我的点歌 ---------- */
.request-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.028);
}

.req-item__meta {
  min-width: 0;
}

.req-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.req-item__sub {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--text-faint);
}

.req-item__reason {
  margin-top: 3px;
  font-size: 10.5px;
  color: #ffb0b0;
  line-height: 1.4;
  word-break: break-word;
}

.req-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status--pending {
  color: #ffd9a1;
  background: rgba(255, 179, 92, 0.12);
  border-color: rgba(255, 179, 92, 0.26);
}

.status--queued {
  color: #c3b3ff;
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.28);
}

.status--playing {
  color: #8ff0c4;
  background: rgba(61, 220, 151, 0.13);
  border-color: rgba(61, 220, 151, 0.28);
}

.status--played {
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}

.status--rejected,
.status--failed {
  color: #ffb4b4;
  background: rgba(255, 107, 107, 0.11);
  border-color: rgba(255, 107, 107, 0.26);
}

/* ---------- 空状态 ---------- */
.empty {
  display: grid;
  justify-items: center;
  padding: 24px 12px 20px;
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 9px;
  border-radius: 50%;
  color: rgba(200, 190, 255, 0.55);
  background: radial-gradient(circle at 50% 35%, rgba(124, 92, 255, 0.18), rgba(255, 255, 255, 0.02) 72%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.empty__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.empty__desc {
  margin-top: 3px;
  max-width: 250px;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.55;
}

/* ---------- 迷你播放条 ---------- */
.mini {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px var(--gutter) calc(9px + var(--safe-b));
  background: rgba(12, 9, 22, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.42);
}

.mini__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mini__fill {
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
}

.mini__text {
  min-width: 0;
}

.mini__title {
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini__sub {
  margin-top: 1px;
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini__eq {
  color: #a9f5cf;
}

.mini__cta {
  min-height: 32px;
  padding: 0 13px;
  font-size: 12px;
}

.has-mini .app {
  padding-bottom: calc(96px + var(--safe-b));
}

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--safe-b));
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

body.has-mini .toasts {
  bottom: calc(88px + var(--safe-b));
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 20, 40, 0.95);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
  pointer-events: auto;
  cursor: pointer;
  animation: toast-in 0.22s ease both;
}

.toast__msg {
  min-width: 0;
  word-break: break-word;
}

.toast--success { color: #a9f5cf; }
.toast--error { color: #ffb4b4; }
.toast--warn { color: #ffd9a1; }
.toast--info { color: #cfc4ff; }

.toast.is-out {
  animation: toast-out 0.22s ease forwards;
}

/* ---------- 弹层 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 11, 0.7);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade-in 0.18s ease both;
  overflow-y: auto;
}

.overlay.is-closing {
  animation: fade-out 0.17s ease forwards;
}

.modal {
  position: relative;
  width: min(410px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(165deg, rgba(36, 30, 62, 0.98) 0%, rgba(15, 12, 28, 0.99) 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  animation: modal-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.08) both;
}

.modal__head {
  padding-right: 26px;
}

.modal__title {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.modal__desc {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}

.modal__close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 32px;
  height: 32px;
}

.modal__body {
  margin-top: 16px;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.modal__text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

.modal--auth .modal__body {
  margin-top: 18px;
}

.modal__actions {
  margin-top: 14px;
}

/* ---------- 表单 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.field__hint {
  font-size: 10.5px;
  color: var(--text-faint);
  line-height: 1.5;
}

.field__wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.32);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__wrap:focus-within {
  border-color: rgba(124, 92, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.field__wrap > svg {
  flex: none;
  color: var(--text-faint);
}

.field__wrap input,
.field__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 11px 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 15px;
}

.field__wrap input::placeholder,
.field__input::placeholder {
  color: var(--text-faint);
}

.field > input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field > input:focus {
  border-color: rgba(124, 92, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.form-error {
  margin-top: 9px;
  font-size: 12px;
  color: #ff9b9b;
  line-height: 1.5;
  word-break: break-word;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form .field {
  margin-bottom: 2px;
}

/* ---------- 致命错误 ---------- */
.fatal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 5, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fatal__card {
  width: min(380px, 100%);
  padding: 28px 22px;
  text-align: center;
}

.fatal__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #ffb4b4;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.fatal__title {
  font-size: 18px;
  font-weight: 750;
}

.fatal__text {
  margin: 6px 0 18px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #08060f;
  color: var(--text);
  font-size: 15px;
  text-align: center;
}

/* ---------- 页脚 ---------- */
.foot {
  padding: 20px 0 4px;
  text-align: center;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ============================================================
   主持页
   ============================================================ */
.admin {
  max-width: 100%;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.is-spinning svg {
  animation: spin 0.9s linear infinite;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stat__value {
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.admin-grid {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 13px;
}

.admin-grid > .col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.admin-np {
  overflow: hidden;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(130% 95% at 100% 0%, rgba(255, 92, 138, 0.15), transparent 56%),
    radial-gradient(120% 90% at 0% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024));
}

.np-admin {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 13px;
}

.np-admin__meta {
  flex: 1;
  min-width: 0;
}

.np-admin__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.28;
  word-break: break-word;
}

.np-admin__artists {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-admin__from {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-faint);
}

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

.control {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.control:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--stroke-strong);
}

.control:active {
  transform: scale(0.94);
}

.control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.control--play {
  width: 60px;
  height: 60px;
  border: 0;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.control--play:hover {
  background: var(--grad);
  filter: brightness(1.08);
}

.control.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

/* 主持页待审核 */
.pending-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pending-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.03);
}

.pending-item__meta {
  min-width: 0;
}

.pending-item__title {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-item__sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-item__guest {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--text-faint);
}

.pending-item__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.pending-item__actions .btn {
  flex: 1;
}

/* 主持页设置 */
.settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.settings .field--full {
  grid-column: 1 / -1;
}

.switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.24);
}

.switch-field__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
}

.switch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
  pointer-events: none;
}

.switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch__track {
  background: var(--grad);
}

.switch input:checked + .switch__track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid rgba(150, 122, 255, 0.9);
  outline-offset: 2px;
}

.settings__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.settings__foot .btn {
  min-width: 116px;
}

/* 主持页 Folia 信息 */
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.kv:last-of-type {
  border-bottom: 0;
}

.kv__label {
  color: var(--text-faint);
  flex: none;
}

.kv__value {
  color: var(--text-dim);
  text-align: right;
  word-break: break-word;
}

.kv__value--ok { color: #8ff0c4; }
.kv__value--bad { color: #ffb4b4; }

.folia-error {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 107, 107, 0.24);
  background: rgba(255, 107, 107, 0.08);
  font-size: 11px;
  color: #ffb4b4;
  line-height: 1.55;
  word-break: break-word;
}

.folia-hint {
  margin: 12px 0;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
}

/* 主持页登录 */
.login {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px calc(24px + var(--safe-b));
}

.login__card {
  width: min(400px, 100%);
  padding: 26px 22px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(39, 32, 66, 0.94) 0%, rgba(15, 12, 29, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.login__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}

.login__brand .brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.login__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.login__wordmark {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
}

.login__title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.login__desc {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.login__desc strong {
  color: #d9ccff;
  font-weight: 650;
}

.login__form {
  margin-top: 20px;
}

.login__form .field {
  margin-bottom: 10px;
}

.login__form .btn {
  margin-top: 6px;
  min-height: 46px;
  font-size: 14px;
}

.login__foot {
  margin-top: 14px;
  text-align: center;
  font-size: 10.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

.login__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.login__back:hover {
  color: #d9ccff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 379px) {
  :root {
    --gutter: 13px;
  }

  .brand__title {
    max-width: 50vw;
    font-size: 15.5px;
  }

  .hero__art,
  .cover--hero {
    width: 86px;
    height: 86px;
  }

  .hero__disc {
    width: 74px;
    height: 74px;
    right: -13px;
  }

  .hero__title {
    font-size: 17.5px;
  }

  .song {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .cover--song {
    width: 42px;
    height: 42px;
  }

  .song__dur {
    display: none;
  }

  .queue-item__dur {
    display: none;
  }

  .guest__name {
    max-width: 62px;
  }

  .stat {
    padding: 10px;
  }

  .stat__value {
    font-size: 19px;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .app {
    max-width: 980px;
    padding-bottom: 48px;
  }

  .topbar {
    padding-top: 16px;
  }

  .brand__title {
    max-width: none;
    font-size: 18px;
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
  }

  .layout > .col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
  }

  .hero { order: 0; }
  .search-card { order: 0; }
  .results-card { order: 0; }
  .queue-card { order: 0; }
  .mine-card { order: 0; }

  .card {
    padding: 18px;
  }

  .hero {
    padding: 20px;
  }

  .hero__art {
    width: 118px;
    height: 118px;
  }

  .cover--hero {
    width: 118px;
    height: 118px;
    border-radius: 20px;
  }

  .hero__disc {
    width: 100px;
    height: 100px;
    top: 10px;
    right: -18px;
  }

  .hero__main {
    gap: 16px;
  }

  .hero__title {
    font-size: 23px;
  }

  .queue-list {
    max-height: 430px;
  }

  .mini {
    display: none !important;
  }

  .has-mini .app {
    padding-bottom: 48px;
  }

  .toasts,
  body.has-mini .toasts {
    bottom: 24px;
  }

  .admin {
    max-width: 1080px;
    padding: 0 24px 48px;
  }

  .admin .topbar {
    padding-top: 16px;
  }

  .admin .brand__title {
    white-space: nowrap;
  }

  .stats {
    max-width: 560px;
    margin-top: 18px;
  }

  .admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 18px;
    align-items: start;
    margin-top: 16px;
  }

  .admin-grid > .col {
    gap: 16px;
  }

  .admin-np {
    padding: 20px;
  }

  .np-admin {
    gap: 16px;
  }

  .cover--admin {
    width: 104px;
    height: 104px;
  }

  .np-admin__title {
    font-size: 22px;
  }

  .controls {
    gap: 20px;
    margin-top: 18px;
  }

  .pending-item {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
  }

  .pending-item__actions {
    grid-column: auto;
    flex-direction: row;
    align-items: center;
  }

  .pending-item__actions .btn {
    flex: none;
  }

  .settings {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .login__card {
    padding: 30px 28px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ---------- 滚动条 ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.4) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.38);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.6);
}

@media (max-width: 899px) {
  .mini.is-visible {
    display: grid;
  }
}

/* ---------- 动画 ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

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

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

/* 无 backdrop-filter 时的降级 */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .card,
  .topbar,
  .mini,
  .stat,
  .modal {
    background-color: rgba(18, 15, 30, 0.96);
  }
}

/* ---------- 补充与微调 ---------- */
.col--main,
.col--side {
  min-width: 0;
}

.banner--warn {
  border-color: rgba(255, 179, 92, 0.28);
  background: rgba(255, 179, 92, 0.09);
  color: #ffd9a8;
}

.state-pill--idle {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}

/* 输入框 16px：避免 iOS 聚焦时页面自动放大 */
.search-box__input,
.field__wrap input,
.field__input,
.field > input {
  font-size: 16px;
}

.song__btn {
  min-height: 36px;
  padding: 0 14px;
}

.field > input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.field > input[type='number']::-webkit-outer-spin-button,
.field > input[type='number']::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* 双平台来源标签 */
.song__platform { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 500; letter-spacing: .02em; vertical-align: 2px; color: rgba(255,255,255,.72); background: rgba(124,92,255,.18); border: 1px solid rgba(124,92,255,.35); white-space: nowrap; }
.song__platform:empty { display: none; }

/* 自动连播 + 外网隧道 */
.auto-play-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08); }
.auto-play-row .muted { font-size:12px; }
.tunnel-url { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; word-break:break-all; text-align:right; max-width:62%; }
.tunnel-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 8px; }
.tunnel-warn { color:rgba(255,190,120,.78); }

.hint--warn { color: #ffb36b !important; }


/* ============================================================
   舍友端增强（资料头像 / 认证徽章 / 聊天室 / 点赞点踩 / 夯拉榜 / 歌词 / 导入）
   ============================================================ */

/* ---------- 头像与认证徽章 ---------- */
.avatar {
  position: relative;
  overflow: hidden;
}

.avatar__img {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: #8ff0c4;
  background: rgba(61, 220, 151, 0.13);
  border: 1px solid rgba(61, 220, 151, 0.32);
  vertical-align: 1px;
}

.guest {
  max-width: 52vw;
}

.guest .verified-badge {
  flex: none;
}

.guest__name {
  min-width: 0;
  max-width: 96px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}

.user-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--text-dim);
}

.hero__from-text {
  font-size: 11px;
  color: var(--text-faint);
}

/* ---------- 正在播放：赞踩 / 分享 / 歌词 ---------- */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.hero__actions .vote-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hero--empty .hero__actions,
.hero--empty .lyrics {
  display: none;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.14s ease, opacity 0.18s ease;
}

.vote-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--stroke-strong);
}

.vote-btn:active {
  transform: scale(0.95);
}

.vote-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.vote-btn.is-voted {
  color: #8ff0c4;
  background: rgba(61, 220, 151, 0.14);
  border-color: rgba(61, 220, 151, 0.34);
}

.vote-btn--down.is-voted {
  color: #ffb4b4;
  background: rgba(255, 107, 107, 0.13);
  border-color: rgba(255, 107, 107, 0.32);
}

.vote-btn__count {
  font-variant-numeric: tabular-nums;
}

.vote-btn--xs {
  min-height: 24px;
  padding: 0 7px;
  gap: 3px;
  border-radius: 8px;
  font-size: 10px;
}

.vote-score {
  min-width: 26px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}

.vote-score--pos {
  color: #8ff0c4;
}

.vote-score--neg {
  color: #ffb4b4;
}

.vote-score--sm {
  min-width: 22px;
  font-size: 10px;
  font-weight: 650;
}

/* 歌词 */
.lyrics {
  position: relative;
  height: 128px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.075);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.lyrics__scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 42px 4px;
  scrollbar-width: none;
}

.lyrics__scroll::-webkit-scrollbar {
  display: none;
}

.lyrics__lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lyrics__line {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-faint);
  text-align: center;
  opacity: 0.7;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, font-size 0.25s ease;
}

.lyrics__line.is-active {
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  opacity: 1;
  transform: scale(1.02);
  text-shadow: 0 0 20px rgba(124, 92, 255, 0.5);
}

.lyrics__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 11.5px;
  color: var(--text-faint);
  pointer-events: none;
}

/* ---------- 卡片头右侧 ---------- */
.card-head__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
}

/* ---------- 队列：点歌人 / 赞踩 / 分享 ---------- */
.queue-item__by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.queue-item__tag {
  font-size: 10px;
  color: var(--text-faint);
}

.queue-item__votes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.icon-btn--xs {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.queue-item__right .icon-btn--xs {
  color: var(--text-faint);
}

.queue-item__right .icon-btn--xs:hover {
  color: var(--text);
}

/* ---------- 我的点歌：点歌人头像 ---------- */
.req-item__by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.status--cancelled {
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}

/* ---------- 聊天室 ---------- */
.chat-card {
  order: 6;
}

.chat__body {
  display: flex;
  flex-direction: column;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 46px;
  max-height: 270px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 4px;
}

.chat-empty {
  padding: 18px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
}

.chat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.chat-item--mine {
  flex-direction: row-reverse;
}

.chat-item__body {
  min-width: 0;
  max-width: 82%;
}

.chat-item--mine .chat-item__body {
  text-align: right;
}

.chat-item__head {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 10px;
  color: var(--text-faint);
}

.chat-item--mine .chat-item__head {
  justify-content: flex-end;
}

.chat-item__name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--text-dim);
}

.chat-item__time {
  flex: none;
  opacity: 0.8;
}

.chat-item__bubble {
  display: inline-block;
  margin-top: 3px;
  padding: 7px 10px;
  border-radius: 12px;
  border-top-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-item--mine .chat-item__bubble {
  border-top-left-radius: 12px;
  border-top-right-radius: 4px;
  background: rgba(124, 92, 255, 0.22);
  border-color: rgba(124, 92, 255, 0.3);
}

.chat-hint {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #ffb4b4;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus {
  border-color: rgba(124, 92, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.chat-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-send {
  flex: none;
  min-width: 62px;
}

.chat-toggle {
  border: 0;
  background: transparent;
}

.chat-card.is-collapsed .chat__body {
  display: none;
}

/* ---------- 资料编辑 ---------- */
.profile-edit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-edit__avatar {
  display: flex;
  flex: none;
}

.profile-edit__avatar .avatar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 20px rgba(0, 0, 0, 0.36);
}

.profile-edit__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.profile-edit__upload {
  position: relative;
  overflow: hidden;
}

.profile-edit__url {
  margin-top: 10px;
}

.profile-edit__clear {
  align-self: flex-start;
  margin-top: 6px;
}

.profile-edit__tip {
  margin-top: 12px;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
}

.profile-status .ico {
  flex: none;
}

.profile-status--ok {
  color: #8ff0c4;
  background: rgba(61, 220, 151, 0.08);
  border-color: rgba(61, 220, 151, 0.22);
}

.profile-status--warn {
  color: #ffd9a1;
  background: rgba(255, 179, 92, 0.08);
  border-color: rgba(255, 179, 92, 0.22);
}

.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #b9a6ff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: #d9ccff;
}

.search-hint--clip {
  margin-top: 6px;
}

/* ---------- 夯拉榜弹窗 ---------- */
.modal--rank {
  width: min(520px, 100%);
}

.rank-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.rank-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.rank-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.rank-tab.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.3);
}

.rank-list {
  max-height: min(56vh, 430px);
  margin: 0 -4px;
  padding: 0 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rank-hint {
  padding: 26px 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
}

.rank-hint--error {
  color: #ffb4b4;
}

.rank-list__ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  border-radius: 11px;
}

.rank-item:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.rank-item__no {
  text-align: center;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}

.rank-item__no--gold {
  color: #ffd166;
}

.rank-item__no--silver {
  color: #cfd6e6;
}

.rank-item__no--bronze {
  color: #e0a06c;
}

.rank-item__meta {
  min-width: 0;
}

.rank-item__title {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item__sub {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item__by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.rank-item__by-suffix {
  font-size: 9.5px;
  color: var(--text-faint);
}

.rank-item__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: none;
  text-align: right;
  font-size: 10px;
  color: var(--text-faint);
}

.rank-item__score {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.rank-item__score.is-pos {
  color: #8ff0c4;
}

.rank-item__score.is-neg {
  color: #ffb4b4;
}

.rank-item__score-sub {
  font-size: 9.5px;
  color: var(--text-faint);
  white-space: nowrap;
}

.cover--rank {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

/* ---------- 歌单导入 ---------- */
.import-result {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(61, 220, 151, 0.24);
  background: rgba(61, 220, 151, 0.09);
  font-size: 12px;
  line-height: 1.55;
  color: #a9f5cf;
  word-break: break-word;
}

.import-result strong {
  color: #fff;
  font-weight: 750;
}

/* ---------- 新面板响应式 ---------- */
@media (min-width: 900px) {
  .lyrics {
    height: 150px;
  }

  .chat-list {
    max-height: 300px;
  }
}

@media (max-width: 379px) {
  .guest__name {
    max-width: 54px;
  }

  .guest .verified-badge {
    padding: 1px 4px;
    font-size: 8.5px;
  }

  .hero__actions .vote-btn {
    padding: 0 8px;
  }

  .lyrics {
    height: 112px;
  }

  .chat-list {
    max-height: 220px;
  }

  .chat-item__body {
    max-width: 88%;
  }

  .rank-item {
    grid-template-columns: 20px 32px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .rank-item__by-suffix {
    display: none;
  }

  .cover--rank {
    width: 32px;
    height: 32px;
  }

  .queue-item__votes .vote-score {
    display: none;
  }
}


/* ============================================================
   task-7：卡片折叠 / 分页 / 移动端页签 / 声音开关 / 网易云扫码
   ============================================================ */

/* 整页高度：避免只显示半屏 */
html,
body {
  min-height: 100%;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- 卡片折叠 ---------- */
.card__body[hidden] {
  display: none !important;
}

.card.is-collapsed .card__body {
  display: none;
}

.card-collapse {
  flex: none;
}

.card-collapse .ico {
  transition: transform 0.18s ease;
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.pager[hidden] {
  display: none !important;
}

.pager__btn,
.pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.pager__btn:hover:not(:disabled),
.pager__page:hover:not(.is-active) {
  color: var(--text);
  border-color: var(--stroke-strong);
  background: var(--surface-2);
}

.pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pager__page.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.28);
}

.pager__ellipsis {
  padding: 0 2px;
  font-size: 11px;
  color: var(--text-faint);
}

/* ---------- 声音开关 ---------- */
.sound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sound-btn:hover {
  color: var(--text-dim);
  border-color: var(--stroke-strong);
  background: var(--surface-2);
}

.sound-btn.is-on {
  color: #a9f5cf;
  background: rgba(61, 220, 151, 0.12);
  border-color: rgba(61, 220, 151, 0.3);
}

.sound-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 移动端页签 ---------- */
.mobile-tabs {
  display: none;
}

@media (max-width: 899px) {
  .mobile-tabs {
    display: flex;
    gap: 6px;
    position: sticky;
    top: 59px;
    z-index: 36;
    margin: 4px calc(var(--gutter) * -1) 0;
    padding: 6px var(--gutter);
    background: linear-gradient(180deg, rgba(8, 6, 15, 0.95) 0%, rgba(8, 6, 15, 0.86) 100%);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .mobile-tab {
    flex: 1;
    min-width: 0;
    min-height: 34px;
    padding: 0 6px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  }

  .mobile-tab.is-active {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(124, 92, 255, 0.28);
  }

  body[data-tab="request"] .queue-card,
  body[data-tab="request"] .mine-card,
  body[data-tab="request"] .chat-card {
    display: none;
  }

  body[data-tab="queue"] .col--main,
  body[data-tab="mine"] .col--main,
  body[data-tab="chat"] .col--main {
    display: none;
  }

  body[data-tab="queue"] .mine-card,
  body[data-tab="queue"] .chat-card {
    display: none;
  }

  body[data-tab="mine"] .queue-card,
  body[data-tab="mine"] .chat-card {
    display: none;
  }

  body[data-tab="chat"] .queue-card,
  body[data-tab="chat"] .mine-card {
    display: none;
  }

  .queue-muted {
    display: none;
  }

  .layout {
    margin-top: 8px;
  }

  .sound-btn {
    width: 32px;
    padding: 0;
  }

  .sound-btn__text {
    display: none;
  }

  .card-head__side {
    gap: 6px;
  }
}

/* ---------- 全部列表弹窗 ---------- */
.modal--list {
  width: min(560px, 100%);
}

.all-list-hint {
  margin-bottom: 8px;
}

.all-list-empty {
  display: block;
  padding: 18px 0;
  text-align: center;
}

.queue-list--modal {
  max-height: min(60vh, 520px);
  margin-top: 4px;
}

.modal--list .request-list {
  max-height: min(52vh, 460px);
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---------- 网易云扫码登录 ---------- */
.ne-login {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.ne-login__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ne-login__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.ne-login__badge {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  color: #8ff0c4;
  background: rgba(61, 220, 151, 0.13);
  border: 1px solid rgba(61, 220, 151, 0.3);
  white-space: nowrap;
}

.ne-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ne-qr__img {
  width: 180px;
  height: 180px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.ne-qr__link {
  font-size: 11.5px;
}

.ne-qr__status {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-faint);
}

.ne-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.ne-account__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
}

.ne-playlists {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  margin-top: 8px;
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ne-playlist {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 10px;
}

.ne-playlist:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.ne-playlist__cover {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.06);
}

.ne-playlist__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ne-playlist__meta {
  min-width: 0;
}

.ne-playlist__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.ne-playlist__sub {
  margin-top: 1px;
  font-size: 10px;
  color: var(--text-faint);
}

.ne-playlist .btn {
  flex: none;
}

.ne-playlist--empty {
  display: block;
  padding: 12px 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
}

.ne-status {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
}

.ne-status--ok {
  color: #a9f5cf;
}

.ne-status--warn {
  color: #ffd9a1;
}

.ne-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 12px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.ne-divider::before,
.ne-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 379px) {
  .mobile-tabs {
    top: 57px;
  }

  .ne-qr__img {
    width: 156px;
    height: 156px;
  }
}


/* ---------- 多平台扫码登录页签（网易云 / QQ音乐 / 酷狗） ---------- */
.platform-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.platform-tab {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 0 6px;
  border-radius: 9px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.platform-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.platform-tab.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.28);
}

.ne-account__who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ne-account__avatar {
  display: flex;
  flex: none;
}

.ne-account__avatar .avatar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}


/* ---------- 平台音乐库 / 选歌入队（task-11） ---------- */
.platform-library {
  margin-top: 8px;
}

.library-tabs {
  display: flex;
  gap: 6px;
  margin: 2px 0 8px;
}

.library-tab {
  flex: 1;
  min-width: 0;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.library-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.library-tab.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

.library-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 230px;
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.library-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.library-item:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.library-item:hover,
.library-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.library-item__cover {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.06);
}

.library-item__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-item__meta {
  min-width: 0;
}

.library-item__name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item__sub {
  margin-top: 1px;
  font-size: 10px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item__arrow {
  flex: none;
  font-size: 14px;
  color: var(--text-faint);
}

.library-item__import {
  flex: none;
}

.library-status {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-faint);
}

.library-status--warn {
  color: #ffd9a1;
}

.track-browser {
  margin-top: 8px;
}

.track-browser__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.track-browser__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-list-wrap {
  max-height: 240px;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 8px;
}

.track-item:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.track-item__check {
  display: grid;
  place-items: center;
}

.track-item__check input {
  width: 15px;
  height: 15px;
  accent-color: #7c5cff;
  cursor: pointer;
}

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

.track-item__name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-item__sub {
  margin-top: 1px;
  font-size: 10px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-item__dur {
  font-size: 10px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.track-more {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.track-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.track-check-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
  cursor: pointer;
}

.track-check-all input {
  width: 15px;
  height: 15px;
  accent-color: #7c5cff;
  cursor: pointer;
}

/* ---------- 实时跟听 / 平台入口 ---------- */
.live-btn.is-on {
  color: #9fd8ff;
  background: rgba(70, 160, 255, 0.14);
  border-color: rgba(70, 160, 255, 0.38);
}

.platform-btn {
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .topbar .sound-btn__text { display: none; }
  .sound-btn { padding: 0 9px; }
  .topbar__actions { gap: 5px; }
  .guest__name { max-width: 20vw; }
}

/* ---------- 桌面双栏（与主持台一致） ---------- */
@media (min-width: 900px) {
  .app {
    max-width: 1560px;
    margin: 0 auto;
    padding-left: max(var(--gutter), 18px);
    padding-right: max(var(--gutter), 18px);
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(350px, 0.9fr);
    align-items: start;
    gap: 16px;
    margin-top: 16px;
  }

  .layout > .col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
  }

  .hero,
  .search-card,
  .results-card,
  .queue-card,
  .mine-card,
  .saved-card,
  .chat-card {
    order: initial;
  }

  .hero {
    padding: 20px;
  }

  .hero__title {
    font-size: clamp(24px, 2vw, 34px);
  }

  .col--side {
    position: sticky;
    top: 76px;
    align-self: start;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    padding-right: 2px;
  }

  .col--side::-webkit-scrollbar { width: 5px; }
  .col--side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 999px; }
}

@media (min-width: 1500px) {
  .layout { grid-template-columns: minmax(0, 1.65fr) minmax(390px, 0.85fr); gap: 20px; }
}


/* ---------- 音乐平台登录入口（导入弹窗内的引导） ---------- */
.platform-guide {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(124, 92, 255, 0.26);
  border-radius: 13px;
  background: rgba(124, 92, 255, 0.08);
}

.platform-guide__text {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
}

.platform-guide__btn {
  margin-top: 10px;
}

/* 导入歌单保留 */
.saved-playlists{display:flex;flex-direction:column;gap:8px}
.saved-playlist{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--stroke);border-radius:14px;background:var(--surface)}
.saved-playlist__meta{min-width:0}
.saved-playlist__name{font-size:13px;font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.saved-playlist__sub{font-size:11px;color:var(--text-faint);margin:3px 0 0}
.saved-track-list{max-height:45vh;overflow:auto;margin:10px 0 0;padding-left:18px;font-size:12px;line-height:1.8;color:var(--text-dim)}

.platform-cta{display:flex;align-items:center;gap:9px;margin:10px 0 0;padding:10px 13px;border:1px solid rgba(124,92,255,.35);border-radius:15px;background:linear-gradient(120deg,rgba(124,92,255,.18),rgba(255,92,138,.12));text-decoration:none;color:var(--text);font-size:12px;line-height:1.35}
.platform-cta__icon{font-size:18px;flex:none}
.platform-cta__text{flex:1;min-width:0}.platform-cta__text strong{display:block;font-size:13px;margin-bottom:1px}
.platform-cta__go{flex:none;color:#c9b8ff;font-weight:700;font-size:12px}
.platform-cta:active{transform:scale(.99)}

/* 聊天表情 / 键盘适配 */
.emoji-panel{position:relative;display:flex;flex-wrap:wrap;gap:4px;padding:10px;margin:0 0 6px;border:1px solid var(--stroke);border-radius:14px;background:var(--surface);max-height:180px;overflow:auto}
.emoji-item{width:34px;height:34px;border:0;border-radius:9px;background:transparent;font-size:20px;line-height:1;cursor:pointer}
.emoji-item:active{background:rgba(255,255,255,.08)}
.emoji-note{width:100%;margin:4px 0 0;font-size:10.5px;line-height:1.5;color:var(--text-faint)}
.chat-form{display:flex;align-items:center;gap:7px}
.chat-emoji-btn{flex:none;width:36px;height:36px;border:1px solid var(--stroke);border-radius:11px;background:var(--surface);font-size:18px;line-height:1;cursor:pointer}
body.chat-typing .mini{display:none!important}
body.chat-typing .chat__body{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
@media (max-width:899px){body.chat-typing .app{padding-bottom:12px}}

/* 队列下方独立榜单卡片 */
.rank-card{padding:13px}
.rank-card__list ol{margin:0;padding:0;list-style:none}
.rank-card__row{display:flex;align-items:center;gap:7px;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.055);min-width:0}
.rank-card__row:last-child{border-bottom:0}
.rank-card__no{width:15px;flex:none;font-size:10px;color:var(--text-faint);text-align:center}
.rank-card__cover{width:30px;height:30px;flex:none;border-radius:7px;overflow:hidden}
.rank-card__meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.rank-card__title{font-size:11.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-card__sub{font-size:9.5px;color:var(--text-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-card__stat{flex:none;font-size:10px;color:#c9b8ff}
.rank-card__empty{font-size:11px;color:var(--text-faint);text-align:center;padding:10px 0;margin:0}
@media (max-width:899px){body[data-tab="request"] .rank-card,body[data-tab="mine"] .rank-card,body[data-tab="chat"] .rank-card{display:none}}

.network-pill{display:inline-flex;align-items:center;gap:4px;padding:1px 7px;border-radius:999px;font-size:9.5px;font-weight:700;border:1px solid rgba(255,255,255,.12);color:var(--text-faint)}
.network-pill--lan{color:#a9f5cf;background:rgba(61,220,151,.1);border-color:rgba(61,220,151,.28)}
.network-pill--wan{color:#9fd8ff;background:rgba(70,160,255,.1);border-color:rgba(70,160,255,.28)}

/* 我的歌单：单曲勾选 */
.saved-track-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 8px}
.saved-track-toolbar .btn{flex:1;min-width:120px}
.saved-selected-hint{font-size:11.5px;color:var(--text-faint);margin:0 0 8px;line-height:1.55}
.saved-track-list{max-height:min(48vh,420px);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:3px}
.saved-track-list li{margin:0}
.saved-track-label{display:flex;align-items:center;gap:9px;padding:7px 6px;border-radius:9px;cursor:pointer}
.saved-track-label:hover{background:rgba(255,255,255,.04)}
.saved-track-label input{width:16px;height:16px;flex:none;accent-color:#8b6cff}
.saved-track-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.saved-track-title{font-size:12.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-track-artist{font-size:10.5px;color:var(--text-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
