/* ========================================
   Enhanced Winamp Visualizer Styles
   ======================================== */

/* Base equalizer styles */
.winamp-yt-spectrum {
  position: relative;
  overflow: hidden !important;
  z-index: 10 !important;
  height: 80px !important; /* Increase height even more */
  background: rgba(0, 0, 0, 0.8) !important; /* Darker background for contrast */
  margin: 5px 0 !important; /* Add margin for separation */
  border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Add subtle border */
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5) !important; /* Add depth */
}

/* Add a subtle glow to the equalizer background */
.winamp-yt-spectrum::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Enhance bar transitions */
.winamp-yt-bar {
  position: relative;
  transition: height 0.1s ease-in-out, width 0.2s ease-in-out, 
              border-radius 0.3s ease-in-out, box-shadow 0.2s ease-in-out !important;
  width: 20px !important; /* Make bars wider */
  margin: 0 3px !important; /* Add spacing between bars */
  border-radius: 2px !important; /* Slightly rounded corners */
  opacity: 0.95 !important; /* Slightly transparent */
  transform-origin: bottom center !important;
  animation: pulse 2s infinite alternate !important; /* Add pulsing animation */
}

@keyframes pulse {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(1.05); }
}

/* Add glow effect to the bars */
.winamp-yt-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px; /* Taller glow */
  background: rgba(255, 255, 255, 0.9); /* Brighter glow */
  border-radius: 3px;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7); /* Add glow shadow */
  animation: glow 1.5s infinite alternate; /* Animated glow */
}

@keyframes glow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Skin-specific visualizer styles */
.winamp-skin-neon .winamp-yt-bar {
  background: linear-gradient(180deg, #00ffff, #0080ff, #0060ff) !important;
  box-shadow: 0 0 15px rgba(0, 162, 255, 0.7) !important;
}

.winamp-skin-neon .winamp-yt-bar::after {
  background: rgba(0, 255, 255, 0.9);
  box-shadow: 0 0 12px 3px rgba(0, 255, 255, 0.8) !important;
}

.winamp-skin-cyber .winamp-yt-bar {
  background: linear-gradient(180deg, #ff00ff, #b700ff, #9000ff) !important;
  box-shadow: 0 0 15px rgba(183, 0, 255, 0.7) !important;
}

.winamp-skin-cyber .winamp-yt-bar::after {
  background: rgba(255, 0, 255, 0.9);
  box-shadow: 0 0 12px 3px rgba(255, 0, 255, 0.8) !important;
}

.winamp-skin-terminator .winamp-yt-bar {
  background: linear-gradient(180deg, #ff5500, #ff0000, #aa0000) !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.7) !important;
}

.winamp-skin-terminator .winamp-yt-bar::after {
  background: rgba(255, 85, 0, 0.9);
  box-shadow: 0 0 12px 3px rgba(255, 85, 0, 0.8) !important;
}

.winamp-skin-matrix .winamp-yt-bar {
  background: linear-gradient(180deg, #00ff99, #00ff00, #00aa00) !important;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.7) !important;
}

.winamp-skin-matrix .winamp-yt-bar::after {
  background: rgba(0, 255, 0, 0.9);
  box-shadow: 0 0 12px 3px rgba(0, 255, 0, 0.8) !important;
}

/* Visualizer mode: wave */
.winamp-yt-spectrum.mode-wave .winamp-yt-bar {
  border-radius: 50% 50% 0 0;
}

/* Visualizer mode: dots */
.winamp-yt-spectrum.mode-dots .winamp-yt-bar {
  border-radius: 50%;
  margin: 0 2px;
}

/* Visualizer mode: spectrum */
.winamp-yt-spectrum.mode-spectrum .winamp-yt-bar {
  width: 8px !important;
  margin: 0 3px;
}

/* Visualizer label */
.winamp-yt-spectrum::before {
  content: 'VISUALIZER';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  opacity: 0.8;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tooltip for double-click hint */
.winamp-yt-spectrum:hover::after {
  content: 'Double-click to change mode';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 9px;
  opacity: 0.7;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}
