/* ===================== */
/* 🎛️ PARTE 1: CONTENEDOR Y FONDO */
/* ===================== */

* {
  box-sizing: border-box;
}

body {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  z-index: 0;
}

body::before {
  content: "";
    clip-path: inset(0 round 20px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 650px;
  transform: translate(-50%, -50%);
  background-image: url("https://i.ibb.co/WvrpZF9L/Background-Repro-Fusion-GFX.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* ← esto es clave */
}

#reproductor-rick {
  position: relative;
  width: 480px;
  height: 650px;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  overflow: hidden;
  z-index: 1;
}

.repro-box {
  position: relative;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

/* ===================== */
/* 💿 PARTE 2: DISCO, ENCABEZADO Y TEXTOS */
/* ===================== */

.repro-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.icon-menu {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.icon-menu:hover {
  transform: scale(1.1);
}

.repro-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2em;
  color: #ff0000;
  text-align: center;
  flex: 1;
}

.repro-disc {
  margin-bottom: 20px;
}

.disc-img {
  width: 256px;
  height: 256px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  animation: spin 10s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.repro-name {
  position: relative;
  font-size: 3.0em;
  font-weight: bold;
  margin-bottom: 5px;
  background: linear-gradient(270deg, #010101, #ff0000, #ffffff, #ff0000, #ffffff, #ff0000, #010101);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 4s ease infinite;
}

.repro-name::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  color: white;
  filter: blur(1px);
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.repro-id {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
}

/* ===================== */
/* 🎶 Ecualizador dinámico */
/* ===================== */

#app {
  position: relative;
  z-index: 20;
}

.eq-empty {
  stroke: #ffffff;
  opacity: 0.4;
  transition: stroke 0.3s ease, opacity 0.3s ease;
}

.eq-filled {
  stroke: #ff0000;
  opacity: 1;
  animation: eqPulse 1.2s ease-in-out infinite;
}

@keyframes eqPulse {
  0%, 100% {
    stroke-opacity: 0.6;
    transform: scaleY(1);
  }
  50% {
    stroke-opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ===================== */
/* 🔘 Botones con aura y profundidad intensa */
/* ===================== */

#buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: -40px;
}

/* Botón base con transparencia y sombra ceremonial */
.soft {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid #ff0000;
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.95),   /* sombra abajo y derecha, muy marcada */
    0 0 12px #ff0000;                   /* aura roja */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.soft:hover {
  transform: scale(1.08);
  box-shadow:
    10px 10px 20px rgba(0, 0, 0, 1),    /* sombra más intensa al hover */
    0 0 24px #ff0000;
}

.repro-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: .5rem;
  z-index: 10;
  position: relative;
}

/* Botón de reproducción central */
.btn-play {
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid #ff0000;
  box-shadow:
    10px 10px 20px rgba(0, 0, 0, 1),
    0 0 24px #ff0000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.btn-play:hover {
  transform: scale(1.08);
  box-shadow:
    12px 12px 24px rgba(0, 0, 0, 1),
    0 0 32px #ff0000;
}

/* SVG dentro de botones */
button svg {
  width: 70%;
  height: 70%;
  fill: #00;
  pointer-events: none;
}

.btn-play svg path {
  filter: url(#inset-shadow);
  fill: #17191e;
}

.icon-pause,
.icon-play {
  transition: opacity 0.3s ease;
}

/* ===================== */
/* 🪟 Modal de Tracks */
/* ===================== */
.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  position: relative;
  background-color: rgba(20, 20, 20, 0.95);
  border: 2px solid #ff0000;
  border-radius: 12px;
  padding: 24px 32px;
  box-shadow: 12px 12px 24px rgba(0, 0, 0, 1), 0 0 24px #ff0000;
  color: #fff;
  text-align: center;
  max-width: 400px;
  z-index: 10000;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #ff3c3c;
  cursor: pointer;
  text-shadow: 0 0 8px #ff3c3c;
  z-index: 10001;
}

.modal-title {
  font-size: 1.4em;
  margin-bottom: 16px;
  color: #ff3c3c;
  text-shadow: 0 0 10px #ff3c3c;
}

.modal-info {
  font-size: 0.95em;
  color: #ccc;
  margin-bottom: 12px;
}

.track-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.track-list li {
  margin: 8px 0;
  font-size: 1em;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.track-list li:hover {
  color: #ff3c3c;
  text-shadow: 0 0 8px #ff3c3c;
}

#track-name.active {
  color: #ff4f81;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 79, 129, 0.5);
  transition: all 300ms ease;
}

/* ===================== */
/* BOTON REPEAT
/* ===================== */

.btn-repeat.repeat-track {
  box-shadow: 0 0 20px #00ffcc;
}

.btn-repeat.repeat-list {
  box-shadow: 0 0 20px #ffcc00;
}

/* ===================== */
/* BOTON REWIND
/* ===================== */
