/* --------------------------------------------------
   General Styles for the Audio Player
-------------------------------------------------- */
.audio-player {
  background: rgba(13, 13, 43, 0.6);
  padding: 20px;
  margin: 0;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  position: fixed !important; /* Force fixed position */
  left: 10px !important; /* Adjust if necessary */
  bottom: 10px !important; /* Adjust if necessary */
  z-index: 1000 !important; /* Ensure it's above other elements */
  max-width: 650px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(118, 255, 235, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}



/* Make Audio Player More Transparent */
.audio-player {
  background-color: rgba(46, 139, 87, 0.4); /* Increased transparency from 0.6 to 0.4 */
}

/* Hover effect to slightly elevate the player */
.audio-player:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
}

 /* Station Description Styling */
 .audio-player .station-name {
  font-size: 1em;  
  font-weight: bold;
  display: block;
  color: #000000;
  background: #76FFEB;  
  padding: 5px 15px;
  border-radius: 6px;
  letter-spacing: 1px;
  margin-bottom: 15px;
  max-width: 100%;
  word-wrap: break-word;  
  overflow: hidden;
}

/* Apply cassette styling to station name */
.audio-player .station-name {
  text-shadow: none;
}

/* Player Sections */
.audio-player .player-top,
.audio-player .player-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Control Buttons and Volume Icons */
.audio-player .control-button,
.audio-player .volume-control i {
  transition: color 0.3s ease, transform 0.2s ease;
  color: #b2f0e6; /* Neon Turquoise */
  text-align: center;
}

.audio-player .control-button:hover,
.audio-player .volume-control i:hover {
  color: #76FFEB;
  text-shadow: 0 0 12px #76FFEB;
  transform: scale(1.1);
}

.audio-player .logo {
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(118, 255, 235, 0.8);
  margin: 10px;
}

/* Volume Control */
.audio-player .volume-control {
  display: flex;
  align-items: center;
}

.audio-player .volume-control input[type="range"] {
  margin-left: 10px;
  background: transparent;
  -webkit-appearance: none;
  width: 150px;
  height: 5px;
  border-radius: 5px;
  background: #444;
  outline: none;
  transition: background 0.3s;
}

.audio-player .volume-control input[type="range"]:hover {
  background: #555;
}

.audio-player .volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #76FFEB;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.audio-player .volume-control input[type="range"]::-webkit-slider-thumb:hover {
  background: #1ed760;
}

/* Stream Selector */
.audio-player .stream-selector {
  background: transparent;
  color: #fff; /* Adjust text color */
  border: none;
  width: 200px;   
  font-size: 29px;
  text-align: center;
  -webkit-appearance: none; /* Remove default styling */
  -moz-appearance: none;
  appearance: none;
  position: relative;
  padding: 8px 12px;  
  border-radius: 5px; /* Rounded corners */ 
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}


/* Hide the dropdown arrow and add custom hint indicator */
.audio-player .stream-selector::after {
  content: '▼'; /* Changed from '>>' to a downward arrow */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #fff;
}

/* Option Styling */
.audio-player .stream-selector option {
  background-color: #1B1B3A;
  color: #fff; 
}

/* Hide focus outline and selection border */
.audio-player .stream-selector:focus {
  outline: none; /* Remove focus outline */
  box-shadow: none; /* Remove focus box-shadow */
}

/* Add a subtle box-shadow on hover to indicate interactivity */
.audio-player .stream-selector:hover {
  background-color: rgba(60, 60, 60, 0.2);
  box-shadow: 0 0 5px rgba(118, 255, 235, 0.5);
}

/* Control Button Styles */
.audio-player .control-button {
  background-color: transparent;
  border: none;
  color: #f5f5f5;
  font-size: 2em;
  cursor: pointer;
}

 

.audio-player .control-button:disabled {
  color: #555555;
  cursor: not-allowed;
}

/* Tooltip Styles */
.audio-player .control-button[aria-label]:hover::after,
.audio-player .volume-control i[aria-label]:hover::after {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.9em;
  white-space: nowrap;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .audio-player {
    flex-wrap: wrap;
    padding: 15px;
  }

  .audio-player .player-top,
  .audio-player .player-bottom {
    flex-direction: column;
    align-items: center;
  }

 /* Station Description Styling */
.audio-player .station-name {
  font-size: 1em;  
  font-weight: bold;
  display: block;
  color: #000000;
  background: #76FFEB;  
  padding: 5px 15px;
  border-radius: 6px;
  letter-spacing: 1px;
  margin-bottom: 15px;
  max-width: 100%;
  word-wrap: break-word;  
  overflow: hidden;
}

.station-descr, #station-name-display { 
  font-size:12px !important;letter-spacing:-0.8px;
  padding: 5px 15px;
  border-radius: 6px;
  letter-spacing: 1px;
  margin-bottom: 15px;
  max-width: 100%;
  word-wrap: break-word;  
  overflow: hidden;
}

 
  .audio-player .control-button {
    font-size: 1.5em;  margin: 10px;
  }

  .audio-player .volume-control {
    margin-top: 5px;
  }

  .audio-player .volume-control input[type="range"] {
    width: 120px; text-align: center;
  }
}

@media (max-width: 480px) {
  .audio-player {
    left: 5px;
    right: 5px;
    bottom: -15px;
    margin: 0;
    width: calc(100% - 10px);
  }

  .audio-player .station-name {
    font-size: 1.2em;
  }

  .audio-player .control-button {
    font-size: 1.2em;
  }

  .audio-player .volume-control input[type="range"] {
    width: 100px;
  }
}

/* Entrance Animation */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.audio-player {
  animation: slideUp 0.5s ease forwards;
}
