/* Activador fijo en el borde inferior izquierdo */
#panel {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 342px;
  height: 100px;
  pointer-events: none;
  z-index: 50;
}

/* Contenedor deslizante */
#switch {
  position: absolute;
  left: -242px;
  width: 342px;
  height: 100px;
  background: linear-gradient(0deg, #3688ff 0%, #6aa8ff 40%, #ffffff 80%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  transition: left 0.4s ease;
  pointer-events: auto;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  overflow: hidden;
}

/* Estado visible del panel */
#switch.visible {
  left: 0;
}

/* Contenedor de metadatos reducido */
.contenedor-metadatos {
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  height: 76px;
  margin: 12px 0 12px 12px;
  padding: 8px 12px;
  border-radius: 60px;
  background-color: transparent;
  background: linear-gradient(0deg, #3688ff 0%, #6aa8ff 40%, #ffffff 80%);
  box-shadow:
    inset 0 0 0 1px #888,
    inset 0 2px 4px #000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Bloque interno de metadatos */
.metadatos {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  overflow: hidden;
}

/* Línea individual de metadato */
.meta-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 18px;
  line-height: 18px;
}

.contenedor-metadatos.mutando {
  animation: auraFlash 0.6s ease;
}

@keyframes auraFlash {
  0%   { box-shadow: 0 0 0 0px #fff; }
  50%  { box-shadow: 0 0 12px 6px #fff; }
  100% { box-shadow: 0 0 0 0px #fff; }
}

/* Botonera como punta */
.botonera {
  position: relative;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  min-width: 100px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Imagen de fondo de la botonera */
.botonera-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

/* Botones cardinales */
.control-btn {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.05);
  color: #888;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}

.norte  { top: 0; left: 38px; }
.sur    { bottom: 0; left: 38px; }
.este   { top: 38px; right: 0; }
.oeste  { top: 38px; left: 0; }

/* Botón central de reproducción */
.play {
  top: 38px;
  left: 38px;
  color: #888;
  font-size: 24px;
  transition: transform 0.2s ease;
}

.play:hover {
  transform: scale(1.2);
}

#btn-plus {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 4;
  background: transparent;
  border: none;
  outline: none;
}

/* Zona invisible para activar el panel */
.zona-centro {
  position: absolute;
  top: 38px;
  left: 38px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 3;
}
