body {
background-image: url(../media/nature-sounds//Underwater-Caverns.jpg);
background-repeat: no-repeat;
background-position: center;
background-color: #000000;
background-size: cover;
margin: 0;
min-height: 100vh;
}

/* Docked Player */
.player {
position: fixed;
bottom: 10px;  /* lifts player 20px from bottom */
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.25);
padding: 10px 20px;
border-radius: 25px 25px 0 0;
color: #e0e6ff;
width: 100%;
max-width: 550px;
box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
text-align: center;
backdrop-filter: blur(8px);
}

/* Heading */
h3 {
margin: 0 0 12px;
font-size: 24px;
font-family: Didot, serif;
letter-spacing: 3px;
text-shadow: 0 0 8px rgba(200, 220, 255, 0.9);
}

/* Controls row */
.controls {
display: flex;
align-items: center;
gap: 6px;          /* smaller spacing overall */
margin-top: 5px;
}

/* Timer text */
.controls span {
  min-width: unset;
  font-size: 14px;
  color: #d0dbff;
}

/* Play button right next to currentTime */
#playPauseBtn {
  margin-right: 2px;   
}

/* Mute button right after duration */
#muteBtn {
  margin-left: 2px;   
}

/* Progress + volume sliders shorter */
#progress,
#volumeSlider {
  flex: unset;       /* stops stretching full width */
  width: 120px;      /* adjust smaller/larger as you like */
}

/* Controls and EQ */
.controls, .eq {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

/* Buttons */
button {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #e0e6ff;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  min-width: 90px;
  text-align: center;
}
button:hover {
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

/* Sliders */
input[type="range"] {
  flex: 1;
  appearance: none;
  height: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  height: 10px;
  width: 10px;
  background: #e0e6ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(200, 220, 255, 0.9);
}

/* Labels */
span {
  font-size: 14px;
  min-width: 40px;
  text-align: center;
  color: #d0dbff;
}
.eq label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #aab7ff;
}

/* EQ sliders shorter and same width */
.eq label input[type="range"] {
  flex: unset;     /* stop stretching */
  width: 110px;     /* set shorter width (adjust as you like) */
}

/* Loop Button Container */
.loop-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 1px;
}

/* Loop Button */
#loopBtn {
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

/* Inner arrow ring */
#loopBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border: 2px solid rgba(64, 224, 208, 0.8); /* aquamarine base */
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  box-shadow: 0 0 4px rgba(64, 224, 208, 0.6);
  transition: all 0.3s ease;
}


/* Hover effect for arrow ring */
#loopBtn:hover::before {
  border-color: rgba(64, 224, 208, 1); /* bright aquamarine */
  box-shadow: 0 0 6px rgba(64, 224, 208, 0.9), 0 0 12px rgba(32, 178, 170, 0.6); /* aquamarine glow */
}

/* Active state */
#loopBtn.active {
  background: rgba(64, 224, 208, 0.2); /* aquamarine tint */
  box-shadow: 0 0 8px rgba(64, 224, 208, 0.8), 0 0 15px rgba(32, 178, 170, 0.6); /* aquamarine glow */
}

#loopBtn.active::before {
  border-color: rgba(64, 224, 208, 1);
  border-left-color: transparent;
  border-bottom-color: transparent;
  box-shadow: 0 0 6px rgba(64, 224, 208, 0.9), 0 0 12px rgba(32, 178, 170, 0.6);
}

/* Active + hover intensifies glow */
#loopBtn.active:hover {
  box-shadow: 0 0 10px rgba(64, 224, 208, 1), 0 0 20px rgba(32, 178, 170, 0.7);
}

#loopBtn.active:hover::before {
  box-shadow: 0 0 8px rgba(64, 224, 208, 1), 0 0 16px rgba(32, 178, 170, 0.7);
}

/* Powered by text next to loop */
.powered-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #aab7ff;
  line-height: 1.1;
}

/* Visualizer Canvas */
canvas {
  width: 100%;
  height: 50px;
  display: block;
  background: transparent;
  border-radius: 20px;
  margin-top: 15px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
}