/* Retro Radio Player Styles */

.retro-radio-player {
  position: fixed;
  top: 70px;  /* Move below navigation bar */
  right: 20px;
  z-index: 1002;  /* Higher than navigation (1000) and action buttons (1001) */
  transition: transform 0.3s ease;
}

.retro-radio-player:hover {
  transform: scale(1.02);
}

.radio-body {
  width: 280px;
  height: 180px;
  background: linear-gradient(135deg, #2a1a3a 0%, #1a0f2a 100%);
  border-radius: 15px;
  box-shadow:
    0 10px 40px rgba(147, 51, 234, 0.4),
    0 0 80px rgba(236, 72, 153, 0.2),
    inset 0 2px 5px rgba(255, 255, 255, 0.1),
    inset 0 -2px 5px rgba(0, 0, 0, 0.5);
  padding: 15px;
  position: relative;
  border: 2px solid #ff00ff;
  overflow: hidden;
}

/* Glossy effect */
.radio-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  border-radius: 15px 15px 0 0;
  pointer-events: none;
}

/* Radio Display */
.radio-display {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #0a0015 0%, #1a0033 100%);
  border-radius: 8px;
  margin-bottom: 12px;
  border: 2px solid #ff00ff;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 0, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.display-content {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.song-info {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  font-family: 'Orbitron', monospace;
}

.artist {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.song-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(0, 255, 255, 0.8),
      0 0 20px rgba(0, 255, 255, 0.5);
  }
  50% {
    text-shadow:
      0 0 15px rgba(0, 255, 255, 1),
      0 0 30px rgba(0, 255, 255, 0.8);
  }
}

/* Visualizer */
.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
}

.visualizer .bar {
  width: 4px;
  background: linear-gradient(to top, #ff00ff, #00ffff);
  border-radius: 2px 2px 0 0;
  transition: height 0.15s ease;
  height: 20%;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Control Panel */
.radio-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 10px;
}

.knob-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.knob {
  width: 35px;
  height: 35px;
  background: radial-gradient(circle at 30% 30%, #4a4a4a, #1a1a1a);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    inset 0 2px 2px rgba(255, 255, 255, 0.1);
  transition: transform 0.1s ease;
}

.knob:active {
  transform: scale(0.95);
}

.knob-indicator {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: #00ffff;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

.knob-label {
  font-size: 9px;
  color: #ff00ff;
  text-transform: uppercase;
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255, 0, 255, 0.6);
}

/* Play/Pause Button */
.radio-btn {
  width: 45px;
  height: 45px;
  background: radial-gradient(circle at 30% 30%, #ff006e, #8b0051);
  border: 2px solid #ff00ff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 15px rgba(255, 0, 110, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

/* Pulse animation to attract attention when autoplay is blocked */
.radio-btn.pulse-attention {
  animation: pulse-glow-btn 2s ease-in-out infinite;
}

@keyframes pulse-glow-btn {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(255, 0, 110, 0.4),
      0 0 20px rgba(255, 0, 255, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.4),
      inset 0 2px 2px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 4px 25px rgba(255, 0, 110, 0.8),
      0 0 40px rgba(255, 0, 255, 0.6),
      inset 0 -2px 4px rgba(0, 0, 0, 0.4),
      inset 0 2px 2px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
}

.radio-btn:hover {
  background: radial-gradient(circle at 30% 30%, #ff1a7f, #9b0061);
  box-shadow:
    0 4px 20px rgba(255, 0, 110, 0.6),
    0 0 30px rgba(255, 0, 255, 0.4);
}

.radio-btn:active {
  transform: scale(0.95);
  box-shadow:
    0 2px 10px rgba(255, 0, 110, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
}

.radio-btn svg {
  fill: #00ffff;
  filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.8));
}

/* Speaker Grille */
.speaker-grille {
  position: absolute;
  bottom: 35px;
  left: 15px;
  right: 15px;
  height: 25px;
  display: flex;
  justify-content: space-around;
  opacity: 0.6;
}

.grille-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #ff00ff, #ff006e);
  box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* Radio Brand */
.radio-brand {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ff00ff;
  text-shadow:
    0 0 10px rgba(255, 0, 255, 0.8),
    0 0 20px rgba(255, 0, 255, 0.5);
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .retro-radio-player {
    top: 60px;  /* Adjusted for mobile navigation bar */
    right: 10px;
  }

  .radio-body {
    width: 240px;
    height: 160px;
    padding: 12px;
  }

  .radio-display {
    height: 50px;
  }

  .knob {
    width: 30px;
    height: 30px;
  }

  .radio-btn {
    width: 40px;
    height: 40px;
  }

}

/* Dark theme adjustments */
[data-theme="dark"] .radio-body {
  background: linear-gradient(135deg, #1a0f2a 0%, #0a0015 100%);
  border-color: #9333ea;
}

[data-theme="dark"] .radio-display {
  background: linear-gradient(135deg, #000000 0%, #0a0015 100%);
  border-color: #9333ea;
}

[data-theme="dark"] .song-info {
  color: #e0aaff;
  text-shadow: 0 0 10px rgba(224, 170, 255, 0.8);
}

[data-theme="dark"] .knob-label {
  color: #e0aaff;
  text-shadow: 0 0 5px rgba(224, 170, 255, 0.6);
}

[data-theme="dark"] .radio-brand {
  color: #e0aaff;
  text-shadow:
    0 0 10px rgba(224, 170, 255, 0.8),
    0 0 20px rgba(224, 170, 255, 0.5);
}