/* ===== VIPERMIX - FIGMA DESIGN SYSTEM ===== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #0a0a1a 0%, #1a0a2e 60%, #0a0a1a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Subtle bottom-heavy purple glow */
body::before {
  content: "";
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,91,245,0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== LAYOUT ===== */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* ===== FLASH MESSAGES ===== */
.flash-messages { margin-bottom: 16px; }
.flash {
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.flash-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.25); color: #22c55e; }
.flash-error   { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.25); color: #ef4444; }
.flash-info    { background: rgba(124,91,245,0.15); border: 1px solid rgba(124,91,245,0.25); color: #a78bfa; }
.flash-warning { background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.25); color: #fbbf24; }

/* ===== NAVIGATION BAR ===== */
.nav {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  margin-bottom: 36px;
  background: transparent;
  gap: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 40px;
}
.nav-brand img {
  height: 72px;
  width: 99px;
  object-fit: contain;
}

/* Center nav links */
.nav-center, .nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
.nav-center a, .nav-links a, .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 48px;
  padding: 6px 16px;
  border-radius: 12px;
  color: #d5d5d5;
  font-family: 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.nav-center a:hover, .nav-links a:hover, .nav-link:hover {
  color: rgba(255,255,255,0.95);
}
.nav-center a.active, .nav-links a.active, .nav-link.active {
  color: #7b57e4;
  font-weight: 700;
}

/* Right side */
.nav-right, .nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Language switcher pill (V6.50) — sits at the left of .nav-right. */
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(156, 90, 247, 0.5);
  background: transparent;
  color: #fff;
  font-family: 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.nav-lang-btn:hover {
  background: rgba(156, 90, 247, 0.15);
  border-color: #9c5af7;
}

/* Diamond pill */
.nav-diamond-pill, .nav-diamond {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #9c5af7;
  background: linear-gradient(38deg, #161b2a 0%, #1b243b 100%);
  font-family: 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-diamond-pill:hover { opacity: 0.85; }
.nav-diamond-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-diamond-icon {
  width: 14px;
  height: 12px;
  flex-shrink: 0;
}
.nav-diamond-amount {
  display: inline-block;
  width: 60px;
  text-align: right;
}
.nav-diamond-add {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* Upgrade / VIP / Login button (.nav-btn-login is logged-out-only and stays
   visible on mobile — it's the conversion CTA, not a candidate for dropdown
   consolidation). */
.nav-btn-upgrade, .nav-vip-btn, .nav-btn-vip, .nav-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 32px;
  padding: 6px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.nav-btn-upgrade:hover, .nav-vip-btn:hover, .nav-btn-vip:hover, .nav-btn-login:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* VIP-page-only "回到首页" — outlined with purple→blue gradient text */
.nav-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 32px;
  padding: 6px 16px;
  border-radius: 12px;
  border: 1px solid #9c5af7;
  background: transparent;
  font-family: 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  background-image: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}
.nav-btn-home:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Avatar */
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid #9c5af7;
  overflow: hidden;
}
.nav-avatar-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
}
/* V6.77 — uploaded photos fill the circle edge-to-edge; the 70%/contain
   sizing above is for the inset placeholder SVG, not real avatars. */
.nav-avatar-img.is-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.nav-avatar-vip { background: linear-gradient(135deg, #f59e0b, #f97316); }
.nav-avatar-admin { background: linear-gradient(135deg, #ef4444, #f97316); }

/* ── Header avatar dropdown (V6.12) ─────────────────────────────── */
/* The `.nav-user-dropdown` container sits inside `.nav-right`; the trigger
   is a button showing the avatar + chevron, and the menu is absolutely
   positioned below. Toggled by the vanilla-JS handler in base.html. */
.nav-user-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}
.nav-user-trigger .nav-avatar { cursor: pointer; }
.nav-user-chev {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s;
  flex-shrink: 0;
}
.nav-user-trigger[aria-expanded="true"] .nav-user-chev {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  padding: 8px 0;
  border-radius: 12px;
  border: 1px solid #9c5af7;
  background: linear-gradient(135deg, #1b243b 0%, #161b2a 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(156,90,247,0.15);
  z-index: 1000;
}
.nav-user-menu[hidden] { display: none; }

.nav-user-menu-item {
  display: block;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-user-menu-item:hover {
  background: rgba(156,90,247,0.18);
}
.nav-user-menu-sep {
  height: 1px;
  margin: 6px 12px;
  background: rgba(255,255,255,0.08);
}
.nav-user-menu-danger { color: #f87171; }
.nav-user-menu-danger:hover { background: rgba(248,113,113,0.12); }

/* Mobile-only dropdown rows (V6.50.8): pinned gradient CTA + language toggle.
   Hidden by default; revealed at the mobile breakpoint where the matching wide
   nav buttons (.nav-btn-upgrade / .nav-btn-vip / .nav-lang-btn) are hidden. */
.nav-mobile-only { display: none; }

.nav-user-menu-cta {
  display: block;
  margin: 4px 8px 8px;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  color: #fff;
  font-family: 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: calc(100% - 16px);
  box-shadow: 0 6px 18px rgba(156,90,247,0.3);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-user-menu-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Layout for the lang row applies only when it's visible (mobile). */
.nav-user-menu-lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 2px;
  font-size: 11px;
  font-weight: 700;
}
.nav-user-menu-lang-pill .opt {
  padding: 3px 9px;
  border-radius: 999px;
  color: rgba(255,255,255,0.5);
}
.nav-user-menu-lang-pill .opt.on {
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  color: #fff;
}

@media (max-width: 768px) {
  .nav-user-menu {
    right: 0;
    left: auto;
    min-width: 220px;
  }
  .nav-mobile-only { display: block; }
  .nav-user-menu-lang.nav-mobile-only {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}

/* ===== PAGE TITLES ===== */
.page-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
}

/* old section-title removed — using homepage figma version below */

/* ===== CATEGORY / FILTER PILLS ===== */
.cats {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cats::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.cat-btn:hover {
  background: rgba(124,91,245,0.12);
  border-color: rgba(124,91,245,0.3);
  color: rgba(255,255,255,0.8);
}
.cat-btn.active {
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  border-color: transparent;
  color: #fff;
}

/* ===== SONG GRID (5-COLUMN ALBUM ART) ===== */
/* ===== SONG GRID & CARDS ===== */
.song-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 24px;
}
.song-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.song-card {
  position: relative;
  display: block;
  color: #fff;
  border-radius: 12px;
  overflow: visible;
  min-width: 0;
}
.song-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.song-card-link:hover {
  transform: translateY(-6px);
}
.song-card-link:hover + .song-artist {
  transform: translateY(-6px);
}
.song-artist {
  transition: transform 0.25s ease;
}

.song-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 60px -10px rgba(124, 91, 245, 0.45),
    0 12px 32px -8px rgba(68, 125, 244, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.4);
}
.song-card-link:hover .song-cover {
  box-shadow:
    0 28px 80px -10px rgba(124, 91, 245, 0.6),
    0 16px 40px -8px rgba(68, 125, 244, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Gradient placeholder colors for album art */
.song-cover.c1 { background: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #9333ea 100%); }
.song-cover.c2 { background: linear-gradient(135deg, #ec4899 0%, #9333ea 50%, #7c3aed 100%); }
.song-cover.c3 { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #7c3aed 100%); }
.song-cover.c4 { background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%); }
.song-cover.c5 { background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%); }
.song-cover.c6 { background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #9333ea 100%); }

.song-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  font-size: 32px;
  border-radius: 12px;
  color: #fff;
}
.song-card-link:hover .song-play-overlay { opacity: 1; }

/* Song title - support both .song-name and .song-title */
.song-name, .song-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.5455px;
}

/* Marquee scroll on hover for overflowing card titles. The inner span only
   shifts when its width exceeds the container (min(0, cqi - 100%) clamps
   short titles to 0 movement), so titles that fit stay still. */
.song-title,
.hot-recommend-title {
  container-type: inline-size;
}
.song-title-inner {
  display: inline-block;
  white-space: nowrap;
}
.song-card-link:hover .song-title,
.hot-recommend-title-link:hover .hot-recommend-title {
  text-overflow: clip;
}
.song-card-link:hover .song-title-inner,
.hot-recommend-title-link:hover .song-title-inner {
  animation: title-marquee 6s linear infinite;
}
@keyframes title-marquee {
  0%        { transform: translateX(0); }
  45%, 55%  { transform: translateX(min(0px, calc(100cqi - 100%))); }
  100%      { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .song-card-link:hover .song-title-inner,
  .hot-recommend-title-link:hover .song-title-inner {
    animation: none;
  }
}
.song-artist {
  font-size: 16px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  line-height: 1.4;
  letter-spacing: 0.5455px;
}
.song-artist .artist-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.song-artist .verified-dot {
  flex-shrink: 0;
  margin-left: 0;
}
.song-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.song-price {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}
.song-downloads {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.song-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.badge-hot { background: rgba(239,68,68,0.85); color: #fff; }
.badge-new { background: rgba(34,197,94,0.85); color: #fff; }
.badge-vip { background: rgba(124,91,245,0.85); color: #fff; }

/* ===== 3-COLUMN MINI GRID (for recommendations below player) ===== */
.song-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* ===== RANKING PAGE ===== */
.rank-list {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
  text-decoration: none;
  color: #fff;
}
.rank-item:hover { background: rgba(255,255,255,0.07); }

.rank-num {
  font-size: 20px;
  font-weight: 800;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
}
.rank-num.top-1 { color: #fbbf24; font-size: 24px; }
.rank-num.top-2 { color: #94a3b8; font-size: 22px; }
.rank-num.top-3 { color: #f97316; font-size: 22px; }
/* Legacy aliases */
.rank-num.gold { color: #fbbf24; }
.rank-num.silver { color: #94a3b8; }
.rank-num.bronze { color: #f97316; }

.rank-fire {
  font-size: 16px;
  margin-left: 2px;
}

.rank-cover {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-artist { font-size: 12px; color: rgba(255,255,255,0.5); }

.rank-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.rank-download-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  transition: opacity 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.rank-download-btn:hover { opacity: 0.9; }

.rank-diamond-badge {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}
.rank-fav {
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s;
  color: rgba(255,255,255,0.3);
}
.rank-fav:hover { transform: scale(1.15); color: #ec4899; }
.rank-fav.active { color: #ec4899; }

.rank-purchased {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.rank-stat {
  text-align: right;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.rank-stat .count { font-size: 15px; font-weight: 700; color: #7c5bf5; }

/* ===== AUTH PAGES (LOGIN/REGISTER) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124,91,245,0.12), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(91,75,224,0.08), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.auth-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.auth-header .logo-area img {
  height: 40px;
  border-radius: 8px;
}
.auth-logo {
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.auth-brand { display: flex; align-items: center; gap: 8px; }
.auth-brand-text { font-size: 16px; font-weight: 700; background: linear-gradient(135deg, #7dd3fc, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.auth-card .logo-area {
  text-align: center;
  margin-bottom: 20px;
}
.auth-card .logo-area img {
  height: 60px;
  border-radius: 12px;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #1a1a2e;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.2s;
}
.form-input:focus {
  box-shadow: 0 0 0 2px rgba(124,91,245,0.4);
}
.form-input::placeholder {
  color: #999;
}

/* Dark input variant (for dark-themed forms) */
.form-input-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.form-input-dark:focus {
  border-color: rgba(124,91,245,0.5);
}
.form-input-dark::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(30,30,50,0.9);
  color: #fff;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
}

/* Password eye toggle wrapper */
.password-wrap {
  position: relative;
}
.password-wrap .form-input {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #999;
  padding: 4px;
}
.password-toggle:hover { color: #666; }

/* ===== BUTTONS ===== */
.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-gradient {
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
}
.btn-block {
  display: block; width: 100%;
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: #fff;
}

.btn-orange {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1a0800;
}

.btn-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
  width: auto;
  display: inline-block;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.auth-footer a {
  color: #7c5bf5;
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

.link-subtle { color: #f5a623; font-size: 12px; }
.link-subtle:hover { color: #f7b94d; }
.link-purple { color: #7c5bf5; font-weight: 600; }
.link-purple:hover { text-decoration: underline; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-right: 44px; }
.input-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  cursor: pointer; font-size: 16px; user-select: none;
}
.form-hint-right {
  text-align: right; margin-top: 6px;
}

/* ===== BANNER / HERO ===== */
.banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(124,91,245,0.2), rgba(91,75,224,0.15));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px 30px;
}
.banner h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.banner p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.banner-stats {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.banner-stat { text-align: center; }
.banner-stat .num {
  font-size: 24px;
  font-weight: 800;
  color: #fbbf24;
}
.banner-stat .label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ===== SEARCH BOX ===== */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.search-box input {
  flex: 1;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.search-box input:focus {
  border-color: rgba(124,91,245,0.4);
}
.search-box input::placeholder { color: rgba(255,255,255,0.35); }
.search-box button {
  padding: 0 24px;
  height: 44px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
}

/* ===== SONG LIST ROWS (My Music, etc.) ===== */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.song-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
  text-decoration: none;
  color: #fff;
}
.song-row:hover { background: rgba(255,255,255,0.07); }

.song-row-cover {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2438, #181225);
}
.song-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.song-row-cover img.is-default-cover {
  object-fit: contain;
  padding: 8px;
  opacity: 0.55;
}
.sr-c1 { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.sr-c2 { background: linear-gradient(135deg, #ec4899, #9333ea); }
.sr-c3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.sr-c4 { background: linear-gradient(135deg, #f97316, #ef4444); }

.song-row-info { flex: 1; min-width: 0; }
.song-row-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-row-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.song-row-meta .song-row-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.song-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.song-row-stats {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  font-size: 13px;
}
.song-row-dl {
  color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
}
.song-row-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.song-row-diamond { font-size: 14px; line-height: 1; }
.song-row-stats .earn { font-size: 12px; color: #fbbf24; }

.song-row-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.status-live     { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-pending  { background: rgba(251,191,36,0.15); color: #fbbf24; }
.status-rejected { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ===== TABS (My Music, Expenses, Top Up) ===== */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0;
}
.tab-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s;
  text-decoration: none;
}
.tab-btn:hover {
  color: rgba(255,255,255,0.8);
}
.tab-btn.active {
  color: #fff;
  border-bottom-color: #7c5bf5;
}

/* Sub-tabs (smaller, pill-style) */
.sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.sub-tab {
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.sub-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.07); }
.sub-tab.active { background: rgba(124,91,245,0.15); color: #7c5bf5; }

/* ===== MUSIC PLAYER PAGE ===== */
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.player-back,
.player-close {
  padding: 0;
  border: none;
  background: transparent;
  color: #d5d5d5;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: color 0.2s;
}
.player-back:hover,
.player-close:hover { color: #fff; }

.player-song-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5455px;
  line-height: 1.35;
  margin: 0 0 4px;
}
/* Metadata row: artist+crown · category · MP3 filesize  (Figma 30:2420
   sized this at 32/24px with 60px bottom gap — compacted in V6.94.2 to
   18/14px + 20px gap so the player block stops dominating the fold). */
.player-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.player-meta-artist {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.5455px;
  line-height: 1.4;
}
.player-meta-artist .artist-link {
  color: #999;
  text-decoration: none;
}
.player-meta-artist .artist-link:hover { color: #fff; }
.player-meta-item {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.5455px;
  line-height: 1.4;
}
/* Category in the meta row is a link to /?cat=<id> (V6.9) */
a.player-meta-link {
  text-decoration: none;
  transition: color 0.2s;
}
a.player-meta-link:hover { color: #fff; }
/* Section title on the player page's 热门推荐 block. Figma had 40px;
   compacted in V6.94.2 to 28px to track the player-block tightening. */
.section-xl .section-title { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 0.5455px; }

/* Waveform area */
/* V6.50.18: removed dead CSS for the OLD player layout (.player-waveform-area,
   .waveform .bar, .play-btn-large, and a duplicate .player-art with
   width:160; height:160; display:flex; align-items:center). The current
   template uses .waveform-wrap > .waveform, .wave-bar, .play-btn, and
   the .player-art at line ~4403 below — those old rules were unused
   class names from a prior refactor BUT the duplicate .player-art kept
   leaking height:160 + align-items:center into the live .player-art,
   so the .player-cover (aspect-ratio:1, width:100%) overflowed 80px
   above and below its container — that's why the cover was bleeding
   into the title row and the play controls on mobile. */

.player-time {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.player-time strong { color: #fff; }
.player-time-row {
  display: flex; align-items: center; gap: 16px;
  margin: 0;
}
.player-time-text {
  font-size: 14px; color: #c6c6c6; font-weight: 400;
  font-family: 'Urbanist', 'PingFang SC', sans-serif;
  flex-shrink: 0; min-width: 36px;
}
.player-progress {
  flex: 1; height: 6px; border-radius: 9999px;
  background: #5e5757; position: relative;
}
.player-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%; border-radius: 9999px;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  pointer-events: none;
}
.player-progress-thumb {
  position: absolute; top: 50%; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .15s ease;
  pointer-events: none;
}
.player-progress:hover .player-progress-thumb,
.player-progress.dragging .player-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}
.player-progress-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 0;
  transform: translateX(-50%);
  padding: 4px 8px; border-radius: 6px;
  background: #1a1a2e; color: #fff;
  font-size: 12px; font-family: 'Urbanist', sans-serif;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s ease;
  z-index: 10;
}
.player-progress:hover .player-progress-tooltip,
.player-progress.dragging .player-progress-tooltip {
  opacity: 1;
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.download-btn {
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.download-btn:hover { opacity: 0.9; }
.download-btn.purchased {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  cursor: default;
}

.fav-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.fav-btn:hover { border-color: rgba(236,72,153,0.4); color: #ec4899; }
.fav-btn.active { color: #ec4899; border-color: rgba(236,72,153,0.4); background: rgba(236,72,153,0.1); }

/* Purchase states */
.purchase-confirm {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(124,91,245,0.1);
  border: 1px solid rgba(124,91,245,0.2);
  text-align: center;
  margin-bottom: 16px;
}
.purchase-success {
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.2);
  color: #22c55e;
  text-align: center;
  font-weight: 600;
  margin-bottom: 16px;
}
.purchase-error {
  color: #ef4444;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

/* ===== MY EXPENSES / HISTORY ===== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.hi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hi-buy   { background: rgba(239,68,68,0.12); }
.hi-topup { background: rgba(34,197,94,0.12); }

.hi-info { flex: 1; min-width: 0; }
.hi-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hi-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(124,91,245,0.12);
  color: #a78bfa;
  margin-top: 2px;
}
.hi-date {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.hi-amount {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.hi-amount.negative { color: #ef4444; }
.hi-amount.positive { color: #22c55e; }

/* ===== TOP UP PAGE ===== */
.topup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.topup-pkg {
  padding: 20px 12px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
  position: relative;
}
.topup-pkg:hover {
  background: rgba(124,91,245,0.08);
  border-color: rgba(124,91,245,0.25);
}
.topup-pkg.selected {
  background: rgba(124,91,245,0.12);
  border-color: rgba(124,91,245,0.5);
  box-shadow: 0 0 16px rgba(124,91,245,0.15);
}

.topup-pkg .pkg-diamond {
  font-size: 22px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 4px;
}
.topup-pkg .pkg-price {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.topup-pkg .pkg-bonus {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

/* Smaller bottom-row packages */
.topup-pkg.pkg-small {
  padding: 16px 10px;
}
.topup-pkg.pkg-small .pkg-diamond {
  font-size: 18px;
}

/* Payment method buttons */
.pay-section-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.pay-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.pay-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.pay-btn:hover { background: rgba(124,91,245,0.08); border-color: rgba(124,91,245,0.25); color: #fff; }
.pay-btn.active { background: rgba(124,91,245,0.12); border-color: rgba(124,91,245,0.4); color: #fff; }

/* Sub-payment methods */
.sub-pay-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.sub-pay-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.sub-pay-btn:hover { border-color: rgba(124,91,245,0.3); color: #fff; }
.sub-pay-btn.active { border-color: rgba(124,91,245,0.4); background: rgba(124,91,245,0.08); color: #fff; }

.pay-total {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}
.pay-total .amount {
  font-size: 24px;
  color: #fbbf24;
}

/* ===== CASH OUT / WITHDRAWAL ===== */
.withdraw-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.withdraw-stat-item { text-align: center; }
.withdraw-stat-item .stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fbbf24;
}
.withdraw-stat-item .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.withdraw-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
}

.withdraw-card {
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.withdraw-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.withdraw-top h3 { font-size: 16px; }

.withdraw-balance {
  font-size: 28px;
  font-weight: 800;
  color: #22c55e;
}
.withdraw-balance small {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.withdraw-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.withdraw-input-wrap .form-input {
  flex: 1;
}
.reset-btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.reset-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.withdraw-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.wm-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.wm-btn:hover, .wm-btn.active {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.3);
  color: #fff;
}

/* ===== WALLET (legacy, reused) ===== */
.wallet-card {
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.wallet-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.wallet-balance {
  font-size: 36px;
  font-weight: 800;
  color: #fbbf24;
}
.wallet-balance small {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
}

/* ===== VIP DASHBOARD (V6.17 — Figma 202:1291 / 202:1709 / 202:1896) ===== */

.vip-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Stats Card ── */
.vip-stats-card {
  border: 1px solid #9c5af7;
  border-radius: 12px;
  background: linear-gradient(20deg, #161b2a, #1b243b);
  padding: 40px 36px;
  margin-bottom: 60px;
}
.vip-stats-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.vip-stats-title {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.vip-stats-title-main {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.vip-stats-title-sub {
  font-size: 14px;
  color: #999;
}
.vip-stats-metric {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.vip-stats-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.vip-stats-metric-label {
  font-size: 14px;
  color: #999;
  margin-top: 2px;
}
.vip-info-icon {
  font-size: 13px;
  opacity: 0.6;
  cursor: help;
}
.vip-withdraw-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 12px;
  border: 1px solid #9c5af7;
  background: linear-gradient(50deg, #161b2a, #1b243b);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.vip-withdraw-btn:hover { opacity: 0.85; }

/* ── Section Heading ── */
.vip-section-heading {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
}

/* ── Tab Navigation ── */
.vip-tabs {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}
.vip-tab {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.vip-tab:hover { color: #ccc; }
.vip-tab.active { color: #7b57e4; }

/* ── Song List ── */
.vip-song-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

/* ── Song Row (3-zone layout per Figma 202:1750) ── */
.vip-song-row {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

/* ── Upload Row ── */
.vip-upload-row {
  text-decoration: none;
}
.vip-upload-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(72deg, #161b2a, #1b243b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.vip-zone-spacer {
  flex: 1;
  height: 52px;
}
/* Paired upload rows — two upload entries flexed side-by-side */
.vip-upload-pair-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 4px;
}
.vip-upload-pair-row > .vip-upload-row-pair {
  flex: 1 1 0;
  min-width: 0;
}
.vip-upload-row-pair:hover .vip-upload-cover {
  background: linear-gradient(72deg, #1c2142, #26325a);
  color: #c8b4ff;
}
.vip-upload-row-pair:hover .vip-song-name {
  color: #c8b4ff;
}
@media (max-width: 720px) {
  .vip-upload-pair-row { flex-direction: column; gap: 12px; }
}

/* ── Zone 1: Cover + Info ── */
.vip-zone-coverinfo {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 462px;
  flex-shrink: 0;
}
.vip-song-row[data-status="PENDING"] .vip-zone-coverinfo,
.vip-song-row[data-status="DRAFT"] .vip-zone-coverinfo,
.vip-song-row[data-status="REJECTED"] .vip-zone-coverinfo {
  opacity: 0.4;
}

/* Cover with blur shadow */
.vip-song-cover-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.vip-song-cover-blur {
  position: absolute;
  top: 7px;
  left: 4px;
  width: 73px;
  height: 73px;
  border-radius: 12px;
  overflow: hidden;
  filter: blur(110px);
  opacity: 0.6;
}
.vip-song-cover-blur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vip-song-cover {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(72deg, #161b2a, #1b243b);
  flex-shrink: 0;
}
.vip-song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Song info */
.vip-song-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.vip-song-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.55px;
  line-height: 1.4;
}
.vip-song-date {
  font-size: 16px;
  color: #999;
  letter-spacing: 0.55px;
  line-height: 1.4;
}

/* ── Zone 2: Stats or Reject Reason ── */
.vip-zone-middle {
  display: flex;
  align-items: center;
  height: 80px;
  flex-shrink: 0;
}
.vip-song-row[data-status="PENDING"] .vip-zone-middle,
.vip-song-row[data-status="DRAFT"] .vip-zone-middle {
  opacity: 0.4;
}

/* Per-song stats */
.vip-song-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}
.vip-song-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.vip-song-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.vip-song-stat-label {
  font-size: 14px;
  color: #999;
  white-space: nowrap;
}
.vip-diamond-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vip-diamond-wrap .diamond-icon {
  width: 14px;
  height: 12px;
  flex-shrink: 0;
}

/* Rejection reason */
.vip-song-reject-reason {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 465px;
}
.vip-reject-text {
  font-size: 24px;
  font-weight: 700;
  color: #ca2424;
}
.vip-reject-label {
  font-size: 14px;
  color: #999;
}

/* ── Zone 3: Actions (gear + button, flex fills remaining) ── */
.vip-zone-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}
/* Two-button variant (DRAFT / REJECTED): compact the buttons so they
   fit side-by-side without overlap. */
.vip-zone-actions.-pair { gap: 12px; }
.vip-zone-actions.-pair .vip-btn-gradient,
.vip-zone-actions.-pair .vip-btn-outlined,
.vip-zone-actions.-pair .vip-btn-delete { padding-left: 24px; padding-right: 24px; font-size: 14px; }
.vip-gear-icon {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  flex-shrink: 0;
}
.vip-gear-icon:hover { color: #fff; }

.vip-action-form {
  flex: 1;
  min-width: 0;
}

.vip-btn-outlined {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 6px 40px;
  border-radius: 12px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
  width: 100%;
}
.vip-btn-outlined:hover {
  background: rgba(255,255,255,0.05);
}

.vip-btn-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 6px 40px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(to right, #9c5af7 0%, #447df4 111.54%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
  width: 100%;
}
.vip-btn-gradient:hover { opacity: 0.9; }

.vip-btn-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 40px;
  border-radius: 12px;
  border: 1px solid #ca2424;
  background: transparent;
  color: #ca2424;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
  width: 100%;
}
.vip-btn-delete:hover {
  background: rgba(202,36,36,0.1);
}

.vip-empty {
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}

/* ── Bulk select (issue #46) ── */
.vip-song-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.vip-song-check input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #9c5af7;
}

.vip-bulk-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(28,18,52,0.96), rgba(18,12,36,0.96));
  border: 1px solid rgba(156,90,247,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-wrap: wrap;
}
.vip-bulk-selectall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  user-select: none;
}
.vip-bulk-selectall input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #9c5af7;
}
.vip-bulk-count {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.vip-bulk-count strong {
  color: #fff;
  font-weight: 700;
}
.vip-bulk-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vip-btn-gradient.-sm,
.vip-btn-delete.-sm,
.vip-btn-outlined.-sm {
  padding: 8px 18px;
  font-size: 13px;
  width: auto;
  min-width: 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .vip-stats-row {
    flex-wrap: wrap;
    gap: 20px;
  }
  .vip-song-row {
    flex-wrap: wrap;
    gap: 20px;
  }
  .vip-zone-coverinfo {
    width: 100%;
  }
  .vip-zone-middle {
    width: 100%;
    padding-left: 100px;
  }
  .vip-zone-actions {
    padding-left: 100px;
  }
}

/* Legacy compat — keep old class names working for non-dashboard pages */
.vip-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.vip-stats-bar .stat-block {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.vip-stats-bar .stat-block:last-child {
  border-right: none;
}
.vip-stats-bar .stat-block .stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.vip-stats-bar .stat-block .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.vip-stats-bar .stat-block .stat-value.v-gold { color: #fbbf24; }
.vip-stats-bar .stat-block .stat-value.v-purple { color: #7c5bf5; }
.vip-stats-bar .stat-block .stat-value.v-green { color: #22c55e; }

/* VIP stats bar Figma layout */
.vip-stats-label {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.6);
  padding-right: 20px; border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap; flex-shrink: 0;
}
.vip-stats-items {
  display: flex; align-items: center; flex: 1; gap: 0;
}
.vip-stat-item {
  flex: 1; text-align: center; padding: 0 16px;
}
.vip-stat-value {
  font-size: 20px; font-weight: 800; color: #fff;
}
.vip-stat-name {
  font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px;
}
.vip-stat-divider {
  width: 1px; height: 36px; background: rgba(255,255,255,0.08); flex-shrink: 0;
}
.vip-cashout-btn {
  padding: 10px 24px; border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #fff; font-weight: 700; font-size: 14px;
  white-space: nowrap; flex-shrink: 0; margin-left: 16px;
  border: none; text-decoration: none;
  transition: opacity 0.2s;
}
.vip-cashout-btn:hover { opacity: 0.9; }

.vip-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.vip-section-header h2 {
  font-size: 20px;
  font-weight: 700;
}
.vip-section-header .unpublished-count {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.vip-section-header .unpublished-count a {
  color: #7c5bf5;
  font-weight: 600;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(124,91,245,0.3);
  background: rgba(124,91,245,0.1);
  color: #7c5bf5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  margin-bottom: 20px;
}
.upload-btn:hover {
  background: rgba(124,91,245,0.18);
  border-color: rgba(124,91,245,0.5);
}

/* VIP song rows with extra columns */
.vip-song-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
  margin-bottom: 8px;
}
.vip-song-row:hover { background: rgba(255,255,255,0.07); }

.vip-song-list { display: flex; flex-direction: column; gap: 0; }

.vip-song-cover {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  position: relative; overflow: hidden;
}

.vip-song-info { flex: 1; min-width: 0; }
.vip-song-name {
  font-size: 14px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vip-song-artist {
  font-size: 12px; color: rgba(255,255,255,0.45);
}
.vip-song-price {
  font-size: 14px; font-weight: 700; color: #fbbf24;
  white-space: nowrap; flex-shrink: 0;
}
.vip-song-stat {
  text-align: center; flex-shrink: 0; min-width: 70px;
}
.vip-song-stat .stat-num {
  font-size: 14px; font-weight: 700; color: #fff;
}
.vip-song-stat .stat-label {
  font-size: 11px; color: rgba(255,255,255,0.4);
}
.vip-song-gear {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: all 0.2s;
  flex-shrink: 0;
}
.vip-song-gear:hover { background: rgba(255,255,255,0.08); color: #fff; }
.vip-song-status { flex-shrink: 0; }
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}

.section-head-right {
  display: flex; align-items: center; gap: 12px;
}
.unpublished-count {
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* Upload row (+ button) */
.upload-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(124,91,245,0.35);
  background: rgba(124,91,245,0.05);
  transition: all 0.2s; text-decoration: none; color: #7c5bf5;
}
.upload-row:hover {
  background: rgba(124,91,245,0.1);
  border-color: rgba(124,91,245,0.6);
}
.upload-row-icon {
  font-size: 24px; font-weight: 300;
}
.upload-row-text {
  font-size: 14px; font-weight: 600;
}

.vip-song-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.vip-song-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.publish-toggle {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.publish-toggle.published {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}
.publish-toggle.unpublished {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
}

.gear-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gear-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ===== UPLOAD SONG PAGE ===== */
/* Step 1: Hero */
.upload-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 40px 32px;
  background: linear-gradient(135deg, rgba(124,91,245,0.2), rgba(91,75,224,0.12));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.upload-hero-text h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}
.upload-hero-text .tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.link-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.link-input-wrap .form-input {
  flex: 1;
}

.upload-card {
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.file-drop {
  padding: 40px;
  border-radius: 12px;
  border: 2px dashed rgba(124,91,245,0.25);
  background: rgba(124,91,245,0.04);
  text-align: center;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover {
  border-color: rgba(124,91,245,0.5);
  background: rgba(124,91,245,0.08);
}
.file-drop .drop-icon { font-size: 40px; margin-bottom: 8px; }
.file-drop .drop-text { font-size: 14px; color: rgba(255,255,255,0.5); }

/* Step 2: Edit form */
.cover-upload {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 2px dashed rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}
.cover-upload:hover {
  border-color: rgba(124,91,245,0.4);
}

/* Trim handles on waveform */
.trim-handle {
  width: 12px;
  height: 100%;
  background: #7c5bf5;
  border-radius: 4px;
  cursor: col-resize;
  position: absolute;
  top: 0;
}
.trim-handle-left { left: 0; }
.trim-handle-right { right: 0; }

/* ===== VIP UPGRADE MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-overlay.show {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 1016px;
  height: 479px;
  border-radius: 25px;
  overflow: hidden;
  background-color: #0f0817;
  background-size: cover;
  background-position: center;
  border: 1px solid #9c5af7;
  position: relative;
}
/* gradient overlays for text legibility (matches Figma) */
.modal-card-fade {
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background:
    linear-gradient(268deg, rgba(0,0,0,0) 13%, rgba(0,0,0,0.8) 64%),
    linear-gradient(270deg, rgba(0,0,0,0) 53%, rgb(59,43,163) 77%);
  pointer-events: none;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 55px 0 0 60px;
  max-width: 340px;
}
.modal-logo {
  width: 208px;
  height: 152px;
  object-fit: contain;
  display: block;
}
.modal-heading {
  font-family: 'PingFang SC', -apple-system, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
  margin: 0;
  background: linear-gradient(93deg, #9c5af7 0%, #447df4 112%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-desc {
  font-family: 'PingFang SC', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin: -16px 0 0;
  line-height: normal;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
}
.modal-actions .btn-primary {
  width: 180px;
  height: 52px;
  border-radius: 12px;
  font-family: 'PingFang SC', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.modal-dismiss {
  font-family: 'PingFang SC', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.modal-dismiss:hover { color: #bbb; }
@media (max-width: 1080px) {
  .modal-card { max-width: 90vw; height: auto; min-height: 360px; }
  .modal-body { padding: 40px 32px; }
  .modal-logo { width: 156px; height: 114px; }
  .modal-heading { font-size: 32px; }
}
@media (max-width: 540px) {
  .modal-card { max-width: 95vw; min-height: 280px; border-radius: 16px; }
  .modal-card-fade { border-radius: 16px; }
  .modal-body { padding: 28px 24px; max-width: none; gap: 16px; }
  .modal-heading { font-size: 28px; }
  .modal-desc { font-size: 15px; }
  .modal-logo { width: 120px; height: 88px; }
  .modal-actions { gap: 24px; }
  .modal-actions .btn-primary { width: 150px; height: 44px; font-size: 14px; }
  .modal-dismiss { font-size: 14px; }
}

/* ===== VIP CTA / UPGRADE BANNER ===== */
.vip-cta {
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(124,91,245,0.12), rgba(91,75,224,0.08));
  border: 1px solid rgba(124,91,245,0.2);
}
.vip-cta h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
}
.vip-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.vip-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  transition: opacity 0.2s;
  text-decoration: none;
}
.vip-cta-btn:hover { opacity: 0.9; }

.upgrade-cta {
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 24px;
  background: rgba(124,91,245,0.08);
  border: 1px solid rgba(124,91,245,0.2);
}
.upgrade-cta h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.upgrade-cta p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }

/* ===== PROFILE HEADER ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}
.profile-info h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.profile-info .email {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.vip-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  color: #fff;
}
.rank-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(124,91,245,0.15);
  color: #a78bfa;
  margin-left: 6px;
}

/* ===== STAT CARDS ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }

.stat-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.stat-card .icon { font-size: 24px; margin-bottom: 8px; }
.stat-card .value { font-size: 24px; font-weight: 800; margin-bottom: 2px; }
.stat-card .label { font-size: 12px; color: rgba(255,255,255,0.5); }

.stat-card .value.v-blue   { color: #3b82f6; }
.stat-card .value.v-green  { color: #22c55e; }
.stat-card .value.v-purple { color: #7c5bf5; }
.stat-card .value.v-orange { color: #f97316; }
.stat-card .value.v-pink   { color: #ec4899; }
.stat-card .value.v-yellow { color: #fbbf24; }
.stat-card.text-center { text-align: center; }

.stat-card.earnings .value { color: #fbbf24; }
.stat-card.songs .value    { color: #7c5bf5; }
.stat-card.downloads .value { color: #3b82f6; }
.stat-card.followers .value { color: #ec4899; }

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.qa-btn {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}
.qa-btn:hover {
  background: rgba(124,91,245,0.08);
  border-color: rgba(124,91,245,0.25);
  transform: translateY(-2px);
}
.qa-btn .qa-icon { font-size: 28px; }
.qa-btn .qa-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }

/* ===== SONG DETAIL PAGE ===== */
.song-detail {
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.sd-top { display: flex; gap: 18px; margin-bottom: 18px; }
.sd-cover {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.sd-info { flex: 1; }
.sd-info h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.sd-info .sd-artist { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.sd-info .sd-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.sd-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.sd-tag-cat { background: rgba(124,91,245,0.15); color: #a78bfa; }
.sd-tag-hot { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Waveform */
.sd-wave {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  height: 60px;
  margin-bottom: 18px;
}
.sd-wave span {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, rgba(124,91,245,0.4), rgba(255,255,255,0.6));
  animation: wave 1.2s infinite ease-in-out;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1.2); opacity: 1; }
}
.sd-wave span:nth-child(1){height:12px;animation-delay:0s}
.sd-wave span:nth-child(2){height:28px;animation-delay:.08s}
.sd-wave span:nth-child(3){height:18px;animation-delay:.16s}
.sd-wave span:nth-child(4){height:36px;animation-delay:.24s}
.sd-wave span:nth-child(5){height:22px;animation-delay:.32s}
.sd-wave span:nth-child(6){height:40px;animation-delay:.4s}
.sd-wave span:nth-child(7){height:15px;animation-delay:.48s}
.sd-wave span:nth-child(8){height:32px;animation-delay:.56s}
.sd-wave span:nth-child(9){height:20px;animation-delay:.64s}
.sd-wave span:nth-child(10){height:38px;animation-delay:.72s}
.sd-wave span:nth-child(11){height:14px;animation-delay:.8s}
.sd-wave span:nth-child(12){height:26px;animation-delay:.88s}
.sd-wave span:nth-child(13){height:42px;animation-delay:.96s}
.sd-wave span:nth-child(14){height:18px;animation-delay:1.04s}
.sd-wave span:nth-child(15){height:30px;animation-delay:1.12s}

.sd-timer {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.sd-timer strong { color: #ef4444; }

.sd-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sd-btn {
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}
.sd-btn:hover { transform: translateY(-1px); }

.btn-preview {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-buy {
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  color: #fff;
}
.btn-bought {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.2);
  cursor: default;
}

.sd-price {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.sd-price strong { color: #fbbf24; font-size: 18px; }

/* ===== REFERRAL ===== */
.referral-card {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 16px;
}
.referral-card .ref-icon { font-size: 36px; }
.referral-card .ref-info { flex: 1; }
.referral-card .ref-info h4 { font-size: 14px; margin-bottom: 4px; }
.referral-card .ref-info p { font-size: 12px; color: rgba(255,255,255,0.5); }
.ref-code {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(124,91,245,0.12);
  border: 1px solid rgba(124,91,245,0.25);
  font-size: 14px;
  font-weight: 700;
  color: #a78bfa;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== ADMIN TABLES ===== */
.table-card {
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.table-header h3 { font-size: 16px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.badge-vip-role    { background: rgba(124,91,245,0.15); color: #a78bfa; }
.badge-normal-role { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-admin-role  { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-active      { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-banned      { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-pending     { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-approved    { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-rejected    { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-r1 { background: rgba(148,163,184,0.15); color: #94a3b8; }
.badge-r2 { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-r3 { background: rgba(251,191,36,0.15); color: #fbbf24; }

.action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}
.action-btn:hover { opacity: 0.8; }
.btn-approve { background: rgba(34,197,94,0.15); color: #22c55e; }
.btn-reject  { background: rgba(239,68,68,0.15); color: #ef4444; }
.btn-ban     { background: rgba(239,68,68,0.15); color: #ef4444; }
.btn-view    { background: rgba(59,130,246,0.15); color: #93c5fd; }
.btn-edit    { background: rgba(124,91,245,0.15); color: #a78bfa; }

/* Admin menu grid */
.admin-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.menu-item {
  padding: 18px 10px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
  text-decoration: none;
  color: #fff;
  display: block;
}
.menu-item:hover {
  background: rgba(124,91,245,0.08);
  border-color: rgba(124,91,245,0.2);
  transform: translateY(-2px);
}
.menu-item .mi-icon  { font-size: 26px; margin-bottom: 6px; display: block; }
.menu-item .mi-count { font-size: 18px; font-weight: 800; color: #7c5bf5; margin-bottom: 2px; }
.menu-item .mi-label { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  padding: 24px 0;
  margin-top: 20px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: rgba(255,255,255,0.5); }
.text-error { color: #ef4444; }
.text-success { color: #22c55e; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.no-data {
  text-align: center;
  padding: 48px 20px;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .song-grid { grid-template-columns: repeat(4, 1fr); }
  .topup-grid { grid-template-columns: repeat(3, 1fr); }
  .sub-pay-methods { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .wrap { padding: 16px 16px 40px; }
  .song-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .song-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .admin-menu { grid-template-columns: repeat(2, 1fr); }
  .topup-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-pay-methods { grid-template-columns: repeat(2, 1fr); }
  .vip-stats-bar { flex-wrap: wrap; gap: 12px; }
  .vip-stats-bar .stat-block { border-right: none; }
  /* Player-page mobile rules live near the desktop block (search for
     "PLAYER PAGE (SONG DETAIL)") so source order beats the unscoped
     desktop .player-art / .player-layout rules at line ~4345. */
  .admin-table { font-size: 11px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }

  /* ── Mobile nav consolidation (V6.50.8) ──────────────────────────
     Collapse page links into the hamburger drawer, hide wide right-side
     buttons (they re-appear inside the avatar dropdown via .nav-mobile-only),
     and compact the diamond pill. Drops total right-side width from ~400px
     to ~250px so 360px viewports stop overflowing. */
  .nav { padding: 0 14px; gap: 6px; }
  .nav-brand { margin-right: 0; }
  .nav-brand img { height: 56px; width: auto; }
  .nav-links, .nav-center { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-right { gap: 8px; }
  /* Hide the lang pill only when there's an avatar dropdown to surface it in
     (i.e. logged in). Logged-out users keep the pill visible since they have
     no dropdown — the alternative would be stranding 中/EN inside the page-
     links drawer, which is a different mental model. */
  .nav-right:has(.nav-user-dropdown) .nav-lang-btn { display: none; }
  .nav-btn-upgrade, .nav-btn-vip, .nav-btn-home { display: none; }
  .nav-diamond-add { display: none; }
  .nav-diamond-pill { padding: 0 10px; gap: 6px; }
  .nav-diamond-amount { width: auto; min-width: 36px; }
  /* Drop the redundant logged-out avatar link (the visible 登录 button is the
     CTA — the avatar next to it just relinked to the same page). The dropdown
     trigger's avatar lives inside .nav-user-trigger, which this selector
     intentionally does not match. */
  .nav-right > .nav-avatar { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 12px 12px 32px; }
  .song-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .song-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .topup-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-pay-methods { grid-template-columns: repeat(2, 1fr); }
  .pay-methods { flex-direction: column; }
  .withdraw-methods { flex-direction: column; }
  .withdraw-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .withdraw-stat-divider { display: none; }
  .sd-top { flex-direction: column; align-items: center; text-align: center; }
  .sd-actions { grid-template-columns: 1fr; }
  .banner { padding: 24px 16px; }
  .page-title { font-size: 22px; }
  .upload-hero { flex-direction: column; }
  .rank-actions { gap: 6px; }
  .rank-download-btn { padding: 6px 12px; font-size: 11px; }
}

/* ===== HOMEPAGE FIGMA ADDITIONS ===== */

/* Section header with "更多 >" */
.section { margin-bottom: 40px; }
.section:last-child { margin-bottom: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 28px; font-weight: 800; }
.section-more { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.section-more:hover { color: #7c5bf5; }

/* Verified dot (green circle after artist name) */
.verified-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(to right, #9c5af7 0%, #447df4 111.54%);
  vertical-align: middle;
  flex-shrink: 0;
  margin-left: 0;
}
.verified-dot::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 16L3 6l5.5 4L12 4l3.5 6L21 6l-2 10H5zm0 2h14v2H5v-2z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 16L3 6l5.5 4L12 4l3.5 6L21 6l-2 10H5zm0 2h14v2H5v-2z'/></svg>") center / contain no-repeat;
}

/* Hot recommend (3-column compact list with small thumbnails) */
.hot-recommend-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}
.hot-recommend-item {
  display: flex; align-items: center; gap: 20px;
  min-width: 0;
}
.hot-recommend-cover-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.hot-recommend-cover-link:hover {
  transform: translateY(-3px);
}
.hot-recommend-cover {
  width: 80px; height: 80px; border-radius: 12px;
  position: relative; overflow: hidden;
  box-shadow:
    0 12px 32px -8px rgba(124, 91, 245, 0.45),
    0 6px 16px -4px rgba(68, 125, 244, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.4);
}
.hot-recommend-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hot-recommend-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.hot-recommend-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  letter-spacing: 0.5455px;
}
.hot-recommend-artist {
  font-size: 16px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  line-height: 1.4;
  letter-spacing: 0.5455px;
}
.hot-recommend-artist .artist-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-recommend-artist .verified-dot {
  flex-shrink: 0;
}

/* Filter tabs (专区 sub-tabs) */
.filter-tabs { display: flex; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-tab {
  font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 500;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.filter-tab:hover { color: rgba(255,255,255,0.8); }
.filter-tab.active { color: #7c5bf5; border-bottom-color: #7c5bf5; }

/* V6.86: clickable category tabs for multi-cat homepage sections.
   Sit between the section title and the song grid. Toggle panes via JS. */
.zone-tabs {
  display: flex;
  gap: 18px;
  margin: -8px 0 16px;
  flex-wrap: wrap;
}
.zone-tab {
  background: transparent;
  border: none;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.zone-tab:hover { color: rgba(255,255,255,0.85); }
.zone-tab.is-active { color: #7c5bf5; border-bottom-color: #7c5bf5; }
.zone-pane[hidden] { display: none; }

/* /recommend grid ↔ list view toggle (issue #43) */
.recommend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.recommend-head .page-title { margin: 0; }
.view-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 30px;
  border-radius: 7px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.view-toggle-btn:hover { color: rgba(255,255,255,0.85); }
.view-toggle-btn.active {
  background: linear-gradient(135deg, #9c5af7, #447df4);
  color: #fff;
}
.view-toggle-btn.active:hover { color: #fff; }

/* Footer line (homepage) */
.footer-line { height: 1px; background: rgba(255,255,255,0.08); margin: 20px 0; }

/* Song cover gradient backgrounds */
.c1 { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.c2 { background: linear-gradient(135deg, #ec4899, #9333ea); }
.c3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.c4 { background: linear-gradient(135deg, #f97316, #ef4444); }
.c5 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.c6 { background: linear-gradient(135deg, #f59e0b, #ec4899); }

/* ===== RANKING PAGE (FIGMA) ===== */
.ranking-page { padding-bottom: 20px; }

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

.ranking-row {
  display: flex; align-items: center; gap: 32px;
  padding: 20px 0;
  transition: background 0.2s;
}
.ranking-row:hover { background: rgba(255,255,255,0.02); }

/* Rank number (Figma 35:673 top-3 gradient 48px, 4+ plain 36px) */
.ranking-num-wrap {
  width: 44px; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
}
.ranking-num {
  font-size: 36px; font-weight: 800; color: #fff;
  line-height: 1; text-align: center;
}
.ranking-num.top3 {
  font-size: 48px;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 4px 20px rgba(255, 0, 153, 0.8);
}

/* Trend column (Figma 35:684) */
.ranking-trend {
  width: 24px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
}
.ranking-trend .trend-icon {
  font-size: 18px; line-height: 1; font-weight: 700;
}
.ranking-trend .trend-val {
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: 0.5px;
}
.ranking-trend.trend-up .trend-icon { color: #22c55e; }
.ranking-trend.trend-down .trend-icon { color: #ef4444; }
.ranking-trend.trend-flat .trend-icon { color: rgba(255,255,255,0.5); }
.ranking-trend .trend-new {
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  padding: 3px 6px; border-radius: 999px;
  letter-spacing: 0.3px;
}

/* Album cover with blurred glow layer (Figma 35:562).
   border-radius+overflow:hidden are required here (not just on the inner
   .ranking-cover-img) so the c1–c6 gradient set on the link element itself
   doesn't bleed past the rounded <img> at the corners — see my_music.html /
   user_profile.html / member.html which use .ranking-cover directly with an
   <img> child instead of wrapping in .ranking-cover-img. */
.ranking-cover {
  width: 80px; height: 80px; flex-shrink: 0;
  position: relative; display: block;
  border-radius: 12px;
  overflow: hidden;
}
.ranking-cover-glow {
  position: absolute;
  left: 3.58px; top: 7.16px;
  width: 72.84px; height: 72.84px;
  border-radius: 12px;
  filter: blur(109.917px);
  opacity: 0.6;
  overflow: hidden;
  pointer-events: none;
}
.ranking-cover-glow img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
}
.ranking-cover-img {
  position: absolute; left: 0; top: 0;
  width: 80px; height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1845, #1a1028);
}
.ranking-cover-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Song info */
.ranking-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.ranking-name {
  font-size: 16px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.5455px; line-height: 1.4;
}
.ranking-artist {
  font-size: 16px; color: #999;
  display: flex; align-items: center; gap: 12px;
  letter-spacing: 0.5455px; line-height: 1.4;
}
.ranking-artist .artist-link { color: #999; text-decoration: none; }
.ranking-artist .artist-link:hover { color: #c4b5fd; }

/* Actions group */
.ranking-actions {
  display: flex; align-items: center; gap: 24px; flex-shrink: 0;
}

/* Play button (Figma 35:726 — 48px gradient circle) */
.ranking-play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  opacity: 0.8;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.ranking-play-btn:hover {
  opacity: 1; transform: scale(1.05);
}

/* Unified download pill (Figma 40:2013 — 180×52 gradient button) */
.ranking-download-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 20px;
  width: 180px; height: 52px;
  padding: 6px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  color: #fff; text-decoration: none; white-space: nowrap;
  box-sizing: border-box;
  transition: opacity 0.2s, transform 0.2s;
}
.ranking-download-btn:hover {
  opacity: 0.9; transform: translateY(-1px);
}
.ranking-download-label {
  font-size: 16px; font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ranking-download-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ranking-download-status .ranking-check,
.ranking-download-status .ranking-diamond {
  font-size: 12px; line-height: 1;
}

/* Heart/favorite (SVG version, matches song_detail .btn-heart) */
.ranking-heart {
  background: none; border: none; cursor: pointer;
  padding: 6px 16px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform 0.2s;
}
.ranking-heart:hover { transform: scale(1.1); }
.ranking-heart-icon {
  width: 30px; height: 32px;
  display: block;
}
.ranking-heart .ranking-heart-icon path {
  fill: transparent;
  stroke: url(#heart-gradient);
  stroke-width: 80;
  stroke-linejoin: round;
  transition: fill 0.2s;
}
.ranking-heart.active .ranking-heart-icon path {
  fill: url(#heart-gradient);
  stroke: none;
}

/* ── Homepage announcement bar + banners ── */
.announcement-bar {
  background: linear-gradient(90deg, rgba(156,90,247,0.18), rgba(68,125,244,0.18));
  border: 1px solid rgba(156,90,247,0.35);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  color: #fff; font-size: 14px;
}
.announcement-bar .announcement-content { margin-left: 10px; color: rgba(255,255,255,0.75); }

.banner-carousel {
  display: flex; gap: 16px; overflow-x: auto;
  margin-bottom: 24px; padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.banner-slide {
  flex: 0 0 auto; scroll-snap-align: start;
  border-radius: 14px; overflow: hidden;
  display: block;
}
.banner-slide img {
  display: block; height: 180px; width: auto;
  object-fit: cover;
}

.section-subtitle { font-size: 16px; font-weight: 400; color: #999; margin-left: 8px; }

/* ── Admin: homepage dashboard ── */
.table-hint { font-size: 12px; color: #888; margin-left: 12px; font-weight: 400; }

.section-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px;
}
.section-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px;
}
.section-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.section-card-slug {
  font-size: 12px; color: #888; font-family: monospace;
  background: rgba(255,255,255,0.05); padding: 3px 8px; border-radius: 4px;
}
.section-card-toggle { font-size: 12px; color: #ccc; display: flex; align-items: center; gap: 6px; }

.form-row { margin-bottom: 12px; }
.form-row label {
  display: block; font-size: 12px; color: #aaa; margin-bottom: 4px;
}
.form-row input[type="text"],
.form-row input[type="url"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%; padding: 8px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 13px; box-sizing: border-box;
}
.form-row-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form-row-split > div label { font-size: 11px; }

.inline-form {
  padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
  max-width: 600px;
}

.mosaic-admin-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 16px;
}
.mosaic-admin-slot {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px;
}
.mosaic-admin-slot-head {
  font-size: 12px; color: #888; margin-bottom: 8px; font-family: monospace;
}
.mosaic-admin-preview {
  aspect-ratio: 1/1; background: rgba(0,0,0,0.3);
  border-radius: 8px; overflow: hidden; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
}
.mosaic-admin-preview img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-admin-preview-empty { color: #555; font-size: 12px; }

@media (max-width: 900px) {
  .section-cards { grid-template-columns: 1fr; }
  .mosaic-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-split { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 768px) {
  .hot-recommend-grid { grid-template-columns: repeat(2, 1fr); }
  .ranking-row { gap: 16px; }
  .ranking-actions { gap: 10px; }
  .ranking-download-btn { width: auto; padding: 6px 14px; gap: 10px; height: 44px; }
  .ranking-download-label, .ranking-download-status { font-size: 13px; }
  .ranking-play-btn { width: 40px; height: 40px; }
  .ranking-heart { height: 44px; padding: 6px 8px; }
  .ranking-heart-icon { width: 24px; height: 26px; }
}
@media (max-width: 560px) {
  .hot-recommend-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
  .ranking-row { flex-wrap: wrap; gap: 12px; padding: 14px 0; }
  .ranking-actions { width: 100%; justify-content: flex-end; }
  .ranking-num { font-size: 28px; }
  .ranking-num.top3 { font-size: 36px; }
  .ranking-num-wrap { width: 36px; }
}

/* ===== COVER IMAGE OVERLAY =====
   Used by grid-style covers whose parent is `position: relative` (so the
   absolute-positioned `<img>` fills its container). `.song-row-cover` is
   intentionally excluded — list rows use a flat flex layout and the img
   is sized via width:100%/height:100% on `.song-row-cover img` above. */
.song-cover img,
.hot-recommend-cover img,
.ranking-cover img,
.vip-song-cover img,
.player-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}

/* Default cover fallback (vipermix-logo.png is wide-aspect 1797×972 with
   transparent bg, so the regular object-fit:cover would crop the wordmark).
   Letterbox it inside a dark gradient instead so the missing-cover state
   reads as intentional branding rather than a broken image.
   Catch-all selector lets us add new parent containers without touching this. */
img.is-default-cover {
  object-fit: contain !important;
  padding: 14%;
  background: linear-gradient(135deg, #1a1f3a 0%, #2a1f4a 100%);
}
/* On thumbnails (≤80px square), shrink padding so the wordmark stays legible. */
.exp-thumb img.is-default-cover {
  padding: 10%;
}

/* ===== AUTH BACKGROUND (DJ photo) ===== */
.wrap-auth {
  background-image:
    linear-gradient(135deg, rgba(10,10,26,0.75), rgba(26,10,46,0.8)),
    url('/static/auth-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

/* ===== NOTIFICATION BELL ===== */
.nav-notification-bell {
  position: relative;
  font-size: 20px;
  margin-right: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}
.nav-notification-bell:hover { transform: scale(1.15); }
.notification-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  padding: 0 3px;
}

/* ===== NOTIFICATIONS PAGE ===== */
.notifications-page { padding: 24px 0; }
.notification-list { display: flex; flex-direction: column; gap: 8px; }
.notification-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  transition: background 0.2s;
}
.notification-item.unread {
  background: rgba(124,91,245,0.1);
  border-left: 3px solid #7c5bf5;
}
.notification-icon { font-size: 24px; flex-shrink: 0; }
.notification-body { flex: 1; min-width: 0; }
.notification-message {
  font-size: 14px; color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}
.notification-time { font-size: 12px; color: rgba(255,255,255,0.35); }
.notification-link {
  padding: 6px 14px; border-radius: 8px;
  background: rgba(124,91,245,0.2); color: #a78bfa;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}
.notification-link:hover { background: rgba(124,91,245,0.35); }

/* ===== COMMENTS ===== */
.comment-form { margin-bottom: 24px; }
.comment-input-wrap {
  display: flex; gap: 12px; align-items: flex-start;
}
.comment-textarea {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff; font-size: 14px;
  min-height: 60px; resize: vertical;
  transition: border-color 0.2s;
}
.comment-textarea:focus {
  outline: none;
  border-color: rgba(124,91,245,0.5);
}
.comment-textarea::placeholder { color: rgba(255,255,255,0.3); }
.comment-submit {
  padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff; font-weight: 600; border: none;
  cursor: pointer; white-space: nowrap;
  transition: opacity 0.2s;
}
.comment-submit:hover { opacity: 0.85; }
.comment-login-hint {
  padding: 16px; text-align: center;
  color: rgba(255,255,255,0.45); font-size: 14px;
  margin-bottom: 16px;
}
.comment-login-hint a { color: #a78bfa; text-decoration: underline; }
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
  color: #fff;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.comment-author { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); }
.comment-badge-vip {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; font-weight: 700;
}
.comment-time { font-size: 11px; color: rgba(255,255,255,0.3); }
.comment-content { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ===== VERIFY PAGE ===== */
.verify-hint {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  line-height: 1.6;
}
.verify-hint strong {
  color: #7c5bf5;
}

/* ===== ARTIST LINK ===== */
.artist-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.artist-link:hover {
  color: #7c5bf5;
  text-decoration: underline;
}

/* ===== USER PROFILE PAGE ===== */
.user-profile-page {
  padding-top: 16px;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.user-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5bf5 0%, #5b4be0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.user-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* V6.67 — clickable avatar with hover overlay (desktop) + always-visible
   camera badge (mobile). The whole avatar becomes a button that opens
   the avatar-edit modal. */
button.user-profile-avatar.avatar-editable {
  position: relative;
  padding: 0;
  border: none;
  cursor: pointer;
  font: inherit;
}
.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.avatar-edit-overlay-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.avatar-editable:hover .avatar-edit-overlay,
.avatar-editable:focus-visible .avatar-edit-overlay {
  opacity: 1;
}
.avatar-editable:focus-visible {
  outline: 2px solid rgba(156,90,247,0.7);
  outline-offset: 2px;
}

/* Avatar-edit modal — shares .modal-overlay (display:none → flex on .show)
   from the VIP upgrade modal, but renders its own narrower card. */
.avatar-modal-overlay { padding: 16px; }
.avatar-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #16101f;
  border: 1px solid rgba(156,90,247,0.35);
  border-radius: 20px;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.avatar-modal-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.avatar-modal-desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.avatar-modal-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.avatar-modal-preview {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.avatar-modal-preview:hover {
  border-color: rgba(156,90,247,0.6);
  background: rgba(156,90,247,0.08);
}
.avatar-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-modal-preview-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  text-align: center;
  padding: 0 12px;
}
.avatar-modal-pick-btn {
  background: rgba(156,90,247,0.12);
  color: #c8aafc;
  border: 1px solid rgba(156,90,247,0.4);
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.avatar-modal-pick-btn:hover {
  background: rgba(156,90,247,0.22);
  border-color: rgba(156,90,247,0.7);
}
.avatar-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.avatar-modal-actions .btn-outline,
.avatar-modal-actions .btn-primary {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar-modal-actions .btn-primary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.user-profile-name {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.verified-dot-lg {
  width: 28px;
  height: 28px;
}
.verified-dot-lg::before {
  width: 17px;
  height: 17px;
}

.user-profile-bio {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.user-profile-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.user-profile-stat-divider {
  color: rgba(255,255,255,0.2);
}

.user-profile-actions {
  flex-shrink: 0;
}

.btn-follow {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.btn-following {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}
.btn-following:hover {
  background: rgba(255,70,70,0.15);
  border-color: rgba(255,70,70,0.4);
  color: #ff6b6b;
}

.user-profile-songs {
  margin-bottom: 24px;
}

.user-profile-cat {
  margin-bottom: 28px;
}

.user-profile-cat-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  padding-left: 4px;
  border-left: 3px solid #7c5bf5;
  padding-left: 12px;
}

/* ===== VIP CATEGORY MANAGEMENT ===== */
.vip-cat-create-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.vip-cat-input {
  flex: 1;
  max-width: 320px;
}

.vip-cat-create-btn {
  white-space: nowrap;
  padding: 10px 20px;
}

.vip-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.vip-cat-card {
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px;
}

.vip-cat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vip-cat-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.vip-cat-card-count {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.vip-cat-song-list {
  margin-bottom: 12px;
}

.vip-cat-song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s;
}
.vip-cat-song-item:hover {
  background: rgba(255,255,255,0.05);
}

.vip-cat-song-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-cat-remove-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.vip-cat-remove-btn:hover {
  color: #ff6b6b;
}

.vip-cat-add-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vip-cat-select {
  flex: 1;
  font-size: 12px;
  padding: 8px 10px;
}

/* ===== RESPONSIVE FOR USER PROFILE ===== */
@media (max-width: 768px) {
  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }
  .user-profile-stats {
    justify-content: center;
  }
  .user-profile-name {
    justify-content: center;
  }
  .vip-cat-create-row {
    flex-direction: column;
  }
  .vip-cat-input {
    max-width: none;
  }
  .vip-cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(20,10,40,0.95), rgba(30,15,60,0.9));
  border: 1px solid rgba(124,91,245,0.2);
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,91,245,0.2), transparent 70%);
  pointer-events: none;
}
.hero-content { flex: 1; position: relative; z-index: 1; }
.hero-logo { height: 56px; margin-bottom: 20px; filter: brightness(1.3); }
.hero-title {
  font-size: 32px; font-weight: 800; color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(124,91,245,0.4);
}
.hero-title--gradient {
  font-size: 40px;
  background: linear-gradient(90deg, #9c5af7, #447df4 111.54%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 14px; color: rgba(255,255,255,0.6);
  line-height: 1.8; margin-bottom: 24px;
}
.hero-subtitle--centered {
  font-size: 18px; color: #fff; text-align: center;
}
.hero-banner--centered {
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: none; border: none;
  padding: 20px 24px 20px;
  margin-bottom: 16px;
  box-shadow: none;
  overflow: visible; /* let the glow bleed softly beyond hero bounds */
}
.hero-banner--centered::before {
  display: block;
  top: 50%; left: 50%; right: auto;
  width: 1400px; height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124,91,245,0.12) 0%, rgba(124,91,245,0.07) 18%, rgba(68,125,244,0.04) 40%, transparent 72%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero-banner--centered .hero-image { display: none; }
.hero-content--centered { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; max-width: 1000px; }
.hero-content--centered .hero-title--gradient { margin-bottom: 10px; line-height: 1.15; }
.hero-content--centered .hero-subtitle--centered { margin-bottom: 0; }

/* Gradient divider — short horizontal rule under subtitle, anchors bottom */
.hero-divider {
  display: block;
  width: 96px; height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg, transparent, #9c5af7 30%, #447df4 70%, transparent);
  border-radius: 2px;
  opacity: 0.85;
}

/* 热門搜索 chip rail under the hero search input (issue #48) */
.hot-search-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
  max-width: 1000px;
  width: 100%;
}
.hot-search-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.4px;
}
.hot-search-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hot-search-chip:hover {
  background: rgba(156,90,247,0.18);
  border-color: rgba(156,90,247,0.45);
  color: #fff;
}
.hero-search {
  display: flex; gap: 12px; max-width: 500px;
}
.hero-search--wide {
  max-width: 1000px; width: 100%;
  align-self: stretch;
  align-items: center;
  height: 64px;
  gap: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  padding: 8px 8px 8px 24px;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 12px 32px rgba(0,0,0,0.32);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hero-search--wide:focus-within {
  border-color: rgba(124,91,245,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 5px rgba(124,91,245,0.16),
    0 14px 36px rgba(0,0,0,0.4);
}
.hero-search--wide::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>") center/contain no-repeat;
}
.hero-input {
  flex: 1; height: 48px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 0 16px;
  background: rgba(255,255,255,0.06); color: #fff; font-size: 14px;
  outline: none;
}
.hero-input--wide {
  height: 100%; border: none; background: transparent;
  font-size: 16px; padding: 0;
}
.hero-input--wide:focus { border-color: transparent; }
.hero-input::placeholder { color: rgba(255,255,255,0.35); }
.hero-input--wide::placeholder { color: rgba(255,255,255,0.6); }
.hero-input:focus { border-color: rgba(124,91,245,0.5); }
.hero-btn {
  padding: 0 28px; height: 48px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(124,91,245,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn--inset {
  width: 140px; height: 48px; border-radius: 999px;
  background: linear-gradient(90deg, #9c5af7, #447df4 111.54%);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 15px; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  box-shadow: 0 4px 14px rgba(124,91,245,0.35);
  flex-shrink: 0;
}
.hero-btn--inset:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(156,90,247,0.4); }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,91,245,0.5); }
.hero-image {
  width: 320px; height: 220px; flex-shrink: 0;
  border-radius: 16px;
  background: url('/static/hero-bg.jpg') center/cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 1;
}

/* ===== URL PARSE RESULTS PANEL (Figma 222:864) ===== */
.parse-panel {
  border: 1px solid #9c5af7;
  border-radius: 12px;
  background: linear-gradient(53.8deg, rgb(22,27,42) 0%, rgb(27,36,59) 100%);
  padding: 32px 12px 32px 32px;
  margin-bottom: 80px;
  animation: parseSlideIn 0.3s ease-out;
}
@keyframes parseSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.parse-panel-list {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 20px;
}
.parse-panel-list::-webkit-scrollbar { width: 4px; }
.parse-panel-list::-webkit-scrollbar-track { background: #565656; border-radius: 2px; }
.parse-panel-list::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 2px; }

.parse-row {
  padding-bottom: 12px;
  margin-bottom: 40px;
  border-bottom: 0.5px solid #999;
}
.parse-row:last-child { margin-bottom: 0; }
.parse-row-main {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* V6.21 — cover thumbnail */
.parse-row-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
}
.parse-row-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
}

.parse-row-info {
  flex: 1;
  min-width: 0;
}
.parse-row-artist {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.3px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.parse-row-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.55px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.parse-row-meta {
  font-size: 16px;
  color: #999;
  letter-spacing: 0.55px;
  line-height: 1.4;
  margin-top: 4px;
}

.parse-row-source {
  flex: 1;
  min-width: 0;
}
.parse-row-url {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.55px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.parse-row-date {
  font-size: 16px;
  color: #999;
  letter-spacing: 0.55px;
  line-height: 1.4;
  margin-top: 4px;
}

.parse-row-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* V6.21 — metadata detail button + drawer */
.parse-detail-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #999;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s;
  letter-spacing: 2px;
  line-height: 1;
}
.parse-detail-btn:hover,
.parse-detail-btn--open {
  color: #c9a0ff;
}
.parse-detail {
  margin-top: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
}
.parse-detail-table {
  width: 100%;
  border-collapse: collapse;
}
.parse-detail-table tr + tr td { padding-top: 6px; }
.parse-detail-label {
  color: #999;
  font-size: 13px;
  white-space: nowrap;
  padding-right: 20px;
  vertical-align: top;
  width: 80px;
}
.parse-detail-value {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  word-break: break-all;
}
.parse-detail-value a {
  color: #7dabf5;
  text-decoration: none;
}
.parse-detail-value a:hover { text-decoration: underline; }

.parse-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(90deg, #9c5af7, #447df4 111.54%);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.parse-play-btn:hover { opacity: 1; transform: scale(1.05); }
.parse-play-btn--playing { opacity: 1; box-shadow: 0 0 16px rgba(156,90,247,0.5); }
.parse-play-btn--disabled { opacity: 0.3; cursor: default; }
.parse-play-btn--disabled:hover { opacity: 0.3; transform: none; }

.parse-download-btn {
  width: 180px;
  height: 52px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #9c5af7, #447df4 111.54%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.parse-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(156,90,247,0.4);
}
.platform-djuu    { background: rgba(255, 165, 0, 0.15); color: #ffa500; }
.platform-172mix  { background: rgba(0, 200, 150, 0.15); color: #00c896; }
.platform-a8dj    { background: rgba(255, 80, 80, 0.15); color: #ff5050; }
.platform-pandadj { background: rgba(100, 180, 255, 0.15); color: #64b4ff; }
.platform-other   { background: rgba(150, 150, 150, 0.15); color: #aaa; }

/* ===== PLAYER PAGE (SONG DETAIL) =====
   Section spacing per Figma 30:2420:
   back-row → title 60 · title → meta 8 · meta → waveform 60 ·
   waveform → actions 60 · actions → 热门推荐 80 · section-head → grid 40 */
.player-page { margin-bottom: 48px; }

.player-topnav {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}

.player-layout {
  display: flex; flex-direction: row-reverse;
  align-items: center; justify-content: space-between;
  gap: 28px; margin-bottom: 32px;
}
/* V6.50.17: markup is now [art, main]. row-reverse above keeps the
   desktop visual order (waveform left, cover right) without needing
   CSS order. On mobile, .player-layout drops to display:block so the
   markup order takes over → cover naturally sits above the waveform. */
.player-main { width: max-content; max-width: 100%; min-width: 0; }
/* Player actions row (download + heart) sits below the waveform/album row.
   Trailing gap to 热门推荐 is controlled by .player-page margin-bottom. */
.player-actions {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 24px; margin-bottom: 0;
}
/* Figma's 热门推荐 block uses a larger gap between the section head and grid
   than the default .section-head (20px). */
.section-xl .section-head { margin-bottom: 24px; }

/* V6.94.1: 刷新 button on the 热门推荐 section-head (song_detail.html).
   Sits on the right side of the section-head (which is already a flex
   space-between row). Borrows the muted-purple chip style used elsewhere
   (.scrape-feed-arrow, .view-toggle-btn). The .is-loading class spins the
   icon — keyframes shared across the file, defined here for locality. */
.related-refresh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.related-refresh-btn:hover {
  background: rgba(124,91,245,0.12);
  border-color: rgba(124,91,245,0.45);
  color: #fff;
}
.related-refresh-btn:active { transform: translateY(1px); }
.related-refresh-btn.is-loading { pointer-events: none; opacity: 0.7; }
.related-refresh-btn.is-loading svg {
  animation: related-refresh-spin 0.8s linear infinite;
}
@keyframes related-refresh-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Figma artist-row crown badge is 20px with a 12px gradient inner.
   The shared .verified-dot-lg is sized 28/17 for user-profile, so scope here. */
.player-meta-artist .verified-dot-lg { width: 20px; height: 20px; }
.player-meta-artist .verified-dot-lg::before { width: 12px; height: 12px; }

/* Waveform container — V6.94.2 compacted height/gap from 122/5.7px to
   88/4px so the player block stops feeling oversized on desktop. */
.waveform-wrap {
  display: block;
  padding: 0; border-radius: 0;
  background: transparent; border: none;
  margin-bottom: 16px;
}
.waveform-wrap .waveform {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 4px; height: 88px;
}
.wave-bar {
  width: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.75);
  height: var(--h, 50%);
  transform-origin: center;
  transition: background 0.25s;
}
/* While playing: bars randomly pulse to fake a live waveform. Each bar gets
   a slightly different delay/duration via :nth-child so the movement feels
   organic instead of uniform. */
.waveform.playing .wave-bar {
  animation: waveAnim 0.9s infinite ease-in-out;
  background: #fff;
}
@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.55); }
  50%      { transform: scaleY(1.15); }
}
.waveform.playing .wave-bar:nth-child(3n)   { animation-duration: 1.1s; animation-delay: 0.1s; }
.waveform.playing .wave-bar:nth-child(3n+1) { animation-duration: 0.75s; animation-delay: 0.25s; }
.waveform.playing .wave-bar:nth-child(3n+2) { animation-duration: 1.3s; animation-delay: 0.05s; }
.waveform.playing .wave-bar:nth-child(5n)   { animation-duration: 0.95s; animation-delay: 0.4s; }
.waveform.playing .wave-bar:nth-child(7n)   { animation-duration: 1.05s; animation-delay: 0.18s; }
.player-progress { cursor: pointer; }

.play-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
  box-shadow: 0 4px 16px rgba(156,90,247,0.35);
  transition: transform 0.2s;
  position: relative;
}
.play-btn .play-icon { display: block; margin-left: 2px; line-height: 1; }
.play-btn:hover { transform: scale(1.1); }
.play-icon { line-height: 1; }

/* Loading state: shown while we're waiting on the HLS chain (playlist →
   key → first segment) to resolve after a play tap. visibility:hidden on
   the icon keeps the button's layout stable; the ::after ring spins on
   top of the gradient. (V6.50.22) */
.play-btn.loading { cursor: progress; }
.play-btn.loading:hover { transform: none; }
.play-btn.loading .play-icon { visibility: hidden; }
.play-btn.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: play-btn-spin 0.7s linear infinite;
}
@keyframes play-btn-spin { to { transform: rotate(360deg); } }

.waveform-wrap.waveform-sm {
  padding: 14px 16px;
}
.waveform-wrap.waveform-sm .waveform {
  height: 50px;
}

/* Player cover (right side) */
.player-cover {
  width: 100%; aspect-ratio: 1; border-radius: 14px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.player-art {
  width: 200px; flex-shrink: 0;
}

.btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-width: 180px; height: 52px; padding: 6px 16px;
  border-radius: 12px; border: none;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  color: #fff; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(156,90,247,0.35), 0 2px 4px rgba(0,0,0,0.2);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-download:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-download.btn-confirm {
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}
/* V6.9: shown when the user's diamond balance is below the song price.
   Muted gradient + distinct shadow signals "action needed" not "disabled". */
.btn-download.btn-insufficient {
  background: linear-gradient(90deg, #4a4458 0%, #3a3448 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
  color: #d5d5d5;
}
.btn-download.btn-insufficient:hover {
  background: linear-gradient(90deg, #554f64 0%, #453f54 100%);
  color: #fff;
}
.btn-cancel {
  padding: 12px 20px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7); font-size: 14px;
  text-decoration: none;
}
.btn-heart {
  width: 62px; height: 52px; border-radius: 12px;
  border: none; background: transparent; padding: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.btn-heart:hover { transform: translateY(-1px); }
.btn-heart-icon {
  width: 30px; height: 32px; display: block;
}
.btn-heart .btn-heart-icon path {
  fill: transparent;
  stroke: url(#heart-gradient);
  stroke-width: 80;
  stroke-linejoin: round;
  transition: fill 0.2s;
}
.btn-heart.active .btn-heart-icon path {
  fill: url(#heart-gradient);
  stroke: none;
}
.btn-report {
  padding: 6px 14px; border-radius: 8px;
  background: transparent; border: 1px solid #555;
  color: #999; font-size: 13px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-report:hover { color: #e74c3c; border-color: #e74c3c; }
/* Hide comment section on song detail — no Figma design yet */
.comments-section { display: none; }
.badge-purchased {
  padding: 6px 14px; border-radius: 8px;
  background: rgba(156,90,247,0.15); color: #c4b5fd;
  font-size: 13px; font-weight: 600;
}

/* Upload page extras */
.upload-page { padding-bottom: 40px; }
.upload-link-row {
  display: flex; gap: 12px; margin-bottom: 24px;
}
.upload-link-row .form-input { flex: 1; }
.upload-file-trigger {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px; border-radius: 12px;
  border: 2px dashed rgba(124,91,245,0.3);
  background: rgba(124,91,245,0.04);
  cursor: pointer; margin-bottom: 20px;
  transition: border-color 0.2s, background 0.2s;
  color: rgba(255,255,255,0.6); font-size: 14px;
}
.upload-file-trigger:hover {
  border-color: rgba(124,91,245,0.6);
  background: rgba(124,91,245,0.08);
}
.upload-file-trigger.sm { padding: 12px 16px; margin-bottom: 0; }
.upload-file-icon { font-size: 20px; }
.upload-file-name { color: #a78bfa; font-weight: 600; }
.upload-step2 { margin-top: 24px; }
.upload-detail-layout { display: flex; gap: 28px; margin-bottom: 20px; }
.upload-detail-left { flex: 1; }
.upload-detail-right { width: 180px; flex-shrink: 0; }
.upload-cover-area { }
.upload-cover-placeholder {
  width: 100%; aspect-ratio: 1; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,0.5);
}
.upload-artist {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.upload-price-row { margin-bottom: 20px; }
.price-input-wrap {
  display: flex; align-items: center; gap: 8px;
}
.price-icon { font-size: 20px; }
.btn-reset {
  padding: 8px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6); font-size: 13px;
  cursor: pointer;
}
.upload-actions {
  display: flex; gap: 12px; margin-top: 24px;
}
.upload-hero-bg {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
}
.upload-hero-logo { height: 48px; margin-bottom: 8px; filter: brightness(1.3); }
.upload-hero-bg h2 { font-size: 22px; font-weight: 800; }
.upload-hero-bg p { font-size: 14px; color: rgba(255,255,255,0.5); }

.form-input-lg {
  font-size: 20px; font-weight: 700; padding: 14px 16px;
}

/* Recommend page — Figma node 30:4619 originally specified .page-title
   margin-bottom 80px + .filter-tabs margin-bottom 56px (= 136px of dead
   vertical space between header and content). On real desktops that read
   as wasted scroll real estate, so V6.94.1 collapsed both margins to 24px.
   Title font-size 48px + view-toggle alignment via .recommend-head are
   unchanged. */
.recommend-page { padding-bottom: 20px; }
.recommend-page .page-title { font-size: 48px; margin-bottom: 0; }
.recommend-page .recommend-head { margin-bottom: 24px; }
.recommend-page .filter-tabs {
  gap: 40px; margin-bottom: 24px;
  flex-wrap: wrap; row-gap: 16px;
}
.recommend-page .filter-tab { font-size: 24px; padding-bottom: 6px; }
.recommend-page .filter-tab.active {
  color: #7b57e4; border-bottom-color: #7b57e4;
}
@media (max-width: 768px) {
  .recommend-page .page-title { font-size: 32px; }
  .recommend-page .recommend-head { margin-bottom: 16px; }
  .recommend-page .filter-tabs { gap: 24px; margin-bottom: 16px; }
  .recommend-page .filter-tab { font-size: 16px; }
}

/* Category landing page (V6.42). Borrows .recommend-page's sort-tabs
   chrome; adds a hero block and pagination/related-cats strip. */
.category-detail-page { padding-bottom: 40px; }
.category-hero {
  border-radius: 18px;
  padding: 48px 40px;
  margin-bottom: 40px;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.category-hero--gradient {
  background: linear-gradient(135deg, #6c5ce7 0%, #447df4 100%);
}
.category-hero-inner { max-width: 720px; }
.category-hero-eyebrow {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  opacity: .7; margin-bottom: 10px;
}
.category-hero-title {
  font-size: 48px; font-weight: 700; margin: 0 0 12px;
}
.category-hero-desc {
  font-size: 16px; opacity: .85; margin: 0 0 16px; line-height: 1.55;
}
.category-hero-meta { font-size: 14px; opacity: .8; }
.category-hero-meta strong { color: #fff; font-weight: 700; }

.category-detail-page .filter-tabs {
  gap: 32px; margin-bottom: 32px;
  flex-wrap: wrap; row-gap: 12px;
}
.category-detail-page .filter-tab { font-size: 20px; padding-bottom: 6px; }
.category-detail-page .filter-tab.active {
  color: #7b57e4; border-bottom-color: #7b57e4;
}

.pager {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 40px 0 20px;
}
.pager-btn {
  display: inline-block;
  padding: 10px 22px; border-radius: 999px;
  background: #1a1a2e; color: #d5d5d5; text-decoration: none;
  font-size: 14px; transition: background .2s;
}
.pager-btn:hover { background: #2a2a40; color: #fff; }
.pager-btn--disabled { opacity: .35; pointer-events: none; }
.pager-info { font-size: 14px; color: #999; }

.related-cats { margin-top: 48px; }
.related-cats-title { font-size: 20px; color: #d5d5d5; margin: 0 0 16px; }
.related-cats-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.related-cat-chip {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: #1a1a2e; color: #d5d5d5; text-decoration: none;
  font-size: 14px; transition: background .2s, color .2s;
}
.related-cat-chip:hover { background: #7b57e4; color: #fff; }

@media (max-width: 768px) {
  .category-hero { padding: 28px 20px; margin-bottom: 24px; }
  .category-hero-title { font-size: 32px; }
  .category-hero-desc { font-size: 14px; }
  .category-detail-page .filter-tabs { gap: 20px; margin-bottom: 20px; }
  .category-detail-page .filter-tab { font-size: 16px; }
}

/* ===== HERO BANNER RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-banner { flex-direction: column; padding: 32px 24px; }
  .hero-banner--centered { padding: 20px 16px 24px; margin-bottom: 20px; }
  .hero-banner--centered::before { width: 100%; height: 320px; }
  .hero-image { width: 100%; height: 160px; }
  .hero-title { font-size: 24px; }
  .hero-title--gradient { font-size: 30px; }
  .hero-divider { width: 72px; margin-top: 16px; }
  .hero-search--wide { height: 60px; padding: 6px 6px 6px 20px; }
  .hero-btn--inset { width: 110px; height: 46px; }
  .parse-panel { padding: 20px 16px; }
  .parse-row-main { flex-direction: column; gap: 12px; align-items: flex-start; }
  .parse-row-actions { width: 100%; }
  .parse-download-btn { flex: 1; }
}
@media (max-width: 560px) {
  /* Single-pill mobile search — same pattern Spotify / Apple Music / Beatport
     use: inset magnifying-glass icon + input + inline submit chip, all in one
     glass pill. Replaces the boxed-input + stacked-button layout that read as
     two competing surfaces. */
  .hero-search--wide {
    height: 60px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 8px 24px rgba(0,0,0,0.28);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  /* Focus glow — lights up the whole pill when the input is active */
  .hero-search--wide:focus-within {
    border-color: rgba(124,91,245,0.55);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 0 0 4px rgba(124,91,245,0.18),
      0 8px 28px rgba(0,0,0,0.35);
  }
  /* Inset search icon — pseudo-element on the form so we don't have to
     touch the template. Stroke color matches placeholder for visual harmony. */
  .hero-search--wide::before {
    content: "";
    flex-shrink: 0;
    width: 20px; height: 20px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>") center/contain no-repeat;
  }
  /* font-size must stay >=16px or iOS Safari auto-zooms on focus. */
  .hero-input--wide {
    flex: 1; min-width: 0;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 4px;
    font-size: 16px;
    color: #fff;
  }
  .hero-input--wide::placeholder { color: rgba(255,255,255,0.55); font-weight: 400; }
  .hero-btn--inset {
    width: auto; height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px; font-weight: 700;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  }
  .hero-banner--centered { padding: 16px 14px 22px; margin-bottom: 16px; }
  .hero-title--gradient { font-size: 26px; }
  .hero-subtitle--centered { font-size: 14px; line-height: 1.6; }
  .hero-supported-hint { font-size: 11px; }
  .hero-divider { width: 56px; margin-top: 14px; }
}

/* Player hint for non-logged-in users */
.player-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-left: 8px;
}

/* ===== PLAYER PAGE — MOBILE OVERRIDES =====
   Must live AFTER the unscoped .player-* desktop rules above (≈4338-4426).
   At equal specificity CSS resolves by source order, so a media-query
   block earlier in the file would lose to the desktop rules even on a
   phone — that's the bug V6.50.14 first try hit. Layout-only: stacks
   the side-by-side waveform/cover, shrinks the 40px title + 32px artist
   line, and lets the waveform occupy full width. Colors, gradients,
   fonts, and button visuals are untouched. */
@media (max-width: 768px) {
  .player-topnav { margin-bottom: 24px; }
  .player-song-title { font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
  .player-meta-row { gap: 16px; margin-bottom: 24px; }
  .player-meta-artist { font-size: 16px; gap: 8px; }
  .player-meta-artist .verified-dot-lg { width: 16px; height: 16px; }
  .player-meta-artist .verified-dot-lg::before { width: 9px; height: 9px; }
  .player-meta-item { font-size: 13px; }
  /* V6.50.17: drop flex on mobile and rely on the markup order (art,
     main) so the cover sits above the waveform via plain block flow.
     Avoids both column-reverse (Safari layout-origin bug seen in
     V6.50.15) and order/grid trickery. */
  .player-layout {
    display: block;
    margin-bottom: 28px;
  }
  .player-art {
    display: block;
    width: 100%; max-width: 320px;
    margin: 0 auto 20px;
  }
  .player-main { width: 100%; max-width: 100%; min-width: 0; }
  .waveform-wrap { margin-bottom: 16px; }
  /* V6.50.19 (1): center the waveform under the centered cover —
     desktop inherits justify-content:flex-start which reads as
     misaligned on the narrow stacked mobile layout. */
  .waveform-wrap .waveform { height: 72px; gap: 3px; justify-content: center; }
  .waveform-wrap .wave-bar { width: 4px; }
  .player-time-row { gap: 10px; }
  /* V6.50.19 (3): equal-width time slots so the progress bar sits
     symmetrically between them. The right slot shows "1:00 · 试听"
     for guests, so we reserve a fixed 70px on both sides. */
  .player-time-text {
    font-size: 14px;
    flex: 0 0 70px;
    min-width: 0;
    white-space: nowrap;
  }
  /* V6.50.19 (2): center the actions row and give the download a
     sensible flex-basis + max-width so the heart/report stay inline
     instead of dropping to a second row at common phone widths. */
  .player-actions { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .btn-download {
    flex: 1 1 220px; max-width: 320px;
    font-size: 14px; height: 46px;
    padding: 6px 14px; gap: 12px;
  }
}

/* ===== TOP UP PAGE - MISSING CLASSES ===== */
.tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tab {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: rgba(255,255,255,0.8); }
.tab.active {
  color: #7c5bf5;
  border-bottom-color: #7c5bf5;
}

.topup-section-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.pkg-price-tag {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.topup-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.topup-total-amount {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

/* ===== V6.12 — TOPUP / EXPENSES Figma re-skin ===== */

/* Shared dual-heading header (used by /topup-page and /expenses) */
.page-dual-heading {
  display: flex;
  align-items: baseline;
  gap: 32px;
  margin: 8px 0 36px;
}
.page-dual-heading .dh-active {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.page-dual-heading .dh-muted {
  font-size: 40px;
  font-weight: 800;
  color: rgba(153,153,153,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.page-dual-heading .dh-muted:hover { color: rgba(255,255,255,0.85); }

/* Topup package cards (Figma 43:4230) */
.topup-pkg-card {
  position: relative;
  padding: 22px 16px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(58deg, #161b2a 0%, #1b243b 99%);
  border: 3px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
}
.topup-pkg-card:hover { opacity: 0.85; }
.topup-pkg-card.selected {
  opacity: 1;
  border-color: #9c5af7;
}
.topup-pkg-card .pkg-card-label {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #9c5af7, #447df4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topup-pkg-card .pkg-card-diamond {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.topup-pkg-card .pkg-card-price {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

/* First-time bonus ribbon */
.first-time-ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Promo code input row (placeholder, disabled) */
.topup-promo-row {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}
.topup-promo-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
.topup-promo-input::placeholder { color: rgba(255,255,255,0.35); }
.topup-promo-apply {
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  cursor: not-allowed;
}

/* Total + confirm button (Figma: left-aligned, fixed-width) */
.topup-confirm-btn {
  display: inline-block;
  width: 280px;
  padding: 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #9c5af7, #447df4);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: filter 0.2s, transform 0.1s;
}
.topup-confirm-btn:hover:not(:disabled) { filter: brightness(1.08); }
.topup-confirm-btn:active:not(:disabled) { transform: translateY(1px); }
.topup-confirm-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Closed banner (kill switch on) */
.topup-closed-banner {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ===== EXPENSES PAGE (Figma 55:3529) ===== */
.expenses-subtabs {
  display: flex;
  gap: 36px;
  margin-bottom: 32px;
  font-size: 18px;
}
.expenses-subtabs .exp-tab {
  color: rgba(153,153,153,0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.expenses-subtabs .exp-tab:hover { color: #fff; }
.expenses-subtabs .exp-tab.active {
  color: #7b57e4;
  font-weight: 700;
}

.expenses-rows {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.expenses-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.exp-row-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1.2;
  min-width: 0;
}
.exp-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exp-thumb-fallback { font-size: 28px; opacity: 0.5; }
.exp-thumb-diamond {
  background: linear-gradient(135deg, #9c5af7, #447df4);
  font-size: 32px;
}
.exp-meta { min-width: 0; flex: 1; }
.exp-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.exp-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #999;
}
.exp-vip-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9c5af7, #447df4);
  font-size: 10px;
}

.exp-row-right {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: flex-end;
}
.exp-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}
.exp-col-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.exp-col-label {
  font-size: 12px;
  color: #999;
}

@media (max-width: 768px) {
  .page-dual-heading .dh-active,
  .page-dual-heading .dh-muted { font-size: 28px; }
  .expenses-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .exp-row-right { justify-content: space-between; gap: 12px; }
  .exp-col { min-width: 0; }
  .topup-confirm-btn { width: 100%; }
}

/* Aliases for template class names (template uses pay-methods-sub / pay-sub-btn) */
.pay-methods-sub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.pay-sub-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.pay-sub-btn:hover { border-color: rgba(124,91,245,0.3); color: #fff; }
.pay-sub-btn.active { border-color: rgba(124,91,245,0.4); background: rgba(124,91,245,0.08); color: #fff; }
.pay-sub-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.pay-sub-btn.disabled:hover { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }

/* ===== PLAYER STATS (song detail metadata) ===== */
.player-stats {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ===== MOBILE NAV OPEN STATE ===== */
.nav.nav-open .nav-center {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #0d0d20;
  padding: 16px;
  border-radius: 0 0 16px 16px;
  z-index: 100;
}
.nav.nav-open .nav-center a {
  width: auto;
  justify-content: flex-start;
}


/* ===== CATEGORY PHOTO MOSAIC (homepage, Figma 211:1336) =====
   8-tile collage preserving exact Figma positions as percentages.
   Source container: 1240 x 567 in Figma.
   Tile positions: converted from absolute px to % of container. */
.category-mosaic {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 20px auto 32px;
  aspect-ratio: 1240 / 567;
  /* Enable container queries so cqw units resolve to % of mosaic width,
     letting labels scale with the mosaic instead of the viewport. */
  container-type: inline-size;
}
/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .category-mosaic { padding-bottom: 45.73%; height: 0; }
}

.cat-tile {
  position: absolute;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  /* Fallback gradient while real image is loading / missing */
  background: linear-gradient(135deg, rgba(124,91,245,0.35), rgba(91,75,224,0.25));
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(124,91,245,0.45);
  z-index: 3;
}
.cat-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Darken overlay for label legibility when photo is present */
.cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Label defaults — sizes come from per-tile CSS vars (--label-size, --label-weight)
   set below. Font sizes use clamp(min, preferred cqw, max) so the label scales
   with the mosaic container width (cqw = % of container inline-size). */
.cat-tile-label {
  position: absolute;
  left: 0; right: 0; bottom: 10%;
  text-align: center;
  color: #fff;
  font-size: var(--label-size, clamp(14px, 2.9cqw, 36px));
  font-weight: var(--label-weight, 600);
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 2;
  line-height: 1.1;
}

/* Per-tile label sizes / weights — match Figma exactly. Scoped to N=8 (the
   pixel-exact Figma collage); dynamic N<8 layouts use the generic clamp from
   .cat-tile-label so labels scale with whatever cell size they end up in.
   Figma font sizes (at 1240px container): converted to cqw = px / 12.4. */
.category-mosaic-n8 .cat-tile-1 { --label-size: clamp(14px, 2.90cqw, 36px); --label-weight: 600; } /* 越鼓专区  36px Semibold */
.category-mosaic-n8 .cat-tile-2 { --label-size: clamp(18px, 4.03cqw, 50px); --label-weight: 600; } /* 中文舞曲  50px Semibold */
.category-mosaic-n8 .cat-tile-3 { --label-size: clamp(18px, 3.87cqw, 48px); --label-weight: 600; } /* 慢摇     48px Semibold */
.category-mosaic-n8 .cat-tile-5 { --label-size: clamp(16px, 3.87cqw, 48px); --label-weight: 600; } /* 酒吧串烧  48px Semibold */
.category-mosaic-n8 .cat-tile-6 { --label-size: clamp(12px, 2.58cqw, 32px); --label-weight: 600; } /* DJ舞曲   32px Semibold */
.category-mosaic-n8 .cat-tile-8 { --label-size: clamp(18px, 4.84cqw, 60px); --label-weight: 700; } /* 国外舞曲  60px Bold */

/* Tile 4 (串烧舞曲) has two-tier typography: big "串烧" + smaller "舞曲" below.
   Override the default bottom-positioning and stack them vertically centered. */
.cat-tile-4 .cat-tile-label {
  position: absolute;
  left: 0; right: 0;
}
.cat-tile-4 .cat-tile-label-main {
  /* "串烧" — primary label, 60px Bold in Figma, placed at ~37% from top */
  top: 30%;
  font-size: clamp(18px, 4.84cqw, 60px);
  font-weight: 700;
  bottom: auto;
}
.cat-tile-4 .cat-tile-label-sub {
  /* "舞曲" — secondary label, 32px Bold in Figma, below the primary */
  top: 53%;
  font-size: clamp(12px, 2.58cqw, 32px);
  font-weight: 700;
  bottom: auto;
  letter-spacing: 2px;
}

/* Tile 7 (独家舞曲) — override the base size so it scales with the container
   and matches Figma (48px Bold at full 1240px width). Gradient fill + filter
   are inherited from .cat-tile-featured-label above. */
.cat-tile-featured-label {
  font-size: clamp(18px, 3.87cqw, 48px) !important;
  font-weight: 700 !important;
}

/* Featured tile (#7 独家舞曲 - big VIPERMIX black card).
   No photo background — intentionally a solid near-black with very subtle
   purple tint for brand cohesion. */
.cat-tile-featured {
  background: radial-gradient(ellipse at center, #0c0c18 0%, #050509 100%);
}
/* Suppress the generic dark bottom overlay for the featured tile since it
   already has a dark background and the logo+label are centered, not bottom. */
.cat-tile-featured::before {
  display: none;
}
.cat-tile-featured-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 2;
}
.cat-tile-featured-logo {
  width: 40%;
  max-width: 220px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(124,91,245,0.5));
}
.cat-tile-featured-label {
  /* Gradient text matching Figma (linear purple → blue). */
  background: linear-gradient(90deg, #9C5AF7 0%, #447DF4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 3px;
  /* Subtle outer glow instead of text-shadow — text-shadow fights
     with background-clip: text and often renders as a muddy block. */
  filter: drop-shadow(0 2px 12px rgba(124, 91, 245, 0.45));
}

/* Tile positions — percentages derived from Figma 1240x567 collage.
   Gaps between tiles are ~12px in Figma which is built into the % gaps.
   V6.90: scoped to .category-mosaic-n8 so the absolute positions only apply
   when admin filled all 8 slots. N<8 use the dynamic CSS-grid layouts below. */
.category-mosaic-n8 .cat-tile-1 { left: 0%;      top: 0%;      width: 19.03%; height: 38.45%; } /* 越鼓专区    (236x218)  */
.category-mosaic-n8 .cat-tile-2 { left: 20.00%;  top: 0%;      width: 26.21%; height: 38.27%; } /* 中文舞曲    (325x217)  */
.category-mosaic-n8 .cat-tile-3 { left: 47.18%;  top: 0%;      width: 19.03%; height: 38.27%; } /* 慢摇        (236x217)  */
.category-mosaic-n8 .cat-tile-4 { left: 67.18%;  top: 0%;      width: 19.11%; height: 65.78%; } /* 串烧舞曲    (237x373)  */
.category-mosaic-n8 .cat-tile-5 { left: 87.18%;  top: 0%;      width: 12.82%; height: 24.51%; } /* 酒吧串烧    (159x139)  */
.category-mosaic-n8 .cat-tile-6 { left: 87.18%;  top: 26.46%;  width: 12.82%; height: 39.15%; } /* DJ舞曲      (159x222)  */
.category-mosaic-n8 .cat-tile-7 { left: 0%;      top: 40.56%;  width: 66.21%; height: 59.44%; } /* 独家舞曲    (821x337)  */
.category-mosaic-n8 .cat-tile-8 { left: 67.18%;  top: 67.72%;  width: 32.82%; height: 32.28%; } /* 国外舞曲    (407x183)  */

/* ===== V6.90 Dynamic mosaic layouts (N=1..7) =====
   Admin-configurable count. The lowest-numbered slot is always rendered
   first (template orders by mosaic_slot ASC) and gets `.cat-tile-featured`
   so the hero treatment (dark VIPERMIX card if no image) carries over.
   Each layout uses CSS Grid with named areas; tiles are placed by
   :nth-child to avoid coupling to slot numbers (admin can leave gaps,
   e.g. open slots 1,3,5 — these still render as tile #1, #2, #3). */
.category-mosaic-n1,
.category-mosaic-n2,
.category-mosaic-n3,
.category-mosaic-n4,
.category-mosaic-n5,
.category-mosaic-n6,
.category-mosaic-n7 {
  display: grid;
  gap: 12px;
  position: relative;
}
/* Override absolute positioning for tiles inside dynamic-layout containers.
   The N=8 rules above use position:absolute; for N<8 we reset to grid items. */
.category-mosaic-n1 .cat-tile,
.category-mosaic-n2 .cat-tile,
.category-mosaic-n3 .cat-tile,
.category-mosaic-n4 .cat-tile,
.category-mosaic-n5 .cat-tile,
.category-mosaic-n6 .cat-tile,
.category-mosaic-n7 .cat-tile {
  position: relative;
  left: auto; top: auto; width: auto; height: auto;
}

/* N=1 — full-bleed hero */
.category-mosaic-n1 {
  aspect-ratio: 1240 / 480;
  grid-template: "a" 1fr / 1fr;
}
.category-mosaic-n1 .cat-tile:nth-child(1) { grid-area: a; }

/* N=2 — hero left (60%) + tile right */
.category-mosaic-n2 {
  aspect-ratio: 1240 / 500;
  grid-template: "a b" 1fr / 3fr 2fr;
}
.category-mosaic-n2 .cat-tile:nth-child(1) { grid-area: a; }
.category-mosaic-n2 .cat-tile:nth-child(2) { grid-area: b; }

/* N=3 — hero left, 2 stacked right */
.category-mosaic-n3 {
  aspect-ratio: 1240 / 567;
  grid-template:
    "a b" 1fr
    "a c" 1fr
    / 3fr 2fr;
}
.category-mosaic-n3 .cat-tile:nth-child(1) { grid-area: a; }
.category-mosaic-n3 .cat-tile:nth-child(2) { grid-area: b; }
.category-mosaic-n3 .cat-tile:nth-child(3) { grid-area: c; }

/* N=4 — hero left, top-right pair, wide bottom-right */
.category-mosaic-n4 {
  aspect-ratio: 1240 / 567;
  grid-template:
    "a b c" 1fr
    "a d d" 1fr
    / 2fr 1fr 1fr;
}
.category-mosaic-n4 .cat-tile:nth-child(1) { grid-area: a; }
.category-mosaic-n4 .cat-tile:nth-child(2) { grid-area: b; }
.category-mosaic-n4 .cat-tile:nth-child(3) { grid-area: c; }
.category-mosaic-n4 .cat-tile:nth-child(4) { grid-area: d; }

/* N=5 — hero left, 2x2 right */
.category-mosaic-n5 {
  aspect-ratio: 1240 / 567;
  grid-template:
    "a b c" 1fr
    "a d e" 1fr
    / 2fr 1fr 1fr;
}
.category-mosaic-n5 .cat-tile:nth-child(1) { grid-area: a; }
.category-mosaic-n5 .cat-tile:nth-child(2) { grid-area: b; }
.category-mosaic-n5 .cat-tile:nth-child(3) { grid-area: c; }
.category-mosaic-n5 .cat-tile:nth-child(4) { grid-area: d; }
.category-mosaic-n5 .cat-tile:nth-child(5) { grid-area: e; }

/* N=6 — big hero (2x2) top-left, 5 tiles around */
.category-mosaic-n6 {
  aspect-ratio: 1240 / 700;
  grid-template:
    "a a b" 1fr
    "a a c" 1fr
    "d e f" 1fr
    / 2fr 1fr 1fr;
}
.category-mosaic-n6 .cat-tile:nth-child(1) { grid-area: a; }
.category-mosaic-n6 .cat-tile:nth-child(2) { grid-area: b; }
.category-mosaic-n6 .cat-tile:nth-child(3) { grid-area: c; }
.category-mosaic-n6 .cat-tile:nth-child(4) { grid-area: d; }
.category-mosaic-n6 .cat-tile:nth-child(5) { grid-area: e; }
.category-mosaic-n6 .cat-tile:nth-child(6) { grid-area: f; }

/* N=7 — big hero (2x2) top-left, 6 tiles in 4-col 3-row grid */
.category-mosaic-n7 {
  aspect-ratio: 1240 / 700;
  grid-template:
    "a a b c" 1fr
    "a a d e" 1fr
    "f f g g" 1fr
    / 1fr 1fr 1fr 1fr;
}
.category-mosaic-n7 .cat-tile:nth-child(1) { grid-area: a; }
.category-mosaic-n7 .cat-tile:nth-child(2) { grid-area: b; }
.category-mosaic-n7 .cat-tile:nth-child(3) { grid-area: c; }
.category-mosaic-n7 .cat-tile:nth-child(4) { grid-area: d; }
.category-mosaic-n7 .cat-tile:nth-child(5) { grid-area: e; }
.category-mosaic-n7 .cat-tile:nth-child(6) { grid-area: f; }
.category-mosaic-n7 .cat-tile:nth-child(7) { grid-area: g; }

/* Responsive scaling: simplify collage on narrow screens. Same 2-col grid
   for every N — featured tile spans 2x2; in N=8 the slot-4 tall tile keeps
   its row span. Grid template areas from desktop N<8 layouts are blown
   away by setting `grid-template: none` so :nth-child cells flow naturally. */
@media (max-width: 768px) {
  .category-mosaic,
  .category-mosaic-n1,
  .category-mosaic-n2,
  .category-mosaic-n3,
  .category-mosaic-n4,
  .category-mosaic-n5,
  .category-mosaic-n6,
  .category-mosaic-n7 {
    aspect-ratio: auto;
    display: grid;
    grid-template: none;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    grid-auto-flow: dense;
    gap: 8px;
  }
  @supports not (aspect-ratio: 1 / 1) {
    .category-mosaic { padding-bottom: 0; height: auto; }
  }
  .cat-tile {
    /* Must be `relative` (not `static`) so descendant `.cat-tile-label` and
       `.cat-tile::before` (both `position: absolute`) anchor to the tile.
       With `static`, they fell back to `.category-mosaic` as the positioning
       context — labels stacked at the bottom of the whole mosaic and overlays
       covered the entire mosaic, which read as overlapping tiles + labels
       only appearing on hover (hover repaint briefly surfaced them). */
    position: relative;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    grid-area: auto !important; /* override desktop named-area placement */
  }
  /* Featured tile (any N) takes full mobile width */
  .cat-tile-featured { grid-column: span 2; grid-row: span 2; }
  /* N=8 only: keep slot-4 (串烧舞曲) tall — a Figma-specific accent */
  .category-mosaic-n8 .cat-tile-4 { grid-row: span 2; }
  .cat-tile-featured-logo { width: 30%; }
  .cat-tile-featured-label { font-size: 24px; }
  .cat-tile-label { font-size: 18px; }
  .cat-tile-label-sm { font-size: 14px; }
}

/* ===== TOAST NOTIFICATIONS (V6.9) =====
   Stack of sliding corner toasts shared across every page. Used directly
   via window.showToast(msg, variant) and indirectly by base.html's
   flash-auto-promotion script. Variants mirror Flask flash categories:
   success / error / warning / info. */
.toast-root {
  position: fixed;
  top: 88px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 380px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(90deg, #2a2535 0%, #1f1b29 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.toast.toast-show {
  opacity: 1;
  transform: translateX(0);
}
.toast-success {
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  border-color: rgba(156,90,247,0.5);
  box-shadow: 0 8px 32px rgba(156,90,247,0.35), 0 2px 8px rgba(0,0,0,0.2);
}
.toast-error {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(239,68,68,0.5);
  box-shadow: 0 8px 32px rgba(239,68,68,0.3), 0 2px 8px rgba(0,0,0,0.2);
}
.toast-warning {
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 8px 32px rgba(245,158,11,0.3), 0 2px 8px rgba(0,0,0,0.2);
}
.toast-info {
  background: linear-gradient(90deg, #2a2535 0%, #1f1b29 100%);
  border-color: rgba(156,90,247,0.25);
}
@media (max-width: 720px) {
  .toast-root { top: 72px; right: 12px; left: 12px; }
  .toast { min-width: 0; max-width: none; }
}

/* ===== MY MUSIC PAGE (Figma 43:2593) ===== */
.my-music-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.mm-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
}
.mm-tabs {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
.mm-tab {
  font-size: 16px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
.mm-tab:hover { color: #d5d5d5; }
.mm-tab.active { color: #7b57e4; }
/* gap: 0 — V6.93's .mm-row { margin-bottom: 6px } already provides
   the inter-row gap; the original 40px gap stacked on top of that
   was making the list feel sparse. */
.mm-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Figma spec: 20px gap between cover and info, 24px gap in actions */
.mm-row { gap: 20px; }
.mm-row .ranking-info { flex: 1; min-width: 0; }
.mm-row .ranking-actions { gap: 24px; }

@media (max-width: 960px) {
  .my-music-page { padding: 16px 16px 32px; }
  .mm-title { font-size: 22px; margin-bottom: 16px; }
  .mm-tabs { gap: 18px; margin-bottom: 16px; }
  .mm-tab { font-size: 15px; }
  .mm-list { gap: 0; }
}

/* ─── VIP UPLOAD MULTI-STEP FLOW ─────────────────────────────── */

.upload-page-v2 {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* Step containers */
.upload-step { width: 100%; }

/* Titles */
.upload-title-lg {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.upload-title-md {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* Terms of service text (Step 1) */
.upload-terms {
  font-size: 24px;
  color: #999;
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin-bottom: 60px;
  max-width: 800px;
}

/* Upload card (Step 1) */
.upload-card-v2 {
  background: linear-gradient(18deg, rgb(22, 27, 42) 0%, rgb(27, 36, 59) 100%);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
}
.upload-card-v2-title {
  font-size: 24px;
  font-weight: 700;
  color: #7b57e4;
  margin-bottom: 8px;
}
.upload-card-v2-subtitle {
  font-size: 18px;
  color: #999;
  margin: 0;
}

/* Gradient buttons */
.upload-btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 52px;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: opacity 0.2s;
}
.upload-btn-gradient:hover { opacity: 0.9; }
.upload-btn-gradient:disabled,
.upload-btn-gradient[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}
.upload-btn-text {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 16px;
  height: 52px;
  display: inline-flex;
  align-items: center;
}
.upload-btn-text:hover { color: #d5d5d5; }
.upload-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 52px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.upload-btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.upload-btn-secondary:disabled,
.upload-btn-secondary[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
  pointer-events: none;
}
.upload-dropzone-active { outline: 2px dashed #9c5af7; outline-offset: 6px; border-radius: 16px; }

/* In-button upload progress — fill sweeps from 0→100% behind the label */
.upload-btn-gradient, .upload-btn-secondary { position: relative; overflow: hidden; }
.upload-btn-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 100%);
  transition: width 0.2s ease;
  pointer-events: none;
}
.upload-btn-gradient .upload-btn-fill { background: rgba(255,255,255,0.18); }
.upload-btn-label { position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.upload-btn-gradient.is-uploading, .upload-btn-secondary.is-uploading { cursor: progress; }
/* Active uploading button stays at full opacity even when disabled — the
   other (non-active) disabled button keeps the dimmed look. */
.upload-btn-gradient.is-uploading:disabled,
.upload-btn-gradient.is-processing:disabled,
.upload-btn-secondary.is-uploading:disabled,
.upload-btn-secondary.is-processing:disabled { opacity: 1; cursor: progress; }
.upload-btn-secondary.is-uploading { border-color: #9c5af7; color: #fff; }
.upload-btn-gradient.is-processing .upload-btn-fill,
.upload-btn-secondary.is-processing .upload-btn-fill {
  animation: upload-btn-pulse 1.4s ease-in-out infinite;
}
@keyframes upload-btn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Upload actions row */
.upload-actions-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 60px;
}
.upload-actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.upload-note {
  font-size: 16px;
  color: #d5d5d5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ── Step 2: Editable title ──
   3-row textarea so long titles wrap and stay visible. Subtle background
   + border so users see it's an editable field. font-family inherited
   from the form (browsers default textareas to monospace). */
.upload-editable-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  outline: none;
  width: 100%;
  padding: 12px 14px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  caret-color: #7b57e4;
  resize: none;
  font-family: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.upload-editable-title:focus {
  border-color: rgba(124,91,245,0.6);
  background: rgba(255,255,255,0.06);
}
.upload-editable-title::placeholder {
  color: rgba(255,255,255,0.3);
}

/* Artist row */
.upload-artist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
}
.upload-artist-name {
  font-size: 33px;
  color: #999;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.upload-vip-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upload-vip-badge svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

/* Content row: waveform left + cover right */
.upload-content-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}
.upload-content-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.upload-content-right {
  flex-shrink: 0;
}

/* Step 2 waveform (compact, 55 bars) */
.upload-waveform {
  display: flex;
  align-items: center;
  gap: 5.7px;
  height: 122px;
}
.upload-waveform .wave-bar {
  width: 6px;
  min-width: 6px;
  border-radius: 185px;
  background: rgba(255,255,255,0.75);
  height: var(--h, 50%);
  transition: background 0.2s;
}
.upload-waveform.playing .wave-bar {
  animation: waveAnim 0.9s infinite ease-in-out;
}

/* Player controls */
.upload-player-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.upload-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upload-play-btn:hover { opacity: 0.9; }
.upload-time {
  font-family: 'Urbanist', sans-serif;
  font-size: 21px;
  color: #c6c6c6;
  white-space: nowrap;
  min-width: 40px;
}
.upload-progress {
  flex: 1;
  height: 6px;
  background: #5e5757;
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  min-width: 0;
}
.upload-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Cover upload card ── */
.upload-cover-card {
  width: 278px;
  height: 278px;
  border-radius: 12px;
  background: linear-gradient(72deg, rgb(22, 27, 42) 0%, rgb(27, 36, 59) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}
.upload-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.upload-cover-placeholder svg {
  width: 60px;
  height: 60px;
  fill: rgba(255,255,255,0.3);
}
.upload-cover-placeholder-text {
  font-size: 24px;
  background: linear-gradient(90deg, #9c5af7, #447df4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}
.upload-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}
.upload-cover-glow {
  position: absolute;
  inset: -20px;
  z-index: 0;
  border-radius: 12px;
  filter: blur(110px);
  opacity: 0.6;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* ── Settings section (Step 2) ── */
.upload-settings-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}
.upload-setting-row {
  display: flex;
  align-items: center;
  gap: 40px;
  cursor: pointer;
  margin-bottom: 40px;
}
.upload-setting-row:last-child { margin-bottom: 0; }
.upload-setting-label {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  min-width: 124px;
}
.upload-setting-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: rgba(153,153,153,0.6);
  white-space: nowrap;
}
.upload-setting-value.is-set {
  color: #fff;
}
.upload-setting-arrow {
  width: 24px;
  height: 24px;
  transform: rotate(-90deg);
  opacity: 0.5;
}
.upload-setting-arrow svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Diamond price input inline */
.upload-price-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-diamond-icon {
  width: 23px;
  height: 20px;
  flex-shrink: 0;
}
.upload-price-input {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  width: 80px;
  text-align: center;
  caret-color: #7b57e4;
}
.upload-price-input::placeholder {
  color: rgba(153,153,153,0.6);
}

/* ── Step 3: Preview selector ── */
.preview-selector-wrap {
  position: relative;
  width: 100%;
  height: 164px;
  margin: 60px 0 24px;
  overflow: visible;
}
.preview-full-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 100%;
  width: 100%;
}
.preview-full-waveform .wave-bar {
  flex: 1;
  min-width: 2px;
  border-radius: 185px;
  background: rgba(255,255,255,0.75);
  height: var(--h, 50%);
  transition: background 0.15s;
}
.preview-full-waveform .wave-bar.in-range {
  background: #7b57e4;
}
.preview-selection-box {
  position: absolute;
  top: 0;
  height: 100%;
  border: 10px solid #ffae2b;
  border-radius: 12px;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 2;
}
.preview-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffae2b;
  cursor: ew-resize;
  z-index: 3;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.preview-handle-left { left: -23px; }
.preview-handle-right { right: -23px; }
.preview-playhead {
  position: absolute;
  top: 0;
  width: 5px;
  height: 100%;
  background: #ff3b30;
  z-index: 4;
  pointer-events: none;
  border-radius: 2px;
  left: 0;
}

/* Step 3 player extras */
.preview-ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #c6c6c6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.preview-ctrl-btn:hover { background: rgba(255,255,255,0.15); }
.preview-ctrl-btn svg {
  width: 28px;
  height: 28px;
  fill: #c6c6c6;
}

/* Preview-window picker modal CSS lives inline in
   _partials/preview_window_modal.html so the modal renders correctly on
   admin pages too (admin/base.html doesn't load this stylesheet). */

/* ── Step 4: Category picker ── */
.category-picker {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 60px;
}
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.category-chip {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  user-select: none;
}
.category-chip:hover { color: #d5d5d5; }
.category-chip.selected { color: #7b57e4; }
/* V6.40.1: multi-select label+checkbox chips reflect :checked state via
   :has() so we don't need JS to toggle a class on each click. */
.category-chip:has(input[type="checkbox"]:checked) { color: #7b57e4; }

/* Add new category inline */
.category-add-btn {
  font-size: 24px;
  color: #7b57e4;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  border: 1px dashed rgba(123,87,228,0.4);
  border-radius: 8px;
  padding: 4px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.category-add-btn:hover {
  border-color: rgba(123,87,228,0.7);
  background: rgba(123,87,228,0.08);
}
.category-add-row {
  display: none;
  align-items: center;
  gap: 12px;
}
.category-add-row.show { display: flex; }
.category-add-input {
  font-size: 20px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  width: 200px;
}
.category-add-input:focus {
  border-color: rgba(123,87,228,0.5);
}
.category-add-confirm {
  font-size: 16px;
  font-weight: 700;
  color: #7b57e4;
  background: none;
  border: none;
  cursor: pointer;
}
.category-add-confirm:hover { color: #9c5af7; }

/* Loading spinner overlay */
.upload-loading {
  position: fixed;
  inset: 0;
  background: rgba(15,8,23,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.upload-loading-text {
  font-size: 20px;
  color: #999;
}
.upload-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(123,87,228,0.2);
  border-top-color: #7b57e4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Edit-song page additions ──
   Reuses .upload-page-v2 chrome but adds: pen-toggle title, hover-edit
   cover, an inline preview re-pick drawer, and a price hint. */

.edit-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.edit-title-display {
  flex: 1;
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.5px;
  word-break: break-word;
  cursor: text;
  padding: 6px 0;
}
.edit-title-pen {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  margin-top: 6px;
}
.edit-title-pen:hover {
  background: rgba(123,87,228,0.15);
  color: #fff;
  border-color: rgba(123,87,228,0.5);
}

.upload-setting-row.edit-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.upload-setting-aux {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 4px;
}

.upload-cover-card .cover-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 8, 23, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
  pointer-events: none;
}
.upload-cover-card:hover .cover-edit-overlay {
  opacity: 1;
}
.upload-cover-card .cover-edit-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 8, 23, 0.7);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cover-hint {
  text-align: center;
  color: #888;
  font-size: 12px;
  margin-top: 8px;
}
.cover-hint-sub {
  color: #666;
  font-size: 11px;
  margin-top: 4px;
}

/* Header: title (flex:1) + cover (right column). On mobile the row
   collapses to a column with title on top and the cover centered. */
.edit-header-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 60px;
}
.edit-header-left {
  flex: 1;
  min-width: 0;
}
.edit-header-right {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.edit-cover-card {
  width: 220px;
  height: 220px;
}
/* When the cover sits next to the title, drop the artist row's outer
   margin so the cover's top aligns with the title block. */
.edit-artist-row {
  margin-bottom: 0;
}

.edit-hint {
  margin: -28px 0 40px;
  padding-left: 164px; /* aligns past the .upload-setting-label min-width */
  font-size: 13px;
  color: #999;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .upload-page-v2 { padding: 24px 16px 60px; }
  .upload-title-lg { font-size: 32px; }
  .upload-title-md { font-size: 28px; }
  .upload-terms { font-size: 16px; margin-bottom: 32px; }
  .upload-content-row { flex-direction: column; gap: 32px; }
  .upload-cover-card { width: 200px; height: 200px; align-self: center; }
  .upload-editable-title { font-size: 18px; padding: 10px 12px; }
  .upload-artist-name { font-size: 24px; }
  .upload-setting-row { gap: 20px; }
  .upload-setting-label { font-size: 16px; min-width: auto; }
  .upload-setting-value { font-size: 16px; }
  .category-chips { gap: 20px; }
  .category-chip { font-size: 18px; }
  .preview-selector-wrap { height: 120px; }

  /* Edit-song-specific mobile tweaks. Same @media block so they sit after
     any later unscoped desktop rules in this file. */
  .edit-title-display { font-size: 22px; }
  .edit-title-pen { width: 32px; height: 32px; }
  .edit-hint { padding-left: 0; margin: -20px 0 32px; }
  .preview-edit-panel { padding-top: 14px; margin-bottom: 32px; }
  /* Stack the header row vertically: cover above title (album-art-first
     pattern reads more naturally on small screens). */
  .edit-header-row { flex-direction: column-reverse; align-items: stretch; gap: 20px; margin-bottom: 40px; }
  .edit-header-right { width: 100%; }
  .edit-cover-card { width: 200px; height: 200px; }
  .preview-edit-readout { padding: 10px 14px; }
  .preview-edit-readout-value { font-size: 17px; }
  /* Touch devices don't fire :hover, so flip the persistent corner badge
     on instead of relying on the hover overlay. */
  .upload-cover-card .cover-edit-overlay { display: none; }
  .upload-cover-card .cover-edit-badge { display: flex; }

  /* Waveform bars: 100 × min-width:2px + 99 × gap:3px ≈ 497px floor,
     which overflows a ~350px mobile content area. Tighten both so the
     bars actually fit. */
  .preview-full-waveform { gap: 1.5px; }
  .preview-full-waveform .wave-bar { min-width: 1px; }
  /* The 46px round handles sit at left:-23px / right:-23px and overshoot
     the page's 16px side padding by 7px each side. Clip to keep the page
     from gaining horizontal scroll; the handles still show past the
     selection box itself, just not past the page edge. */
  .preview-selector-wrap { overflow-x: clip; }
  .preview-edit-panel { overflow-x: clip; }
}

.upgrade-vip-card { max-width: 720px; }
.upgrade-vip-desc { color: rgba(255,255,255,0.7); margin-bottom: 18px; font-size: 14px; }

/* V6.67 — username + optional wechat side-by-side with vertical divider.
   Stacks (and the divider goes horizontal) on narrow viewports. */
.upgrade-vip-fields {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 20px;
}
.upgrade-vip-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.upgrade-vip-divider {
  flex: 0 0 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}
.form-label-optional {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
}

/* V6.75 — WeChat input prefix on /upgrade-vip form. The icon sits inside
   the .form-input box; padding-left on the input clears space for it. */
.wechat-input-wrap {
  position: relative;
}
.wechat-input-wrap .wechat-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  filter: invert(56%) sepia(89%) saturate(409%) hue-rotate(85deg) brightness(95%) contrast(86%);
  /* ↑ recolours the (originally black) Simple Icons SVG to WeChat green
     (#07C160) without needing a duplicate asset. */
}
.wechat-input-wrap .form-input {
  padding-left: 38px;
}

/* V6.75 — WeChat contact chip on profile pages.
   Click to copy the wechat_id; toast confirms. WeChat doesn't expose a
   reliable deep link to open a chat by ID, so copy-to-clipboard is the
   universal Chinese-app pattern. */
.wechat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(7, 193, 96, 0.4);
  background: rgba(7, 193, 96, 0.08);
  border-radius: 999px;
  color: #07C160;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.wechat-chip:hover {
  background: rgba(7, 193, 96, 0.16);
  border-color: rgba(7, 193, 96, 0.6);
}
.wechat-chip:active {
  transform: scale(0.98);
}
.wechat-chip-icon {
  width: 16px;
  height: 16px;
  filter: invert(56%) sepia(89%) saturate(409%) hue-rotate(85deg) brightness(95%) contrast(86%);
}
.wechat-chip-label {
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wechat-chip-copy {
  opacity: 0.7;
}

.wechat-hidden-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}

.wechat-visible-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.wechat-visible-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #a78bfa);
  cursor: pointer;
  flex-shrink: 0;
}

/* V6.62 — VIP upgrade avatar upload widget (issue #26).
   Square click target with placeholder icon → preview swap on file pick. */
.vip-avatar-upload {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.vip-avatar-upload:hover {
  border-color: rgba(156,90,247,0.6);
  background: rgba(156,90,247,0.08);
}
.vip-avatar-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vip-avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  text-align: center;
  padding: 0 8px;
}
.form-hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* V6.28 — Hero "supported sites" hint + public scrape feed
   Styled to blend with the site's purple→blue gradient language.
   Vinyl-disc metaphor kept (on-theme for a DJ platform) but muted;
   no hot pink, no editorial stamps — uses `.section-head` /
   `.section-title` like other homepage sections. */

.hero-supported-hint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.scrape-feed-section .section-head { align-items: center; }
.scrape-feed-section .section-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-left: 6px;
}

/* ── Prev/Next arrows — match site's purple accent ──────────────────── */
.scrape-feed-nav { display: flex; gap: 8px; margin-left: auto; }
.scrape-feed-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  padding: 0;
}
.scrape-feed-arrow:hover {
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  border-color: transparent;
  color: #fff;
}
.scrape-feed-arrow--disabled { opacity: 0.25; pointer-events: none; }

/* ── Scroller ────────────────────────────────────────────────────────── */
.scrape-feed-scroller {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(156,90,247,0.45) transparent;
  padding: 8px 2px 14px;
  margin: -8px -2px -14px;
}
.scrape-feed-scroller::-webkit-scrollbar { height: 6px; }
.scrape-feed-scroller::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 3px; }
.scrape-feed-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  border-radius: 3px;
}

.scrape-feed-list { display: flex; gap: 14px; flex-wrap: nowrap; }

.scrape-feed-empty {
  flex: 0 0 auto;
  padding: 40px 48px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  min-width: 320px;
}

/* ── The card ───────────────────────────────────────────────────────── */
.scrape-feed-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px;
  flex: 0 0 320px;
  width: 320px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s,
              background 0.22s;
}
.scrape-feed-item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(156,90,247,0.45);
  box-shadow: 0 12px 32px -16px rgba(156,90,247,0.55);
}

/* ── Vinyl disc (on-theme for DJ, muted to the site palette) ────────── */
.scrape-feed-disc {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,0.05) 0%, transparent 22%),
    repeating-radial-gradient(circle at center,
      #0f0d14 0 1.5px,
      #1b1826 1.5px 3px),
    #0a090e;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05),
              0 4px 14px -8px rgba(0,0,0,0.9);
  transition: transform 0.3s ease;
}
.scrape-feed-item:hover .scrape-feed-disc {
  animation: vinyl-spin 6s linear infinite;
}
@keyframes vinyl-spin { to { transform: rotate(360deg); } }

.scrape-feed-disc-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  /* Site's purple→blue gradient as the default record label */
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 111.54%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}
.scrape-feed-disc-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scrape-feed-disc-label.is-empty img { display: none; }
.scrape-feed-disc-spindle {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  z-index: 2;
}

/* ── Text column ─────────────────────────────────────────────────────── */
.scrape-feed-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* V6.34: proxy-download icon on a scrape-feed card. Positioned in the
   top-right corner of the card; nested inside the outer <a> with
   onclick stopPropagation so it navigates to the signed endpoint
   without also opening the source URL. */
.scrape-feed-dl {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(156, 90, 247, 0.15);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(156, 90, 247, 0.35);
  transition: background 0.15s, transform 0.15s;
  z-index: 3;
  cursor: pointer;
  user-select: none;
}
.scrape-feed-dl:focus-visible {
  outline: 2px solid rgba(156, 90, 247, 0.8);
  outline-offset: 2px;
}

/* Processing state — click triggers a proxy download that can take a few
   seconds for the first byte. Swap the arrow for a spinning ring so the
   user knows something is happening. Re-enabled by the same JS handler
   on a fixed timeout (the browser's own download UI takes over from
   there). */
.scrape-feed-dl.is-loading {
  pointer-events: none;
  background: rgba(156, 90, 247, 0.3);
}
.scrape-feed-dl.is-loading svg { display: none; }
.scrape-feed-dl.is-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: scrape-dl-spin 0.7s linear infinite;
}
@keyframes scrape-dl-spin { to { transform: rotate(360deg); } }

/* Same spinner pattern for the 下载歌曲 button in the parse-result row. */
.parse-download-btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
  color: transparent;
}
.parse-download-btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: scrape-dl-spin 0.7s linear infinite;
}
.scrape-feed-dl:hover {
  background: rgba(156, 90, 247, 0.35);
  transform: scale(1.08);
  color: #fff;
}
.scrape-feed-item.is-failed .scrape-feed-dl,
.scrape-feed-item.is-blocked .scrape-feed-dl { display: none; }

.scrape-feed-card-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scrape-feed-artist {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scrape-feed-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scrape-feed-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  /* Reserve room for the 28px .scrape-feed-dl pinned bottom-right so
     the "N 次解析" chip never slides under it. */
  padding-right: 40px;
  font-family: 'Urbanist', 'PingFang SC', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.scrape-feed-domain {
  padding: 2px 8px;
  /* Thin tint of the site gradient */
  background: linear-gradient(90deg, rgba(156,90,247,0.18) 0%, rgba(68,125,244,0.18) 111.54%);
  color: rgba(255,255,255,0.85);
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.scrape-feed-user { color: rgba(255,255,255,0.55); }
.scrape-feed-time { color: rgba(255,255,255,0.38); }
.scrape-feed-count {
  margin-left: auto;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

/* ── Status badges — subtle, match the site's flash-toast palette ─── */
.scrape-feed-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1.4;
}
.scrape-feed-badge.badge-failed {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.scrape-feed-badge.badge-blocked {
  background: rgba(251, 146, 60, 0.16);
  color: #fdba74;
}

.scrape-feed-item.is-failed,
.scrape-feed-item.is-blocked { opacity: 0.75; }
.scrape-feed-item.is-failed .scrape-feed-disc,
.scrape-feed-item.is-blocked .scrape-feed-disc { filter: grayscale(0.7); }

@media (max-width: 720px) {
  .scrape-feed-item { flex: 0 0 280px; width: 280px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BULK UPLOAD  —  /vip/upload/bulk
   Continuous single-page layout: header → dropzone → file list → sticky bar.
   Builds on .upload-page-v2, .upload-btn-gradient, .upload-btn-secondary,
   .upload-btn-fill, .wave-bar, .category-chip, .upload-vip-badge,
   .upload-diamond-icon, .player-back from the single-song flow.
   ═══════════════════════════════════════════════════════════════════════════ */

.bulk-upload-page { padding-bottom: 160px; }

/* ── Dropzone ── */
.bulk-dropzone {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(18deg, rgb(22, 27, 42) 0%, rgb(27, 36, 59) 100%);
  border: 1.5px dashed rgba(156, 90, 247, 0.35);
  margin-bottom: 32px;
  transition: border-color 0.2s, padding 0.3s, background 0.2s;
  overflow: hidden;
}
.bulk-dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(156, 90, 247, 0.18), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(68, 125, 244, 0.14), transparent 55%);
  pointer-events: none;
}
.bulk-dropzone-inner {
  position: relative;
  padding: 64px 32px;
  text-align: center;
}
.bulk-dropzone-icon {
  width: 64px; height: 64px;
  color: #7b57e4;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(156, 90, 247, 0.35));
}
.bulk-dropzone-title {
  font-size: 28px; font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.bulk-dropzone-subtitle {
  font-size: 15px;
  color: #999;
  margin-bottom: 28px;
  line-height: 1.6;
}
.bulk-dropzone-btn { width: 200px; }
.bulk-dropzone.bulk-dropzone-active {
  border-color: #9c5af7;
  border-style: solid;
  background: linear-gradient(18deg, rgb(28, 22, 50) 0%, rgb(32, 30, 68) 100%);
}
.bulk-dropzone.bulk-dropzone-active::before {
  background: radial-gradient(circle at 50% 50%, rgba(156, 90, 247, 0.35), transparent 70%);
}

/* Compact variant once files have been added */
.bulk-dropzone.bulk-dropzone-compact { margin-bottom: 20px; }
.bulk-dropzone.bulk-dropzone-compact .bulk-dropzone-inner { padding: 18px 24px; display: flex; align-items: center; gap: 16px; text-align: left; }
.bulk-dropzone.bulk-dropzone-compact .bulk-dropzone-icon { width: 28px; height: 28px; margin-bottom: 0; }
.bulk-dropzone.bulk-dropzone-compact .bulk-dropzone-title { font-size: 15px; margin-bottom: 0; font-weight: 700; }
.bulk-dropzone.bulk-dropzone-compact .bulk-dropzone-subtitle { font-size: 12px; margin-bottom: 0; flex: 1; }
.bulk-dropzone.bulk-dropzone-compact .bulk-dropzone-btn { width: 140px; height: 40px; font-size: 14px; }

/* ── List header ── */
.bulk-list-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 4px;
  margin-bottom: 14px;
}
.bulk-list-count {
  font-family: 'Urbanist', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.bulk-list-status {
  font-size: 14px;
  color: #999;
  letter-spacing: 0.3px;
}

/* ── Row container ── */
.bulk-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bulk-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(22, 27, 42, 0.85) 0%, rgba(27, 36, 59, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, opacity 0.25s;
}
.bulk-row[data-state="decoding"] .bulk-row-main,
.bulk-row[data-state="decoding"] .bulk-row-controls { opacity: 0.45; }
.bulk-row[data-state="error"] { border-color: rgba(239, 68, 68, 0.35); }
.bulk-row[data-state="failed"] { border-color: rgba(239, 68, 68, 0.45); }
.bulk-row[data-state="done"] { border-color: rgba(123, 87, 228, 0.35); background: linear-gradient(90deg, rgba(28, 22, 50, 0.9) 0%, rgba(32, 40, 72, 0.9) 100%); }
.bulk-row[data-state="uploading"] { border-color: rgba(156, 90, 247, 0.5); }

/* ── Cover square (left) ── */
.bulk-row-cover {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 10px;
  background: linear-gradient(72deg, rgb(22, 27, 42) 0%, rgb(27, 36, 59) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.bulk-row-cover:hover { border-color: rgba(156, 90, 247, 0.5); }
.bulk-row-cover-img { width: 100%; height: 100%; object-fit: cover; }
.bulk-row-cover-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, 0.35);
}
.bulk-row-cover-placeholder svg { width: 24px; height: 24px; }
.bulk-row-cover-label {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Main info column ── */
.bulk-row-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.bulk-row-file {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8a8a8a;
  font-family: 'Urbanist', -apple-system, monospace;
  letter-spacing: 0.2px;
  min-width: 0;
}
.bulk-row-file-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
.bulk-row-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
  color: #bfbfbf;
}
.bulk-row-filesize {
  font-variant-numeric: tabular-nums;
  color: #8a8a8a;
  flex-shrink: 0;
}

/* Inline status tag next to filename (during/after upload) */
.bulk-row-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Urbanist', sans-serif;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  flex-shrink: 0;
}
.bulk-row-status-tag.is-uploading {
  background: linear-gradient(90deg, rgba(156, 90, 247, 0.25), rgba(68, 125, 244, 0.25));
  color: #c8b4ff;
  border: 1px solid rgba(156, 90, 247, 0.4);
}
.bulk-row-status-tag.is-processing {
  background: rgba(156, 90, 247, 0.22);
  color: #c8b4ff;
  border: 1px solid rgba(156, 90, 247, 0.4);
  animation: upload-btn-pulse 1.4s ease-in-out infinite;
}
.bulk-row-status-tag.is-done {
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.bulk-row-status-tag.is-failed {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.bulk-row-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  padding: 2px 0;
  line-height: 1.3;
  letter-spacing: 0.2px;
  caret-color: #7b57e4;
  width: 100%;
  min-width: 0;
}
.bulk-row-title:focus { border-bottom: 1px solid rgba(123, 87, 228, 0.6); }
.bulk-row-title::placeholder { color: rgba(255, 255, 255, 0.3); }
.bulk-row-title:disabled { color: #bfbfbf; cursor: default; }

.bulk-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #999;
  letter-spacing: 0.3px;
  font-family: 'Urbanist', 'PingFang SC', sans-serif;
}
.bulk-row-artist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bfbfbf;
}
.bulk-row-artist .upload-vip-badge {
  width: 14px; height: 14px;
}
.bulk-row-artist .upload-vip-badge svg { width: 8px; height: 8px; }
.bulk-row-dot { color: rgba(255, 255, 255, 0.25); }
.bulk-row-duration { font-variant-numeric: tabular-nums; }
.bulk-row-preview { color: #7b57e4; letter-spacing: 0.3px; }
.bulk-row-preview-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #7b57e4;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.bulk-row-preview-btn:hover:not(:disabled) { color: #9c5af7; }
.bulk-row-preview-btn:disabled {
  cursor: default;
  opacity: 0.55;
  text-decoration: none;
}

/* ── Controls column (right) ── */
.bulk-row-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bulk-row-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.bulk-row-price:focus-within {
  border-color: rgba(156, 90, 247, 0.55);
  background: rgba(156, 90, 247, 0.08);
}
.bulk-row-price .upload-diamond-icon { width: 14px; height: 12px; }
.bulk-row-price-input {
  font-family: 'Urbanist', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  width: 68px;
  caret-color: #7b57e4;
  font-variant-numeric: tabular-nums;
  /* hide number spinners */
  appearance: textfield;
  -moz-appearance: textfield;
}
.bulk-row-price-input::-webkit-outer-spin-button,
.bulk-row-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.bulk-row-price-input::placeholder { color: rgba(255, 255, 255, 0.35); font-weight: 600; }
.bulk-row-price-input:disabled { color: #bfbfbf; }

.bulk-row-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: inherit;
}
.bulk-row-cat-pill:hover { border-color: rgba(156, 90, 247, 0.4); color: #d5d5d5; }
.bulk-row-cat-pill.is-set {
  background: rgba(123, 87, 228, 0.15);
  border-color: rgba(123, 87, 228, 0.5);
  color: #c8b4ff;
}
.bulk-row-cat-pill svg {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}
.bulk-row-cat-pill:disabled { opacity: 0.45; cursor: default; }

.bulk-row-required-star {
  color: #ef4444;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
  letter-spacing: 0;
}
.bulk-row-price.is-missing,
.bulk-row-cat-pill.is-missing {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
}
.bulk-row-cat-pill.is-missing { color: #fca5a5; }

.bulk-row-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.bulk-row-remove:hover {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}
.bulk-row-remove svg { width: 14px; height: 14px; }
.bulk-row-remove:disabled { opacity: 0.3; cursor: default; }

/* ── Per-row overlay (decode/error states only) ── */
.bulk-row-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 17, 28, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 14px;
  z-index: 5;
  pointer-events: none;
}
.bulk-row-overlay.is-error {
  background: rgba(40, 14, 18, 0.85);
  color: #fca5a5;
}
.bulk-row-overlay-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #d5d5d5;
}
.bulk-row-overlay-inner .upload-loading-spinner {
  width: 20px; height: 20px;
  border-width: 2px;
  margin-bottom: 0;
}

/* ── Per-row progress bar (at bottom of row during upload) ── */
.bulk-row-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.bulk-row-progress.is-active { opacity: 1; }
.bulk-row[data-state="done"] .bulk-row-progress { opacity: 1; }
.bulk-row-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9c5af7 0%, #447df4 100%);
  width: 0%;
  transition: width 0.2s ease;
  box-shadow: 0 0 12px rgba(156, 90, 247, 0.6);
}
/* Indeterminate fallback — sweeping highlight when server is processing or
   when the browser isn't emitting upload progress events yet. */
.bulk-row-progress.is-indeterminate .bulk-row-progress-fill {
  width: 40% !important;
  animation: bulk-progress-sweep 1.2s ease-in-out infinite;
}
@keyframes bulk-progress-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── "Add more" tile ── */
.bulk-add-more {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #999;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: inherit;
}
.bulk-add-more:hover {
  border-color: rgba(156, 90, 247, 0.5);
  color: #c8b4ff;
  background: rgba(156, 90, 247, 0.05);
}
.bulk-add-more svg { width: 16px; height: 16px; }

/* ── Category popover ── */
.bulk-cat-pop {
  position: fixed;
  z-index: 100;
  min-width: 280px;
  max-width: 480px;
  padding: 14px 16px;
  background: linear-gradient(18deg, rgb(28, 33, 50) 0%, rgb(34, 44, 68) 100%);
  border: 1px solid rgba(156, 90, 247, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.bulk-cat-pop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.bulk-cat-chip {
  font-size: 14px;
  padding: 4px 2px;
}
.bulk-cat-chip-clear {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}
.bulk-cat-chip.selected { color: #9c5af7; font-weight: 700; }

/* ── Sticky action bar ── */
.bulk-actions-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 8, 18, 0) 0%, rgba(10, 8, 18, 0.92) 30%, rgba(10, 8, 18, 0.98) 100%);
  padding: 30px 24px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bulk-actions-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bulk-actions-summary {
  font-size: 15px;
  font-weight: 600;
  color: #d5d5d5;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}
.bulk-actions-buttons {
  display: flex;
  gap: 14px;
}
.bulk-actions-buttons .upload-btn-gradient,
.bulk-actions-buttons .upload-btn-secondary {
  width: 168px;
  height: 46px;
  font-size: 15px;
}
.bulk-actions-note {
  max-width: 1240px;
  margin: 8px auto 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.3px;
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .bulk-dropzone-inner { padding: 40px 20px; }
  .bulk-dropzone-title { font-size: 20px; }
  .bulk-dropzone-subtitle { font-size: 13px; }
  .bulk-row {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 12px 14px;
  }
  .bulk-row-cover { width: 56px; height: 56px; }
  .bulk-row-controls {
    grid-column: 1 / -1;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .bulk-row-filename { max-width: 180px; }
  .bulk-actions-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .bulk-actions-buttons { justify-content: space-between; }
  .bulk-actions-buttons .upload-btn-gradient,
  .bulk-actions-buttons .upload-btn-secondary { width: auto; flex: 1; }
}

/* ── Hero search V6.47 — autocomplete dropdown + /search results page ── */

/* .hero-content (z-index: 1) creates a stacking context that caps every
   descendant — including our dropdown — below ANY sibling-level element
   with z-index > 1 in the document root. The mosaic uses .cat-tile:hover
   { z-index: 3 } so a hovered tile would float above the dropdown.
   Bump the centered hero so the whole hero (and the dropdown inside it)
   wins. Scoped to --centered to leave the regular hero-banner untouched. */
.hero-banner--centered .hero-content--centered { z-index: 40; }

.hero-search--query { position: relative; }

.hero-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgb(22,27,42), rgb(27,36,59));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  max-height: 480px;
  overflow-y: auto;
  padding: 8px 0;
  text-align: left;
}
.hero-suggest[hidden] { display: none; }

/* Two-column suggest layout: songs left, creators + playlists stacked right.
   Collapses to single column ≤700px (see media query at the bottom). */
.hero-suggest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-suggest-col { min-width: 0; }
.hero-suggest-col + .hero-suggest-col {
  border-left: 1px solid rgba(255,255,255,0.06);
}

.hero-suggest-section { padding: 4px 0; }
.hero-suggest-section + .hero-suggest-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.hero-suggest-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  padding: 6px 16px 4px;
}

.hero-suggest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s;
}
.hero-suggest-row:hover,
.hero-suggest-row.is-active { background: rgba(124,91,245,0.18); }

.hero-suggest-thumb {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-suggest-thumb--round { border-radius: 50%; }
.hero-suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-suggest-placeholder {
  font-size: 18px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.hero-suggest-meta { min-width: 0; flex: 1; }
.hero-suggest-title {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-suggest-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

.hero-suggest-empty {
  padding: 24px 16px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.hero-suggest-all {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #9c5af7;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 6px;
  text-decoration: none;
}
.hero-suggest-all:hover { background: rgba(124,91,245,0.12); }

/* /search page layout */
.search-page { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.search-page .hero-search--wide { margin-top: 8px; margin-bottom: 24px; }

.search-empty-prompt {
  padding: 60px 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

.search-summary {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}
.search-summary strong { color: #9c5af7; font-weight: 700; }
.search-summary-count {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Match-highlight inside search results (issue #48) */
.search-hit {
  background: linear-gradient(180deg, rgba(156,90,247,0.18), rgba(68,125,244,0.18));
  color: #fff;
  padding: 0 2px;
  border-radius: 3px;
}

/* Per-row 已购买 pill on /search list rows */
.search-row-purchased {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(34,197,94,0.18);
  color: #22c55e;
  white-space: nowrap;
}

.search-section { margin-bottom: 36px; }
.search-section .section-title { margin-bottom: 16px; }

/* Creator + playlist tile grids on /search */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.creator-tile {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 20px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, background-color 0.15s;
}
.creator-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(124,91,245,0.4);
  background: rgba(124,91,245,0.08);
}
.creator-tile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #7c5bf5, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.creator-tile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-tile-initial { font-size: 28px; font-weight: 700; color: #fff; }
.creator-tile-name { font-size: 15px; font-weight: 600; }
.creator-tile-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.creator-tile-bio {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.playlist-tile {
  text-decoration: none; color: inherit;
  transition: transform 0.15s;
}
.playlist-tile:hover { transform: translateY(-3px); }
.playlist-tile-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2540, #1a1f30);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.playlist-tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist-tile-glyph { font-size: 56px; color: rgba(255,255,255,0.25); }
.playlist-tile-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  font-size: 11px; font-weight: 600;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.playlist-tile-name {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playlist-tile-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }

@media (max-width: 768px) {
  .hero-suggest { max-height: 70vh; }
  .hero-suggest-grid { grid-template-columns: 1fr; }
  .hero-suggest-col + .hero-suggest-col {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .playlist-grid { grid-template-columns: repeat(2, 1fr); }
}

/* V6.51: phone-collection modal for SuperPay (MYR) topups */
.phone-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.phone-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.phone-modal-card {
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  width: min(90vw, 380px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.phone-modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}
.phone-modal-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.phone-modal-card input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}
.phone-modal-card input[type="tel"]:focus {
  outline: none;
  border-color: rgba(180, 120, 255, 0.6);
}
.phone-modal-error {
  margin-top: 8px;
  color: #ff6b6b;
  font-size: 13px;
}
.phone-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.phone-modal-cancel,
.phone-modal-confirm {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}
.phone-modal-cancel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
}
.phone-modal-cancel:hover { background: rgba(255, 255, 255, 0.04); }
.phone-modal-confirm {
  background: linear-gradient(135deg, #b478ff, #6e42c1);
  color: #fff;
  font-weight: 600;
}
.phone-modal-confirm:hover { filter: brightness(1.1); }

/* ── Bulk select — mobile (issue #46) ────────────────────────────────
   Placed at end of file so this beats the 1100-px desktop @media block
   above (per memory: late mobile rules win at equal specificity). */
@media (max-width: 720px) {
  .vip-bulk-toolbar {
    top: 8px;
    padding: 10px 14px;
    gap: 12px;
  }
  .vip-bulk-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
  .vip-bulk-count { font-size: 13px; }
  .vip-song-check { width: 22px; }
}

/* ── Discovery list rows + view toggle — mobile (T3e: #41, #43) ──────
   Placed at end of file to win the source-order race against unscoped
   desktop rules above (per `feedback_css_mobile_source_order` memory). */
@media (max-width: 720px) {
  .recommend-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .song-row {
    gap: 12px;
    padding: 10px 12px;
  }
  .song-row-cover { width: 48px; height: 48px; }
  .song-row-name { font-size: 14px; }
  .song-row-meta .song-row-artist { max-width: 140px; }
  .song-row-stats {
    gap: 10px;
    font-size: 12px;
  }
  /* Hide download count on small screens — price stays. */
  .song-row-dl { display: none; }
}

/* ── 热门搜索 chip rail + /search list — mobile (T3e-B: #25, #48) ─────
   Mobile rules at file end so they win the source-order race against
   the unscoped desktop rules above. */
@media (max-width: 720px) {
  .hot-search-rail {
    margin-top: 10px;
    gap: 6px;
    justify-content: flex-start;
    padding: 0 4px;
  }
  .hot-search-label {
    width: 100%;
    text-align: left;
    margin-bottom: 2px;
  }
  .hot-search-chip {
    padding: 5px 11px;
    font-size: 12px;
  }
  .search-summary { font-size: 14px; }
  .search-row .song-row-stats { gap: 6px; }
  .search-row-purchased { padding: 3px 8px; font-size: 11px; }
}

/* V6.67 — upgrade-vip form stacks vertically below 640px; divider rotates
   from a vertical 1px line into a horizontal hairline between the fields. */
@media (max-width: 640px) {
  .upgrade-vip-fields {
    flex-direction: column;
    gap: 16px;
  }
  .upgrade-vip-divider {
    flex: 0 0 1px;
    height: 1px;
    width: 100%;
    align-self: stretch;
  }
}

/* V6.67 — avatar editor mobile overrides. Hover doesn't exist on touch,
   so always show a small camera badge in the bottom-right of the avatar
   to advertise tap-to-edit. Modal also shrinks for narrow viewports. */
@media (max-width: 720px) {
  button.user-profile-avatar.avatar-editable::after {
    content: '';
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 2L7.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-3.17L15 2H9zm3 15a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/></svg>"),
      linear-gradient(135deg, #9c5af7 0%, #5b4be0 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px, cover;
    border: 2px solid #0f0817;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    pointer-events: none;
  }
  /* Hide the desktop hover overlay on touch — the badge does the job. */
  .avatar-edit-overlay { display: none; }
}
@media (max-width: 540px) {
  .avatar-modal-card {
    max-width: 100%;
    padding: 24px 18px 18px;
    border-radius: 16px;
  }
  .avatar-modal-title { font-size: 19px; }
  .avatar-modal-desc { font-size: 12px; margin-bottom: 16px; }
  .avatar-modal-preview { width: 156px; height: 156px; }
  .avatar-modal-actions { gap: 10px; margin-top: 20px; }
  .avatar-modal-actions .btn-outline,
  .avatar-modal-actions .btn-primary { height: 46px; font-size: 14px; }
}

/* ── VIP bulk-edit modal (issue #65) ─────────────────────────────────── */
.vip-bulk-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 4, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vip-bulk-edit-modal[hidden] { display: none; }
.vip-bulk-edit-card {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(180deg, #1c1234 0%, #120c24 100%);
  border: 1px solid rgba(156, 90, 247, 0.35);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.vip-bulk-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.vip-bulk-edit-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.vip-bulk-edit-title span {
  color: #b292ff;
  font-weight: 700;
}
.vip-bulk-edit-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.vip-bulk-edit-close:hover { color: #fff; }
.vip-bulk-edit-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vip-bulk-edit-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.vip-bulk-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
}
.vip-bulk-edit-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #9c5af7;
  cursor: pointer;
}
.vip-bulk-edit-field {
  margin-top: 12px;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s;
}
.vip-bulk-edit-field.-active {
  opacity: 1;
  pointer-events: auto;
}
.vip-bulk-edit-field .upload-price-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vip-bulk-edit-field .upload-price-input {
  width: 140px;
}
.vip-bulk-edit-hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}
.vip-bulk-edit-chips {
  gap: 18px;
}
.vip-bulk-edit-chips .category-chip {
  font-size: 16px;
}
.vip-bulk-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile overrides for the bulk-edit modal — placed at file end per the
   feedback_css_mobile_source_order memory. */
@media (max-width: 640px) {
  .vip-bulk-edit-modal { padding: 12px; }
  .vip-bulk-edit-card { padding: 18px 18px 20px; border-radius: 14px; }
  .vip-bulk-edit-title { font-size: 16px; }
  .vip-bulk-edit-toggle { font-size: 14px; }
  .vip-bulk-edit-section { padding: 12px 14px; }
  .vip-bulk-edit-chips { gap: 14px; }
  .vip-bulk-edit-chips .category-chip { font-size: 15px; }
  .vip-bulk-edit-field .upload-price-input { width: 120px; }
  .vip-bulk-edit-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .vip-bulk-edit-actions .vip-btn-gradient,
  .vip-bulk-edit-actions .vip-btn-outlined { width: 100%; }
}

/* ── Pagination (public site) ──────────────────────────────────────────
   Used on user_profile (and any public list that paginates). Styled to
   match the dark public theme — admin.css has its own .pagination using
   admin design tokens, so we scope ours to the public color palette. */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 18px 12px;
  font-size: 13px;
  font-weight: 500;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s, border-color 0.15s;
}
.pagination a:hover {
  background: rgba(156, 90, 247, 0.18);
  border-color: rgba(156, 90, 247, 0.45);
  color: #fff;
}
.pagination .current {
  background: linear-gradient(90deg, rgba(156, 90, 247, 0.35), rgba(68, 125, 244, 0.35));
  border-color: rgba(156, 90, 247, 0.6);
  color: #fff;
  font-weight: 700;
}
.pagination .disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}
.pagination .per-page {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}
.pagination .per-page select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 32, 0.9);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
@media (max-width: 560px) {
  .pagination { gap: 4px; padding: 20px 8px 8px; }
  .pagination a, .pagination span { padding: 6px 10px; font-size: 12px; }
  .pagination .per-page { margin-left: 0; width: 100%; justify-content: center; margin-top: 8px; }
}

/* V6.93 — Compact .ranking-row across /ranking, /my-music, /user/<u>.
   The original Figma (35:562) sized the row for a leaderboard-like impact —
   80px covers, 32px gaps, 48px play button — but on /my-music and the user
   profile page the same dimensions read as wasted space. /recommend's
   .song-row uses 56px covers + 12px padding; this block tightens the
   ranking row toward those values while keeping the leaderboard's visual
   identity (top-3 gradient digits, glow layer, big download pill).

   Override-style block — placed after the original .ranking-row rules and
   the responsive media queries so it wins specificity ties without
   touching the V5 source. Mobile media queries below still handle <768px. */
.ranking-row {
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
  margin-bottom: 6px;
}
.ranking-row:hover { background: rgba(255,255,255,0.06); }

.ranking-num-wrap { width: 32px; }
.ranking-num { font-size: 22px; }
.ranking-num.top3 { font-size: 30px; }

.ranking-trend { width: 20px; }
.ranking-trend .trend-icon { font-size: 14px; }
.ranking-trend .trend-val { font-size: 12px; }
.ranking-trend .trend-new { font-size: 9px; padding: 2px 5px; }

/* Cover shrinks to 56px (matches .song-row-cover). The two inner layers
   (-glow and -img) are sized via percentages so they follow the parent. */
.ranking-cover { width: 56px; height: 56px; border-radius: 6px; }
.ranking-cover-img {
  width: 100%; height: 100%;
  left: 0; top: 0;
  border-radius: 6px;
}
.ranking-cover-glow {
  left: 0; top: 0;
  width: 100%; height: 100%;
  border-radius: 6px;
  filter: blur(40px);
  opacity: 0.5;
}

.ranking-info { gap: 2px; }
.ranking-name { font-size: 14px; letter-spacing: 0.2px; }
.ranking-artist { font-size: 12px; gap: 8px; letter-spacing: 0.2px; }

.ranking-actions { gap: 12px; }
.ranking-play-btn {
  width: 36px; height: 36px;
  font-size: 13px;
}

/* Download pill: shrink height to match the smaller row. The width can
   stay larger so the "下载歌曲 💎N" text still has its own visual weight. */
.ranking-download-btn {
  width: 140px; height: 38px;
  padding: 4px 12px;
  gap: 12px;
  border-radius: 10px;
}
.ranking-download-label { font-size: 13px; }
.ranking-download-status { font-size: 13px; gap: 4px; }

.ranking-heart {
  height: 38px;
  padding: 4px 8px;
}
.ranking-heart-icon { width: 22px; height: 24px; }

/* /my-music + /user/<u> use the row directly — make sure the inner action
   gap matches the new tighter spacing. Original .mm-row .ranking-actions
   set gap: 24px, which we now want to be 12. */
.mm-row { gap: 16px; margin-bottom: 6px; }
.mm-row .ranking-actions { gap: 12px; }

@media (max-width: 768px) {
  .ranking-row { padding: 8px 10px; gap: 12px; }
  .ranking-actions { gap: 8px; }
  .ranking-download-btn { width: auto; height: 36px; padding: 4px 10px; gap: 8px; }
  .ranking-heart { height: 36px; }
  .ranking-heart-icon { width: 20px; height: 22px; }
  .ranking-cover { width: 48px; height: 48px; }
  .ranking-num { font-size: 18px; }
  .ranking-num.top3 { font-size: 24px; }
}
@media (max-width: 560px) {
  .ranking-row { padding: 8px 10px; gap: 10px; flex-wrap: wrap; }
  .ranking-num { font-size: 18px; }
  .ranking-num.top3 { font-size: 22px; }
  .ranking-num-wrap { width: 24px; }
  .ranking-cover { width: 44px; height: 44px; }
}

/* ─────────────────────────────────────────────────────────────────
   V6.95 — Mobile bottom nav (4 tabs).
   Renders for everyone in base.html but display:none on desktop. At
   ≤768px: position:fixed at the bottom, 4 equal-width tabs with icon +
   label, active tab uses the site's purple→blue gradient. body gets
   bottom padding so page content doesn't hide behind the bar (uses
   safe-area inset for iPhone notch/home-indicator).
   The pre-V6.95 hamburger nav drawer is hidden on mobile when this is
   present — the 4 main user-side routes are now in the bottom bar.
   ───────────────────────────────────────────────────────────────── */
.bottom-nav { display: none; }

@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    background: rgba(15, 10, 30, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.35);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 8px 4px 6px;
    min-height: 56px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.15s;
  }
  .bottom-nav-item:active { transform: scale(0.96); }
  .bottom-nav-icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
  }
  .bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1;
  }
  /* Active tab: purple→blue gradient on icon stroke + label text */
  .bottom-nav-item.is-active {
    color: transparent;
    background: linear-gradient(135deg, #9c5af7, #447df4);
    -webkit-background-clip: text;
    background-clip: text;
  }
  .bottom-nav-item.is-active .bottom-nav-icon {
    stroke: url(#bottom-nav-grad);
    /* Fallback for browsers without SVG gradient ref support — solid purple */
    stroke: #9c5af7;
  }
  .bottom-nav-item.is-active .bottom-nav-label {
    background: linear-gradient(135deg, #9c5af7, #447df4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Push page content above the fixed bar so the last row isn't hidden.
     56px bar + safe-area inset + a small visual gap. */
  .wrap { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0)); }

  /* Hamburger drawer is replaced by the bottom bar — hide its trigger.
     The avatar dropdown still surfaces VIP/lang items (.nav-mobile-only)
     because those aren't covered by the 4 bottom tabs. */
  .nav-mobile-toggle { display: none !important; }
  .nav.nav-open .nav-center { display: none !important; }
}
