/* ===== 基础重置与变量 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-display: 'Noto Serif SC', Georgia, serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* 亮色主题 */
  --bg-primary: #faf8f5;
  --bg-secondary: #f0ece6;
  --bg-tertiary: #e8e2da;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-modal: rgba(250, 248, 245, 0.96);
  --bg-player: rgba(255, 255, 255, 0.88);
  
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-tertiary: #8a8a8a;
  --text-inverse: #faf8f5;
  
  --accent: #c45c3e;
  --accent-light: #d97b5f;
  --accent-dark: #a34a30;
  --accent-glow: rgba(196, 92, 62, 0.15);
  
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px var(--accent-glow);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #0f0e0e;
  --bg-secondary: #1a1818;
  --bg-tertiary: #242020;
  --bg-card: rgba(30, 28, 28, 0.72);
  --bg-modal: rgba(15, 14, 14, 0.96);
  --bg-player: rgba(26, 24, 24, 0.9);
  
  --text-primary: #f0ece6;
  --text-secondary: #b8b0a8;
  --text-tertiary: #7a726a;
  --text-inverse: #1a1a1a;
  
  --accent: #e07a5f;
  --accent-light: #e89a84;
  --accent-dark: #c45c3e;
  --accent-glow: rgba(224, 122, 95, 0.2);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

/* ===== 背景层 ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(196, 92, 62, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(196, 92, 62, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(196, 92, 62, 0.03) 0%, transparent 50%);
}

[data-theme="dark"] .bg-gradient {
  background: 
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(224, 122, 95, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(224, 122, 95, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(224, 122, 95, 0.04) 0%, transparent 50%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-glow);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-glow);
  bottom: 10%;
  right: -50px;
  animation-delay: -7s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-glow);
  top: 40%;
  left: 60%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

/* ===== 顶部导航 ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(250, 248, 245, 0.7);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}

[data-theme="dark"] .top-bar {
  background: rgba(15, 14, 14, 0.7);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.provider-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
}

.provider-btn {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.provider-btn:hover {
  color: var(--text-primary);
}

.provider-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

/* ===== 主内容区 ===== */
.main-content {
  position: relative;
  z-index: 1;
  padding: 100px 32px 140px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 搜索区域 ===== */
.search-section {
  margin-bottom: 48px;
}

.search-container {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.search-icon {
  font-size: 20px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-tertiary);
}

.search-clear {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-box:focus-within .search-clear,
.search-box input:not(:placeholder-shown) + .search-clear {
  opacity: 1;
}

.search-btn {
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.search-btn:active {
  transform: translateY(0);
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.search-hints.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hint-tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hint-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 结果区域 ===== */
.results-section {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.results-count {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== 歌曲卡片网格 ===== */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.song-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.song-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.song-card:hover .song-cover img {
  transform: scale(1.08);
}

.song-card:hover .song-play-overlay {
  opacity: 1;
}

.song-cover-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.song-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.song-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.song-play-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 22px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(196, 92, 62, 0.4);
}

.song-play-btn:hover {
  transform: scale(1.1);
  background: var(--accent-light);
}

.song-info {
  padding: 16px;
}

.song-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

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

.song-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.song-duration {
  font-size: 12px;
  color: var(--text-tertiary);
}

.song-provider {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* ===== 加载更多 ===== */
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.load-more-btn {
  padding: 12px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 播放器条 ===== */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-player);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-top: 1px solid var(--border);
  transition: transform var(--transition-base);
}

.player-progress {
  height: 3px;
  background: var(--bg-tertiary);
  cursor: pointer;
  position: relative;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
  position: relative;
}

.player-progress-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.player-progress:hover .player-progress-fill::after {
  opacity: 1;
}

.player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  gap: 24px;
}

.player-song {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.player-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
  position: relative;
}

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

.player-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-tertiary);
}

.player-info {
  min-width: 0;
}

.player-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.ctrl-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ctrl-btn:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.play-btn {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 16px;
}

.play-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

.player-extra {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.player-time {
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-tertiary);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.modal-content {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
  backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

.modal-body {
  display: flex;
  gap: 24px;
  padding: 32px;
}

.modal-cover {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
  position: relative;
}

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

.modal-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-tertiary);
}

.modal-details {
  flex: 1;
  min-width: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.meta-item {
  font-size: 13px;
  color: var(--text-tertiary);
}

.meta-item::before {
  content: attr(data-label);
  color: var(--text-secondary);
  margin-right: 4px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.action-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
}

.action-btn.primary:hover {
  background: var(--accent-dark);
}

.modal-lyrics {
  padding: 0 32px 32px;
  border-top: 1px solid var(--border);
}

.modal-lyrics h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 20px 0 12px;
}

.lyrics-content {
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-line;
}

/* ===== 歌词浮层 ===== */
.lyric-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg-modal);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.lyric-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lyric-close:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

.lyric-content {
  font-size: 18px;
  line-height: 2.4;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  white-space: pre-line;
}

.lyric-content .current {
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
}

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

/* ===== 骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeletonShine 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: var(--text-tertiary);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 16px;
}

/* ===== 加载动画 ===== */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--bg-tertiary);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 16px;
  }
  
  .logo-text {
    display: none;
  }
  
  .provider-tabs {
    gap: 2px;
  }
  
  .provider-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .main-content {
    padding: 88px 16px 140px;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  .search-btn {
    width: 100%;
  }
  
  .songs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .player-inner {
    padding: 10px 16px;
    gap: 12px;
  }
  
  .player-extra {
    display: none;
  }
  
  .modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }
  
  .modal-cover {
    width: 140px;
    height: 140px;
  }
  
  .modal-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .songs-grid {
    grid-template-columns: 1fr;
  }
  
  .player-controls {
    gap: 8px;
  }
  
  .ctrl-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .play-btn {
    width: 40px;
    height: 40px;
  }
}
