/* ==========================================================================
   fishbone.live · 魚骨槑_Fishbone 深夜唱片机歌单
   Distinct Visual System (Late-Night Cocoa-Rose Vinyl & Editorial Zine):
   - Default Night Mode: Velvety Espresso-Plum + Dusty Rose Pink + Warm Amber
   - Alternate Day Mode: Strawberry-Cream Milk Parchment + Deep Espresso Ink
   - Ultra-High Contrast (>13:1 WCAG AAA) + 4/3/2-col Responsive Density
   ========================================================================== */

:root {
  /* Default Theme: 「深夜黑听电台」 Velvet Cocoa-Plum & Dusty Rose */
  --bg-base: #191115;
  --veil-gradient: radial-gradient(
    ellipse 72% 86% at 50% 42%,
    rgba(25, 17, 21, 0.78) 0%,
    rgba(28, 19, 24, 0.56) 58%,
    rgba(25, 17, 21, 0.22) 100%
  );

  --surface-card: rgba(35, 24, 29, 0.95);
  --surface-card-strong: rgba(42, 29, 35, 0.98);
  --surface-soft: rgba(51, 35, 42, 0.92);
  --surface-hover: rgba(66, 44, 54, 0.97);
  --surface-topbar: rgba(27, 18, 23, 0.96);

  --ink-primary: #fdf2f5;       /* Warm rose-ivory — >14:1 contrast */
  --ink-secondary: #d7bac3;     /* Dusty rose-cream — >8.5:1 contrast */
  --ink-muted: #a98994;

  --rose: #ff7ea8;
  --rose-deep: #ffa3c1;
  --rose-solid: #e45684;
  --rose-soft: rgba(255, 126, 168, 0.16);
  --rose-ring: rgba(255, 126, 168, 0.34);

  --amber: #eab986;
  --amber-soft: rgba(234, 185, 134, 0.16);

  --plum: #c49bff;
  --plum-soft: rgba(196, 155, 255, 0.16);

  --border-subtle: rgba(255, 178, 204, 0.16);
  --border-strong: rgba(255, 148, 184, 0.42);

  --shadow-card: 0 12px 34px rgba(10, 4, 8, 0.48), 0 1px 0 rgba(255, 232, 240, 0.05) inset;
  --shadow-hover: 0 10px 22px rgba(228, 86, 132, 0.22), 0 0 0 1px rgba(255, 148, 184, 0.34);
  --shadow-topbar: 0 5px 20px rgba(10, 4, 8, 0.46);

  --mark-bg: rgba(255, 126, 168, 0.34);
  --mark-ink: #ffffff;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-sm: 8px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "Georgia", serif;
}

/* Alternate Theme: 「草莓可可白昼」 Strawberry Milk & Espresso Editorial Zine */
html[data-theme="day"] {
  --bg-base: #fff7f9;
  --veil-gradient: radial-gradient(
    ellipse 74% 86% at 50% 42%,
    rgba(255, 251, 252, 0.88) 0%,
    rgba(255, 244, 247, 0.66) 60%,
    rgba(255, 234, 241, 0.30) 100%
  );

  --surface-card: rgba(255, 255, 255, 0.96);
  --surface-card-strong: rgba(255, 255, 255, 0.99);
  --surface-soft: rgba(255, 243, 247, 0.96);
  --surface-hover: rgba(255, 232, 240, 0.98);
  --surface-topbar: rgba(255, 252, 253, 0.96);

  --ink-primary: #2d1c21;       /* Rich espresso cocoa — >14:1 on cream white */
  --ink-secondary: #6e4e58;     /* Warm cocoa-mauve — >6.5:1 */
  --ink-muted: #93717c;

  --rose: #df4d7d;
  --rose-deep: #c53766;
  --rose-solid: #df4d7d;
  --rose-soft: rgba(223, 77, 125, 0.10);
  --rose-ring: rgba(223, 77, 125, 0.28);

  --amber: #b8763e;
  --amber-soft: rgba(184, 118, 62, 0.14);

  --plum: #7f58c4;
  --plum-soft: rgba(127, 88, 196, 0.12);

  --border-subtle: rgba(168, 92, 118, 0.16);
  --border-strong: rgba(223, 77, 125, 0.36);

  --shadow-card: 0 8px 26px rgba(105, 48, 68, 0.08), 0 1px 4px rgba(105, 48, 68, 0.04);
  --shadow-hover: 0 8px 20px rgba(223, 77, 125, 0.15), 0 1px 4px rgba(105, 48, 68, 0.05);
  --shadow-topbar: 0 3px 16px rgba(105, 48, 68, 0.06);

  --mark-bg: rgba(223, 77, 125, 0.18);
  --mark-ink: #a82452;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--bg-base); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background: transparent;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
button, input, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ==========================================================================
   Layered Background Stage
   ========================================================================== */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-base);
  contain: strict;
  transform: translateZ(0);
}

.bg-night-art {
  position: absolute;
  inset: 0;
  background-image: url("./assets/bg_night.jpg");
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.bg-day-art {
  position: absolute;
  inset: 0;
  background-color: #fff6f8;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 188, 212, 0.42) 0%, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(255, 198, 218, 0.44) 0%, transparent 40%),
    radial-gradient(circle at 86% 14%, rgba(246, 216, 190, 0.32) 0%, transparent 32%),
    radial-gradient(rgba(228, 146, 174, 0.24) 1.2px, transparent 1.2px);
  background-size: auto, auto, auto, 26px 26px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

html[data-theme="day"] .bg-night-art { opacity: 0; }
html[data-theme="day"] .bg-day-art { opacity: 1; }

.day-ornament {
  position: absolute;
  width: 340px;
  height: 340px;
  pointer-events: none;
}

.day-ornament-tl { top: 0; left: 0; }
.day-ornament-br { bottom: 0; right: 0; }

.bg-readability-veil {
  position: absolute;
  inset: 0;
  background: var(--veil-gradient);
  transition: background 0.45s ease;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface-topbar);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-topbar);
  contain: layout style;
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  box-shadow: 0 2px 10px rgba(255, 126, 168, 0.24);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-name { font-weight: 700; font-size: 14.5px; letter-spacing: 0.01em; }
.brand-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--rose);
  font-weight: 500;
}

/* Mini Animated Audio Equalizer */
.eq-mini, .eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.eq-mini i, .eq-bars i {
  display: block;
  width: 2.2px;
  border-radius: 2px;
  background: var(--rose);
  animation: eqPulse 1.2s ease-in-out infinite;
}

.eq-mini i:nth-child(1), .eq-bars i:nth-child(1) { height: 5px; animation-delay: 0s; }
.eq-mini i:nth-child(2), .eq-bars i:nth-child(2) { height: 10px; animation-delay: 0.25s; }
.eq-mini i:nth-child(3), .eq-bars i:nth-child(3) { height: 7px; animation-delay: 0.45s; }
.eq-bars i:nth-child(4) { height: 9px; animation-delay: 0.15s; }

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

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

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card-strong);
  color: var(--ink-primary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s, background 0.16s, transform 0.14s;
}

.pill-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.pill-icon { color: var(--rose); font-size: 13px; }

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #e45684 0%, #f07b9f 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(228, 86, 132, 0.30);
  transition: transform 0.14s, filter 0.18s;
}

.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.live-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #ffe0ec;
  box-shadow: 0 0 8px #ffe0ec;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .eq-mini i, .eq-bars i, .live-dot, .vinyl-disc.is-spinning { animation: none !important; }
}

/* ==========================================================================
   Main Container & Polaroid Vinyl Stage Hero (Distinct from Maggie!)
   ========================================================================== */
.page-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 18px 72px;
}

.hero-stage {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 20px 26px 18px;
  margin-bottom: 14px;
  overflow: hidden;
  contain: layout style;
}

.hero-stage.is-offscreen .vinyl-disc.is-spinning,
.hero-stage.is-offscreen .eq-bars i {
  animation-play-state: paused;
}

/* Dotted zine border motif echoing Fishbone's official songlist Polaroid */
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 16px;
  border: 1px dashed var(--border-subtle);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 266px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

/* Left: Polaroid + Peeking Spinning Vinyl Disc */
.vinyl-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vinyl-stage-wrap {
  position: relative;
  width: 248px;
  height: 206px;
  display: flex;
  align-items: center;
}

.vinyl-disc {
  position: absolute;
  right: 4px;
  top: 13px;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 2px solid rgba(255, 200, 218, 0.24);
  background:
    radial-gradient(circle at center, #2a1d22 0%, #120b0e 42%, #1d1418 58%, #0f090b 75%, #23181d 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.vinyl-disc:hover { transform: translateX(6px); }

.vinyl-disc.is-spinning {
  animation: spinVinyl 16s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-grooves {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 214, 228, 0.09) 0px,
    rgba(255, 214, 228, 0.09) 1px,
    transparent 1.5px,
    transparent 5px
  );
}

.vinyl-label {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f17aa2, #d84b7a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff6f8;
  box-shadow: inset 0 0 0 2px rgba(255, 240, 245, 0.45);
}

.vinyl-label-title { font-size: 7.5px; font-weight: 800; letter-spacing: 0.08em; }
.vinyl-label-sub { font-size: 6px; opacity: 0.85; margin-top: 1px; }
.vinyl-spindle {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1a1115;
  border: 1.5px solid #ffe4ee;
}

.polaroid-card {
  position: relative;
  z-index: 2;
  width: 168px;
  padding: 7px 7px 10px;
  border-radius: 8px;
  background: #fffdfb;
  color: #362228;
  box-shadow: 0 12px 28px rgba(10, 4, 8, 0.34);
  transform: rotate(-2.2deg);
  transition: transform 0.22s ease;
}

.polaroid-card:hover { transform: rotate(0deg) translateY(-2px); }

.polaroid-photo-wrap {
  position: relative;
  width: 100%;
  height: 158px;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(110, 68, 82, 0.14);
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.polaroid-sparkle {
  position: absolute;
  top: 6px;
  right: 7px;
  color: #e45684;
  font-size: 14px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

.polaroid-caption {
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  padding: 0 2px;
  white-space: nowrap;
}

.polaroid-sign {
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 700;
  color: #3d242c;
  white-space: nowrap;
}

.polaroid-freq {
  font-size: 9.5px;
  font-weight: 600;
  color: #d3557f;
  white-space: nowrap;
}

.portrait-switcher {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  gap: 2px;
}

.portrait-tab {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.portrait-tab.active {
  background: var(--rose-solid);
  color: #ffffff;
}

/* Right: Radio Editorial Bio */
.radio-tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.radio-onair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--rose-soft);
  border: 1px solid var(--border-strong);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 700;
}

.zine-chip {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 500;
}

.hero-heading-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle-en {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--amber);
}

/* Signature Gaze Eye-Strip Bar */
.eye-banner-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 6px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.eye-banner-img {
  width: 158px;
  height: 36px;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
}

.eye-banner-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  flex: 1;
  min-width: 0;
}

.bio-quote {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.bio-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-notice {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.telemetry-strip {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.tele-item { display: inline-flex; align-items: baseline; gap: 4px; }
.tele-item strong { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--rose-deep); }
.tele-item span { font-size: 12.5px; color: var(--ink-secondary); }
.tele-sep { color: var(--ink-muted); opacity: 0.45; }

.hero-quick-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.room-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.room-copy-pill strong { color: var(--ink-primary); font-variant-numeric: tabular-nums; }
.room-copy-pill span {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 600;
}

.room-copy-pill:hover { border-color: var(--border-strong); background: var(--surface-hover); }

.ghost-link {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--rose-deep);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  transition: background 0.16s, border-color 0.16s;
}

.ghost-link:hover { background: var(--rose-soft); border-color: var(--border-strong); }

/* ==========================================================================
   Always-Sticky Compact Jukebox Command Panel
   ========================================================================== */
.controls-panel {
  position: sticky;
  top: 52px;
  z-index: 30;
  border-radius: var(--radius-lg);
  background: var(--surface-card-strong);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 12px 14px 10px;
  margin-bottom: 12px;
  contain: layout style;
}

.search-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.search-box { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.search-icon { position: absolute; left: 12px; color: var(--ink-muted); pointer-events: none; }

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 54px 0 38px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--ink-primary);
  font-size: 14.5px;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.search-input::placeholder { color: var(--ink-muted); }
.search-input:focus {
  outline: none;
  border-color: var(--rose);
  background: var(--surface-card-strong);
  box-shadow: 0 0 0 3.5px var(--rose-ring);
}
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-shortcut {
  position: absolute;
  right: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--ink-muted);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jukebox-random-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, var(--rose-soft), var(--amber-soft));
  color: var(--rose-deep);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.14s, background 0.18s, color 0.18s;
}

.jukebox-random-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e45684, #ec836b);
  color: #ffffff;
  border-color: transparent;
}

.filter-collapse-btn {
  height: 40px;
  padding: 0 11px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-collapse-btn:hover { border-color: var(--border-strong); color: var(--ink-primary); }

/* Random Spotlight */
.random-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--rose-soft), var(--amber-soft));
  border: 1.5px solid var(--border-strong);
}

.random-kicker { display: block; font-size: 11.5px; font-weight: 700; color: var(--rose); }
.random-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.random-title { font-size: 16.5px; font-weight: 700; }
.random-artist { font-size: 13px; color: var(--ink-secondary); }
.random-tags { display: inline-flex; gap: 5px; }
.random-spotlight-actions { display: flex; align-items: center; gap: 7px; }

.random-copy-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: var(--rose-solid);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.random-reroll-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.random-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 18px;
  cursor: pointer;
}

/* Filters Body */
.filters-body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 9px; }

.category-tabs, .fast-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar, .fast-scroll::-webkit-scrollbar { display: none; }

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-tab:hover { border-color: var(--border-strong); color: var(--ink-primary); background: var(--surface-hover); }

.cat-tab.active {
  background: linear-gradient(135deg, #e45684 0%, #f07b9f 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(228, 86, 132, 0.28);
}

.cat-tab .tab-count { font-size: 11.5px; opacity: 0.80; font-variant-numeric: tabular-nums; }
.cat-tab.tab-fav:not(.active) { border-color: var(--border-strong); color: var(--rose-deep); }

.fast-strip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fast-label { font-size: 11.5px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; min-width: 48px; }
.fast-scroll { gap: 5px; flex: 1; }

.fast-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.14s ease;
}

.fast-chip:hover { border-color: var(--border-strong); color: var(--ink-primary); background: var(--surface-hover); }
.fast-chip.active { background: var(--rose-solid); border-color: var(--rose-solid); color: #ffffff; font-weight: 600; }
.fast-chip-count { font-size: 11px; opacity: 0.72; }

.az-btn {
  min-width: 26px;
  height: 24px;
  padding: 0 5px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}

.az-btn:hover { border-color: var(--border-strong); color: var(--rose-deep); background: var(--surface-hover); }
.az-btn.active { background: var(--rose-solid); color: #ffffff; border-color: var(--rose-solid); }

/* Subtoolbar */
.subtoolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.subtoolbar-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.length-pills { display: flex; align-items: center; gap: 3px; }

.sub-pill {
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.sub-pill:hover { background: var(--surface-soft); color: var(--ink-primary); }
.sub-pill.active { background: var(--rose-soft); border-color: var(--border-strong); color: var(--rose-deep); font-weight: 600; }

.clear-all-pill {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.subtoolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.result-counter { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.sort-select {
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.view-switcher {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
}

.view-btn {
  border: none;
  background: transparent;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}

.view-btn.active {
  background: var(--surface-card-strong);
  color: var(--rose-deep);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   View 1: High-Density Vinyl Track Cards (4-col / 3-col / 2-col)
   ========================================================================== */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 9px;
}

.song-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 10px 12px 9px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.14s ease, background-color 0.14s ease;
  text-align: left;
  min-width: 0;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: 220px 66px;
}

.song-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--rose), var(--amber));
  opacity: 0;
  transition: opacity 0.15s ease;
}

.song-card:hover {
  transform: translateY(-1.5px);
  border-color: var(--border-strong);
  background: var(--surface-card-strong);
  box-shadow: var(--shadow-hover);
}

.song-card:hover::before { opacity: 1; }

.song-card.is-copied {
  border-color: #2fb884;
  box-shadow: 0 0 0 2.5px rgba(47, 184, 132, 0.28);
}

.song-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.song-title-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.track-no {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
  flex-shrink: 0;
}

.song-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: background 0.14s, color 0.14s, opacity 0.14s, transform 0.14s;
}

.song-card:hover .fav-btn, .song-row:hover .fav-btn, .fav-btn.is-fav { opacity: 1; }
.fav-btn:hover { background: var(--rose-soft); color: var(--rose); transform: scale(1.1); }
.fav-btn.is-fav { color: var(--rose); background: var(--rose-soft); }

.song-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.song-artist {
  font-size: 12.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.song-meta-right { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.badge-style { background: var(--surface-soft); color: var(--ink-secondary); }
.badge-gufeng { background: var(--amber-soft); color: var(--amber); }
.badge-yueyu { background: var(--plum-soft); color: var(--plum); }
.badge-lang { background: var(--rose-soft); color: var(--rose-deep); }

.card-copy-badge {
  display: none;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--rose-solid);
  color: #ffffff;
  white-space: nowrap;
}

.song-card:hover .card-default-tags { display: none; }
.song-card:hover .card-copy-badge { display: inline-flex; }
.song-card.is-copied .card-default-tags { display: none; }
.song-card.is-copied .card-copy-badge { display: inline-flex; background: #229f70; color: #ffffff; }

.copy-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-deep);
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--rose-soft);
  white-space: nowrap;
}

.song-row:hover .copy-pill { background: var(--rose-solid); color: #ffffff; }
.song-row.is-copied .copy-pill { background: #229f70; color: #ffffff; }

mark { background: var(--mark-bg); color: var(--mark-ink); padding: 0 2px; border-radius: 3px; }

/* ==========================================================================
   View 2: Single-Line Vinyl Tracklist
   ========================================================================== */
.song-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  contain: layout style;
}

.song-list-head {
  display: grid;
  grid-template-columns: 50px minmax(150px, 1.5fr) minmax(110px, 1fr) 120px 98px;
  gap: 10px;
  padding: 9px 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.song-row {
  display: grid;
  grid-template-columns: 50px minmax(150px, 1.5fr) minmax(110px, 1fr) 120px 98px;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background-color 0.12s ease;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 42px;
}

.song-row:last-child { border-bottom: none; }
.song-row:hover { background: var(--surface-hover); }
.song-row.is-copied { background: var(--rose-soft); }

.row-index { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.row-title { font-size: 14.5px; font-weight: 700; color: var(--ink-primary); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-artist { font-size: 13px; color: var(--ink-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-tags { display: flex; align-items: center; gap: 4px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

/* ==========================================================================
   View 3: Grouped Songbook Overview
   ========================================================================== */
.song-grouped { display: flex; flex-direction: column; gap: 14px; }

.group-block {
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--border-subtle);
}

.group-title { margin: 0; font-family: var(--font-serif); font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.group-star { color: var(--rose); }
.group-count { font-size: 12px; font-weight: 600; color: var(--ink-muted); padding: 1px 8px; border-radius: 999px; background: var(--surface-soft); }
.group-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.song-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card-strong);
  cursor: pointer;
  transition: transform 0.13s, border-color 0.15s, background 0.15s;
}

.song-chip:hover { transform: translateY(-1px); border-color: var(--rose); background: var(--surface-hover); }
.song-chip.is-copied { border-color: #229f70; background: rgba(34, 159, 112, 0.15); }
.chip-title { font-size: 14px; font-weight: 700; color: var(--ink-primary); }
.chip-artist { font-size: 11.5px; color: var(--ink-muted); }

/* ==========================================================================
   Empty State, Footer, Back to Top, Toast & Modal
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.empty-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 6px; font-size: 17.5px; }
.empty-state p { margin: 0 auto 16px; max-width: 440px; font-size: 13.5px; color: var(--ink-secondary); }

.site-footer { max-width: 1140px; margin: 0 auto 28px; padding: 0 18px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}

.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--border-strong); }
.footer-title { font-weight: 700; font-size: 14px; }
.footer-meta { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.footer-right { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--rose-deep); font-weight: 600; }
.footer-link-btn { border: none; background: none; padding: 0; font-size: inherit; font-weight: inherit; color: inherit; cursor: pointer; }
.footer-right a:hover, .footer-link-btn:hover { text-decoration: underline; }

.back-top-btn {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 35;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-card-strong);
  color: var(--rose-deep);
  font-size: 16px;
  font-weight: 700;
  opacity: 0.86;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.back-top-btn:hover { opacity: 1; background: var(--rose-solid); color: #ffffff; }

.toast-container { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; pointer-events: none; }
.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fdf2f5;
  color: #2b1820;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(10, 4, 8, 0.42);
  border: 1px solid rgba(255, 148, 184, 0.55);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="day"] .toast { background: #2d1c21; color: #fff7f9; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 9, 13, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: var(--surface-card-strong);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(10, 4, 8, 0.45);
  padding: 22px 24px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-subtle);
  margin-bottom: 16px;
}

.modal-kicker { font-size: 12px; font-weight: 700; color: var(--rose); }
.modal-header h2 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 21px; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--ink-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-block { margin-bottom: 16px; }
.modal-block:last-child { margin-bottom: 0; }
.modal-block h3 { margin: 0 0 8px; font-size: 15px; }

.notice-callout {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--rose);
  background: var(--surface-soft);
  font-size: 13.5px;
  color: var(--ink-primary);
  line-height: 1.65;
}

.guide-list { margin: 0; padding-left: 18px; color: var(--ink-secondary); font-size: 13.5px; line-height: 1.72; }
.guide-list code { padding: 1px 6px; border-radius: 5px; background: var(--rose-soft); color: var(--rose-deep); font-size: 12.5px; }

.modal-meta-row {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.68;
}

/* ==========================================================================
   Responsive Design (4-col desktop / 3-col split-pane / 2-col mobile)
   ========================================================================== */
@media (max-width: 960px) {
  .song-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
  .hero-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
  .vinyl-stage-wrap { transform: scale(0.92); transform-origin: left center; }
}

@media (max-width: 720px) {
  .topbar-inner { padding: 7px 12px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-avatar { width: 32px; height: 32px; }
  .brand-name { font-size: 13.5px; }
  .brand-sub { font-size: 10.5px; }
  .topbar-actions { gap: 5px; }

  #copyModeBtn, #themeLabel, #guideOpenBtn span:last-child { display: none; }
  #themeToggleBtn, #guideOpenBtn { width: 32px; height: 32px; padding: 0; justify-content: center; }
  .primary-btn { padding: 6px 11px; font-size: 12px; }

  .page-container { padding: 12px 12px 68px; }
  .hero-stage { padding: 16px 14px 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .vinyl-stage-wrap { transform: none; justify-content: center; margin: 0 auto; }
  .radio-tag-row, .hero-heading-row, .hero-meta-bar, .telemetry-strip, .hero-quick-links { justify-content: center; }

  .eye-banner-box { flex-direction: column; border-radius: var(--radius-md); padding: 8px 10px; gap: 6px; }
  .eye-banner-img { width: 100%; max-width: 240px; height: 38px; }
  .eye-banner-caption { justify-content: center; }

  .controls-panel { top: 48px; padding: 10px 11px 8px; }
  .search-input { font-size: 14px; height: 38px; padding-right: 36px; }
  .search-shortcut { display: none; }
  .jukebox-random-btn, .filter-collapse-btn { height: 38px; padding: 0 10px; font-size: 12.5px; }

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

  .song-list-head { display: none; }
  .song-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 9px 11px; }
  .row-index, .row-tags { display: none; }
  .row-artist { font-size: 12px; max-width: 92px; text-align: right; }
}

@media (max-width: 440px) {
  .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .song-card { padding: 9px 10px 8px; }
  .song-title { font-size: 14px; }
  .song-artist { font-size: 11.5px; }
  .track-no { display: none; }
  .badge { font-size: 10.5px; padding: 0 5px; }
}
