.player-container {
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 99%;
    position: relative;
    padding: 10px; /* Add padding to make room for controls */
  
}

.visualizer-container {
    position: relative; /* Positioning context for controls */
}

canvas#visualizer {
    width: 100%;
    height: 150px;
    background: #ffffff00;
    border-radius: 5px;
}

.controls {
    position: absolute;
    bottom: 0; /* Adjust to align with the bottom */
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for contrast */
    padding: 5px;
    border-radius: 5px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease; /* Smooth transition */
}

.controls.visible {
    opacity: 1; /* Visible when mouse is over */
}

.controls .btn,
.controls #volume {
    flex: 1 1 auto;
    margin: 2px;
}

.controls #volume {
    
    width: 50%;
}

#playPause.playing::before {
    content: "Pause"; /* Text when playing */
}

#playPause::before {
    content: "Play"; /* Text when paused */
}