:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f7f7fb;
  color: #17130f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  padding-bottom: 86px;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 238, 255, 0.7)),
    #f7f7fb;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    conic-gradient(from 120deg at 45% 45%, rgba(64, 156, 255, 0.34), rgba(191, 90, 242, 0.28), rgba(52, 199, 89, 0.25), rgba(255, 149, 0, 0.22), rgba(64, 156, 255, 0.34));
  filter: blur(42px) saturate(1.45);
  opacity: 0.78;
  animation: siriFlow 18s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.58), transparent 32%, rgba(255, 255, 255, 0.2) 58%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 15px);
  opacity: 0.55;
  animation: sheenFlow 11s ease-in-out infinite alternate;
}

body[data-page-route="performer"]::before {
  opacity: 0.46;
}

body[data-page-route="performer"]::after {
  opacity: 0.34;
}

@keyframes siriFlow {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(4%, 3%, 0) rotate(22deg) scale(1.08);
  }
  100% {
    transform: translate3d(-2%, 5%, 0) rotate(-16deg) scale(1.04);
  }
}

@keyframes sheenFlow {
  from {
    transform: translateX(-3%) translateY(-1%);
  }
  to {
    transform: translateX(3%) translateY(2%);
  }
}

@keyframes choiceGlide {
  0% {
    filter: saturate(1.15) brightness(1.05);
  }
  50% {
    filter: saturate(1.45) brightness(1.12);
  }
  100% {
    filter: saturate(1.15) brightness(1.05);
  }
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
}

.icp-footer {
  margin-top: 28px;
  padding-bottom: 84px;
  text-align: center;
  font-size: 12px;
}

.icp-footer a {
  color: #8a8272;
  text-decoration: none;
}

.icp-footer a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: #6b625b;
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(1.5);
}

.connection-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9f0a;
  content: '';
  box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.12);
}

.connection-status.connected::before {
  background: #30c85a;
  box-shadow: 0 0 0 4px rgba(48, 200, 90, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  border-radius: 999px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 23, 0.9);
  color: #d7f4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 28px rgba(30, 60, 120, 0.18);
  font-size: 26px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  line-height: 1.05;
}

.brand small {
  color: #73675d;
  margin-top: 2px;
}

.segmented,
.tabs,
.priority-tools,
.actions,
.stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-tools.amount-choice {
  --choice-count: 3;
  --choice-index: 0;
  --choice-left: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--choice-count), minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 12px 34px rgba(35, 58, 100, 0.1);
  backdrop-filter: blur(18px) saturate(1.45);
}

.priority-tools.amount-choice::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(5px + var(--choice-left));
  width: calc((100% - 10px) / var(--choice-count) - 4px);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.86), rgba(179, 220, 255, 0.76), rgba(255, 187, 224, 0.72), rgba(255, 255, 255, 0.84));
  background-size: 240% 240%;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  pointer-events: none;
  transition: left 280ms cubic-bezier(0.22, 1, 0.36, 1), width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.priority-tools.amount-choice.flowing::before {
  animation: choiceGlide 420ms ease;
}

.priority-tools.amount-choice button,
.boost-panel .priority-tools.amount-choice button:first-child,
.boost-panel .priority-tools.amount-choice button:nth-child(2) {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #17130f;
  padding: 8px 6px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.priority-tools.amount-choice button.active {
  color: #071527;
  transform: scale(1.02);
}

.segmented {
  padding: 4px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.45);
  box-shadow: 0 14px 34px rgba(45, 63, 110, 0.12);
}

.segmented button,
.tabs button,
.priority-tools button,
.actions button,
.panel-title button,
.song-form button,
#importSongs {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
  border-radius: 8px;
  padding: 9px 12px;
}

.segmented button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  min-width: 72px;
}

.segmented .active,
.tabs .active {
  background: rgba(18, 18, 23, 0.88);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  padding: 4px 0 10px;
}

.audience-now-playing {
  margin-top: 8px;
}

.now-playing-lyrics {
  position: relative;
}

.now-playing-lyrics pre {
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #493f37;
  letter-spacing: 0.02em;
}

.now-playing-lyrics[data-lyrics-state="loading"] pre,
.now-playing-lyrics[data-lyrics-state="error"] pre,
.now-playing-lyrics[data-lyrics-state="empty"] pre {
  color: #8b7e6e;
  font-style: italic;
  text-align: center;
}

.now-playing-lyrics[data-lyrics-state="error"] pre {
  color: #b85c4f;
}

.now-playing-lyrics.is-expanded pre {
  max-height: none;
  overflow-y: visible;
}

.lyrics-expand-btn {
  margin-left: auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s;
}
.lyrics-expand-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* 单列布局（榜单只剩打赏榜时） */
.audience-ranking {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ranking-block .panel-title {
  margin-bottom: 8px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
}

.rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.08);
  color: #6b5e51;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #fff;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #fff;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #b8860b);
  color: #fff;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info strong {
  display: block;
  font-size: 14px;
  color: #493f37;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info span {
  font-size: 12px;
  color: #8b7e6e;
}

.rank-count {
  font-size: 13px;
  font-weight: 700;
  color: #6b5e51;
  flex-shrink: 0;
}

/* Danmaku */
.danmaku-bar {
  overflow: hidden;
  padding: 8px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.danmaku-track {
  display: flex;
  gap: 24px;
  animation: danmakuScroll 30s linear infinite;
  white-space: nowrap;
}

.danmaku-item {
  font-size: 13px;
  color: #6b5e51;
  flex-shrink: 0;
}

.danmaku-item strong {
  color: #493f37;
}

@keyframes danmakuScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.danmaku-input-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.danmaku-input-bar input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  outline: none;
}

.danmaku-input-bar input:focus {
  border-color: #b09776;
}

.danmaku-input-bar button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #493f37;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Chorus invite banner */
.chorus-invite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(224, 122, 58, 0.18), rgba(176, 58, 46, 0.14));
  border: 1px solid rgba(224, 122, 58, 0.4);
  animation: chorusGlow 2s ease-in-out infinite;
}

@keyframes chorusGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 122, 58, 0.3); }
  50% { box-shadow: 0 0 16px 2px rgba(224, 122, 58, 0.35); }
}

.chorus-invite-copy {
  flex: 1;
  min-width: 0;
}

.chorus-invite-copy strong {
  display: block;
  font-size: 15px;
  color: #a85b1e;
  margin-bottom: 2px;
}

.chorus-invite-copy span {
  font-size: 13px;
  color: #6b5e51;
}

.chorus-invite button {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #e07a3a;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.chorus-invite button:disabled {
  background: #b8ab98;
  cursor: default;
}

.eyebrow {
  color: #b1442f;
  font-weight: 800;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  margin-bottom: 14px;
}

.hero p {
  max-width: 650px;
  color: #5f5349;
  font-size: 18px;
  line-height: 1.7;
}

.live-brief {
  display: grid;
  gap: 8px;
}

.live-brief p {
  margin: 0;
}

.stage-card,
.panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 22px 60px rgba(35, 58, 100, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(1.55);
}

.stage-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
}

.stage-card.playing-card {
  gap: 10px;
}

.stage-card.playing-card strong {
  font-size: 24px;
}

.blessing-text {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.24);
  color: #493f37;
  font-size: 14px;
  line-height: 1.5;
}

.stage-card small {
  color: #75695f;
}

.support-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 4px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(120deg, rgba(255, 45, 85, 0.92), rgba(10, 132, 255, 0.88), rgba(191, 90, 242, 0.88));
  background-size: 220% 220%;
  box-shadow: 0 14px 34px rgba(255, 45, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: colorPulse 4.5s ease-in-out infinite;
}

.support-bubble {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.support-bubble span {
  display: block;
  color: #0a65c8;
  font-weight: 900;
  margin-bottom: 5px;
}

.support-bubble p {
  margin: 0;
  color: #493f37;
  font-size: 14px;
  line-height: 1.5;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot.open {
  background: #30d158;
  box-shadow: 0 0 18px rgba(48, 209, 88, 0.68);
}

.status-dot.paused {
  background: #ff453a;
  box-shadow: 0 0 18px rgba(255, 69, 58, 0.56);
}

.utility-button {
  border: 1px solid rgba(23, 19, 15, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #17130f;
  padding: 9px 14px;
  font-weight: 900;
  backdrop-filter: blur(16px) saturate(1.35);
}

.secondary {
  border: 1px solid rgba(23, 19, 15, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #5f5349;
  padding: 10px 14px;
  font-weight: 900;
}

.subtle-admin-action {
  justify-self: start;
  min-width: 0;
}

.current-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 34px rgba(35, 58, 100, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(1.5);
}

.current-strip.live {
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.album-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56), transparent 30%),
    linear-gradient(135deg, var(--cover-a), var(--cover-b) 52%, var(--cover-c));
  box-shadow: 0 18px 34px rgba(20, 36, 80, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.album-cover::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 15px;
}

.album-cover span {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.current-song-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.current-song-info span {
  color: #0a65c8;
  font-size: 13px;
  font-weight: 900;
}

.current-song-info strong {
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.05;
}

.current-song-info small {
  color: #5f5349;
  font-weight: 700;
  line-height: 1.35;
}

.current-song-info p {
  margin: 2px 0 0;
  color: #493f37;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.current-strip.idle {
  grid-template-columns: auto auto minmax(0, 1fr);
  justify-content: start;
}

.support-button.mini {
  width: auto;
  min-width: 72px;
  margin: 0;
  padding: 11px 16px;
  border-radius: 999px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  width: min(720px, calc(100% - 22px));
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 50px rgba(20, 36, 80, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(28px) saturate(1.7);
  transform: translateX(-50%);
}

.audience-bottom-nav {
  width: min(520px, calc(100% - 64px));
}

.bottom-nav button,
.bottom-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #5f5349;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  /* Apple Liquid Glass 风格的 spring 弹性过渡：轻微过冲曲线 */
  transition:
    transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    color 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, background-color;
}

/* 仅在支持 hover 的设备上启用动效（手机端触摸设备不响应 hover，避免误触发） */
@media (hover: hover) {
  /* 鼠标悬停时按钮轻微上浮 + 放大，并亮起一层半透明白色玻璃高光 */
  .bottom-nav button:not(.active):hover,
  .bottom-nav a:not(.active):hover {
    background: rgba(255, 255, 255, 0.55);
    color: #2a221b;
    transform: translateY(-2px) scale(1.06);
    box-shadow:
      0 6px 18px rgba(20, 36, 80, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
    filter: saturate(1.08);
  }

  /* 当前选中页的按钮 hover：保持蓝紫渐变身份，但略微提亮、轻微下沉缩放，体现弹性按压感 */
  .bottom-nav button.active:hover,
  .bottom-nav a.active:hover {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.08) saturate(1.05);
    box-shadow:
      0 12px 28px rgba(10, 132, 255, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }
}

.bottom-nav button:active,
.bottom-nav a:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 90ms;
}

.bottom-nav button.active,
.bottom-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.92), rgba(191, 90, 242, 0.86));
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.bottom-nav button small,
.bottom-nav a small {
  position: absolute;
  top: 3px;
  right: 7px;
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.92);
  color: #ffffff;
  font-size: 10px;
  line-height: 1.4;
}

.feedback-submit-page,
.feedback-manager {
  width: min(760px, 100%);
  margin-inline: auto;
}

.feedback-status-error {
  color: #b91c1c;
  font-weight: 500;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form label {
  display: grid;
  gap: 7px;
  color: #433b35;
  font-weight: 850;
}

.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
}

.feedback-list {
  display: grid;
  gap: 10px;
}

.feedback-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
}

.feedback-item.unread {
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: inset 3px 0 0 #0a84ff;
}

.feedback-item strong,
.feedback-item time {
  display: inline-block;
}

.feedback-item time {
  margin-left: 8px;
  color: #766b62;
  font-size: 12px;
}

.feedback-item p {
  margin: 7px 0 0;
  color: #2f2925;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feedback-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.feedback-actions button,
.feedback-actions span {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(80, 70, 62, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: #3d3732;
  font-size: 12px;
  font-weight: 800;
}

.feedback-reply-bubble {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(86, 158, 240, 0.18), rgba(86, 158, 240, 0.06));
  border-left: 3px solid #5690f0;
  font-size: 13px;
  color: #1a2a44;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feedback-reply-bubble .feedback-reply-meta {
  display: block;
  font-size: 11px;
  color: #6a7a98;
  margin-top: 4px;
}

.feedback-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}
/* 修 media45 起的回归：.feedback-reply-form 的 display:grid 特异性 (0,1,0)
   会盖掉 [hidden] 的 UA display:none（同样 0,1,0，作者样式靠后胜出），
   导致"回复/改回复""取消"按钮的 form.hidden=true 完全无效，所有表单常驻可见。
   用 [hidden] 提升一档特异性把 hidden 真正生效。 */
.feedback-reply-form[hidden] { display: none; }

.feedback-reply-form textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(86, 158, 240, 0.32);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  color: #1a2a44;
  background: #fff;
  resize: vertical;
}

.feedback-reply-form textarea:focus {
  outline: none;
  border-color: rgba(86, 158, 240, 0.8);
  box-shadow: 0 0 0 3px rgba(86, 158, 240, 0.18);
}

.feedback-reply-form .feedback-reply-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ========= 后台"缺歌登记"板块 ========= */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.wishlist-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(86, 158, 240, 0.32);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(244, 250, 255, 0.7));
  box-shadow: 0 4px 14px rgba(86, 158, 240, 0.08);
}

.wishlist-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.wishlist-title {
  font-size: 16px;
  color: #1a2a44;
}

.wishlist-artist {
  color: #6a7a98;
  font-size: 13px;
}

.wishlist-status {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.wishlist-status-pending {
  background: rgba(255, 159, 10, 0.18);
  color: #b86b00;
}

.wishlist-status-fulfilled {
  background: rgba(48, 209, 88, 0.18);
  color: #1d7a3b;
}

.wishlist-status-rejected {
  background: rgba(142, 142, 147, 0.22);
  color: #5a5a5f;
}

.wishlist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #6a7a98;
  font-size: 12px;
}

.wishlist-note {
  margin: 0;
  font-size: 13px;
  color: #2c3e60;
  background: rgba(86, 158, 240, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wishlist-admin-note {
  margin: 0;
  font-size: 12px;
  color: #6a4a00;
  background: rgba(255, 220, 120, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
}

.wishlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.wishlist-status-select,
.wishlist-admin-note-input {
  border: 1px solid rgba(86, 158, 240, 0.32);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  background: #fff;
}

.wishlist-admin-note-input {
  flex: 1 1 140px;
  min-width: 120px;
}

.wishlist-actions button {
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(86, 158, 240, 0.18);
  color: #1a2a44;
}

.wishlist-actions button:hover {
  background: rgba(86, 158, 240, 0.32);
}

.wishlist-actions button.catalog-danger {
  background: rgba(255, 99, 99, 0.18);
  color: #b13a3a;
}

.wishlist-filter-bar {
  margin-bottom: 8px;
}

.songbook-wishlist-form {
  text-align: left;
}

.songbook-wishlist-fields {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.songbook-wishlist-fields input,
.songbook-wishlist-fields textarea {
  width: 100%;
  border: 1px solid rgba(86, 158, 240, 0.32);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1a2a44;
}

.songbook-wishlist-fields input:focus,
.songbook-wishlist-fields textarea:focus {
  outline: none;
  border-color: rgba(86, 158, 240, 0.8);
  box-shadow: 0 0 0 3px rgba(86, 158, 240, 0.18);
}

.songbook-wishlist-form button.primary {
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4a8df0, #6db0ff, #4a8df0);
  background-size: 200% 100%;
  border: 0;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(74, 141, 240, 0.32);
  animation: songbookHintPulse 2.6s ease-in-out infinite;
}

.songbook-wishlist-tip {
  color: #6a7a98;
  font-size: 13px;
  margin: 0 0 4px;
}

/* 观众端：留言附件选择与上传状态 */
.feedback-attach {
  display: grid;
  gap: 8px;
}

.feedback-attach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-attach-actions button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px dashed rgba(80, 70, 62, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  color: #3d3732;
  font-size: 13px;
  font-weight: 700;
}

.feedback-attach-hint {
  margin: 0;
  color: #766b62;
  font-size: 12px;
}

.feedback-attach-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.feedback-attach-list[hidden] {
  display: none;
}

.feedback-attach-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(80, 70, 62, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.feedback-attach-item img,
.feedback-attach-item video {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #1c1a18;
}

.feedback-attach-item figcaption {
  padding: 5px 7px;
  color: #5b524b;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.feedback-attach-item.error {
  border-color: rgba(214, 69, 69, 0.5);
}

.feedback-attach-item.error figcaption {
  color: #c33;
}

.feedback-attach-item.processing img,
.feedback-attach-item.uploading img,
.feedback-attach-item.processing video,
.feedback-attach-item.uploading video {
  opacity: 0.55;
}

.feedback-attach-bar {
  position: absolute;
  top: 88px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.feedback-attach-bar i {
  display: block;
  height: 100%;
  background: #0a84ff;
  transition: width 0.2s ease;
}

.feedback-attach-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.62);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

/* 后台：留言附件预览、下载与删除 */
.feedback-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.feedback-toolbar small {
  color: #766b62;
  font-size: 12px;
}

.feedback-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.feedback-media-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(80, 70, 62, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.feedback-media-item img,
.feedback-media-item video {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #1c1a18;
}

.feedback-media-item video {
  object-fit: contain;
}

.feedback-media-item figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  color: #5b524b;
  font-size: 11px;
}

.feedback-media-item figcaption span {
  flex: 1 1 auto;
}

.feedback-media-download,
.feedback-media-item figcaption button {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(80, 70, 62, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.6);
  color: #3d3732;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.audience-page,
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.audience-tab-page,
.admin-page {
  display: block;
}

.audience-combined {
  display: grid;
  gap: 12px;
}

.audience-songs-combined .request-form {
  margin-top: 2px;
}

.hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 12px;
}

.hero-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: #493f37;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.hero-meta .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .status-dot {
  width: 9px;
  height: 9px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}

.live-indicator .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.live-indicator.live .live-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: livePulse 2s infinite;
}

.live-indicator.offline .live-dot {
  background: #9ca3af;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.share-btn {
  margin-top: 8px;
  background: rgba(226, 203, 168, 0.3);
  border: 1px solid #e0cba8;
  color: #493f37;
}

.wechat-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  align-self: flex-start;
}
.wechat-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9e2d6;
}
.wechat-user-name {
  font-size: 14px;
  color: #493f37;
  font-weight: 600;
}

.admin-page {
  max-width: 940px;
  margin: 0 auto;
}

.admin-tab-panel {
  min-height: calc(100vh - 180px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-card strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #493f37;
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 13px;
  color: #8b7e6e;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  font-size: 14px;
}

.stats-table th {
  font-weight: 700;
  color: #493f37;
  background: rgba(0, 0, 0, 0.03);
}

/* 点歌 & 留言复盘面板 */
.request-history-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.visitor-aggregate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.visitor-aggregate {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
}

.visitor-aggregate > summary {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  list-style: none;
}

.visitor-aggregate > summary::-webkit-details-marker { display: none; }

.visitor-aggregate > summary::before {
  content: '▸';
  font-size: 12px;
  color: #8b7e6e;
}

.visitor-aggregate[open] > summary::before { content: '▾'; }

.visitor-name { font-weight: 700; color: #493f37; }
.visitor-meta { font-size: 12px; color: #8b7e6e; }

.visitor-request-items {
  list-style: none;
  margin: 2px 0 10px;
  padding: 0 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visitor-request-items li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}

.visitor-request-time {
  color: #8b7e6e;
  font-variant-numeric: tabular-nums;
}

.visitor-request-song {
  font-weight: 600;
  color: #493f37;
}

.visitor-request-msg {
  color: #5a5147;
  font-style: italic;
}

.request-history-table-wrap {
  overflow-x: auto;
}

.request-msg-cell {
  max-width: 280px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #5a5147;
}

.request-history-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.18);
  border-radius: 10px;
  font-size: 13px;
}

.request-history-bulk-toolbar .bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
}

.request-history-bulk-toolbar .bulk-count {
  color: #8a7d6f;
}

.request-selected-count {
  font-size: 13px;
  color: #8a7d6f;
  font-weight: 600;
}

.request-history-table .col-select {
  width: 36px;
  text-align: center;
}

.request-history-table .col-select input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.request-history-table .col-action {
  width: 80px;
  text-align: center;
}

.request-history-table .col-action button {
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 99, 99, 0.18);
  color: #b13a3a;
}

.request-history-table .col-action button:hover {
  background: rgba(255, 99, 99, 0.32);
}

.request-history-table .col-action button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.request-history-table tbody tr.is-checked {
  background: rgba(192, 57, 43, 0.05);
}

.venue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.venue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.venue-item span {
  flex: 1;
  font-weight: 700;
  color: #493f37;
}

.venue-item em {
  font-size: 12px;
  color: #22c55e;
  font-style: normal;
  font-weight: 700;
}

.venue-item button {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #d4c5b0;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  color: #493f37;
}

.venue-add {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.venue-add input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d4c5b0;
  background: rgba(255, 255, 255, 0.7);
}

.venue-add button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #493f37;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.about-bio {
  padding: 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-bottom: 16px;
}

.about-bio p {
  font-size: 15px;
  line-height: 1.8;
  color: #493f37;
  margin: 0;
  white-space: pre-wrap;
}

/* 「关于我」富文本编辑器：左编辑 / 右预览 */
.about-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.about-editor-toolbar .ghost { padding: 6px 12px; font-size: 13px; }

.about-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 760px) {
  .about-editor-grid { grid-template-columns: 1fr; }
}

/* ===== 后台手机端折叠导航（hamburger + 抽屉） ===== */
.perf-mobile-nav {
  display: none; /* 桌面端默认隐藏，<=760px 才显示 */
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 12px;
}
.perf-mobile-nav-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #1f1f23);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.perf-mobile-nav-toggle .perf-burger {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}
.perf-mobile-nav-toggle .perf-burger i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease;
}
.perf-mobile-nav-toggle .perf-burger i:nth-child(1) { top: 0; }
.perf-mobile-nav-toggle .perf-burger i:nth-child(2) { top: 7px; }
.perf-mobile-nav-toggle .perf-burger i:nth-child(3) { top: 14px; }
.perf-mobile-nav-toggle.open .perf-burger i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.perf-mobile-nav-toggle.open .perf-burger i:nth-child(2) { opacity: 0; }
.perf-mobile-nav-toggle.open .perf-burger i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.perf-mobile-nav-drawer {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
}
.perf-mobile-nav-drawer.open {
  max-height: 80vh;
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
}
.perf-mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text, #1f1f23);
  font-size: 15px;
  transition: background 0.15s ease;
}
.perf-mobile-nav-item:active {
  background: rgba(0, 0, 0, 0.05);
}
.perf-mobile-nav-item.active {
  background: linear-gradient(135deg, #5b6cf2, #7d4cff);
  color: #fff;
  font-weight: 600;
}
.perf-mobile-nav-item.active .perf-mobile-nav-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.perf-mobile-nav-badge {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.perf-mobile-nav-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 4px;
}

/* ===== 「关于」视频：抖音/B 站风 缩略图卡片 + 大屏 modal 播放 ===== */
.about-video-card {
  display: block;
  max-width: 560px;
  margin: 12px auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  position: relative;
  border: 0;
  padding: 0;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.about-video-card:focus-visible {
  outline: 3px solid #5ac8fa;
  outline-offset: 2px;
}

.about-video-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #232946 0%, #0f3460 50%, #e94560 100%);
}
.about-video-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.about-video-cover-img.is-loaded { opacity: 1; }
.about-video-cover-img.is-loaded ~ .about-video-cover-fallback { opacity: 0; }
.about-video-card:hover .about-video-cover-img { transform: scale(1.05); }

.about-video-cover-fallback {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.about-video-cover-icon {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}
.about-video-cover-platform {
  font-size: 13px;
  opacity: 0.85;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-video-play-fab {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
  pointer-events: none;
}
.about-video-play-fab-icon {
  font-size: 22px;
  line-height: 1;
  margin-left: 4px; /* 视觉居中三角 */
}
.about-video-card:hover .about-video-play-fab,
.about-video-card:focus-visible .about-video-play-fab {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

.about-video-file {
  margin: 12px auto;
  max-width: 560px;
}

/* 大屏 modal 播放（仿抖音/B 站大屏进入效果） */
.about-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}
.about-video-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: aboutVideoMaskIn 0.22s ease-out;
  cursor: pointer;
}
.about-video-modal-frame {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: aboutVideoModalIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.about-video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.about-video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.about-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.05);
}
.about-video-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
body.about-video-modal-open { overflow: hidden; }

@keyframes aboutVideoMaskIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes aboutVideoModalIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 760px) {
  /* 显示手机端折叠导航，隐藏底部 nav（已塞不下 10 个 tab） */
  .perf-mobile-nav { display: block; }
  .shell .performer-bottom-nav { display: none; }

  .about-video-card { max-width: 100%; }
  .about-video-modal { padding: 0; }
  .about-video-modal-frame { width: 100%; height: 100%; border-radius: 0; }
  .about-video-modal-close { top: 12px; right: 12px; background: rgba(0,0,0,0.5); }
}

.about-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(73, 63, 55, 0.6);
  margin-bottom: 6px;
}

.about-html-source {
  width: 100%;
  min-height: 360px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #2b2620;
  background: #fff;
  border: 1px solid rgba(73, 63, 55, 0.2);
  border-radius: 10px;
  padding: 12px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
}

.about-preview {
  min-height: 360px;
  border: 1px dashed rgba(73, 63, 55, 0.25);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  overflow-wrap: break-word;
}

.about-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ===== 「关于我」Block 编辑器（Notion 风）：每个板块一张可增删改的卡片 ===== */
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
}
.about-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(73, 63, 55, 0.16);
  border-radius: 12px;
  padding: 12px;
  background: #fffdfb;
}
.about-block-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-block-controls button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(73, 63, 55, 0.18);
  background: #fff;
  color: #493f37;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-block-controls button:hover:not(:disabled) { background: rgba(73, 63, 55, 0.06); }
.about-block-controls button:disabled { opacity: 0.35; cursor: not-allowed; }
.about-block-controls button.danger { color: #c0392b; border-color: rgba(192, 57, 43, 0.4); }
.about-block-body { min-width: 0; }
.about-block-body textarea,
.about-block-body input[type="text"],
.about-block-body select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: #2b2620;
  background: #fff;
  border: 1px solid rgba(73, 63, 55, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
}
.about-block-body textarea { resize: vertical; line-height: 1.6; }
.about-block-body select {
  padding: 6px 10px;
  max-width: 160px;
  margin-bottom: 8px;
  cursor: pointer;
}
.about-block-text-h2 textarea { font-size: 18px; font-weight: 700; }
.about-block-list .hint,
.about-block-video-fields .hint { margin-bottom: 6px; }
.about-block-divider-preview { padding: 8px 0; }
.about-block-divider-preview hr { border: none; border-top: 1px solid rgba(73, 63, 55, 0.2); margin: 0; }
.about-block-image { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.about-block-image > img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(73, 63, 55, 0.18);
  background: #f3efe9;
}
.about-block-image-fields { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.about-block-video { display: flex; flex-direction: column; gap: 10px; }
.about-block-video-thumb {
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  max-width: 360px;
}
.about-block-video-fields { display: flex; flex-direction: column; gap: 6px; }
.about-format-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 10px;
  padding: 3px;
  border: 1px solid rgba(62, 77, 96, 0.12);
  border-radius: 7px;
  background: rgba(241, 244, 248, 0.88);
}
.about-format-toolbar button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #2a3038;
  font-size: 14px;
  cursor: pointer;
}
.about-format-toolbar button:hover,
.about-format-toolbar button:focus-visible { background: #fff; }
.about-format-toolbar button.active {
  color: #fff;
  background: #15191f;
}
.about-color-tool span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2a3038;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .86), 0 0 0 3px rgba(42, 48, 56, .16);
}
.about-color-tool.about-color-rose span { background: #c94d68; }
.about-color-tool.about-color-blue span { background: #2574c8; }
.about-color-tool.about-color-green span { background: #278768; }
.about-block-table .hint { margin-bottom: 6px; }
.about-source-advanced { margin-top: 12px; }
.about-source-advanced summary { cursor: pointer; font-size: 13px; color: rgba(73, 63, 55, 0.7); }
.about-source-advanced .about-html-source { margin-top: 8px; }
.about-source-advanced #aboutSourceSync { margin-top: 8px; }

/* 富文本内容通用排版（预览与观众端共用） */
.about-rich { color: #493f37; line-height: 1.75; font-size: 15px; }
.about-rich h1, .about-rich h2, .about-rich h3, .about-rich h4 {
  color: #2b2620; margin: 18px 0 10px; line-height: 1.3;
}
.about-rich h1 { font-size: 24px; }
.about-rich h2 { font-size: 20px; }
.about-rich h3 { font-size: 17px; }
.about-rich p { margin: 0 0 12px; }
.about-rich ul, .about-rich ol { margin: 0 0 12px; padding-left: 22px; }
.about-rich li { margin-bottom: 4px; }
.about-rich blockquote {
  margin: 0 0 12px; padding: 8px 14px;
  border-left: 4px solid rgba(73, 63, 55, 0.3);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 0 8px 8px 0; color: #6b5f54;
}
.about-rich img {
  max-width: 100%; height: auto; border-radius: 10px;
  display: block; margin: 8px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.about-rich a { color: #b4532a; text-decoration: underline; }
.about-rich hr { border: none; border-top: 1px solid rgba(73, 63, 55, 0.2); margin: 16px 0; }
.about-rich [data-about-bold="1"] { font-weight: 700; }
.about-rich [data-about-italic="1"] { font-style: italic; }
.about-rich [data-about-underline="1"] { text-decoration: underline; text-underline-offset: 3px; }
.about-rich [data-about-strike="1"] { text-decoration: line-through; }
.about-rich [data-about-underline="1"][data-about-strike="1"] { text-decoration: underline line-through; }
.about-rich [data-about-color="rose"] { color: #b7425e; }
.about-rich [data-about-color="blue"] { color: #246cad; }
.about-rich [data-about-color="green"] { color: #24795f; }
.about-rich table {
  width: 100%;
  margin: 10px 0 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(73, 63, 55, .16);
  border-radius: 7px;
}
.about-rich th,
.about-rich td {
  padding: 9px 10px;
  border-right: 1px solid rgba(73, 63, 55, .12);
  border-bottom: 1px solid rgba(73, 63, 55, .12);
  text-align: left;
  vertical-align: top;
}
.about-rich th { background: rgba(237, 241, 246, .84); font-weight: 700; }
.about-rich tr:last-child > * { border-bottom: 0; }
.about-rich tr > *:last-child { border-right: 0; }
.about-rich .video-item { margin: 12px 0; }
.about-rich .video-item iframe,
.about-rich .video-item video {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000;
  display: block;
}

.about-photos,
.about-videos {
  margin-bottom: 16px;
}

.about-photos h3,
.about-videos h3 {
  font-size: 15px;
  font-weight: 700;
  color: #493f37;
  margin-bottom: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
}

.video-item {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}

.video-item iframe,
.video-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: #000;
  display: block;
}

/* B 站视频占位按钮：点击后才加载 720P mp4 直链 */
.about-video-bilibili {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #00aeec 0%, #fb7299 100%);
  color: #fff;
}
.bili-load-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  backdrop-filter: blur(4px);
  transition: transform 0.12s ease, background 0.12s ease;
}
.bili-load-btn:hover { background: rgba(0, 0, 0, 0.55); transform: scale(1.04); }
.bili-load-btn:active { transform: scale(0.98); }
.bili-load-btn:disabled { opacity: 0.7; cursor: wait; }
.bili-play-icon { font-size: 22px; line-height: 1; }
.bili-quality { font-size: 11px; opacity: 0.85; }
.bili-video-title { margin: 8px 12px 0; font-size: 14px; font-weight: 500; }
.bili-video-source { margin: 4px 12px 8px; font-size: 12px; opacity: 0.75; }
.bili-video-source a { color: inherit; opacity: 0.85; text-decoration: underline; }
.about-video-bilibili-player { display: block; }

.about-video-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  flex-wrap: wrap;
}

/* 后台「关于我」视频链接输入的实时识别提示 */
.profile-video-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.profile-video-hint-empty {
  font-size: 12px;
  color: #75695f;
  margin: 0;
}
.profile-video-hint {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "label url"
    "label detail";
  align-items: center;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  column-gap: 10px;
}
.profile-video-hint-label {
  grid-area: label;
  font-weight: 700;
  white-space: nowrap;
}
.profile-video-hint-url {
  grid-area: url;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  color: #5e5347;
  font-size: 11.5px;
  line-height: 1.35;
}
.profile-video-hint-detail {
  grid-area: detail;
  color: #6c6258;
  line-height: 1.4;
}
.profile-video-hint-ok {
  border-color: rgba(46, 160, 67, 0.35);
  background: rgba(46, 160, 67, 0.08);
}
.profile-video-hint-ok .profile-video-hint-label {
  color: #2ea047;
}
.profile-video-hint-warn {
  border-color: rgba(212, 167, 44, 0.45);
  background: rgba(212, 167, 44, 0.10);
}
.profile-video-hint-warn .profile-video-hint-label {
  color: #b0681b;
}
.profile-video-hint-invalid {
  border-color: rgba(220, 39, 39, 0.35);
  background: rgba(220, 39, 39, 0.07);
}
.profile-video-hint-invalid .profile-video-hint-label {
  color: #c83232;
}
.profile-videos-field .hint {
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.about-video-link .about-video-anchor {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 200px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.about-video-link .about-video-warning {
  font-size: 12px;
  color: #b08900;
  background: rgba(255, 193, 7, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  align-self: flex-start;
}

.about-video-link .about-video-label {
  font-weight: 600;
  font-size: 15px;
}

.about-video-link .about-video-host {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.about-video-link .copy-link-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.about-video-link .copy-link-btn.copied {
  background: #e8f5e9;
  border-color: #66bb6a;
  color: #2e7d32;
}

/* 深色主题适配 */
/* 媒体 54：临时关闭全站深色模式——用户希望背景恢复之前（浅色）的样子。
   只把媒体查询条件改成永远不成立 (min-width: 99999px)，内部 media47/48/49/52
   所有规则原样保留。将来要恢复深色模式，只需把下面这行改回
   @media (prefers-color-scheme: dark) { 即可。 */
@media (prefers-color-scheme: dark) and (min-width: 99999px) {
  /* 媒体 47：dark 模式真正激活——body / 顶层容器设深色玻璃，
     否则下方 white 覆盖会和浅米色 body 撞色形成「白底白字」 */
  :root {
    color-scheme: dark;
  }
  body {
    background:
      linear-gradient(135deg, #1b1d27 0%, #121420 100%),
      #0f1015;
    color: rgba(255, 255, 255, 0.92);
  }
  /* 减弱装饰光斑，避免和深色 body 叠加成光雾 */
  body::before { opacity: 0.22; }
  body::after { opacity: 0.12; }

  .panel,
  .stage-card {
    background: linear-gradient(145deg, rgba(38, 41, 56, 0.82), rgba(20, 22, 30, 0.68));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .perf-mobile-nav-toggle {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
  .perf-mobile-nav-drawer {
    background: rgba(30, 32, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .perf-mobile-nav-item { color: rgba(255, 255, 255, 0.92); }
  .perf-mobile-nav-item:active { background: rgba(255, 255, 255, 0.06); }
  .perf-mobile-nav-divider { background: rgba(255, 255, 255, 0.1); }
  .about-video-card { background: rgba(0, 0, 0, 0.6); }
  .about-video-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .about-video-link .about-video-host { color: rgba(255, 255, 255, 0.55); }
  .about-video-link .copy-link-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: inherit;
  }
  .about-video-link .copy-link-btn.copied {    background: rgba(102, 187, 106, 0.18);
    border-color: #66bb6a;
  }

  /* 点歌 & 留言复盘：dark 下用深色卡片与浅色文字，避免白底白字 */
  .request-history-summary .stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
  }
  .request-history-summary .stat-card strong { color: #fff; }
  .request-history-summary .stat-card span { color: rgba(255, 255, 255, 0.62); }

  .visitor-aggregate {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
  }
  /* 三角箭头：light 默认 #8b7e6e 棕灰在深色面板里看不见，需切到浅灰 */
  .visitor-aggregate > summary::before { color: rgba(255, 255, 255, 0.5); }
  .visitor-name { color: #fff; }
  .visitor-meta { color: rgba(255, 255, 255, 0.55); }
  .visitor-request-time { color: rgba(255, 255, 255, 0.55); }
  .visitor-request-song { color: #fff; }
  .visitor-request-msg { color: rgba(255, 255, 255, 0.78); }

  .request-history-bulk-toolbar {
    background: rgba(255, 138, 122, 0.10);
    border-color: rgba(255, 138, 122, 0.28);
    color: rgba(255, 255, 255, 0.78);
  }
  .request-history-bulk-toolbar .bulk-count { color: rgba(255, 255, 255, 0.55); }
  .request-selected-count { color: rgba(255, 255, 255, 0.55); }
  .request-history-table .col-select input { filter: invert(0.9) hue-rotate(180deg); }
  .request-history-table tbody tr.is-checked { background: rgba(255, 138, 122, 0.08); }
  /* 点歌/留言明细表格：dark 下补表格边框与表头色，避免和深色面板融为一体 */
  .stats-table th,
  .stats-table td { border-bottom-color: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.86); }
  .stats-table th { color: rgba(255, 255, 255, 0.92); background: rgba(255, 255, 255, 0.05); }
  .stats-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
  /* 表格内 strong 与歌名加亮，保持对比度 */
  .stats-table strong { color: #fff; }

  /* 面板标题与说明：light 默认 #75695f 棕灰在深色上面看不清 */
  .panel-title h2,
  .section-head h2 { color: #fff; }
  .panel-title span,
  .section-head span,
  .hint,
  .empty,
  .compact-request small,
  .song-card small,
  .request-card p,
  .song-manage-list span { color: rgba(255, 255, 255, 0.62); }
  .request-msg-cell { color: rgba(255, 255, 255, 0.78); }

  /* 媒体 48：观众页 deep 配套（audience-page / hero / 现场队列 / 顶歌按钮 / 状态 chip） */
  /* 卡片玻璃：把 light 默认的「24% 白 + 白边」改成深色玻璃，避免和深紫 body 撞色 */
  .compact-request {
    background: rgba(38, 41, 56, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(1.2);
  }
  .compact-request strong { color: #fff; }
  /* 媒体 52：用户名/时间等次要文字提到 0.88，避免在深色面板上看不清 */
  .compact-request small { color: rgba(255, 255, 255, 0.88); }
  .compact-request .boost-trace { color: #5fa8ff; }
  .compact-request.priority { border-color: rgba(10, 132, 255, 0.5); background: rgba(10, 132, 255, 0.18); }
  .compact-request.pending-pay { border-color: rgba(177, 68, 47, 0.5); }
  .compact-request.locked { outline-color: rgba(95, 168, 255, 0.45); }
  .compact-request.boosted { border-color: rgba(232, 93, 4, 0.55); background: rgba(232, 93, 4, 0.12); }

  /* 顶歌按钮 + 数量徽章：light 用透明橙底 + #b1442f 深棕红字，dark 下要切到亮色 */
  .trial-boost {
    background: linear-gradient(135deg, rgba(232, 93, 4, 0.55), rgba(244, 162, 97, 0.55));
    border-color: rgba(232, 93, 4, 0.85);
    color: #fff7e6;
  }
  .trial-boost:disabled,
  .trial-boost.is-boosted {
    border-color: rgba(95, 168, 255, 0.45);
    background: rgba(95, 168, 255, 0.16);
    color: #cfe1ff;
  }
  .trial-boost-count { background: #e85d04; color: #fff; }
  .trial-boost:disabled .trial-boost-count,
  .trial-boost.is-boosted .trial-boost-count { background: #5fa8ff; }

  /* 队列卡片右侧金额 / 顶到前面 按钮：light 黑色字 + 半透明白底 → dark 用浅字 */
  .queue-money b { color: #f0a878; }
  .queue-money em { color: rgba(255, 255, 255, 0.55); }
  .queue-money i { color: rgba(255, 255, 255, 0.55); }
  .queue-money button {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  /* 顶部 hero-meta 状态 chip：light #493f37 深棕 + 30% 白底 → dark 切浅 */
  .hero-meta span {
    background: rgba(38, 41, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
  }
  .live-indicator { color: rgba(255, 255, 255, 0.92); }
  .live-indicator.offline { color: rgba(255, 255, 255, 0.55); }
  .status-pill { color: rgba(255, 255, 255, 0.88); }

  /* 当前播放条 + 歌词：light 24% 白底 → dark 改成深色玻璃，歌词预改浅色 */
  .current-strip {
    background: rgba(38, 41, 56, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  .current-song-info strong { color: #fff; }
  .current-song-info small { color: rgba(255, 255, 255, 0.6); }
  .current-song-info p { color: rgba(255, 255, 255, 0.78); }
  .current-song-info span { color: #5fa8ff; }
  .now-playing-lyrics pre {
    background: rgba(38, 41, 56, 0.6);
    color: rgba(255, 255, 255, 0.86);
  }

  /* 支持气泡 + 通用按钮：light 米色 + 深棕 → dark 切深色玻璃 */
  .share-btn {
    background: rgba(38, 41, 56, 0.55);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
  }
  .support-bubble {
    background: rgba(38, 41, 56, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .support-bubble span { color: #5fa8ff; }
  .support-bubble p { color: rgba(255, 255, 255, 0.86); }
  .secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
  }
  .utility-button {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  /* tag-chip：light 米色 + 深棕 → dark 切深色玻璃 */
  .tag-chip {
    background: rgba(38, 41, 56, 0.6);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* 优先级 / 状态 / 锁定 / 置顶 badge：light 透明彩色底 + 深棕字，dark 切亮色背景或浅字 */
  .priority-badge {
    background: rgba(232, 93, 4, 0.32);
    color: #ffb585;
  }
  .plain-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
  }
  .pending-badge {
    background: rgba(248, 204, 88, 0.28);
    color: #ffd875;
  }
  .locked-badge {
    background: rgba(95, 168, 255, 0.22);
    color: #cfe1ff;
  }
  .pinned-badge {
    background: rgba(232, 93, 4, 0.32);
    color: #ffb585;
  }

  /* 观众留言：light 半透明白底 + 深棕字 → dark 切深色玻璃 */
  .feedback-item {
    background: rgba(38, 41, 56, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .feedback-item time { color: rgba(255, 255, 255, 0.55); }
  .feedback-item p { color: rgba(255, 255, 255, 0.86); }
  .feedback-actions button,
  .feedback-actions span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
  }
  .feedback-reply-bubble {
    background: rgba(10, 132, 255, 0.18);
    border-color: rgba(10, 132, 255, 0.4);
    color: rgba(255, 255, 255, 0.92);
  }
  .feedback-reply-bubble .feedback-reply-meta { color: rgba(255, 255, 255, 0.62); }

  /* 暗色：今日/总歌 4 列网格 + 选择按钮组 */
  .song-manage-grid .song-manage-row {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .song-manage-grid .song-manage-row.is-selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(10, 132, 255, 0.8);   /* 媒体 33：dark 模式选中改蓝边，去暖橙 */
  }
  .song-manage-grid .song-manage-row .manage-song-meta > span { color: rgba(255, 255, 255, 0.6); }
  .select-mode-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.82);
  }
  .select-mode-btn:hover { background: rgba(240, 168, 120, 0.18); border-color: rgba(240, 168, 120, 0.5); }

  .about-preview-label { color: rgba(255, 255, 255, 0.55); }
  .about-html-source { background: #1f1c19; color: #f2ede6; border-color: rgba(255, 255, 255, 0.16); }
  /* 预览区在 dark mode 下用明确深色背景，避免与 panel 的半透明白玻璃叠加后出现「白底白字」 */
  .about-preview { background: #1f1c19; border-color: rgba(255, 255, 255, 0.16); }
  .about-rich { color: rgba(255, 255, 255, 0.92); }
  .about-rich h1, .about-rich h2, .about-rich h3, .about-rich h4 { color: #fff; }
  .about-rich a { color: #f0a878; }
  .about-rich blockquote { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.78); border-left-color: rgba(255, 255, 255, 0.25); }
  .about-rich hr { border-top-color: rgba(255, 255, 255, 0.18); }

  /* Block 编辑器在 dark 下用明确深色背景，避免「白底白字」 */
  .about-blocks { }
  .about-block { background: #1f1c19; border-color: rgba(255, 255, 255, 0.16); }
  .about-block-controls button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
  }
  .about-block-controls button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
  .about-block-controls button.danger { color: #ff8a7a; border-color: rgba(255, 138, 122, 0.4); }
  .about-block-body textarea,
  .about-block-body input[type="text"],
  .about-block-body select {
    background: #15120f;
    color: #f2ede6;
    border-color: rgba(255, 255, 255, 0.18);
  }
  .about-block-divider-preview hr { border-top-color: rgba(255, 255, 255, 0.2); }
  .about-block-image > img { border-color: rgba(255, 255, 255, 0.16); background: #15120f; }
  .about-block-video-thumb { background: #000; }
  .about-source-advanced summary { color: rgba(255, 255, 255, 0.55); }

  .bulk-toolbar { background: rgba(240, 168, 120, 0.10); border-color: rgba(240, 168, 120, 0.28); color: rgba(255, 255, 255, 0.78); }
  .bulk-toolbar .bulk-count { color: rgba(255, 255, 255, 0.55); }
  .song-manage-row { border-bottom-color: rgba(255, 255, 255, 0.08); }
  .song-manage-row.is-selected { background: rgba(255, 255, 255, 0.04); box-shadow: inset 3px 0 0 rgba(10, 132, 255, 0.85); border-bottom-color: rgba(10, 132, 255, 0.4); }
  .catalog-song-row { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
  .catalog-song-row.is-selected { background: rgba(255, 255, 255, 0.08); border-color: rgba(10, 132, 255, 0.8); box-shadow: none; }
  .catalog-song-row:hover { border-color: rgba(10, 132, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
  .song-manage-grid .song-manage-row { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
  .song-manage-grid .song-manage-row:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(10, 132, 255, 0.5); }
  .song-manage-grid .song-manage-row.is-selected { background: rgba(255, 255, 255, 0.08); border-color: rgba(10, 132, 255, 0.8); }
  .catalog-song-main strong { color: rgba(255, 255, 255, 0.92); }
  .catalog-song-album { color: rgba(255, 255, 255, 0.45); }
  .song-heat { color: #ff9c3d; background: rgba(255, 156, 61, 0.16); }
  .catalog-sort-label { color: rgba(255, 255, 255, 0.5); }
  .catalog-sort-tab { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.78); }
  .catalog-sort-tab.active { background: linear-gradient(90deg, #f0a878, #ef8e54); color: #fff; border-color: transparent; }
  /* 媒体 49：兜底——基础样式里所有深色文字在 dark 下统一改为可读浅色（中性→白/浅灰，语义色→同色系浅亮） */
  /* 微信用户头像昵称 chip 在深色背景下的配套 */
  .wechat-user-chip { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
  .wechat-user-avatar { background: rgba(255, 255, 255, 0.15); }
  .wechat-user-name { color: #fff; }
  /* .connection-status  (原 #6b625b) */
  .connection-status { color: rgba(255, 255, 255, 0.92); }
  /* .boost-panel .priority-tools.amount-choice button:nth-child(2)  (原 #17130f) */
  .boost-panel .priority-tools.amount-choice button:nth-child(2) { color: rgba(255, 255, 255, 0.92); }
  /* .priority-tools.amount-choice button.active  (原 #071527) */
  .priority-tools.amount-choice button.active { color: rgba(255, 255, 255, 0.92); }
  /* #importSongs  (原 #17130f) */
  #importSongs { color: rgba(255, 255, 255, 0.92); }
  /* .rank-badge  (原 #6b5e51) */
  .rank-badge { color: rgba(255, 255, 255, 0.92); }
  /* .rank-count  (原 #6b5e51) */
  .rank-count { color: rgba(255, 255, 255, 0.6); }
  /* .danmaku-item  (原 #6b5e51) */
  .danmaku-item { color: rgba(255, 255, 255, 0.92); }
  /* .eyebrow  (原 #b1442f) */
  .eyebrow { color: #ff9c9c; }
  /* .blessing-text  (原 #493f37) */
  .blessing-text { color: rgba(255, 255, 255, 0.92); }
  /* .bottom-nav a:not(.active):hover  (原 #2a221b) */
  .bottom-nav a:not(.active):hover { color: rgba(255, 255, 255, 0.92); }
  /* .feedback-status-error  (原 #b91c1c) */
  .feedback-status-error { color: #ff9c9c; }
  /* .feedback-form label  (原 #433b35) */
  .feedback-form label { color: rgba(255, 255, 255, 0.92); }
  /* .feedback-reply-form textarea  (原 #1a2a44) */
  .feedback-reply-form textarea { color: #9cc4ff; }
  /* .wishlist-title  (原 #1a2a44) */
  .wishlist-title { color: #9cc4ff; }
  /* .wishlist-artist  (原 #6a7a98) */
  .wishlist-artist { color: rgba(255, 255, 255, 0.6); }
  /* .wishlist-status-pending  (原 #b86b00) */
  .wishlist-status-pending { color: #ffc285; }
  /* .wishlist-status-fulfilled  (原 #1d7a3b) */
  .wishlist-status-fulfilled { color: #9be7b0; }
  /* .wishlist-status-rejected  (原 #5a5a5f) */
  .wishlist-status-rejected { color: rgba(255, 255, 255, 0.6); }
  /* .wishlist-meta  (原 #6a7a98) */
  .wishlist-meta { color: rgba(255, 255, 255, 0.6); }
  /* .wishlist-note  (原 #2c3e60) */
  .wishlist-note { color: #9cc4ff; }
  /* .wishlist-admin-note  (原 #6a4a00) */
  .wishlist-admin-note { color: #ffc285; }
  /* .wishlist-actions button.catalog-danger  (原 #b13a3a) */
  .wishlist-actions button.catalog-danger { color: #ff9c9c; }
  /* .songbook-wishlist-fields textarea  (原 #1a2a44) */
  .songbook-wishlist-fields textarea { color: #9cc4ff; }
  /* .songbook-wishlist-tip  (原 #6a7a98) */
  .songbook-wishlist-tip { color: rgba(255, 255, 255, 0.6); }
  /* .feedback-attach-hint  (原 #766b62) */
  .feedback-attach-hint { color: rgba(255, 255, 255, 0.6); }
  /* .feedback-attach-item figcaption  (原 #5b524b) */
  .feedback-attach-item figcaption { color: rgba(255, 255, 255, 0.6); }
  /* .feedback-attach-item.error figcaption  (原 #c33) */
  .feedback-attach-item.error figcaption { color: #ff9c9c; }
  /* .feedback-media-item figcaption  (原 #5b524b) */
  .feedback-media-item figcaption { color: rgba(255, 255, 255, 0.6); }
  /* .about-video-play-fab  (原 #111) */
  .about-video-play-fab { color: rgba(255, 255, 255, 0.92); }
  /* .profile-video-hint-empty  (原 #75695f) */
  .profile-video-hint-empty { color: rgba(255, 255, 255, 0.6); }
  /* .profile-video-hint-url  (原 #5e5347) */
  .profile-video-hint-url { color: rgba(255, 255, 255, 0.6); }
  /* .profile-video-hint-detail  (原 #6c6258) */
  .profile-video-hint-detail { color: rgba(255, 255, 255, 0.6); }
  /* .profile-video-hint-ok .profile-video-hint-label  (原 #2ea047) */
  .profile-video-hint-ok .profile-video-hint-label { color: #9be7b0; }
  /* .profile-video-hint-warn .profile-video-hint-label  (原 #b0681b) */
  .profile-video-hint-warn .profile-video-hint-label { color: #ffc285; }
  /* .profile-video-hint-invalid .profile-video-hint-label  (原 #c83232) */
  .profile-video-hint-invalid .profile-video-hint-label { color: #ff9c9c; }
  /* .move-button  (原 #17130f) */
  .move-button { color: rgba(255, 255, 255, 0.92); }
  /* .layout-row > span:first-child  (原 #1e716e) */
  .layout-row > span:first-child { color: #7fe0db; }
  /* label  (原 #493f37) */
  label { color: rgba(255, 255, 255, 0.92); }
  /* textarea  (原 #17130f) */
  textarea { color: rgba(255, 255, 255, 0.92); }
  /* .boost-panel .priority-tools:not(.amount-choice) button:nth-child(2)  (原 #17130f) */
  .boost-panel .priority-tools:not(.amount-choice) button:nth-child(2) { color: rgba(255, 255, 255, 0.92); }
  /* .songbook-search-wrap input#songSearch  (原 #1a2a44) */
  .songbook-search-wrap input#songSearch { color: #9cc4ff; }
  /* .songbook-search-clear  (原 #44557a) */
  .songbook-search-clear { color: #9cc4ff; }
  /* .time  (原 #b1442f) */
  .time { color: #ff9c9c; }
  /* button.pinned-on  (原 #b1442f) */
  button.pinned-on { color: #ff9c9c; }
  /* .request-side .actions button.subtle-danger  (原 #b03a2e) */
  .request-side .actions button.subtle-danger { color: #ff9c9c; }
  /* .request-side .actions button.pinned-on  (原 #a85b1e) */
  .request-side .actions button.pinned-on { color: #ffc285; }
  /* .song-manage-list button:disabled  (原 #75695f) */
  .song-manage-list button:disabled { color: rgba(255, 255, 255, 0.92); }
  /* .catalog-no-match-title  (原 #4a3f35) */
  .catalog-no-match-title { color: rgba(255, 255, 255, 0.92); }
  /* .catalog-no-match-hint  (原 rgba(74, 63, 53, 0.7)) */
  .catalog-no-match-hint { color: rgba(255, 255, 255, 0.7); }
  /* .catalog-artist-link-card  (原 #17130f) */
  .catalog-artist-link-card { color: rgba(255, 255, 255, 0.6); }
  /* .catalog-artist-entry > .catalog-danger  (原 #b42318) */
  .catalog-artist-entry > .catalog-danger { color: #ff9c9c; }
  /* .catalog-secondary  (原 #0a84ff) */
  .catalog-secondary { color: #9cc4ff; }
  /* .portrait-editor > label  (原 #5f5349) */
  .portrait-editor > label { color: rgba(255, 255, 255, 0.92); }
  /* .portrait-editor-footer > .danger  (原 #b42318) */
  .portrait-editor-footer > .danger { color: #ff9c9c; }
  /* .catalog-back-link  (原 #0a65c8) */
  .catalog-back-link { color: #9cc4ff; }
  /* .catalog-admin-line button:not(:disabled)  (原 #0a65c8) */
  .catalog-admin-line button:not(:disabled) { color: #9cc4ff; }
  /* .catalog-in-master-tag  (原 #b85b18) */
  .catalog-in-master-tag { color: #ffc285; }
  /* .catalog-song-row.is-selected .catalog-in-master-tag  (原 #8a3f0a) */
  .catalog-song-row.is-selected .catalog-in-master-tag { color: #ffc285; }
  /* .catalog-detail-search input::placeholder  (原 rgba(23, 19, 15, 0.42)) */
  .catalog-detail-search input::placeholder { color: rgba(255, 255, 255, 0.42); }
  /* .catalog-detail-search-count  (原 rgba(23, 19, 15, 0.55)) */
  .catalog-detail-search-count { color: rgba(255, 255, 255, 0.55); }
  /* .catalog-detail-empty  (原 rgba(23, 19, 15, 0.55)) */
  .catalog-detail-empty { color: rgba(255, 255, 255, 0.55); }
  /* .catalog-actions button:disabled  (原 #75695f) */
  .catalog-actions button:disabled { color: rgba(255, 255, 255, 0.92); }
  /* .catalog-actions button.catalog-added  (原 #167447) */
  .catalog-actions button.catalog-added { color: #9be7b0; }
  /* .catalog-actions button.catalog-add-today-btn:disabled  (原 #75695f) */
  .catalog-actions button.catalog-add-today-btn:disabled { color: rgba(255, 255, 255, 0.92); }
  /* .catalog-artist-tools .catalog-danger  (原 #b42318) */
  .catalog-artist-tools .catalog-danger { color: #ff9c9c; }
  /* .toast  (原 #17130f) */
  .toast { color: rgba(255, 255, 255, 0.92); }
  /* .toast.success  (原 #0d6f38) */
  .toast.success { color: #9be7b0; }
  /* .toast.error  (原 #b1442f) */
  .toast.error { color: #ff9c9c; }
  /* .image-preview-card figcaption  (原 #75695f) */
  .image-preview-card figcaption { color: rgba(255, 255, 255, 0.6); }
  /* .tag-edit-input  (原 #6b5e51) */
  .tag-edit-input { color: rgba(255, 255, 255, 0.92); }
  /* .tag-filter-btn  (原 #6b5e51) */
  .tag-filter-btn { color: rgba(255, 255, 255, 0.92); }
  /* .shop-cart-panel.empty-cart  (原 #75695f) */
  .shop-cart-panel.empty-cart { color: rgba(255, 255, 255, 0.92); }
  /* .cart-remove  (原 #17130f) */
  .cart-remove { color: rgba(255, 255, 255, 0.92); }
  /* .commerce-link  (原 #0a65c8) */
  .commerce-link { color: #9cc4ff; }
  /* .product-media-status  (原 #75695f) */
  .product-media-status { color: rgba(255, 255, 255, 0.92); }
  /* .product-gallery-item button:last-child  (原 #c5291c) */
  .product-gallery-item button:last-child { color: #ff9c9c; }
  /* .product-gallery-add  (原 #0a65c8) */
  .product-gallery-add { color: #9cc4ff; }
  /* .inline-check  (原 #5f5349) */
  .inline-check { color: rgba(255, 255, 255, 0.92); }
  /* .shop-card button.catalog-danger  (原 #c5291c) */
  .shop-card button.catalog-danger { color: #ff9c9c; }
  /* 媒体 52：第二轮深色模式兜底——覆盖 media47/49 仍未覆盖的深色文字与半透明白容器 */
  /* 顶部 brand 副标题（performer 名字） */
  .brand small { color: rgba(255, 255, 255, 0.88); }
  /* 顶部 hero-meta 状态徽章（未在演出 / 正在接歌 / 暂停等） */
  .hero-meta span { color: rgba(255, 255, 255, 0.92); }
  /* 顶部分享按钮 */
  .share-btn { color: rgba(255, 255, 255, 0.92); }
  /* 当前演唱信息：状态色/曲名/小字 */
  .current-song-info span { color: #9cc4ff; }
  .current-song-info small { color: rgba(255, 255, 255, 0.85); }
  .current-song-info p { color: rgba(255, 255, 255, 0.92); }
  /* 演出卡小字 */
  .stage-card small { color: rgba(255, 255, 255, 0.85); }
  /* 底部菜单非激活项 */
  .bottom-nav button:not(.active),
  .bottom-nav a:not(.active) { color: rgba(255, 255, 255, 0.78); }
  /* 后台底部菜单（继承 bottom-nav 但再次兜底） */
  .performer-bottom-nav a:not(.active) { color: rgba(255, 255, 255, 0.78); }
  /* 后台统计卡片：数字 + 描述 + 容器背景（深色玻璃，去掉白底） */
  .stat-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
  .stat-card strong { color: rgba(255, 255, 255, 0.92); }
  .stat-card span { color: rgba(255, 255, 255, 0.7); }
  /* 后台商城/商品行：白色玻璃 → 深色玻璃 + 文字亮 */
  .shop-card,
  .commerce-row { background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border-color: rgba(255, 255, 255, 0.14); }
  .shop-card button { color: rgba(255, 255, 255, 0.92); }
  /* 后台歌单管理行：纯白 #fff 卡片 → 极淡玻璃；歌名/艺人文字亮 */
  .song-manage-grid .song-manage-row { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
  .manage-song-meta strong { color: rgba(255, 255, 255, 0.92); }
  /* 后台通用 secondary / utility 按钮文字 */
  .secondary { color: rgba(255, 255, 255, 0.92); }
  .utility-button { color: rgba(255, 255, 255, 0.92); }
  /* 顶部分享文案气泡 */
  .support-bubble p { color: rgba(255, 255, 255, 0.92); }
  /* 后台面板标题操作区文字 */
  .panel-title-actions span { color: rgba(255, 255, 255, 0.7); }
  /* 输入框 placeholder */
  input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
  /* 留言/礼物卡 wishlist-item 容器 */
  .wishlist-item { background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)); border-color: rgba(120, 170, 230, 0.35); }
}

.audience-page > .hero,
.audience-page > .songbook {
  grid-column: 1 / -1;
}

.dashboard {
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.35fr) minmax(340px, 1fr);
  align-items: start;
}

.admin-dashboard {
  gap: 14px 18px;
}

.admin-side,
.admin-main,
.admin-library {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.admin-menu {
  grid-column: 1 / -1;
  position: sticky;
  top: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 36px rgba(35, 58, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(1.45);
  scrollbar-width: none;
}

.admin-menu::-webkit-scrollbar {
  display: none;
}

.admin-menu strong {
  flex: 0 0 auto;
  padding: 0 10px 0 6px;
  color: #5f5349;
  font-size: 13px;
  letter-spacing: 0;
}

.admin-menu button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 23, 0.07);
  color: #17130f;
  padding: 8px 12px;
  font-weight: 900;
}

.admin-menu button:hover,
.admin-menu button:focus-visible {
  background: rgba(18, 18, 23, 0.88);
  color: #ffffff;
  outline: none;
}

.admin-menu button small {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.14);
  color: #0a65c8;
  font-size: 11px;
  text-align: center;
}

.admin-menu button:hover small,
.admin-menu button:focus-visible small {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.panel {
  border-radius: 24px;
  padding: 16px;
  min-width: 0;
}

.panel-title,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-title-actions .switch {
  display: block;
  margin-bottom: 0;
}

.bulk-cover-button {
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}

.panel-title h2,
.section-head h2 {
  font-size: 22px;
  margin: 0;
}

.panel-move-controls {
  display: flex;
  gap: 6px;
}

.move-button {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.5);
  color: #17130f;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.move-button:disabled {
  opacity: 0.36;
}

.draggable-panel {
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.audience-layout-controls {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 19, 15, 0.1);
}

.section-head.compact {
  align-items: flex-start;
  margin-bottom: 10px;
}

.section-head.compact h2 {
  font-size: 18px;
}

.layout-list {
  display: grid;
  gap: 8px;
}

.layout-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.layout-row > span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(30, 113, 110, 0.12);
  color: #1e716e;
  font-weight: 900;
  font-size: 13px;
}

.panel-title span,
.hint,
.empty,
.compact-request small,
.song-card small,
.request-card p,
.song-manage-list span {
  color: #75695f;
}

label {
  display: grid;
  gap: 7px;
  color: #493f37;
  font-weight: 700;
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px) saturate(1.2);
}

input:focus,
textarea:focus {
  border-color: rgba(10, 132, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary {
  display: block;
  width: 100%;
  border: 0;
  background: linear-gradient(120deg, rgba(10, 132, 255, 0.92), rgba(191, 90, 242, 0.86), rgba(255, 45, 85, 0.86), rgba(10, 132, 255, 0.92));
  background-size: 220% 220%;
  color: #ffffff;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(10, 132, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: colorPulse 5s ease-in-out infinite;
}

.primary:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.priority-tools {
  margin: 4px 0 14px;
}

.priority-tools button {
  flex: 1;
  min-width: 112px;
}

.priority-tools button:nth-child(2) {
  background: rgba(18, 18, 23, 0.88);
  color: #f8fbff;
}

.now-playing {
  padding: 18px;
  border-radius: 20px;
  background: rgba(18, 18, 23, 0.86);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
}

.now-playing span {
  color: #64d2ff;
  font-weight: 800;
}

.now-playing strong {
  display: block;
  font-size: 28px;
  margin: 8px 0;
}

.now-playing p {
  color: #e8dac7;
  margin: 0;
}

.now-playing em {
  display: block;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-style: normal;
  line-height: 1.45;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.compact-request {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px) saturate(1.25);
}

.compact-request.priority {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.12);
}

.compact-request.pending-pay {
  border-color: rgba(177, 68, 47, 0.22);
}

.compact-request.locked {
  outline: 2px solid rgba(30, 113, 110, 0.3);
}

.queue-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cover-a), var(--cover-b) 52%, var(--cover-c));
  box-shadow: 0 8px 18px rgba(20, 36, 80, 0.16);
}

.queue-cover img,
.queue-cover .cover-fallback {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.queue-cover img {
  object-fit: cover;
}

.queue-cover .cover-fallback {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.22);
}

.queue-index {
  position: absolute;
  left: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: #1e716e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.compact-request.priority .queue-index {
  background: #c7553f;
  color: #fffaf0;
}

.compact-request.locked .queue-index {
  background: #1e716e;
  color: #fffaf0;
}

.compact-request strong,
.compact-request small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-request .boost-trace {
  margin-top: 3px;
  color: #0a65c8;
  font-weight: 900;
}

.queue-money {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.queue-money button {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  padding: 6px 8px;
  color: #17130f;
  font-size: 12px;
  font-weight: 900;
}

/* === 试用模式免费顶歌 === */
.trial-boost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(232, 93, 4, 0.32);
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.12), rgba(244, 162, 97, 0.18));
  color: #b1442f;
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.14);
}

.trial-boost:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.22);
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.2), rgba(244, 162, 97, 0.28));
}

.trial-boost:active:not(:disabled) {
  transform: translateY(0);
}

.trial-boost:disabled,
.trial-boost.is-boosted {
  cursor: default;
  border-color: rgba(30, 113, 110, 0.4);
  background: rgba(30, 113, 110, 0.12);
  color: #1e716e;
  box-shadow: none;
}

.trial-boost-icon {
  font-size: 12px;
  line-height: 1;
}

.trial-boost-text {
  letter-spacing: 0.5px;
}

.trial-boost-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.92);
  color: #fffaf0;
  font-size: 11px;
  font-weight: 900;
  margin-left: 2px;
}

.trial-boost:disabled .trial-boost-count,
.trial-boost.is-boosted .trial-boost-count {
  background: #1e716e;
}

.compact-request.boosted {
  border-color: rgba(232, 93, 4, 0.32);
  background: rgba(255, 245, 240, 0.32);
}

.compact-request.boosted .queue-index {
  background: #e85d04;
  color: #fffaf0;
}

.compact-request b,
.compact-request em,
.compact-request i {
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}

.compact-request b {
  color: #b1442f;
}

.compact-request em {
  color: #75695f;
}

.compact-request i {
  color: #b1442f;
}

.boost-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 18, 23, 0.28);
  backdrop-filter: blur(12px) saturate(1.3);
}

.boost-panel {
  width: min(440px, 100%);
  max-height: min(620px, calc(100vh - 128px));
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24));
  box-shadow: 0 28px 80px rgba(20, 36, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(1.6);
}

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

.boost-head span,
.boost-target span {
  color: #75695f;
  font-size: 13px;
  font-weight: 800;
}

.boost-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.boost-head button {
  border: 0;
  background: transparent;
  color: #b1442f;
  font-weight: 900;
}

.boost-target {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.boost-target span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: #0a65c8;
}

.boost-panel .priority-tools:not(.amount-choice) button:first-child {
  background: rgba(18, 18, 23, 0.88);
  color: #f8fbff;
}

.boost-panel .priority-tools:not(.amount-choice) button:nth-child(2) {
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
}

.songbook {
  margin-top: 6px;
}

.section-head input {
  max-width: 320px;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.song-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  gap: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
  border-radius: 22px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 16px 38px rgba(35, 58, 100, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.4);
}

.song-card button {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  min-width: 72px;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(120deg, #0a84ff, #bf5af2, #ff2d55, #0a84ff);
  background-size: 220% 220%;
  box-shadow: 0 12px 28px rgba(191, 90, 242, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  animation: colorPulse 4.5s ease-in-out infinite;
}

.song-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.42);
}

.song-card strong,
.song-card span,
.song-card small {
  display: block;
}

.song-card strong {
  font-size: 18px;
  margin-bottom: 0;
}

.song-card span {
  color: #493f37;
  margin-bottom: 0;
}

@keyframes colorPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.control-panel,
.qr-panel {
  position: sticky;
  top: 18px;
}

.admin-side .control-panel,
.admin-side .qr-panel {
  position: static;
}

/* ========= 观众端"今日歌单"搜索框：sticky 固定，左右铺满 ========= */
.songbook-sticky {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 6px 10px 8px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96) 0%, rgba(248, 250, 255, 0.82) 70%, rgba(248, 250, 255, 0) 100%);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  margin-bottom: 8px;
}

.songbook-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.songbook-search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #6c89b8;
  pointer-events: none;
}

.songbook-search-wrap input#songSearch {
  width: 100%;
  max-width: 100%;
  padding: 10px 36px 10px 34px;
  border: 1px solid rgba(120, 170, 230, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  color: #1a2a44;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.songbook-search-wrap input#songSearch:focus {
  border-color: rgba(86, 158, 240, 0.85);
  box-shadow: 0 0 0 4px rgba(86, 158, 240, 0.18);
}

.songbook-search-wrap input#songSearch::placeholder {
  color: #8a9ab8;
}

.songbook-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 140, 170, 0.2);
  color: #44557a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.songbook-search-clear:hover {
  background: rgba(86, 158, 240, 0.32);
}

/* 0 匹配时的"登记想点"卡片 */
.songbook-empty-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 22px 16px;
  margin-top: 14px;
  border: 1px dashed rgba(86, 158, 240, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232, 244, 255, 0.7), rgba(255, 255, 255, 0.6));
}

.songbook-empty-hint p {
  font-size: 15px;
  color: #2c3e60;
  margin: 0 0 12px;
}

.songbook-empty-hint button.primary {
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4a8df0, #6db0ff, #4a8df0);
  background-size: 200% 100%;
  border: 0;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(74, 141, 240, 0.32);
  animation: songbookHintPulse 2.6s ease-in-out infinite;
}

@keyframes songbookHintPulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.songbook-empty-hint small {
  display: block;
  margin-top: 10px;
  color: #6a7a98;
  font-size: 12px;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-width: 0;
}

.switch span {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.7);
  position: relative;
  display: block;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: rgba(255, 255, 255, 0.96);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: rgba(48, 209, 88, 0.76);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.qr-panel {
  text-align: center;
}

#qrCanvas {
  width: 100%;
  max-width: 256px;
  image-rendering: pixelated;
  border-radius: 18px;
  border: 8px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 32px rgba(35, 58, 100, 0.12);
}

.link-copy {
  margin-top: 12px;
  font-size: 12px;
  min-width: 0;
}

.queue-manager,
.sheet-panel {
  grid-column: auto;
}

.stats span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 113, 110, 0.12);
  color: #1e716e;
  font-size: 13px;
  font-weight: 800;
}

.request-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.request-card {
  display: grid;
  grid-template-columns: 30px 44px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 24px rgba(35, 58, 100, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.request-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cover-a), var(--cover-b) 55%, var(--cover-c));
  box-shadow: 0 6px 16px rgba(20, 36, 80, 0.12);
}

.request-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-cover span {
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.request-copy {
  min-width: 0;
}

.request-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 18, 23, 0.88);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
}

.request-card h3 {
  font-size: 18px;
  margin: 2px 0 3px;
}

.time {
  color: #b1442f;
  font-size: 12px;
  font-weight: 900;
}

.priority-badge,
.plain-badge,
.pending-badge,
.locked-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.priority-badge {
  background: rgba(199, 85, 63, 0.14);
  color: #b1442f;
}

.plain-badge {
  background: rgba(23, 19, 15, 0.08);
  color: #5f5349;
}

.pending-badge {
  background: rgba(248, 204, 88, 0.24);
  color: #8b5b00;
}

.locked-badge {
  background: rgba(30, 113, 110, 0.14);
  color: #1e716e;
}

.locked-card {
  outline: 2px solid rgba(30, 113, 110, 0.22);
}

.pinned-badge {
  background: rgba(199, 85, 63, 0.16);
  color: #b1442f;
}

.pinned-card {
  outline: 2px solid rgba(199, 85, 63, 0.28);
  background: rgba(199, 85, 63, 0.05);
}

.compact-request.pinned {
  outline: 2px solid rgba(199, 85, 63, 0.28);
}

button.pinned-on {
  background: rgba(199, 85, 63, 0.16);
  color: #b1442f;
  border-color: rgba(199, 85, 63, 0.4);
}

.payment-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.payment-list div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background: rgba(255, 204, 0, 0.14);
}

.payment-list span {
  flex: 1;
  min-width: 150px;
  color: #493f37;
  font-weight: 800;
}

.payment-list button {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.56);
  color: #17130f;
  border-radius: 8px;
  padding: 7px 9px;
}

.support-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.support-list div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  background: rgba(10, 132, 255, 0.1);
}

.support-list span {
  display: block;
  color: #0a65c8;
  font-weight: 900;
  margin-bottom: 4px;
}

.support-list p {
  margin: 0;
  color: #493f37;
  line-height: 1.5;
}

.note {
  padding: 8px;
  border-radius: 8px;
  background: rgba(248, 204, 88, 0.18);
  margin: 5px 0 0;
  font-size: 13px;
}

.request-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
}

.request-side > strong {
  font-size: 13px;
}

.request-side .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 190px;
}

.request-side .actions button {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
}

.request-side .actions button.primary {
  grid-column: 1 / -1;
  background: #17130f;
  color: #f8fbff;
  border-color: #17130f;
}

.request-side .actions button.subtle-danger {
  grid-column: 1 / -1;
  background: transparent;
  color: #b03a2e;
  border-color: rgba(176, 58, 46, 0.35);
}

.request-side .actions button.pinned-on {
  background: rgba(224, 122, 58, 0.15);
  border-color: rgba(224, 122, 58, 0.4);
  color: #a85b1e;
}

.songs-manager {
  grid-column: auto;
}

.sheet-panel {
  grid-column: auto;
}

.sheet-meta,
.sheet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.sheet-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(30, 113, 110, 0.12);
  color: #1e716e;
  font-size: 13px;
  font-weight: 900;
}

.chord-sheet {
  margin: 0;
  padding: 18px;
  min-height: 220px;
  overflow: auto;
  border-radius: 8px;
  background: #17130f;
  color: #fff8e6;
  font: 700 16px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.sheet-actions {
  margin: 14px 0 0;
}

.sheet-actions a,
.sheet-actions button {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
  border-radius: 8px;
  padding: 9px 12px;
  text-decoration: none;
}

.song-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 90px 1.2fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.song-library-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.song-section-subhead {
  margin: 16px 0 8px;
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(23, 19, 15, 0.2);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
}

.search-bar button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: var(--c-accent, #3b82f6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.settings-qr-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 19, 15, 0.1);
}

.settings-qr-card canvas {
  width: min(220px, 100%);
  height: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 36px rgba(35, 58, 100, 0.12);
}

.readiness-list {
  display: grid;
  gap: 8px;
}

.readiness-list span {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(23, 19, 15, 0.72);
  font-size: 14px;
}

.song-manage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.song-manage-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.song-manage-list > div > strong,
.song-manage-list > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-manage-list > div > span {
  grid-column: 1;
  font-size: 13px;
}

.song-manage-list > div > button,
.song-actions {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.song-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.song-manage-list button,
.song-actions a {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: #0a65c8;
  font-weight: 800;
  padding: 7px 9px;
  text-decoration: none;
}

.song-manage-list button:disabled {
  color: #75695f;
  background: rgba(23, 19, 15, 0.05);
}

.catalog-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.catalog-region-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.catalog-region-tabs button {
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 8px 6px;
  background: transparent;
  color: #5f5349;
  font-weight: 900;
}

.catalog-region-tabs button.active {
  color: #ffffff;
  background: linear-gradient(120deg, rgba(10, 132, 255, 0.9), rgba(191, 90, 242, 0.86));
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.2);
}

.catalog-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* 搜不到音乐人时，提供「抓取并添加」的确认入口 */
.catalog-no-match {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 28px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(31, 23, 13, 0.08);
}
.catalog-no-match-title {
  margin: 0;
  font-size: 15px;
  color: #4a3f35;
}
.catalog-no-match .catalog-scrape-btn {
  min-width: 260px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(10, 132, 255, 0.92), rgba(191, 90, 242, 0.86));
  box-shadow: 0 12px 26px rgba(10, 132, 255, 0.24);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.catalog-no-match .catalog-scrape-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(10, 132, 255, 0.3);
}
.catalog-no-match .catalog-scrape-btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
.catalog-no-match-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(74, 63, 53, 0.7);
}

.catalog-picker-layout {
  grid-template-columns: minmax(160px, 0.36fr) minmax(0, 1fr);
  align-items: start;
}

.catalog-artist-index {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.catalog-artist-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.catalog-artist-link-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 12px;
  color: #17130f;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.36);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.catalog-artist-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.catalog-artist-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cover-a), var(--cover-b) 55%, var(--cover-c));
  box-shadow: 0 8px 20px rgba(20, 36, 80, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.catalog-artist-portrait.large {
  width: 88px;
  border-radius: 22px;
}

.catalog-artist-link-card .catalog-artist-portrait > span,
.catalog-album-head .catalog-album-cover > span {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.2);
}

.catalog-artist-portrait img,
.catalog-album-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-artist-link-card:hover,
.catalog-artist-link-card:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.12);
}

.catalog-artist-link-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.catalog-artist-link-card span,
.catalog-artist-link-card small {
  color: #75695f;
  font-size: 12px;
  line-height: 1.35;
}

.catalog-artist-entry > .catalog-danger {
  border: 1px solid rgba(180, 35, 24, 0.14);
  border-radius: 999px;
  justify-self: end;
  min-height: 28px;
  padding: 0 9px;
  color: #b42318;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 900;
}

.catalog-artist-menu {
  display: grid;
  gap: 7px;
  max-height: 68vh;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.catalog-artist-menu button {
  display: grid;
  gap: 3px;
  text-align: left;
  border: 1px solid rgba(23, 19, 15, 0.08);
  border-radius: 13px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.42);
  color: #17130f;
}

.catalog-artist-menu button.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.92), rgba(191, 90, 242, 0.86));
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.18);
}

.catalog-artist-menu strong {
  font-size: 15px;
}

.catalog-artist-menu span {
  color: inherit;
  opacity: 0.72;
  font-size: 11px;
  line-height: 1.35;
}

.catalog-discography {
  min-width: 0;
}

.catalog-detail-page {
  display: grid;
  gap: 12px;
}

.catalog-detail-head {
  display: grid;
  grid-template-columns: auto 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.catalog-detail-head h2 {
  margin: 0;
  font-size: clamp(26px, 6vw, 42px);
  line-height: 1.05;
}

.catalog-detail-head p {
  margin: 5px 0 4px;
  color: #5f5349;
  font-weight: 800;
}

.catalog-detail-head span {
  color: #75695f;
  font-size: 13px;
  font-weight: 900;
}

.catalog-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.catalog-secondary {
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(10, 132, 255, 0.45);
  border-radius: 999px;
  color: #0a84ff;
  background: rgba(10, 132, 255, 0.08);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.09s ease;
}

.catalog-secondary:hover {
  background: rgba(10, 132, 255, 0.16);
}

.catalog-secondary:active {
  transform: scale(0.97);
}

.catalog-secondary:disabled {
  opacity: 0.55;
  cursor: progress;
}

.catalog-detail-portrait {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.catalog-detail-portrait > button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(10, 101, 200, 0.16);
  border-radius: 999px;
  color: #0a65c8;
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 900;
}

.portrait-editor {
  width: min(410px, 100%);
}

.portrait-editor-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  margin: 4px auto 14px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--cover-a), var(--cover-b) 55%, var(--cover-c));
  box-shadow: 0 16px 32px rgba(20, 36, 80, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.portrait-editor-preview > span {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.portrait-editor-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-editor-tools,
.portrait-editor-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.portrait-editor-tools {
  margin-bottom: 12px;
}

.portrait-editor-tools > button,
.portrait-upload-control,
.portrait-editor-footer > button {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  color: #17130f;
  font-size: 13px;
  font-weight: 900;
}

.portrait-upload-control {
  cursor: pointer;
}

.portrait-upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.portrait-editor > label {
  display: grid;
  gap: 6px;
  color: #5f5349;
  font-size: 13px;
  font-weight: 900;
}

.portrait-editor > label input {
  min-height: 44px;
}

.portrait-editor .hint {
  margin: 8px 0 12px;
}

.portrait-editor-footer > .danger {
  color: #b42318;
}

.portrait-editor-footer > .primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #0a84ff, #8f64ef);
}

.catalog-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 12px;
  color: #0a65c8;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(10, 132, 255, 0.14);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.catalog-admin-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.catalog-admin-line .hint {
  flex: 1 1 260px;
  margin: 0;
}

.catalog-admin-line button,
.catalog-admin-line span {
  border: 1px solid rgba(23, 19, 15, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.48);
  color: #5f5349;
  font-size: 12px;
  font-weight: 900;
}

.catalog-admin-line button:not(:disabled) {
  color: #0a65c8;
}

.catalog-admin-line button:disabled {
  opacity: 0.48;
}

.catalog-artist-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.catalog-artist-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.catalog-artist-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-artist-head strong,
.catalog-song-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-artist-head span,
.catalog-artist-head small,
.catalog-song-row span {
  color: #75695f;
  font-size: 13px;
}

.catalog-song-list {
  display: grid;
  gap: 6px;
}

.catalog-album-list {
  display: grid;
  gap: 12px;
}

.catalog-album-group {
  display: grid;
  gap: 8px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.catalog-album-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 2px 2px 0;
}

.catalog-album-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cover-a), var(--cover-b) 55%, var(--cover-c));
  box-shadow: 0 7px 18px rgba(20, 36, 80, 0.13);
}

.catalog-album-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.catalog-album-head strong {
  font-size: 16px;
}

.catalog-album-head span {
  color: #75695f;
  font-size: 13px;
  font-weight: 800;
}

.catalog-song-row {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  position: relative;
  padding: 7px 38px 7px 12px; /* 右侧留空间放右上角的对号 */
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(23, 19, 15, 0.08);
  background: #fff;   /* 媒体 33：去掉半透白在米色父容器下"发米"的问题，统一纯白 */
  box-shadow: none;   /* 去掉左竖条棕色（媒体 33：用户反馈棕色选项卡全部去色） */
  cursor: pointer;          /* 提示整张卡片可点击 */
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

/* 对号移到右上角，不再挡住标题与原文 */
.catalog-song-row .bulk-checkbox {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  padding: 0 2px;
}

.catalog-song-row .catalog-song-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* 选中态：媒体 33 改为蓝色边框 + 纯白底，去掉橙色和左竖条 */
.catalog-song-row.is-selected {
  border-color: rgba(10, 132, 255, 0.7);
  background: #fff;
  box-shadow: none;
}
.catalog-song-row:hover {
  border-color: rgba(10, 132, 255, 0.32);
  background: #fff;
}

.catalog-song-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.catalog-song-main strong {
  font-size: 15px;
  color: rgba(23, 19, 15, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-song-album {
  color: rgba(23, 19, 15, 0.45);
  font-size: 12px;
  white-space: nowrap;
}

.song-heat {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  line-height: 1;
  color: #e8590c;
  background: rgba(232, 89, 12, 0.12);
  border-radius: 999px;
  padding: 2px 6px;
  flex: none;
}

/* 已加入总歌单徽章：行右侧 chip，颜色用品牌暖橙，区别于🔥热度 */
.catalog-in-master-tag {
  flex: none;
  margin-left: auto;
  align-self: center;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: #b85b18;
  background: rgba(255, 198, 140, 0.78);
  border: 1px solid rgba(184, 91, 24, 0.32);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.catalog-song-row.is-selected .catalog-in-master-tag {
  background: rgba(255, 220, 180, 0.92);
  color: #8a3f0a;
}

.song-heat-num {
  font-weight: 900;
  font-size: 11px;
}

.catalog-song-flat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-sort-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.catalog-detail-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 0 0 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 19, 15, 0.08);
  backdrop-filter: blur(8px);
}

.catalog-detail-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: rgba(23, 19, 15, 0.88);
  padding: 4px 0;
}

.catalog-detail-search input::placeholder {
  color: rgba(23, 19, 15, 0.42);
}

.catalog-detail-search-count {
  font-size: 12px;
  color: rgba(23, 19, 15, 0.55);
  white-space: nowrap;
}

.catalog-detail-empty {
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(23, 19, 15, 0.55);
}

.is-hidden {
  display: none !important;
}

.catalog-sort-label {
  font-size: 12px;
  color: rgba(23, 19, 15, 0.5);
}

.catalog-sort-tab {
  border: 1px solid rgba(23, 19, 15, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(23, 19, 15, 0.72);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-sort-tab.active {
  background: linear-gradient(90deg, #f0a878, #ef8e54);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(239, 142, 84, 0.32);
}

/* 偶数/奇数行不再使用不同底色，避免看上去像有的有颜色有的没颜色（媒体 33：彻底删除 tone 残留色） */
.catalog-song-row.tone-0,
.catalog-song-row.tone-1 {
  /* 不再设置 --row-accent：原 `rgba(180, 132, 79, 0.5)` 棕色左竖条已随 media33 删掉 */
}

.catalog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: nowrap;
}

.catalog-actions button {
  border: 1px solid rgba(23, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #0a65c8;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.catalog-actions button:disabled {
  color: #75695f;
  background: rgba(23, 19, 15, 0.05);
}

.catalog-actions button.catalog-added {
  color: #167447;
  background: rgba(221, 248, 233, 0.66);
  border-color: rgba(22, 116, 71, 0.14);
}

.catalog-actions button.catalog-add-today-btn {
  background: linear-gradient(95deg, rgba(240, 168, 120, 0.96), rgba(239, 142, 84, 0.96));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(239, 142, 84, 0.22);
}
.catalog-actions button.catalog-add-today-btn:disabled {
  background: rgba(23, 19, 15, 0.05);
  color: #75695f;
  box-shadow: none;
}

.catalog-actions .catalog-danger,
.catalog-artist-tools .catalog-danger {
  color: #b42318;
  background: rgba(255, 255, 255, 0.42);
}

.catalog-artist-tools .catalog-danger {
  border: 1px solid rgba(180, 35, 24, 0.14);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.empty {
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(23, 19, 15, 0.2);
  border-radius: 8px;
}

.empty.small {
  padding: 14px;
}

.login-wrap {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(420px, 100%);
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 56px));
  background: rgba(255, 255, 255, 0.52);
  color: #17130f;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(20, 36, 80, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  z-index: 120;
  font-weight: 950;
  text-align: center;
  backdrop-filter: blur(28px) saturate(1.65);
}

.toast.success {
  color: #0d6f38;
}

.toast.error {
  color: #b1442f;
}

.sheet-screen {
  min-height: 100vh;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(226, 238, 255, 0.66)),
    #f7f7fb;
}

.sheet-screen-head {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 44px rgba(35, 58, 100, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(24px) saturate(1.5);
}

.sheet-screen-head span {
  color: #0a65c8;
  font-weight: 900;
  font-size: 12px;
}

.sheet-screen-head h1 {
  margin: 0 0 2px;
  font-size: 30px;
  line-height: 1.05;
}

.sheet-screen-head p {
  margin: 0;
  color: #75695f;
  font-size: 14px;
  font-weight: 800;
}

.sheet-screen-head nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sheet-screen-head button,
.sheet-screen-head a {
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 23, 0.88);
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
}

.sheet-live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.lyrics-page,
.chord-page {
  min-height: calc(100vh - 150px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 46px rgba(35, 58, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(1.45);
}

.chord-page {
  background: rgba(18, 18, 23, 0.9);
  color: #fff8e6;
}

.sheet-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-section-title span {
  font-size: 22px;
  font-weight: 900;
}

.sheet-section-title small {
  color: #75695f;
  font-weight: 800;
}

.chord-page .sheet-section-title small {
  color: #64d2ff;
}

.lyrics-page pre,
.chord-page pre {
  margin: 0;
  white-space: pre-wrap;
  font: 800 24px/1.75 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.chord-page pre {
  font: 800 20px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.sheet-editor {
  margin-top: 16px;
}

.paste-import-box,
.sheet-source-panel {
  display: grid;
  gap: 12px;
}

.paste-import-box {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.paste-import-box strong {
  display: block;
  font-size: 18px;
}

.paste-import-box small {
  color: #75695f;
  font-weight: 800;
}

.image-ocr-box {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.image-upload-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 23, 0.88);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.image-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-ocr-box small {
  line-height: 1.35;
}

.image-preview-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.image-preview-card {
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.image-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.image-preview-card figcaption {
  overflow: hidden;
  margin-top: 6px;
  color: #75695f;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-tool-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet-tool-row span {
  color: #75695f;
  font-weight: 900;
}

.sheet-tool-row button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(18, 18, 23, 0.88);
  color: #fff;
  font-weight: 900;
}

.transpose-row {
  justify-content: flex-end;
}

.source-candidate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.source-candidate-grid a {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  color: #142033;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(35, 58, 100, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.source-candidate-grid strong,
.source-candidate-grid small {
  display: block;
}

.source-candidate-grid strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.source-candidate-grid small {
  color: #75695f;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .hero,
  .audience-page,
  .dashboard,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    top: 8px;
  }

  .control-panel,
  .qr-panel {
    position: static;
  }

  .song-grid,
  .shop-grid,
  .song-manage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .song-form,
  .product-form,
  .commerce-layout {
    grid-template-columns: 1fr 1fr;
  }

  .sheet-live-layout {
    grid-template-columns: 1fr;
  }

  .source-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar,
  .panel-title,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
  }

  .connection-status {
    flex: 0 0 auto;
  }

  .performer-bottom-nav {
    gap: 2px;
    width: calc(100% - 12px);
    padding: 5px;
  }

  .performer-bottom-nav a {
    min-height: 44px;
    padding-inline: 1px;
    font-size: 11px;
  }

  .feedback-item {
    grid-template-columns: 1fr;
  }

  .feedback-actions {
    justify-content: flex-end;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding: 22px 0;
  }

  .hero p {
    font-size: 16px;
  }

  .current-strip.live {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .current-strip.live .support-button.mini {
    grid-column: 1 / -1;
    width: 100%;
  }

  .album-cover {
    width: 72px;
    border-radius: 18px;
  }

  .priority-tools.amount-choice {
    gap: 4px;
    padding: 4px;
    border-radius: 18px;
  }

  .priority-tools.amount-choice::before {
    top: 4px;
    bottom: 4px;
    left: calc(4px + var(--choice-left));
    width: calc((100% - 8px) / var(--choice-count) - 3px);
    border-radius: 14px;
  }

  .priority-tools.amount-choice button,
  .boost-panel .priority-tools.amount-choice button:first-child,
  .boost-panel .priority-tools.amount-choice button:nth-child(2) {
    min-height: 52px;
    padding: 7px 4px;
    font-size: 14px;
  }

  .two-col,
  .song-grid,
  .shop-grid,
  .shop-toolbar,
  .song-form,
  .product-form,
  .commerce-layout,
  .commerce-stats,
  .song-manage-list,
  .layout-row,
  .request-card {
    grid-template-columns: 1fr;
  }

  .shop-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-cart-panel {
    bottom: 78px;
  }

  .shop-cart-line {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .cart-remove {
    grid-column: 2 / -1;
    justify-self: end;
  }

  .shop-card,
  .commerce-row,
  .commerce-row.order {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .shop-detail-hero,
  .shop-detail-info {
    grid-template-columns: 1fr;
  }

  .shop-card-actions,
  .commerce-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .shop-card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .commerce-actions button,
  .commerce-actions span {
    flex: 1;
    text-align: center;
  }

  .catalog-region-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-artist-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-artist-entry {
    padding: 7px;
  }

  .catalog-artist-link-card {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 7px;
  }

  .catalog-artist-portrait {
    width: 46px;
    border-radius: 13px;
  }

  .catalog-artist-link-card strong {
    font-size: 15px;
  }

  .catalog-picker-layout {
    grid-template-columns: 1fr;
  }

  .catalog-artist-menu {
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
  }

  .catalog-artist-head {
    grid-template-columns: 1fr;
  }

  .catalog-artist-tools {
    justify-content: flex-start;
  }

  .catalog-detail-head {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
  }

  .catalog-detail-head .catalog-back-link,
  .catalog-detail-head .catalog-danger {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .catalog-detail-head .catalog-artist-portrait.large {
    width: 74px;
  }

  .catalog-detail-portrait {
    width: 74px;
  }

  .catalog-detail-head .catalog-danger {
    justify-self: start;
  }

  .catalog-detail-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .catalog-detail-actions .catalog-secondary,
  .catalog-detail-actions .catalog-danger {
    flex: 0 0 auto;
  }

  .catalog-admin-line .hint {
    flex-basis: 100%;
  }

  .catalog-actions {
    justify-content: flex-end;
  }

  .catalog-actions button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 7px;
    font-size: 12px;
  }

  .request-index {
    width: 28px;
    height: 28px;
  }

  .section-head input {
    max-width: none;
  }

  .queue-manager .request-card {
    grid-template-columns: 28px 42px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .queue-manager .request-copy {
    min-width: 0;
  }

  .queue-manager .request-cover {
    width: 42px;
  }

  .request-side {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
    gap: 8px;
  }

  .request-side .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
  }

  .sheet-screen {
    padding: 10px;
  }

  .sheet-screen-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sheet-screen-head h1 {
    font-size: 28px;
  }

  .lyrics-page,
  .chord-page {
    min-height: auto;
  }

  .lyrics-page pre,
  .chord-page pre {
    font-size: 18px;
  }

  .source-candidate-grid {
    grid-template-columns: 1fr;
  }

  .transpose-row {
    justify-content: flex-start;
  }

  .image-ocr-box {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .control-panel,
  .queue-manager,
  .songs-manager,
  .panel-title button,
  .hint {
    display: none !important;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .dashboard {
    display: block;
  }

  .qr-panel {
    box-shadow: none;
    border: 0;
    text-align: center;
  }

  .qr-panel::before {
    content: "扫码点歌";
    display: block;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
  }
}

/* ====== Album art in song cards ====== */
.song-card {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.song-card-cover {
  position: relative;
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 54px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(20, 36, 80, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.song-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.song-card-cover span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.song-card-body {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}

.song-card button {
  grid-column: 3;
}

/* ====== Album art in hero section ====== */
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ====== Album art in admin song management ====== */
.song-manage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.song-manage-row:last-child {
  border-bottom: none;
}

.song-manage-row.is-selected {
  background: #fff;                                          /* 媒体 33：去掉棕色 linear-gradient */
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px;
  border-bottom-color: rgba(10, 132, 255, 0.4);             /* 媒体 33：选中用蓝色下划线视觉，去橙 */
  box-shadow: inset 3px 0 0 rgba(10, 132, 255, 0.7);        /* 媒体 33：左竖条改蓝色，去橙 */
}

.song-manage-row.is-blacklisted { opacity: 0.55; }

/* 批量操作工具栏（今日歌单 / 总歌单 / 音乐人作品列表） */
.bulk-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px 0 4px;
  background: rgba(180, 132, 79, 0.08);
  border: 1px dashed rgba(180, 132, 79, 0.32);
  border-radius: 12px;
  font-size: 13px;
  color: #5b4a36;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.bulk-toolbar .bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

.bulk-toolbar .bulk-count {
  color: rgba(91, 74, 54, 0.7);
}

.bulk-toolbar .bulk-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-toolbar .bulk-actions button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.bulk-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 6px;
}

.bulk-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: rgba(10, 132, 255, 0.9);   /* 媒体 33：勾选框主题色改蓝，去棕 */
}

.catalog-song-row { padding-left: 4px; }
.catalog-song-row.is-selected {
  background: #fff;                            /* 媒体 33：去掉原 0.92 半透白，统一纯白 */
  border-color: rgba(10, 132, 255, 0.7);       /* 媒体 33：蓝边，去橙 */
  box-shadow: none;                            /* 媒体 33：去掉左竖条橙色阴影 */
  border-radius: 8px;
}

.song-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0ebe4;
  color: #6b5e51;
  font-size: 12px;
  font-weight: 700;
}

.tag-edit-input {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d4c5b0;
  background: rgba(255, 255, 255, 0.6);
  color: #6b5e51;
  outline: none;
}

.tag-edit-input:focus {
  border-color: #b09776;
  background: #fff;
}

.tag-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
  padding: 0 4px;
}

.tag-filter-btn {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d4c5b0;
  background: rgba(255, 255, 255, 0.6);
  color: #6b5e51;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.tag-filter-btn.active {
  background: #6b5e51;
  color: #fff;
  border-color: #6b5e51;
}

.manage-song-cover {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(20, 36, 80, 0.1);
}

.manage-song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.manage-song-cover span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.manage-song-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.manage-song-meta strong {
  font-size: 15px;
}

.manage-song-meta > span {
  color: #5f5349;
  font-size: 13px;
}

.song-cover-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.song-cover-input input.album-art-url {
  flex: 1;
  min-width: 120px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.4);
  outline: none;
  transition: border-color 0.15s;
}

.song-cover-input input.album-art-url:focus {
  border-color: #0a84ff;
}

.fetch-cover-btn,
.save-cover-btn {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.fetch-cover-btn {
  background: #0a65c8;
  color: #ffffff;
}

.fetch-cover-btn:hover {
  background: #0854a8;
}

.save-cover-btn {
  background: #34c759;
  color: #ffffff;
}

.save-cover-btn:hover {
  background: #28a745;
}

.song-manage-row.has-cover .manage-song-cover {
  box-shadow: 0 4px 12px rgba(20, 36, 80, 0.16);
}

/* ====== 紧凑行样式（去掉单行操作按钮后的更紧布局） ====== */
.song-manage-row--compact {
  padding: 6px 0;
  gap: 10px;
}
.song-manage-row--compact .manage-song-cover {
  flex: 0 0 36px;
  width: 36px;
  box-shadow: 0 2px 6px rgba(20, 36, 80, 0.08);
  border-radius: 8px;
}
.song-manage-row--compact .manage-song-cover img,
.song-manage-row--compact .manage-song-cover span {
  border-radius: 8px;
}
.song-manage-row--compact .manage-song-meta strong {
  font-size: 14px;
}
.song-manage-row--compact .manage-song-meta > span {
  font-size: 12px;
}
/* 紧凑行选中时收紧左右内边距（原本是 8px） */
.song-manage-row--compact.is-selected {
  padding-left: 6px;
  padding-right: 6px;
}

/* ====== 今日/总歌 管理列表：桌面 4 列紧凑网格（去掉专辑封面） ====== */
.song-manage-list.song-manage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 12px;
  margin-top: 4px;
}
@media (min-width: 560px) {
  .song-manage-list.song-manage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .song-manage-list.song-manage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .song-manage-list.song-manage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.song-manage-grid .song-manage-row {
  position: relative;     /* 容纳右上角的对号 */
  display: flex;
  align-items: center;
  gap: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 8px 36px 8px 10px; /* 右侧 36px 留给右上角的勾选框 */
  background: #fff;   /* 媒体 33：去掉半透白在米色父容器下"发米"的问题，统一纯白 */
  cursor: pointer;        /* 整张卡可点 */
  transition: background 0.12s, border-color 0.12s;
}
.song-manage-grid .song-manage-row:hover {
  border-color: rgba(10, 132, 255, 0.32);   /* 媒体 33：hover 边框改为蓝色调，去棕 */
  background: #fff;
}
.song-manage-grid .song-manage-row.is-selected {
  background: #fff;                           /* 媒体 33：去掉棕色 linear-gradient，改纯白 */
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 36px;
  border-color: rgba(10, 132, 255, 0.7);      /* 媒体 33：选中蓝边，去橙 */
}

/* 把右上角的勾选框悬浮到卡片角落（.bulk-checkbox 内含 input） */
.song-manage-grid .song-manage-row .bulk-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  padding: 0 2px;
}
.song-manage-grid .song-manage-row .manage-song-meta strong { font-size: 14px; }
.song-manage-grid .song-manage-row .manage-song-meta > span { font-size: 12px; }
.song-manage-grid .song-cover-input input.album-art-url { min-width: 0; }
.song-manage-grid .song-cover-input .fetch-cover-btn,
.song-manage-grid .song-cover-input .save-cover-btn { padding: 4px 8px; }

/* ====== 全选 / 全不选 / 反选 按钮组 ====== */
.bulk-select-group {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.select-mode-btn {
  padding: 4px 10px;
  border: 1px solid rgba(180, 132, 79, 0.4);
  background: rgba(255, 255, 255, 0.7);
  color: #6b5e51;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.select-mode-btn:hover { background: rgba(180, 132, 79, 0.16); border-color: #b4844f; }
.select-mode-btn:active { transform: translateY(1px); }

/* ====== Shop ====== */
.audience-shop {
  display: grid;
  gap: 14px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
}

.shop-toolbar input,
.shop-toolbar select {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  color: #17130f;
  font-weight: 850;
}

.shop-category-tabs,
.shop-order-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.shop-category-tabs button,
.shop-order-filters button {
  flex: 0 0 auto;
  border: 1px solid rgba(23, 19, 15, 0.1);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.46);
  color: #5f5349;
  font-weight: 900;
}

.shop-category-tabs button.active,
.shop-order-filters button.active {
  border: 0;
  color: #ffffff;
  background: linear-gradient(120deg, #0a84ff, #bf5af2);
  box-shadow: 0 12px 30px rgba(10, 132, 255, 0.18);
}

.shop-card,
.commerce-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.2));
  box-shadow: 0 14px 34px rgba(35, 58, 100, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.35);
}

.shop-card-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(20, 36, 80, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.shop-card-cover.small {
  width: 52px;
  border-radius: 14px;
}

.shop-card-cover.tiny {
  width: 38px;
  border-radius: 12px;
}

.shop-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-cover span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.shop-card-cover em,
.shop-detail-image em {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(23, 19, 15, 0.58);
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-card-copy,
.commerce-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.shop-card-copy strong,
.commerce-copy strong {
  font-size: 17px;
}

.shop-card-copy p,
.commerce-copy p {
  margin: 0;
  color: rgba(23, 19, 15, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.shop-card-copy small,
.commerce-copy span,
.commerce-copy small {
  color: #75695f;
  font-size: 13px;
  font-weight: 800;
}

.shop-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.shop-tags span {
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(152, 174, 165, 0.18);
  color: #50655b;
  font-size: 11px;
  font-weight: 900;
}

.shop-tags.detail span,
.shop-tags.admin span {
  background: rgba(120, 144, 156, 0.16);
}

.shop-card-actions a,
.shop-card button,
.commerce-actions button,
.commerce-actions span {
  border: 1px solid rgba(23, 19, 15, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #0a65c8;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}

.shop-card button:not(:disabled) {
  border: 0;
  color: #ffffff;
  background: linear-gradient(120deg, #0a84ff, #bf5af2, #ff2d55);
  box-shadow: 0 12px 28px rgba(191, 90, 242, 0.2);
}

.shop-card-actions {
  display: grid;
  gap: 7px;
  min-width: 78px;
}

.shop-card-actions a {
  color: #5f5349;
}

.shop-cart-panel {
  position: sticky;
  bottom: 92px;
  z-index: 8;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(245, 250, 255, 0.64);
  box-shadow: 0 18px 46px rgba(20, 36, 80, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px) saturate(1.35);
}

.shop-cart-panel.empty-cart {
  position: static;
  color: #75695f;
}

.shop-cart-panel.empty-cart strong,
.shop-cart-panel.empty-cart span {
  display: block;
}

.shop-cart-head,
.shop-cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.shop-cart-head span,
.shop-cart-line span {
  color: #75695f;
  font-size: 12px;
  font-weight: 850;
}

.shop-cart-head button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(120deg, #0a84ff, #bf5af2, #ff2d55);
  font-weight: 950;
}

.shop-cart-lines {
  display: grid;
  gap: 8px;
}

.shop-cart-line {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.55);
}

.cart-stepper button,
.cart-remove {
  border: 0;
  border-radius: 999px;
  min-width: 30px;
  height: 30px;
  background: rgba(23, 19, 15, 0.08);
  color: #17130f;
  font-weight: 950;
}

.cart-remove {
  padding: 0 10px;
  color: #c5291c;
}

.shop-back-link,
.commerce-link {
  justify-self: start;
  color: #0a65c8;
  font-weight: 900;
  text-decoration: none;
}

.audience-shop-detail {
  display: grid;
  gap: 16px;
}

.shop-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.shop-detail-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(20, 36, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.shop-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.shop-detail-image span {
  color: #ffffff;
  font-size: 42px;
  font-weight: 950;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.26);
}

.shop-detail-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.shop-detail-copy > span {
  color: #0a65c8;
  font-size: 13px;
  font-weight: 900;
}

.shop-detail-copy h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
}

.shop-detail-copy > strong {
  font-size: 28px;
}

.shop-detail-copy p {
  margin: 0;
  color: rgba(23, 19, 15, 0.74);
  line-height: 1.6;
}

.shop-detail-meta,
.shop-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #5f5349;
  font-weight: 800;
  font-size: 13px;
}

.shop-detail-actions .primary,
.shop-detail-actions .secondary {
  width: auto;
  min-width: 136px;
  margin: 0;
  text-align: center;
  text-decoration: none;
}

.shop-detail-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shop-detail-info div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.shop-detail-info span,
.shop-detail-info strong {
  display: block;
}

.shop-detail-info span {
  color: #75695f;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.shop-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.shop-gallery-image {
  padding: 0;
  border: 1px solid rgba(23, 19, 15, 0.08);
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.shop-gallery-image.active {
  border-color: rgba(10, 132, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14);
}

.shop-gallery-image:hover {
  transform: translateY(-2px);
}

.shop-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-spec-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.shop-spec-panel h3 {
  margin: 0;
}

.shop-spec-panel pre {
  margin: 0;
  white-space: pre-wrap;
  color: #5f5349;
  font-family: inherit;
  font-weight: 850;
  line-height: 1.55;
}

.shop-order-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.shop-order-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.32);
}

.shop-order-lines .shop-order-summary {
  margin-bottom: 0;
}

.shop-order-summary strong,
.shop-order-summary span {
  display: block;
}

.shop-order-summary strong {
  font-size: 20px;
}

.shop-order-summary span {
  color: #75695f;
  font-size: 13px;
  font-weight: 800;
}

.product-form {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.55fr 0.85fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}

.product-form input[name="tags"] {
  grid-column: span 2;
}

.product-form textarea,
.product-form .product-media-editor,
.product-form .inline-check,
.product-form .primary {
  grid-column: 1 / -1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-media-editor {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(238, 245, 249, 0.44);
}

.product-media-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.product-media-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.product-media-heading span {
  font-weight: 950;
}

.product-media-heading small,
.product-media-status {
  color: #75695f;
  font-size: 12px;
  font-weight: 750;
}

.product-media-preview {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.product-media-preview.empty {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(23, 19, 15, 0.22);
}

.product-media-preview > img {
  width: 100%;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
}

.product-media-preview > span {
  color: rgba(23, 19, 15, 0.38);
  font-weight: 950;
}

.product-media-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.media-upload-button,
.product-media-actions button,
.product-gallery-item button {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 19, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #0a65c8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.product-gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.product-gallery-item,
.product-gallery-add {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 19, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.product-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-gallery-item figcaption {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}

.product-gallery-item button {
  min-height: 30px;
  padding: 4px;
}

.product-gallery-item button:last-child {
  color: #c5291c;
}

.product-gallery-add {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 138px;
  border-style: dashed;
  color: #0a65c8;
  cursor: pointer;
}

.product-gallery-add strong,
.product-gallery-add span {
  display: block;
}

.product-gallery-add span {
  margin-top: 3px;
  color: #75695f;
  font-size: 11px;
}

.product-media-status {
  grid-column: 1 / -1;
  margin: 0;
}

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

.commerce-stats div {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.commerce-stats span,
.commerce-stats strong {
  display: block;
}

.commerce-stats span {
  color: #75695f;
  font-size: 12px;
  font-weight: 850;
}

.commerce-stats strong {
  margin-top: 4px;
  font-size: 20px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f5349;
  font-weight: 800;
}

.inline-check input {
  width: auto;
}

.commerce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.commerce-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.commerce-list {
  display: grid;
  gap: 10px;
}

.commerce-row {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  border-radius: 18px;
}

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

.commerce-row.muted {
  opacity: 0.62;
}

.commerce-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.commerce-actions .catalog-danger,
.shop-card button.catalog-danger {
  color: #c5291c;
}

.order-item-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.order-item-list small {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.45);
}

/* Responsive: tighter on small screens */
@media (max-width: 560px) {
  .product-form,
  .commerce-layout,
  .commerce-stats,
  .shop-detail-hero,
  .shop-detail-info {
    grid-template-columns: 1fr;
  }

  .product-form input[name="tags"] {
    grid-column: 1 / -1;
  }

  .product-media-editor {
    grid-template-columns: 1fr;
  }

  .product-gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-row,
  .commerce-row.order {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .commerce-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .commerce-actions button,
  .commerce-actions span {
    flex: 1;
    text-align: center;
  }

  .song-cover-input {
    flex-direction: column;
    align-items: stretch;
  }

  .song-cover-input input.album-art-url {
    min-width: 0;
  }
}

/* ===== UI Optimization: Desktop / iPad / Mobile ===== */

/* iPad (621px - 980px) */
@media (min-width: 621px) and (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .performer-bottom-nav {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .performer-bottom-nav a {
    white-space: nowrap;
    min-width: 60px;
  }
}

/* Mobile (< 620px) — general improvements */
@media (max-width: 620px) {
  /* Bottom nav: 5 tabs need smaller text */
  .audience-bottom-nav {
    width: calc(100% - 16px);
    gap: 3px;
    padding: 5px;
  }
  .audience-bottom-nav a {
    font-size: 11px;
    min-height: 44px;
    padding: 4px 2px;
  }
  .performer-bottom-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .performer-bottom-nav::-webkit-scrollbar {
    display: none;
  }
  .performer-bottom-nav a {
    white-space: nowrap;
    min-width: 52px;
  }

  /* Stats grid: 2 columns on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stat-card {
    padding: 12px 8px;
  }
  .stat-card strong {
    font-size: 20px;
  }

  /* About page */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* Tag filter: horizontal scroll */
  .tag-filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .tag-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .tag-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Search bar */
  .search-bar {
    flex-direction: column;
  }
  .search-bar input {
    width: 100%;
  }
  .search-bar button {
    width: 100%;
  }

  /* Venue add form */
  .venue-add {
    flex-direction: column;
  }

  /* Share button */
  .share-btn {
    width: 100%;
  }

  /* Song manage rows: tighter */
  .song-manage-row {
    gap: 8px;
    padding: 8px 0;
  }
  .song-tags-row {
    margin-top: 2px;
  }
  .tag-edit-input {
    width: 100px !important;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .request-side .actions button {
    min-height: 40px;
  }
  .bottom-nav a {
    min-height: 48px;
  }
  .tag-filter-btn {
    min-height: 36px;
    padding: 6px 14px;
  }
  button, a, input, select, textarea {
    touch-action: manipulation;
  }
}

/* ============ 大屏模式（#screen）：电视/投影只读全屏展示 ============ */
body[data-page-route="screen"] {
  background: #0b0b12;
  color: #f5f2ff;
  padding-bottom: 0;
}
body[data-page-route="screen"]::before,
body[data-page-route="screen"]::after { display: none; }

.screen-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 3vh 4vw 8vh;
  box-sizing: border-box;
}
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0.85;
  font-weight: 800;
}
.screen-venue { font-size: clamp(18px, 2.2vw, 30px); }
.screen-performer { font-size: clamp(14px, 1.6vw, 22px); opacity: 0.7; }

.screen-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 4vw;
  align-items: center;
  padding: 2vh 0;
}
@media (max-width: 900px) {
  .screen-body { grid-template-columns: 1fr; align-items: start; }
}

.screen-now-label {
  color: #ffd60a;
  font-weight: 900;
  letter-spacing: 0.3em;
  font-size: clamp(12px, 1.4vw, 18px);
}
.screen-now-label.idle { color: #8e8e9e; }
.screen-title {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 900;
  margin: 1vh 0 0.5vh;
  line-height: 1.15;
}
.screen-artist {
  font-size: clamp(20px, 3vw, 40px);
  opacity: 0.75;
  font-weight: 700;
}
.screen-requester { opacity: 0.7; font-size: 0.6em; }

.screen-lyrics {
  margin-top: 2.5vh;
  max-height: 38vh;
  overflow: hidden;
  font-size: clamp(16px, 2vw, 28px);
  line-height: 2;
  opacity: 0.92;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
}
.screen-lyrics p { margin: 0; }
.screen-lyric-hint { opacity: 0.5; }

.screen-side { display: grid; gap: 2vh; }
.screen-side-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2vh 1.5vw;
  backdrop-filter: blur(16px);
}
.screen-side-block h2 {
  font-size: clamp(14px, 1.6vw, 22px);
  margin: 0 0 1vh;
  opacity: 0.8;
}
.screen-queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8vh 0;
  font-size: clamp(14px, 1.5vw, 20px);
}
.screen-queue-index {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0b0b12;
  font-weight: 900; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.screen-queue-title { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-queue-from { opacity: 0.55; font-size: 0.85em; flex-shrink: 0; }
.screen-tip-item {
  display: flex; justify-content: space-between;
  padding: 0.6vh 0;
  font-size: clamp(13px, 1.4vw, 19px);
}
.screen-hint { opacity: 0.5; margin: 0; }

.screen-danmaku {
  position: fixed;
  left: 0; right: 0; bottom: 2vh;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.screen-danmaku-track {
  display: inline-block;
  padding-left: 100vw;
  animation: screenDanmakuMove 30s linear infinite;
}
.screen-danmaku-item {
  margin-right: 4vw;
  font-size: clamp(14px, 1.8vw, 24px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 18px;
}
.screen-danmaku-item strong { color: #ffd60a; }
@keyframes screenDanmakuMove {
  to { transform: translateX(-100%); }
}

/* ============ 大屏氛围背景：封面主题色流动光斑 + 水面波光 ============ */
/* 三个光斑颜色由 JS 从专辑封面提取后写入 body 的 --screen-a/b/c（已压暗） */
body[data-page-route="screen"] {
  --screen-a: rgb(22, 50, 79);
  --screen-b: rgb(74, 44, 120);
  --screen-c: rgb(18, 58, 74);
}

.screen-ambient {
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
}
.screen-stage { position: relative; z-index: 1; }

/* 抖动噪点层：CSS 渐变只按 8bit 渲染，大面积暗色渐变会量化出「断层」色带。
   叠一层极细、极淡、缓慢漂移的噪点把色带打散（dithering）——
   静态纹理容易被眼睛抓住，动起来就几乎不可见。 */
.screen-ambient::after {
  content: "";
  position: absolute;
  inset: -140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.038;
  mix-blend-mode: overlay;
  animation: screenGrainDrift 90s linear infinite;
}

@keyframes screenGrainDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(90px, 60px, 0); }
}

.screen-ambient i {
  position: absolute;
  filter: blur(90px) brightness(0.62) saturate(1.5);
  opacity: 0.8;
  will-change: transform, border-radius;
}
.screen-ambient i:nth-child(1) {
  width: 58vmax; height: 58vmax; left: -8%; top: -12%;
  background: var(--screen-a);
  animation: screenJellyA 26s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}
.screen-ambient i:nth-child(2) {
  width: 50vmax; height: 50vmax; right: -12%; top: 22%;
  background: var(--screen-b);
  animation: screenJellyB 31s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}
.screen-ambient i:nth-child(3) {
  width: 54vmax; height: 54vmax; left: 18%; bottom: -22%;
  background: var(--screen-c);
  animation: screenJellyC 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

/* 果冻感：位移 + 缩放 + 圆角形变同时缓慢进行，像软体在呼吸游动 */
@keyframes screenJellyA {
  0% {
    transform: translate3d(-4%, -3%, 0) scale(1, 1);
    border-radius: 42% 58% 55% 45% / 55% 48% 52% 45%;
  }
  50% {
    transform: translate3d(2%, 2%, 0) scale(1.08, 0.94);
    border-radius: 58% 42% 45% 55% / 45% 58% 42% 55%;
  }
  100% {
    transform: translate3d(6%, 5%, 0) scale(0.95, 1.1);
    border-radius: 48% 52% 60% 40% / 52% 44% 56% 48%;
  }
}
@keyframes screenJellyB {
  0% {
    transform: translate3d(5%, -4%, 0) scale(1.05, 0.96);
    border-radius: 55% 45% 48% 52% / 42% 55% 45% 58%;
  }
  50% {
    transform: translate3d(-2%, 1%, 0) scale(0.94, 1.08);
    border-radius: 45% 55% 58% 42% / 55% 42% 58% 45%;
  }
  100% {
    transform: translate3d(-6%, 4%, 0) scale(1.02, 1.02);
    border-radius: 50% 50% 42% 58% / 48% 52% 44% 56%;
  }
}
@keyframes screenJellyC {
  0% {
    transform: translate3d(-3%, 4%, 0) scale(1, 1.05);
    border-radius: 46% 54% 52% 48% / 58% 46% 54% 42%;
  }
  50% {
    transform: translate3d(1%, -1%, 0) scale(1.09, 0.93);
    border-radius: 54% 46% 44% 56% / 44% 56% 48% 52%;
  }
  100% {
    transform: translate3d(4%, -5%, 0) scale(0.96, 1.08);
    border-radius: 42% 58% 56% 44% / 52% 48% 42% 58%;
  }
}

/* 模拟付款：档位、付款结果和后台配置 */
.payment-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 14px;
}

.payment-tier-card {
  position: relative;
  min-height: 66px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(105, 116, 135, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  color: #17130f;
  text-align: left;
  backdrop-filter: blur(18px) saturate(1.25);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.payment-tier-card strong { font-size: 15px; }
.payment-tier-card span { color: #75695f; font-size: 13px; }
.payment-tier-card.active {
  border-color: rgba(10, 132, 255, 0.64);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}
.payment-tier-card.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 12%, rgba(10, 132, 255, 0.14) 46%, rgba(191, 90, 242, 0.12) 58%, transparent 88%);
  transform: translateX(-110%);
  animation: paymentTierSweep 560ms ease-out forwards;
  pointer-events: none;
}
@keyframes paymentTierSweep { to { transform: translateX(110%); } }

.payment-simulator-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: rgba(16, 22, 34, 0.32);
  backdrop-filter: blur(18px) saturate(1.25);
}

.payment-simulator {
  position: relative;
  width: min(92vw, 460px);
  max-height: min(86vh, 660px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.62));
  box-shadow: 0 30px 90px rgba(17, 31, 68, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px) saturate(1.55);
}
.payment-simulator h2 { margin: 6px 38px 18px 0; font-size: 25px; line-height: 1.25; }
.payment-simulation-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.12);
  color: #8b5200;
  font-size: 12px;
  font-weight: 800;
}
.payment-kicker { margin: 16px 0 0; color: #0a65c8; font-size: 13px; font-weight: 900; }
.payment-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(91, 98, 112, 0.12);
  font-size: 23px;
}
.payment-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(80, 91, 110, 0.14);
  border-bottom: 1px solid rgba(80, 91, 110, 0.14);
}
.payment-total span { color: #75695f; }
.payment-total strong { font-size: 36px; line-height: 1; }
.payment-description { margin: 14px 0 18px; color: #554b43; font-weight: 700; }
.payment-outcome-actions { display: grid; gap: 8px; }
.payment-outcome-actions button { min-height: 48px; width: 100%; }
.payment-outcome-actions .ghost { border: 0; background: transparent; color: #6c625a; }
.payment-processing-text { margin: 14px 0 0; text-align: center; color: #0a65c8; font-weight: 800; }
.payment-result-card { text-align: center; }
.payment-result-card h2 { margin-right: 0; font-size: 21px; }
.payment-result-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.14);
  color: #15803d;
  font-size: 32px;
  font-weight: 900;
}
.payment-result-card.failed .payment-result-icon { background: rgba(255, 59, 48, 0.12); color: #b42318; }
.payment-result-card.cancelled .payment-result-icon { background: rgba(91, 98, 112, 0.12); color: #5b6270; }

.payment-settings-card { margin-top: 18px; }
.payment-settings-card .section-head > div p { margin: 4px 0 0; color: #75695f; }
.payment-settings-notice {
  padding: 10px 12px;
  border-left: 3px solid #ff9f0a;
  background: rgba(255, 159, 10, 0.08);
  color: #6d4a12;
}
.payment-config-group { padding: 12px 0; border-top: 1px solid rgba(90, 100, 120, 0.14); }
.payment-config-group h3 { margin: 0; }
.payment-config-rows { display: grid; gap: 8px; }
.payment-config-row {
  display: grid;
  grid-template-columns: auto minmax(92px, 0.55fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}
.payment-config-row label { margin: 0; }
.payment-config-row label > span { display: block; margin-bottom: 5px; color: #75695f; font-size: 12px; }
.payment-config-row input[type="number"], .payment-config-row input:not([type]) { min-width: 0; width: 100%; }
.payment-enabled-toggle { align-self: center; white-space: nowrap; }
.payment-enabled-toggle input, .payment-custom-toggle input { width: 18px; height: 18px; }
.payment-config-actions { display: flex; gap: 5px; }
.payment-config-actions button { min-width: 40px; min-height: 44px; }
.danger-text { color: #b42318; }
.payment-custom-toggle { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.payment-settings-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.payment-settings-footer button { min-height: 46px; }

@media (max-width: 680px) {
  .payment-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-config-row { grid-template-columns: auto 90px minmax(0, 1fr); }
  .payment-config-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .payment-simulator { padding: 20px; }
}

/* About editor: desktop workspace and compact mobile editor. */
.about-editor-toolbar {
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(84, 97, 116, .12);
  border-radius: 8px;
  background: rgba(244, 247, 250, .78);
}
.about-editor-toolbar > .hint { padding: 0 8px; color: #737d89; }
.about-tool {
  display: inline-grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2a3038;
}
.about-tool:hover,
.about-tool:focus-visible { background: #fff; box-shadow: 0 2px 8px rgba(30, 45, 65, .09); }
.about-tool b { font-size: 17px; text-align: center; }
.about-editor-source { min-width: 0; }
.about-editor-surface {
  min-height: 420px;
  padding: 24px 26px;
  border: 1px solid rgba(84, 97, 116, .2);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, .94);
  color: #252c35;
  line-height: 1.8;
  box-shadow: inset 0 1px 2px rgba(27, 41, 59, .04);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.about-editor-surface:focus {
  border-color: #0a78e8;
  box-shadow: 0 0 0 3px rgba(10, 120, 232, .12), inset 0 1px 2px rgba(27, 41, 59, .04);
}
.about-editor-surface > p,
.about-editor-surface > h2,
.about-editor-surface > h3,
.about-editor-surface > h4,
.about-editor-surface > blockquote,
.about-editor-surface > ul,
.about-editor-surface > ol,
.about-editor-surface > table { margin: 0 0 14px; }
.about-editor-surface > p:last-child,
.about-editor-surface > h2:last-child,
.about-editor-surface > h3:last-child,
.about-editor-surface > h4:last-child,
.about-editor-surface > blockquote:last-child,
.about-editor-surface > ul:last-child,
.about-editor-surface > ol:last-child,
.about-editor-surface > table:last-child { margin-bottom: 0; }
.about-editor-surface > h2,
.about-editor-surface > h3,
.about-editor-surface > h4 { line-height: 1.3; color: #18212b; }
.about-editor-surface > h2 { font-size: 27px; }
.about-editor-surface > h3 { font-size: 22px; }
.about-editor-surface > h4 { font-size: 18px; }
.about-editor-surface > blockquote {
  padding: 10px 16px;
  border-left: 4px solid rgba(10, 120, 232, .42);
  border-radius: 0 8px 8px 0;
  background: rgba(232, 241, 251, .68);
  color: #43566b;
}
.about-editor-surface [data-about-module-card] {
  position: relative;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid rgba(84, 97, 116, .2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(245, 248, 252, .98), rgba(232, 239, 247, .82));
  box-shadow: 0 8px 24px rgba(29, 45, 65, .08);
  user-select: none;
}
.about-module-actions { display: flex; justify-content: flex-end; gap: 6px; min-height: 30px; }
.about-module-action,
.about-module-remove {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(84, 97, 116, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #536273;
  font-size: 12px;
}
.about-module-remove { width: 30px; padding: 0; color: #b42318; }
.about-editor-module img { display: block; width: 100%; max-height: 460px; border-radius: 10px; object-fit: contain; background: #eef2f6; }
.about-editor-module figcaption { margin-top: 8px; color: #657385; font-size: 13px; text-align: center; }
.about-module-placeholder { display: grid; place-items: center; min-height: 140px; color: #7d8998; }
.about-editor-module-divider { padding: 20px 12px; }
.about-editor-module-divider hr { margin: 0; border: 0; border-top: 2px solid rgba(84, 97, 116, .24); }
.about-editor-module-video .about-module-video-body { overflow: hidden; border-radius: 10px; }
.about-editor-module-video .about-video-card { max-width: none; margin: 0; }
.about-editor-list-block { padding-left: 28px; }
.about-editor-table-block { width: 100%; border-collapse: collapse; }
.about-editor-table-block th,
.about-editor-table-block td { padding: 8px 10px; border: 1px solid rgba(84, 97, 116, .16); text-align: left; vertical-align: top; }
.about-editor-table-block th { background: rgba(232, 239, 247, .82); }
.about-editor-help { margin: 8px 2px 0; color: #7b8795; font-size: 12px; }
.about-preview-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.about-preview-head .icon-button { display: none; }
.about-mobile-preview-action { display: none; }
.about-block { cursor: grab; transition: border-color 140ms ease, opacity 140ms ease, transform 140ms ease; }
.about-block:active { cursor: grabbing; }
.about-block.is-dragging { opacity: .45; }
.about-block.is-drop-target { border-color: #0a78e8; transform: translateY(2px); }

/* Settings: make the first, second and editable third level legible at a glance. */
.settings-page {
  --settings-level-one: rgba(235, 241, 248, .92);
  --settings-level-two: rgba(248, 250, 252, .94);
  --settings-level-three: #fff;
}
.settings-group { border-color: rgba(70, 87, 109, .18); background: var(--settings-level-one); }
.settings-group > summary { padding-inline: 20px; }
.settings-group > summary strong { color: #18212b; font-size: 18px; }
.settings-group-content { padding: 8px 10px 10px; }
.settings-submenu {
  margin: 8px 0;
  border: 1px solid rgba(77, 94, 116, .14);
  border-radius: 7px;
  background: var(--settings-level-two);
}
.settings-submenu > summary { padding-left: 18px; }
.settings-submenu-content {
  margin: 0 10px 10px 28px;
  padding: 14px;
  border-left: 3px solid rgba(12, 121, 231, .28);
  border-radius: 6px;
  background: var(--settings-level-three);
}
.settings-submenu-content input,
.settings-submenu-content textarea,
.settings-submenu-content select {
  border: 1px solid rgba(47, 65, 87, .24);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(25, 39, 58, .04);
}
.settings-submenu-content input:focus,
.settings-submenu-content textarea:focus,
.settings-submenu-content select:focus {
  border-color: #0a78e8;
  box-shadow: 0 0 0 3px rgba(10, 120, 232, .12);
}

@media (max-width: 760px) {
  .about-me-editor { padding-bottom: 92px; }
  .about-editor-toolbar {
    position: sticky;
    z-index: 34;
    top: 58px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    backdrop-filter: blur(18px);
  }
  .about-editor-toolbar::-webkit-scrollbar { display: none; }
  .about-editor-toolbar > .hint { display: none; }
  .about-tool { grid-template-columns: 28px; flex: 0 0 44px; padding: 0 8px; }
  .about-tool span { display: none; }
  .about-tool b { font-size: 19px; }
  .about-editor-surface { min-height: calc(100dvh - 280px); padding: 18px 16px; border-radius: 12px; }
  .about-editor-preview { display: none; }
  .about-editor-actions {
    position: fixed;
    z-index: 82;
    right: 16px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 8px;
    background: rgba(248, 250, 252, .84);
    box-shadow: 0 14px 32px rgba(28, 43, 64, .14);
    backdrop-filter: blur(22px);
  }
  .about-editor-actions .hint { display: none; }
  .about-mobile-preview-action { display: block; }
  .about-block-controls { flex-direction: row; }
  .about-block { grid-template-columns: 1fr; }
  .about-format-toolbar {
    position: sticky;
    z-index: 3;
    bottom: calc(70px + env(safe-area-inset-bottom));
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 10px;
    background: rgba(247, 249, 252, .9);
    box-shadow: 0 8px 22px rgba(28, 43, 64, .1);
    backdrop-filter: blur(18px);
  }
  body.about-preview-open .about-editor-source,
  body.about-preview-open .about-editor-toolbar,
  body.about-preview-open .about-editor-actions { display: none; }
  body.about-preview-open .about-editor-preview {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: block;
    overflow-y: auto;
    padding: max(14px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
    background: rgba(248, 250, 252, .96);
    backdrop-filter: blur(24px);
  }
  body.about-preview-open .about-preview-head { position: sticky; top: 0; z-index: 2; padding: 6px 0 12px; background: rgba(248, 250, 252, .9); }
  body.about-preview-open .about-preview-head .icon-button { display: inline-grid; place-items: center; }
  body.about-preview-open .about-preview { min-height: calc(100dvh - 90px); }
  .settings-group-content { padding: 5px; }
  .settings-submenu-content { margin-left: 16px; padding: 12px; }
}

/* Unified playlist workspace */
.playlist-workspace {
  padding: 0;
  overflow: visible;
  background: rgba(250, 252, 255, .82);
}
.playlist-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid rgba(35, 50, 70, .09);
}
.playlist-workspace-head h2 { margin: 3px 0 2px; font-size: 30px; }
.playlist-workspace-head p,
.playlist-main-head p { margin: 0; color: var(--muted); }
.playlist-head-actions { display: flex; gap: 8px; }
.playlist-layout {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  min-height: 620px;
}
.playlist-sidebar {
  padding: 16px 12px;
  border-right: 1px solid rgba(35, 50, 70, .09);
  background: rgba(239, 244, 249, .58);
}
.playlist-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background .18s ease, border-color .18s ease;
}
.playlist-nav-row.selected {
  border-color: rgba(44, 121, 193, .2);
  background: rgba(255, 255, 255, .86);
}
.playlist-select {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 4px;
  border: 0;
  background: transparent;
  text-align: left;
}
.playlist-select span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.playlist-select small { flex: 0 0 auto; color: var(--muted); }
.playlist-enable {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.playlist-row-actions { display: flex; justify-content: flex-end; gap: 3px; }
.playlist-row-actions .icon-button { width: 34px; height: 34px; min-height: 34px; padding: 0; }
.playlist-main { min-width: 0; padding: 20px; }
.playlist-main-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 16px;
}
.playlist-main-head h3 { margin: 0 0 5px; font-size: 24px; }
.playlist-search { margin: 0; grid-template-columns: minmax(0, 1fr) 44px; }
.playlist-song-list { display: grid; gap: 7px; margin-top: 14px; }
.playlist-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 14px;
}
.playlist-section {
  position: relative;
  z-index: 0;
  min-width: 0;
  scroll-margin-top: 12px;
}
.playlist-section-head {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(65, 79, 96, .12);
  border-radius: 10px;
  background: rgba(247, 250, 253, .96);
  box-shadow: 0 5px 16px rgba(35, 50, 70, .08);
  backdrop-filter: blur(18px) saturate(1.2);
}
.playlist-section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.playlist-section-heading h3 { margin: 0; font-size: 19px; }
.playlist-section-heading > span { color: var(--muted); font-size: 13px; }
.playlist-section-status { flex: 0 0 100%; color: #3573a9; font-size: 11px; font-weight: 850; }
.playlist-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(65, 79, 96, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #4f6276;
  font-size: 13px;
  font-weight: 800;
}
.playlist-section-toggle:focus-visible { outline: 3px solid rgba(44, 121, 193, .24); outline-offset: 2px; }
.playlist-section-body {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px 2px 0;
}
.playlist-section-body[hidden] { display: none; }
.playlist-song-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(65, 79, 96, .09);
  border-left: 4px solid #9bb3c5;
  border-radius: 8px;
  background: rgba(239, 244, 247, .76);
}
.playlist-song-row:nth-child(even) { border-left-color: #9eb7a9; background: rgba(240, 245, 242, .8); }
.playlist-song-row.included { box-shadow: inset 0 0 0 1px rgba(31, 122, 105, .12); }
.playlist-song-cover {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cover-a), var(--cover-b) 52%, var(--cover-c));
}
.playlist-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist-song-cover .cover-fallback { color: #fff; font-weight: 900; }
.playlist-song-copy { display: grid; gap: 4px; min-width: 0; }
.playlist-song-copy > strong { font-size: 17px; }
.playlist-song-copy > span,
.playlist-song-album { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.playlist-song-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.playlist-song-actions button { min-width: 104px; }
.playlist-category-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.playlist-category-actions button { min-width: 0; min-height: 40px; padding-inline: 10px; }
.sheet-status { font-size: 13px; font-weight: 750; text-decoration: none; }
.sheet-status.configured { color: #0874d1; }
.sheet-status.unconfigured { color: #929ba7; }
.playlist-workspace .tag-chip { display: inline-flex; align-items: center; gap: 3px; }
.playlist-workspace .tag-chip button {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 55, 65, .08);
  color: #68717c;
  line-height: 1;
}
.playlist-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 32, 42, .22);
  backdrop-filter: blur(18px);
}
.playlist-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(92vw, 430px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background: rgba(250, 252, 255, .88);
  box-shadow: 0 24px 70px rgba(26, 38, 55, .22);
}
.playlist-dialog h2 { margin: 0; }
.playlist-dialog label { display: grid; gap: 7px; }
.playlist-dialog-close { position: absolute; top: 12px; right: 12px; }
.playlist-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 760px) {
  .playlist-workspace-head { padding: 16px; }
  .playlist-workspace-head h2 { font-size: 25px; }
  .playlist-head-actions button { min-width: 74px; padding-inline: 10px; }
  .playlist-layout { grid-template-columns: 1fr; min-height: 0; }
  .playlist-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(35, 50, 70, .09);
    scroll-snap-type: x proximity;
  }
  .playlist-nav-row { flex: 0 0 178px; margin: 0; scroll-snap-align: start; }
  .playlist-main { padding: 14px 12px 100px; }
  .playlist-main-head { grid-template-columns: 1fr; }
  .playlist-section-head { top: 58px; min-height: 58px; }
  .playlist-section { scroll-margin-top: 70px; }
  .playlist-song-row { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
  .playlist-song-cover { width: 52px; height: 52px; }
  .playlist-song-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .playlist-song-actions button { min-width: 98px; }
}

.sheet-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.sheet-album-tile { display: grid; gap: 3px; padding: 8px; border-radius: 8px; color: inherit; background: rgba(255,255,255,.55); }
.sheet-album-cover { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 7px; background: linear-gradient(135deg,var(--cover-a),var(--cover-b)); }
.sheet-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.sheet-album-tile span, .sheet-album-tile small { color: var(--muted); }
.sheet-photo-gallery { padding: 14px; border-radius: 8px; background: rgba(255,255,255,.7); }
.sheet-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 8px; }
.sheet-photo-grid > button, .sheet-photo-add { position: relative; display: grid; place-items: center; aspect-ratio: .78; overflow: hidden; padding: 0; border: 1px solid rgba(90,100,120,.14); border-radius: 7px; background: #eef1f4; }
.sheet-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.sheet-photo-add { color: #0a65c8; font-size: 34px; cursor: pointer; }
.sheet-photo-add span { font-size: 13px; }
.sheet-photo-add input { position: absolute; opacity: 0; pointer-events: none; }
.sheet-lightbox { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; background: #101114; }
.sheet-lightbox header { position: absolute; inset: 0 0 auto; z-index: 2; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: max(10px,env(safe-area-inset-top)) 12px 10px; color: #fff; background: linear-gradient(#0009,transparent); }
.sheet-lightbox header button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #ffffff20; font-size: 30px; }
.sheet-lightbox header strong { text-align: center; }
.sheet-lightbox > img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.sheet-lightbox-arrow { position: absolute; z-index: 2; top: 50%; width: 44px; height: 58px; border: 0; color: #fff; background: #0007; font-size: 34px; }
.sheet-lightbox-arrow.prev { left: 8px; }.sheet-lightbox-arrow.next { right: 8px; }

@media (max-width: 680px) {
  .sheet-album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sheet-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Queue cards: actions first, compact information hierarchy. */
.request-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  justify-content: flex-end;
  align-self: start;
}
.request-utility-actions button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(80, 92, 112, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
}
.request-utility-actions .subtle-danger { color: #b42318; }
.request-copy-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.request-title-block { min-width: 0; }
.request-side .actions { width: auto; min-width: 132px; }
.request-side .actions .queue-main-action {
  width: 132px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 8px;
}
.queue-manager .request-card { border-radius: 8px; box-shadow: 0 5px 16px rgba(35,58,100,.06); }
.queue-manager .payment-list { margin-top: 6px; gap: 4px; }
.queue-manager .payment-list > div { padding: 7px 9px; border-radius: 8px; flex-wrap: nowrap; min-width: 0; }
.queue-manager .payment-list > div > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-manager .payment-list > div > p { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.queue-manager .support-list { margin-top: 6px; }

@media (max-width: 680px) {
  .queue-manager .request-card { grid-template-columns: 28px 42px minmax(0,1fr); }
  .queue-manager .request-side { grid-column: 3; justify-content: flex-end; }
  .queue-manager .request-side > strong { margin-right: auto; }
  .request-side .actions .queue-main-action { width: 118px; min-height: 48px; }
  .request-copy-head { gap: 6px; }
  .request-utility-actions { gap: 4px; }
  .request-utility-actions button { min-width: 44px; min-height: 40px; padding: 5px 8px; }
  .audience-sticky-live.is-compact .current-strip.live { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .audience-sticky-live.is-compact .current-strip .album-cover { width: 44px; }
  .audience-sticky-live.is-compact .current-strip.live .support-button.mini { grid-column: auto; width: auto; min-width: 62px; padding: 9px 12px; }
  .ranking-podium { gap: 8px; }
  .ranking-podium-item { gap: 3px; }
  .ranking-avatar { width: 24px; height: 24px; }
}

@media (min-width: 681px) {
  .queue-manager .request-side { align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  .payment-tier-card.active::after { animation: none; }
}

/* 2026-08-23 audience interaction polish */
.audience-sticky-live {
  position: sticky;
  top: 0;
  z-index: 90;
  margin: 0 auto 10px;
  transition: margin 220ms ease;
}
.audience-sticky-live .current-strip {
  margin-bottom: 0;
  transition: padding 220ms ease, min-height 220ms ease, gap 220ms ease, border-radius 220ms ease, grid-template-columns 220ms ease, box-shadow 220ms ease;
}
.audience-sticky-live .current-strip .album-cover {
  transition: width 220ms ease, border-radius 220ms ease, box-shadow 220ms ease;
}
.audience-sticky-live .current-strip .album-cover::after {
  transition: inset 220ms ease, border-radius 220ms ease;
}
.audience-sticky-live .current-strip .current-song-info {
  transition: gap 220ms ease;
}
.audience-sticky-live .current-strip .current-song-info > span,
.audience-sticky-live .current-strip .current-song-info > p,
.audience-sticky-live .current-support-actions small {
  max-height: 72px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: max-height 220ms ease, opacity 180ms ease, visibility 0s linear 0s, transform 220ms ease;
}
.audience-sticky-live .current-strip .current-song-info > span { max-height: 24px; }
.audience-sticky-live .current-strip .current-song-info > p { max-height: 72px; }
.audience-sticky-live .current-strip .current-song-info strong {
  transition: font-size 220ms ease, line-height 220ms ease;
}
.audience-sticky-live .current-strip.live .support-button.mini {
  transition: width 220ms ease, min-width 220ms ease, padding 220ms ease;
}
.audience-sticky-live.is-compact .current-strip {
  min-height: 62px;
  padding: 7px 12px;
  border-radius: 8px;
  gap: 8px;
}
.audience-sticky-live.is-compact .current-strip.live { grid-template-columns: 48px minmax(0, 1fr) auto; }
.audience-sticky-live.is-compact .current-strip .album-cover { width: 48px; border-radius: 10px; box-shadow: none; }
.audience-sticky-live.is-compact .current-strip .album-cover::after { inset: 5px; border-radius: 7px; }
.audience-sticky-live.is-compact .current-strip .current-song-info { gap: 1px; }
.audience-sticky-live.is-compact .current-strip .current-song-info > span,
.audience-sticky-live.is-compact .current-strip .current-song-info > p,
.audience-sticky-live.is-compact .current-support-actions small {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: max-height 220ms ease, opacity 180ms ease, visibility 0s linear 220ms, transform 220ms ease;
}
.audience-sticky-live.is-compact .current-strip .current-song-info strong {
  font-size: 20px;
  line-height: 1.1;
}
.sticky-danmaku {
  position: relative;
  z-index: 2;
  height: 28px;
  margin: 0 12px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.32);
  color: #493f37;
  text-shadow: none;
  backdrop-filter: blur(14px) saturate(1.2);
}
.sticky-danmaku .danmaku-track { min-height: 28px; align-items: center; animation-duration: 6s; }
.sticky-danmaku .danmaku-item { color: #5f5349; }
.sticky-danmaku .danmaku-item strong { color: #28231f; }
.current-support-actions { display: grid; justify-items: center; gap: 3px; }
.current-support-actions small { color: #765f54; font-size: 11px; font-weight: 800; white-space: nowrap; }
.audience-status-strip { display: grid; gap: 8px; }
.audience-live-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}
.audience-live-status > strong,
.audience-live-status > span:not(.live-indicator):not(.status-pill) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audience-live-status > strong { font-size: 14px; }
.audience-live-status > span:not(.live-indicator):not(.status-pill) { color: #75695f; font-size: 12px; font-weight: 800; }
.audience-live-status .status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.audience-request-details { display: grid; gap: 2px; min-width: 0; margin-top: 4px; }
.audience-request-details span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #75695f;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.audience-live-combined { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.audience-live-danmaku {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 20;
  width: min(720px, calc(100% - 22px));
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 30px rgba(35, 58, 100, 0.16);
  backdrop-filter: blur(18px) saturate(1.35);
  transform: translateX(-50%);
}
.audience-live-danmaku input { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  .audience-sticky-live,
  .audience-sticky-live .current-strip,
  .audience-sticky-live .current-strip .album-cover,
  .audience-sticky-live .current-strip .album-cover::after,
  .audience-sticky-live .current-strip .current-song-info,
  .audience-sticky-live .current-strip .current-song-info > span,
  .audience-sticky-live .current-strip .current-song-info > p,
  .audience-sticky-live.is-compact .current-strip .current-song-info > span,
  .audience-sticky-live.is-compact .current-strip .current-song-info > p,
  .audience-sticky-live .current-strip .current-song-info strong,
  .audience-sticky-live .current-support-actions small,
  .audience-sticky-live.is-compact .current-support-actions small,
  .audience-sticky-live .current-strip.live .support-button.mini {
    transition: none;
  }
  .sticky-danmaku .danmaku-track { animation: none; }
}
.hero .live-brief { position: relative; }
.hero .share-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}
.live-rule-copy { display: none; }
.performance-choice {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(81, 95, 115, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}
.performance-choice input { width: 21px; height: 21px; flex: 0 0 auto; }
.performance-choice span { display: grid; gap: 2px; }
.performance-choice small { color: var(--muted); }
.secondary-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(18, 24, 35, 0.28);
  backdrop-filter: blur(22px) saturate(1.2);
}
@keyframes rankingSheetIn {
  from { transform: translateY(18%); opacity: .5; }
  to { transform: translateY(0); opacity: 1; }
}
.secondary-dialog {
  width: min(92vw, 460px);
  max-height: min(84vh, 720px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 16px;
  background: rgba(250, 252, 255, .78);
  box-shadow: 0 28px 80px rgba(20, 34, 62, .24);
  backdrop-filter: blur(30px) saturate(1.4);
}
.secondary-dialog-backdrop.ranking-sheet-backdrop {
  align-items: end;
  padding: 0;
}
.secondary-dialog.ranking-sheet {
  width: min(100%, 640px);
  max-height: 56dvh;
  overflow: auto;
  border-radius: 16px 16px 0 0;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  animation: rankingSheetIn 220ms ease-out;
}
.secondary-dialog-head { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; }
.secondary-dialog-head h2 { margin: 0; text-align: center; font-size: 20px; }
.secondary-dialog-head span { color: var(--muted); }
.custom-amount-dialog label { display: grid; gap: 8px; margin: 22px 0 16px; }
.custom-amount-dialog input { min-height: 62px; font-size: 28px; font-weight: 800; text-align: center; }
.custom-amount-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.custom-amount-actions button { min-height: 50px; }
.ranking-online { display: grid; place-items: center; padding: 20px; }
.ranking-online strong { font-size: 36px; }
.ranking-online span { color: var(--muted); }
.ranking-list { display: grid; gap: 6px; }
.ranking-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 11px 8px; border-bottom: 1px solid rgba(80,90,110,.12); }
.audience-ranking-compact { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.ranking-podium { display: flex; flex: 1; min-width: 0; gap: 12px; overflow: hidden; }
.ranking-podium-item { display: inline-grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 5px; min-width: 0; flex: 1 1 0; font-size: 12px; }
.ranking-podium-item .ranking-avatar { grid-row: 1 / 3; }
.ranking-podium-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-podium-item em { grid-column: 2; font-style: normal; color: #b64d31; }
.ranking-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(145deg, #dde9ef, #eadff0); color: #3f4a55; font-size: 11px; font-weight: 900; }
.ranking-ellipsis { width: 38px; min-height: 34px; padding: 0; border: 0; background: transparent; color: #5f6874; font-size: 17px; letter-spacing: 2px; }
@media (max-width: 520px) {
  .audience-ranking-compact { gap: 4px; padding-inline: 8px; }
  .ranking-podium { gap: 5px; }
  .ranking-podium-item { grid-template-columns: 24px minmax(0, 1fr); column-gap: 3px; font-size: 11px; }
  .ranking-podium-item strong { max-width: 100%; }
  .ranking-podium-item em { font-size: 10px; }
  .ranking-ellipsis { width: 28px; }
}
.audience-now-playing { min-height: 0; }
.lyrics-dialog pre { white-space: pre-wrap; line-height: 1.9; font-family: inherit; font-size: 17px; }

/* 观众端把留言收进歌手主页，资料与留言之间只用一条轻分隔。 */
.about-feedback {
  width: min(760px, 100%);
  margin: 30px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(73, 63, 55, 0.16);
}

@media (max-width: 520px) {
  .about-feedback { margin-top: 24px; padding: 22px 0 calc(88px + env(safe-area-inset-bottom)); }
  .lyrics-expand-btn { width: 100%; margin: 12px 0 0; }
  .audience-now-playing .panel-title { align-items: stretch; flex-direction: column; }
}
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 100;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 26px rgba(22,34,58,.18);
  backdrop-filter: blur(18px);
}

/* 2026-08-23: 统一付款控件与两级设置菜单 */
.payment-tier-card {
  min-height: 64px;
  border-radius: 8px;
  border-color: rgba(76, 88, 106, 0.16);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}
.payment-tier-card:hover { border-color: rgba(7, 124, 94, 0.42); }
.payment-tier-card.active {
  border-color: #16a375;
  background: rgba(225, 247, 239, 0.9);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 117, 0.18);
  transform: none;
}
.payment-tier-card.active::after {
  content: "✓";
  inset: 8px 8px auto auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #16a375;
  color: white;
  font-size: 12px;
  transform: none;
  animation: none;
}
.payment-tier-card strong { padding-right: 24px; }

.payment-amount-field {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-top: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(75, 88, 107, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}
.payment-amount-value { font-size: 20px; color: #17191d; }
.payment-amount-label {
  overflow: hidden;
  color: #647081;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.payment-amount-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: text;
}
.payment-amount-field:focus-within { border-color: #16a375; box-shadow: 0 0 0 3px rgba(22, 163, 117, 0.12); }
.boost-rule { margin: 0 0 14px; color: #697381; font-size: 13px; line-height: 1.6; }

.payment-simulator-backdrop { z-index: 500; padding: 16px; background: rgba(16, 22, 28, 0.3); }
.payment-simulator {
  width: min(92vw, 420px);
  max-height: min(88dvh, 680px);
  padding: 0 20px 20px;
  border: 0;
  border-radius: 12px;
  background: rgba(250, 251, 252, 0.98);
  box-shadow: 0 22px 70px rgba(8, 22, 36, 0.26);
  color: #16191d;
  backdrop-filter: none;
}
.wechat-payment-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  min-height: 58px;
  margin: 0 -4px;
  text-align: center;
}
.wechat-payment-head .payment-close {
  position: static;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #555f6d;
  font-size: 26px;
}
.payment-simulator h2 { margin: 6px 0 16px; font-size: 22px; text-align: center; }
.payment-simulation-badge {
  display: flex;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
  border-radius: 6px;
  background: #eef1f4;
  color: #68717e;
}
.payment-kicker { margin-top: 14px; color: #647081; text-align: center; }
.payment-total { justify-content: center; gap: 10px; padding: 16px 0; border-top: 0; }
.payment-total strong { font-size: 34px; }
.payment-description { margin: 0 0 16px; color: #48515e; text-align: center; }
.payment-verify-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #edf0f3;
}
.payment-verify-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #65707d;
}
.payment-verify-tabs button.active { background: white; color: #111418; box-shadow: 0 1px 4px rgba(23, 33, 45, 0.08); }
.payment-face-panel { padding-top: 14px; }
.wechat-pay-confirm {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: #07c160;
  color: white;
  font-size: 16px;
  font-weight: 800;
}
.payment-pin-panel { padding-top: 14px; }
.payment-pin-dots { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid #d7dce2; border-radius: 8px; overflow: hidden; }
.payment-pin-dots i { display: grid; place-items: center; aspect-ratio: 1.2; border-right: 1px solid #d7dce2; background: white; }
.payment-pin-dots i:last-child { border-right: 0; }
.payment-pin-dots i.filled::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #15181c; }
.payment-pin-panel > p { margin: 8px 0 12px; color: #7a8491; font-size: 12px; text-align: center; }
.payment-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.payment-keypad button, .payment-keypad span { min-height: 44px; border: 0; border-radius: 6px; background: #eef1f4; font-size: 20px; }
.payment-keypad button:active { background: #dfe4e9; }
.payment-verify-status, .payment-processing-text { min-height: 20px; margin: 10px 0 0; color: #66717f; text-align: center; }
.payment-simulator.processing { pointer-events: none; opacity: 0.92; }
.payment-result-card { padding-top: 24px; }

.boost-total { color: #157a63 !important; font-weight: 800; }
.boost-trace { word-spacing: 3px; }
.paid-boost {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 10px !important;
  border: 1px solid rgba(0, 122, 255, 0.22) !important;
  border-radius: 999px !important;
  background: linear-gradient(110deg, rgba(31, 143, 255, 0.13), rgba(199, 83, 238, 0.12)) !important;
  color: #0768c6 !important;
  font-weight: 800;
}
.paid-boost > span { font-size: 18px; }
.paid-boost > i { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 50%; background: #0a7ae6; color: white; font-size: 11px; font-style: normal; }

.settings-page { display: grid; gap: 16px; padding: 0 0 96px; background: transparent; }
.settings-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px;
}
.settings-page-head h2 { margin: 0; font-size: 26px; }
.settings-page-head p { margin: 3px 0 0; color: #707a87; }
.settings-head-actions { display: flex; align-items: center; gap: 10px; }
.settings-head-actions .primary { min-height: 42px; padding: 0 18px; }
.settings-groups { display: grid; gap: 12px; }
.settings-group {
  overflow: hidden;
  border: 1px solid rgba(96, 108, 126, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.15);
}
.settings-group > summary, .settings-submenu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.settings-group > summary::-webkit-details-marker, .settings-submenu > summary::-webkit-details-marker { display: none; }
.settings-group > summary span, .settings-submenu > summary span { display: grid; gap: 3px; min-width: 0; }
.settings-group > summary strong { font-size: 17px; }
.settings-group > summary small, .settings-submenu > summary small { overflow: hidden; color: #7b8490; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.settings-group > summary i, .settings-submenu > summary i { color: #a0a8b2; font-size: 26px; font-style: normal; transition: transform 160ms ease; }
.settings-group[open] > summary > i, .settings-submenu[open] > summary > i { transform: rotate(90deg); }
.settings-group-content { border-top: 1px solid rgba(96, 108, 126, 0.1); }
.settings-submenu { border-bottom: 1px solid rgba(96, 108, 126, 0.1); }
.settings-submenu:last-child { border-bottom: 0; }
.settings-submenu > summary { min-height: 58px; padding-left: 22px; }
.settings-submenu > summary strong { font-size: 15px; }
.settings-submenu-content { display: grid; gap: 12px; padding: 6px 18px 18px; }
.settings-submenu-content > label { margin: 0; }
.settings-content-block, .payment-settings-card, .payment-readiness-card, .audience-layout-controls { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.settings-security-note { margin: 0; color: #687381; line-height: 1.6; }
.payment-config-row { border-radius: 8px; background: rgba(244, 247, 250, 0.88); }

.admin-module {
  overflow: hidden;
  margin: 10px 0;
  border: 1px solid rgba(88, 100, 118, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.54);
}
.admin-module > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.admin-module > summary::-webkit-details-marker { display: none; }
.admin-module > summary::after { content: "›"; color: #98a1ac; font-size: 24px; transition: transform .16s ease; }
.admin-module[open] > summary::after { transform: rotate(90deg); }
.admin-module > summary span { margin-left: auto; color: var(--muted); font-size: 12px; }
.admin-module-content { padding: 4px 12px 14px; }
.compact-search { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; }
.compact-search .icon-button { width: 46px; padding: 0; font-size: 23px; }
.missing-song-dialog label { display: grid; gap: 6px; margin-top: 12px; }
.missing-song-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.daily-request-index { min-width: 24px; color: #0a65c8; }
.shop-admin-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0;
  padding: 4px;
  border-radius: 8px;
  background: rgba(226, 232, 240, .7);
}
.shop-admin-nav button { min-height: 44px; border: 0; border-radius: 6px; background: transparent; }
.shop-admin-nav button.active { background: #fff; color: #096b57; box-shadow: 0 2px 8px rgba(30,45,70,.1); }
.shop-admin-page { min-height: 260px; }
.product-editor-page { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product-editor-section { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid rgba(90,102,120,.13); border-radius: 8px; }
.product-editor-section legend { padding: 0 6px; font-weight: 850; }
.product-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.product-editor-grid label, .product-editor-section > label { display: grid; gap: 6px; }
.product-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.product-editor-actions button { min-height: 48px; min-width: 120px; }

@media (max-width: 680px) {
  .shop-admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .boost-overlay {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  .boost-panel {
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }
  .payment-simulator { width: min(94vw, 420px); max-height: 90dvh; padding-inline: 16px; }
  .payment-tier-card { min-height: 56px; padding: 8px 10px; }
  .payment-tier-card strong { font-size: 14px; }
  .settings-page-head { position: sticky; top: 0; z-index: 25; padding: 8px 4px; background: rgba(244, 247, 251, 0.78); backdrop-filter: blur(18px); }
  .settings-page-head h2 { font-size: 22px; }
  .settings-page-head p { display: none; }
  .settings-group > summary { min-height: 60px; }
  .settings-submenu-content { padding-inline: 12px; }
  .payment-config-row { grid-template-columns: 70px minmax(0, 1fr); }
  .payment-config-row > label:nth-child(3) { grid-column: 1 / -1; }
}

/* Keep each settings group heading sticky only within its own details boundary. */
.settings-page .settings-group { overflow: visible; }
.settings-page .settings-group > summary {
  position: sticky;
  top: 0;
  z-index: 26;
  background: var(--settings-level-one);
  border-radius: 7px 7px 0 0;
  box-shadow: 0 1px 0 rgba(70, 87, 109, .16);
}
@media (max-width: 760px) {
  .settings-page .settings-group > summary { top: 58px; }
}

/* Marketplace workflow: independent products, cart, messages and account pages. */
body[data-tab="shop"] .audience-bottom-nav { display: none; }
.audience-shop {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 8px 0 104px;
}
.audience-shop-products,
.audience-shop-detail,
.shop-cart-page,
.shop-message-page,
.shop-account-page,
.shop-empty-page {
  min-height: 62vh;
  padding: 18px;
  border: 1px solid rgba(91, 108, 132, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(22px) saturate(125%);
}
.shop-audience-nav {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  width: min(calc(100% - 24px), 560px);
  min-height: 64px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(244, 248, 252, .78);
  box-shadow: 0 14px 40px rgba(27, 42, 67, .18);
  backdrop-filter: blur(28px) saturate(140%);
  transform: translateX(-50%);
}
.shop-audience-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 50px;
  color: #4f5968;
  font-weight: 750;
  text-decoration: none;
}
.shop-audience-nav a.active { color: #0a69c7; }
.shop-audience-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: #0a74da;
}
.shop-audience-nav em {
  position: absolute;
  top: 2px;
  right: 14%;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #e94c67;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}
.audience-shop .shop-toolbar {
  position: sticky;
  z-index: 16;
  top: var(--audience-sticky-offset, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px);
  gap: 8px;
  padding: 8px 0;
  background: rgba(247, 250, 253, .72);
  backdrop-filter: blur(20px);
}
.audience-shop .shop-toolbar input,
.audience-shop .shop-toolbar select {
  min-height: 48px;
  border: 1px solid rgba(70, 94, 126, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
}
.audience-shop .shop-category-tabs { margin: 6px 0 16px; }
.audience-shop .shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.audience-shop .shop-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(86, 100, 122, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 28px rgba(39, 53, 78, .08);
}
.audience-shop .shop-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
}
.audience-shop .shop-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.audience-shop .shop-card-copy { display: grid; gap: 7px; padding: 12px 54px 14px 13px; }
.audience-shop .shop-card-copy > a { color: #15191f; text-decoration: none; }
.audience-shop .shop-card-copy > a strong { font-size: clamp(16px, 2vw, 20px); line-height: 1.35; }
.audience-shop .shop-card-copy p { display: -webkit-box; overflow: hidden; margin: 0; color: #69727f; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.shop-card-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.shop-card-price strong { color: #d53d55; font-size: 20px; }
.shop-card-price small { color: #89919d; }
.shop-card-add {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1977db;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(25, 119, 219, .24);
}
.shop-cart-head,
.shop-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.shop-cart-head h2,
.shop-account-head h2 { margin: 0; }
.shop-cart-head button,
.shop-cart-empty a { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: #e94865; color: #fff; font-weight: 800; }
.shop-cart-lines { display: grid; gap: 10px; }
.shop-cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(242, 246, 250, .86);
}
.shop-cart-empty,
.shop-chat-welcome { display: grid; place-items: center; min-height: 44vh; color: #6e7886; text-align: center; }
.shop-cart-empty a { display: grid; place-items: center; margin-top: 10px; text-decoration: none; }
.shop-message-page { display: grid; grid-template-rows: auto minmax(300px, 1fr) auto; }
.shop-chat-thread { display: flex; flex-direction: column; gap: 10px; overflow: auto; padding: 10px 2px 18px; }
.shop-chat-bubble { align-self: flex-start; max-width: min(78%, 560px); padding: 10px 13px; border-radius: 8px; background: #edf1f5; }
.shop-chat-bubble.admin { align-self: flex-end; background: #dcecff; }
.shop-chat-bubble small { color: #77818f; }
.shop-chat-bubble p { margin: 4px 0 0; white-space: pre-wrap; }
.shop-message-composer { display: grid; grid-template-columns: minmax(100px, .28fr) 1fr auto; gap: 8px; align-items: end; }
.shop-message-composer input,
.shop-message-composer textarea { min-height: 48px; border: 1px solid rgba(72, 91, 117, .18); border-radius: 8px; background: rgba(255,255,255,.92); }
.shop-message-composer button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px; background: #1977db; color: #fff; font-weight: 800; }
.shop-account-avatar,
.shop-conversation-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #202833; color: #fff; font-weight: 850; }
.shop-account-avatar { width: 62px; height: 62px; font-size: 22px; }
.shop-account-head { justify-content: flex-start; }
.shop-account-head span { color: #77818f; }
.shop-order-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px 0 16px; }
.shop-order-shortcuts button { min-height: 64px; border: 0; border-radius: 8px; background: rgba(239,244,249,.82); }
.shop-order-shortcuts button strong,
.shop-order-shortcuts button span { display: block; }
.shop-order-shortcuts button.active { background: #deecfa; color: #0968c7; }
.shop-my-filter-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 12px; }
.shop-my-filter-row button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid rgba(87,100,120,.14); border-radius: 8px; background: #fff; }
.shop-my-filter-row button.active { border-color: #1977db; color: #1268bd; }
.shop-my-orders { display: grid; gap: 12px; }
.shop-my-order-card { padding: 14px; border: 1px solid rgba(84,101,126,.12); border-radius: 8px; background: rgba(255,255,255,.8); }
.shop-my-order-card header,
.shop-my-order-total,
.shop-my-order-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-my-order-card header strong { color: #d43b53; }
.shop-my-order-line { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; margin: 12px 0; }
.shop-my-order-line strong,
.shop-my-order-line small { display: block; }
.shop-logistics { display: grid; gap: 3px; margin: 10px 0; padding: 10px; border-left: 3px solid #2a87d9; background: #eef6fd; }
.shop-my-order-actions { justify-content: flex-end; margin-top: 12px; }
.shop-my-order-actions button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 8px; background: #1977db; color: #fff; font-weight: 800; }
.shop-admin-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shop-shipping-form { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(130px, 1fr) auto; gap: 6px; width: min(100%, 560px); }
.shop-shipping-form input { min-height: 42px; border: 1px solid rgba(72,92,120,.18); border-radius: 6px; background: #fff; }
.order-logistics { display: flex; gap: 8px; margin-top: 6px; }
.shop-support-console { display: grid; grid-template-columns: minmax(240px, .36fr) 1fr; gap: 12px; min-height: 520px; }
.shop-conversation-list,
.shop-admin-chat { overflow: hidden; border: 1px solid rgba(80,99,124,.13); border-radius: 8px; background: rgba(255,255,255,.7); }
.shop-conversation-list { padding: 10px; }
.shop-conversation-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; min-height: 66px; padding: 8px; border: 0; border-bottom: 1px solid rgba(75,90,110,.1); background: transparent; text-align: left; }
.shop-conversation-row.active { background: #e7f1fc; }
.shop-conversation-avatar { width: 42px; height: 42px; }
.shop-conversation-row strong,
.shop-conversation-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-conversation-row time { color: #89919d; font-size: 11px; }
.shop-admin-chat { display: grid; grid-template-rows: auto 1fr auto; padding: 12px; }
.shop-admin-chat > header { display: flex; justify-content: space-between; padding-bottom: 10px; }

@media (max-width: 680px) {
  .audience-shop { padding-top: 0; }
  .audience-shop-products,
  .audience-shop-detail,
  .shop-cart-page,
  .shop-message-page,
  .shop-account-page,
  .shop-empty-page { padding: 12px; border: 0; background: rgba(255,255,255,.52); }
  .audience-shop .panel-title h2 { font-size: 22px; }
  .audience-shop .shop-toolbar { grid-template-columns: 1fr 124px; top: var(--audience-sticky-offset, 82px); }
  .audience-shop .shop-grid { gap: 8px; }
  .audience-shop .shop-card { grid-template-columns: minmax(0, 1fr); }
  .audience-shop .shop-card-copy { padding: 10px 42px 12px 10px; }
  .audience-shop .shop-card-copy p { display: none; }
  .audience-shop .shop-card-copy > a strong { font-size: 15px; }
  .shop-card-price strong { font-size: 18px; }
  .shop-card-add { right: 8px; bottom: 10px; width: 32px; height: 32px; font-size: 21px; }
  .shop-cart-line { grid-template-columns: 48px 1fr auto; gap: 8px; }
  .shop-cart-line .cart-remove { grid-column: 2 / -1; justify-self: end; }
  .shop-message-composer { grid-template-columns: 1fr auto; }
  .shop-message-composer input { grid-column: 1 / -1; }
  .shop-order-shortcuts { grid-template-columns: repeat(5, minmax(60px, 1fr)); overflow-x: auto; }
  .shop-support-console { grid-template-columns: 1fr; }
  .shop-admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-shipping-form { grid-template-columns: 1fr; }
}

/* Test income and withdrawal preview. All values in this surface are simulated. */
.test-income-page {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 28px);
}
.test-income-head,
.test-income-head-actions,
.test-income-section-head,
.test-income-withdrawal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.test-income-head-actions { align-items: center; }
.test-income-head h2,
.test-income-section-head h3 { margin: 0; }
.test-income-head p,
.test-income-section-head p,
.test-income-withdrawal p { margin: 5px 0 0; color: #707b89; }
.test-income-eyebrow { margin: 0 0 5px !important; color: #1776bf !important; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.test-income-badge,
.test-income-status { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #e8f3ff; color: #1469ad; font-size: 12px; font-weight: 800; }
.test-income-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.test-income-summary-card { display: grid; gap: 5px; min-width: 0; padding: 14px; border: 1px solid rgba(72, 96, 126, .13); border-radius: 12px; background: rgba(247, 250, 253, .9); }
.test-income-summary-card > span { color: #687587; font-size: 13px; }
.test-income-summary-card > strong { overflow: hidden; color: #172331; font-size: clamp(17px, 2vw, 23px); text-overflow: ellipsis; white-space: nowrap; }
.test-income-summary-card > small { color: #8994a2; font-size: 11px; }
.test-income-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.test-income-section { display: grid; align-content: start; gap: 13px; min-width: 0; padding: 16px; border: 1px solid rgba(72, 96, 126, .13); border-radius: 14px; background: rgba(255, 255, 255, .72); }
.test-income-entry-list,
.test-income-withdrawal-list { display: grid; gap: 8px; }
.test-income-entry,
.test-income-withdrawal { min-width: 0; padding: 12px; border-radius: 10px; background: rgba(242, 246, 250, .82); }
.test-income-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.test-income-entry-copy { display: grid; min-width: 0; gap: 3px; }
.test-income-entry-copy strong,
.test-income-entry-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.test-income-entry-copy strong { color: #263547; }
.test-income-entry-copy span,
.test-income-entry-copy time,
.test-income-withdrawal time { color: #748091; font-size: 12px; }
.test-income-entry > b,
.test-income-withdrawal-head > strong { flex: 0 0 auto; color: #1b6fae; white-space: nowrap; }
.test-income-empty { margin: 8px 0; color: #8994a2; font-size: 13px; }
.test-income-state { padding: 11px 13px; border-radius: 9px; background: #edf6ff; color: #236b9f; font-size: 13px; }
.test-income-state.error { background: #fff0f0; color: #b63b4b; }
.test-income-withdrawal { display: grid; gap: 6px; }
.test-income-withdrawal-head { align-items: center; }
.test-income-status.approved { background: #eaf7ef; color: #1a7b4c; }
.test-income-status.rejected { background: #fff0f0; color: #b63b4b; }
.test-income-status.test-paid { background: #f0ecff; color: #6554a6; }
.test-income-status.unknown { background: #f1f3f5; color: #6d7785; }
.test-income-withdrawal-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.test-income-withdrawal-actions button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(38, 112, 170, .22); border-radius: 7px; background: #fff; color: #166ba7; font-size: 12px; font-weight: 750; }
.test-income-withdrawal-actions button.danger { border-color: rgba(182, 59, 75, .22); color: #b63b4b; }
.test-income-withdrawal-form { display: grid; gap: 8px; padding: 13px; border: 1px dashed rgba(38, 112, 170, .3); border-radius: 10px; background: rgba(239, 247, 255, .58); }
.test-income-withdrawal-form label { display: grid; gap: 5px; color: #59677a; font-size: 12px; font-weight: 700; }
.test-income-withdrawal-form input { width: 100%; min-height: 42px; box-sizing: border-box; padding: 0 10px; border: 1px solid rgba(72, 96, 126, .18); border-radius: 7px; background: #fff; color: #1f2b38; }
.test-income-withdrawal-form button { min-height: 42px; }
.test-income-form-hint { color: #66778a; font-size: 12px; }
.test-ledger-sync-warning { padding: 10px 12px; border-radius: 9px; background: #fff6e8; color: #8a4e0a; font-size: 13px; }

@media (max-width: 680px) {
  .test-income-page { padding: 14px; }
  .test-income-head { flex-direction: column; }
  .test-income-head-actions { width: 100%; justify-content: space-between; }
  .test-income-summary,
  .test-income-columns { grid-template-columns: 1fr; }
  .test-income-summary-card > strong { font-size: 20px; }
}
