/* =============================================================
   云上音乐 — NetEase Cloud Music Inspired Design
   ============================================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', sans-serif; }
body {
  background: #0f0f1a;
  color: #e0e0e8;
  display: flex;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
::-webkit-scrollbar { width: 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.2); }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }
input { background: none; border: none; outline: none; color: inherit; font-family: inherit; }

/* =============================================================
   COLORS
   Primary:   #C20C0C (NetEase Red)
   Hover:     #A30A0A
   BG:        #0f0f1a (dark)
   Card bg:   #1a1a2e
   Card hover:#222240
   Text:      #e0e0e8
   Muted:     #808090
   Border:    rgba(255,255,255,0.06)
   ============================================================= */

/* =============================================================
   LEFT SIDEBAR
   ============================================================= */
.sidebar {
  width: 220px; min-width: 220px;
  height: calc(100vh - 72px);
  background: #13131f;
  display: flex; flex-direction: column;
  padding: 20px 0 0;
  position: relative; z-index: 10;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar-header { padding: 0 20px 18px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  font-size: 24px;
  color: #C20C0C;
}
.logo-text {
  font-size: 18px; font-weight: 700;
  color: #f0f0f5;
  letter-spacing: 1px;
}
.logo-sub {
  font-size: 10px; color: rgba(255,255,255,0.2);
  letter-spacing: 3px;
  margin-left: 32px; margin-top: 2px;
}

/* Navigation */
.nav-menu { padding: 0 10px; margin-bottom: 12px; }
.nav-item {
  display: flex; align-items: center;
  gap: 10px; padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  transition: all 0.2s;
  margin-bottom: 2px;
}
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
.nav-item.active { color: #fff; background: rgba(194,12,12,0.15); }
.nav-item.active svg { color: #C20C0C; }

.sidebar-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 0 20px 14px; }
.sidebar-section-title {
  padding: 0 20px; margin-bottom: 10px;
  font-size: 11px; color: rgba(255,255,255,0.25);
  letter-spacing: 1px; font-weight: 500;
}
.sidebar-playlists { flex: 1; overflow-y: auto; padding: 0 10px; }
.playlist-item {
  display: flex; align-items: center;
  gap: 10px; padding: 8px 14px;
  border-radius: 8px; font-size: 13px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.playlist-item:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.04); }
.playlist-item.active { color: #fff; background: rgba(194,12,12,0.12); }
.playlist-item .pl-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.playlist-item .pl-count {
  margin-left: auto; font-size: 11px;
  color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  padding: 1px 8px; border-radius: 10px;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.user-badge { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #C20C0C, #8B0000);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.user-name { font-size: 13px; color: rgba(255,255,255,0.6); }

/* =============================================================
   MAIN CONTENT
   ============================================================= */
.main-content {
  flex: 1;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 0;
  position: relative;
  background: #0f0f1a;
}

/* Pages */
.page { display: none; padding: 24px 32px 80px; }
.page.active { display: block; }

/* ---- Banner ---- */
.banner-section { margin-bottom: 32px; }
.banner {
  position: relative;
  height: 220px; border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.banner-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.banner-slide.active { opacity: 1; }
.banner-text h2 {
  font-size: 32px; font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 8px;
}
.banner-text p {
  font-size: 14px; color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}
.banner-note {
  position: absolute; right: 40px; top: 50%;
  transform: translateY(-50%);
  font-size: 80px; color: rgba(255,255,255,0.06);
  font-weight: 900;
  letter-spacing: 8px;
}
.banner-dots {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer; transition: all 0.3s;
}
.banner-dot.active { width: 24px; border-radius: 4px; background: #C20C0C; }

/* ---- Sections ---- */
.section { margin-bottom: 36px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h3 { font-size: 18px; font-weight: 700; color: #f0f0f5; }
.section-more { font-size: 12px; color: rgba(255,255,255,0.3); cursor: pointer; transition: color 0.2s; }
.section-more:hover { color: #C20C0C; }

/* ---- Playlist Grid (Discover) ---- */
.playlist-grid {
  display: grid;
  gap: 20px;
}
#page-discover .playlist-grid { grid-template-columns: repeat(3, 1fr); }
.playlist-card {
  cursor: pointer;
  transition: transform 0.25s ease;
}
.playlist-card:hover { transform: translateY(-4px); }
.playlist-card:hover .card-play-overlay { opacity: 1; }

.card-img {
  position: relative;
  width: 100%; aspect-ratio: 2 / 1;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
}
.card-img svg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.card-play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.card-play-overlay svg {
  width: 22px; height: 22px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.card-info { padding: 10px 0; }
.card-title { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 4px; }
.card-desc { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ---- Song Table (Discover) ---- */
.song-table { }
.song-table-row {
  display: grid;
  grid-template-columns: 40px 1fr 100px 90px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 12px;
}
.song-table-row:hover { background: rgba(255,255,255,0.04); }
.song-table-row.playing { background: rgba(194,12,12,0.08); }
.song-table-row.playing .st-title { color: #C20C0C; }

.st-index { font-size: 13px; color: rgba(255,255,255,0.25); text-align: center; }
.song-table-row.playing .st-index::after { content: '♫'; color: #C20C0C; }
.song-table-row.playing .st-index { font-size: 0; }
.st-info { min-width: 0; }
.st-title { font-size: 13px; color: rgba(255,255,255,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-artist { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }
.st-genre { font-size: 11px; color: rgba(255,255,255,0.3); text-align: center; }
.st-duration { font-size: 12px; color: rgba(255,255,255,0.3); text-align: right; }
.st-actions { display: flex; gap: 4px; }
.st-dl {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.st-dl svg { width: 14px; height: 14px; }
.song-table-row:hover .st-dl { color: rgba(255,255,255,0.4); }
.st-dl:hover { color: #C20C0C !important; background: rgba(194,12,12,0.1); }

/* ---- Playlist Page ---- */
.page-title-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}
.page-title-bar h2 { font-size: 22px; font-weight: 700; }
.search-bar {
  position: relative; width: 260px;
}
.search-bar .search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
}
#searchInput {
  width: 100%; padding: 10px 12px 10px 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 13px; color: #e0e0e8;
  transition: all 0.3s;
}
#searchInput:focus { border-color: rgba(194,12,12,0.4); background: rgba(255,255,255,0.08); }
#searchInput::placeholder { color: rgba(255,255,255,0.2); }

.playlist-controls {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 20px;
}
.btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-play-all {
  background: #C20C0C;
  color: #fff;
}
.btn-play-all:hover { background: #A30A0A; transform: scale(1.02); }
.btn-dl-all {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-dl-all:hover { background: rgba(255,255,255,0.1); color: #fff; }
.song-count { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.3); }

/* Song list rows */
.song-list { }
.song-row {
  display: grid;
  grid-template-columns: 44px 48px 1fr 80px 60px 32px 32px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.song-row:last-child { border-bottom: none; }
.song-row:hover { background: rgba(255,255,255,0.04); }
.song-row.playing { background: rgba(194,12,12,0.08); }
.song-row.playing .sr-title { color: #C20C0C; }

.sr-index { font-size: 13px; color: rgba(255,255,255,0.2); text-align: center; }
.song-row.playing .sr-index::after { content: '♫'; color: #C20C0C; }
.song-row.playing .sr-index { font-size: 0; }

.sr-thumb {
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  margin-right: 4px;
}
.sr-thumb .thumb-bg { position: absolute; inset: 0; z-index: 0; }
.sr-thumb span { position: relative; z-index: 1; }

.sr-info { min-width: 0; }
.sr-title { font-size: 13px; color: rgba(255,255,255,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-artist { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }
.sr-genre { font-size: 11px; color: rgba(255,255,255,0.3); text-align: center; }
.sr-duration { font-size: 12px; color: rgba(255,255,255,0.3); text-align: right; }
.sr-dl {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.sr-dl svg { width: 14px; height: 14px; }
.song-row:hover .sr-dl { color: rgba(255,255,255,0.4); }
.sr-dl:hover { color: #C20C0C !important; background: rgba(194,12,12,0.1); }

/* ---- Downloads Page ---- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.dl-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: all 0.3s;
}
.dl-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(194,12,12,0.2); }
.dl-card-thumb {
  width: 56px; height: 56px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.dl-card-info { flex: 1; min-width: 0; }
.dl-card-title { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); }
.dl-card-meta { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 4px; }
.dl-card-btn {
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 12px;
  background: rgba(194,12,12,0.1);
  color: #C20C0C;
  transition: all 0.25s;
  flex-shrink: 0;
}
.dl-card-btn:hover { background: rgba(194,12,12,0.2); }

/* ---- Lyrics Overlay ---- */
.lyrics-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
}
.lyrics-overlay.active { display: flex; }
.lyrics-panel {
  width: 90%; max-width: 520px;
  max-height: 70vh;
}
.lyrics-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.lyrics-header h3 { font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.6); }
.lyrics-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.lyrics-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lyrics-scroll { max-height: 60vh; overflow-y: auto; padding-right: 8px; }
.lyrics-content {
  line-height: 2.2;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  white-space: pre-wrap;
  text-align: center;
}
.lyrics-content .section-header {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  letter-spacing: 3px;
  margin-top: 16px;
  margin-bottom: 4px;
}
.lyrics-content .section-header:first-child { margin-top: 0; }
.lyrics-content p { transition: all 0.3s; }
.lyrics-content p.current { color: #C20C0C; font-size: 17px; font-weight: 500; }
.lyrics-placeholder { text-align: center; color: rgba(255,255,255,0.2); font-size: 14px; }

/* =============================================================
   RIGHT SIDEBAR (Queue)
   ============================================================= */
.right-sidebar {
  width: 260px; min-width: 260px;
  height: calc(100vh - 72px);
  background: #13131f;
  border-left: 1px solid rgba(255,255,255,0.04);
  display: none;
  flex-direction: column;
}
.right-sidebar.open { display: flex; }
.right-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.right-sidebar-header h4 { font-size: 14px; font-weight: 600; }
.right-sidebar-header button {
  font-size: 12px; color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.right-sidebar-header button:hover { color: #C20C0C; }
.queue-list { flex: 1; overflow-y: auto; padding: 12px; }
.queue-empty {
  text-align: center; padding: 40px 20px;
  font-size: 13px; color: rgba(255,255,255,0.2);
}

/* =============================================================
   TOAST
   ============================================================= */
.toast {
  position: fixed; bottom: 84px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 24px;
  border-radius: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .right-sidebar { display: none !important; }
  .player-left { min-width: 120px; width: 140px; }
  .player-right { min-width: 36px; }
  .playlist-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 768px) {
  .page { padding: 16px 16px 80px; }
  .banner { height: 160px; }
  .banner-text h2 { font-size: 22px; }
  .banner-note { font-size: 50px; right: 20px; }
  .playlist-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .player-left { min-width: 100px; width: 120px; }
  .player-right { min-width: 32px; }
  .volume-slider-h { width: 50px; }
  .player-center { max-width: 300px; }
  .player-controls { gap: 10px; }
  .page-title-bar { flex-direction: column; align-items: flex-start; }
  .page-title-bar .header-right-group { width: 100%; }
  .search-bar { flex: 1; }
  .song-row { grid-template-columns: 20px 32px 1fr 32px 28px 28px; gap: 4px; padding: 8px 8px; }
  .sr-genre { display: none; }
  .sr-thumb { width: 32px; height: 32px; font-size: 13px; margin-right: 0; }
  .sr-thumb span { font-size: 13px; }
  .sr-duration { font-size: 11px; }
  .sr-dl, .song-row .sr-share { width: 26px; height: 26px; justify-self: center; }
  .sr-dl svg, .song-row .sr-share svg { width: 12px; height: 12px; }
}

/* ---- Lyrics Sync Scroll ---- */
.lyrics-content p[data-lyric] {
  transition: all 0.4s ease;
  cursor: default;
  padding: 2px 0;
}
.lyrics-content p[data-lyric].current {
  color: #C20C0C;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(194,12,12,0.15);
  transform: scale(1.02);
}
.lyrics-content p[data-lyric] {
  color: rgba(255,255,255,0.4);
  font-size: 15px;
  line-height: 2;
}
.lyrics-scroll {
  scroll-behavior: smooth;
}

/* =============================================================
   LYRICS FLOATING VIEW
   ============================================================= */
.lyrics-view {
  position: fixed; top: 0; left: 220px; right: 0; bottom: 68px;
  z-index: 40;
  background: rgba(10, 10, 20, 0.97);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.lyrics-view.active { display: flex; }

.lyrics-view-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 60px 40px 120px;
  scroll-behavior: smooth;
}
.lyrics-view-scroll::-webkit-scrollbar { width: 0; }

.lyrics-view-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lyrics-view-content .section-header {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  letter-spacing: 3px;
  margin: 30px 0 8px;
  font-weight: 400;
}
.lyrics-view-content .section-header:first-child { margin-top: 0; }

.lyrics-view-content p {
  color: rgba(255,255,255,0.25);
  font-size: 20px;
  line-height: 2;
  padding: 4px 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
}

.lyrics-view-content p[data-lyric].current {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  transform: scale(1.05);
  text-shadow: 0 0 40px rgba(194,12,12,0.2);
}

.lyrics-view-content p.current ~ p {
  color: rgba(255,255,255,0.5);
}

.lyrics-view-close {
  position: fixed;
  top: 16px; left: 240px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.25s;
  z-index: 41;
  border: 1px solid rgba(255,255,255,0.06);
}
.lyrics-view-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.lyrics-view-close svg { width: 20px; height: 20px; }

.lyrics-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.15) !important;
  font-size: 16px !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .lyrics-view { left: 0; }
  .lyrics-view-close { left: 16px; }
  .lyrics-view-scroll { padding: 40px 20px 100px; }
  .lyrics-view-content p { font-size: 16px; }
  .lyrics-view-content p[data-lyric].current { font-size: 20px; }
}

/* =============================================================
   INLINE LYRICS (embedded in page, scrolls naturally)
   ============================================================= */
.lyrics-inline {
  margin-top: 8px;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.lyrics-inline-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding: 24px 32px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}
.lyrics-inline-scroll::-webkit-scrollbar { width: 3px; }

.lyrics-inline-content {
  text-align: center;
  line-height: 2.2;
}

.lyrics-inline-content .section-header {
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  letter-spacing: 3px;
  margin: 18px 0 4px;
}

.lyrics-inline-content p {
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2px 0;
}

.lyrics-inline-content p[data-lyric].current {
  color: #C20C0C;
  font-size: 19px;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(194,12,12,0.12);
  transform: scale(1.03);
}

.lyrics-inline-content .lyrics-placeholder {
  color: rgba(255,255,255,0.15) !important;
  font-size: 14px !important;
}

@media (max-width: 768px) {
  .lyrics-inline-scroll { padding: 16px; max-height: 300px; }
  .lyrics-inline-content p { font-size: 14px; }
  .lyrics-inline-content p[data-lyric].current { font-size: 16px; }
}

/* ---- Player Bar Lyric Line ---- */
.player-center-lyric {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  transition: all 0.4s ease;
  min-height: 18px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.player-center-lyric.active {
  color: #C20C0C;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(194,12,12,0.15);
}

/* =============================================================
   BOTTOM PLAYER BAR — COMPLETE REDESIGN
   ============================================================= */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 72px;
  background: #181828;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: stretch;
  padding: 0 16px;
  z-index: 50;
  gap: 8px;
}

/* Left */
.player-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  width: 180px;
  flex-shrink: 0;
}
.player-cover {
  width: 48px; height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #2a2a3e);
  transition: all 0.3s;
}
.player-song-info {
  min-width: 0;
  flex: 1;
}
.player-title {
  font-size: 14px;
  font-weight: 500;
  color: #f0f0f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-artist {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-like-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2);
  transition: all 0.2s;
  flex-shrink: 0;
}
.player-like-btn svg { width: 18px; height: 18px; }
.player-like-btn:hover { color: #C20C0C; }
.player-like-btn.liked { color: #C20C0C; }

/* Center */
.player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 12px;
}
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.pc-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  border-radius: 50%;
}
.pc-btn svg { width: 18px; height: 18px; }
.pc-btn:hover { color: rgba(255,255,255,0.85); }
.pc-btn.active { color: #C20C0C; }
.pc-btn.one { color: #C20C0C; }

.pc-play {
  width: 36px; height: 36px;
  background: #fff;
  color: #0f0f1a !important;
  border-radius: 50%;
}
.pc-play:hover { transform: scale(1.05); }
.pc-play svg { width: 20px; height: 20px; margin-left: 2px; }

.pc-sm { width: 28px; height: 28px; }
.pc-sm svg { width: 16px; height: 16px; }


/* Progress Row */
.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.time {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', monospace;
  min-width: 32px;
}
.time:last-child { text-align: right; }
.progress-bar {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.1s;
}
.progress-bar:hover { height: 5px; }
.progress-fill {
  height: 100%;
  background: #C20C0C;
  border-radius: 3px;
  width: 0%;
  position: relative;
}
.progress-thumb {
  position: absolute; right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.progress-bar:hover .progress-thumb { opacity: 1; }

/* Right */
.player-right {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 40px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.volume-slider-h { width: 60px; }
.volume-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.volume-fill {
  height: 100%;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
  width: 80%;
}
.volume-thumb {
  position: absolute; right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.volume-track:hover .volume-thumb { opacity: 1; }

/* =============================================================
   MOBILE PLAYER BAR
   ============================================================= */
@media (max-width: 800px) {
  .player-bar {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px 6px;
    gap: 4px;
  }
  /* Left: album art + title only, shorter */
  .player-left {
    width: auto;
    min-width: 0;
    flex: 1;
    gap: 8px;
  }
  .player-cover { width: 40px; height: 40px; font-size: 16px; }
  .player-title { font-size: 12px; }
  .player-artist { font-size: 10px; }
  .player-like-btn { display: none; }

  /* Center: full width below left */
  .player-center {
    order: 3;
    max-width: 100%;
    width: 100%;
    padding: 2px 0 0;
    gap: 2px;
  }
  .player-controls { gap: 10px; }
  .pc-play { width: 30px; height: 30px; }
  .pc-play svg { width: 18px; height: 18px; }
  .player-center-lyric {
    font-size: 11px;
    min-height: 14px;
    line-height: 14px;
  }
  .progress-row { gap: 6px; }
  .time { font-size: 10px; min-width: 28px; }
  .progress-bar { height: 2px; }

  /* Right: fewer buttons on mobile */
  .player-right {
    min-width: 0;
    gap: 0;
  }
  .player-right .pc-sm { width: 24px; height: 24px; }
  .player-right .pc-sm svg { width: 14px; height: 14px; }
  .volume-slider-h { width: 36px; }
  #lyricsBtn { display: none; }
}

@media (max-width: 480px) {
  .player-bar {
    padding: 6px 8px 4px;
  }
  .player-left { gap: 6px; }
  .player-cover { width: 36px; height: 36px; font-size: 14px; }
  .player-title { font-size: 11px; }
  .player-artist { font-size: 10px; display: none; }
  .pc-btn { width: 24px; height: 24px; }
  .pc-btn svg { width: 14px; height: 14px; }
  .pc-play { width: 28px; height: 28px; }
  .pc-play svg { width: 16px; height: 16px; }
  .player-center-lyric { font-size: 10px; min-height: 12px; line-height: 12px; }
  .player-right .pc-sm { width: 20px; height: 20px; }
  .player-right .pc-sm svg { width: 12px; height: 12px; }
  .volume-slider-h { width: 24px; }
}

/* Old duplicate CSS removal */


/* =============================================================
   LYRICS STRIP (above player bar)
   ============================================================= */
.lyrics-strip {
  position: fixed;
  bottom: 144px; left: 0; right: 0;
  height: 60px;
  background: rgba(24, 24, 40, 0.95);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 49;
  padding: 0 40px;
  backdrop-filter: blur(8px);
}
.lyrics-strip-text {
  font-size: 20px;
  color: rgba(255,255,255,0.2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 800px;
  transition: all 0.5s ease;
  letter-spacing: 2px;
  line-height: 1.4;
}
.lyrics-strip-text.active {
  color: #C20C0C;
  font-weight: 600;
  font-size: 22px;
  text-shadow: 0 0 20px rgba(194,12,12,0.15);
}

/* Adjust player bar to double height */
.player-bar {
  height: 144px !important;
  padding: 0 24px;
}

/* Adjust main content and sidebar bottom */
.main-content, .sidebar, .right-sidebar {
  height: calc(100vh - 204px) !important;  /* 144px player + 60px lyrics */
}

/* Remove old center lyrics (replaced by lyrics strip) */


/* Mobile adjustments */
@media (max-width: 800px) {
  .lyrics-strip {
    bottom: 120px;
    height: 44px;
    padding: 0 20px;
  }
  .lyrics-strip-text { font-size: 15px; }
  .lyrics-strip-text.active { font-size: 16px; }
  .player-bar {
    height: 120px !important;
  }
  .main-content, .sidebar, .right-sidebar {
    height: calc(100vh - 164px) !important;
  }
}

@media (max-width: 480px) {
  .lyrics-strip {
    bottom: 100px;
    height: 36px;
    padding: 0 12px;
  }
  .lyrics-strip-text { font-size: 13px; }
  .lyrics-strip-text.active { font-size: 14px; }
  .player-bar {
    height: 100px !important;
  }
  .main-content, .sidebar, .right-sidebar {
    height: calc(100vh - 136px) !important;
  }
}

/* ---- Repeat Button States ---- */
.pc-btn.repeat-icon-one { display: none; }
.pc-btn.one .repeat-icon-all { display: none; }
.pc-btn.one .repeat-icon-one { display: block !important; }
.pc-btn:not(.active):not(.one) .repeat-icon-all { opacity: 0.35; }
.pc-btn.active .repeat-icon-all { opacity: 1; }
.pc-btn.one .repeat-icon-one { opacity: 1; }

/* ---- Shuffle Button State ---- */
#shuffleBtn:not(.active) { opacity: 0.35; }
#shuffleBtn.active { opacity: 1; }

/* ---- Share Buttons ---- */
.st-share, .sr-share {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.15);
  transition: all 0.2s;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.st-share svg, .sr-share svg { width: 14px; height: 14px; }
.song-table-row:hover .st-share, .song-row:hover .sr-share { color: rgba(255,255,255,0.35); }
.st-share:hover, .sr-share:hover { color: #4CAF50 !important; background: rgba(76,175,80,0.1); }

/* ---- Share Modal ---- */
.share-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.share-modal.active { display: flex; }
.share-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}
.share-modal-panel {
  position: relative;
  z-index: 1;
  background: #1a1a2e;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 420px;
  padding: 24px 24px 32px;
  animation: slideUpShare 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUpShare {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.share-modal-header h3 { font-size: 17px; font-weight: 600; color: #f0f0f5; }
.share-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.share-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.share-modal-body {}
.share-song-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  margin-bottom: 20px;
}
.share-song-cover {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.share-song-title { font-size: 14px; font-weight: 600; color: #f0f0f5; }
.share-song-meta { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 2px; }

.share-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.share-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
}
.share-action-btn:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.share-action-btn:active { transform: scale(0.95); }
.share-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.wechat-bg { background: rgba(7,193,96,0.15); }
.moment-bg { background: rgba(7,193,96,0.1); }
.qq-bg { background: rgba(0,150,255,0.12); }
.copy-bg { background: rgba(102,126,234,0.12); }

.share-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
  .share-modal-panel { padding: 20px 16px 28px; }
  .share-actions { gap: 8px; }
  .share-icon { width: 38px; height: 38px; font-size: 18px; }
  .share-action-btn { font-size: 10px; padding: 10px 2px; }
}

/* =============================================================
   CATEGORIES PAGE
   ============================================================= */
#page-categories {
  padding-top: 28px;
}
#page-categories .playlist-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
#page-categories .playlist-card .card-img {
  aspect-ratio: 4/3;
  border-radius: 14px;
}
#page-categories .playlist-card:hover {
  transform: translateY(-6px);
}
#page-categories .playlist-card:hover .card-img {
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
/* ---- Scroll Animations ---- */
.scroll-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.06s);
}
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Stagger for song rows ---- */
.song-table-row, .song-row, .dl-card {
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s;
  transition-delay: calc(var(--i, 0) * 0.03s);
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state-text { font-size: 14px; color: rgba(255,255,255,0.15); }
.empty-state-hint { font-size: 12px; color: rgba(255,255,255,0.08); margin-top: 4px; }

/* ---- Sidebar playlist items with emoji ---- */
.playlist-item .pl-icon {
  font-size: 14px;
  line-height: 1;
}

/* ---- Responsive for categories ---- */
@media (max-width: 768px) {
  #page-categories .playlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}
