/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Nav items */
.nav-item {
  color: #a1a1aa;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
}

.nav-item.active {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

/* Mobile nav */
.mobile-nav-btn {
  color: #a1a1aa;
}

.mobile-nav-btn.active {
  color: #f97316;
}

/* Song row */
.song-row {
  transition: background-color 0.15s ease;
}

.song-row:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.song-row.playing {
  background-color: rgba(249, 115, 22, 0.08);
}

/* Song card */
.song-card {
  transition: all 0.2s ease;
}

.song-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Seek bar */
#seek-bar-container:hover #seek-bar-progress {
  background: linear-gradient(to right, #f97316, #eab308);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.4s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.02s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.04s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.06s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.08s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.12s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.14s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.16s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.18s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.22s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.24s; }

/* Playing equalizer animation */
@keyframes eq1 { 0%,100%{height:4px} 50%{height:16px} }
@keyframes eq2 { 0%,100%{height:8px} 50%{height:12px} }
@keyframes eq3 { 0%,100%{height:12px} 50%{height:4px} }

.eq-bar {
  width: 3px;
  border-radius: 2px;
  background: #f97316;
}

.eq-bar:nth-child(1) { animation: eq1 0.8s ease-in-out infinite; }
.eq-bar:nth-child(2) { animation: eq2 0.6s ease-in-out infinite; }
.eq-bar:nth-child(3) { animation: eq3 0.7s ease-in-out infinite; }

/* Toast animation */
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

.toast-enter {
  animation: toastIn 0.3s ease forwards;
}

.toast-exit {
  animation: toastOut 0.3s ease forwards;
}

/* Mood card */
.mood-card {
  transition: all 0.25s ease;
}

.mood-card:hover {
  transform: scale(1.03);
}

/* Quick play item */
.quick-play-item {
  transition: all 0.2s ease;
}

.quick-play-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.quick-play-item:hover .quick-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.quick-play-btn {
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

/* Category card */
.category-card {
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: white;
  margin-top: -4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* View transition */
.view-content {
  animation: fadeIn 0.25s ease;
}

/* Dropdown menu */
.dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: all 0.15s ease;
}

.dropdown-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Active seek bar */
#seek-bar-container.dragging #seek-bar-progress {
  background: linear-gradient(to right, #f97316, #eab308);
}

/* Hide elements */
.hidden-mobile { display: none; }

@media (min-width: 768px) {
  .hidden-mobile { display: flex; }
}

@media (max-width: 767px) {
  #player-bar > div:last-child {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}