
/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* BODY Y FONDO */
body {
  margin: 0;
  background: linear-gradient(120deg, #00000094, #ff0000, #00c3319e);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  font-family: Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
}

/* LOGO */
#logo {
  width: 190px;
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.1s ease;
  z-index: 9999;
}

/* BURBUJA PELI */
#peli-bubble {
  position: fixed;
  bottom: 345px;
  left: 50%;
  transform: translateX(-50%);
  background: #f1bd02;
  color: rgb(4, 4, 4);
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 15px #ffffff;
  z-index: 10002;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
}

/* SOCIAL ROW ABAJO */
.social-row-abajo {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10001;
}
.social-row-abajo a {
  background: #fff;
  padding: 4px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}
.social-row-abajo a:hover { transform: scale(1.15); }
.social-row-abajo img { width: 40px; height: 40px; }

/* GALLERY */
.gallery-scroll {
  position: fixed;
  bottom: 170px;
  left: 0;
  width: 100%;
  overflow-x: auto;
  display: flex;
  gap: 10px;
  padding-left: 50vw;
  padding-right: 50vw;
  box-sizing: border-box;
  z-index: 9998;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  scroll-padding-left: 50vw;
  scroll-padding-right: 50vw;
}
.gallery-item { 
  flex: 0 0 auto; 
  width: 70vw; 
  aspect-ratio: 16 / 9; 
  scroll-snap-align: center; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.6); 
}
.gallery-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  border-radius: 12px; 
}

/* RADIO PLAYER */
.radio-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  padding: 12px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 0 20px;
  z-index: 10002;
}
.play-btn {
  font-size: 26px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #f1bd02;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 10px #f1bd02;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}
.play-btn:focus { outline: 2px solid #fff; }

/* BARRAS DEL SPECTRUM */
.spectrum { 
  display: flex; 
  justify-content: center; 
  align-items: flex-end; 
  gap: 4px; 
  height: 40px; 
  width: 150px; 
  margin: auto; 
  margin-top: 10px; 
  z-index: 999; 
}
.bar { 
  width: 4px; 
  background: lime; 
  animation: bounce 1s infinite ease-in-out; 
  transition: height 0.1s ease; 
}

/* BURBUJA INSTALAR */
#install-bubble { 
  position: fixed; 
  bottom: 120px; 
  right: 20px; 
  background: #eaff00; 
  color: #050505; 
  padding: 10px 15px; 
  border-radius: 25px; 
  font-weight: bold; 
  font-size: 15px; 
  cursor: pointer; 
  box-shadow: 0 0 15px #ff6a00cc; 
  z-index: 99999; 
  display:none; 
  text-align:center; 
}

/* BURBUJA IOS */
#ios-install-prompt { 
  position: fixed; 
  bottom: 20px; 
  left: 20px; 
  right: 20px; 
  background: rgba(0,0,0,0.9); 
  color: white; 
  padding: 16px; 
  border-radius: 12px; 
  font-size: 14px; 
  text-align: center; 
  z-index: 99999; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.5); 
  display:none; 
}
#ios-install-prompt button { 
  margin-top: 8px; 
  background: #ff4444; 
  color: white; 
  border: none; 
  padding: 8px 16px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: bold; 
}

/* BURBUJA ACTIVAR SONIDO ANDROID */
#activateSound { 
  position: fixed; 
  bottom: 120px; 
  right: 20px; 
  background: rgba(255,255,255,0.95); 
  color: #000; 
  border: none; 
  border-radius: 25px; 
  padding: 12px 20px; 
  font-size: 16px; 
  font-weight: bold; 
  cursor: pointer; 
  display: none; 
  z-index: 100000; 
  box-shadow: 0 0 15px #ffffffaa; 
  transition: opacity 0.3s ease, transform 0.3s ease; 
}

/* CILINDRO DE ARTISTAS */
.zone {
  position: absolute;
  top: 56px; 
  left: 0; 
  right: 0; 
  bottom: 0;
  display: flex;
  align-items: flex-start;  /* sube el cilindro hacia arriba */
  justify-content: center;
  perspective: 1400px;
  padding-top: 40px;        /* separa un poco del header, ajusta este valor si quieres más o menos */
}
.ring {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 28px rgba(0,0,0,.55);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  width: auto;   /* lo controla JS */
  height: auto;  /* lo controla JS */
}
.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ANIMACIONES */
@keyframes gradientAnimation { 
  0%{background-position:0% 50%} 
  50%{background-position:100% 50%} 
  100%{background-position:0% 50%} 
}
@keyframes bounce { 
  0%,100%{transform:scaleY(0.5)}
  50%{transform:scaleY(1)} 
}
/* ====== MENÚ FLOTANTE (nuevo) ====== */
#menu-toggle {
  position: fixed;
  top: 25px;
  left: 20px;
  font-size: 26px;
  color: #ffcc00;
  cursor: pointer;
  z-index: 10005;
  user-select: none;
  text-shadow: 0 0 8px #000;
}
#side-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 10004;
}
#side-menu.active { display: flex; animation: fadeIn 0.25s ease forwards; }
.menu-content {
  background: rgba(0,0,0,0.85);
  width: 75%;
  max-width: 320px;
  height: 100%;
  padding: 40px 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}
.menu-content #close-menu {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
  background: none;
  border: none;
  color: #ffcc00;
  cursor: pointer;
}
.menu-content ul { list-style: none; margin-top: 80px; padding: 0; }
.menu-content li {
  font-size: 18px;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}
.menu-content li:hover { color: #ffcc00; transform: translateX(6px); }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* ====== BURBUJA Compartir App (nueva) ====== */
#share-bubble {
  position: fixed;
  bottom: 345px;           /* mismo lugar donde estaba tu peli-bubble */
  left: 50%;
  transform: translateX(-50%);
  background: #f1bd02;
  color: #040404;
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 15px #ffffff;
  z-index: 10002;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
}

/* ====== REPRODUCTOR cuadrado elegante (nuevo) ====== */
.radio-player-elegante {
  position: fixed;
  bottom: 220px;           /* por encima de las redes sociales */
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: rgba(0,0,0,0.8);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  backdrop-filter: blur(6px);
  padding: 10px;
}
.radio-player-elegante .play-btn {
  font-size: 40px;
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  background: #ffcc00;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 20px #ffcc00;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
  transition: transform 0.25s ease;
}
.radio-player-elegante .play-btn:hover { transform: scale(1.08); }
.radio-player-elegante .spectrum {
  display: flex; justify-content: center; align-items: flex-end;
  height: 60px; width: 150px; margin-top: 10px;
}
.radio-player-elegante .bar { width: 5px; background: #00ff66; margin: 0 2px; }

/* ====== Pie de créditos (nuevo) ====== */
#creditos {
  position: fixed;
  bottom: 60px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #ddd;
  z-index: 10000;
}
#creditos a { color: #ffcc00; text-decoration: underline; font-weight: 700; }
#creditos a:hover { color: #fff; }
/* === ICONOS SUPERIORES === */
#menu-toggle {
  position: fixed;
  top: 25px;
  left: 25px;
  font-size: 28px;
  color: #ffcc00;
  cursor: pointer;
  z-index: 10005;
}
#share-top {
  position: fixed;
  top: 25px;
  right: 25px;
  font-size: 24px;
  color: #ffcc00;
  cursor: pointer;
  z-index: 10005;
}

/* === MENÚ FLOTANTE === */
/* === ICONOS SUPERIORES ADAPTABLES === */
#menu-toggle,
#share-top {
  position: fixed;
  top: clamp(20px, calc(env(safe-area-inset-top) + 35px), 60px);
  font-size: 28px;
  color: #ffcc00;
  cursor: pointer;
  z-index: 10005;
  user-select: none;
  text-shadow: 0 0 6px #000;
}
#menu-toggle { left: 25px; }
#share-top { right: 25px; }

/* === MENÚ FLOTANTE (igual que antes) === */
/* === ICONOS SUPERIORES RESPONSIVOS === */
#menu-toggle,
#share-top {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 80px); /* respeta notch y baja */
  font-size: 28px;
  color: #ffcc00;
  cursor: pointer;
  z-index: 10005;
  user-select: none;
  text-shadow: 0 0 6px #000;
}
#menu-toggle { left: 28px; }
#share-top { right: 28px; }

/* === CONTENEDOR DE SUBPÁGINAS (para que no se escondan bajo el notch) === */
#iframe-container iframe {
  margin-top: calc(env(safe-area-inset-top) + 60px);
}

/* === REPRODUCTOR VERTICAL AJUSTADO === */
.radio-player-elegante {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(270px, 60vw, 320px);
  height: clamp(420px, 60vh, 460px);
  background: rgba(0,0,0,0.85);
  border-radius: 30px;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 25px 10px;
  backdrop-filter: blur(10px);
  z-index: 10002;
  bottom: clamp(180px, 15vh, 230px); /* sube un poco y adapta según pantalla */
}

/* === LOGO CON CHISPA DORADA === */
.logo-container {
  position: relative;
  width: clamp(150px, 40vw, 180px);
  height: clamp(150px, 40vw, 180px);
  margin-top: 10px;
}
.logo-reproductor {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* Animación chispa eléctrica dorada */
.brillo-dorado {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      rgba(255,200,0,0) 0deg,
      rgba(255,215,0,0.9) 70deg,
      rgba(255,200,0,0) 130deg);
  animation: chispaOro 2.8s linear infinite;
  filter: blur(8px) brightness(1.4);
  z-index: 1;
}
@keyframes chispaOro {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === BOTÓN PLAY / PAUSE === */
.radio-player-elegante .play-btn {
  font-size: 46px;
  width: 90px;
  height: 90px;
  border: none;
  border-radius: 50%;
  background: #ffcc00;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 30px #ffcc00;
  transition: transform 0.3s ease;
}
.radio-player-elegante .play-btn:hover { transform: scale(1.1); }

/* === BARRAS DE SPECTRUM === */
.radio-player-elegante .spectrum {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 70px;
  width: 180px;
  margin-bottom: 20px;
}
.radio-player-elegante .bar {
  width: 6px;
  background: #00ff66;
  margin: 0 3px;
}

/* === PIE CRÉDITO (sin cambios) === */
#creditos {
  position: fixed;
  bottom: 60px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}
#creditos a {
  color: #ffcc00;
  text-decoration: underline;
  font-weight: bold;
}
#creditos a:hover { color: #fff; }