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

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: white;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.equalizer {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  /* para que no interfiera con clics */
  z-index: 10;
}

.equalizer .bar {
  width: 3%;
  background: #ffffff16;
  border-radius: 2px;
  opacity: 0.8;
  animation: bar 0.6s ease-in-out infinite;
}

.equalizer .bar-1 {
  animation-delay: 0s;
}

.equalizer .bar-2 {
  animation-delay: 0.1s;
}

.equalizer .bar-3 {
  animation-delay: 0.2s;
}

.equalizer .bar-4 {
  animation-delay: 0.3s;
}

.equalizer .bar-5 {
  animation-delay: 0.4s;
}

.equalizer .bar-6 {
  animation-delay: 0.5s;
}

.equalizer .bar-7 {
  animation-delay: 0.6s;
}

.equalizer .bar-8 {
  animation-delay: 0.7s;
}

.equalizer .bar-9 {
  animation-delay: 0.8s;
}

.equalizer .bar-10 {
  animation-delay: 0.9s;
}

.equalizer .bar-11 {
  animation-delay: 0s;
}

.equalizer .bar-12 {
  animation-delay: 0.1s;
}

.equalizer .bar-13 {
  animation-delay: 0.2s;
}

.equalizer .bar-14 {
  animation-delay: 0.3s;
}

.equalizer .bar-15 {
  animation-delay: 0.4s;
}

.equalizer .bar-16 {
  animation-delay: 0.5s;
}

@keyframes bar {

  0%,
  100% {
    height: 20%;
    opacity: 0.5;
  }

  50% {
    height: 100%;
    opacity: 1;
  }
}

#color-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(15px);
  pointer-events: none;
  z-index: -1;
  transition: background-color 0.5s ease;
}




.player {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
  text-transform: uppercase;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}

@media(min-width:768px) {
  .player {
    flex-direction: row;
    justify-content: center;
    padding: 1rem;
    gap: 4rem;
  }
}

.left {
  flex: 1;
  max-width: 600px;
}

.status {
  background: white;
  padding: 0.2rem 0.5rem;
  color: black;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: red;
  border-radius: 50%;
  display: inline-block;
}

.title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

@media(min-width:768px) {
  .title {
    font-size: 3rem;
  }
}

.artist {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.controls button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 8rem;
  border: none;
  color: white;
  cursor: pointer;
    backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  text-transform: uppercase;
  transition: background 0.2s;
  min-width: 130px;
  justify-content: center;
}

.controls2 button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 800rem;
  border: none;
  color: white;
  cursor: pointer;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
  font-size: 1rem;
  text-transform: uppercase;
  transition: background 0.2s;
  min-width: 130px;
  justify-content: center;
}

.controls button .btn-text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

.controls button:hover {
  background: rgba(0, 0, 0, 0.3);
}

.controls button i {
  font-size: 1.5rem;
  line-height: 1;
}

.socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.socials a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.socials a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.cover-container {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover {
  width: 100%;
  height: 100%;
  border-radius: 100rem;
  border: 8px solid rgba(255, 255, 255, 0.127);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  object-position: center;

  animation: rotateCover 10s linear infinite;
  animation-play-state: running;
}

.cover:hover {
  animation-play-state: paused;
}

.tapa {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-0%, -0%);
  pointer-events: none;

  border-radius: 50%;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
  /* Sombra interior */
  opacity: 0.85;
}

@keyframes rotateCover {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Nuevo: Contenedor para Apps + Socials, flex para alinearlos */
.apps-socials-container {
  margin-top: 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Estilos para el contenedor de apps */
.header-app {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.header-app-item {
  display: inline-flex;
  width: 110px;
  height: 33px;
  cursor: pointer;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));
}

.header-app-item svg {
  width: 100%;
  height: 100%;
  fill: white;
}

/* Estilos móviles */
@media (max-width:767px) {

  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* evitar scroll */
  }

  .player {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1.5rem;
    justify-content: space-between;
    /* separar contenido para que footer quede abajo */
    height: calc(100vh - 60px);
    /* espacio para footer */
    max-width: 100vw;
    margin: 0 auto;
    gap: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Ordenar la portada primero */
  .player>div:last-child {
    order: -1;
    /* portada primero */
  }

  /* Asegúrate que los elementos hijos se centren correctamente */
  .socials,
  .apps-socials-container {
    justify-content: center;
  }

  /* Márgenes entre la portada y el texto */
  .cover {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .title,
  .artist,
  .status {
    text-align: center;
  }

  /* Ajustar tamaño portada para que no desborde */
  .cover-container {
    width: 70vw;
    height: 70vw;
    max-width: 280px;
    max-height: 280px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Footer fijo con altura 60px */
  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    line-height: 60px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    z-index: 1000;
    backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    text-align: center;
  }
}
.site-footer .footer-bold {
  font-weight: 700;
  /* Montserrat bold */
}


@media(min-width:768px) {
  .apps-socials-container {
    justify-content: flex-start;
  }
}

.site-footer {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  /* Fondo más oscuro para mejor contraste */
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  position: fixed;
  /* Para que se mantenga al fondo de la pantalla */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 768px) {
  .site-footer {
    position: fixed;
    /* fijo solo en PC y tablets grandes */
    bottom: 0;
    left: 0;
  }
}

.circle-visualizer {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.circle-visualizer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    filter: brightness(0.8);
  }

  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }

  100% {
    transform: scale(0.95);
    filter: brightness(0.8);
  }
}

body {
  margin: 0;
  overflow: hidden;
}

#background-zoom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  animation: zoomBackground 10s ease-in-out infinite;
}



/* Animación */
@keyframes zoomBackground {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}


/* Fondo oscuro que cubre toda la pantalla */
.tv-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.418);
  display: none;
  /* oculto por defecto */
  z-index: 9999;
  backdrop-filter: blur(42px);

  /* centrado flex */
  align-items: center;
  justify-content: center;

  padding: 1rem;
  box-sizing: border-box;
}

.tv-modal.open {
  display: flex;
  /* se muestra cuando tiene la clase open */
}

/* Contenido del modal: caja centrada con tamaño fijo y máximo */
.modal-content {
  position: relative;
  width: 800px;
  max-width: 90vw;
  height: 600px;
  max-height: 80vh;
  backdrop-filter: blur(42px);
  background: rgba(0, 0, 0, 0.34);
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

  overflow: visible;
  /* Cambiado de hidden a visible */

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* iframe ocupa todo el modal */
.tv-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

/* Botón cerrar en esquina superior derecha */
#close-tv-modal {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgb(0, 0, 0);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.8rem;
  padding: 0;
  /* quitar padding para no alterar tamaño */
  border: none;
  /* asegurarse que no haya borde */
  box-sizing: border-box;
}

@media (max-width:767px) {
  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    line-height: 60px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    z-index: 1000;
    /* Para que esté por encima del player */
  }
}

@media (max-width:767px) {
  .player {
    padding-bottom: 60px;
    /* para que nunca quede tapado por el footer */
  }
}

.header {
   padding-top: 0.5rem;
  padding-bottom: 0.5rem;     /* Un pequeño espacio alrededor */
  text-align: left;       /* Alineado a la izquierda por defecto */
}

.header .logo {
  height: 50px;           /* Tamaño del logo */
  width: auto;
  display: inline-block;
}

/* En móvil centra el logo */
@media (max-width: 767px) {
  .header {
    text-align: center;
  }
}

.circle-visualizer {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.circle-visualizer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    filter: brightness(0.8);
  }

  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }

  100% {
    transform: scale(0.95);
    filter: brightness(0.8);
  }
}

.install-buttons {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
}
.install-buttons:not(.is-active) {
  display: none;
}
.install-buttons-wrapper {
  animation: 0.5s zoomInBounce;
  position: relative;
  border-radius: 1rem;
  max-width: 600px;
  text-align: center;
  padding: 2rem;
  color: #fff;
  background-color: var(--bg-modal, rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(1rem);
  box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
}
.install-buttons-wrapper h4 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.install-buttons-wrapper p {
  margin-bottom: 1rem;
}

.install-botton {
  align-items: flex-end;
}
.install-botton > * {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  --bg-modal: rgb(255 255 255 / 5%);
}
@media (max-width: 767px) {
  .install-botton > * {
    flex-direction: column;
  }
}
.install-botton .close-install {
  position: absolute;
  background-color: transparent;
  right: 0;
  top: 0;
}
.install-botton .install-buttons-wrapper p {
  margin: 0;
  text-align: left;
}
.install-botton .install-button {
  text-transform: capitalize;
  --btn-bg: #fff;
  --btn-color: #000;
}
.install-botton .install-button svg {
  width: 24px;
  height: 24px;
  flex: none;
}