/* Reset y Bloqueo de Scroll */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; 
  font-family: Arial, Helvetica, sans-serif;
  background-color: #000;
}

body {
  background: url("../img/bg.jpg") center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.player {
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 25px;
  width: 650px;
  max-width: 90%;
  /* CAMBIO CLAVE: Limitamos el alto total y usamos flex para distribuir */
  height: auto;
  max-height: 96vh;
  color: white;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.radio-name {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
  flex-shrink: 0; /* No se achica */
}

/* LA FOTO AHORA ES FLEXIBLE */
.cover {
  width: 100%;
  /* Se ajusta automáticamente al espacio disponible */
  height: auto;
  max-height: 40vh; 
  border-radius: 15px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  flex-shrink: 1; /* Permite que la foto se encoja si el monitor es pequeño */
}

.info-meta {
  margin-top: 15px;
  flex-shrink: 0;
}

.artist {
  font-size: 24px;
  opacity: .85;
  border-bottom: 2px solid #00b7ff;
  padding-bottom: 4px;
  display: inline-block;
}

.title {
  font-size: 20px;
  font-weight: 500;
  margin-top: 6px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  flex-shrink: 0;
}

.play {
  font-size: 40px;
  cursor: pointer;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type=range] {
  width: 100px;
  cursor: pointer;
}

.store-buttons {
  display: flex;
  justify-content: flex-end; 
  gap: 12px;
  margin-top: 12px;
  flex-shrink: 0;
}

.store-icon {
  height: 28px;
  width: auto;
}

.copy-text {
  margin-top: 15px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  flex-shrink: 0;
}

/* AJUSTES MOBILE */
@media (max-width: 768px) {
  .player {
    width: 92%;
    height: 90vh;
    padding: 20px;
  }
  .cover { max-height: 38vh; }
  .store-buttons { justify-content: center; }
}