/* ============================================================
   Design tokens — QQ音乐 light theme
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #ececf0;
  --text: #1a1a1e;
  --mut: #9aa0a8;
  --dim: #c5cad2;
  --green: #31C27C;
  --green-light: #e6f9f0;
  --gold: #E8B65A;
  --coral: #ff8a6b;
  --coral2: #ff6f91;
  --blue: #7fb3ff;
  --blue2: #9ad0ff;
  --r-card: 16px;
  --r-cover: 10px;
  --r-pill: 999px;
  --font: "PingFang SC", -apple-system, "Helvetica Neue", sans-serif;
  --mini-h: 60px;
  --tab-h: 58px;
  --status-h: 44px;
  --phone-w: 390px;
  --phone-h: 844px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { background: none; border: none; cursor: pointer; font-family: var(--font); }
svg { display: block; flex-shrink: 0; }

/* ============================================================
   Body & phone wrap
   ============================================================ */
body {
  background: #e8eaee;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  background: var(--bg);
  border-radius: 44px;
  box-shadow:
    0 0 0 10px #1a1a1e,
    0 40px 80px rgba(0,0,0,0.35),
    0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Real-device: full screen */
@media (max-width: 430px) {
  body { background: var(--bg); align-items: flex-start; }
  .phone-wrap { padding: 0; }
  .phone {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ============================================================
   Status bar
   ============================================================ */
.status-bar {
  height: var(--status-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 20px;
  background: var(--card);
  flex-shrink: 0;
}
.status-time { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
.status-icons { display: flex; align-items: center; }

/* ============================================================
   Views container
   ============================================================ */
.views {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) scale(0.99);
  transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.view.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

/* Outgoing view slides left */
.view.leaving {
  opacity: 0;
  transform: translateX(-18px) scale(0.99);
  pointer-events: none;
}

.view-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.view-scroll::-webkit-scrollbar { display: none; }

.view-bottom-pad { height: 20px; }

/* ============================================================
   HOME VIEW
   ============================================================ */
.home-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 8px;
  background: var(--card);
}

.search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) inset;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-pill:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(49,194,124,0.1);
}

.search-placeholder { color: var(--mut); font-size: 13px; }
.home-topbar-icons { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Category chips */
.chip-row {
  display: flex;
  gap: 0;
  padding: 10px 14px;
  overflow-x: auto;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mut);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.chip.active {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

/* Hero banner row */
.hero-banner-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px 10px;
}

.hero-card {
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero-hepai {
  flex: 1.4;
  background: linear-gradient(145deg, #52dba8 0%, #31C27C 45%, #22a86a 100%);
  padding: 16px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(49,194,124,0.3), 0 2px 8px rgba(0,0,0,0.08);
}

.hero-hepai:active { transform: scale(0.98); box-shadow: 0 2px 10px rgba(49,194,124,0.2); }

/* Sheen sweep animation on 合拍 hero card */
.hero-hepai-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: hero-sheen 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-sheen {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.hero-card-eyebrow {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  display: inline-block;
  margin-bottom: 6px;
}

.hero-card-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.hero-card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

.hero-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin-top: 10px;
  align-self: flex-start;
  transition: background 0.15s;
}
.hero-enter-btn:hover { background: rgba(255,255,255,0.35); }

/* Decorative vinyl ring on hero 合拍 card */
.hero-vinyl-ring {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 0 10px rgba(255,255,255,0.07),
    0 0 0 20px rgba(255,255,255,0.04),
    0 0 0 30px rgba(255,255,255,0.025);
  pointer-events: none;
}

.hero-daily {
  flex: 1;
  background: linear-gradient(145deg, #ff9f7f 0%, var(--coral) 45%, var(--coral2) 100%);
  padding: 14px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(255,111,145,0.25), 0 2px 8px rgba(0,0,0,0.08);
}

.hero-daily:active { transform: scale(0.98); }

.hero-daily-top {
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-card-title-sm {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-daily-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  align-self: flex-start;
  backdrop-filter: blur(4px);
}

/* Scene category tiles row */
.scene-tile-row {
  display: flex;
  gap: 8px;
  padding: 6px 16px 14px;
}

.scene-tile {
  flex: 1;
  background: linear-gradient(145deg, var(--t-c1), var(--t-c2));
  border-radius: 14px;
  padding: 11px 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.scene-tile::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.scene-tile:active { transform: scale(0.95); box-shadow: 0 1px 6px rgba(0,0,0,0.1); }

.scene-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scene-tile-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.scene-tile-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}

/* Section header more link */
.section-header-more {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--mut);
  gap: 1px;
}

/* Recommendation filter chips */
.rec-filter-row {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rec-filter-row::-webkit-scrollbar { display: none; }

.rec-filter-chip {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mut);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.rec-filter-chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 600;
}
.rec-filter-chip:active { opacity: 0.75; }

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.section-header.mt12 { margin-top: 4px; }

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.section-header-right {
  display: flex;
  align-items: center;
}

/* Track list (home) */
.track-list { padding: 0 16px; }

.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.track-row:last-child { border-bottom: none; }
.track-row:active { background: rgba(0,0,0,0.03); margin: 0 -16px; padding: 9px 16px; }

.track-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.track-meta { flex: 1; min-width: 0; }
.track-title { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-size: 12px; color: var(--mut); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.track-tag-vip {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 5px;
}

.track-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.12s;
}
.track-action:active { transform: scale(0.85); }

/* Global button press micro-feedback */
button:not(:disabled):active {
  transition: transform 0.08s;
}

/* Skeleton */
.skel-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.skel-cover { width: 46px; height: 46px; border-radius: var(--r-cover); background: #e8eaee; flex-shrink: 0; }

/* Shimmer skeleton animation */
.skel-anim {
  background: linear-gradient(90deg, #e8eaee 25%, #f0f2f4 50%, #e8eaee 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s ease-in-out infinite;
}
.skel-lines { flex: 1; }
.skel-line { height: 12px; border-radius: 6px; background: #e8eaee; }
.skel-line.w70 { width: 70%; }
.skel-line.w60 { width: 60%; }
.skel-line.w75 { width: 75%; }
.skel-line.w45 { width: 45%; }
.skel-line.w40 { width: 40%; }
.skel-line.w50 { width: 50%; }
.skel-line.mt4 { margin-top: 7px; }

/* VIP banner */
.vip-banner {
  margin: 4px 16px 8px;
  background: #fff8ee;
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #8a6a2a;
}
.vip-cta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: #fff2d6;
  border-radius: var(--r-pill);
  padding: 3px 10px;
}

/* Daily list */
.daily-list { padding: 0 16px; }
.daily-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.daily-row:last-child { border-bottom: none; }

.daily-cover {
  width: 46px;
  height: 46px;
  border-radius: var(--r-cover);
  flex-shrink: 0;
}

.daily-info { flex: 1; min-width: 0; }
.daily-title { font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daily-meta { font-size: 12px; color: var(--mut); margin-top: 2px; }
.tag-time { font-size: 11px; color: var(--mut); margin-left: 4px; }

/* ============================================================
   GENERIC PLACEHOLDER PAGE
   ============================================================ */
.generic-page-header {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.generic-page-title { font-size: 17px; font-weight: 600; }

.placeholder-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--mut);
}
.placeholder-text { font-size: 16px; font-weight: 500; }
.placeholder-sub { font-size: 13px; }

/* ============================================================
   合拍 VIEW
   ============================================================ */
.hepai-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.hepai-topbar-title { font-size: 17px; font-weight: 600; }
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.icon-btn:active { background: var(--line); }

/* Hero section */
.hepai-hero {
  padding: 20px 16px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.hepai-hero-inner { margin-bottom: 14px; }
.hepai-main-title { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.hepai-subtitle { font-size: 13.5px; color: var(--mut); margin-top: 4px; line-height: 1.45; }

/* Scene chips */
.scene-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scene-chip {
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mut);
  background: var(--bg);
  border: 1.5px solid var(--line);
  transition: all 0.15s;
}
.scene-chip.active {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.scene-chip:active { opacity: 0.8; }

/* Hepai sections */
.hepai-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  margin-top: 8px;
}
.hepai-section:first-of-type { margin-top: 0; }

/* Seed section */
.seed-section { padding: 12px 16px; }

.seed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.seed-label-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.seed-name {
  font-weight: 600;
  color: var(--green);
}

.seed-change-btn {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: var(--r-pill);
  padding: 5px 13px;
  transition: all 0.15s;
  white-space: nowrap;
}
.seed-change-btn:active { background: var(--green-light); }

/* Recommend cards */
.recommend-list { display: flex; flex-direction: column; gap: 0; }

.rec-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.rec-card:last-child { border-bottom: none; }
.rec-card:active { background: var(--bg); margin: 0 -16px; padding: 12px 16px; }

.rec-cover {
  width: 52px;
  height: 52px;
  border-radius: var(--r-cover);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.rec-body { flex: 1; min-width: 0; }
.rec-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-why { font-size: 12px; color: var(--mut); margin-top: 3px; line-height: 1.4; }

.rec-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  min-width: 42px;
  text-align: right;
}

/* Playlist items */
.playlist-list-items { display: flex; flex-direction: column; }

.pl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.pl-item:last-child { border-bottom: none; }

.pl-index {
  width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--mut);
  flex-shrink: 0;
}

.pl-title { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }

.pl-meta { font-size: 11.5px; color: var(--mut); flex-shrink: 0; white-space: nowrap; }

/* Play area */
.play-area {
  padding: 20px 16px 24px;
  background: var(--card);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Sticky footer variant: pinned at bottom of 合拍 view, above mini-player + tab bar */
.play-area-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding: 10px 16px 12px;
  gap: 9px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -3px 14px rgba(0,0,0,0.07);
}
.play-area-footer .play-mix-btn { padding: 13px 24px; }
.play-area-footer .mix-note { font-size: 11.5px; color: var(--mut); }

/* Segmented control */
.seg-control {
  display: flex;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 0;
}

.seg-btn {
  flex: 1;
  padding: 7px 22px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mut);
  transition: all 0.15s;
  white-space: nowrap;
}
.seg-btn.active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Primary play button */
.play-mix-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 15px 24px;
  box-shadow: 0 4px 20px rgba(49, 194, 124, 0.35);
  transition: transform 0.1s, box-shadow 0.1s;
}
.play-mix-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(49, 194, 124, 0.25);
}
.play-mix-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mix-error {
  font-size: 13px;
  color: #e05050;
  text-align: center;
  line-height: 1.4;
  width: 100%;
}

.loading-hint {
  text-align: center;
  color: var(--mut);
  font-size: 13px;
  padding: 20px 0;
}

/* ============================================================
   MINE VIEW
   ============================================================ */
.mine-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mine-search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  font-size: 13px;
  color: var(--mut);
}
.mine-topbar-icons { display: flex; align-items: center; margin-left: 10px; flex-shrink: 0; }

/* Profile card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #46d3a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 17px; font-weight: 600; display: flex; align-items: center; }
.profile-badges { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }

.badge-svip {
  font-size: 10px;
  font-weight: 700;
  color: #b87700;
  background: linear-gradient(90deg, #ffe8a3, #f5c842);
  border-radius: 3px;
  padding: 2px 6px;
}
.badge-level {
  font-size: 10px;
  font-weight: 600;
  color: var(--mut);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 5px;
}
.profile-coins { font-size: 11.5px; color: var(--mut); }

.profile-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.profile-score-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.profile-score-lbl { font-size: 11px; color: var(--mut); margin-top: 1px; }

/* Stats row */
.stats-row {
  display: flex;
  padding: 14px 10px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.stat-num { font-size: 15px; font-weight: 600; color: var(--text); }
.stat-lbl { font-size: 11.5px; color: var(--mut); }

/* Recent grid */
.recent-grid {
  display: flex;
  gap: 10px;
  padding: 6px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.recent-grid::-webkit-scrollbar { display: none; }

.recent-item { flex-shrink: 0; width: 100px; }
.recent-cover {
  width: 100px;
  height: 100px;
  border-radius: var(--r-card);
  margin-bottom: 6px;
}
.recent-label { font-size: 12.5px; font-weight: 500; color: var(--text); }
.recent-sub { font-size: 11.5px; color: var(--mut); margin-top: 1px; }

/* Mine playlist list */
.mine-pl-list { padding: 0 16px; background: var(--card); }
.mine-pl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mine-pl-row:last-child { border-bottom: none; }

.mine-pl-cover {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  flex-shrink: 0;
}
.mine-pl-info { flex: 1; min-width: 0; }
.mine-pl-title { font-size: 14px; font-weight: 500; color: var(--text); }
.mine-pl-meta { font-size: 12px; color: var(--mut); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   MINI PLAYER
   ============================================================ */
.mini-player {
  height: var(--mini-h);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  z-index: 10;
}

.mini-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }

.mini-info { flex: 1; min-width: 0; }
.mini-title { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mini-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mini-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.12s;
}
.mini-btn:active { background: var(--bg); }
/* 单曲条上的「听 AI 混音」入口:淡绿底突出,和绿条混音入口呼应 */
.mini-btn-mix { background: rgba(49, 194, 124, 0.12); }
.mini-btn-mix:active { background: rgba(49, 194, 124, 0.22); }

/* ============================================================
   TAB BAR
   ============================================================ */
.tab-bar {
  height: var(--tab-h);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  z-index: 20;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--mut);
  transition: color 0.15s;
  padding-bottom: 2px;
}
.tab-item.active { color: var(--green); }
.tab-item:active { opacity: 0.7; }

.tab-label { font-size: 10.5px; font-weight: 500; }
.tab-center { justify-content: flex-end; padding-bottom: 0; gap: 1px; }

.tab-center-circle {
  width: 48px;
  height: 48px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(49, 194, 124, 0.45);
  margin-top: -14px;
  transition: transform 0.12s;
}
.tab-item.tab-center:active .tab-center-circle { transform: scale(0.93); }

.tab-center-label {
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   BOTTOM SHEET (seed picker)
   ============================================================ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: var(--phone-w);
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding-bottom: 32px;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.sheet-overlay.open .bottom-sheet { transform: translateY(0); }

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.sheet-title {
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px 8px;
  flex-shrink: 0;
}

/* 种子选择 sheet 的模糊搜索框 */
.sheet-search-wrap {
  position: relative;
  flex-shrink: 0;
  margin: 0 16px 10px;
}
.sheet-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.sheet-search {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.sheet-search:focus { border-color: var(--green); }
.sheet-search::placeholder { color: #9aa0a8; }

.sheet-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 0 16px;
}
.sheet-list::-webkit-scrollbar { display: none; }

.sheet-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.sheet-track-row:last-child { border-bottom: none; }
.sheet-track-row.selected .sheet-track-title { color: var(--green); }
.sheet-track-row:active { background: var(--bg); margin: 0 -16px; padding: 11px 16px; }

.sheet-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.sheet-track-info { flex: 1; min-width: 0; }
.sheet-track-title { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-track-artist { font-size: 12px; color: var(--mut); margin-top: 1px; }

.sheet-selected-icon { flex-shrink: 0; }

/* mt12 helper */
.mt12 { margin-top: 0; }

/* ============================================================
   VINYL PLAYER OVERLAY (full-screen slide-up panel)
   ============================================================ */
.vinyl-player {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  /* premium soft gradient — warm white → mint */
  background: linear-gradient(180deg,
    #f7f8f7 0%,
    #eef2ee 35%,
    #dff0e8 65%,
    #c4e8d4 100%
  );
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

/* Ambient glow behind turntable */
.vinyl-player::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(49, 194, 124, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.vinyl-player.open {
  transform: translateY(0);
}

/* Entrance animation for inner content */
@keyframes vp-content-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vinyl-player.open .vp-info {
  animation: vp-content-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

/* Top bar */
.vp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px;
  flex-shrink: 0;
}

.vp-topbar-center { flex: 1; display: flex; justify-content: center; }

.vp-topbar-dot {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.15);
}

.vp-topbar-actions { display: flex; gap: 4px; }

.vp-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.12s;
}
.vp-icon-btn:active { background: rgba(0,0,0,0.08); }

/* ---- TURNTABLE ---- */
.vp-turntable-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px 8px;
  flex-shrink: 0;
}

.vp-turntable-base {
  position: relative;
  width: 280px;
  height: 216px;
  /* glossy light-grey turntable body */
  background: linear-gradient(155deg, #e8eaeb 0%, #d2d4d6 35%, #c4c6c8 70%, #b4b6b8 100%);
  border-radius: 22px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.7) inset,
    0 -1px 0 rgba(0,0,0,0.08) inset,
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 12px 40px rgba(0,0,0,0.22),
    0 4px 12px rgba(0,0,0,0.14),
    0 0 0 1px rgba(0,0,0,0.06);
  overflow: visible;
}

/* Glossy sheen overlay on base */
.vp-turntable-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Vinyl disc */
.vp-vinyl {
  position: absolute;
  top: 50%;
  left: 50%;
  /* shift left so tonearm at right has room */
  transform: translate(-58%, -50%);
  width: 172px;
  height: 172px;
  border-radius: 50%;
  /* Deeper black disc — denser groove lines with shimmer */
  background:
    /* Glossy highlight arc */
    conic-gradient(from 230deg, rgba(255,255,255,0.04) 0deg, transparent 40deg, transparent 320deg, rgba(255,255,255,0.04) 360deg),
    /* Groove lines — closer spacing for realism */
    radial-gradient(circle at center, transparent 26px, rgba(255,255,255,0.06) 27px, transparent 28px),
    radial-gradient(circle at center, transparent 31px, rgba(255,255,255,0.05) 32px, transparent 33px),
    radial-gradient(circle at center, transparent 36px, rgba(255,255,255,0.06) 37px, transparent 38px),
    radial-gradient(circle at center, transparent 41px, rgba(255,255,255,0.04) 42px, transparent 43px),
    radial-gradient(circle at center, transparent 46px, rgba(255,255,255,0.06) 47px, transparent 48px),
    radial-gradient(circle at center, transparent 51px, rgba(255,255,255,0.04) 52px, transparent 53px),
    radial-gradient(circle at center, transparent 56px, rgba(255,255,255,0.06) 57px, transparent 58px),
    radial-gradient(circle at center, transparent 61px, rgba(255,255,255,0.04) 62px, transparent 63px),
    radial-gradient(circle at center, transparent 66px, rgba(255,255,255,0.06) 67px, transparent 68px),
    radial-gradient(circle at center, transparent 71px, rgba(255,255,255,0.04) 72px, transparent 73px),
    radial-gradient(circle at center, transparent 76px, rgba(255,255,255,0.06) 77px, transparent 78px),
    #0d0d0d;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 2px 4px rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Album art at disc center — a static circular clip; the ART inside spins. */
.vp-label {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 0 0 3px rgba(0,0,0,0.35);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
/* Spindle hole on top of the art */
.vp-label::after {
  content: '';
  position: absolute; z-index: 6;
  width: 9px; height: 9px; border-radius: 50%;
  background: #15161a;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4), inset 0 1px 2px rgba(0,0,0,0.6);
}

/* Slide layer (horizontal, for 切歌) wraps the spin layer (rotation, for 播放) */
.vp-cover-slide {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0, 0, 1);
}
.vp-cover-slide.enter-right { transform: translateX(118%); }
.vp-cover-slide.exit-left  { transform: translateX(-118%); }
.vp-cover-spin {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  animation: cover-spin 9s linear infinite;
  animation-play-state: paused;
}
.vinyl-player.playing .vp-cover-spin { animation-play-state: running; }
@keyframes cover-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Tonearm */
.vp-tonearm-wrap {
  position: absolute;
  top: -12px;
  right: -6px;
  width: 88px;
  height: 148px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  /* Tonearm lifts off the disc when paused, drops on when playing (pivot top-right) */
  transform-origin: 84% 9%;
  transform: rotate(-20deg);
  transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.vinyl-player.playing .vp-tonearm-wrap { transform: rotate(0deg); }

.vp-tonearm-svg {
  width: 100%;
  height: 100%;
}

/* Base decorative knobs */
.vp-base-knob {
  position: absolute;
  bottom: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #aaa, #888);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.vp-knob-left  { left: 18px; }
.vp-knob-right { left: 40px; }

/* ---- SONG INFO ---- */
.vp-info {
  flex: 1;
  padding: 4px 20px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vp-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

.vp-song-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-song-sub {
  font-size: 13px;
  color: #777;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-heart-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.15s;
}
.vp-heart-btn:active { transform: scale(0.88); }
.vp-heart-btn.liked svg { stroke: #e05050; fill: #e05050; }

/* Tag pills */
.vp-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.vp-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #777;
  background: rgba(0,0,0,0.07);
  border-radius: var(--r-pill);
  padding: 3px 8px;
}

.vp-tag-green {
  color: var(--green);
  background: var(--green-light);
}

/* Now playing hint */
.vp-nowplaying-hint {
  font-size: 12.5px;
  color: #999;
  text-align: center;
  margin: 4px 0 8px;
  letter-spacing: 0.2px;
}

/* Extra icon row */
.vp-extra-icons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vp-extra-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.12s;
}
.vp-extra-btn:active { background: rgba(0,0,0,0.07); }

/* Progress bar */
.vp-progress-area {
  margin-bottom: 10px;
}

.vp-progress-bar-wrap {
  padding: 10px 0;
  cursor: pointer;
  position: relative;
}

.vp-progress-track {
  height: 4px;
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

.vp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, #46d3a0 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s linear;
  box-shadow: 0 0 6px rgba(49,194,124,0.45);
}

.vp-progress-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  box-shadow: 0 2px 8px rgba(49,194,124,0.35), 0 1px 4px rgba(0,0,0,0.15);
  transition: left 0.5s linear;
  pointer-events: none;
}

.vp-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.vp-time {
  font-size: 12px;
  color: #888;
  font-variant-numeric: tabular-nums;
}

/* Bottom controls */
.vp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
}

.vp-ctrl-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.12s;
}
.vp-ctrl-btn:active { background: rgba(0,0,0,0.07); }

.vp-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green);   /* green ring + white interior + green icon (reference) */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(49,194,124,0.28), 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.12s, box-shadow 0.12s;
  flex-shrink: 0;
  position: relative;
}
.vp-play-btn:active { transform: scale(0.93); }

/* Mini player tap area */
.mini-player-tap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

/* Mini player — pulse ring on cover when playing */
.mini-cover.playing-pulse {
  box-shadow: 0 0 0 0 rgba(49,194,124,0.4);
  animation: mini-cover-pulse 2s ease-out infinite;
}
@keyframes mini-cover-pulse {
  0%  { box-shadow: 0 0 0 0 rgba(49,194,124,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(49,194,124,0); }
  100%{ box-shadow: 0 0 0 0 rgba(49,194,124,0); }
}

/* ============================================================
   HOME TRACK ROW — denser, QQ-music faithful
   ============================================================ */
/* Override the existing .track-row to be denser */
.track-row {
  padding: 8px 0;
}

.track-row-heart {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.12s;
}
.track-row-heart:active { transform: scale(0.85); }
.track-row-heart.liked svg { stroke: #e05050; fill: #e05050; }

/* Optional small tag chip on title line */
.track-tag-chip {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================================
   合拍 RICH VIEW — new styles
   ============================================================ */

/* Topbar right icons */
.hepai-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 64px;
  justify-content: flex-end;
}

/* ---- HERO ---- */
/* ---- LIGHT AIRY HERO ---- */
.hepai-hero-rich {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(160deg, #ffffff 0%, #f0faf5 55%, #dff4eb 100%);
}

/* No dark gradient overlay — hero is light */
.hepai-hero-gradient {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
.hepai-hero-gradient::after { content: none; }

/* Cover collage — overlapping rotated tiles top-right */
.hepai-hero-cover-collage {
  position: absolute;
  top: 12px;
  right: 8px;
  width: 138px;
  height: 158px;
  pointer-events: none;
}

.hero-collage-card {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  overflow: hidden;
}

/* Glass play button over collage */
.hero-glass-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 20px rgba(49,194,124,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Waveform motif below collage */
.hero-waveform {
  position: absolute;
  bottom: 8px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
}
.hero-waveform span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  opacity: 0.7;
  animation: wv-bounce 1.1s ease-in-out infinite;
}
.hero-waveform span:nth-child(1) { height: 8px; animation-delay: 0s; }
.hero-waveform span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.hero-waveform span:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.hero-waveform span:nth-child(4) { height: 16px; animation-delay: 0.08s; }
.hero-waveform span:nth-child(5) { height: 7px; animation-delay: 0.22s; }
@keyframes wv-bounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.hepai-hero-content {
  position: relative;
  z-index: 2;
  padding: 20px 18px 18px;
  max-width: 55%;
}

.hepai-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e2f7ed;
  border: 1px solid rgba(49,194,124,0.3);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #22a060;
  margin-bottom: 8px;
}

.hepai-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1e;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hepai-hero-title-sparkle {
  font-size: 18px;
  color: var(--green);
  vertical-align: middle;
  margin-left: 2px;
}

.hepai-hero-sub {
  font-size: 15px;
  color: #1a1a1e;
  margin-top: 5px;
  font-weight: 600;
}

.hepai-hero-tags-line {
  font-size: 11.5px;
  color: #9aa0a8;
  margin-top: 5px;
  letter-spacing: 0.2px;
}

/* ---- BIG SCENE BUTTONS — full row below hero ---- */
.scene-chips-hero {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 12px 16px 14px;
  background: #ffffff;
  overflow-x: auto;
  scrollbar-width: none;
}
.scene-chips-hero::-webkit-scrollbar { display: none; }

.scene-chip-hero {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: #666c74;
  background: #ffffff;
  border: 1.5px solid #e4e6ea;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.18s;
  white-space: nowrap;
  cursor: pointer;
}
.scene-chip-hero.active {
  background: linear-gradient(135deg, #46d3a0 0%, #31C27C 100%);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(49,194,124,0.38);
}
.scene-chip-hero:active { opacity: 0.85; transform: scale(0.97); }

/* ---- RICH SECTIONS ---- */
.hepai-rich-section {
  background: var(--card);
  margin-top: 8px;
  padding: 14px 16px;
}

.seed-row-rich {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Section header */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-hd-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-hd-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(49,194,124,0.6);
  animation: ai-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(49,194,124,0.5); transform: scale(1); }
  50% { box-shadow: 0 0 10px rgba(49,194,124,0.9); transform: scale(1.15); }
}

.section-hd-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.section-hd-sub {
  font-size: 11.5px;
  color: var(--mut);
  margin-top: 0;
}

.section-hd-more {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 500;
}

.set-count-badge {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  border-radius: var(--r-pill);
  padding: 1px 7px;
  margin-left: 2px;
  min-width: 22px;
  text-align: center;
}

.section-hd-right-actions { display: flex; align-items: center; gap: 8px; }

.smart-sort-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mut);
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  border: 1.5px solid var(--line);
  transition: all 0.15s;
}
.smart-sort-btn:active { background: var(--line); color: var(--text); }

/* ---- 绝配推荐 horizontal scroll cards ---- */
.hepai-section-rec { padding-right: 0; }

.rec-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  padding-right: 16px;
  scrollbar-width: none;
}
.rec-scroll-row::-webkit-scrollbar { display: none; }

.rec-card-rich {
  flex-shrink: 0;
  width: 120px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 14px rgba(0,0,0,0.09);
}
.rec-card-rich:active { transform: scale(0.97); box-shadow: 0 1px 6px rgba(0,0,0,0.1); }

.rec-card-rich-cover {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  position: relative;
}

/* Play button overlay on rec card */
.rec-card-play {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
}

.rec-card-rich-body {
  padding: 9px 10px 10px;
}

.rec-card-rich-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-card-rich-artist {
  font-size: 11px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Match ring + label row */
.rec-match-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.rec-match-ring {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.rec-match-ring svg {
  transform: rotate(-90deg);
}
.rec-match-ring-track {
  fill: none;
  stroke: #e6f9f0;
  stroke-width: 3;
}
.rec-match-ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}
.rec-match-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: var(--green);
}

.rec-match-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rec-match-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.rec-match-lbl {
  font-size: 9.5px;
  color: var(--mut);
  margin-top: 1px;
}

/* Legacy badge — keep for fallback, hidden when ring present */
.rec-match-badge {
  display: none;
}

/* Skeleton for rec cards */
.skel-rec {
  flex-shrink: 0;
  width: 112px;
  height: 148px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef0f2 25%, #f5f6f8 50%, #eef0f2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

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

/* ---- SONG LIST (editable set) ---- */
.hepai-section-set { padding: 14px 0; }
.hepai-section-set .section-hd { padding: 0 16px; }

.set-list { display: flex; flex-direction: column; }

.set-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 16px 10px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--card);
  transition: background 0.12s, box-shadow 0.12s, transform 0.12s;
  cursor: default;
  /* Staggered fade-in */
  opacity: 0;
  animation: row-fade-in 0.28s ease forwards;
  will-change: transform;
}
.set-row:last-child { border-bottom: none; }

@keyframes row-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Drag lifted state — floating card that tracks the finger (transform NOT transitioned) */
.set-row.dragging {
  background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
  border-radius: 14px;
  z-index: 60;
  opacity: 1;
  border-bottom-color: transparent;
  transition: box-shadow 0.15s ease, background 0.15s ease;
  cursor: grabbing;
}

/* Row remove animation */
.set-row.removing {
  animation: row-remove 0.25s ease forwards;
}
@keyframes row-remove {
  to { opacity: 0; transform: translateX(-32px); max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; }
}

/* Drag handle */
.set-grip {
  width: 32px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.set-grip:active { cursor: grabbing; }

/* Checkbox */
.set-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
}
.set-check.checked {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.08);
}
.set-check .check-icon { display: none; }
.set-check.checked .check-icon { display: block; }

/* Cover */
.set-cover {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-right: 11px;
  position: relative;
}

/* Now-playing indicator bar on cover */
.set-cover-bars {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 5px;
  opacity: 0;
  transition: opacity 0.2s;
}
.set-cover-bars.visible { opacity: 1; }
.set-cover-bar {
  width: 3px;
  background: #fff;
  border-radius: 2px;
  animation: bar-bounce 0.7s ease-in-out infinite alternate;
}
.set-cover-bar:nth-child(2) { animation-delay: 0.15s; }
.set-cover-bar:nth-child(3) { animation-delay: 0.3s; }
@keyframes bar-bounce {
  from { height: 4px; } to { height: 14px; }
}

/* Track info */
.set-info { flex: 1; min-width: 0; }

.set-title-line {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.set-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.set-tag {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 700;
  color: #5b8cff;
  border: 1px solid #b4c8ff;
  border-radius: 3px;
  padding: 1px 4px;
  background: #eef3ff;
}

.set-meta {
  font-size: 11.5px;
  color: var(--mut);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.set-duration {
  font-size: 11.5px;
  color: var(--dim);
  flex-shrink: 0;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}

/* Per-row actions (heart / download / more) */
.set-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 6px;
}

.set-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dim);
  transition: color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.set-action-btn:active { transform: scale(0.85); }
.set-action-btn.heart-active { color: #e05050; }
.set-action-btn.heart-active svg { fill: #e05050; stroke: #e05050; }

/* Heart pop animation */
@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.heart-pop { animation: heart-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Skeleton set row */
.skel-set-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.skel-set-grip {
  width: 24px;
  height: 20px;
  border-radius: 4px;
  background: #eef0f2;
  animation: shimmer 1.4s infinite;
  background-size: 200% 100%;
  flex-shrink: 0;
}
.skel-cover-sm {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(90deg, #eef0f2 25%, #f5f6f8 50%, #eef0f2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  flex-shrink: 0;
}

/* ---- BATCH BAR ---- */
.batch-bar {
  flex-shrink: 0;
  background: var(--card);
  border-top: 0 solid var(--line);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.1);
  /* Collapse to zero height when hidden so it reserves NO layout space (no empty band) */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.26s cubic-bezier(0.22, 1, 0.36, 1), padding 0.26s, opacity 0.2s, border-top-width 0.26s;
  z-index: 5;
}
.batch-bar.visible {
  max-height: 72px;
  padding: 8px 14px 10px;
  border-top-width: 1px;
  opacity: 1;
}

.batch-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  flex-shrink: 0;
}

.batch-actions {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}

.batch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--bg);
  transition: background 0.15s, transform 0.12s;
  min-width: 48px;
}
.batch-btn:active { background: var(--line); transform: scale(0.95); }
.batch-btn-danger { color: #e05050; }

/* ---- PLAY FOOTER (rich) ---- */
.play-area-footer-rich {
  flex-shrink: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 10px 16px 14px;
  box-shadow: 0 -3px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.play-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.play-footer-meta {
  font-size: 11.5px;
  color: var(--mut);
}

/* Rich play button */
.play-mix-btn-rich {
  width: 100%;
  background: linear-gradient(135deg, #1db970 0%, #31C27C 50%, #46d3a0 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 5px 24px rgba(49, 194, 124, 0.4), 0 2px 8px rgba(49, 194, 124, 0.2);
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.15s;
  position: relative;
  overflow: hidden;
}
.play-mix-btn-rich::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.play-mix-btn-rich:hover::before { transform: translateX(100%); }
.play-mix-btn-rich:active { transform: scale(0.98); box-shadow: 0 3px 12px rgba(49, 194, 124, 0.3); }
.play-mix-btn-rich:disabled { opacity: 0.65; cursor: not-allowed; }

.play-mix-ai-icon {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Animated equalizer bars */
.play-mix-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  flex-shrink: 0;
}
.play-mix-wave span {
  width: 3px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: wave-bar 0.8s ease-in-out infinite alternate;
}
.play-mix-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.play-mix-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.play-mix-wave span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.play-mix-wave span:nth-child(4) { height: 16px; animation-delay: 0.05s; }
.play-mix-wave span:nth-child(5) { height: 8px; animation-delay: 0.15s; }

@keyframes wave-bar {
  from { transform: scaleY(0.4); opacity: 0.6; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* Pause wave bars when not playing */
.play-mix-wave.paused span { animation-play-state: paused; }

/* ---- TOAST ---- */
.hepai-toast {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(26,26,30,0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  padding: 8px 18px;
  white-space: nowrap;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.hepai-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Skeleton set skel lines fix ---- */
.skel-set-row .skel-line {
  background: linear-gradient(90deg, #eef0f2 25%, #f5f6f8 50%, #eef0f2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skel-set-row .skel-lines { display: flex; flex-direction: column; gap: 0; }

/* ============================================================
   v2 VISUAL UPGRADE — photo covers, hero album mosaic,
   horizontal 绝配 cards, quality badges, eq glyphs.
   (Appended last so these rules override the v1 definitions.)
   ============================================================ */

/* --- Photo cover layer (mesh art shows through on 404) --- */
.track-cover, .set-cover, .rec-card-rich-cover, .sheet-cover,
.hero-mosaic-tile, .vp-label { position: relative; overflow: hidden; }
.cover-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.45s ease; z-index: 1;
}
.cover-photo.loaded { opacity: 1; }
.set-cover-bars { z-index: 3; }
.rec-card-play { z-index: 3; }

/* --- Hero album mosaic --- */
.hepai-hero-rich { min-height: 198px; }
.hepai-hero-cover-collage {
  top: 0; right: 0; bottom: 0; width: 62%; height: auto;
}
.hero-mosaic {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr;
  gap: 4px; padding: 6px;
  filter: saturate(1.12) brightness(1.02);
}
.hero-mosaic-tile { border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.16); }
.hero-mosaic-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(105deg, #eafaf2 0%, rgba(234,250,242,0.88) 24%, rgba(223,244,235,0.28) 50%, transparent 72%),
    linear-gradient(0deg, rgba(223,244,235,0.5), transparent 42%),
    radial-gradient(circle at 64% 46%, rgba(49,194,124,0.16), transparent 60%);
}
.hepai-hero-content { position: relative; z-index: 20; }
.hero-glass-play {
  z-index: 10; width: 58px; height: 58px; border-radius: 17px;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.65);
  pointer-events: auto; cursor: pointer;   /* clickable even though collage is pointer-events:none */
}
.hero-glass-play:active { transform: translate(-50%, -50%) scale(0.92); }
.hero-glass-play svg { width: 24px; height: 24px; }
.hero-waveform { z-index: 11; bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); }

/* --- 绝配 cards: horizontal, cover-left + ring --- */
.rec-card-rich {
  display: flex; align-items: center; gap: 9px;
  width: 168px; padding: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.rec-card-rich-cover { width: 54px; height: 54px; border-radius: 11px; flex-shrink: 0; font-size: 0; }
.rec-card-play { width: 22px; height: 22px; bottom: 4px; right: 4px; }
.rec-card-rich-body { flex: 1; min-width: 0; padding: 0; }
.rec-card-rich-title {
  white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.22; max-height: 2.5em;
}
.rec-match-row { margin-top: 4px; gap: 5px; }
.rec-match-ring { width: 26px; height: 26px; }
.skel-rec { width: 168px; height: 70px; }

/* --- Quality badges (VIP / SQ / HQ) --- */
.set-quality {
  flex-shrink: 0; font-size: 9px; font-weight: 800; letter-spacing: 0.3px;
  line-height: 1.35; border-radius: 3px; padding: 0 4px;
}
.set-quality.q-vip { color: #9a6a00; background: linear-gradient(135deg,#fff1c9,#ffe09a); border: 1px solid #f0cf7a; }
.set-quality.q-sq  { color: #6a4cff; background: #efeaff; border: 1px solid #d2c6ff; }
.set-quality.q-hq  { color: #1f9d63; background: #e6f7ef; border: 1px solid #b3e5cd; }

/* --- Animated eq glyph in rows --- */
.set-wave {
  display: flex; align-items: flex-end; gap: 1.6px; height: 13px;
  flex-shrink: 0; margin-right: 4px;
}
.set-wave span {
  width: 2px; border-radius: 1px; background: var(--green); opacity: 0.85;
  animation: wv-bounce 1s ease-in-out infinite;
}
.set-wave span:nth-child(2) { animation-delay: 0.15s; }
.set-wave span:nth-child(3) { animation-delay: 0.3s; }
.set-wave span:nth-child(4) { animation-delay: 0.08s; }

/* ============================================================
   v3: clean single-button footer, relocated 正常/DJ toggle,
   mini-player hidden on 合拍, playing-state + progress.
   ============================================================ */

/* Compact mode segmented control inside the song-list header */
.seg-control-sm { padding: 2px; border-radius: 999px; }
.seg-control-sm .seg-btn { font-size: 11px; padding: 4px 11px; }

/* Single clean play button: AI badge left, two-line text center, wave-circle right */
.play-area-footer-rich { padding: 8px 16px 12px; gap: 6px; }
.play-mix-btn-rich { justify-content: space-between; gap: 10px; padding: 10px 14px; }
.play-mix-text { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; line-height: 1.18; }
.play-mix-title { font-size: 15.5px; font-weight: 800; }
.play-mix-sub { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.88); margin-top: 1px; }
.play-mix-ai-icon { background: rgba(255,255,255,0.22); }

/* Right circle is a real play/pause toggle (not a waveform icon) */
.play-mix-toggle {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.20);
  display: flex; align-items: center; justify-content: center;
}
.play-mix-toggle .pm-icon-play { margin-left: 2px; }   /* optical center */
.play-mix-toggle .pm-icon-pause { display: none; }
.play-mix-toggle .pm-icon-gen { display: none; }
.play-mix-btn-rich.playing .play-mix-toggle .pm-icon-play { display: none; }
.play-mix-btn-rich.playing .play-mix-toggle .pm-icon-pause { display: block; }
/* No mix generated yet -> this button GENERATES (sparkle), not plays */
.play-mix-btn-rich.mode-generate .play-mix-toggle .pm-icon-gen { display: block; }
.play-mix-btn-rich.mode-generate .play-mix-toggle .pm-icon-play,
.play-mix-btn-rich.mode-generate .play-mix-toggle .pm-icon-pause { display: none; }

/* Thin progress bar across the bottom edge of the button while playing */
.play-mix-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,0.18); opacity: 0; transition: opacity 0.2s;
}
.play-mix-btn-rich.playing .play-mix-progress { opacity: 1; }
.play-mix-progress-fill { height: 100%; width: 0; background: rgba(255,255,255,0.92); transition: width 0.25s linear; }

/* Hide the global mini-player on the 合拍 view (the big button is the player) */
.mini-player.mini-hidden { display: none; }

/* ---- Per-row "..." action sheet (clipped to the phone via #view-hepai) ---- */
.more-sheet-overlay {
  position: absolute; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end;
  background: rgba(0,0,0,0); transition: background 0.22s ease;
}
.more-sheet-overlay.show { background: rgba(0,0,0,0.38); }
.action-sheet {
  width: 100%; background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 8px 10px 12px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.2, 0, 0, 1);
}
.more-sheet-overlay.show .action-sheet { transform: translateY(0); }
.action-sheet-head { padding: 10px 12px 9px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.action-sheet-title { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-sheet-sub { font-size: 12px; color: var(--mut); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 12px; font-size: 14.5px; color: var(--text);
  border-radius: 10px; transition: background 0.12s; text-align: left;
}
.action-sheet-item:active { background: #f1f3f5; }
.action-sheet-item.danger { color: #e05050; }
.action-sheet-cancel {
  width: 100%; margin-top: 6px; padding: 13px; font-size: 15px; font-weight: 600;
  color: var(--text); background: #f1f3f5; border-radius: 12px;
}
.action-sheet-cancel:active { background: #e7eaee; }

/* ---- Per-song play badge + playing / excluded row states ---- */
.set-cover-btn { cursor: pointer; }
.set-cover-play {
  position: absolute; right: 2px; bottom: 2px; z-index: 4;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.46);
  display: flex; align-items: center; justify-content: center;
}
.set-cover-play .scp-play { margin-left: 1px; }
.set-cover-play .scp-pause { display: none; }

.set-row.row-playing { background: #f2fbf7; }
.set-row.row-playing .set-title { color: var(--green); }
.set-row.row-playing .set-cover-bars { opacity: 1; }
.set-row.row-playing .set-cover-play .scp-play { display: none; }
.set-row.row-playing .set-cover-play .scp-pause { display: block; }

/* Excluded-from-mix: clearly distinct (grayscale cover + strikethrough + pill) */
.set-row.row-excluded { background: #fafafa; }
.set-row.row-excluded .cover-photo { filter: grayscale(1) brightness(0.82); }
.set-row.row-excluded .set-cover { opacity: 0.7; }
.set-row.row-excluded .set-cover-play,
.set-row.row-excluded .set-wave { display: none; }
.set-row.row-excluded .set-title { text-decoration: line-through; color: var(--mut); }
.set-row.row-excluded .set-meta { opacity: 0.7; }
.set-row.row-excluded .set-title::after {
  content: '已移出混音'; margin-left: 6px; text-decoration: none; vertical-align: middle;
  font-size: 9px; font-weight: 800; color: #9a6a00;
  background: #fff1c9; border: 1px solid #f0cf7a; border-radius: 3px; padding: 1px 5px;
}

/* Mode hint line under the song-list header */
.mix-mode-hint {
  padding: 6px 16px 2px; font-size: 11.5px; color: var(--mut);
}

/* ============================================================
   Expanded player v2 — match QQ reference (Image #7)
   ============================================================ */
.vp-topbar-center { display: flex; gap: 22px; align-items: center; }
.vp-tab {
  font-size: 16px; font-weight: 600; color: var(--mut);
  position: relative; padding: 2px;
}
.vp-tab.active { color: var(--text); font-weight: 700; }
.vp-tab.active::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 2px; background: var(--green);
}
.vp-tab-reddot {
  position: absolute; top: 0; right: -7px;
  width: 5px; height: 5px; border-radius: 50%; background: #ff4d4f;
}

.vp-brand {
  position: absolute; top: 12px; left: 16px; z-index: 4;
  font-size: 10px; font-weight: 700; color: rgba(110,110,110,0.5); letter-spacing: 0.5px;
}

.vp-lyric {
  text-align: center; font-size: 14px; color: var(--green); font-weight: 500;
  margin: 4px 0 2px; min-height: 20px;
}

.vp-mix-hint {
  text-align: center; font-size: 12px; color: var(--mut); font-weight: 600;
  height: 16px; opacity: 0; transition: opacity 0.4s ease;
}
.vp-mix-hint.show { opacity: 1; color: var(--green); }

.vp-controls { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px; }
.vp-ctrl-side { color: #555; }

.vp-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 6px 2px; margin-top: 4px;
}
.vp-tool-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  color: #666; font-size: 13px; padding: 6px;
}
.vp-tool-btn:active { opacity: 0.6; }
.vp-tool-together {
  color: var(--green); font-weight: 600;
  border: 1px solid #cdeede; border-radius: 999px; padding: 6px 14px;
}

/* Regen chip (mode switched while playing -> keep playing, offer regenerate) */
.regen-chip {
  display: none; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 8px 12px; margin-bottom: 2px;
  font-size: 12.5px; font-weight: 600; color: var(--green);
  background: #eafaf2; border: 1px solid #bfe9d4; border-radius: 999px;
}
.regen-chip.show { display: flex; }
.regen-chip:active { background: #dcf4e8; }

/* Mix-generation progress: show the bar + slight dim while generating */
.play-mix-btn-rich.generating .play-mix-progress { opacity: 1; }
.play-mix-btn-rich.generating { opacity: 0.94; }

/* ============================================================
   HOME REDESIGN (QQ Music 首页 faithful redesign) — 2026-06
   Scoped to #view-home only. Appended block; does not edit
   unrelated rules. All colors via existing CSS vars + --green.
   ============================================================ */

/* ---- Header row: brand left, actions right ---- */
.qm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 6px; background: var(--card);
}
.qm-brand { display: flex; align-items: center; gap: 8px; }
.qm-brand-logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #2fd089, var(--green));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(49,194,124,0.35);
}
.qm-brand-name { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0.2px; }

.qm-header-actions { display: flex; align-items: center; gap: 12px; }
.qm-noad-pill {
  font-size: 11.5px; font-weight: 600; color: var(--green);
  border: 1px solid var(--green); border-radius: var(--r-pill);
  padding: 3px 9px; line-height: 1; white-space: nowrap;
}
.qm-icon-btn {
  position: relative; background: none; border: none; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.qm-icon-btn:active { opacity: 0.6; }
.qm-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #f5454a; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--card); line-height: 1;
}

/* ---- Search bar ---- */
.qm-search-wrap { padding: 6px 16px 10px; background: var(--card); }
.qm-search-pill {
  display: flex; align-items: center; gap: 8px;
  background: #f1f2f5; border-radius: var(--r-pill);
  padding: 10px 14px;
}
.qm-search-text { flex: 1; color: #9aa0a8; font-size: 13.5px; }
.qm-search-eq { flex-shrink: 0; }

/* ---- Category tabs ---- */
.qm-tabs {
  display: flex; gap: 4px; padding: 6px 12px 12px;
  overflow-x: auto; background: var(--card);
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.qm-tabs::-webkit-scrollbar { display: none; }
.qm-tab {
  flex-shrink: 0; padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--mut);
  white-space: nowrap; cursor: pointer; transition: all 0.15s;
}
.qm-tab.active { background: var(--green); color: #fff; font-weight: 600; }
.qm-tab:not(.active):active { color: var(--text); }

/* ---- Two big feature cards ---- */
.qm-feature-row {
  display: flex; gap: 11px; padding: 14px 16px 4px;
}
.qm-feat-card {
  flex: 1; min-width: 0; height: 152px;
  border-radius: var(--r-card); position: relative; overflow: hidden;
  cursor: pointer; transition: transform 0.16s ease;
}
.qm-feat-card:active { transform: scale(0.98); }

/* LEFT: 合拍 hero */
.qm-feat-hepai {
  background: linear-gradient(150deg, #1db970 0%, var(--green) 52%, #46d3a0 100%);
  padding: 13px 14px; display: flex; flex-direction: column;
  box-shadow: 0 6px 18px rgba(49,194,124,0.28);
}
.qm-feat-hepai-glow {
  position: absolute; top: -40px; right: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.32), transparent 70%);
  pointer-events: none;
}
.qm-feat-pill {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,0.24); backdrop-filter: blur(4px);
  border-radius: var(--r-pill); padding: 3px 9px; line-height: 1;
  position: relative; z-index: 2;
}
.qm-feat-hepai-head { display: flex; align-items: baseline; gap: 4px; margin-top: 9px; position: relative; z-index: 2; }
.qm-feat-hepai-title { font-size: 27px; font-weight: 800; color: #fff; letter-spacing: 1px; line-height: 1; }
.qm-feat-spark { font-size: 15px; color: #fff; opacity: 0.92; }
.qm-feat-hepai-sub { font-size: 12px; color: rgba(255,255,255,0.92); margin-top: 5px; position: relative; z-index: 2; }
.qm-feat-mosaic {
  display: flex; gap: 4px; margin-top: 10px; position: relative; z-index: 2;
}
.qm-mosaic-tile {
  width: 30px; height: 30px; border-radius: 7px; position: relative; overflow: hidden;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.qm-feat-hepai-enter {
  position: absolute; left: 14px; bottom: 13px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,0.26); backdrop-filter: blur(6px);
  border-radius: var(--r-pill); padding: 5px 13px;
}

/* RIGHT: 每日30首 */
.qm-feat-daily {
  background: var(--card); border: 1px solid var(--line);
  padding: 10px; display: flex; flex-direction: column;
}
.qm-daily-cover {
  position: relative; overflow: hidden; width: 100%; height: 80px;
  border-radius: 11px; flex-shrink: 0; background: #e8eaee;
}
.qm-daily-overlay {
  position: absolute; left: 9px; top: 8px; z-index: 2;
  display: flex; flex-direction: column; gap: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.qm-daily-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.1; }
.qm-daily-date { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.92); letter-spacing: 0.5px; }
.qm-daily-play {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
}
.qm-daily-play svg { margin-left: 1px; }
.qm-daily-sub { font-size: 11.5px; color: var(--mut); margin-top: 8px; line-height: 1.3; }
.qm-daily-listen { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.qm-daily-avatars { display: flex; }
.qm-avatar-dot {
  width: 17px; height: 17px; border-radius: 50%;
  position: relative; overflow: hidden; background: #d8dbe0;
  border: 1.5px solid var(--card); margin-left: -5px;
}
.qm-avatar-dot:first-child { margin-left: 0; }
.qm-daily-count { font-size: 10.5px; color: var(--mut); }

/* ---- Scene cards row ---- */
.qm-scene-row { display: flex; gap: 9px; padding: 14px 16px 4px; }
.qm-scene-card {
  flex: 1; min-width: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 6px 10px; display: flex; flex-direction: column;
  align-items: center; gap: 5px; cursor: pointer; transition: transform 0.15s;
}
.qm-scene-card:active { transform: scale(0.95); }
.qm-scene-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--s-bg); color: var(--s-fg);
  display: flex; align-items: center; justify-content: center;
}
.qm-scene-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.qm-scene-sub { font-size: 10px; color: var(--mut); }

/* ---- 为你推荐 section header + filters ---- */
.qm-rec-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 8px; gap: 10px;
}
.qm-rec-title {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 17px; font-weight: 700; color: var(--text); flex-shrink: 0;
}
.qm-rec-title svg { margin-top: 2px; }
.qm-rec-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.qm-rec-filters::-webkit-scrollbar { display: none; }
.qm-rec-chip {
  flex-shrink: 0; font-size: 12px; font-weight: 500; color: var(--mut);
  padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; cursor: pointer;
  transition: all 0.15s;
}
.qm-rec-chip.active { background: var(--green); color: #fff; font-weight: 600; }
.qm-rec-chip:not(.active):active { color: var(--text); }

/* ---- Song rows ---- */
.qm-tracklist { padding: 0 16px 4px; }
.qm-track-row {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.qm-track-row:last-child { border-bottom: none; }
.qm-track-cover {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  position: relative; overflow: hidden; background: #e8eaee;
}
.qm-track-meta { flex: 1; min-width: 0; }
.qm-track-titleline { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.qm-track-title {
  font-size: 14.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.qm-track-tag {
  flex-shrink: 0; font-size: 9.5px; font-weight: 700; line-height: 1;
  padding: 2px 5px; border-radius: 4px; letter-spacing: 0.3px;
}
.qm-tag-vip { color: #8a5a00; background: linear-gradient(135deg, #ffe08a, #f6c850); }
.qm-tag-sq { color: #6a3fd0; background: #ece6fb; }
.qm-tag-plain { color: var(--green); background: var(--green-light); }
.qm-track-artist {
  font-size: 12px; color: var(--mut); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qm-track-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qm-track-heart, .qm-track-more {
  background: none; border: none; padding: 5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qm-track-heart:active, .qm-track-more:active { transform: scale(0.85); }
.qm-track-heart.liked svg { stroke: #f5454a; fill: #f5454a; }
.qm-track-play {
  width: 30px; height: 30px; border-radius: 50%;
  background: #f1f2f5; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.qm-track-play svg { margin-left: 1.5px; }
.qm-track-play:active { transform: scale(0.88); }
.qm-track-play.playing { background: var(--green-light); }
.qm-track-play.playing svg { fill: var(--green); }

/* ============================================================
   CC-BY 4.0 署名(静态部署版由 static-engine/main.js 注入,
   本地 FastAPI 模式不出现)。挂在 .phone-wrap 内、手机壳下方。
   ============================================================ */
.phone-wrap { flex-direction: column; }
.cc-attribution {
  margin-top: 16px;
  font: 12px/1.6 var(--font);
  color: var(--mut);
  text-align: center;
  letter-spacing: 0.01em;
}
.cc-attribution a { color: var(--mut); text-decoration: underline; text-underline-offset: 2px; }
.cc-attribution a:hover { color: var(--green); }
