/* ==== RADIO BAR PREMIUM ESTILO SIPSE / SPOTIFY ==== */

.radio-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  z-index: 9999;

  font-family: "Segoe UI", sans-serif;
  color: #f5f5f5;

  /* Sombra premium */
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

/* --- IZQUIERDA --- */
.rb-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 25%;
}

.rb-logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 10px;

  background: #111;
  padding: 5px;
  box-shadow: 0 0 10px rgba(230, 194, 0, 0.25);
}

.rb-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.rb-info p {
  margin: 0;
  font-size: 13px;
  opacity: 0.65;
}

/* --- CENTRO (CONTROLES) --- */

.rb-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-grow: 1;
}

.rb-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: white;
  background: #202020;
  display: flex;
  justify-content: center;
  align-items: center;

  transition: 0.2s ease-in-out;
}

.rb-btn:hover {
  background: #2c2c2c;
  transform: scale(1.12);
}

.rb-btn.play {
  width: 58px;
  height: 58px;
  font-size: 26px;
  background: #e6c200;
  color: #000;

  box-shadow: 0 0 12px rgba(230, 194, 0, 0.4);
}

.rb-btn.play:hover {
  background: #ffdd22;
  transform: scale(1.15);
}

/* --- DERECHA (VOLUMEN) --- */

.rb-right {
  min-width: 20%;
  display: flex;
  justify-content: flex-end;
}

#rb-volume {
  appearance: none;
  width: 150px;
  height: 5px;
  border-radius: 5px;
  background: #444;
  outline: none;
}

/* Bolita del volumen */
#rb-volume::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e6c200;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(230, 194, 0, 0.4);
  transition: 0.2s;
}

#rb-volume::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ===== SIDEBAR DE ESTACIONES ===== */

.radio-list {
  position: fixed;
  top: 0;
  right: -320px; /* Oculta */
  width: 320px;
  height: 100vh;
  background: rgba(20,20,20,0.97);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  transition: right 0.35s ease;
  z-index: 99999;
  overflow-y: auto;
}

.radio-list.open {
  right: 0;
}

/* Boton dentro de la radio bar */
.list-btn {
  margin-left: 15px;
}

/* BOTONES DE LA LISTA */
.radio-btn {
  width: 100%;
  border: none;
  background: #222;
  color: white;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: 0.2s ease;
}

.radio-btn:hover {
  background: #333;
}


.radio-btn .rb-item-name {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}


.radio-btn .rb-item-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: contain;
  background: #111;
  padding: 4px;
}

.radio-btn.activa {
  background: #e6c200;
  color: #000;
}

/* ===== RESPONSIVE RADIO BAR ===== */
@media screen and (max-width: 768px) {

  /* Barra de radio más compacta */
  .radio-bar {
    padding: 8px 15px;
    height: 80px;
  }

  .rb-left {
    min-width: 30%;
    gap: 10px;
  }

  .rb-logo {
    width: 50px;
    height: 50px;
  }

  .rb-info h4 {
    font-size: 14px;
  }

  .rb-info p {
    font-size: 11px;
  }

  .rb-center {
    gap: 15px;
  }

  .rb-btn {
    width: 40px;
    height: 40px;
  }

  .rb-btn.play {
    width: 50px;
    height: 50px;
  }

  #rb-volume {
    width: 100px;
  }

  /* Botón del menú */
  .list-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== RESPONSIVE SIDEBAR PARA CELULAR ===== */
@media screen and (max-width: 768px) {

  .radio-list {
    width: 100%; /* Ocupa toda la pantalla */
    right: -100%;
    padding: 15px;
  }

  .radio-list.open {
    right: 0;
  }

  .radio-btn {
    padding: 12px 10px;
    font-size: 16px;
  }

  .rb-item-logo {
    width: 35px;
    height: 35px;
  }

  /* Scroll suave para móviles */
  .radio-list {
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== RESPONSIVE PARA CELULARES PEQUEÑOS ===== */
@media screen and (max-width: 480px) {

  .rb-left {
    min-width: 35%;
    gap: 8px;
  }

  .rb-logo {
    width: 40px;
    height: 40px;
  }

  .rb-info h4 {
    font-size: 12px;
  }

  .rb-info p {
    font-size: 10px;
  }

  .rb-center {
    gap: 10px;
  }

  .rb-btn {
    width: 35px;
    height: 35px;
  }

  .rb-btn.play {
    width: 45px;
    height: 45px;
  }

  #rb-volume {
    width: 80px;
  }

  .radio-btn {
    font-size: 14px;
    padding: 10px 8px;
  }

  .rb-item-logo {
    width: 30px;
    height: 30px;
  }
}

#btn-close-menu {
  width: 100%;
  padding: 15px;
  background-color: #ffd700; /* El amarillo de tu diseño */
  color: black;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  margin-top: 10px; /* Un pequeño espacio arriba */
}

#btn-close-menu:hover {
  background-color: #e6c200; /* Un poco más oscuro al pasar el mouse */
}