/* Cyberpunk Music Player Styles */

:root {
  --neon-pink: #ff2d87;
  --neon-blue: #00f3ff;
  --neon-yellow: #fff01f;
  --dark-bg: #0a0a14;
  --darker-bg: #050509;
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --glow-pink: 0 0 10px rgba(255, 45, 135, 0.7);
  --glow-blue: 0 0 15px rgba(0, 243, 255, 0.7);
}

/* Base Player Styles */
.cyberpunk-player {
  font-family: 'Rajdhani', 'Orbitron', sans-serif;
  color: var(--text-primary);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* Ensure it's above other elements */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(10, 10, 20, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 45, 135, 0.3);
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  display: block;
}

.cyberpunk-player.hidden {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  display: block !important; /* Keep in DOM for smooth transitions */
}

/* Mini Player */
.mini-player {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  cursor: pointer;
  height: 70px;
  transition: all 0.3s ease;
}

.mini-player:hover {
  background: rgba(255, 45, 135, 0.1);
}

.mini-player-cover {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  margin-right: 15px;
  object-fit: cover;
  border: 1px solid var(--neon-pink);
  box-shadow: var(--glow-pink);
}

.mini-player-info {
  flex: 1;
  min-width: 0;
  margin-right: 15px;
}

.mini-player-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--neon-blue);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.mini-player-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Expanded Player */
.expanded-player {
  display: none;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
  animation: slideUp 0.4s ease-out;
}

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

.expanded-cover {
  width: 250px;
  height: 250px;
  border-radius: 8px;
  margin: 0 auto 25px;
  object-fit: cover;
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 30px rgba(255, 45, 135, 0.4);
  transition: all 0.3s ease;
}

.expanded-cover:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(255, 45, 135, 0.6);
}

.expanded-info {
  text-align: center;
  margin-bottom: 25px;
}

.expanded-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}

.expanded-artist {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 0 15px 0;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 15px 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
  position: relative;
  transition: width 0.1s linear;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-container:hover .progress-bar::after {
  opacity: 1;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Controls */
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.control-btn:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

.control-btn:hover::before {
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px var(--neon-pink);
}

.control-btn.play-pause {
  width: 60px;
  height: 60px;
  font-size: 2rem;
  background: rgba(255, 45, 135, 0.2);
  border: 2px solid var(--neon-pink);
}

.control-btn.play-pause:hover {
  background: rgba(255, 45, 135, 0.4);
  transform: scale(1.05);
}

.control-btn.active {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

.control-btn.active::before {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px var(--neon-blue);
}

/* Volume Control */
.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-blue);
  cursor: pointer;
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--neon-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
  .expanded-cover {
    width: 200px;
    height: 200px;
  }
  
  .expanded-title {
    font-size: 1.5rem;
  }
  
  .expanded-artist {
    font-size: 1rem;
  }
  
  .player-controls {
    gap: 15px;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .control-btn.play-pause {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 5px var(--neon-pink); }
  50% { box-shadow: 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink); }
  100% { box-shadow: 0 0 5px var(--neon-pink); }
}

@keyframes glow {
  0% { text-shadow: 0 0 5px var(--neon-blue); }
  50% { text-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue); }
  100% { text-shadow: 0 0 5px var(--neon-blue); }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Close Button */
.close-player {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-player:hover {
  color: var(--neon-pink);
  transform: rotate(90deg);
}

/* Loading Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--neon-blue);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}
