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

* {
  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;
}

/* Contenedor del reproductor */
.player {
    position: relative;
    /* Asegura que el botón se posicione dentro del player */
    width: 100%;
    /* Ajusta el tamaño según sea necesario */
}

.menu-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    /* Ajusta el tamaño del botón */
    height: 50px;
    background-color: white;
    /* Fondo blanco */
    border: none;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu-button img {
    width: 24px;
    /* Ajusta el tamaño del icono */
    height: 24px;
}

.side-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.side-menu ul li {
    padding: 5px 10px;
    /* Reduce el padding interno */
    margin: 0;
    /* Elimina el margen entre los elementos */
    font-size: 14px;
    /* Reduce el tamaño del texto */
    display: flex;
    align-items: center;
    gap: 5px;
    /* Reduce la separación entre icono y texto */
}

.side-menu ul li a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    width: 100%;
}


/* Menú lateral */
/* Menú lateral (Ahora en el lado izquierdo) */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    /* Escondido inicialmente en el lado izquierdo */
    width: 250px;
    height: 100%;
    background: white;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    padding: 20px;
    z-index: 1000;
}

/* Mostrar menú */
.side-menu.open {
    left: 0;
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Mover el botón de cerrar a la izquierda */
    background: red;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}
.menu-header {
    width: 100%;
    padding: 0;
    margin: 0;
}

.menu-header img {
    width: 100%;
    height: auto;
    display: block;
}





/* Lista de opciones */
.side-menu {
    padding: 0;
    margin: 0;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.side-menu ul li {
    margin: 1px 0;
}

.side-menu ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: black;
    display: block;
    padding: 7px;
    border-radius: 5px;
    transition: background 0.3s;
}

.side-menu ul li a:hover {
    background: rgba(0, 0, 0, 0.1);
}










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

/* Capa de color encima del fondo */
.background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    /* Color personalizado */
    opacity: 0.5;
    /* Ajusta la opacidad según lo necesites */
    z-index: 1;
}

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

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

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

.cover-art {
    position: relative;
    /* Necesario para que ::after se posicione correctamente */
    width: 270px;
    height: 270px;
    border: 12.6462px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    /* Ajustado para ser un círculo */
    margin: 0 auto 1rem;
    animation: spin 4s linear infinite;
    animation-play-state: running;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
}

/* Imagen encima */
.cover-art::after {
    content: "";
    position: absolute;
    top: 50%;
    /* Posiciona el centro de la imagen en el centro del padre */
    left: 50%;
    width: 65px;
    height: 65px;
    background-image: url('https://nexostreaming.com/pwa/assets/capa.png');
    background-size: contain;
    opacity: 0.5;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    /* Corrige la posición para centrar exactamente */
}

/* Pausar animación al pasar el mouse */
.cover-art:hover {
    animation-play-state: paused;
}

/* Animación de giro */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.5s ease-in-out;
}

.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-color-rgb), 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--accent-color-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0);
  }
}

.install-prompt {
    position: fixed;
    bottom: 70px;
    right: -170px;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(90px);
    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: black;
  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 svg {
  width: 1em;
  height: 1em;
}

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

.social-btn.twitter:hover {
  background: #000000 !important; /* Updated color for Twitter hover */
}

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

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

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

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

.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: rgb(189 189 189);
  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: 240px;
    height: 240px;
  }

  .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;
  }
}

