:root {
  --color-principal: #371f88;
  --color-secundario: #ffffff;
  --color-texto: #000000;
  --color-fondo: #ffffff;
  --color-live: red;
  --color-acento: rgba(0, 0, 0, 0.2);
  --color-sombra-btn: rgba(0, 0, 0, 0.3);
  --radio-borde: 12px;
  --fuente: Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--fuente);
  background: var(--color-fondo);
  color: var(--color-texto);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

#player-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  width: 180px;
  margin-bottom: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.album-cover {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: var(--radio-borde);
  overflow: hidden;
  box-shadow: 0 4px 10px var(--color-acento);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#playButton {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-principal);
  color: var(--color-secundario);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  cursor: pointer;
  box-shadow: 0 4px 6px var(--color-sombra-btn);
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-live);
  color: var(--color-secundario);
  font-weight: bold;
  padding: 5px 10px;
  font-size: 0.8em;
  border-radius: 5px;
  display: none;
}

.info-area {
  text-align: center;
}

.song-info h2 {
  font-size: 1.4em;
  margin: 10px 0 5px;
  color: var(--color-principal);
}

.song-info p {
  font-size: 1.1em;
  margin: 0;
}

.volume-control {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.volume-control input[type=range] {
  width: 150px;
}

.volume-control i {
  color: var(--color-principal);
}

/* Pantallas grandes u horizontales */
@media (min-width: 768px), (orientation: landscape) {
  #player-container {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  .content-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 40px;
  }

  .info-area {
    text-align: left;
  }

  .logo {
    width: 200px;
    margin-bottom: 30px;
  }

  .volume-control {
    justify-content: flex-start;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  html, body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    box-sizing: border-box;
  }

  #player-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    gap: 20px;
  }

  .logo {
    order: 1;
    width: 120px;
    margin: 0 auto 10px auto;
  }

  .content-wrapper {
    flex-direction: row;
    flex: 1;
    gap: 20px;
  }

  .left-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }

  .album-cover {
    width: 140px;
    height: 140px;
    margin-bottom: 10px;
  }

  .song-info {
    text-align: center;
  }

  .right-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 1;
  }

  .volume-control input[type=range] {
    width: 100px;
  }

  #playButton {
    width: 45px;
    height: 45px;
    font-size: 1.2em;
  }

  .live-badge {
    font-size: 0.75em;
    padding: 4px 8px;
  }
}
