/* ── Keyframes ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255,215,0,0.3); }
  50%      { box-shadow: 0 0 25px rgba(255,215,0,0.6); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes equalizer {
  0%, 100% { height: 4px; }
  25%      { height: 16px; }
  50%      { height: 8px; }
  75%      { height: 20px; }
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes goldFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.02); }
}

/* ── Animation Utilities ── */
.animate-fade-in   { animation: fadeIn 0.5s ease forwards; }
.animate-fade-up   { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-down { animation: fadeInDown 0.5s ease forwards; }
.animate-scale-in  { animation: scaleIn 0.3s ease forwards; }
.animate-slide-in  { animation: slideInRight 0.3s ease forwards; }
.animate-shimmer   { animation: shimmer 1.5s infinite; }
.animate-pulse     { animation: pulse 2s infinite; }
.animate-glow      { animation: glow 2s infinite; }
.animate-spin      { animation: spin 1s linear infinite; }
.animate-bounce    { animation: bounce 1s infinite; }

/* ── Delay Utilities ── */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ── Equalizer (music bars) ── */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}
.equalizer-bar {
  width: 3px;
  background: var(--gold);
  border-radius: 1px;
  animation: equalizer 0.8s ease infinite;
}
.equalizer-bar:nth-child(1) { animation-delay: 0s; }
.equalizer-bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.4s; }
.equalizer-bar:nth-child(4) { animation-delay: 0.1s; }
.equalizer-bar:nth-child(5) { animation-delay: 0.3s; }

/* ── Vinyl Record ── */
.vinyl {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--gray-600);
  background: radial-gradient(circle, var(--gold) 15%, var(--gray-800) 16%, var(--gray-800) 40%, var(--gray-700) 41%, var(--gray-800) 70%, var(--gray-600) 71%, var(--gray-800) 100%);
}
.vinyl.spinning { animation: vinylSpin 3s linear infinite; }

/* ── Loading Spinner ── */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--gray-700);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

/* ── Page Transitions ── */
.page-enter { animation: fadeInUp 0.4s ease forwards; }
.page-leave { animation: fadeInUp 0.2s ease reverse forwards; }

/* ── Hover Lift ── */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}