/* ============ CSS Variables ============ */
:root {
  --bg: #f5f5f7;
  --bg-card: rgba(255,255,255,0.72);
  --bg-card-solid: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #aeaeb2;
  --border: rgba(0,0,0,0.06);
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --glass: rgba(255,255,255,0.72);
  --glass-border: rgba(0,0,0,0.08);
  --primary: #ec4899;
  --primary-light: #f9a8d4;
  --primary-dark: #be185d;
  --accent: #f472b6;
  --accent2: #a855f7;
  --gradient-1: linear-gradient(135deg, #ec4899, #f472b6, #a855f7);
  --gradient-2: linear-gradient(135deg, #fbbf24, #f97316);
  --gradient-3: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-4: linear-gradient(135deg, #a855f7, #6366f1);
  --gradient-5: linear-gradient(135deg, #f472b6, #ec4899);
  --rank-hot: linear-gradient(135deg, #ef4444, #f97316);
  --rank-new: linear-gradient(135deg, #06b6d4, #3b82f6);
  --rank-original: linear-gradient(135deg, #a855f7, #6366f1);
  --rank-soaring: linear-gradient(135deg, #f472b6, #ec4899);
  --func-red: #ef4444;
  --func-blue: #3b82f6;
  --func-green: #22c55e;
  --func-purple: #a855f7;
  --func-orange: #f97316;
  --func-teal: #14b8a6;
  --func-gray: #64748b;
  --func-indigo: #6366f1;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --max-width: 430px;
  --tab-height: 56px;
  --mini-height: 64px;
  --header-height: 52px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ 全局自定义滚动条（禁用浏览器默认） ============ */
/* WebKit 浏览器（Chrome、Edge、Safari） */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* IE 和旧版 Edge */
* {
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* 横向滚动容器的滚动条 */
.hscroll-container::-webkit-scrollbar {
  display: block;
  height: 4px;
}
.hscroll-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* 歌词滚动区域 */
.fs-lyric-scroll::-webkit-scrollbar {
  width: 3px;
}
.fs-lyric-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* 页面内容滚动区域 */
.page-view {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

body.dark {
  --bg: #1c1c1e;
  --bg-card: rgba(44,44,46,0.72);
  --bg-card-solid: #2c2c2e;
  --text: #f5f5f7;
  --text-secondary: #98989d;
  --text-tertiary: #636366;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 2px 12px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
  --glass: rgba(44,44,46,0.72);
  --glass-border: rgba(255,255,255,0.1);
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
button {
  border: none; background: none; cursor: pointer; font: inherit; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
input {
  border: none; background: none; font: inherit; color: inherit; outline: none;
}
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
svg { display: block; }

/* ============ App Layout ============ */
.app {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ============ Page Views ============ */
.page-view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tab-height) + var(--mini-height) + var(--safe-bottom) + 20px);
  min-height: 0;
}
/* 页面内容顶部留出空间，避免与 header 挨太近 */
.page-view > .page-padding,
.page-view > section {
  padding-top: 20px;
}
/* header 后面的第一个内容元素额外加一点间距 */
.page-view > header + .page-padding,
.page-view > header + section {
  padding-top: 24px;
}
.page-view .search-entry {
  margin-bottom: 16px;
}
.page-view.hidden { display: none; }
.page-padding { padding: 0 20px; }
.bottom-spacer { height: 20px; }

/* ============ Top Header (发现页) ============ */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 0 20px;
  height: var(--header-height);
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.top-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo-area {
  display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.logo-icon svg { width: 18px; height: 18px; }
.logo-text {
  font-size: 20px; font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.avatar-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: transform var(--transition);
}
.avatar-btn:active { transform: scale(0.9); }
.avatar-btn svg { width: 18px; height: 18px; }

/* ============ Search Entry ============ */
.search-entry {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 10px 16px;
  margin: 12px 0 8px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-tertiary);
  font-size: 14px;
  transition: all var(--transition);
}
.search-entry:active { transform: scale(0.98); }
.search-entry svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============ Section ============ */
.section { margin-top: 20px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.section-title::before {
  content: '';
  width: 4px; height: 18px;
  background: var(--gradient-1);
  border-radius: 2px;
}
.section-actions { display: flex; align-items: center; gap: 8px; }
.text-btn-xs {
  font-size: 13px; color: var(--text-secondary);
  transition: color var(--transition);
}
.text-btn-xs:active { color: var(--primary); }
.icon-btn-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.icon-btn-sm:active { background: var(--border); color: var(--primary); }
.icon-btn-sm svg { width: 16px; height: 16px; }

/* ============ Daily Card ============ */
.daily-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(244,114,182,0.15), rgba(236,72,153,0.15));
  border: 1px solid rgba(236,72,153,0.12);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-align: left;
}
.daily-card:active { transform: scale(0.98); }
.daily-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f97316, #ec4899);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.daily-icon svg { width: 24px; height: 24px; }
.daily-info { flex: 1; min-width: 0; }
.daily-title {
  font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.daily-sub {
  font-size: 12px; color: var(--text-secondary); margin-top: 2px;
}
.daily-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.daily-play:active { transform: scale(0.9); }
.daily-play svg { width: 18px; height: 18px; margin-left: 2px; }

/* ============ H-Scroll Playlists ============ */
.hscroll-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  padding: 0 8px;
  max-width: calc(100% - 16px);
}
.hscroll-container::-webkit-scrollbar { display: none; }
.hscroll-track {
  display: flex; gap: 12px;
  padding-bottom: 4px;
}
.hscroll-card {
  flex-shrink: 0; width: 140px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition);
  cursor: pointer;
}
.hscroll-card:active { transform: scale(0.95); }
.hscroll-card-cover {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-tertiary);
  position: relative;
  overflow: hidden;
}
.hscroll-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.hscroll-card-cover svg {
  width: 40px; height: 40px;
}
.hscroll-card-play {
  position: absolute; right: 8px; bottom: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(236,72,153,0.9);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.hscroll-card:hover .hscroll-card-play,
.hscroll-card:active .hscroll-card-play { opacity: 1; transform: translateY(0); }
.hscroll-card-play svg { width: 14px; height: 14px; margin-left: 1px; }
.hscroll-card-info { padding: 10px; }
.hscroll-card-name {
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}
.hscroll-card-desc {
  font-size: 11px; color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hscroll-card-more {
  background: var(--bg-card);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--text-secondary);
  font-size: 12px;
}
.hscroll-card-more svg { width: 32px; height: 32px; }

/* ============ Song List ============ */
.song-list-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
  color: var(--text-tertiary);
}
.song-list-loading svg { width: 24px; height: 24px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.song-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}
.song-item:active { background: var(--border); }
.song-item.active { background: rgba(236,72,153,0.08); }
.song-index {
  width: 24px; text-align: center;
  font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.song-item:nth-child(-n+3) .song-index { color: var(--primary); }
.song-cover {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-cover svg {
  width: 22px; height: 22px;
  color: var(--text-tertiary);
}
.song-info {
  flex: 1; min-width: 0;
}
.song-name {
  font-size: 14px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.song-artist {
  font-size: 12px; color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.song-actions {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.song-action-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.song-action-btn:active { color: var(--primary); background: var(--border); }
.song-action-btn svg { width: 16px; height: 16px; }
.song-action-btn.faved { color: var(--primary); }
.song-action-btn.faved svg { fill: var(--primary); }

/* ============ Rank Grid ============ */
.rank-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rank-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  text-align: left;
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}
.rank-card:active { transform: scale(0.96); }
.rank-card.rank-hot { background: var(--rank-hot); }
.rank-card.rank-new { background: var(--rank-new); }
.rank-card.rank-original { background: var(--rank-original); }
.rank-card.rank-soaring { background: var(--rank-soaring); }
.rank-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.rank-icon svg { width: 20px; height: 20px; }
.rank-title { font-size: 16px; font-weight: 700; }
.rank-desc { font-size: 11px; opacity: 0.8; }
.rank-footer {
  display: flex; align-items: center; gap: 4px;
  margin-top: auto;
  font-size: 12px; opacity: 0.9;
}
.rank-footer svg { width: 14px; height: 14px; }

/* ============ Sub Header ============ */
.sub-header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sub-header-float {
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 100;
  width: 100%;
}
.back-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: background var(--transition);
}
.back-btn:active { background: var(--border); }
.back-btn svg { width: 20px; height: 20px; }
.sub-title {
  flex: 1; font-size: 17px; font-weight: 600;
  text-align: center;
}
.sub-title-light { color: #fff; }
.back-btn-light { color: #fff; }
.icon-btn-light { color: #fff; }
.icon-btn-light:active { background: rgba(255,255,255,0.15); }

/* ============ Search Page ============ */
.search-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-secondary);
}
.search-input-wrap svg {
  width: 18px; height: 18px; flex-shrink: 0;
}
.search-input-wrap input {
  flex: 1; font-size: 15px;
}
.search-input-wrap input::placeholder { color: var(--text-tertiary); }
.clear-btn {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--text-tertiary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.clear-btn svg { width: 12px; height: 12px; }
.search-submit-btn {
  font-size: 15px; font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
  padding: 6px 4px;
}
.search-submit-btn:active { opacity: 0.7; }

.search-results-area.hidden { display: none; }
.results-count {
  font-size: 13px; color: var(--text-secondary);
  padding: 12px 0 8px;
}

/* Search history */
.section-subtitle {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.section-subtitle svg { width: 16px; height: 16px; color: var(--text-secondary); }
.clear-history-btn {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--transition);
}
.clear-history-btn:active { color: var(--primary); background: var(--border); }
.clear-history-btn svg { width: 16px; height: 16px; }
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag-item {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
}
.tag-item:active { background: var(--primary); color: #fff; border-color: var(--primary); }

.search-history-area {
  margin-top: 4px;
}

/* Hot search */
.hot-search-area { margin-top: 24px; }
.hot-list {
  display: flex; flex-direction: column;
}
.hot-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.hot-item:active { background: var(--border); margin: 0 -20px; padding: 12px 20px; }
.hot-rank {
  width: 24px; text-align: center;
  font-size: 14px; font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.hot-rank.hot-top { color: var(--primary); }
.hot-keyword {
  flex: 1; font-size: 14px;
}
.hot-tag {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  font-weight: 600;
}
.hot-tag-red { background: #fef2f2; color: #ef4444; }
.hot-tag-orange { background: #fff7ed; color: #f97316; }
.hot-tag-green { background: #f0fdf4; color: #22c55e; }

/* ============ Playlist Detail Page ============ */
.playlist-hero {
  position: relative;
  padding: 20px 20px 24px;
  overflow: hidden;
}
.playlist-hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-1);
  background-size: cover; background-position: center;
}
.playlist-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}
.playlist-hero-content {
  position: relative; z-index: 2;
  display: flex; gap: 16px;
  margin-top: 40px;
  align-items: flex-end;
}
.playlist-hero-cover {
  width: 140px; height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.playlist-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist-hero-cover svg { width: 48px; height: 48px; color: rgba(255,255,255,0.6); }
.playlist-hero-info {
  flex: 1; min-width: 0;
  color: #fff;
}
.playlist-hero-info h2 {
  font-size: 20px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.playlist-hero-info p {
  font-size: 12px; opacity: 0.8;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.playlist-detail-meta {
  font-size: 11px; opacity: 0.7;
  margin-top: 6px;
}
.playlist-hero-actions {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
}
.play-all-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ec4899, #f472b6, #a855f7);
  color: #fff;
  font-size: 14px; font-weight: 600;
  transition: transform var(--transition), opacity var(--transition);
}
.play-all-btn:active { transform: scale(0.95); opacity: 0.9; }
.play-all-btn svg { width: 16px; height: 16px; }
.play-all-fav {
  margin-top: 16px;
  width: 100%; justify-content: center;
}
.action-btn-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.action-btn-circle:active { background: rgba(255,255,255,0.2); }
.action-btn-circle svg { width: 18px; height: 18px; }
.action-btn-circle.faved { background: var(--primary); border-color: var(--primary); }

/* ============ Favorites Page ============ */
.favorites-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(168,85,247,0.08));
  margin: 16px 20px 0;
  border-radius: var(--radius-lg);
}
.fav-cover {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ec4899, #a855f7);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.fav-cover svg { width: 36px; height: 36px; }
.fav-info { flex: 1; min-width: 0; }
.fav-info h2 { font-size: 18px; font-weight: 700; }
.fav-info p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ============ Mine Page ============ */
.mine-header { background: var(--bg); }
.mine-title { text-align: left; }
.profile-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.profile-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.profile-avatar svg { width: 28px; height: 28px; }
.profile-info { flex: 1; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.stats-row {
  display: flex; align-items: center;
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.stat-item {
  flex: 1; text-align: center;
}
.stat-num {
  font-size: 22px; font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.stat-divider {
  width: 1px; height: 30px;
  background: var(--border);
}

.function-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.func-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition);
  font-size: 12px;
}
.func-item:active { transform: scale(0.95); }
.func-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.func-icon svg { width: 20px; height: 20px; }
.func-icon-red { background: var(--func-red); }
.func-icon-blue { background: var(--func-blue); }
.func-icon-green { background: var(--func-green); }
.func-icon-purple { background: var(--func-purple); }
.func-icon-orange { background: var(--func-orange); }
.func-icon-teal { background: var(--func-teal); }
.func-icon-gray { background: var(--func-gray); }
.func-icon-indigo { background: var(--func-indigo); }

.mini-playlist-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.mini-pl-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition);
  cursor: pointer;
}
.mini-pl-card:active { transform: scale(0.96); }
.mini-pl-cover {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.mini-pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-pl-cover svg { width: 18px; height: 18px; color: var(--text-tertiary); }
.mini-pl-name {
  font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.copyright {
  text-align: center; font-size: 11px; color: var(--text-tertiary);
  margin-top: 28px;
  line-height: 1.8;
}
.copyright a { color: var(--primary); }
.copy-ver { margin-top: 8px; }

/* ============ Playlist Grid ============ */
.playlist-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.pl-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition);
  cursor: pointer;
}
.pl-card:active { transform: scale(0.96); }
.pl-card-cover {
  width: 100%; aspect-ratio: 1;
  background: var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.pl-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-card-cover svg { width: 40px; height: 40px; color: var(--text-tertiary); }
.pl-card-info { padding: 10px; }
.pl-card-name {
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-card-desc {
  font-size: 11px; color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============ Bottom Tab Bar ============ */
.bottom-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max-width);
  height: var(--tab-height);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex; align-items: center;
  padding-bottom: var(--safe-bottom);
  z-index: 50;
  transition: transform 0.3s ease;
}
.bottom-tabbar.hidden-mini { transform: translateX(-50%) translateY(100%); }
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0;
  color: var(--text-tertiary);
  transition: color var(--transition);
  font-size: 10px;
}
.tab-item.active { color: var(--primary); }
.tab-item svg { width: 22px; height: 22px; }
.tab-item.tab-player { flex: 0 0 auto; padding: 0 12px; }
.tab-player-inner {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-top: -8px;
  box-shadow: 0 4px 16px rgba(236,72,153,0.4);
}
.tab-player-inner svg { width: 18px; height: 18px; margin-left: 1px; }

/* ============ Mini Player ============ */
.mini-player {
  position: fixed; bottom: var(--tab-height); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max-width);
  z-index: 49;
  padding-bottom: var(--safe-bottom);
}
.mini-player-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  cursor: pointer;
}
.mini-cover {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  animation: disc-spin 8s linear infinite paused;
}
.mini-cover.playing { animation-play-state: running; }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-cover svg { width: 22px; height: 22px; color: var(--text-tertiary); }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.mini-info {
  flex: 1; min-width: 0;
}
.mini-title {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-artist {
  font-size: 12px; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-actions {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
  z-index: 2;
}
.mini-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all var(--transition);
}
.mini-btn:active { background: var(--border); }
.mini-btn svg { width: 18px; height: 18px; }
.mini-play-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform var(--transition);
}
.mini-play-btn:active { transform: scale(0.9); }
.mini-play-btn svg { width: 18px; height: 18px; margin-left: 1px; }
.mini-fav-btn.faved { color: var(--primary); }
.mini-fav-btn.faved svg { fill: var(--primary); }
.mini-progress {
  height: 2px; background: var(--border);
}
.mini-progress-bar {
  height: 2px; width: 0%;
  background: var(--gradient-1);
  transition: width 0.3s linear;
}

/* ============ Fullscreen Player ============ */
.fullscreen-player {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.fs-bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover;
  filter: blur(60px); opacity: 0.5;
  transform: scale(1.1);
}
.fs-bg-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
}
body.dark .fs-bg-overlay { background: rgba(0,0,0,0.4); }

.fs-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
}
.fs-back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background var(--transition);
}
.fs-back-btn:active { background: var(--border); }
.fs-back-btn svg { width: 24px; height: 24px; }
.fs-song-info {
  flex: 1; text-align: center;
  cursor: pointer;
  padding: 4px 0;
}
.fs-title {
  font-size: 16px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fs-artist {
  font-size: 13px; color: var(--text-secondary);
  margin-top: 2px;
}
.fs-more-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background var(--transition);
}
.fs-more-btn:active { background: var(--border); }
.fs-more-btn svg { width: 22px; height: 22px; }

.fs-content {
  position: relative; z-index: 2;
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Disc View */
.fs-disc-view {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; padding: 0 20px;
}
.fs-needle {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%) rotate(0deg);
  width: 60px; height: 100px;
  transform-origin: 50% 15px;
  transition: transform 0.5s ease;
  z-index: 3;
  pointer-events: none;
}
.fs-needle.playing { transform: translateX(-50%) rotate(15deg); }
.fs-disc {
  width: min(70vw, 280px);
  height: min(70vw, 280px);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 100%);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  animation: disc-spin 8s linear infinite paused;
}
.fs-disc.playing { animation-play-state: running; }
.fs-disc-ring {
  position: absolute; inset: 4px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.fs-disc-cover {
  position: absolute; inset: 20%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.fs-disc-cover.no-cover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.fs-disc-cover.no-cover svg {
  width: 40px; height: 40px; color: rgba(255,255,255,0.7);
}
.fs-disc-cover img { display: none; }
.fs-disc-cover svg { width: 36px; height: 36px; color: var(--text-tertiary); }
.fs-disc-hole {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255,255,255,0.1);
}
.fs-disc-hint {
  margin-top: 24px;
  font-size: 12px; color: var(--text-tertiary);
  text-align: center;
}

/* Lyric View */
.fs-lyric-view {
  flex: 1; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
}
.fs-lyric-view.hidden { display: none; }
.fs-lyric-scroll {
  flex: 1; width: 100%;
  overflow-y: auto;
  padding: 0 20px;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.25);
  mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 90%, transparent 100%);
  cursor: default;
}
.fs-lyric-scroll::-webkit-scrollbar { display: none; }
.lyric-padding-top { height: 40vh; }
.lyric-padding-bottom { height: 40vh; }
.lyric-line {
  text-align: center; padding: 12px 0;
  font-size: 15px; color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  line-height: 1.6;
  cursor: pointer;
}
.lyric-line:active { transform: scale(0.98); }
.lyric-line.active {
  color: #ffffff;
  font-size: 19px; font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transform: scale(1.02);
}
.lyric-loading, .lyric-empty {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--text-tertiary); font-size: 14px;
}
.lyric-loading.hidden, .lyric-empty.hidden { display: none; }
.lyric-loading svg { width: 24px; height: 24px; margin: 0 auto 8px; }

/* 通用封面占位 */
.card-cover-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.card-cover-bg.no-cover {
  background: linear-gradient(135deg, var(--primary-light), var(--accent2)) !important;
}
.card-cover-bg .card-cover-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-cover-bg.no-cover .card-cover-icon {
  opacity: 1;
}

/* 歌曲封面 no-cover */
.song-cover.no-cover {
  background: linear-gradient(135deg, #a5b4fc, #c084fc);
}
.song-cover.no-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E") center/40% no-repeat;
  opacity: 0.5;
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 播放模式按钮激活态 */
#fs-mode-btn.active svg {
  color: var(--primary);
  stroke: var(--primary);
}
#fs-mode-btn.active svg * {
  stroke: var(--primary);
}

/* Progress Bar */
.fs-progress {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px; margin: 16px 0;
}
.fs-time {
  font-size: 11px; color: var(--text-secondary);
  min-width: 40px; font-variant-numeric: tabular-nums;
}
.fs-time:last-child { text-align: right; }
.fs-progress-bar {
  flex: 1; height: 4px;
  background: rgba(128,128,128,0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.fs-progress-fill {
  height: 100%; width: 0%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s linear;
}
.fs-progress-thumb {
  position: absolute; top: 50%; left: 0%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(236,72,153,0.4);
  opacity: 0;
  transition: opacity 0.2s;
}
.fs-progress-bar:active .fs-progress-thumb { opacity: 1; }

/* Player Controls */
.fs-controls {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
  padding: 0 24px;
  margin-bottom: 16px;
}
.fs-ctrl-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all var(--transition);
}
.fs-ctrl-btn:active { background: var(--border); }
.fs-ctrl-btn svg { width: 22px; height: 22px; }
.fs-play-btn-lg {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform var(--transition);
  box-shadow: 0 4px 20px rgba(236,72,153,0.4);
}
.fs-play-btn-lg:active { transform: scale(0.9); }
.fs-play-btn-lg svg { width: 28px; height: 28px; margin-left: 2px; }
.fs-prev-btn svg, .fs-next-btn svg { width: 20px; height: 20px; }
#fs-fav-btn.faved { color: var(--primary); }
#fs-fav-btn.faved svg { fill: var(--primary); }

/* Bottom Bar */
.fs-bottom-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px 24px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}
.fs-bottom-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  transition: color var(--transition);
  padding: 4px 12px;
}
.fs-bottom-btn:active { color: var(--primary); }
.fs-bottom-btn svg { width: 22px; height: 22px; }

/* ============ Queue Drawer ============ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}
.drawer-overlay.hidden { opacity: 0; pointer-events: none; }
.queue-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 115;
  width: min(320px, 85vw);
  background: var(--bg-card-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.queue-drawer.open { transform: translateX(0); }
.drawer-handle {
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.drawer-handle-bar {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 12px;
}
.drawer-title {
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.drawer-count {
  font-size: 13px; color: var(--text-secondary); font-weight: 400;
}
.drawer-actions {
  display: flex; align-items: center; gap: 4px;
}
.drawer-icon-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.drawer-icon-btn:active { background: var(--border); color: var(--primary); }
.drawer-icon-btn svg { width: 18px; height: 18px; }
.drawer-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.queue-list {
  padding: 0 12px;
}
.queue-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}
.queue-item:active { background: var(--border); }
.queue-item.active { background: rgba(236,72,153,0.08); }
.queue-item.active .queue-item-name { color: var(--primary); }
.queue-item-cover {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--border);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.queue-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.queue-item-cover svg { width: 18px; height: 18px; color: var(--text-tertiary); }
.queue-item-info { flex: 1; min-width: 0; }
.queue-item-name {
  font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.queue-item-artist {
  font-size: 11px; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.queue-remove-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.queue-remove-btn:active { color: var(--primary); background: var(--border); }
.queue-remove-btn svg { width: 16px; height: 16px; }
.queue-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
  text-align: center;
}
.queue-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.queue-empty p { font-size: 14px; }
.queue-empty-sub { font-size: 12px; margin-top: 4px; opacity: 0.6; }

/* ============ Settings Drawer ============ */
.settings-drawer {
  position: fixed; left: 50%; bottom: 0; z-index: 115;
  transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: var(--max-width);
  max-height: 80vh;
  background: var(--bg-card-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  overflow: hidden;
}
.settings-drawer.open { transform: translateX(-50%) translateY(0); }
.setting-group {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.setting-group:last-child { border-bottom: none; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.setting-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
}
.setting-label svg { width: 18px; height: 18px; color: var(--text-secondary); }
.setting-value {
  font-size: 13px; color: var(--text-secondary);
}
.setting-slider-row {
  display: flex; align-items: center; gap: 12px;
}
.mute-toggle-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  background: var(--border);
  flex-shrink: 0;
  transition: all var(--transition);
}
.mute-toggle-btn:active { background: var(--primary); color: #fff; }
.mute-toggle-btn svg { width: 18px; height: 18px; }
.mute-toggle-btn.muted { background: var(--primary); color: #fff; }
input[type="range"] {
  flex: 1; height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(236,72,153,0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

.mode-grid, .speed-grid, .timer-grid, .theme-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.speed-grid { grid-template-columns: repeat(3, 1fr); }
.theme-grid { grid-template-columns: repeat(3, 1fr); }
.mode-btn, .speed-btn, .timer-btn, .theme-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--border);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.mode-btn:active, .speed-btn:active, .timer-btn:active, .theme-btn:active {
  transform: scale(0.95);
}
.mode-btn.active, .speed-btn.active, .timer-btn.active, .theme-btn.active {
  background: var(--primary);
  color: #fff;
}
.theme-btn svg { width: 16px; height: 16px; }

.cache-group {
  display: flex; flex-direction: column;
}
.clear-cache-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  font-size: 14px; font-weight: 500;
  margin-top: 8px;
  transition: all var(--transition);
}
.clear-cache-btn:active { background: rgba(239,68,68,0.2); }
.clear-cache-btn svg { width: 16px; height: 16px; }

/* ============ Playlist Manager Drawer ============ */
.playlist-mgr-drawer {
  position: fixed; left: 50%; bottom: 0; z-index: 115;
  transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: var(--max-width);
  max-height: 80vh;
  background: var(--bg-card-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  overflow: hidden;
}
.playlist-mgr-drawer.open { transform: translateX(-50%) translateY(0); }

.mgr-add-section {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.mgr-add-title {
  font-size: 14px; font-weight: 600; margin-bottom: 10px;
}
.mgr-add-inputs {
  display: flex; gap: 8px;
}
.mgr-add-inputs input {
  flex: 1; padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  min-width: 0;
}
.mgr-add-inputs input::placeholder { color: var(--text-tertiary); }
.mgr-add-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
  transition: all var(--transition);
}
.mgr-add-btn:active { opacity: 0.8; }
.mgr-add-btn svg { width: 14px; height: 14px; }

.mgr-list-section {
  padding: 12px 20px;
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}
.mgr-list-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600;
  margin-bottom: 10px;
}
.mgr-reset-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-secondary);
  transition: color var(--transition);
}
.mgr-reset-btn:active { color: var(--primary); }
.mgr-reset-btn svg { width: 14px; height: 14px; }
.mgr-list {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mgr-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  cursor: default;
  animation: mgrItemIn 0.3s ease both;
}
@keyframes mgrItemIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.mgr-item:hover { background: var(--bg-hover); }
.mgr-item:active { background: var(--border); }
.mgr-item-order {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; gap: 2px;
}
.mgr-order-btn {
  width: 22px; height: 18px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  background: transparent;
  border: none; cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.mgr-order-btn:hover:not(.disabled) { color: var(--primary); background: var(--bg-hover); }
.mgr-order-btn:active:not(.disabled) { transform: scale(0.9); }
.mgr-order-btn.disabled { opacity: 0.25; cursor: not-allowed; }
.mgr-order-btn svg { width: 14px; height: 14px; }
.mgr-order-num {
  font-size: 10px; color: var(--text-tertiary);
  font-weight: 600;
}
.mgr-item-info {
  flex: 1; min-width: 0;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.mgr-item-info:hover { background: var(--bg-hover); }
.mgr-item-name {
  font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mgr-item-id {
  font-size: 11px; color: var(--text-tertiary);
  margin-top: 2px;
}
.mgr-item-edit, .mgr-item-remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.mgr-item-edit:hover { color: var(--primary); background: var(--bg-hover); }
.mgr-item-edit:active { color: var(--primary); background: var(--border); }
.mgr-item-remove:hover { color: #ef4444; background: var(--bg-hover); }
.mgr-item-remove:active { color: #ef4444; background: var(--border); }
.mgr-item-edit svg, .mgr-item-remove svg { width: 16px; height: 16px; }

/* ============ Empty State ============ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 20px;
  text-align: center;
}
.empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.empty-icon svg { width: 28px; height: 28px; }
.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.empty-desc { font-size: 13px; color: var(--text-secondary); }

/* ============ Toast ============ */
.toast-container {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast-item {
  padding: 10px 24px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 16px rgba(236,72,153,0.3);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2s forwards;
  pointer-events: auto;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* ============ Utility: hidden ============ */
.hidden { display: none !important; }

/* ============ Responsive ============ */
@media (min-width: 431px) {
  .app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* ============ 页面切换动画 ============ */
.page-view {
  animation: pageFadeIn 0.35s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}



/* 全屏播放器动画 */
.fullscreen-player {
  animation: fsSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fsSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 唱片旋转动画 */
.fs-disc.playing {
  animation: discSpin 12s linear infinite;
}
.fs-disc.paused {
  animation-play-state: paused;
}
@keyframes discSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 唱针动画 */
.fs-needle.playing {
  transform: translateX(-50%) rotate(-25deg);
}
.fs-needle {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 歌词视图切换动画 */
.fs-disc-view, .fs-lyric-view {
  animation: viewFadeIn 0.3s ease both;
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Toast 动画 */
.toast-item {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.toast-item.hide {
  animation: toastSlideOut 0.3s ease both;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastSlideOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* 歌单卡片悬停动画 */
.hscroll-card, .pl-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hscroll-card:hover, .pl-card:hover {
  transform: translateY(-4px);
}

/* 按钮点击反馈 */
.icon-btn, .icon-btn-sm, .text-btn, .text-btn-xs {
  transition: all 0.2s ease;
}
.icon-btn:active, .icon-btn-sm:active, .text-btn:active, .text-btn-xs:active {
  transform: scale(0.92);
}

/* 搜索结果加载动画 */
.song-list-loading svg.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 进度条过渡 */
.fs-progress-fill, .mini-progress-bar {
  transition: width 0.1s linear;
}


/* ============ Logo & Avatar PNG 支持 ============ */
.logo-icon img,
.avatar-btn img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.avatar-btn {
  overflow: hidden;
  border-radius: 50%;
}
.profile-avatar {
  overflow: hidden;
}


/* ============================================================
   电脑端响应式布局适配（v2 增强版）
   直接设置元素宽度 + CSS变量，双重保险确保生效
   ============================================================ */

/* ============ 平板/小屏电脑 (>=768px) ============ */
@media (min-width: 768px) {
  :root {
    --max-width: 720px;
  }

  /* 主应用容器 - 直接设置宽度确保生效 */
  .app {
    max-width: 720px !important;
  }

  /* 所有固定定位元素同步宽度 */
  .bottom-tabbar,
  .mini-player,
  .settings-drawer,
  .playlist-mgr-drawer,
  .queue-drawer {
    max-width: 720px !important;
  }

  /* 页面内边距 */
  .page-padding { padding: 0 28px; }

  /* 歌单网格：2列 → 3列 */
  .playlist-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
  }

  /* 排行榜：2列 → 4列 */
  .rank-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
  }
  .rank-card { padding: 18px; }
  .rank-icon { width: 44px; height: 44px; }
  .rank-icon svg { width: 22px; height: 22px; }
  .rank-title { font-size: 15px; }
  .rank-desc { font-size: 12px; }

  /* 横向滚动卡片 */
  .hscroll-card { width: 170px; }
  .hscroll-track { gap: 16px; }

  /* 卡片文字 */
  .pl-card-name { font-size: 14px; }
  .pl-card-desc { font-size: 12px; }
  .pl-card-info { padding: 12px; }

  /* 歌曲列表 */
  .song-item { padding: 10px 12px; }
  .song-item-title { font-size: 15px; }
  .song-item-artist { font-size: 13px; }

  /* 搜索入口 */
  .search-entry { padding: 14px 18px; font-size: 15px; }

  /* 每日推荐 */
  .daily-card { padding: 20px; }
  .daily-card-title { font-size: 18px; }

  /* 板块标题 */
  .section-title { font-size: 17px; }

  /* 我的页面 */
  .profile-header { padding: 28px; }
  .profile-avatar { width: 72px; height: 72px; }
  .profile-name { font-size: 20px; }
  .profile-stats { gap: 32px; }
  .stat-item-num { font-size: 22px; }

  /* 功能入口网格 */
  .mine-actions-grid { gap: 12px; }
  .mine-action-item { padding: 16px 12px; }

  /* mini播放器 */
  .mini-player-inner { padding: 8px 16px; }
  .mini-cover { width: 48px; height: 48px; }
  .mini-title { font-size: 14px; }

  /* 底部导航 */
  .bottom-tabbar { height: 62px; }
  .tab-item svg { width: 24px; height: 24px; }

  /* 全屏播放器 */
  .fs-disc { width: 280px; height: 280px; }
  .fs-disc-cover { width: 200px; height: 200px; }
  .fs-song-title { font-size: 20px; }
  .fs-lyric-line { font-size: 15px; }
  .fs-lyric-line.active { font-size: 17px; }

  /* 播放队列 */
  .queue-item { padding: 12px 16px; }
  .queue-item-title { font-size: 14px; }

  /* 弹窗 */
  .modal-content { max-width: 440px; padding: 24px; }
  .modal-title { font-size: 18px; }

  /* 设置项 */
  .setting-item { padding: 14px 0; }
  .setting-label { font-size: 15px; }

  /* 搜索结果 */
  .search-result-item { padding: 12px 16px; }
  .search-result-title { font-size: 15px; }

  /* 热门搜索标签 */
  .hot-tag { padding: 8px 16px; font-size: 13px; }

  /* 歌单详情页 */
  .playlist-detail-header { padding: 28px; }
  .playlist-detail-cover { width: 140px; height: 140px; }
  .playlist-detail-name { font-size: 20px; }

  /* 按钮 */
  .btn-primary { padding: 12px 28px; font-size: 15px; }
  .btn-secondary { padding: 12px 24px; font-size: 14px; }

}

/* ============ 标准电脑屏幕 (>=1024px) ============ */
@media (min-width: 1024px) {
  :root {
    --max-width: 960px;
    --sidebar-width: 72px;
  }

  /* 主应用容器 - 给左侧导航栏留出空间 */
  .app {
    max-width: 960px !important;
    margin-left: calc(var(--sidebar-width) + 24px) !important;
    margin-right: 24px !important;
  }

  /* 底部导航 → 左侧悬浮导航栏 */
  .bottom-tabbar {
    position: fixed !important;
    left: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
    height: auto !important;
    flex-direction: column !important;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 24px;
    background: var(--glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 100;
  }

  /* 导航项 */
  .bottom-tabbar .tab-item {
    flex-direction: column;
    padding: 12px 4px;
    border-radius: 16px;
    width: 100%;
    gap: 4px;
  }
  .bottom-tabbar .tab-item svg {
    width: 22px;
    height: 22px;
  }
  .bottom-tabbar .tab-item span {
    font-size: 10px;
    display: block;
  }
  .bottom-tabbar .tab-item.active {
    background: var(--accent);
    color: #fff;
  }
  .bottom-tabbar .tab-item.active svg {
    color: #fff;
  }

  /* 中间播放按钮 */
  .bottom-tabbar .tab-player {
    order: 2;
    margin: 4px 0;
  }
  .bottom-tabbar .tab-player-inner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .bottom-tabbar .tab-player-inner svg {
    width: 20px;
    height: 20px;
  }

  /* mini播放器 - 调整位置避免被左侧导航遮挡 */
  .mini-player {
    left: calc(var(--sidebar-width) + 48px) !important;
    transform: none !important;
    max-width: calc(960px - var(--sidebar-width) - 48px) !important;
  }

  /* 所有抽屉 - 调整位置 */
  .settings-drawer,
  .playlist-mgr-drawer,
  .queue-drawer {
    left: calc(var(--sidebar-width) + 48px) !important;
    transform: translateX(0) translateY(100%) !important;
    max-width: calc(960px - var(--sidebar-width) - 48px) !important;
  }
  .settings-drawer.open,
  .playlist-mgr-drawer.open,
  .queue-drawer.open {
    transform: translateX(0) translateY(0) !important;
  }

  /* 页面内边距 */
  .page-padding { padding: 0 36px; }

  /* 歌单网格：3列 → 4列 */
  .playlist-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
  }

  /* 排行榜：保持4列，增加间距 */
  .rank-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
  }
  .rank-card { padding: 20px; }
  .rank-icon { width: 48px; height: 48px; }
  .rank-icon svg { width: 24px; height: 24px; }
  .rank-title { font-size: 16px; }
  .rank-desc { font-size: 13px; }

  /* 横向滚动卡片 */
  .hscroll-card { width: 200px; }
  .hscroll-track { gap: 20px; }

  /* 卡片播放按钮 */
  .hscroll-card-play { width: 38px; height: 38px; right: 10px; bottom: 10px; }
  .hscroll-card-play svg { width: 18px; height: 18px; }

  /* 我的页面功能入口：2列 → 4列 */
  .mine-actions-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
  }

  /* 热门搜索标签 */
  .hot-tags-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px;
  }

  /* 全屏播放器：左右分栏布局 */
  .fullscreen-player-content {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 40px;
  }
  .fs-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .fs-right-section {
    flex: 1;
    max-width: 400px;
    height: 400px;
    overflow-y: auto;
  }

  /* 唱片尺寸 */
  .fs-disc { width: 320px; height: 320px; }
  .fs-disc-cover { width: 230px; height: 230px; }

  /* 歌词区域 */
  .fs-lyric-container {
    height: 400px;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  }

  /* 播放控制栏 */
  .fs-controls {
    max-width: 500px;
    margin: 0 auto;
  }

  /* 歌单详情头部：左右布局 */
  .playlist-detail-header {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 32px;
    padding: 36px;
  }
  .playlist-detail-cover { width: 180px; height: 180px; flex-shrink: 0; }
  .playlist-detail-info-wrapper { flex: 1; }

  /* 搜索页：双栏布局 */
  .search-layout {
    display: grid !important;
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
  .search-sidebar { order: 2; }
  .search-main { order: 1; }
}

/* ============ 大屏电脑 (>=1280px) ============ */
@media (min-width: 1280px) {
  :root {
    --max-width: 1100px;
    --sidebar-width: 76px;
  }

  .app {
    max-width: 1100px !important;
    margin-left: calc(var(--sidebar-width) + 32px) !important;
    margin-right: 32px !important;
  }

  .bottom-tabbar {
    left: 32px !important;
    width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
  }

  .mini-player {
    left: calc(var(--sidebar-width) + 64px) !important;
    max-width: calc(1100px - var(--sidebar-width) - 64px) !important;
  }

  .settings-drawer,
  .playlist-mgr-drawer,
  .queue-drawer {
    left: calc(var(--sidebar-width) + 64px) !important;
    max-width: calc(1100px - var(--sidebar-width) - 64px) !important;
  }

  /* 歌单网格：4列 → 5列 */
  .playlist-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 24px;
  }

  /* 横向滚动卡片 */
  .hscroll-card { width: 210px; }
  .hscroll-track { gap: 24px; }

  /* 页面内边距 */
  .page-padding { padding: 0 44px; }

  /* 唱片尺寸 */
  .fs-disc { width: 360px; height: 360px; }
  .fs-disc-cover { width: 260px; height: 260px; }

  /* 全屏播放器左右间距 */
  .fullscreen-player-content { gap: 80px; }
}

/* ============ 超宽屏 (>=1536px) ============ */
@media (min-width: 1536px) {
  :root {
    --max-width: 1200px;
    --sidebar-width: 80px;
  }

  .app {
    max-width: 1200px !important;
    margin-left: calc(var(--sidebar-width) + 40px) !important;
    margin-right: 40px !important;
  }

  .bottom-tabbar {
    left: 40px !important;
    width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
  }

  .mini-player {
    left: calc(var(--sidebar-width) + 80px) !important;
    max-width: calc(1200px - var(--sidebar-width) - 80px) !important;
  }

  .settings-drawer,
  .playlist-mgr-drawer,
  .queue-drawer {
    left: calc(var(--sidebar-width) + 80px) !important;
    max-width: calc(1200px - var(--sidebar-width) - 80px) !important;
  }

  /* 歌单网格：5列 → 6列 */
  .playlist-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

/* ============ 电脑端悬停效果增强 ============ */
@media (hover: hover) and (pointer: fine) {
  .pl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  }
  .hscroll-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  }
  .hscroll-card:hover .hscroll-card-play {
    opacity: 1;
    transform: scale(1);
  }
  .hscroll-card-play {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .song-item:hover { background: var(--bg-hover); }
  .btn-primary:hover { filter: brightness(1.1); }
  .btn-secondary:hover { background: var(--bg-hover); }
  .tab-item:hover { color: var(--accent); }
  .mine-action-item:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
  }
  .queue-item:hover { background: var(--bg-hover); }
  .search-result-item:hover { background: var(--bg-hover); }
  .hot-tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
}


/* ============================================================
   全屏播放器优化 + 封面主题色
   ============================================================ */

/* 主题色CSS变量（由JS动态设置） */
:root {
  --cover-primary: #ec4899;
  --cover-secondary: #8b5cf6;
  --cover-dark: #1a1a2e;
  --cover-light: #fce7f3;
  --cover-text: #ffffff;
  --cover-text-secondary: rgba(255,255,255,0.7);
}

/* 全屏播放器背景 - 使用主题色渐变 */
.fullscreen-player {
  background: linear-gradient(135deg, var(--cover-dark) 0%, #000 100%);
}

/* 背景模糊层 - 减少模糊度，提高清晰度 */
.fs-bg {
  filter: blur(40px) saturate(1.2);
  opacity: 0.6;
  transform: scale(1.2);
}

/* 背景遮罩 - 确保文字清晰可读 */
.fs-bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  ) !important;
  z-index: 1;
}

/* 确保所有播放器内容在遮罩之上 */
.fs-header,
.fs-content,
.fs-progress,
.fs-controls,
.fs-bottom-bar {
  position: relative;
  z-index: 2;
}

/* 头部 - 文字清晰 */
.fs-header {
  padding: 20px 24px;
}

.fs-back-btn,
.fs-more-btn {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.fs-back-btn:hover,
.fs-more-btn:hover {
  background: rgba(255,255,255,0.2);
}
.fs-back-btn svg,
.fs-more-btn svg {
  color: #fff;
}

/* 歌曲信息 - 使用主题色 */
.fs-title {
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fs-artist {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 唱片封面 - 减少模糊，提高清晰度 */
.fs-disc {
  box-shadow: 
    0 0 0 8px rgba(255,255,255,0.05),
    0 0 0 16px rgba(255,255,255,0.03),
    0 20px 60px rgba(0,0,0,0.5);
}

.fs-disc-cover {
  filter: none !important;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

.fs-disc-cover img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: none !important;
}

/* 唱片环 - 使用主题色 */
.fs-disc-ring {
  border-color: rgba(255,255,255,0.1);
}

/* 歌词 - 使用主题色高亮 */
.fs-lyric-line {
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.fs-lyric-line.active {
  color: #fff !important;
  font-weight: 600;
  transform: scale(1.05);
  text-shadow: 0 0 20px var(--cover-primary), 0 2px 8px rgba(0,0,0,0.5);
}

/* 进度条 - 使用主题色 */
.fs-progress-bar {
  background: rgba(255,255,255,0.15);
}

.fs-progress-fill {
  background: linear-gradient(90deg, var(--cover-primary), var(--cover-secondary)) !important;
  box-shadow: 0 0 10px var(--cover-primary);
}

.fs-progress-thumb {
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.fs-time {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

/* 控制按钮 - 清晰可见 */
.fs-ctrl-btn {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.fs-ctrl-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
}
.fs-ctrl-btn svg {
  color: #fff !important;
}

/* 播放/暂停大按钮 - 使用主题色 */
.fs-play-btn-lg {
  background: linear-gradient(135deg, var(--cover-primary), var(--cover-secondary)) !important;
  box-shadow: 0 8px 24px var(--cover-primary), 0 0 40px rgba(236,72,153,0.3);
  color: #fff;
}
.fs-play-btn-lg:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px var(--cover-primary), 0 0 60px rgba(236,72,153,0.4);
}
.fs-play-btn-lg svg {
  color: #fff !important;
}

/* 底部控制栏 - 清晰可见 */
.fs-bottom-bar {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px;
}

.fs-bottom-btn {
  color: rgba(255,255,255,0.7) !important;
  background: transparent;
  border-radius: 12px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}
.fs-bottom-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
}
.fs-bottom-btn svg {
  color: rgba(255,255,255,0.7) !important;
}
.fs-bottom-btn:hover svg {
  color: #fff !important;
}
.fs-bottom-btn span {
  color: rgba(255,255,255,0.7) !important;
  font-size: 12px;
}
.fs-bottom-btn:hover span {
  color: #fff !important;
}

/* 收藏按钮激活状态 - 使用主题色 */
#fs-fav-btn.active {
  color: var(--cover-primary) !important;
  background: rgba(236,72,153,0.15);
}
#fs-fav-btn.active svg {
  color: var(--cover-primary) !important;
  fill: var(--cover-primary);
}

/* 唱片提示文字 */
.fs-disc-hint {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

/* 歌词加载/空状态 */
.lyric-loading,
.lyric-empty {
  color: rgba(255,255,255,0.5);
}

/* 电脑端全屏播放器左右分栏优化 */
@media (min-width: 1024px) {
  .fullscreen-player-content {
    padding: 40px 60px;
  }
  
  .fs-left-section {
    padding-right: 40px;
  }
  
  .fs-right-section {
    padding-left: 40px;
    border-left: 1px solid rgba(255,255,255,0.1);
  }
  
  .fs-lyric-container {
    height: 450px;
  }
  
  .fs-controls {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .fs-bottom-bar {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
  }
}

/* 界面细节优化 - 卡片悬停效果增强 */
@media (hover: hover) and (pointer: fine) {
  .rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  }
  
  .daily-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  
  .search-entry:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
  }
}

/* 页面切换时的平滑过渡 */
.page-view {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 所有按钮的通用过渡 */
button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 图片加载淡入效果 */
img {
  animation: imgFadeIn 0.5s ease;
}
@keyframes imgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
