body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
    color: #333;
    margin: 0;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Sidebar contenedor */
#categories-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

/* Botones de categoría estilo lista elegante */
.category-btn {
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.category-btn:hover,
.category-btn:focus {
  background: #007bff;
  color: white;
  border-color: #007bff;
  box-shadow: 0 3px 8px rgba(0,123,255,0.15);
}

/* Íconos opcionales a la izquierda del nombre */
.category-btn i {
  font-size: 1rem;
  color: inherit;
}

/* Título de sección */
aside h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #555;
}


#radios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 40px;
}

.radio-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 220px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.radio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.radio-item img {
    border-radius: 8px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.radio-item strong {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
    color: #222;
}

.radio-item button {
    background-color: #28a745;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(40,167,69,0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

#radio-title {
        display: flex;
    justify-content: center;

}

.radio-item button:hover {
    background-color: #1e7e34;
    box-shadow: 0 6px 12px rgba(30,126,52,0.5);
}

audio#radio-player {
    display: block;
    max-width: 600px;
    margin: 0 auto 50px auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: white;
}

em {
    display: block;
    text-align: center;
    font-style: normal;
    color: #777;
    margin: 20px 0;
}


.player-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#play-toggle {
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

#play-toggle:hover {
    background: #0056b3;
}

.loader {
    width: 24px;
    height: 24px;
    border: 4px solid #fff;
    border-top: 4px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 20px;
    left: 20px;
}

.hidden {
    display: none;
}
.radio-name {
  font-weight: 400;
  font-size: 1rem;
  margin: 4px 0; /* ajusta según quieras menos espacio */
  text-align: center;
  color: #222;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.radio-img-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Imagen original, sin opacidad directa */
.radio-img-container .radio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Overlay negro con opacidad */
.radio-img-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 54%); /* Ajusta la opacidad aquí */
    pointer-events: none;
}
.emisora-btn {
  background-color: #000000a8 !important;
  color: white !important;
  border: solid !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
}

.emisora-btn i {
  color: white !important;
  font-size: 18px;
}

/* Al hacer hover o focus cambia ligeramente el fondo para indicar interacción */
.emisora-btn:hover,
.emisora-btn:focus {
  color: #007bffdb !important;
  outline: none;
  box-shadow: 0 0 10px rgba(255,255,255,1);
}

/* Al hacer click (activo) no cambia a rosa oscuro ni otro color */
.emisora-btn:active {
  background-color: transparent !important;
  color: white !important;
  box-shadow: 0 0 12px rgba(255,255,255,1);
}

/* Si usas .btn-danger o .btn-success en JS, también mantener blanco */
/* Puedes añadir esto para forzar icono blanco si se usa .btn-danger */
.emisora-btn.btn-danger, 
.emisora-btn.btn-success {
  background-color: #007bffdb !important;
  color: white !important;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
}

.emisora-btn.btn-danger i,
.emisora-btn.btn-success i {
  color: white !important;
}

#play-toggle {
      border-radius: 50% !important;
      position: relative;
      overflow: hidden;
      transition: background-color 0.3s ease;
    }
    #play-toggle:focus {
      outline: none;
      box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.5);
    }
    #play-toggle .ripple {
      position: absolute;
      border-radius: 50%;
      background: rgba(0, 123, 255, 0.3);
      animation: ripple-effect 0.6s linear;
      pointer-events: none;
      transform: scale(0);
      opacity: 0.7;
      width: 100px;
      height: 100px;
      top: 50%;
      left: 50%;
      margin-top: -50px;
      margin-left: -50px;
    }
    @keyframes ripple-effect {
      to {
        transform: scale(2.5);
        opacity: 0;
      }
    }
