/* ==========================================================================
   麻吉_maggie · 星光魔法歌单 (High-Density & High-Readability Edition)
   ========================================================================== */

:root {
  /* Light Theme: 「月光白昼」 Moonlit Sapphire Porcelain */
  --bg-base: #eef3fb;
  --veil-gradient: radial-gradient(
    ellipse 74% 86% at 50% 42%,
    rgba(250, 252, 255, 0.85) 0%,
    rgba(244, 248, 255, 0.64) 58%,
    rgba(235, 242, 254, 0.24) 100%
  );

  --surface-card: rgba(255, 255, 255, 0.93);
  --surface-card-strong: rgba(255, 255, 255, 0.97);
  --surface-soft: rgba(242, 246, 255, 0.90);
  --surface-hover: rgba(232, 240, 255, 0.96);
  --surface-topbar: rgba(252, 253, 255, 0.88);

  --ink-primary: #161b33;
  --ink-secondary: #4a5578;
  --ink-muted: #6c7799;

  --sapphire: #2f5ee5;
  --sapphire-deep: #2146b8;
  --sapphire-soft: rgba(47, 94, 229, 0.10);
  --sapphire-ring: rgba(47, 94, 229, 0.28);

  --lavender: #7c6bf0;
  --lavender-soft: rgba(124, 107, 240, 0.11);

  --gold: #b5945b;
  --gold-soft: rgba(181, 148, 91, 0.15);

  --rose-pink: #d95b84;
  --rose-soft: rgba(217, 91, 132, 0.11);

  --border-subtle: rgba(59, 92, 184, 0.14);
  --border-strong: rgba(47, 94, 229, 0.34);

  --shadow-card: 0 8px 28px rgba(30, 50, 110, 0.07), 0 1px 4px rgba(30, 50, 110, 0.04);
  --shadow-hover: 0 8px 20px rgba(47, 94, 229, 0.14), 0 1px 4px rgba(30, 50, 110, 0.06);
  --shadow-topbar: 0 3px 16px rgba(30, 50, 110, 0.06);

  --mark-bg: rgba(47, 94, 229, 0.18);
  --mark-ink: #1a3da6;

  --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;
}

/* Dark Theme: 「星夜结界」 Starlight Sapphire Midnight */
html[data-theme="night"] {
  --bg-base: #0b1024;
  --veil-gradient: radial-gradient(
    ellipse 72% 86% at 50% 42%,
    rgba(11, 16, 36, 0.74) 0%,
    rgba(13, 20, 44, 0.50) 58%,
    rgba(11, 16, 36, 0.20) 100%
  );

  --surface-card: rgba(17, 24, 50, 0.89);
  --surface-card-strong: rgba(21, 30, 62, 0.96);
  --surface-soft: rgba(26, 37, 74, 0.86);
  --surface-hover: rgba(36, 52, 102, 0.94);
  --surface-topbar: rgba(13, 19, 41, 0.88);

  --ink-primary: #f2f5ff;
  --ink-secondary: #b6c2e6;
  --ink-muted: #8b98c4;

  --sapphire: #73a2ff;
  --sapphire-deep: #98bcff;
  --sapphire-soft: rgba(115, 162, 255, 0.16);
  --sapphire-ring: rgba(115, 162, 255, 0.34);

  --lavender: #b39eff;
  --lavender-soft: rgba(179, 158, 255, 0.16);

  --gold: #dfc088;
  --gold-soft: rgba(223, 192, 136, 0.16);

  --rose-pink: #ff8ab0;
  --rose-soft: rgba(255, 138, 176, 0.16);

  --border-subtle: rgba(140, 174, 255, 0.18);
  --border-strong: rgba(140, 174, 255, 0.44);

  --shadow-card: 0 12px 34px rgba(4, 7, 20, 0.46), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-hover: 0 10px 24px rgba(46, 98, 240, 0.26), 0 0 0 1px rgba(140, 174, 255, 0.34);
  --shadow-topbar: 0 5px 20px rgba(4, 7, 20, 0.45);

  --mark-bg: rgba(115, 162, 255, 0.32);
  --mark-ink: #ffffff;
}

/* 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 VTuber Background Stage
   ========================================================================== */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-base);
}

.bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 0.55s ease;
}

.bg-image-day {
  background-image: url("./assets/bg_day.jpg");
  opacity: 1;
}

.bg-image-night {
  background-image: url("./assets/bg_night.jpg");
  opacity: 0;
}

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

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

.bg-sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sparkle-mote {
  position: absolute;
  color: var(--sapphire);
  opacity: 0;
  font-size: 12px;
  user-select: none;
  animation: floatMote var(--dur, 11s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes floatMote {
  0%, 100% { transform: translateY(10px) scale(0.75); opacity: 0; }
  25% { opacity: 0.40; }
  50% { transform: translateY(-18px) scale(1.05); opacity: 0.62; }
  80% { opacity: 0.22; }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle-mote, .live-dot { animation: none !important; }
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface-topbar);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-topbar);
}

.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 8px rgba(47, 94, 229, 0.16);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-weight: 700;
  font-size: 14.5px;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--sapphire);
  font-weight: 500;
}

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

.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.18s, background 0.18s, transform 0.14s;
}

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

.pill-btn:focus-visible,
.primary-btn:focus-visible,
.magic-random-btn:focus-visible,
.portrait-tab:focus-visible,
.cat-tab:focus-visible,
.sub-pill:focus-visible,
.view-btn:focus-visible,
.fast-chip:focus-visible,
.az-btn:focus-visible {
  outline: 2px solid var(--sapphire);
  outline-offset: 2px;
}

.pill-icon {
  color: var(--sapphire);
  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, #2f5ee5 0%, #5c6ef5 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(47, 94, 229, 0.26);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(47, 94, 229, 0.34);
  filter: brightness(1.05);
}

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

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

/* ==========================================================================
   Main Page Container
   ========================================================================== */
.page-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 18px 72px;
}

/* ==========================================================================
   Compact Hero Showcase Card
   ========================================================================== */
.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 20px 24px 18px;
  margin-bottom: 14px;
}

.hero-banner-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background-image: url("./assets/banner.jpg");
  background-size: cover;
  background-position: 14% center;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  pointer-events: none;
}

html[data-theme="night"] .hero-banner-strip { opacity: 0.28; }

.hero-filigree {
  position: absolute;
  top: 10px;
  width: 28px;
  height: 28px;
  border-top: 1.5px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

.hero-filigree-tl { left: 10px; border-left: 1.5px solid var(--gold); border-top-left-radius: 10px; }
.hero-filigree-tr { right: 10px; border-right: 1.5px solid var(--gold); border-top-right-radius: 10px; }

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

.hero-portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.portrait-frame {
  position: relative;
  width: 186px;
  height: 200px;
  border-radius: 18px;
  padding: 5px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(190, 214, 255, 0.55), rgba(210, 195, 255, 0.5));
  box-shadow: 0 10px 26px rgba(42, 74, 175, 0.15);
}

html[data-theme="night"] .portrait-frame {
  background: linear-gradient(145deg, rgba(115, 162, 255, 0.42), rgba(179, 158, 255, 0.25), rgba(223, 192, 136, 0.35));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  display: block;
  background: #edf2fc;
}

.portrait-img.is-chibi {
  object-fit: contain;
  background: linear-gradient(180deg, #f3f7ff 0%, #e8effd 100%);
  padding: 6px;
}

.portrait-crest {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f5ee5, #8373f5);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(47, 94, 229, 0.34);
}

.portrait-mini-badge {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--surface-card-strong);
  box-shadow: 0 5px 14px rgba(24, 38, 86, 0.22);
}

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

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

.portrait-tab.active {
  background: var(--sapphire);
  color: #ffffff;
  font-weight: 600;
}

html[data-theme="night"] .portrait-tab.active { color: #0b1024; }

.hero-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.kicker-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sapphire-soft), var(--lavender-soft));
  border: 1px solid var(--border-strong);
  color: var(--sapphire-deep);
  font-size: 12px;
  font-weight: 600;
}

.style-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-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.2;
}

.hero-title-en {
  font-family: "Georgia", serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero-quote {
  margin: 0 0 11px;
  padding: 8px 13px;
  border-left: 3px solid var(--sapphire);
  background: var(--surface-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 11px;
}

.info-tile {
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
}

.info-tile-clickable {
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.info-tile-clickable:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.info-tile-label {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.info-tile-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.4;
}

.info-mono {
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 7px;
}

.copy-hint {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sapphire-soft);
  color: var(--sapphire-deep);
}

.muted-note {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-secondary);
}

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

.stats-strip {
  display: flex;
  align-items: center;
  gap: 13px;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-num {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-accent { color: var(--sapphire); }
.stat-label { font-size: 12.5px; color: var(--ink-secondary); }
.stat-divider { width: 1px; height: 14px; background: var(--border-subtle); }

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

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

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

/* ==========================================================================
   Always-Sticky Compact Search & Fast-Find Command Bar
   ========================================================================== */
.controls-panel {
  position: sticky;
  top: 52px;
  z-index: 30;
  border-radius: var(--radius-lg);
  background: var(--surface-card-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 12px 14px 10px;
  margin-bottom: 12px;
}

.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 56px 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.18s, box-shadow 0.18s, background 0.18s;
}

.search-input::placeholder { color: var(--ink-muted); }

.search-input:focus {
  outline: none;
  border-color: var(--sapphire);
  background: var(--surface-card-strong);
  box-shadow: 0 0 0 3.5px var(--sapphire-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(--sapphire-soft);
  color: var(--sapphire-deep);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.magic-random-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 107, 240, 0.34);
  background: linear-gradient(135deg, rgba(47, 94, 229, 0.11), rgba(124, 107, 240, 0.15));
  color: var(--sapphire-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;
}

.magic-random-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2f5ee5 0%, #7c6bf0 100%);
  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;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

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

/* Random Spotlight Banner */
.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(--sapphire-soft), var(--lavender-soft));
  border: 1.5px solid var(--border-strong);
  animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.random-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sapphire);
}

.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(--sapphire);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

html[data-theme="night"] .random-copy-btn { color: #0b1024; }

.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 (Category + Hot Artists + A-Z) */
.filters-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 9px;
}

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

.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.16s ease;
}

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

.cat-tab.active {
  background: linear-gradient(135deg, #2f5ee5 0%, #5c6ef5 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 94, 229, 0.24);
}

.cat-tab .tab-count {
  font-size: 11.5px;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

.cat-tab.tab-new:not(.active) {
  border-color: rgba(124, 107, 240, 0.34);
  background: var(--lavender-soft);
  color: var(--sapphire-deep);
}

.cat-tab.tab-fav:not(.active) {
  border-color: rgba(217, 91, 132, 0.28);
  color: var(--rose-pink);
}

/* Fast-Find Strips (Hot Artists & A-Z Initials) */
.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;
  flex-shrink: 0;
  min-width: 48px;
}

.fast-scroll {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  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(--sapphire);
  border-color: var(--sapphire);
  color: #ffffff;
  font-weight: 600;
}

html[data-theme="night"] .fast-chip.active { color: #0b1024; }

.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;
  font-variant-numeric: tabular-nums;
  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(--sapphire-deep);
  background: var(--surface-hover);
}

.az-btn.active {
  background: var(--sapphire);
  color: #ffffff;
  border-color: var(--sapphire);
}

html[data-theme="night"] .az-btn.active { color: #0b1024; }

/* 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;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.sub-pill:hover { background: var(--surface-soft); color: var(--ink-primary); }

.sub-pill.active {
  background: var(--sapphire-soft);
  border-color: var(--border-strong);
  color: var(--sapphire-deep);
  font-weight: 600;
}

.clear-all-pill {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(217, 91, 132, 0.35);
  background: var(--rose-soft);
  color: var(--rose-pink);
  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;
  transition: background 0.14s, color 0.14s;
}

.view-btn.active {
  background: var(--surface-card-strong);
  color: var(--sapphire-deep);
  box-shadow: 0 1px 4px rgba(30, 50, 110, 0.10);
}

/* ==========================================================================
   View 1: High-Density Responsive Compact Card Grid (Default)
   - Desktop 1100px: 4 columns (~28–32 songs/screen!)
   - Split-pane 620px: 3 columns (~24–27 songs/screen!)
   - Mobile 390px: 2 columns (~18–20 songs/screen!)
   Zero empty white void inside cards!
   ========================================================================== */
.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);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(26, 44, 96, 0.04);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-align: left;
  min-width: 0;
}

.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(--sapphire), var(--lavender));
  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: #1f9d6c;
  box-shadow: 0 0 0 2.5px rgba(31, 157, 108, 0.24);
}

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

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

.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;
}

.new-dot-badge {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 0 5px;
  height: 17px;
  line-height: 17px;
  border-radius: 5px;
  background: linear-gradient(135deg, #2f5ee5, #7c6bf0);
  color: #ffffff;
}

.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-pink);
  transform: scale(1.1);
}

.fav-btn.is-fav {
  color: var(--rose-pink);
  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);
  line-height: 1.3;
  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;
}

/* Badges */
.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-new {
  background: linear-gradient(135deg, #2f5ee5, #7c6bf0);
  color: #ffffff;
}

.badge-lang {
  background: var(--sapphire-soft);
  color: var(--sapphire-deep);
}

.badge-style {
  background: var(--surface-soft);
  color: var(--ink-secondary);
}

.badge-gufeng {
  background: var(--gold-soft);
  color: #87662d;
}

html[data-theme="night"] .badge-gufeng { color: #edd09a; }

.badge-yueyu {
  background: var(--lavender-soft);
  color: #5b47c9;
}

html[data-theme="night"] .badge-yueyu { color: #cbbcff; }

/* On card hover, swap meta tags cleanly into a crisp "点歌" indicator */
.card-copy-badge {
  display: none;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--sapphire);
  color: #ffffff;
  white-space: nowrap;
}

html[data-theme="night"] .card-copy-badge { color: #0b1024; }

.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: #1f9d6c;
  color: #ffffff;
}

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

.song-row:hover .copy-pill {
  background: var(--sapphire);
  color: #ffffff;
}

html[data-theme="night"] .song-row:hover .copy-pill { color: #0b1024; }

.song-row.is-copied .copy-pill {
  background: #1f9d6c;
  color: #ffffff;
}

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

/* ==========================================================================
   View 2: Ultra-Compact Single-Line List View
   ========================================================================== */
.song-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.song-list-head {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1.5fr) minmax(110px, 1fr) 128px 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: 44px minmax(150px, 1.5fr) minmax(110px, 1fr) 128px 98px;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.14s ease;
}

.song-row:last-child { border-bottom: none; }
.song-row:hover { background: var(--surface-hover); }
.song-row.is-copied { background: var(--sapphire-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);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.row-title-text {
  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;
  flex-wrap: nowrap;
}

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

/* ==========================================================================
   View 3: Grouped Songbook Overview (Super Dense & Scannable)
   ========================================================================== */
.song-grouped {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.group-block {
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid 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(--sapphire); }

.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, box-shadow 0.15s;
}

.song-chip:hover {
  transform: translateY(-1px);
  border-color: var(--sapphire);
  background: var(--surface-hover);
  box-shadow: 0 4px 12px rgba(47, 94, 229, 0.12);
}

.song-chip.is-copied {
  border-color: #1f9d6c;
  background: rgba(31, 157, 108, 0.12);
}

.chip-title { font-size: 14px; font-weight: 700; color: var(--ink-primary); }
.chip-artist { font-size: 11.5px; color: var(--ink-muted); }

.chip-new-dot {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2f5ee5, #7c6bf0);
  padding: 0 5px;
  border-radius: 999px;
}

/* ==========================================================================
   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-chibi {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 16px;
  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-chibi {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.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(--sapphire-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(--sapphire-deep);
  font-size: 16px;
  font-weight: 700;
  opacity: 0.84;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}

.back-top-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--sapphire);
  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: #172042;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(10, 18, 48, 0.36);
  border: 1px solid rgba(140, 174, 255, 0.36);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: toastPop 0.2s ease;
}

html[data-theme="night"] .toast { background: #f2f6ff; color: #121a38; }

@keyframes toastPop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 16, 36, 0.56);
  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: 650px;
  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, 18, 48, 0.35);
  padding: 22px 24px;
}

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

.modal-kicker { font-size: 12px; font-weight: 700; color: var(--sapphire); }
.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; }

.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(--sapphire-soft);
  color: var(--sapphire-deep);
  font-size: 12.5px;
}

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

.perk-card {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
}

.perk-tier { font-weight: 700; font-size: 14px; color: var(--sapphire-deep); margin-bottom: 6px; }
.perk-admiral .perk-tier { color: var(--lavender); }
.perk-governor .perk-tier { color: var(--gold); }

.perk-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.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 — Keeps Multi-Column High Density Even on Narrow Panes!
   ========================================================================== */
@media (max-width: 960px) {
  .song-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }

  .hero-grid {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 18px;
  }

  .portrait-frame {
    width: 162px;
    height: 174px;
  }
}

@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: 11px; }
  .topbar-actions { gap: 5px; }

  #copyModeBtn { display: none; }
  #themeLabel { display: none; }
  #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-card { padding: 16px 14px 14px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .hero-kicker-row,
  .hero-title,
  .hero-footer-bar,
  .stats-strip,
  .hero-links {
    justify-content: center;
  }

  .hero-quote { text-align: left; }
  .info-cards-grid { grid-template-columns: 1fr; text-align: left; }

  /* Keep controls sticky & super compact on narrow panes / split-screens! */
  .controls-panel {
    top: 48px;
    padding: 10px 11px 8px;
  }

  .search-input { font-size: 14px; height: 38px; padding-right: 36px; }
  .search-shortcut { display: none; }
  .magic-random-btn, .filter-collapse-btn { height: 38px; padding: 0 10px; font-size: 12.5px; }

  /* Compact 2–3 columns even at 480–720px! */
  .song-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
  }

  /* Compact single-line list rows on narrow panes */
  .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-title { flex-direction: column; align-items: flex-start; gap: 1px; }
  .row-artist { font-size: 12px; max-width: 96px; text-align: right; }

  .perks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  /* Even on 390px phones, keep 2 crisp columns! */
  .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; }
  .badge { font-size: 10.5px; padding: 0 5px; }
}
