@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom slider styles */
.slider {
  background: linear-gradient(to right, #fbbf24 0%, #f59e0b 100%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #fbbf24;
  cursor: pointer;
  border: 2px solid #000;
  box-shadow: 0 0 2px 0 #555;
}

.slider::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #fbbf24;
  cursor: pointer;
  border: 2px solid #000;
  box-shadow: 0 0 2px 0 #555;
}

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

::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Iframe optimizations */
html, body {
  height: 100%;
  overflow-x: hidden;
}

#root {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Mobile iframe specific styles */
@media (max-width: 768px) {
  body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  #root {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}

/* Playing animation for current song indicator */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
  }
}

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