:root {
  --accent-color: #8000ff;
  --accent-rgb: 128, 0, 255;
  --background-color: #1a1a1a;
  --text-color: #ffffff;
}




#popupIncompatibilidad {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.popup-contenido h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.popup-contenido p {
  font-size: 1rem;
  line-height: 1.5;
}

.popup-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -10%); }
  to { opacity: 1; transform: translate(-50%, 0); }
}




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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@keyframes zoomPan {
  0% {
    transform: scale(1) translateX(0);
  }
  50% {
    transform: scale(1.05) translateX(5%);
  }
  100% {
    transform: scale(1) translateX(0);
  }
}




.background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.6);
  transition: background-image 0.5s ease;
  z-index: 0;

  animation: zoomPan 1.5s ease-in-out infinite;
}

.player {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin-bottom: 60px;
}

.station-logo {
  width: 200px;
  margin: 0 auto 2rem;
}

.station-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(0.98);
  }
  70% {
    transform: scale(1.02);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cover-art {
  width: 250px;
  height: 250px;
  border-radius: 50%;      /* redondo */
  margin: 0 auto 1rem;     /* centra horizontalmente */
  box-shadow: 0 4px 12px rgba(0,0,0,0.5); /* sombra negra */
  overflow: hidden;
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;      /* redondo */

  /* Aplico dos animaciones: latido y rotación */
  animation: heartbeat 3s ease-in-out infinite, spin 20s linear infinite;
  transform-origin: center center;

  border: 4px solid white;
  box-sizing: border-box;
  box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.7);
}





.track-info {
  margin-bottom: 2rem;
}

.track-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.artist {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-color);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  font-size: 24px;
}

.play-btn:hover {
  transform: scale(1.1);
}

.play-btn.playing {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(var(--accent-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  }
}

.install-prompt {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(128, 0, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.install-prompt button {
  background: white;
  color: var(--accent-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

.install-prompt button:hover {
  transform: scale(1.1);
}

.metadata {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-btn {
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1) !important;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-btn.facebook:hover {
  background: #1877f2 !important;
}

.social-btn.twitter:hover {
  background: #000000 !important;
}

.social-btn.whatsapp:hover {
  background: #25d366 !important;
}

.social-btn.instagram:hover {
  background: #e4405f !important;
}

.social-btn.tiktok:hover {
  background: #000000 !important;
}

.social-btn:not(.facebook):not(.twitter):not(.whatsapp):not(.instagram):not(.tiktok):hover {
  background: var(--accent-color) !important;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn.twitter i {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  font-size: 1.2rem;
}

.copyright-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  z-index: 2;
  text-transform: uppercase;
  font-weight: bold;
}

.copyright-bar a {
  color: var(--accent-color);
  text-decoration: none;
}

.copyright-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .player {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 1rem;
  }

  .station-logo {
    width: 150px;
    margin-bottom: 1rem;
  }

  .cover-art {
    width: 200px;
    height: 200px;
  }

  .track-title {
    font-size: 1.2rem;
  }

  .artist {
    font-size: 1rem;
  }

  .play-btn {
    width: 60px;
    height: 60px;
  }

  .social-links {
    margin-top: 1rem;
  }

  .install-prompt {
    width: 90%;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .copyright-bar {
    font-size: 0.7rem;
  }
}




/* === CONTENIDO NORMAL === */
.container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
