/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 🧱 Repro Sphere principal                                       */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.repro-sphere {
  width: 418px;
  height: 400px;
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: row; /* Cambio clave: horizontal para cara lateral */
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 🖼️ Imagen base con carátulas + animación de giro               */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.caratula-container {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 90%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  aspect-ratio: 1/1;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.caratula-img {
  width: 94%;
  height: 94%;
    border-radius: 50%;
  object-fit: contain; /* Cambio clave para evitar recortes */
  animation: giro-caratula 12s linear infinite;
  transform-origin: center center;
}

@keyframes giro-caratula {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 🧊 Imagen superior con transparencias                           */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.overlay-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 🎧 Contenedor de audio oculto                                   */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.block-audio {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 📜 Playlist como cara lateral izquierda                         */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.playlist-block {
  position: relative;
  bottom: 1px;
  right: 98px;
  z-index: 3;
  width: 106px;
  height: 46%;
  overflow-y: auto;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 10px;
  padding: 0.5rem;
  box-sizing: border-box;
}

.queue {
  list-style: none;
  padding: 0;
  margin: 0;
}

.queue li {
  padding: 0.4rem;
  font-size: 0.9rem;
  color: #eee;
  border-bottom: 1px solid #444;
  cursor: pointer;
  transition: background 0.2s ease;
}

.queue li:hover {
  background: #00ffff;
  color: #000;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 🌊 Scrollbars personalizados en tono aqua                      */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.playlist-block::-webkit-scrollbar {
  width: 8px; /* Grosor del scroll */
}

.playlist-block::-webkit-scrollbar-track {
  background: #111; /* Fondo oscuro para contraste */
  border-radius: 10px;
}

.playlist-block::-webkit-scrollbar-thumb {
  background: #00ffff; /* Aqua principal */
  border-radius: 10px;
  box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
}

.playlist-block::-webkit-scrollbar-thumb:hover {
  background: #00cccc; /* Aqua más intenso al hover */
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

/* Firefox */
.playlist-block {
  scrollbar-width: thin; /* Scroll delgado */
  scrollbar-color: #00ffff #111; /* Pulgar aqua sobre fondo oscuro */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Volumen Vertical (Corregido) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.volumen-option {
  position: absolute;
  bottom: 120px; /* Ajusta según layout */
  left: 12px;
  height: 150px; /* Altura total del bloque */
  display: flex;
  flex-direction: column; /* Vertical */
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.volume-icon {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow:
    0 0 4px rgba(0, 255, 255, 0.8),
    0 0 8px rgba(0, 255, 255, 0.6),
    0 0 1px rgba(0, 200, 200, 0.9);
  cursor: pointer;
}

/* Contenedor de la barra */
.volume-track {
  width: 16px;
  height: 200px; /* Altura de la barra */
  background: #444;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}

/* Barra vertical (el input range) */
.volume-bar {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width: 12px;
  height: 100%;
  border-radius: 6px;
  /* CAMBIO: Fondo transparente para que el relleno del track sea visible */
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
  /* Variable CSS para controlar el nivel de llenado */
  --value: 50%;
}

/* Track completo y Parte llena en WebKit (Chrome, Edge, Safari) */
.volume-bar::-webkit-slider-runnable-track {
  width: 12px;
  height: 100%;
  border-radius: 6px;
  /* CAMBIO: Usa la variable --value para el relleno (turquesa) */
  background: linear-gradient(to top, #00ffd5 var(--value), #111 var(--value));
}

/* Thumb centrado y turquesa (WebKit) */
.volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #00CED1; /* Turquesa oscuro */
  border-radius: 50%; /* CIRCULAR */
  cursor: pointer;
  /* Sombra turquesa para que se vea SOBRE el nivel */
  box-shadow: 0 0 6px #00CED1, 0 0 12px #00CED1;
  border: none;
  transform: translateX(2px); /* Centrado horizontal (16px thumb en 12px track) */
}

/* Parte llena en Firefox */
.volume-bar::-moz-range-progress {
  background: #00ffd5;
  border-radius: 6px;
}

/* Thumb turquesa en Firefox (Consolidado y corregido) */
.volume-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #00CED1; /* Turquesa oscuro */
  border-radius: 50%; /* CIRCULAR */
  cursor: pointer;
  /* Sombra turquesa para que se vea SOBRE el nivel */
  box-shadow: 0 0 6px #00CED1, 0 0 12px #00CED1;
  border: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ▶️ Sección inferior: reproductor + controles                    */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bottom-block {
  position: absolute;
  bottom: 175px; /* Ajusta según tu layout */
  right: 173px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.play-btn {
  background: #222;
  color: white;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: none;
  padding: 0;
  position: relative; /* Asegura que se mantenga dentro del flujo */
  z-index: 3;
}

.play-btn:hover {
  transform: scale(1.1);
}

.play-btn i {
  font-size: 1.2rem; /* Ícono más pequeño dentro del botón más grande */
  color: #00ffff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.play-btn i.fa-play,
.play-btn i.fa-pause {
  color: #00ffff;
}

.play-btn:hover i {
  transform: scale(1.2);
}

.online-btn {
  position: absolute;
  top: 78px;
  left: 50px;
  background: #222; /* Fondo oscuro para contraste */
  color: #00ffff; /* Texto aqua */
  font-weight: bold;
  border: 2px solid #00ffff; /* Borde aqua */
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
  transition: transform 0.2s ease-in-out;
  z-index: 10;
}

.online-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff;
}

.online-btn.active {
  background: #00ffff; /* Fondo aqua encendido */
  color: #000; /* Texto negro para contraste */
  box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
}