/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #f472b6;
  --accent-light: #f9a8d4;
  --bg-dark: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-glass: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --sidebar-width: 240px;
  --player-height: 90px;
  --mobile-nav-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== Background Animation ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: floatBg 20s ease-in-out infinite;
}

.bg-circle.c1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-circle.c2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.bg-circle.c3 {
  width: 400px;
  height: 400px;
  background: #06b6d4;
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes floatBg {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* ===== App Layout ===== */
.app {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  padding: 24px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 24px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-light);
}

.logo span {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  user-select: none;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(244, 114, 182, 0.1));
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 40px;
  padding-bottom: calc(var(--player-height) + 32px);
  scroll-behavior: smooth;
}

.main-content::-webkit-scrollbar {
  width: 6px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Pages ===== */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Section Title ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  margin-top: 32px;
}

.section-title:first-of-type {
  margin-top: 0;
}

.section-title h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.badge {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== Card Grid (推荐) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.song-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.song-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.song-card-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(244, 114, 182, 0.3));
}

.song-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.song-card:hover .song-card-cover img {
  transform: scale(1.08);
}

.song-card-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
}

.song-card:hover .song-card-play {
  opacity: 1;
  transform: translateY(0);
}

.song-card-play svg {
  width: 18px;
  height: 18px;
  color: #fff;
  fill: #fff;
  margin-left: 2px;
}

.song-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-card-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Playlist Row (热门歌单) ===== */
.playlist-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.playlist-row::-webkit-scrollbar {
  height: 4px;
}

.playlist-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.playlist-card {
  min-width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}

.playlist-card:hover {
  transform: translateY(-4px);
}

.playlist-card-cover {
  width: 200px;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.playlist-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.playlist-card-overlay h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.playlist-card-overlay p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== Song List ===== */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.song-row:hover {
  background: var(--bg-card-hover);
}

.song-row.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(244, 114, 182, 0.08));
}

.song-row-index {
  width: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.song-row.active .song-row-index {
  color: var(--primary-light);
}

.song-row-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(244, 114, 182, 0.3));
}

.song-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-row-info {
  flex: 1;
  min-width: 0;
}

.song-row-title {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-row-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-row-album {
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.song-row-duration {
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.song-row-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: var(--transition);
}

.song-row:hover .song-row-actions {
  opacity: 1;
}

/* ===== Search ===== */
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 14px 20px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-box svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  display: none;
  transition: var(--transition);
}

.search-clear:hover {
  color: var(--text-primary);
}

/* ===== Search Suggestions ===== */
.search-suggestions {
  position: relative;
  z-index: 50;
  margin-top: -8px;
  margin-bottom: 12px;
}

.search-suggestions:empty {
  display: none;
}

.search-suggestion-item {
  padding: 10px 20px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.88rem;
  transition: var(--transition);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-top: none;
}

.search-suggestion-item:first-child {
  border-top: 1px solid var(--border-glass);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.search-suggestion-item:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.search-suggestion-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ===== Loading Overlay ===== */
.loading-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loading-overlay.show {
  display: flex;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.tag:hover, .tag.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: var(--primary-light);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  gap: 16px;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ===== Playlist Controls ===== */
.playlist-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.song-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: auto;
}

/* ===== Lyrics Page ===== */
.lyrics-page {
  display: flex;
  gap: 40px;
  height: calc(100vh - var(--player-height) - 96px);
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.lyrics-cover-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 320px;
  flex-shrink: 0;
}

.lyrics-disc {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  padding: 30px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.3);
  position: relative;
  margin-bottom: 24px;
}

.lyrics-disc::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lyrics-disc.spinning {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.disc-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(244, 114, 182, 0.3));
}

.disc-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lyrics-song-info {
  text-align: center;
}

.lyrics-song-info h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.lyrics-song-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lyrics-scroll-area {
  flex: 1;
  overflow-y: auto;
  mask-image: linear-gradient(transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(transparent, black 15%, black 85%, transparent);
  padding: 40px 0;
  display: flex;
  align-items: flex-start;
}

.lyrics-scroll-area::-webkit-scrollbar {
  width: 4px;
}

.lyrics-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.lyrics-container {
  width: 100%;
  padding: 40px 20px;
}

.lyrics-line {
  padding: 10px 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.4s ease;
  cursor: pointer;
  line-height: 1.8;
}

.lyrics-line:hover {
  color: var(--text-secondary);
}

.lyrics-line.active {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  transform: scale(1.02);
}

.lyrics-placeholder {
  text-align: center;
  font-size: 1rem;
  padding-top: 40%;
}

/* ===== About Page ===== */
.about-page {
  max-width: 700px;
  margin: 0 auto;
}

.about-hero {
  text-align: center;
  padding: 40px 0 48px;
}

.about-logo-large {
  display: inline-flex;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(244, 114, 182, 0.15));
  border: 1px solid var(--border-glass);
  margin-bottom: 20px;
  color: var(--primary-light);
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.version {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.about-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.about-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.about-card-icon {
  color: var(--primary-light);
  margin-bottom: 14px;
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.about-footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--border-glass);
}

.about-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== Player Bar ===== */
.player-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--player-height);
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  z-index: 100;
}

.player-song-info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  flex-shrink: 0;
}

.player-cover {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(244, 114, 182, 0.3));
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.player-cover img.loaded {
  display: block;
}

.player-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.player-cover img.loaded + .player-cover-placeholder {
  display: none;
}

.player-text {
  min-width: 0;
  flex: 1;
}

.player-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.like-btn.liked svg {
  fill: #ef4444;
  stroke: #ef4444;
}

/* ===== Player Controls ===== */
.player-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 600px;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-icon.active {
  color: var(--primary-light);
}

.play-btn {
  width: 44px;
  height: 44px;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.play-btn:hover {
  background: var(--primary-dark) !important;
  transform: scale(1.05);
}

.play-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Progress Bar ===== */
.progress-area {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-current, .time-total {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar:hover {
  height: 6px;
}

.progress-filled {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-thumb {
  opacity: 1;
}

/* ===== Player Extra ===== */
.player-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.volume-filled {
  height: 100%;
  background: var(--text-secondary);
  border-radius: 2px;
  width: 70%;
}

.volume-thumb {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.volume-slider:hover .volume-thumb {
  opacity: 1;
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-glass);
  justify-content: space-around;
  align-items: center;
  z-index: 200;
  padding: 0 8px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  user-select: none;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-item span {
  font-size: 0.65rem;
  font-weight: 500;
}

.mobile-nav-item.active {
  color: var(--primary-light);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .song-row-album {
    display: none;
  }

  .lyrics-page {
    flex-direction: column;
    align-items: center;
  }

  .lyrics-cover-area {
    width: 100%;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
  }

  .lyrics-disc {
    width: 120px;
    height: 120px;
    padding: 15px;
    margin-bottom: 0;
  }

  .lyrics-song-info {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .main-content {
    padding: 20px 16px;
    padding-bottom: calc(var(--player-height) + var(--mobile-nav-height) + 20px);
  }

  .player-bar {
    left: 0;
    bottom: var(--mobile-nav-height);
    height: auto;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .player-song-info {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .player-controls {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .player-extra {
    width: auto;
  }

  .volume-control {
    display: none;
  }

  .control-buttons {
    gap: 12px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .lyrics-page {
    height: auto;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }
}

/* ===== Animations ===== */
.song-card, .song-row, .about-card {
  animation: slideUp 0.5s ease backwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.song-card:nth-child(1) { animation-delay: 0.05s; }
.song-card:nth-child(2) { animation-delay: 0.1s; }
.song-card:nth-child(3) { animation-delay: 0.15s; }
.song-card:nth-child(4) { animation-delay: 0.2s; }
.song-card:nth-child(5) { animation-delay: 0.25s; }
.song-card:nth-child(6) { animation-delay: 0.3s; }

.song-row:nth-child(1) { animation-delay: 0.03s; }
.song-row:nth-child(2) { animation-delay: 0.06s; }
.song-row:nth-child(3) { animation-delay: 0.09s; }
.song-row:nth-child(4) { animation-delay: 0.12s; }
.song-row:nth-child(5) { animation-delay: 0.15s; }
.song-row:nth-child(6) { animation-delay: 0.18s; }
.song-row:nth-child(7) { animation-delay: 0.21s; }
.song-row:nth-child(8) { animation-delay: 0.24s; }
.song-row:nth-child(9) { animation-delay: 0.27s; }
.song-row:nth-child(10) { animation-delay: 0.3s; }

/* ===== Notification Toast ===== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(0);
}
