* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ================= 全局滚动条彻底消除 ================= */
html, body, * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* ================= 设计系统：色彩与全局变量 ================= */
:root {
  --bg-main: #f5f7fa;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-secondary: #ebedf2;
  --text-main: #14171a;
  --text-sub: #757d8a;
  --text-minor: #9ea7b4;
  --border-color: rgba(0, 0, 0, 0.05);
  --border-highlight: rgba(255, 255, 255, 0.8);
  --drawer-bg: rgba(255, 255, 255, 0.96);
  --item-hover: rgba(0, 0, 0, 0.035);
  --accent-red: #ff3a3a;
  --accent-red-glow: rgba(255, 58, 58, 0.28);
  --card-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06);
}

body.theme-dark {
  --bg-main: #0a0b0e;
  --bg-card: rgba(21, 23, 29, 0.88);
  --bg-secondary: #1a1d24;
  --text-main: #f3f5f8;
  --text-sub: #8e95a5;
  --text-minor: #5a6170;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(255, 255, 255, 0.12);
  --drawer-bg: rgba(19, 21, 27, 0.96);
  --item-hover: rgba(255, 255, 255, 0.05);
  --accent-red: #ff3e3e;
  --accent-red-glow: rgba(255, 62, 62, 0.35);
  --card-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
}

body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", sans-serif;
  overflow: hidden;
  position: relative;
  transition: background 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-font-smoothing: antialiased;
}

.view-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.view-panel.active {
  display: flex;
}

#viewHeartbeat.active ~ #globalMiniPlayer,
#viewMvPlayer.active ~ #globalMiniPlayer {
  display: none !important;
}

/* ================= 页面 1：推荐首页 ================= */
#viewHome {
  background: var(--bg-main);
  color: var(--text-main);
}

.home-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 14px) 18px 10px 18px;
  gap: 14px;
  background: var(--bg-main);
  z-index: 10;
}

#viewHome .nav-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: var(--text-sub);
  font-weight: 600;
  flex-shrink: 0;
}

#viewHome .nav-tab-item {
  position: relative;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.2s ease;
}

#viewHome .nav-tab-item.active {
  color: var(--text-main);
  font-weight: 800;
  font-size: 17px;
  transform: translateY(-1px);
}

#viewHome .nav-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background: var(--accent-red);
  border-radius: 3px;
  box-shadow: 0 2px 8px var(--accent-red-glow);
}

#viewHome .search-trigger-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  flex: 1;
  max-width: 190px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#viewHome .search-trigger-box:active {
  transform: scale(0.97);
}

#viewHome .search-placeholder-text {
  font-size: 12.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.home-scroll-flow {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 85px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 顶部大卡片横滑 */
.banner-cards-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.for-you-card {
  position: relative;
  width: 180px;
  height: 220px;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease;
}

.for-you-card:active {
  transform: scale(0.97);
}

.for-you-card.blue-theme {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%), linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.3));
}

.for-you-card.pink-theme {
  background: linear-gradient(135deg, #ff5858 0%, #f09819 100%), linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.3));
}

.card-tag-badge {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-cover-thumb {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 82px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-meta-bottom {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 120px;
  z-index: 2;
}

.card-main-title {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.card-sub-title {
  font-size: 11px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.card-play-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.card-play-btn:active {
  transform: scale(0.9);
}

.feed-section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.arrow-play-sec {
  color: var(--text-main);
  opacity: 0.7;
}

.feed-songs-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feed-song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 8px;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.feed-song-item:active {
  background: var(--item-hover);
  transform: scale(0.99);
}

.feed-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.feed-song-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

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

.song-tit {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}

.tag-mv-pill {
  font-size: 9px;
  padding: 0 5px;
  border-radius: 4px;
  line-height: 14px;
  height: 15px;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
  background: rgba(255, 58, 58, 0.05);
}

.feed-meta-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-sq-gold {
  font-size: 9px;
  padding: 0 4px;
  border-radius: 3px;
  line-height: 13px;
  height: 14px;
  color: #c9933b;
  border: 1px solid rgba(201, 147, 59, 0.4);
  background: rgba(201, 147, 59, 0.08);
  font-weight: 700;
  flex-shrink: 0;
}

.feed-author-line {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.song-item-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-add-playlist-btn, .action-more-dots-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.action-add-playlist-btn:active, .action-more-dots-btn:active {
  transform: scale(0.88);
}

.home-tabs {
  background: var(--drawer-bg) !important;
  border-top: 1px solid var(--border-color) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.home-tabs .bottom-tab-link {
  color: var(--text-sub);
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-tabs .bottom-tab-link.active {
  color: var(--text-main);
  font-weight: 800;
}

/* ================= 页面 2：全屏黑胶与歌词播放器 (双层动态弥散光晕引擎) ================= */
#viewHeartbeat {
  position: relative;
  overflow: hidden;
  background-color: #0b0c10 !important;
  color: #ffffff !important;

  /* 默认四色氛围调与散射坐标 */
  --bg-color-1: #1e2638;
  --bg-color-2: #161b26;
  --bg-color-3: #10141d;
  --bg-color-4: #090b0e;
  --bg-angle: 135deg;
  --bg-pos-x: 50%;
  --bg-pos-y: 30%;

  /* 缓冲切色过渡态 */
  --bg-color-1-next: #1e2638;
  --bg-color-2-next: #161b26;
  --bg-color-3-next: #10141d;
  --bg-color-4-next: #090b0e;
  --bg-angle-next: 135deg;
  --bg-pos-x-next: 50%;
  --bg-pos-y-next: 30%;
}

/* 底层主色光晕层 */
#viewHeartbeat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at var(--bg-pos-x) var(--bg-pos-y), var(--bg-color-1) 0%, transparent 68%),
    radial-gradient(circle at 80% 80%, var(--bg-color-2) 0%, transparent 55%),
    linear-gradient(var(--bg-angle), var(--bg-color-3) 0%, var(--bg-color-4) 100%);
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 表层过渡光晕层 (切歌时 900ms 呼吸淡入) */
#viewHeartbeat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at var(--bg-pos-x-next) var(--bg-pos-y-next), var(--bg-color-1-next) 0%, transparent 68%),
    radial-gradient(circle at 80% 80%, var(--bg-color-2-next) 0%, transparent 55%),
    linear-gradient(var(--bg-angle-next), var(--bg-color-3-next) 0%, var(--bg-color-4-next) 100%);
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

#viewHeartbeat.bg-transitioning::after {
  opacity: 1;
}

/* 保证播放器内部所有 UI 组件置于背景之上 */
#viewHeartbeat > :not(::before):not(::after) {
  z-index: 2;
}

.spotlight-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.player-clean-navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 14px) 20px 8px 20px;
  min-height: 54px;
}

.player-down-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.player-down-btn:active {
  transform: scale(0.9);
}

.lyrics-header-meta {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 72%;
  flex: 1;
}

.lyrics-nav-song-tit {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-nav-artist-name {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.player-right-blank {
  width: 36px;
  flex-shrink: 0;
}

.player-left {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  margin-top: -6px;
  z-index: 5;
  touch-action: pan-y;
}

.vinyl-stage-box {
  position: relative;
  width: 290px;
  height: 290px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.tonearm-container {
  position: absolute !important;
  top: -72px !important;
  left: 118px !important;
  width: 160px;
  height: 170px;
  z-index: 60;
  transform-origin: 25px 25px;
  transform: scale(0.82) rotate(-30deg) !important;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.3s ease;
  pointer-events: none !important;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.9));
}

.tonearm-container.playing {
  transform: scale(0.82) rotate(0deg) !important;
}

.turntable-tray {
  position: relative;
  width: 286px;
  height: 286px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto !important;
  z-index: 20;
}

.vinyl-body {
  width: 274px;
  height: 274px;
  border-radius: 50%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.15) 0deg,
    rgba(255, 255, 255, 0.02) 45deg,
    rgba(0, 0, 0, 0.98) 90deg,
    rgba(255, 255, 255, 0.02) 135deg,
    rgba(255, 255, 255, 0.15) 180deg,
    rgba(255, 255, 255, 0.02) 225deg,
    rgba(0, 0, 0, 0.98) 270deg,
    rgba(255, 255, 255, 0.02) 315deg,
    rgba(255, 255, 255, 0.15) 360deg
  ),
  repeating-radial-gradient(circle at center, #111215, #111215 2px, #18191e 3px, #0c0d10 4px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotateVinyl 22s linear infinite;
  animation-play-state: paused;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.8);
}

.vinyl-body.playing {
  animation-play-state: running;
}

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

.vinyl-artwork {
  width: 182px;
  height: 182px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #0a0a0c;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
}

.vinyl-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 歌词图层 */
.lyrics-display-view {
  position: absolute;
  inset: -60px -20px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  z-index: 50;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  transition: none !important;
}

.lyrics-scroll-wrap {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 0;
  gap: 26px;
  text-align: center;
  pointer-events: auto;
}

.lrc-line {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  padding: 6px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
  user-select: none;
}

.lrc-line.active {
  font-size: 21px;
  font-weight: 800;
  transform: scale(1.05);
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
}

.lrc-line.active:not(:has(.kok-word)) {
  color: #ffffff !important;
}

.kok-word {
  display: inline-block;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.35);
}

.lrc-line.active .kok-word {
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff var(--progress, 0%),
    rgba(255, 255, 255, 0.35) var(--progress, 0%),
    rgba(255, 255, 255, 0.35) 100%
  );
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  will-change: background;
}

.song-title-header {
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 10;
  margin-bottom: 10px;
}

.title-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.title-with-mv-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-title-header .headline-song-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.song-title-header .headline-artist-row {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-album-split {
  opacity: 0.4;
}

.headline-album-name {
  opacity: 0.85;
}

.link-jump-act {
  cursor: pointer;
  transition: opacity 0.2s;
}

.link-jump-act:active {
  opacity: 0.6;
}

.fixed-fav-heart-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.fixed-fav-heart-btn:active {
  transform: scale(1.2);
}

.player-console-panel {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 0 24px env(safe-area-inset-bottom, 22px) 24px;
  gap: 16px;
}

.console-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.action-item-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.action-item-btn:active {
  transform: scale(0.9);
}

.badge-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-status-tag {
  position: absolute;
  top: -6px;
  right: -14px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.2px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 4px;
  border-radius: 6px;
}

.track-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-track-line {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  cursor: pointer;
}

/* 进度条已播放轨道：混合 40% 纯白增亮，保持通透发光感，彻底告别暗沉 */
.progress-fill-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: color-mix(in srgb, var(--progress-dynamic-color, #ffffff) 60%, #ffffff 40%);
  border-radius: 3px;
}

/* 进度条滑块圆点：保持纯白主体，外圈做微细半透描边 */
.progress-dot-thumb {
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 2px solid color-mix(in srgb, var(--progress-dynamic-color, #ffffff) 70%, #ffffff 30%);
  border-radius: 50%;
}

.progress-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  padding: 0 1px;
  font-weight: 500;
}

.playback-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
}

.ctrl-icon-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.15s ease;
}

.ctrl-icon-btn:active {
  transform: scale(0.9);
}

.play-giant-circle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.2s ease;
}

.play-giant-circle-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.18);
}

/* 调音浮动气泡 */
.popover-menu {
  position: absolute;
  bottom: 124px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 32, 38, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 150;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  min-width: 170px;
}

.popover-menu .popover-opt {
  padding: 10px 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.popover-menu .popover-opt:active,
.popover-menu .popover-opt.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
}

/* 歌词极简沉浸模式状态 */
#viewHeartbeat.in-lyrics-mode .turntable-tray,
#viewHeartbeat.in-lyrics-mode .tonearm-container {
  display: none !important;
}

#viewHeartbeat.in-lyrics-mode .lyrics-display-view {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  inset: -20px -20px 0 -20px;
  transition: none !important;
}

#viewHeartbeat.in-lyrics-mode #songTitleHeader,
#viewHeartbeat.in-lyrics-mode #playerConsolePanel {
  display: none !important;
}

#viewHeartbeat.in-lyrics-mode .player-left {
  flex: 1;
  height: 100%;
  margin-top: 0;
  padding-bottom: 0;
}

#viewHeartbeat.in-lyrics-mode .lyrics-header-meta {
  display: flex !important;
}

.lyrics-floating-play-btn {
  display: none;
  position: absolute;
  right: 22px;
  bottom: calc(env(safe-area-inset-bottom, 22px) + 20px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.lyrics-floating-play-btn:active {
  transform: scale(0.9);
}

#viewHeartbeat.in-lyrics-mode .lyrics-floating-play-btn {
  display: flex;
}

/* ================= 页面 3：独立详情页 ================= */
#viewDetail {
  background: var(--bg-card);
  color: var(--text-main);
}

.detail-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 14px) 18px 10px 18px;
  min-height: 54px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.detail-navbar-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.detail-header-card {
  padding: 18px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  flex-shrink: 0;
  max-height: 45vh;
}

.detail-top-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-cover-main {
  width: 108px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.detail-texts-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-title-main {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.detail-subtitle-minor {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
}

.detail-playall-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-red);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 2px;
  box-shadow: 0 4px 12px var(--accent-red-glow);
  transition: transform 0.15s ease;
}

.detail-playall-pill:active {
  transform: scale(0.95);
}

.detail-desc-line {
  font-size: 11.5px;
  color: var(--text-sub);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
  margin-top: 2px;
}

#detailDescText {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desc-more-link {
  color: #3b82f6;
  flex-shrink: 0;
  cursor: pointer;
}

/* ================= 页面 4：纯净全网搜索页 ================= */
#viewSearch {
  background: var(--bg-card);
  color: var(--text-main);
}

.search-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: env(safe-area-inset-top, 14px) 18px 10px 18px;
  min-height: 54px;
  background: var(--bg-card);
}

.back-arrow-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 50%;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 500;
}

.clear-search-btn {
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
}

.engine-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-secondary);
  color: var(--text-main);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.engine-toggle-btn .engine-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}

.engine-toggle-btn.qq .engine-dot {
  background: #10b981;
}

.search-category-tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.cat-tab {
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  padding: 6px 10px;
  position: relative;
  font-weight: 600;
}

.cat-tab.active {
  color: var(--text-main);
  font-weight: 800;
}

.cat-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  background: var(--accent-red);
  border-radius: 2px;
  box-shadow: 0 2px 6px var(--accent-red-glow);
}

.search-scroll-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 16px 85px 16px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}

.search-songs-list {
  display: flex;
  flex-direction: column;
}

/* ================= 页面 5：【我的】界面 ================= */
#viewMine {
  background: var(--bg-main);
  color: var(--text-main);
}

.mine-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 14px) 18px 10px 18px;
  gap: 14px;
  background: var(--bg-main);
}

.mine-search-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 7px 14px;
  max-width: 250px;
  flex: 1;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.chip-avatar-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
}

.chip-text {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.mine-top-actions {
  display: flex;
  align-items: center;
}

.mine-action-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 50%;
}

.mine-scroll-flow {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px 85px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mine-user-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 2px;
}

.user-avatar-gold-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #f1c40f;
  box-shadow: 0 4px 14px rgba(241, 196, 15, 0.25);
  flex-shrink: 0;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-q-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  background: #2980b9;
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid #ffffff;
}

.user-info-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-nickname-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name-txt {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.logout-icon-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.user-badge-row {
  display: flex;
}

.svip-badge-pill {
  font-size: 10.5px;
  background: #1c1d22;
  color: #f1c40f;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.mine-cards-split-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.mine-fav-box-card {
  width: 100px;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mine-fav-box-card:active {
  transform: scale(0.96);
}

.fav-icon-solid {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  color: var(--accent-red);
}

.fav-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.fav-card-num {
  font-size: 12px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.mine-recent-box-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mine-recent-box-card:active {
  transform: scale(0.98);
}

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

.recent-head-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.recent-content-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.four-grid-covers {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--border-color);
  flex-shrink: 0;
}

.four-grid-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-meta-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.recent-song-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-song-count {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 500;
}

.mine-playlist-section-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.mine-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mine-tab-sub-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sub-tab-active {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.sec-right-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
}

.tool-btn-icon {
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.tool-btn-icon:active {
  transform: scale(0.85);
}

/* ================= 页面 6：MV 视频全景视窗 ================= */
#viewMvPlayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  background: var(--bg-main) !important;
  color: var(--text-main);
  z-index: 120;
}

#viewMvPlayer.active {
  display: flex !important;
}

.mv-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 14px) 18px 10px 18px;
  min-height: 52px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.mv-top-title-text {
  font-size: 15.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
  color: var(--text-main);
}

.mv-share-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
}

.mv-scroll-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}

.mv-video-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mv-meta-details-card {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.mv-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mv-singer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.mv-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mv-main-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv-singer-name {
  font-size: 11.5px;
  color: var(--text-sub);
}

.mv-pub-stats {
  font-size: 11.5px;
  color: var(--text-sub);
  text-align: right;
  flex-shrink: 0;
}

#mvDescBox {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 100%;
  word-break: break-all;
}

.mv-comments-section {
  padding: 18px;
}

.mv-comments-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.sec-tit {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
}

.sec-count {
  font-size: 12px;
  color: var(--text-sub);
}

.comment-group-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 14px 0 10px 0;
}

.comment-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================= 评论 / 抽屉通用组件 ================= */
.comment-drawer-backdrop, .action-sheet-backdrop, .login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 210;
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comment-drawer-panel {
  width: 100%;
  height: 80vh;
  height: 80dvh;
  background: var(--drawer-bg);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-highlight);
  animation: slideUpDrawer 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.drawer-drag-pill {
  width: 38px;
  height: 4.5px;
  border-radius: 3px;
  background: var(--border-color);
  margin: 10px auto 4px auto;
}

.comment-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-tit {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-sub);
  cursor: pointer;
  padding: 4px;
}

.clear-action-label-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 4px;
  font-weight: 600;
}

.drawer-comments-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 评论条目与回复气泡 */
.comment-row-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
}

.comment-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.comment-content-cluster {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

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

.comment-user-name {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}

.like-thumb-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
}

.like-thumb-box.liked {
  color: var(--accent-red);
}

.comment-body-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.55;
  word-break: break-word;
}

.comment-date-time {
  font-size: 11px;
  color: var(--text-minor);
  margin-top: 2px;
}

.comment-reply-bubble {
  margin-top: 8px;
  padding: 9px 12px;
  background: var(--bg-secondary);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sub);
  border-left: 3px solid var(--accent-red);
  word-break: break-word;
}

.comment-reply-bubble .reply-user {
  color: #3b82f6;
  font-weight: 600;
  margin-right: 4px;
  cursor: pointer;
}

.comment-reply-bubble .reply-text {
  color: var(--text-main);
}

/* 设置开关与列表 */
.settings-body-list {
  padding: 10px 18px;
  gap: 14px;
}

.settings-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.setting-text-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setting-main-label {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
}

.setting-sub-label {
  font-size: 12px;
  color: var(--text-sub);
}

.switch-toggle-box {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch-toggle-box input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-color);
  transition: .3s cubic-bezier(0.2, 0.9, 0.3, 1);
  border-radius: 28px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.2, 0.9, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.switch-toggle-box input:checked + .switch-slider {
  background-color: var(--accent-red);
}

.switch-toggle-box input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* 操作 Sheet 菜单 */
.action-sheet-dialog {
  width: 100%;
  background: var(--drawer-bg);
  border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(env(safe-area-inset-bottom, 16px) + 10px) 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border-highlight);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.3);
  animation: slideUpDrawer 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sheet-song-preview-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.sheet-cover-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.sheet-meta-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sheet-song-tit {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-singer-name {
  font-size: 12.5px;
  color: var(--text-sub);
}

.sheet-options-list {
  display: flex;
  flex-direction: column;
}

.sheet-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 8px;
  font-size: 15px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.sheet-option-item:active {
  background: var(--item-hover);
}

.sheet-option-item .opt-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheet-quality-tag {
  font-size: 12px;
  color: var(--accent-red);
  font-weight: 700;
}

.sheet-cancel-close-btn {
  width: 100%;
  padding: 13px 0;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 14px;
  margin-top: 4px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sheet-cancel-close-btn:active {
  transform: scale(0.98);
}

/* 横向音量滑块 */
.sheet-volume-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--bg-secondary);
  border-radius: 14px;
  margin: 4px 0 6px 0;
  color: var(--text-sub);
}

.sheet-volume-track {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: var(--border-color);
  position: relative;
  cursor: pointer;
}

.sheet-volume-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent-red);
  border-radius: 4px;
}

/* 音质气泡：全局顶层绝对定位 */
#brQualityPopover {
  position: fixed !important;
  top: auto !important;
  bottom: 240px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  background: rgba(28, 30, 36, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
}

/* 登录弹窗 */
.login-modal-backdrop {
  justify-content: center;
  align-items: center;
}

.login-dialog-box {
  width: 86%;
  max-width: 330px;
  background: var(--drawer-bg);
  border-radius: 22px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-highlight);
}

.dialog-close-btn {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 18px;
  color: var(--text-sub);
  cursor: pointer;
}

.dialog-logo-icon {
  font-size: 36px;
  margin-bottom: 4px;
}

.dialog-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dialog-sub {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.dialog-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.dialog-inputs input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
}

.dialog-confirm-btn {
  width: 100%;
  height: 44px;
  background: var(--accent-red);
  color: #ffffff;
  border: none;
  border-radius: 22px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-red-glow);
  transition: transform 0.15s ease;
}

.dialog-confirm-btn:active {
  transform: scale(0.97);
}

/* 全局悬浮微型播放条 */
.floating-mini-player {
  position: fixed;
  left: 14px;
  right: 14px;
  height: 52px;
  bottom: 60px;
  background: var(--drawer-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 26px;
  display: flex;
  align-items: center;
  padding: 0 16px 0 6px;
  gap: 12px;
  box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.18);
  z-index: 90;
  border: 1px solid var(--border-highlight);
}

.mini-clickable-portal {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
}

.mini-cover-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mini-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-meta-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-song-name {
  color: var(--text-main);
  font-weight: 700;
}

.mini-split {
  color: var(--text-minor);
  opacity: 0.6;
}

.mini-artist-name {
  color: var(--text-sub);
  font-size: 12.5px;
}

.mini-actions-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.mini-ctrl-btn:active {
  transform: scale(0.85);
}

.system-bottom-tabs {
  position: relative;
  z-index: 10;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.bottom-tab-link {
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

/* 全局 Toast */
.spx-toast-container {
  position: fixed;
  top: env(safe-area-inset-top, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.spx-toast-item {
  background: rgba(24, 26, 32, 0.94);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spx-toast-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spx-toast-item.success {
  border-left: 3.5px solid #10b981;
}

.spx-toast-item.error {
  border-left: 3.5px solid #ef4444;
}

.spx-toast-item.info {
  border-left: 3.5px solid #3b82f6;
}

/* 真实收藏红心按键交互 */
.item-fav-heart-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.item-fav-heart-btn:active {
  transform: scale(1.35);
}

.item-fav-heart-btn.liked svg {
  fill: var(--accent-red) !important;
  stroke: var(--accent-red) !important;
}

/* ================= SPX 下载配置弹窗 ================= */
.spx-dl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.spx-dl-overlay.show {
  opacity: 1;
}

.spx-dl-panel {
  width: 90%;
  max-width: 360px;
  background: var(--drawer-bg);
  color: var(--text-main);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-highlight);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.spx-dl-overlay.show .spx-dl-panel {
  transform: scale(1);
}

.spx-dl-title {
  font-size: 17.5px;
  font-weight: 800;
  text-align: center;
}

.spx-dl-subtitle {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  margin-top: -8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.spx-dl-row, .spx-dl-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
}

.spx-dl-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spx-dl-label {
  font-size: 14.5px;
  font-weight: 700;
}

.spx-dl-desc {
  font-size: 12px;
  color: var(--text-sub);
}

/* 弹窗专用原生滑动 Switch */
.spx-dl-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: var(--border-color);
  outline: none;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
}

.spx-dl-switch:checked {
  background: var(--accent-red);
}

.spx-dl-switch::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.spx-dl-switch:checked::after {
  transform: translateX(20px);
}

.spx-dl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.spx-dl-btn {
  flex: 1;
  height: 42px;
  border-radius: 21px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.spx-dl-btn:active {
  transform: scale(0.97);
}

.spx-dl-btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-sub);
}

.spx-dl-btn-confirm {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

/* ================= 播放器控制台左侧音源胶囊按键 ================= */
.player-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.2s ease;
}

.player-source-pill .source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3a3a;
  box-shadow: 0 0 6px rgba(255, 58, 58, 0.6);
}

.player-source-pill.qq .source-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.player-source-pill:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

/* ================= 设置面板单元格点击态与新弹窗增强 ================= */
#openSleepModalCell, #openVaultModalCell {
  transition: background 0.15s ease, transform 0.12s ease;
  border-radius: 12px;
  padding: 14px 8px !important;
}

#openSleepModalCell:active, #openVaultModalCell:active {
  background: var(--item-hover);
  transform: scale(0.99);
}

/* 离线母带项单条交互 */
#vaultTracksScrollList .feed-song-item {
  transition: background 0.15s ease;
}

#vaultTracksScrollList .feed-song-item:active {
  background: var(--item-hover);
}

/* 母带删除按钮微动效 */
.vault-del-btn {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.vault-del-btn:active {
  transform: scale(0.85);
  color: var(--accent-red) !important;
  background: rgba(236, 65, 65, 0.12);
}

/* 王者荣耀超大容量荣耀勋章动画 */
#vaultGameHonorBadgeRow span {
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}