/* ========================================================
   Aura Music - Modern Glassmorphic Dark Aesthetics
   ======================================================== */

:root {
  --primary-accent: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.45);
  --secondary-accent: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.35);
  --pink-accent: #ec4899;
  
  --bg-dark: #0a0a12;
  --surface-card: rgba(18, 20, 32, 0.72);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(139, 92, 246, 0.15);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Outfit', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-custom: var(--font-sans);
  --font-lyrics: var(--font-custom);
  --lyrics-font-scale: 1;
  --lyrics-font-weight: 500;
  --custom-bg-blur: 40px;
  --custom-bg-opacity: 0.85;
  --custom-overlay-darkness: 0.65;
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: var(--font-custom);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* 动态氛围光晕背景与自定义背景层 */
.ambient-bg {
  position: fixed;
  inset: -15%;
  background: radial-gradient(circle at 25% 30%, rgba(139, 92, 246, 0.35), transparent 45%),
              radial-gradient(circle at 75% 65%, rgba(6, 182, 212, 0.25), transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.2), transparent 40%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(var(--custom-bg-blur, 40px));
  z-index: 0;
  opacity: var(--custom-bg-opacity, 0.85);
  transition: filter 0.4s ease, opacity 0.4s ease, transform 1s ease;
  animation: ambientFloat 25s infinite alternate ease-in-out;
}

.ambient-bg.no-anim {
  animation: none !important;
}

@keyframes ambientFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-2%, 2%); }
  100% { transform: scale(1.04) translate(2%, -2%); }
}

.ambient-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 18, var(--custom-overlay-darkness, 0.65));
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease;
}

/* 主容器 */
.player-app {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* ==================== 顶部导航栏 ==================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(12, 14, 24, 0.5);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-name span {
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-nav {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
}

.nav-tab {
  padding: 7px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 顶部导入下拉组件与主题按钮 */
.import-menu-wrap {
  position: relative;
}

.import-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.import-btn-main:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(6, 182, 212, 0.45));
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-1px);
}

.chevron-arrow {
  transition: transform 0.25s ease;
}

.import-menu-wrap.open .chevron-arrow {
  transform: rotate(180deg);
}

/* 下拉卡片 */
.import-dropdown-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: rgba(20, 23, 38, 0.96);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.2);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.import-menu-wrap.open .import-dropdown-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.import-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.import-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.option-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-icon-box.music-icon {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
}

.option-icon-box.folder-icon {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
}

.option-icon-box.lrc-icon {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
}

.option-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.option-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.option-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.option-split-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}

/* 主题光效图标按钮 */
.theme-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.theme-icon-btn * {
  pointer-events: none;
}

.theme-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

/* ==================== 中间主视图 ==================== */
.app-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

.view-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(0.98);
  display: flex;
  padding: 24px 48px;
  box-sizing: border-box;
}

.view-panel.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* 经典主视图 */
.player-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  align-items: center;
  gap: 60px;
}

/* 黑胶唱片机组件 */
.turntable-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vinyl-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #0d0d12 0%, #171822 45%, #08090d 65%, #181924 75%, #050508 100%);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vinyl-disc.playing {
  animation: spinVinyl 18s linear infinite;
}

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

.vinyl-grooves {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 3px,
    transparent 4px
  );
  pointer-events: none;
}

.vinyl-center-cover {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 6px #12131d, 0 4px 15px rgba(0, 0, 0, 0.6);
  position: relative;
}

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

/* 唱针臂 */
.tonearm {
  position: absolute;
  top: -24px;
  right: -10px;
  width: 70px;
  height: 160px;
  transform-origin: 20px 20px;
  transform: rotate(-32deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  pointer-events: none;
}

.tonearm.playing {
  transform: rotate(0deg);
}

.tonearm-base {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #cbd5e1, #475569);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.tonearm-rod {
  position: absolute;
  top: 20px;
  left: 17px;
  width: 6px;
  height: 120px;
  background: linear-gradient(to right, #94a3b8, #e2e8f0, #64748b);
  border-radius: 3px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.tonearm-head {
  position: absolute;
  top: 135px;
  left: 10px;
  width: 20px;
  height: 28px;
  background: linear-gradient(135deg, #334155, #1e293b);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.mini-visualizer {
  margin-top: 32px;
  width: 320px;
  height: 50px;
  opacity: 0.85;
}

/* 右侧曲目信息与快捷歌词 */
.song-meta-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.song-meta-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 4px;
}

.song-title-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.song-title {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.song-artist-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  cursor: pointer;
  width: fit-content;
  padding: 2px 8px 2px 0;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.song-artist-wrap:hover {
  transform: translateX(2px);
}

.song-artist-wrap .song-artist {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0;
  transition: color 0.2s ease;
}

.song-artist-wrap:hover .song-artist {
  color: #fa586a;
}

.artist-arrow-icon {
  color: var(--text-muted);
  opacity: 0.65;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.song-artist-wrap:hover .artist-arrow-icon {
  color: #fa586a;
  opacity: 1;
  transform: translateX(3px);
}

.audio-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.tag-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* 伴随歌词微组件 */
.compact-lyrics-box {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  margin-bottom: 24px;
  min-height: 115px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
  padding-left: 32px;
  transition: var(--transition-smooth);
}

/* 垂直基准纵轴线光条 */
.compact-lyrics-box::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.9), rgba(139, 92, 246, 0.2));
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.lyrics-line {
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: left;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyrics-line.prev, .lyrics-line.next {
  color: var(--text-muted);
  opacity: 0.55;
  font-size: 0.88rem;
}

.lyrics-line.current {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-shadow: 0 0 16px var(--primary-glow);
  transform: none; /* 坚决移除打破纵轴线对齐的水平位移 */
}

/* 音效预设胶囊滑动栏 (极简单行横向滑动) */
.quick-eq-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
  max-width: 100%;
}

.quick-eq-bar::-webkit-scrollbar {
  display: none;
}

.eq-btn {
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.eq-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.eq-btn.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

.eq-btn.airpods {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #bae6fd;
}

.eq-btn.airpods:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
}

.eq-btn.airpods.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.45), rgba(99, 102, 241, 0.45));
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 2px 14px rgba(56, 189, 248, 0.35);
  font-weight: 600;
}

/* 可交互的声学 EQ 胶囊 (点击直接切换 AirPods 调音) */
#audioEqTag {
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

#audioEqTag:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

#audioEqTag:active {
  transform: scale(0.95);
}

/* ==================== 页面 2：沉浸式全屏歌词 ==================== */
.lyrics-full-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.lyrics-track-info {
  text-align: center;
  margin-bottom: 24px;
}

.lyrics-track-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.lyrics-track-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.lyrics-scroll-wrapper {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  position: relative;
  /* 关键：提供上下适度动态弹性留白，确保从第一行到最后一行，当前句永远稳定居中在屏幕正中央黄金分割线！ */
  padding-top: calc(36vh - 50px);
  padding-bottom: calc(40vh - 50px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  scroll-behavior: smooth;
}

.lyrics-scroll-wrapper::-webkit-scrollbar {
  width: 4px;
}
.lyrics-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.lyrics-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

/* 纵轴线居中对齐模式 (默认：绝对严格中轴线) */
.lyrics-row {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.lr-text {
  display: inline-block;
  text-align: center;
  font-family: var(--font-lyrics);
  font-size: calc(1.35rem * var(--lyrics-font-scale, 1));
  font-weight: var(--lyrics-font-weight, 500);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.28);
  filter: blur(0.35px);
  cursor: pointer;
  max-width: 100%;
  word-break: break-word;
  transform-origin: center center;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.lyrics-row:hover .lr-text {
  color: rgba(255, 255, 255, 0.75);
  filter: blur(0px);
}

.lyrics-row.active .lr-text {
  color: #ffffff;
  font-family: var(--font-lyrics);
  font-size: calc(2.1rem * var(--lyrics-font-scale, 1));
  font-weight: calc(var(--lyrics-font-weight, 500) + 200);
  filter: blur(0px);
  text-shadow: 0 0 25px var(--primary-glow), 0 0 50px rgba(6, 182, 212, 0.35);
  transform: scale(1.05);
}

/* 按钮绝对脱离文档流定位在右侧边缘，100% 保证歌词中轴线不发生任何微米级偏移！ */
.lr-pin-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

.lyrics-row:hover .lr-pin-btn {
  opacity: 0.9;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.lr-pin-btn:hover {
  background: rgba(245, 158, 11, 0.35);
  color: #fff;
  opacity: 1;
}

/* 纵轴线靠左对齐模式 (Apple Music 风格：左侧统一垂直基准轴线) */
.lyrics-content.axis-left {
  align-items: flex-start;
  padding-left: calc(50% - 320px);
}

.lyrics-content.axis-left .lyrics-row {
  justify-content: flex-start;
  padding: 8px 60px 8px 18px;
  border-left: 3px solid transparent;
}

.lyrics-content.axis-left .lyrics-row.active {
  border-left-color: var(--secondary-accent);
}

.lyrics-content.axis-left .lr-text {
  text-align: left;
  transform-origin: left center;
}

/* ==================== 页面 3：全屏音频可视化 ==================== */
.visualizer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(20, 24, 45, 0.45) 0%, rgba(10, 11, 20, 0.95) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
}

.visualizer-toolbar {
  position: absolute;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 18, 30, 0.72);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.viz-modes-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.viz-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.viz-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.viz-mode-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(6, 182, 212, 0.7));
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.viz-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLiveDot 1.8s infinite ease-in-out;
}

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

.full-visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viz-footer-info {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(12, 14, 24, 0.55);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  pointer-events: none;
  white-space: nowrap;
}

.viz-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.viz-info-item .label {
  color: rgba(255, 255, 255, 0.4);
}

.viz-info-item .val {
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  min-width: 32px;
}

/* ==================== 页面 4：我喜欢的音乐与精选歌单 ==================== */
.favorites-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 18px;
  box-sizing: border-box;
  overflow: hidden;
}

/* 顶部精美歌单 Hero */
.favorites-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(139, 92, 246, 0.1), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(244, 63, 94, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.fav-hero-cover-wrap {
  flex-shrink: 0;
}

.fav-hero-cover {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f43f5e, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
  transition: transform 0.3s ease;
}

.fav-hero-cover:hover {
  transform: scale(1.04);
}

.fav-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.fav-hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fav-hero-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.fav-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.fav-meta-dot {
  opacity: 0.5;
}

.fav-meta-sub {
  color: var(--text-tertiary);
}

.fav-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.fav-play-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
  transition: all 0.25s ease;
}

.fav-play-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.45);
}

.fav-import-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-import-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* 子选项卡条 */
.fav-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fav-tab-pill {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-tab-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.fav-tab-pill.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fff;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.2);
}

/* 列表容器 */
.favorites-list-wrapper {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.favorites-songs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;
}

/* 歌曲行 */
.fav-song-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-song-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.fav-song-row.playing {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
}

.fav-song-idx {
  width: 26px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
  font-family: var(--font-mono, monospace);
  flex-shrink: 0;
}

.fav-song-row.playing .fav-song-idx {
  color: #f43f5e;
}

.fav-song-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e1b2e;
}

.fav-song-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fav-song-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-song-row.playing .fav-song-title {
  color: #fca5a5;
}

.fav-song-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.fav-song-time {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono, monospace);
}

.fav-row-heart-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.fav-row-heart-btn:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

.fav-row-heart-btn.liked {
  color: #f43f5e;
}

/* 空状态卡片 */
.fav-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  text-align: center;
  color: var(--text-tertiary);
}

.fav-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f43f5e;
  margin-bottom: 6px;
}

.fav-empty-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.fav-empty-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  max-width: 320px;
}

/* 正在播放界面中的 Apple 极简红心收藏按钮 */
.meta-fav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.meta-fav-btn:hover {
  background: rgba(250, 88, 106, 0.15);
  border-color: rgba(250, 88, 106, 0.35);
  color: #fa586a;
  transform: scale(1.08);
}

.meta-fav-btn.liked {
  background: rgba(250, 88, 106, 0.2);
  border-color: rgba(250, 88, 106, 0.5);
  color: #fa586a;
  box-shadow: 0 0 16px rgba(250, 88, 106, 0.4);
}

.meta-fav-btn.liked svg,
.fav-row-heart-btn.liked svg,
.btn-icon.liked svg {
  fill: currentColor;
}

/* 📱 画中画与灵动歌词快捷按钮样式 */
.pip-quick-btn {
  margin-left: 6px;
  color: var(--text-secondary);
}

.pip-quick-btn:hover {
  background: rgba(6, 182, 212, 0.15) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  color: #38bdf8 !important;
}

.pip-quick-btn.active,
#navPipBtn.active,
#pipLyricsBtn.active {
  background: rgba(6, 182, 212, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5) !important;
}

#navOledBtn.active {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5) !important;
}

/* 📱 灵动岛同款：悬浮透明歌词胶囊 */
.floating-island-lyrics {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  z-index: 99999;
  background: rgba(10, 11, 20, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 280px;
  max-width: min(92vw, 480px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(6, 182, 212, 0.25);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.floating-island-lyrics.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-island-lyrics:active {
  cursor: grabbing;
}

.island-notch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
  flex-shrink: 0;
  animation: pulseDot 2s infinite ease-in-out;
}

.island-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  gap: 2px;
}

.island-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.island-music-note {
  font-size: 0.8rem;
  animation: pulseScale 1.8s infinite ease-in-out;
}

.island-track-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.island-lyric-content {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.island-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.island-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==================== 页面 5：在线云端乐库 ==================== */
.online-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
  box-sizing: border-box;
}

.online-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.online-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 16px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.online-search-box:focus-within {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.online-search-box svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.online-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
}

.online-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.online-search-btn {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.online-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.custom-sheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.custom-sheet-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.online-charts-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.charts-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 4px;
}

.chart-pill-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chart-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.chart-pill-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(6, 182, 212, 0.8));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.online-list-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(15, 17, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.online-list-header {
  display: grid;
  grid-template-columns: 50px 1fr 220px 140px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.online-songs-container {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.online-songs-container::-webkit-scrollbar {
  width: 5px;
}
.online-songs-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.online-song-row {
  display: grid;
  grid-template-columns: 50px 1fr 220px 140px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.online-song-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.online-song-row.playing {
  background: rgba(56, 189, 248, 0.12);
  border-left: 3px solid #38bdf8;
}

.os-idx {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono, monospace);
  padding-left: 6px;
}

.os-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.os-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.os-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.os-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-tag {
  font-size: 0.7rem;
  color: #38bdf8;
  display: inline-block;
  margin-top: 2px;
}

.os-artist {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.os-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.os-play-btn:hover {
  background: #38bdf8;
  color: #0b0f19;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.os-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.os-add-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.online-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 侧边播放列表遮罩层与抽屉 ==================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.playlist-drawer {
  position: fixed;
  top: 75px;
  right: -380px;
  width: 360px;
  bottom: 96px;
  background: rgba(15, 17, 28, 0.88);
  backdrop-filter: blur(28px);
  border-left: 1px solid var(--surface-border);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.5);
  z-index: 25;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.playlist-drawer.open {
  right: 0;
}

.drawer-drag-handle {
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  margin: 10px auto 0 auto;
  cursor: grab;
  display: block;
}

/* ==================== 🎚️ iPhone 长按黑胶唱片 (Haptic Touch) 快捷捷径菜单 ==================== */
.vinyl-wrapper,
.vinyl-wrapper img,
.vinyl-disc,
.vinyl-cover-art,
#currentCover {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

.vinyl-disc,
#currentCover {
  pointer-events: none;
}

.vinyl-wrapper.pressed {
  transform: scale(0.93) !important;
  filter: brightness(0.9);
}

.vinyl-context-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}

.vinyl-context-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.vinyl-context-menu {
  width: 100%;
  max-width: 320px;
  background: rgba(26, 29, 46, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: scale(0.88);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vinyl-context-menu-overlay.open .vinyl-context-menu {
  transform: scale(1);
}

.vmenu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 10px 6px;
}

.vmenu-cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

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

.vmenu-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmenu-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.vmenu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0 6px 0;
}

.vmenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.vmenu-item:hover,
.vmenu-item:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.vmenu-item svg {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.vmenu-item:hover svg {
  color: #a78bfa;
}

.vmenu-item.liked svg {
  color: #f43f5e;
  fill: #f43f5e;
}

/* ==================== 📱 灵动悬浮画中画歌词按钮 ==================== */
#pipLyricsBtn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

#pipLyricsBtn:hover,
#pipLyricsBtn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(139, 92, 246, 0.4));
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

/* ==================== 🌙 OLED 极夜纯黑极致省电模式 ==================== */
body.oled-pure-black {
  background: #000000 !important;
}

body.oled-pure-black .ambient-bg {
  display: none !important;
}

body.oled-pure-black .ambient-overlay {
  background: #000000 !important;
  opacity: 1 !important;
}

body.oled-pure-black .player-app {
  background: #000000 !important;
}

body.oled-pure-black .player-bar {
  background: rgba(0, 0, 0, 0.96) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.oled-pure-black .playlist-drawer {
  background: #000000 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.oled-pure-black .vinyl-context-menu {
  background: #050508 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.oled-pure-black .favorites-hero {
  background: #060608 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--surface-border);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.text-btn:hover {
  color: #ef4444;
}

.btn-icon-sm {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playlist-items::-webkit-scrollbar {
  width: 4px;
}
.playlist-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: transparent;
}

.playlist-item:hover {
  background: var(--surface-hover);
}

.playlist-item.active {
  background: var(--surface-active);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pl-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.pl-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item.active .pl-title {
  color: #c084fc;
  font-weight: 600;
}

.pl-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.pl-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drop-hint-box {
  margin: 12px;
  padding: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.drop-hint-box.dragover {
  border-color: var(--primary-accent);
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
}

/* ==================== 底部控制栏 ==================== */
.player-bar {
  height: 96px;
  background: rgba(12, 14, 24, 0.85);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--surface-border);
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  padding: 0 28px;
  z-index: 30;
}

/* 左侧曲目信息 */
.bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mini-cover-wrap {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.bar-track-info {
  flex: 1;
  min-width: 0;
}

.bar-title {
  font-size: 0.96rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.bar-artist {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heart-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
}
.heart-btn.liked {
  color: #f43f5e;
}
.heart-btn.liked svg {
  fill: #f43f5e;
}

/* 中间控制按钮 & 进度条 */
.bar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.bar-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ctrl-btn-sub {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.ctrl-btn-sub:hover {
  color: #fff;
  transform: scale(1.1);
}

.ctrl-btn-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: var(--transition-smooth);
}

.ctrl-btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.6);
}

.ctrl-btn-play:active {
  transform: scale(0.96);
}

.ctrl-btn-text {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ctrl-btn-text:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* 进度条轨道 */
.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.time-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.progress-bar-wrap {
  position: relative;
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar-wrap:hover {
  height: 8px;
}

.progress-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  width: 0%;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #a855f7, #06b6d4);
  border-radius: 3px;
  width: 0%;
  box-shadow: 0 0 10px var(--primary-glow);
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.progress-bar-wrap:hover .progress-handle {
  transform: translate(-50%, -50%) scale(1);
}

.hover-time-tooltip {
  position: absolute;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.progress-bar-wrap:hover .hover-time-tooltip {
  opacity: 1;
}

/* 右侧音量与列表入口 */
.bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider-wrap {
  position: relative;
  width: 85px;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  cursor: pointer;
}

.volume-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 75%;
  background: linear-gradient(90deg, #a855f7, #38bdf8);
  border-radius: 3px;
}

.volume-handle {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.volume-slider-wrap:hover .volume-handle {
  transform: translate(-50%, -50%) scale(1);
}

.playlist-toggle-btn {
  position: relative;
}

.playlist-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--pink-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}

.hidden {
  display: none !important;
}

/* ==================== iPad / 平板端专属全场景响应式适配 (769px ~ 1200px) ==================== */
@media (max-width: 1200px) {
  /* 基础主视口容器防溢出 */
  .player-app {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  /* 顶部导航栏紧凑排布：防止 VIP、导入等按钮在窄屏下被挤出视口或换行截断 */
  .app-header {
    padding: 12px 20px !important;
    gap: 12px !important;
  }

  .brand-logo {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-name {
    font-size: 1.15rem !important;
  }

  .nav-tab {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
  }

  .header-actions {
    gap: 8px !important;
  }

  .import-btn-main {
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
  }

  .vip-login-btn {
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
  }

  .theme-icon-btn {
    width: 34px !important;
    height: 34px !important;
  }

  /* 核心修复 1：iPad 沉浸式歌词彻底消除底部拥挤，回归中轴黄金居中 */
  .lyrics-full-container {
    max-width: 860px !important;
    padding: 8px 16px !important;
    height: 100% !important;
  }

  /* 隐藏 iPad / 触屏端笨重的桌面键盘校准快捷键，腾出宝贵的纵向黄金空间 */
  .lyrics-quick-actions {
    display: none !important;
  }

  /* 精简歌曲标题间距，杜绝顶部无谓留白占用 */
  .lyrics-track-info {
    margin-bottom: 8px !important;
  }

  .lyrics-track-info h2 {
    font-size: 1.5rem !important;
    margin-bottom: 2px !important;
  }

  .lyrics-track-info p {
    font-size: 0.9rem !important;
  }

  /* 解决歌词被挤在底部的关键：将 padding-top 优化为黄金 22vh，歌词首句自然优雅起步 */
  .lyrics-scroll-wrapper {
    flex: 1 !important;
    padding-top: 22vh !important;
    padding-bottom: 34vh !important;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%) !important;
  }

  .lyrics-content {
    gap: 18px !important;
  }

  .lyrics-row {
    padding: 8px 24px !important;
    max-width: 86% !important;
  }

  .lr-text {
    font-size: 1.35rem !important;
    line-height: 1.6 !important;
  }

  .lyrics-row.active .lr-text {
    font-size: 1.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.45) !important;
    transform: scale(1.04) !important;
  }

  /* 核心修复 2：主播放器页面防遮挡与尺度优化 */
  .view-panel {
    padding: 16px 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .player-main-grid {
    gap: 32px !important;
    max-width: 920px !important;
  }

  .turntable-container {
    transform: scale(0.85) !important;
    transform-origin: center center;
  }

  .song-title {
    font-size: 1.6rem !important;
  }

  .compact-lyrics-box {
    max-width: 380px !important;
  }

  /* 核心修复 3：底部控制栏适配 iPad 与 iOS Safe-Area 安全区域，防止遮挡手势条与溢出 */
  .player-bar {
    height: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 20px max(10px, env(safe-area-inset-bottom, 10px)) 20px !important;
    grid-template-columns: 220px 1fr 200px !important;
    box-sizing: border-box !important;
    z-index: 50 !important;
  }

  .bar-left {
    display: flex !important;
    max-width: 220px !important;
    gap: 10px !important;
  }

  .mini-cover-wrap {
    width: 48px !important;
    height: 48px !important;
  }

  .bar-title {
    font-size: 0.9rem !important;
    max-width: 130px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .bar-artist {
    font-size: 0.75rem !important;
    max-width: 130px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .bar-center {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto;
  }

  .progress-container {
    width: 100% !important;
  }

  .bar-buttons {
    gap: 12px !important;
  }

  .bar-right {
    gap: 8px !important;
  }

  .volume-container {
    width: 90px !important;
  }

  /* 云端乐库平板排版 */
  .online-list-header {
    grid-template-columns: 40px 1fr 180px 120px !important;
    padding: 10px 14px !important;
  }

  .online-song-row {
    grid-template-columns: 40px 1fr 180px 120px !important;
    padding: 8px 12px !important;
  }

  .online-songs-container {
    padding-bottom: 24px !important;
  }

  /* 侧边播放抽屉在平板层叠优化 */
  .playlist-drawer {
    top: 60px !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 60 !important;
  }
}

/* iPad 竖屏专用排版修正 (宽 <= 960px 且竖屏或窄屏平板) */
@media (max-width: 960px) and (min-width: 769px) {
  .player-main-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center !important;
    padding-bottom: 20px !important;
  }

  .turntable-container {
    transform: scale(0.78) !important;
    margin: 0 auto !important;
  }

  .song-meta-panel {
    align-items: center !important;
    text-align: center !important;
  }

  .audio-tags {
    justify-content: center !important;
  }

  .quick-eq-bar {
    justify-content: center !important;
  }

  .player-bar {
    grid-template-columns: 180px 1fr 140px !important;
    padding: 0 14px max(8px, env(safe-area-inset-bottom, 8px)) 14px !important;
  }

  .volume-container {
    display: none !important; /* 平板竖屏时用系统物理音量键，保留最清晰的歌单与切换键 */
  }
}



/* 全屏文件拖拽悬停浮层 */
.full-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 22, 0.88);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.full-drop-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drop-modal-card {
  background: rgba(24, 27, 44, 0.8);
  border: 2px dashed rgba(139, 92, 246, 0.7);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-glow);
  border-radius: var(--radius-xl);
  padding: 50px 70px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.full-drop-overlay.active .drop-modal-card {
  transform: scale(1);
}

.drop-icon-anim {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px var(--primary-glow);
  animation: bounceDrop 1.6s infinite ease-in-out;
}

@keyframes bounceDrop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.drop-modal-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.drop-modal-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.format-chips {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.format-chips span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* 载入歌词按钮与歌词页快捷操作 */
.add-lrc-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.add-lrc-btn:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.lyrics-quick-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lyrics-upload-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--secondary-accent);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lyrics-upload-tag:hover {
  background: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 12px var(--secondary-glow);
  color: #fff;
}

/* 歌词时序微调控制器 */
.lyrics-offset-controller {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

.offset-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-right: 2px;
}

.offset-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.offset-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--primary-accent);
  color: #fff;
}

.offset-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.offset-btn-reset {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.offset-btn-reset:hover {
  color: #ef4444;
}

/* 快捷操作胶囊按钮 */
.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.action-pill-btn.accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
  border-color: rgba(139, 92, 246, 0.45);
  color: #c084fc;
}

.action-pill-btn.accent:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
  color: #fff;
  box-shadow: 0 0 14px var(--primary-glow);
}

.action-pill-btn.highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

.action-pill-btn.highlight:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(239, 68, 68, 0.35));
  color: #fff;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

/* 云端搜词弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 10, 18, 0.78);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: rgba(22, 25, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px var(--primary-glow);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-border);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-box {
  display: flex;
  gap: 10px;
}

.search-input-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.search-input-box input:focus {
  border-color: var(--primary-accent);
}

.primary-search-btn {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  border: none;
  color: #fff;
  padding: 0 20px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.primary-search-btn:hover {
  box-shadow: 0 4px 15px var(--primary-glow);
  transform: translateY(-1px);
}

.search-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.search-results-list::-webkit-scrollbar {
  width: 4px;
}
.search-results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

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

.sr-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-badge {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  margin-left: 12px;
  white-space: nowrap;
}

.sr-badge.synced {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sr-badge.plain {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.search-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 浮动 Toast 提示条 */
.toast-tip {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 20, 32, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  z-index: 10001;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-tip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== VIP 会员特权与双引擎保底样式 ==================== */
.vip-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.vip-login-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(234, 88, 12, 0.35));
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.vip-login-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.vip-modal-card {
  max-width: 620px;
}

.vip-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
}

.vip-feature-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.vfc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vfc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.vfc-badge {
  background: #f59e0b;
  color: #0b0f19;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.vfc-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

/* Switch 开关组件 */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider {
  background-color: #10b981;
}

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

/* VIP Cookie 凭证区 */
.vip-cookie-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.vc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
}

.vc-status {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono, monospace);
}

.vc-status.bound {
  color: #10b981;
  font-weight: 600;
}

.vip-cookie-box input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-mono, monospace);
  outline: none;
  transition: all 0.2s ease;
}

.vip-cookie-box input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.vc-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.vip-save-btn {
  flex: 1;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #0b0f19;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-save-btn:hover {
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

.vip-clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* 提取指南区 */
.vip-guide-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.vg-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.vg-visual-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.v-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #38bdf8;
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   移动端极致自适应体验与全屏交互优化 (Mobile Responsive Adaptation)
   ========================================================================== */

@media (max-width: 768px) {
  /* 基础容器与视口修正 */
  .player-app {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  /* 顶部导航栏重构为两行式紧凑移动端布局，彻底适配 iOS 灵动岛 / 刘海 Safe-Area，彻底消除磨砂模糊 */
  .app-header {
    display: flex !important;
    flex-wrap: wrap !important;
    padding-top: calc(max(62px, env(safe-area-inset-top, 62px)) + 14px) !important;
    padding-bottom: 6px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 8px !important;
    height: auto !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
  }

  .brand {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .brand-logo {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }

  .brand-logo svg {
    width: 14px !important;
    height: 14px !important;
  }

  .brand-name {
    font-size: 1rem !important;
  }

  /* 移动端将 4 个主要视图选项卡独立为顶栏第二行通栏居中，彻底消除任何拥挤和遮挡 */
  .header-nav {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 3px !important;
    gap: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius-full) !important;
    box-sizing: border-box !important;
  }

  .header-nav::-webkit-scrollbar {
    display: none !important;
  }

  .nav-tab {
    flex: 1 !important;
    padding: 6px 0 !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    border-radius: var(--radius-full) !important;
  }

  .nav-tab svg {
    display: none !important; /* 手机端标签文字已足够清晰，隐藏图标防换行 */
  }

  /* 手机端隐藏律动频谱，保留展示我的收藏 */
  .nav-tab[data-view="visualizer"],
  .nav-tab-visualizer {
    display: none !important;
  }

  .nav-tab[data-view="favorites"],
  .nav-tab-favorites {
    display: block !important;
    flex: 1 !important;
  }

  .header-actions {
    order: 2 !important;
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
  }

  .import-btn-main span,
  .import-btn-main .chevron-arrow {
    display: none;
  }

  .import-btn-main {
    padding: 6px 8px;
    border-radius: var(--radius-full);
  }

  .vip-login-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .vip-login-btn span {
    display: none !important;
  }
  .vip-login-btn {
    padding: 6px 8px !important;
    border-radius: var(--radius-full) !important;
  }

  .theme-icon-btn {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
  }

  #lockGateBtn {
    display: none !important; /* 手机端精简隐藏锁屏按钮，腾出空间留给个性化调色盘按钮 */
  }

  #openAppearanceModalBtn {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  /* 中间主体内容区：充分伸展，完美撑满视口，消除底部空档 */
  .view-panel {
    padding: 4px 12px 6px 12px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100% !important;
  }

  #playerView {
    padding: 2px 14px 6px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* 播放器主视图：精细适配 iPhone 黄金视口，紧凑饱满一屏尽览全部功能，彻底消除底部空洞 */
  .player-main-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 4px 0 8px 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  .turntable-container {
    transform: none !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .vinyl-wrapper {
    width: 226px !important;
    height: 226px !important;
    margin: 0 auto !important;
  }

  .vinyl-disc {
    width: 226px !important;
    height: 226px !important;
  }

  .vinyl-center-cover {
    width: 96px !important;
    height: 96px !important;
  }

  .tonearm {
    width: 48px !important;
    height: 110px !important;
    top: -8px !important;
    right: 6px !important;
  }

  .mini-visualizer {
    width: 210px !important;
    height: 24px !important;
    margin: 6px auto 0 auto !important;
  }

  .song-meta-panel {
    text-align: left !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-evenly !important;
  }

  .song-meta-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 4px !important;
    margin-bottom: 4px !important;
  }

  .song-title-group {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
    padding-right: 12px !important;
  }

  .song-title {
    font-size: 1.48rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .song-artist-wrap {
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .song-artist {
    font-size: 0.88rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0 !important;
  }

  .meta-fav-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
  }

  .audio-tags {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
    padding: 0 4px !important;
  }

  .tag-pill {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
  }

  .compact-lyrics-box {
    width: 100% !important;
    max-width: 380px !important;
    min-height: 56px !important;
    padding: 8px 14px 8px 22px !important;
    margin: 4px auto !important;
    gap: 3px !important;
    border-radius: var(--radius-md) !important;
  }

  .compact-lyrics-box::before {
    left: 10px !important;
    top: 8px !important;
    bottom: 8px !important;
    width: 2.5px !important;
  }

  .lyrics-line.current {
    font-size: 0.95rem !important;
    color: #fff !important;
  }

  .lyrics-line.prev,
  .lyrics-line.next {
    font-size: 0.78rem !important;
  }

  /* 音效预设：单行横向丝滑滑动，主打极简，绝不折行 */
  .quick-eq-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 380px !important;
    padding: 4px 4px !important;
    margin: 4px auto 2px auto !important;
  }

  .quick-eq-bar::-webkit-scrollbar {
    display: none !important;
  }

  .eq-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 999px !important;
  }

  /* 我喜欢的音乐与歌单手机端适配 */
  .favorites-container {
    gap: 12px !important;
    padding: 0 4px !important;
  }

  .favorites-hero {
    padding: 14px 16px !important;
    gap: 14px !important;
    border-radius: var(--radius-lg) !important;
  }

  .fav-hero-cover {
    width: 64px !important;
    height: 64px !important;
    border-radius: 12px !important;
  }

  .fav-hero-cover svg {
    width: 26px !important;
    height: 26px !important;
  }

  .fav-hero-title {
    font-size: 1.25rem !important;
  }

  .fav-hero-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .fav-play-all-btn {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
  }

  .fav-import-btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }

  .fav-tabs-bar {
    gap: 6px !important;
  }

  .fav-tab-pill {
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
  }

  /* 云端乐库手机端极简高级布局 (彻底告别臃肿堆叠) */
  .online-container {
    gap: 10px !important;
  }

  .online-header-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .online-search-box {
    flex: 1 !important;
    padding: 6px 12px !important;
  }

  .online-search-box input {
    font-size: 0.85rem !important;
  }

  .online-search-btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }

  .custom-sheet-btn {
    width: auto !important;
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
    flex-shrink: 0 !important;
  }

  .custom-sheet-btn span {
    font-size: 0.75rem !important;
  }

  .online-charts-pills {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 2px 0 6px 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .online-charts-pills::-webkit-scrollbar {
    display: none !important;
  }

  .chart-pill-btn {
    flex-shrink: 0 !important;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
  }

  .online-list-header {
    display: none !important; /* 移动端隐藏冗余表头 */
  }

  .online-list-wrapper {
    flex: 1 !important;
    border-radius: var(--radius-md) !important;
  }

  .online-song-row {
    grid-template-columns: 24px 1fr 40px !important;
    padding: 6px 8px !important;
    gap: 8px !important;
  }

  .os-idx {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.28) !important;
    text-align: center !important;
  }

  .os-thumb {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
  }

  .os-artist {
    display: none !important;
  }

  .os-title-wrap {
    min-width: 0 !important;
    gap: 8px !important;
  }

  .os-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  .os-name {
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .os-sub-artist {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .os-actions .os-play-btn span {
    display: none !important;
  }

  .os-actions .os-play-btn {
    padding: 6px !important;
    border-radius: 50% !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
  }

  .os-actions .os-add-btn {
    display: none !important;
  }

  /* 底部播放控制条重排 (标准现代手机底栏体验，完美避让 iPhone Home 条) */
  .player-bar {
    height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 16px max(8px, env(safe-area-inset-bottom, 0px)) 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(10, 12, 22, 0.96) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .bar-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: 58% !important;
    overflow: hidden !important;
  }

  .mini-cover-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .bar-title {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .bar-artist {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .heart-btn {
    display: none !important;
  }

  .bar-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    margin: 0 !important;
  }

  .bar-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #modeBtn,
  #speedBtn {
    display: none !important; /* 手机底栏精简 */
  }

  #prevBtn, #nextBtn {
    display: inline-flex !important;
    padding: 4px !important;
  }

  #prevBtn svg,
  #nextBtn svg {
    width: 22px !important;
    height: 22px !important;
  }

  .ctrl-btn-play {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
  }

  .ctrl-btn-play svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* 进度条悬浮在底栏最顶边缘 (现代播放器标准交互) */
  .progress-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 3px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .progress-container .time-label {
    display: none !important;
  }

  .progress-bar-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    border-radius: 0 !important;
  }

  .progress-fill,
  .progress-buffer,
  .progress-bg {
    border-radius: 0 !important;
  }

  /* 手机端保留播放列表抽屉开关，隐藏冗余的音量滑块 */
  .bar-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: 6px !important;
  }

  .volume-container {
    display: none !important; /* 手机端使用物理按键控制音量 */
  }

  .playlist-toggle-btn {
    display: inline-flex !important;
    padding: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .playlist-toggle-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .playlist-badge {
    top: -4px !important;
    right: -4px !important;
    font-size: 0.65rem !important;
  }

  /* 侧边歌单抽屉与遮罩层在移动端深度适配 (解决遮罩点击、手势滑动与安全区域) */
  .drawer-backdrop {
    z-index: 9998 !important;
    background: rgba(0, 0, 0, 0.65) !important;
  }

  .playlist-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 86% !important;
    max-width: 360px !important;
    height: 100% !important;
    padding-top: max(16px, env(safe-area-inset-top, 0px)) !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    transform: translateX(105%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 9999 !important;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85) !important;
    border-top-left-radius: 24px !important;
    border-bottom-left-radius: 24px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(16, 18, 32, 0.96) !important;
    backdrop-filter: blur(36px) !important;
    -webkit-backdrop-filter: blur(36px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .playlist-drawer.open {
    transform: translateX(0) !important;
  }

  .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
  }

  #closeDrawerBtn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    cursor: pointer !important;
  }

  #closeDrawerBtn:active {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(0.92) !important;
  }

  /* 模态框手机全宽 */
  .modal-card {
    width: 95%;
    max-height: 88vh;
    padding: 10px;
  }

  /* 沉浸歌词界面在移动端的极简纯粹美感 (类似 Apple Music 手机全屏歌词) */
  .lyrics-full-container {
    padding: 10px 0 !important;
  }

  .lyrics-track-info {
    margin-bottom: 12px !important;
  }

  .lyrics-track-info h2 {
    font-size: 1.3rem !important;
    margin-bottom: 4px !important;
  }

  .lyrics-track-info p {
    font-size: 0.85rem !important;
  }

  /* 隐藏手机端繁杂的键盘快捷键校准工具栏，释放整个屏幕给纯净歌词 */
  .lyrics-quick-actions {
    display: none !important;
  }

  /* 歌词主字体大小适配手机竖屏，避免巨型字体撑出画面 */
  .lyrics-content {
    gap: 16px !important;
  }

  .lyrics-row {
    padding: 6px 16px !important;
  }

  .lr-text {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
  }

  .lyrics-row.active .lr-text {
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    transform: scale(1.03) !important;
  }

  /* 律动频谱界面在移动端的紧凑饱满全屏排列 (全景沉浸，无黑边无空洞) */
  #visualizerView {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
  }

  .visualizer-container {
    height: 100% !important;
    width: 100% !important;
    flex: 1 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .visualizer-toolbar {
    top: 10px !important;
    padding: 4px 8px !important;
    max-width: 92% !important;
  }

  .viz-modes-group {
    gap: 4px !important;
  }

  .viz-mode-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  .viz-mode-btn svg {
    display: none !important;
  }

  .viz-status-badge {
    display: none !important; /* 手机端隐藏冗余的 FFT 采样参数文字 */
  }

  .viz-footer-info {
    display: none !important; /* 手机端彻底移除遮挡画布的参数文字，保持全景纯净视觉 */
  }
}

/* ==================== 私人专属访问口令保护屏 ==================== */
.access-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.access-gate-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.access-gate-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 34px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(139, 92, 246, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: gateCardPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gateCardPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gate-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

.access-gate-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.gate-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 24px;
  padding: 0 6px;
}

.gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate-input-wrapper {
  position: relative;
  width: 100%;
}

.gate-input {
  width: 100%;
  padding: 15px 46px 15px 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.gate-input:focus {
  border-color: var(--secondary-accent, #06b6d4);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
  background: rgba(0, 0, 0, 0.65);
}

.gate-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-error-msg {
  font-size: 0.82rem;
  color: #f87171;
  min-height: 18px;
  margin-top: -4px;
  transition: all 0.2s;
}

.gate-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  border: none;
  border-radius: 16px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.5);
}

.gate-submit-btn:active {
  transform: scale(0.98);
}

.gate-footer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

@keyframes shakeGate {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.access-gate-card.shake {
  animation: shakeGate 0.4s ease;
}

/* ========================================================
   Apple Music 风格 艺人专属主页 (Artist Profile View)
   ======================================================== */

#artistView {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.artist-page-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  padding-bottom: 90px;
}

/* 顶部粘性玻璃导航 */
.artist-nav-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 30;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.artist-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.artist-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.artist-nav-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.4px;
}

.artist-nav-spacer {
  width: 60px;
}

/* 艺人大 Hero 视觉横幅 (Apple Music 沉浸式全屏海报) */
.artist-hero-section {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 40px 48px;
  overflow: hidden;
}

.artist-hero-bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.75);
  transform: scale(1.04);
  transition: background-image 0.5s ease-in-out;
  z-index: 1;
}

.artist-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 18, 0.15) 0%,
    rgba(10, 10, 18, 0.6) 50%,
    rgba(10, 10, 18, 0.98) 100%
  );
  z-index: 2;
}

.artist-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.artist-hero-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: none;
}

.artist-hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artist-hero-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary-accent);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
}

.artist-hero-name {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.artist-hero-stats {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.artist-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.artist-action-btn.primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fa2d48, #fa586a);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(250, 45, 72, 0.4);
  transition: var(--transition-smooth);
}

.artist-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 45, 72, 0.6);
}

.artist-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
}

.artist-circle-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.06);
}

.artist-circle-btn.active {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.2);
}

/* 艺人主页内容区 */
.artist-body-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
}

.artist-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--text-secondary);
}

.artist-section-group {
  margin-bottom: 38px;
}

.artist-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.artist-sec-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.artist-sec-more-btn {
  background: none;
  border: none;
  color: #fa586a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.artist-sec-more-btn:hover {
  color: #fff;
}

/* 最新发布卡片 (Apple Music 最新专辑/单曲) */
.artist-latest-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.artist-latest-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.alc-artwork-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.alc-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alc-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alc-subtag {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fa586a;
}

.alc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alc-meta {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.alc-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.alc-play-btn:hover {
  background: #fa2d48;
  border-color: #fa2d48;
  transform: scale(1.1);
}

/* 歌曲排行 (Top Songs 列表) */
.artist-songs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artist-song-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.artist-song-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.as-idx {
  width: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

.as-cover-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 14px 0 8px;
  flex-shrink: 0;
  position: relative;
}

.as-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.as-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}

.as-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.as-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.as-btn.play-btn:hover {
  background: #fa2d48;
  border-color: #fa2d48;
}

/* 精选专辑与单曲横向滚动 */
.artist-albums-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.artist-albums-scroll::-webkit-scrollbar {
  height: 6px;
}

.artist-albums-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.artist-album-card {
  width: 156px;
  flex-shrink: 0;
  cursor: pointer;
  scroll-snap-align: start;
  transition: var(--transition-smooth);
}

.artist-album-card:hover {
  transform: translateY(-4px);
}

.aac-artwork-wrap {
  width: 156px;
  height: 156px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.aac-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.artist-album-card:hover .aac-artwork {
  transform: scale(1.05);
}

.aac-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.aac-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 艺人简介弹窗 */
.artist-bio-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.artist-bio-modal.active {
  opacity: 1;
  visibility: visible;
}

.artist-bio-card {
  width: 100%;
  max-width: 580px;
  max-height: 80vh;
  background: rgba(22, 24, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.artist-bio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.artist-bio-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.artist-bio-body {
  padding: 22px 24px;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
}

/* 搜索结果顶部 Apple Music 风格 艺人卡片 */
.artist-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(250, 45, 72, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(250, 45, 72, 0.25);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.artist-search-card:hover {
  background: linear-gradient(135deg, rgba(250, 45, 72, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(250, 45, 72, 0.45);
  transform: translateY(-2px);
}

.asc-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.asc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.asc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.asc-tag {
  font-size: 0.78rem;
  color: #fa586a;
  font-weight: 600;
}

.asc-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  font-weight: 500;
}

/* 移动端 / iPad 适配 */
@media (max-width: 768px) {
  .artist-hero-section {
    min-height: 280px;
    padding: 24px 20px;
  }
  .artist-hero-name {
    font-size: 2rem;
  }
  .artist-body-content {
    padding: 16px 16px 80px 16px;
  }
  .artist-album-card, .aac-artwork-wrap {
    width: 128px;
    height: 128px;
  }
  .artist-album-card {
    height: auto;
  }
}

/* ========================================================
   个性化外观与字体定制 (Appearance & Typography Customizer)
   ======================================================== */
#appearanceModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
}

#appearanceModal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
}

#appearanceModal.active .appearance-modal-card {
  transform: scale(1) !important;
  visibility: visible !important;
}

.appearance-modal-card {
  width: 90%;
  max-width: 660px;
  max-height: 85vh;
  min-height: 0 !important;
  background: rgba(18, 20, 34, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.appearance-tabs {
  display: flex;
  gap: 10px;
  padding: 6px 24px 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.app-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.app-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.app-tab-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.appearance-modal-body {
  padding: 20px 24px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.custom-sec-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.bg-mode-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bg-mode-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bg-mode-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.bg-mode-chip.active {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
  font-size: 0.8rem;
}

.preset-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.preset-card.active {
  border-color: var(--primary-accent);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.preset-preview {
  width: 100%;
  height: 50px;
  border-radius: 6px;
}

.aurora-grad {
  background: radial-gradient(circle at 25% 30%, rgba(139, 92, 246, 0.9), transparent 60%),
              radial-gradient(circle at 75% 65%, rgba(6, 182, 212, 0.9), transparent 60%),
              radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.8), transparent 60%), #0a0a12;
}

.neon-grad {
  background: radial-gradient(circle at 20% 40%, rgba(244, 63, 94, 0.9), transparent 60%),
              radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.9), transparent 60%),
              radial-gradient(circle at 50% 90%, rgba(251, 146, 60, 0.7), transparent 60%), #0d091a;
}

.emerald-grad {
  background: radial-gradient(circle at 30% 25%, rgba(16, 185, 129, 0.9), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.9), transparent 60%),
              radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.6), transparent 60%), #061314;
}

.sunset-grad {
  background: radial-gradient(circle at 25% 40%, rgba(249, 115, 22, 0.9), transparent 60%),
              radial-gradient(circle at 75% 65%, rgba(236, 72, 153, 0.9), transparent 60%),
              radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.7), transparent 60%), #14080a;
}

.album-dynamic-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 14px;
}

.album-dynamic-card .adc-icon {
  color: var(--secondary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-dynamic-card .adc-info strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.album-dynamic-card .adc-info p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  margin: 0;
}

.custom-upload-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.custom-file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.88rem;
  font-weight: 500;
}

.custom-file-upload-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.or-divider {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  position: relative;
  margin: 2px 0;
}

.url-input-row, .input-with-action {
  display: flex;
  gap: 8px;
}

.url-input-row input, .input-with-action input {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s;
}

.url-input-row input:focus, .input-with-action input:focus {
  border-color: var(--primary-accent);
}

.apply-action-btn {
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary-accent);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.apply-action-btn:hover {
  background: #7c3aed;
}

.curated-wallpapers-header {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.curated-wallpapers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.curated-wall-item {
  position: relative;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.curated-wall-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curated-wall-item:hover, .curated-wall-item.active {
  border-color: var(--secondary-accent);
  transform: scale(1.03);
}

.curated-wall-item .wall-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 4px;
  font-size: 0.7rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.color-picker-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.color-picker-row input[type="color"] {
  width: 44px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.quick-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-color-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-color-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.custom-slider-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.slider-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
}

.slider-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.slider-item input[type="range"] {
  width: 100%;
  accent-color: var(--primary-accent);
  cursor: pointer;
}

.slider-item.toggle-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.font-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.font-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.font-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.font-card.active {
  border-color: var(--primary-accent);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}

.font-sample {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.3;
}

.font-lxgw-preview {
  font-family: 'LXGW WenKai Screen', 'LXGW WenKai', 'STKaiti', cursive, sans-serif !important;
}

.font-name {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.custom-font-input-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.font-input-field label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}

.appearance-footer-actions {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.app-reset-btn {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
}

.app-reset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-done-btn {
  padding: 9px 24px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.app-done-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .appearance-modal-card {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 86vh !important;
    border-radius: var(--radius-lg) !important;
  }
  .appearance-tabs {
    padding: 6px 12px 10px 12px !important;
    gap: 6px !important;
  }
  .app-tab-btn {
    padding: 8px 10px !important;
    font-size: 0.84rem !important;
  }
  .appearance-modal-body {
    padding: 12px 14px 20px 14px !important;
    gap: 12px !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .preset-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .curated-wallpapers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .font-presets-grid {
    grid-template-columns: 1fr !important;
  }
  .appearance-footer-actions {
    padding: 10px 14px !important;
  }
  .app-reset-btn, .app-done-btn {
    padding: 8px 14px !important;
    font-size: 0.84rem !important;
  }
}






