:root {
  --bg: #0D1117;
  --bg2: #161B22;
  --card: #21262D;

  --primary: #FF2B2B;
  --primary-hover: #FF4D4D;

  --secondary: #1E88FF;
  --secondary-hover: #4DA3FF;

  --text: #F8FAFC;
  --text-secondary: #9CA3AF;

  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #06B6D4;

  /* Legacy mappings for backward compatibility */
  --blue: var(--primary);
  --blue-grad-1: var(--primary);
  --blue-grad-2: var(--primary-hover);
  --hover: var(--bg2);
  --white: var(--text);
  --gray-1: var(--text-secondary);
  --gray-2: var(--text-secondary);
}

* { font-family: 'Inter', system-ui, sans-serif; }
body { background: var(--bg); color: var(--white); overflow-x: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0B0F14; }
::-webkit-scrollbar-thumb { background: #2A3340; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ef7f1a; }

/* Glassmorphism */
.glass {
  background: rgba(21, 26, 33, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-strong {
  background: rgba(21, 26, 33, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gradient-text {
  background: linear-gradient(135deg, #ff9a30 0%, #ef7f1a 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom transitions & cards */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(255, 43, 43, 0.5);
}
.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.artist-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
  background: var(--card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.artist-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(255, 43, 43, 0.3);
}
.artist-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.9) 100%);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.artist-card:hover::after { opacity: 1; }
.artist-card .play-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.artist-card:hover .play-btn {
  opacity: 1;
  transform: translateY(0);
}

.genre-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.genre-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.genre-card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.genre-card:hover img {
  transform: scale(1.1);
}
.genre-card .overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.95) 100%);
  transition: all 0.3s;
}
.genre-card:hover .overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.9) 100%);
}

/* Progress bar */
.progress-bar {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s;
}
.progress-track {
  background: rgba(255,255,255,0.1);
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-track:hover .progress-bar { height: 6px; }

/* Nav link */
.nav-link {
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-hover));
  transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: #fff; }

/* Equalizer animation */
.eq-bar {
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-hover));
  border-radius: 2px;
  animation: eq 1s ease-in-out infinite;
}
.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; }
.eq-bar:nth-child(4) { animation-delay: 0.6s; }
@keyframes eq {
  0%, 100% { height: 8px; }
  50% { height: 24px; }
}

/* Info card style */
.info-card {
  background: linear-gradient(135deg, rgba(255, 43, 43, 0.08) 0%, rgba(21, 26, 33, 0.8) 100%);
  border: 1px solid rgba(255, 43, 43, 0.15);
  border-radius: 0.625rem;
  transition: all 0.3s;
}
.info-card:hover {
  border-color: rgba(255, 43, 43, 0.35);
  transform: translateY(-4px);
}

/* Section heading style */
.section-heading {
  position: relative;
  display: inline-block;
}
.section-heading::before {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
}

/* Tag style */
.tag {
  background: rgba(255, 43, 43, 0.15);
  color: var(--primary-hover);
  border: 1px solid rgba(255, 43, 43, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ABC list styles */
.abc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.abc-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.abc-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: all 0.2s ease;
}
.abc-list a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile menu drawer transitions */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* Playlist Drawer Items styling */
.am-playlist-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  cursor: pointer !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  transition: all 0.2s ease !important;
  border-radius: 8px !important;
  width: 100% !important;
}
.am-playlist-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}
.am-pl-num {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.3) !important;
  width: 18px !important;
  text-align: center !important;
}
.am-pl-info {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
}
.am-pl-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.am-pl-artist {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 1px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.am-pl-link {
  color: rgba(255, 255, 255, 0.3) !important;
  transition: color 0.2s ease !important;
  padding: 4px !important;
}
.am-pl-link:hover {
  color: var(--primary) !important;
}

/* Active state in Drawer */
.am-playlist-item.am-current {
  background: rgba(255, 43, 43, 0.08) !important;
  border-left: 3px solid var(--primary) !important;
  padding-left: 11px !important;
}
.am-playlist-item.am-current .am-pl-title {
  color: var(--primary) !important;
}
.am-playlist-item.am-current .am-pl-num {
  color: var(--primary) !important;
}

/* Sticky Header Scrolled styles */
#header {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
#header.header-scrolled {
  background-color: rgba(21, 26, 33, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}
