* { margin:0; padding:0; box-sizing:border-box; }

body {
  margin:0;
  min-height:100vh;
  font-family:'Lato',Arial,sans-serif;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:hidden;
  position:relative;
}

/* Fondo fijo (cambia la URL por tu imagen optimizada) */
.fixed-background {
  position:fixed;
  inset:0;
  background:url('icon/fondo.jpg') center/cover no-repeat fixed;
  z-index:-2;
}

.fixed-background::before {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
  z-index:-1;
}

/* Logo */
.logo {
  position:fixed;
  top:15px;
  left:15px;
  z-index:10;
}
.logo img { height:70px; max-width:90vw; }

/* Título */
.title {
  margin:90px 0 20px;
  text-align:center;
  font-family:'Raleway',serif;
  font-size:clamp(28px,8vw,42px);
  font-weight:800;
  letter-spacing:2px;
  color:#fbbf24;
  text-shadow:0 4px 15px rgba(251,191,36,0.4);
}

/* Contenedor */
.container {
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
}


/* CARÁTULA MÁS CHICA EN MÓVIL */
.cover-spin {
  position:relative;
  width: clamp(200px, 65vmin, 340px); /* ← Aún más chica en móvil (200px min), grande en web (340px max) */
  height: clamp(200px, 65vmin, 340px);
  margin: 20px 0;
  border-radius:50%;
  overflow:hidden;
  border:8px solid #fbbf24;
  box-shadow:0 20px 50px rgba(0,0,0,0.7),
  0 0 40px rgba(251,191,36,0.4);
  animation:float 6s ease-in-out infinite;
}

#album {
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Brillo dorado que pulsa */
.glow-effect {
  position:absolute;
  inset:-20px;
  background:radial-gradient(circle, rgba(251,191,36,0.6), transparent 70%);
  border-radius:50%;
  opacity:0;
  animation:pulse-glow 4s ease-in-out infinite;
}

.playing .glow-effect {
  opacity:1;
  animation:pulse-glow 2s ease-in-out infinite;
}

/* Animaciones */
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-15px); } }
@keyframes pulse-glow { 0%,100% { opacity:0; transform:scale(0.8); } 50% { opacity:0.8; transform:scale(1.2); } }

.playing { animation:spin 20s linear infinite, float 6s ease-in-out infinite; }

/* Brillo dorado que pulsa */
.glow-effect {
  position:absolute;
  inset:-20px;
  background:radial-gradient(circle, rgba(251,191,36,0.6), transparent 70%);
  border-radius:50%;
  opacity:0;
  animation:pulse-glow 4s ease-in-out infinite;
}

.playing .glow-effect {
  opacity:1;
  animation:pulse-glow 2s ease-in-out infinite;
}

/* Animaciones */
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-15px); } }
@keyframes pulse-glow { 0%,100% { opacity:0; transform:scale(0.8); } 50% { opacity:0.8; transform:scale(1.2); } }

.playing { animation:spin 20s linear infinite, float 6s ease-in-out infinite; }

/* Botón play */
#playButton {
  margin-top:20px;
  background:rgba(251,191,36,0.9);
  color:#0f172a;
  border:none;
  width:70px;
  height:70px;
  border-radius:50%;
  cursor:pointer;
  font-size:32px;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
}
#playButton:active { transform:scale(0.92); }

/* Canción */
.metadata-container {
  text-align:center;
  margin:20px 0;
  font-size:clamp(18px,5vw,22px);
  padding:0 20px;
  max-width:90%;
  line-height:1.5;
  font-weight:500;
  color:#fbbf24;
}

/* Volumen */
.controls {
  margin:20px 0 40px;
  width:85%;
  max-width:300px;
}
#volume-slider {
  width:100%;
  height:8px;
  border-radius:10px;
  background:rgba(255,255,255,0.2);
  -webkit-appearance:none;
  appearance:none;
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance:none;
  width:28px;
  height:28px;
  background:#fbbf24;
  border-radius:50%;
  box-shadow:0 4px 15px rgba(251,191,36,0.6);
}

/* Versículo simple */
.verse-simple {
  margin:30px 0;
  text-align:center;
  font-size:clamp(19px,5.5vw,24px);
  line-height:1.7;
  color:#fbbf24;
  font-style:italic;
  padding:0 20px;
}

/* Redes sociales izquierda */
.social-bar {
  position:fixed;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  z-index:10;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.social-bar a img {
  width:45px;
  height:45px;
  border-radius:50%;
  box-shadow:0 4px 15px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width:480px) {
  .logo img { height:50px; }
  .title { margin-top:70px; }
  #playButton { width:60px; height:60px; font-size:28px; }
}