* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  color: white;
  position: relative;
  background: #000;
}

/* 🎬 Background video with enhancements */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -3;
  filter: saturate(1.2) contrast(1.1);
}

/* Vignette effect */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
  z-index: -2;
}

/* Scanlines overlay */
#scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 100;
  opacity: 0.3;
}

/* Noise texture */
#noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 99;
}

/* 🌐 Top navigation icons */
.top-icons {
  position: fixed;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-icons img {
  width: 100px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(0.3) brightness(0.9);
}

.top-icons img:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px #0ff) grayscale(0) brightness(1.1);
}

.top-icons img.active {
  filter: drop-shadow(0 0 15px #FC8906) grayscale(0) brightness(1.2);
  transform: scale(1.1);
}

/* 📻 Radio carousel container */
.carousel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  perspective: 1400px;
}

.carousel__track {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.station {
  position: absolute;
  width: 180px;
  height: 180px;
  left: calc(50% - 90px);
  top: calc(50% - 90px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.8s ease,
              filter 0.8s ease;
}

.station img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: black;
  object-fit: contain;
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.station img:hover {
  transform: scale(1.1) translateY(-8px);
  box-shadow: 0 12px 40px rgba(252, 137, 6, 0.6);
}

/* Active station styling */
.station.active img {
  box-shadow: 0 0 40px rgba(252, 137, 6, 0.8), 0 10px 50px rgba(0,0,0,0.9);
  animation: pulse 2s ease-in-out infinite, float 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

/* Station info display */
.station-info {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.station-info.visible {
  opacity: 1;
}

.station-info .now-playing {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #FC8906;
  margin-bottom: 10px;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.station-info .station-name {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(252, 137, 6, 0.8),
               0 2px 10px rgba(0, 0, 0, 0.9);
  margin-bottom: 8px;
}

.station-info .frequency {
  font-size: 18px;
  color: #aaa;
  letter-spacing: 2px;
}

/* Tuning animation */
.tuning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: staticFlicker 0.3s infinite;
}

.tuning-overlay.active {
  display: flex;
}

@keyframes staticFlicker {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Enhanced controls */
.controls {
  position: fixed;
  bottom: -95px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  align-items: center;
  background: rgba(20, 20, 20, 0.9);
  padding: 20px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(252, 137, 6, 0.3);
  z-index: 300;
}

.controls button {
  background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
  border: 2px solid #555;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
              inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls button:hover {
  background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 137, 6, 0.5);
  border-color: #FC8906;
}

.controls button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.controls button.play-btn {
  width: 70px;
  height: 70px;
  font-size: 28px;
  background: linear-gradient(145deg, #FC8906, #d67005);
  border-color: #FC8906;
}

.controls button.play-btn:hover {
  background: linear-gradient(145deg, #ff9520, #FC8906);
  box-shadow: 0 8px 30px rgba(252, 137, 6, 0.6);
}

/* Volume control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 10px;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.volume-icon {
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.volume-icon:hover {
  color: #FC8906;
}

.volume-slider {
  width: 100px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #FC8906;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(252, 137, 6, 0.6);
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(252, 137, 6, 0.9);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #FC8906;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(252, 137, 6, 0.6);
}

/* Equalizer visualization */
.equalizer {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  height: 40px;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 250;
}

.equalizer.active {
  opacity: 1;
}

.equalizer .bar {
  width: 6px;
  background: linear-gradient(to top, #FC8906, #ff9520);
  border-radius: 3px;
  animation: equalize 0.8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(252, 137, 6, 0.5);
}

.equalizer .bar:nth-child(1) { animation-delay: 0s; height: 20%; }
.equalizer .bar:nth-child(2) { animation-delay: 0.1s; height: 40%; }
.equalizer .bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.equalizer .bar:nth-child(4) { animation-delay: 0.3s; height: 80%; }
.equalizer .bar:nth-child(5) { animation-delay: 0.4s; height: 100%; }
.equalizer .bar:nth-child(6) { animation-delay: 0.5s; height: 70%; }
.equalizer .bar:nth-child(7) { animation-delay: 0.6s; height: 50%; }

@keyframes equalize {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* Keyboard shortcuts hint */
.shortcuts-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 12px;
  color: #aaa;
  z-index: 9999;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.shortcuts-hint:hover {
  opacity: 1;
}

.shortcuts-hint div {
  margin: 5px 0;
}

.shortcuts-hint kbd {
  background: #333;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: #FC8906;
  margin: 0 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .carousel {
    width: 90vw;
    height: 400px;
    perspective: 1000px;
  }

  .station {
    width: 120px;
    height: 120px;
    left: calc(50% - 60px);
    top: calc(50% - 60px);
  }

  .station-info .station-name {
    font-size: 24px;
  }

  .station-info .frequency {
    font-size: 14px;
  }

  .controls {
    bottom: -95px;
    padding: 15px 20px;
    gap: 10px;
  }

  .controls button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .controls button.play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .volume-control {
    display: none;
  }

  .top-icons {
    gap: 5px;
    padding: 8px;
  }

  .top-icons img {
    width: 60px;
  }

  .shortcuts-hint {
    display: none;
  }

  .equalizer {
    bottom: -25px;
    height: 30px;
  }

  .station-info {
    top: 60px;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 350px;
  }

  .station {
    width: 100px;
    height: 100px;
    left: calc(50% - 50px);
    top: calc(50% - 50px);
  }

  .station-info .station-name {
    font-size: 20px;
  }

  .controls {
    bottom: -95px;
    padding: 12px 15px;
  }
}