/* === Reset / 盒模型基线 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; border: none; outline: none; }

/* === 排版基线 === */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === 语义变量 :root === */
:root {
  --canvas: #08080d;
  --surface: rgba(20, 20, 34, 0.75);
  --surface-elevated: rgba(26, 26, 44, 0.88);
  --surface-hover: rgba(36, 36, 58, 0.8);
  --brand: #7c6eef;
  --brand-soft: rgba(124, 110, 239, 0.15);
  --brand-glow: rgba(124, 110, 239, 0.3);
  --accent: #7c6eef;
  --text-primary: #e8e8ee;
  --text-secondary: #9292a8;
  --text-tertiary: #56566e;
  --border: rgba(255, 255, 255, 0.06);
  --max: 1280px;
  --gutter: 24px;
  --player-height: 72px;
  --nav-height: 60px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --transition: 220ms cubic-bezier(0.33, 1, 0.68, 1);
}

/* === 自定义滚动条 === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }

/* === 导航 === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  width: 100%; max-width: var(--max); margin: 0 auto;
  gap: 32px;
}
.nav-logo {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-icon {
  width: 28px; height: 28px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
}
.nav-links {
  display: flex; gap: 24px;
}
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: var(--brand); border-radius: 1px;
}
.nav-search {
  margin-left: auto;
  position: relative;
}
.nav-search-input {
  width: 220px; height: 36px;
  padding: 0 12px 0 36px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 13px;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-search-input::placeholder { color: var(--text-tertiary); }
.nav-search-input:focus { background: rgba(255,255,255,0.1); box-shadow: 0 0 0 1px var(--brand); }
.nav-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-tertiary); font-size: 14px; pointer-events: none;
}
.nav-search-dropdown {
  position: absolute; top: 44px; left: 0; right: 0;
  background: var(--surface-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-search-dropdown.open {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--surface-hover); }
.search-result-img {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-type { font-size: 11px; color: var(--text-tertiary); }
.nav-user {
  display: flex; align-items: center; gap: 12px;
  margin-left: 16px;
}
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #b77eef);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
  cursor: pointer;
  transition: box-shadow var(--transition);
}
.nav-avatar:hover { box-shadow: 0 0 0 3px var(--brand-glow); }

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--text-primary); }
  .search-result-item:hover { background: var(--surface-hover); }
  .nav-avatar:hover { box-shadow: 0 0 0 3px var(--brand-glow); }
}

/* === 主体布局 === */
.main {
  padding-top: var(--nav-height);
  padding-bottom: var(--player-height);
  min-height: 100vh;
}
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
}

/* === Hero / 首要区域 === */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  min-height: 320px;
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,13,0.95) 0%, rgba(8,8,13,0.3) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 40px 36px;
  max-width: 640px;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--brand);
  margin-bottom: 12px;
}
.hero-title {
  font-size: 20px; font-weight: 700;
  line-height: 1.2; margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 20px;
  max-width: 480px;
}
.hero-actions {
  display: flex; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--brand); color: #fff;
}
.btn-primary:hover {
  background: #8f83f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--brand-glow);
}
.btn-secondary {
  background: rgba(255,255,255,0.08); color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.btn-icon:hover {
  background: rgba(255,255,255,0.1);
}
.btn-sm {
  height: 32px; padding: 0 16px; font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #8f83f2; transform: translateY(-1px); box-shadow: 0 4px 20px var(--brand-glow); }
  .btn-secondary:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
  .btn-icon:hover { background: rgba(255,255,255,0.1); }
}

/* === 区段通用 === */
.section {
  margin-bottom: 48px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.3px;
}
.section-link {
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition);
}
.section-link:hover { color: var(--brand); }

@media (hover: hover) and (pointer: fine) {
  .section-link:hover { color: var(--brand); }
}

/* === 横向滚动 === */
.h-scroll {
  display: flex; gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { height: 3px; }
.h-scroll > * {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* === 卡片（音乐） === */
.music-card {
  width: 180px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.music-card:hover {
  background: var(--surface-elevated);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.music-card-img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}
.music-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.music-card:hover .music-card-img { transform: scale(1.05); }
.music-card-play {
  position: absolute; bottom: 10px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  opacity: 0; transform: translateY(6px);
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(124,110,239,0.4);
}
.music-card:hover .music-card-play {
  opacity: 1; transform: translateY(0);
}
.music-card-body {
  padding: 12px 14px 14px;
}
.music-card-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.music-card-sub {
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (hover: hover) and (pointer: fine) {
  .music-card:hover { background: var(--surface-elevated); transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .music-card:hover .music-card-img { transform: scale(1.05); }
  .music-card:hover .music-card-play { opacity: 1; transform: translateY(0); }
}

/* === 曲目列表 === */
.track-list { }
.track-item {
  display: flex; align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.track-item:hover { background: var(--surface); }
.track-num {
  width: 28px; text-align: center;
  font-size: 12px; color: var(--text-tertiary);
  flex-shrink: 0;
}
.track-img {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; margin: 0 12px;
}
.track-info {
  flex: 1; min-width: 0;
}
.track-name {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-artist {
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-album {
  width: 180px; font-size: 12px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex-shrink: 0;
  display: none;
}
.track-duration {
  width: 40px; text-align: right;
  font-size: 12px; color: var(--text-tertiary);
  font-family: "SF Mono", "SFMono-Regular", monospace;
  flex-shrink: 0;
}
.track-actions {
  display: flex; gap: 4px;
  opacity: 0; margin-left: 8px;
  transition: opacity var(--transition);
}
.track-item:hover .track-actions { opacity: 1; }
.track-action {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-secondary);
  transition: all var(--transition);
}
.track-action:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.track-action.liked { color: var(--brand); }

@media (hover: hover) and (pointer: fine) {
  .track-item:hover { background: var(--surface); }
  .track-item:hover .track-actions { opacity: 1; }
  .track-action:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
}

/* === 网格 === */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* === 情绪标签 === */
.mood-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.mood-tag {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.mood-tag:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-soft);
}
.mood-tag.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

@media (hover: hover) and (pointer: fine) {
  .mood-tag:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }
}

/* === 艺人卡片 === */
.artist-card {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}
.artist-card:hover { transform: translateY(-4px); }
.artist-card-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  transition: box-shadow var(--transition);
}
.artist-card:hover .artist-card-img {
  box-shadow: 0 8px 30px rgba(124,110,239,0.3);
}
.artist-card-name {
  font-size: 13px; font-weight: 600;
  margin-bottom: 2px;
}
.artist-card-genre {
  font-size: 11px; color: var(--text-secondary);
}

@media (hover: hover) and (pointer: fine) {
  .artist-card:hover { transform: translateY(-4px); }
  .artist-card:hover .artist-card-img { box-shadow: 0 8px 30px rgba(124,110,239,0.3); }
}

/* === 艺人 Header (艺人页) === */
.artist-header {
  display: flex; gap: 32px; align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.artist-header-img {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}
.artist-header-info { flex: 1; }
.artist-header-role {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--brand); margin-bottom: 8px;
}
.artist-header-name {
  font-size: 20px; font-weight: 700;
  margin-bottom: 6px;
}
.artist-header-stat {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 20px;
}
.artist-header-actions {
  display: flex; gap: 12px;
}

/* === 专辑 Header (专辑页) === */
.album-header {
  display: flex; gap: 32px; align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.album-header-img {
  width: 200px; height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}
.album-header-info { flex: 1; }
.album-header-year {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--brand); margin-bottom: 8px;
}
.album-header-name {
  font-size: 20px; font-weight: 700;
  margin-bottom: 4px;
}
.album-header-artist {
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 4px;
}
.album-header-artist a { color: var(--text-primary); font-weight: 600; }
.album-header-artist a:hover { color: var(--brand); }
.album-header-stat {
  font-size: 12px; color: var(--text-tertiary);
  margin-bottom: 20px;
}
.album-header-actions {
  display: flex; gap: 12px;
}

/* === 歌单 Header (歌单页) === */
.playlist-header {
  display: flex; gap: 32px; align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.playlist-header-img {
  width: 200px; height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}
.playlist-header-info { flex: 1; }
.playlist-header-type {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--brand); margin-bottom: 8px;
}
.playlist-header-name {
  font-size: 20px; font-weight: 700;
  margin-bottom: 6px;
}
.playlist-header-desc {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 4px;
  max-width: 500px;
}
.playlist-header-stat {
  font-size: 12px; color: var(--text-tertiary);
  margin-bottom: 20px;
}
.playlist-header-actions {
  display: flex; gap: 12px;
}

/* === 探索页 Header === */
.explore-header {
  margin-bottom: 36px;
}
.explore-header h1 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 6px;
}
.explore-header p {
  font-size: 14px; color: var(--text-secondary);
}
.explore-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}

/* === 排行榜 === */
.chart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.chart-item:hover { background: var(--surface); }
.chart-rank {
  width: 24px; text-align: center;
  font-size: 16px; font-weight: 700;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.chart-rank.top-1 { color: #f0d06a; }
.chart-rank.top-2 { color: #c0c0d0; }
.chart-rank.top-3 { color: #c88a5a; }
.chart-img {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.chart-info { flex: 1; min-width: 0; }
.chart-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chart-artist {
  font-size: 12px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chart-stat {
  font-size: 12px; color: var(--text-tertiary);
  font-family: "SF Mono", "SFMono-Regular", monospace;
  text-align: right; flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .chart-item:hover { background: var(--surface); }
}

/* === 播放器 === */
.player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: var(--player-height);
  background: rgba(14, 14, 24, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 var(--gutter);
}
.player-inner {
  display: flex; align-items: center;
  width: 100%; max-width: var(--max); margin: 0 auto;
  gap: 16px;
}
.player-track {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; flex: 0 1 300px;
}
.player-cover {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.player-track-info { min-width: 0; }
.player-track-name {
  font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-track-artist {
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-controls {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.player-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 16px;
  transition: all var(--transition);
  cursor: pointer;
}
.player-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.player-btn-play {
  width: 40px; height: 40px;
  background: var(--brand); color: #fff; font-size: 18px;
  box-shadow: 0 2px 12px rgba(124,110,239,0.3);
}
.player-btn-play:hover {
  background: #8f83f2; color: #fff;
  box-shadow: 0 4px 20px rgba(124,110,239,0.4);
}
.player-progress-wrap {
  flex: 1; min-width: 80px;
  display: flex; align-items: center; gap: 8px;
}
.player-time {
  font-size: 10px; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  flex-shrink: 0;
}
.player-progress {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  position: relative; cursor: pointer;
  transition: height var(--transition);
}
.player-progress:hover { height: 6px; }
.player-progress-fill {
  height: 100%; width: 0%;
  background: var(--brand);
  border-radius: 2px;
  position: relative;
  transition: width 0.3s linear;
}
.player-progress-fill::after {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; opacity: 0;
  transition: opacity var(--transition);
}
.player-progress:hover .player-progress-fill::after { opacity: 1; }
.player-volume {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.player-volume-icon {
  color: var(--text-tertiary); font-size: 14px;
  cursor: pointer; transition: color var(--transition);
}
.player-volume-icon:hover { color: var(--text-primary); }
.player-volume-bar {
  width: 80px; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px; position: relative; cursor: pointer;
  transition: height var(--transition);
}
.player-volume-bar:hover { height: 6px; }
.player-volume-fill {
  height: 100%; width: 70%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.player-volume-fill::after {
  content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; opacity: 0;
  transition: opacity var(--transition);
}
.player-volume-bar:hover .player-volume-fill::after { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .player-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
  .player-btn-play:hover { background: #8f83f2; box-shadow: 0 4px 20px rgba(124,110,239,0.4); }
  .player-progress:hover { height: 6px; }
  .player-volume-bar:hover { height: 6px; }
}

/* === 播放控制 === */
.player-heart {
  color: var(--text-tertiary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.player-heart:hover { color: var(--brand); }
.player-heart.liked { color: var(--brand); }

@media (hover: hover) and (pointer: fine) {
  .player-heart:hover { color: var(--brand); }
}

/* === 骨架 / 占位 === */
.skeleton {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-card {
  width: 180px; height: 260px;
  border-radius: var(--radius-md);
}
.skeleton-line {
  height: 12px; margin-bottom: 6px;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* === Toast === */
.toast {
  position: fixed; bottom: calc(var(--player-height) + 16px); left: 50%; transform: translateX(-50%);
  background: var(--surface-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  transition: all var(--transition);
  white-space: nowrap;
  z-index: 300;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* === Modal / 浮层 === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface-elevated);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 90%; max-width: 500px;
  max-height: 80vh; overflow-y: auto;
  opacity: 0; transform: scale(0.95) translateY(8px);
  transition: all var(--transition);
}
.modal-overlay.open .modal {
  opacity: 1; transform: scale(1) translateY(0);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 16px; font-weight: 600;
}
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 18px;
  cursor: pointer; transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.modal-body {
  padding: 20px 24px;
}

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
}

/* === 创建歌单表单 === */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%; height: 40px;
  padding: 0 14px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  transition: background var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-input:focus { background: rgba(255,255,255,0.1); box-shadow: 0 0 0 1px var(--brand); }
.form-textarea {
  width: 100%; height: 80px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px; resize: vertical;
  transition: background var(--transition), box-shadow var(--transition);
}
.form-textarea::placeholder { color: var(--text-tertiary); }
.form-textarea:focus { background: rgba(255,255,255,0.1); box-shadow: 0 0 0 1px var(--brand); }
.form-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 20px;
}

/* === 通知列表 (下拉) === */
.notif-dropdown {
  position: absolute; top: 44px; right: 0;
  width: 320px;
  background: var(--surface-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.notif-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.notif-header h3 { font-size: 13px; font-weight: 600; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--surface-hover); }
.notif-item.unread { background: var(--brand-soft); }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
  margin-top: 5px;
}
.notif-content { flex: 1; min-width: 0; }
.notif-text { font-size: 12px; line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

@media (hover: hover) and (pointer: fine) {
  .notif-item:hover { background: var(--surface-hover); }
}

/* === 首屏检查：在隐藏品牌名后仍可识别 === */
/* 确定：音乐平台专辑+播放器即可识别 */

/* === 响应式 === */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .track-album { width: 140px; }
  .player-volume-bar { width: 60px; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; --player-height: 64px; }

  .nav-links { display: none; }
  .nav-search-input { width: 160px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .music-card { width: 100%; }
  .h-scroll .music-card { width: 160px; }

  .hero { min-height: 240px; border-radius: var(--radius-md); }
  .hero-content { padding: 24px 20px; }
  .hero-title { font-size: 18px; }

  .artist-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .artist-header-img { width: 140px; height: 140px; }
  .artist-header-actions { justify-content: center; }

  .album-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .album-header-img { width: 160px; height: 160px; }
  .album-header-actions { justify-content: center; }

  .playlist-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .playlist-header-img { width: 160px; height: 160px; }
  .playlist-header-actions { justify-content: center; }

  .player-track { flex: 0 1 140px; }
  .player-track-name { font-size: 11px; }
  .player-volume-bar { width: 40px; }
  .player-progress-wrap { display: none; }

  .track-album { display: none; }

  .section-title { font-size: 16px; }

  .explore-tags { gap: 6px; }
  .mood-tag { font-size: 11px; padding: 5px 14px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav-search-input { width: 120px; }
  .nav-greeting { display: none; }
  .player-track { flex: 0 1 100px; }
  .player-volume { display: none; }
  .artist-header-img { width: 100px; height: 100px; }
}

/* === 动效降级 === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === 非标准布局：重叠分层（首页Hero文字叠在专辑封面上） === */
.hero-layered {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  align-items: end;
  margin-bottom: 48px;
}
.hero-layered-content {
  padding: 40px 0;
}
.hero-layered-visual {
  position: relative;
  display: flex; justify-content: flex-end;
}
.hero-layered-img {
  width: 90%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.hero-layered-img-small {
  position: absolute;
  width: 45%;
  bottom: -20px; left: -10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--surface);
}

@media (max-width: 768px) {
  .hero-layered { grid-template-columns: 1fr; }
  .hero-layered-visual { display: none; }
}

/* === 非卡片分区：背景色差 === */
.section-bg-alt {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .section-bg-alt { padding: 20px; border-radius: var(--radius-md); }
}
