*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(20px) saturate(180%);
  --glass-blur-heavy: blur(40px) saturate(200%);
  --accent: #667eea;
  --accent2: #764ba2;
  --accent-blue: #00d2ff;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 24px;
  --nav-h: 64px;
  --player-h: 80px;
  --player-h-mobile: 56px;
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.bg-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: orbFloat 20s ease-in-out infinite; }
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #667eea, transparent 70%); top: -10%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #764ba2, transparent 70%); bottom: -5%; right: -5%; animation-delay: -7s; }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, #00d2ff, transparent 70%); top: 40%; left: 50%; animation-delay: -14s; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.05); } 66% { transform: translate(-20px, 30px) scale(0.95); } }

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}
.glass-input {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
}
.glass-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}
.glass-btn:hover { background: rgba(255, 255, 255, 0.14); }
.glass-btn-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.glass-btn-sm:hover { background: rgba(255, 255, 255, 0.14); color: var(--text-primary); }

.hidden { display: none !important; }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100; border-bottom: 1px solid var(--glass-border);
  border-radius: 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.logo {
  font-size: 22px; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; white-space: nowrap;
}
.nav-search { flex: 1; max-width: 480px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; height: 40px;
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 14px;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-icon { color: var(--text-muted); width: 18px; height: 18px; flex-shrink: 0; }
.search-clear { background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; padding: 2px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.source-select {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.source-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  border-radius: var(--radius-sm); overflow: hidden; z-index: 200;
}
.source-option {
  padding: 10px 16px; font-size: 13px; cursor: pointer; transition: background 0.15s;
}
.source-option:hover { background: rgba(255, 255, 255, 0.1); }
.source-option.active { color: var(--accent-blue); }
.mobile-search-btn { display: none; padding: 8px; }

.mobile-search-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  display: flex; flex-direction: column; padding: 12px 16px;
}
.mobile-search-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 48px; border-radius: var(--radius-pill);
}
.mobile-search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 16px;
}
.mobile-search-bar input::placeholder { color: var(--text-muted); }
.back-btn, .search-go-btn {
  background: none; border: none; color: var(--text-primary);
  cursor: pointer; display: flex; padding: 4px;
}

.main-content {
  position: relative; z-index: 1;
  height: 100vh; overflow-y: auto; overflow-x: hidden;
  padding-top: var(--nav-h); padding-bottom: 0;
  scroll-behavior: smooth;
}
.main-content.has-player { padding-bottom: var(--player-h); }
.page { padding: 24px 20px; max-width: 1200px; margin: 0 auto; animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.section-title {
  font-size: 20px; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.section-title .see-all {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  text-decoration: none; margin-left: auto; cursor: pointer;
}
.section-title .see-all:hover { color: var(--text-secondary); }

.playlist-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.playlist-card {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}
.playlist-card-cover {
  position: relative; width: 100%; padding-top: 100%; overflow: hidden;
}
.playlist-card-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.playlist-card-cover .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.2s;
}
.playlist-card:hover .play-overlay { opacity: 1; }
.play-overlay .play-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
}
.playlist-card-info { padding: 10px 12px; }
.playlist-card-name {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.playlist-card-count { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.rank-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.rank-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s;
}
.rank-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.rank-card-cover { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.rank-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-card-info { flex: 1; min-width: 0; }
.rank-card-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-card-update { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.song-list { display: flex; flex-direction: column; gap: 2px; }
.song-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background 0.15s;
}
.song-item:hover { background: rgba(255, 255, 255, 0.08); }
.song-item.playing { background: rgba(102, 126, 234, 0.15); }
.song-item .song-rank {
  width: 28px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-muted); flex-shrink: 0;
}
.song-item .song-rank.top-1 { color: #ffd700; }
.song-item .song-rank.top-2 { color: #c0c0c0; }
.song-item .song-rank.top-3 { color: #cd7f32; }
.song-item .song-cover-sm {
  width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
}
.song-item .song-cover-sm img { width: 100%; height: 100%; object-fit: cover; }
.song-item .song-meta { flex: 1; min-width: 0; }
.song-item .song-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-item .song-detail { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.song-item .song-duration { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.song-item .song-playing-icon {
  width: 20px; height: 20px; flex-shrink: 0; display: none;
}
.song-item.playing .song-playing-icon { display: flex; }
.song-item.playing .song-rank { display: none; }

.play-all-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-pill); border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; margin-bottom: 16px;
}
.play-all-btn:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }

.playlist-detail-header {
  display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start;
}
.playlist-detail-cover {
  width: 180px; height: 180px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.playlist-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist-detail-info { flex: 1; }
.playlist-detail-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.playlist-detail-creator { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.playlist-detail-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.playlist-detail-stats { font-size: 12px; color: var(--text-muted); }

.ranking-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.ranking-tab {
  padding: 8px 20px; border-radius: var(--radius-pill); font-size: 13px;
  cursor: pointer; transition: all 0.2s;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
.ranking-tab:hover { background: rgba(255, 255, 255, 0.1); }
.ranking-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent; color: white;
}

.platform-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.platform-tab {
  padding: 8px 18px; border-radius: var(--radius-pill); font-size: 13px;
  cursor: pointer; transition: all 0.2s;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
.platform-tab:hover { background: rgba(255, 255, 255, 0.1); }
.platform-tab.active {
  background: rgba(102, 126, 234, 0.2); border-color: var(--accent); color: var(--accent-blue);
}

.loading-spinner {
  display: flex; align-items: center; justify-content: center; padding: 40px;
  color: var(--text-muted); font-size: 14px; gap: 8px;
}
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--text-muted); text-align: center;
}
.empty-state i { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.4; }

.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--player-h); z-index: 100;
  border-top: 1px solid var(--glass-border); border-radius: 0;
}
.progress-bar-wrap {
  position: absolute; top: -2px; left: 0; right: 0; height: 4px;
  cursor: pointer; transition: height 0.15s;
}
.progress-bar-wrap:hover { height: 8px; }
.progress-bar-wrap:hover .progress-handle { opacity: 1; }
.progress-bar {
  height: 100%; width: 0; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  transition: width 0.1s linear; position: relative;
}
.progress-bar::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}
.progress-handle {
  position: absolute; top: 50%; right: -6px; width: 12px; height: 12px;
  border-radius: 50%; background: white; transform: translateY(-50%);
  opacity: 0; transition: opacity 0.15s;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
}
.player-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.player-song { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.player-cover {
  width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  position: relative;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); color: var(--text-muted);
}
.cover-placeholder i { width: 20px; height: 20px; }
.player-info { min-width: 0; }
.player-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.player-artist { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.player-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  background: none; border: none; color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; transition: all 0.15s;
}
.ctrl-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.08); }
.ctrl-btn i { width: 20px; height: 20px; }
.ctrl-play {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}
.ctrl-play:hover { color: white; box-shadow: 0 0 20px rgba(102, 126, 234, 0.4); transform: scale(1.05); }
.ctrl-play i { width: 22px; height: 22px; }
.player-extra { display: flex; align-items: center; gap: 4px; }
.time-display { font-size: 11px; color: var(--text-muted); white-space: nowrap; margin-right: 4px; }
.volume-wrap { display: flex; align-items: center; gap: 4px; }
.volume-slider {
  width: 80px; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, 0.15); border-radius: 2px; outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: white; cursor: pointer;
}

.lyric-panel {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 12, 41, 0.85);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  animation: fadeInUp 0.3s ease;
}
.lyric-panel-inner {
  width: 90%; max-width: 900px; height: 80vh; max-height: 600px;
  border-radius: 24px; display: flex; overflow: hidden; position: relative;
}
.lyric-panel-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  cursor: pointer; color: var(--text-secondary);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.15s;
}
.lyric-panel-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.lyric-panel-left {
  width: 40%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 32px; gap: 20px;
}
.lyric-cover {
  width: 200px; height: 200px; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.lyric-cover img { width: 100%; height: 100%; object-fit: cover; }
.lyric-song-info { text-align: center; }
.lyric-song-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.lyric-song-artist { font-size: 14px; color: var(--text-secondary); }
.lyric-panel-right { flex: 1; overflow: hidden; position: relative; }
.lyric-scroll {
  height: 100%; overflow-y: auto; padding: 40px 24px;
  mask-image: linear-gradient(transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(transparent, black 15%, black 85%, transparent);
}
.lyric-line {
  padding: 8px 0; font-size: 15px; color: var(--text-muted);
  transition: all 0.3s; cursor: pointer; line-height: 1.6;
}
.lyric-line:hover { color: var(--text-secondary); }
.lyric-line.active {
  font-size: 18px; font-weight: 600; color: var(--text-primary);
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.queue-panel {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: flex-end;
  background: rgba(0, 0, 0, 0.4);
}
.queue-panel-inner {
  width: 360px; max-width: 100%; height: 100%;
  display: flex; flex-direction: column; border-radius: 0;
  animation: slideInRight 0.25s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.queue-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--glass-border);
}
.queue-title { font-size: 16px; font-weight: 600; }
.queue-title span { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.queue-actions { display: flex; align-items: center; gap: 8px; }
.queue-list { flex: 1; overflow-y: auto; padding: 8px; }
.queue-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
.queue-item:hover { background: rgba(255, 255, 255, 0.06); }
.queue-item.playing { background: rgba(102, 126, 234, 0.15); }
.queue-item-info { flex: 1; min-width: 0; }
.queue-item-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-artist { font-size: 11px; color: var(--text-muted); }
.queue-item-remove {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  display: flex; padding: 4px; opacity: 0; transition: opacity 0.15s;
}
.queue-item:hover .queue-item-remove { opacity: 1; }

.mobile-player-full {
  position: fixed; inset: 0; z-index: 300;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  display: flex; flex-direction: column;
}
.mobile-player-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(60px) brightness(0.3); transform: scale(1.2);
}
.mobile-player-content {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  padding: 16px 24px; padding-top: env(safe-area-inset-top, 16px);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
.mobile-player-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.mobile-player-source { font-size: 13px; color: var(--text-secondary); }
.mobile-player-cover-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: 10px 0;
}
.mobile-player-cover {
  width: min(280px, 70vw); height: min(280px, 70vw);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.mobile-player-cover img { width: 100%; height: 100%; object-fit: cover; }
.mobile-player-info { text-align: center; padding: 12px 0; }
.mobile-player-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.mobile-player-artist { font-size: 14px; color: var(--text-secondary); }
.mobile-player-lyric {
  flex: 1; min-height: 60px; max-height: 120px; overflow: hidden;
  text-align: center; margin: 8px 0;
}
.mobile-player-lyric .lyric-scroll {
  height: 100%; overflow-y: auto; padding: 10px 0;
  mask-image: linear-gradient(transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(transparent, black 20%, black 80%, transparent);
}
.mobile-player-progress { padding: 0 0 8px; }
.progress-slider {
  width: 100%; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, 0.15); border-radius: 2px; outline: none;
}
.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: white; cursor: pointer;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}
.mobile-time-display { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.mobile-player-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px 0;
}
.ctrl-play-lg {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; border-radius: 50%;
}
.ctrl-play-lg:hover { color: white; box-shadow: 0 0 24px rgba(102, 126, 234, 0.5); }
.ctrl-play-lg i { width: 28px; height: 28px; }

.load-more-btn {
  display: block; margin: 20px auto; padding: 10px 32px;
  border-radius: var(--radius-pill); font-size: 13px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary); transition: all 0.2s;
}
.load-more-btn:hover { background: rgba(255, 255, 255, 0.1); }

@media (min-width: 640px) {
  .playlist-grid { grid-template-columns: repeat(3, 1fr); }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .playlist-grid { grid-template-columns: repeat(5, 1fr); }
  .rank-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-search-btn { display: none !important; }
}
@media (max-width: 768px) {
  .nav-search { display: none; }
  .mobile-search-btn { display: flex; }
  .source-select { padding: 6px 10px; font-size: 12px; }
  .player-bar { height: var(--player-h-mobile); }
  .player-bar .player-controls, .player-bar .player-extra { display: none; }
  .player-bar .player-inner { padding: 0 12px; }
  .player-bar .player-cover { width: 40px; height: 40px; }
  .player-bar .player-title { max-width: 180px; }
  .main-content.has-player { padding-bottom: var(--player-h-mobile); }
  .player-bar .player-song { flex: 1; }
  .player-bar-mobile-play {
    display: flex !important; width: 36px; height: 36px; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none; border-radius: 50%; color: white; cursor: pointer; flex-shrink: 0;
  }
  .lyric-panel-inner { width: 95%; height: 85vh; flex-direction: column; }
  .lyric-panel-left { width: 100%; padding: 20px; flex-direction: row; gap: 16px; }
  .lyric-cover { width: 64px; height: 64px; }
  .lyric-song-info { text-align: left; }
  .lyric-panel-right { flex: 1; }
  .queue-panel-inner { width: 100%; }
  .playlist-detail-header { flex-direction: column; align-items: center; text-align: center; }
  .playlist-detail-cover { width: 160px; height: 160px; }
  .page { padding: 16px 12px; }
  .playlist-grid { gap: 12px; }
  .rank-grid { grid-template-columns: 1fr; }
  .song-item { padding: 10px 8px; }
  .song-item .song-duration { display: none; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
