@charset "UTF-8";

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(23, 23, 23, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.light .glass-panel,
html:not(.dark) .glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

/* Scrollbars in light mode */
html:not(.dark) ::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.7);
}

html:not(.dark) ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
}

html:not(.dark) ::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Rank Number Stylings (Typography without album images) */
.rank-badge-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.4);
}

.rank-badge-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(148, 163, 184, 0.35);
}

.rank-badge-3 {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(180, 83, 9, 0.35);
}

/* YouTube Music Button Glow */
.ytm-btn-glow {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ytm-btn-glow:hover {
  box-shadow: 0 0 16px -2px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* Subtly animated gradient borders for top charts */
@keyframes pulseSubtle {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

/* Toast Animation */
@keyframes slideUpFade {
  from {
    transform: translateY(100%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.toast-enter {
  animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Safe Area inset for mobile bottom navbar */
.safe-bottom {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}
