 :root {
  --site-surface: #0b0d10;
  --site-surface-strong: #111720;
  --site-panel: rgba(17, 23, 32, 0.72);
  --site-border: rgba(148, 163, 184, 0.24);
  --site-text: #e5edf8;
  --site-muted: #9aa9b8;
  --site-primary: #ff6b00;
  --site-primary-strong: #f97316;
  --site-primary-soft: rgba(255, 107, 0, 0.14);
  --site-shadow: rgba(15, 23, 42, 0.2);
}

body {
  background: var(--bg, #0b0d10);
  color: var(--text, #e5edf8);
}

#siteHeader,
#promotionBar,
#mobileNav,
#headerSearch,
.song-card,
.song-row,
.genre-btn,
.nav-btn,
#userDrop,
.modal-card,
.panel {
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

#siteHeader {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

#promotionBar {
  letter-spacing: 0.01em;
}

#headerSearch {
  border: 1px solid var(--site-border, rgba(148, 163, 184, 0.24));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

#headerSearch:focus-within {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

#headerSearch input {
  color: var(--text, #e5edf8);
  background: transparent;
}

#headerSearch button,
#headerUploadBtn,
#premiumBtn,
#themeBtn,
#headerRight > button,
#authButtons button,
.genre-btn.active,
.nav-btn.active {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

#headerSearch button:hover,
#headerUploadBtn:hover,
#premiumBtn:hover,
#themeBtn:hover,
#headerRight > button:hover,
#authButtons button:hover,
.genre-btn.active:hover,
.nav-btn.active:hover {
  transform: translateY(-1px);
}

.nav-btn.active,
.genre-btn.active {
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-strong));
  color: #fff;
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.18);
}

.song-card,
.song-row {
  border-radius: 16px;
}

.song-card {
  overflow: hidden;
}

.song-card:hover,
.song-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.song-card .song-title {
  letter-spacing: -0.02em;
}

.song-card .artist-name,
.card-artist,
.song-meta,
.song-artist,
.muted {
  opacity: 0.92;
}

body.light #siteHeader,
body.light #promotionBar,
body.light #headerSearch,
body.light #userDrop,
body.light .song-card,
body.light .song-row,
body.light .genre-btn,
body.light .nav-btn,
body.light .modal-card,
body.light .panel {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

@media (max-width: 767px) {
  #siteHeader {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  #headerSearch {
    min-height: 42px;
  }

  .song-card,
  .song-row {
    border-radius: 14px;
  }
}

.site-core-ready #mainContent {
  animation: siteCoreFade 240ms ease;
}

@keyframes siteCoreFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
