/* Reset básico y configuración global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: transparent;
  font-family: 'Poppins', 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}


/* Contenedor principal del reproductor */
#radio-player {
  position: relative;
  width: 320px; /* Reducido ligeramente para iframe */
  background: linear-gradient(135deg, #3a3e41 0%, #232526 100%);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e0e0e0;
  overflow: hidden;
  margin: 0 auto;
}

/* --- NUEVO: Textura sutil de fondo --- */
#radio-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Opción 1: Líneas diagonales sutiles */
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.015), /* Color de la línea muy tenue */
    rgba(255, 255, 255, 0.015) 1px, /* Grosor de 1px */
    transparent 1px, /* Espacio transparente */
    transparent 8px /* Espacio hasta la siguiente línea (ajusta este valor) */
  );
  /* Opción 2: Ruido sutil (requiere una imagen pequeña o SVG) */
  /* background-image: url('path/to/noise-texture.png'); */
  /* background-repeat: repeat; */
  /* opacity: 0.05; */

  z-index: 0; /* Colocar detrás del contenido */
  pointer-events: none; /* Para que no interfiera con clicks */
}

/* --- Asegurarse que el contenido esté sobre la textura --- */
#cover-img, .info, .controls {
  position: relative; /* O z-index: 1; */
  z-index: 1;
}


/* Portada (Cover Art) - Ahora es hijo directo */
#cover-img { /* Selector actualizado */
  width: 120px;
  height: 120px;
  border-radius: 18px;
  display: block;
  /* box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px; /* El margen que antes tenía .cover */
}

#radio-player:hover #cover-img { /* Selector de hover actualizado */
  transform: scale(1.03);
  /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); */
}

/* Sección de Información (sin cambios, pero aseguramos z-index) */
.info {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  position: relative; /* Para estar sobre el ::before */
  z-index: 1;
}

.info .radio-name {
  font-size: 14px;
  font-weight: 500;
  color: #9a9a9a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info #track-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
  min-height: 24px;
}

.info #track-artist {
  font-size: 15px;
  font-weight: 400;
  color: #bdc3c7;
  margin-bottom: 12px;
  min-height: 20px;
}

/* Estado "On Air" (sin cambios) */
.status {
  display: flex;
  justify-content: center;
  align-items: center;
}

.on-air {
  font-size: 12px;
  color: #ff6b81;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  background-color: rgba(255, 107, 129, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #ff6b81;
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Sección de Controles (sin cambios, pero aseguramos z-index) */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  position: relative; /* Para estar sobre el ::before */
  z-index: 1;
}

/* Estilo base para botones (sin cambios) */
.control-btn {
  background: transparent;
  color: #bdc3c7;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.control-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.control-btn:active {
  transform: scale(0.95);
}

/* Botón Play/Pause (sin cambios) */
.play-pause-btn {
  width: 50px;
  height: 50px;
  font-size: 18px;
  background-color: #ff6b81;
  color: #ffffff;
  order: 2;
}

.play-pause-btn:hover {
  background-color: #ff4757;
  color: #ffffff;
}

/* Botones pequeños (sin cambios) */
.small-btn {
  width: 36px;
  height: 36px;
  font-size: 14px;
  order: 1;
}

/* Contenedor del slider de volumen (sin cambios) */
.volume-control {
  flex-grow: 1;
  display: flex;
  align-items: center;
  margin: 0 15px;
  order: 3;
}

/* Estilo del slider de volumen (sin cambios) */
#volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#volume:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Estilo del "pulgar" (thumb) del slider - Webkit (sin cambios) */
#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #ff6b81;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #2a2d2f;
  transition: background 0.2s ease, transform 0.2s ease;
}

#volume:hover::-webkit-slider-thumb {
   background: #ff4757;
   transform: scale(1.1);
}

/* Estilo del "pulgar" (thumb) del slider - Firefox (sin cambios) */
#volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #ff6b81;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #2a2d2f;
  transition: background 0.2s ease, transform 0.2s ease;
}

#volume:hover::-moz-range-thumb {
   background: #ff4757;
   transform: scale(1.1);
}

#volume::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}


