/* ===================== */
/* Estructura Principal */
/* ===================== */

#main-container {
  width: 850px;
  height: 425px;
  display: flex;
  flex-direction: column;
  background: #111;
  border: 2px solid #333;
  box-shadow: 0 0 20px #000;
  overflow: hidden;
  border-radius: 8px;
}

header {
    height: 20px;
  background: #222;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
    color: #fff;
  border-bottom: 1px solid #444;
}

.btn-online {
  width: 104px;
  height: 24px;
  background: linear-gradient(to bottom, #ebeff8 0%, #ebeff8 50%, #9c9faf 50%, #9c9faf 100%);
  border: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-family: 'Impact', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #3f434e;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px #3f434e;
}

.btn-online:hover {
  background: linear-gradient(to bottom, #dce0ec 0%, #dce0ec 50%, #7f8191 50%, #7f8191 100%);
  color: #1f2128;
  box-shadow: inset 0 0 0 1px #1f2128;
  cursor: pointer;
}

.rockola-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 1rem;
  position: relative;
}

.rockola-caratulas {
  display: flex;
  justify-content: center;
  align-items: center; /* ← centrado vertical correcto */
  position: relative;
  perspective: 200px; /* ← restaurado como lo tenías originalmente */
  overflow: visible;
  padding: 0 1rem;
}

/* ===================== */
/* Carátulas Laterales */
/* ===================== */
.left-card,
.right-card {
    background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  width: 120px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
}

.left-card,
.right-card,
.center-card {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Lado izquierdo, más cerca del centro (z-index más alto) */
#l1 { 
    transform: rotateY(70deg) translateX(10px); 
    z-index: 8; 
} 
#l2 { 
    transform: rotateY(70deg) translateX(20px); 
    z-index: 7; 
}
#l3 { 
    transform: rotateY(70deg) translateX(30px); 
    z-index: 6; 
}
/* Lado izquierdo, más lejos del centro (z-index más bajo) */
#l4 { 
    transform: rotateY(70deg) translateX(40px); 
    z-index: 5; 
}

/* Apilamiento derecha (mantendremos tu z-index, asumiendo que el centro es el más alto) */
#r1 { transform: rotateY(-70deg) translateX(-12px); z-index: 11; } /* Más cerca del centro */
#r2 { transform: rotateY(-70deg) translateX(-20px); z-index: 10; }
#r3 { transform: rotateY(-70deg) translateX(-28px); z-index: 9; }
#r4 { transform: rotateY(-70deg) translateX(-36px); z-index: 8; } /* Más lejos del centro */

/* Reflejo ritualizado */
.left-card::after,
.right-card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scaleY(-1);
  opacity: 0.25;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
}

/* Imagen lateral */
.left-card img,
.right-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 0 10px #000;
  display: none;
}

.left-card.animar,
.right-card.animar {
  transform: scale(1.02) rotateY(70deg);
  opacity: 0.9;
}
/* ===================== */
/* Carátula Central */
/* ===================== */

.center-card {
  width: 200px;
  height: 200px;
  transform: none;
  z-index: 100;
  position: relative;
  margin: 0 1rem;
}

.center-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 0 0 15px #000;
  display: block;
}

.center-card.animar {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===================== */
/* Contenedor de Metadatos */
/* ===================== */
.info-track-container {
    /* Posicionamiento y centrado */
    text-align: center;
    margin-top: 1rem; /* Espacio debajo de las carátulas */
    padding: 0 1rem;
    color: #eee; /* Color del texto claro */
}

.info-track-container h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #fff; /* Título en blanco para destacar */
}

.info-track-container p {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: #bbb; /* Color más suave para detalles */
}

/* Estilo específico para el Género si quieres diferenciarlo */
#current-genre {
    font-style: italic;
    font-size: 0.8rem;
    color: #888;
}

/* ===================== */
/* Botones Rockola */
/* ===================== */

.rockola-zone {
  position: relative; /* necesario para posicionar los botones dentro */
}

.rockola-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  z-index: 200;
  pointer-events: none; /* evita colisión con capas inferiores */
}

.rockola-buttons button {
  pointer-events: auto; /* reactiva clics */
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px #000;
  cursor: pointer;
  transition: background 0.3s ease;
}

.rockola-buttons button:hover {
  background: #555;
}

/* ===================== */
/* Zona Inferior */
/* ===================== */
.bottom-zone {
    height: 40px;
  display: flex;
  justify-content: space-between;
  background: #181818;
}

.left-bottom,
.center-bottom,
.right-bottom {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
    color: #fff;
}

/* ===================== */
/* 🎶 Ecualizador dinámico */
/* ===================== */

/* 1. Definimos la variable de color por defecto en la raíz (Requisito: #3688ff) */
:root {
    --color-ondas: #3688ff; 
}

#app {
  position: relative;
  z-index: 20;
}

.eq-bar-empty {
  stroke: #ffffff;
  opacity: 0.4;
  transition: stroke 0.3s ease, opacity 0.3s ease;
}

.eq-bar-filled {
  stroke: var(--color-ondas); 
  opacity: 1;
  animation: eqPulse 1s infinite ease-in-out;
  transition: stroke 0.5s ease; 
}

.pulsing {
  animation: eqPulse 1s infinite ease-in-out;
}

@keyframes eqPulse {
  0%, 100% {
    stroke-opacity: 0.6;
    transform: scaleY(1);
  }
  50% {
    stroke-opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ===================== */
/* Botonera */
/* ===================== */
.botonera {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.botonera button {
  width: 40px;
  height: 40px;
  border: 1px solid #888;
  font-size: 1.0rem;
  color: #fff;
  background: radial-gradient(circle at top, #fff 0%, #000 40%); /* reflejo curvado */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, **box-shadow 0.3s ease**;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), 0 0 8px #000;
}

.botonera button:hover {
  background: radial-gradient(circle at top, #888 0%, #111 80%);
  transform: scale(1.05);
}

/* Estilos separados (si deseas diferenciarlos más adelante) */
.btn-playpause {
  background: #444;
}
/* Estilo base de los botones de control (si tienen color de fondo por defecto) */
.btn-repeat, .btn-shuffle {
    background-color: #444; /* Ejemplo de color base */
    transition: background-color 0.2s ease;
    border: 1px solid #666; /* Borde opcional para contraste */
}

.btn-back.active,
.btn-next.active {
    border-color: #3688ff;
    color: #fff;
}

/* ----------------------------------------------------------
   🔁 Repeat y 🔀 Shuffle — estilos visuales
   ---------------------------------------------------------- */

/* Estado normal de los botones */
#btn-repeat,
#btn-shuffle {
  color: #ccc;              /* color base apagado */
  transition: all 0.3s ease;
}

/* Glow blanco cuando están activos */
.glow-white {
  color: #fff !important;   /* texto/icono blanco */
  text-shadow: 0 0 8px #fff,
               0 0 12px #fff,
               0 0 16px #fff; /* efecto glow */
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
}

/* Hover para dar feedback adicional */
#btn-repeat:hover,
#btn-shuffle:hover {
  color: #eee;
  cursor: pointer;
}


/* ===================== */
/* Barra de Volumen */
/* ===================== */

.right-bottom {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: #ccc;
}

.right-bottom i {
  font-size: 1.2rem;
}

.right-bottom input[type="range"] {
  width: 150px;
  height: 6px;
  accent-color: #888;
  background: transparent;
  cursor: pointer;
}

.custom-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff0000;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1em;
    text-shadow: 0 0 8px #c2a044;
    box-shadow: 0 0 20px #ff0000b3; /* b3 ≈ 70% de opacidad */
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.custom-message.show {
    opacity: 1;
}