
/* RESET Y FUENTE */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

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


html {
  height: 100%;
}

body.hidden {
  display: none !important;
}




body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-image: var(--background-cover), url("default.jpg");
    animation: zoom 30s infinite;
  -webkit-animation: zoom 30s infinite;
  
   padding-bottom: 60px;
  
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  padding: env(safe-area-inset-top, 4rem) 2rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
}
@keyframes zoom {
  0%, 100% { background-size: 120%; }
  50%     { background-size: 100%; }
}


@keyframes zoom-mobile {
  0%, 100% { background-size: 200%; }
  50%     { background-size: 186%; }
}

.install-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
    margin:  6px 0px;
  
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(153, 0, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.install-button:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(153, 0, 255, 0.6);
}



/* Overlay para efecto de color encima del fondo */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(2px);
  background: rgba(43, 0, 92, 0.6);
  z-index: 0;
}

.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.8);
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  z-index: 1000;
}


.contenedor {
  display: flex;
  justify-content: center;
  max-height: 100vh;
  max-width: 1080px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.player-container {
  position: relative;
  z-index: 1;
  background: rgba(194, 194, 214, 0.2);
    backdrop-filter: blur(50px);
  border-radius: 2rem;
  padding: 4rem;
  border: 2px solid rgba(194, 194, 214, 0.5);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  max-width: 1080px;
  max-height: 90vh;
  width: 90%;
  box-shadow: 0 0 25px rgba(10, 10, 15, 0.4);
  gap: 2rem;
}

.cover-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.cover-art_ {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid rgba(194, 194, 214, 0.6);
  margin: 0 auto 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 20px rgba(242, 242, 242, 0.2);
}


.cover-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.cover-art {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(194, 194, 214, 0.6);
  margin: 0 auto 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 20px rgba(242, 242, 242, 0.2);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  animation: pulseRing 2s ease-in-out infinite;
  z-index: 1;
}

/* Anillos escalables usando % */
.ring1 {
  width: 92%;
  height: 92%;
  animation-delay: 1s;
}

.ring2 {
  width: 75%;
  height: 75%;
  animation-delay: 1s;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
}



.info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.radio-title {
  font-size: 2.5rem;
  text-shadow: 1px 1px 2px black;
  font-weight: 700;
  color: #ffffff;
}

.divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #fff, #7b2ff7);
  border-radius: 5px;
}

.live-indicator {
  width: 100px;
  border: 2px solid rgb(194, 194, 214);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-weight: 700;
  display: inline-block;
  backdrop-filter: blur(2px);
}

.song-title {
  margin: 10px 0 0 10px;
  max-width: 400px; /* Establece el ancho máximo */
  word-break: break-word; /* Permite que las palabras se rompan */
  overflow-wrap: break-word; /*  Igual que word-break: break-word para compatibilidad */
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

button, .volume-container {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:hover {
  background: rgba(255, 255, 255, 0.3);
}

button:focus, .menu-button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

input[type="range"] {
     -webkit-appearance: none;
  accent-color: #ffffff;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  height: 4px;
  outline: none;
  border: none;
}

input[type="range"]::-webkit-slider-thumb,

input[type="range"]::-moz-range-thumb {
  background: #fff;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.volume-slider {
  width: 100%;
  accent-color: #ffffff;
}

.store-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
}

.store-buttons a {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  transition: background 0.3s;
}

.store-buttons a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Menú lateral */
.menu-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background: rgba(194, 194, 214, 0.2);
    backdrop-filter: blur(50px);
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: auto;
  padding: 1.2rem;
  margin: 4rem;
  z-index: 1000;
  background: rgba(194, 194, 214, 0.2);
    backdrop-filter: blur(50px);
  border-radius: 20px;
  transform: translateY(-20px);
  transition: all 0.4s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

.menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

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

.menu ul li {
  margin: 1.8rem 0;
}

.menu ul li a {
          padding: 0.6rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu ul li a:hover {

  border-radius: 0.8rem;
  text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    
html, body {
      overflow-x: hidden;
  overflow-y: hidden;
    
}    
 body {
    animation: zoom-mobile 15s ease-in-out infinite;
  }
    
    
  .menu {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: clamp(2rem, env(safe-area-inset-top, 4rem), 4rem) 2rem 4rem 2rem;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
  }

  .menu ul li a {
    font-size: 1.5rem;
  }

  .player-container {
    display: flex;
    max-height: 100vh;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .live-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  margin: 0 auto;

  }

.cover-wrapper {
    width: 180px;
    height: 180px;
}


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




  .radio-title {
    font-size: 1.5rem;
  }

  .song-title {
     width: 100%; 
    font-size: 0.9rem;
    font-weight: 400;
  }

  .volume-slider {
    width: 100px;
  }

  .store-buttons a {
    font-size: 0.9rem;
    font-weight: 600;
  }
}

@media (max-width: 600px) {
  .player-container {
    max-height: none;
  }
}


