:root {
  --Player-Background: #3e2c1c;   /* Café oscuro */
  --Player-Accent: #d4af37;       /* Dorado */
  --Player-Text: #f5f5dc;         /* Beige claro */
  --Player-Frame-Thickness: 12px;
  --Player-Cover-Size: 70px;
  --Player-Control-Size: 50px;
  --MusicPlayer-SlideIn-Speed: 0.7s;
}

/* Contenedor principal */
.music-player {
  position: fixed;
  bottom: 30px;
  left: 0;
  margin-left: -250px;   /* asoma parcialmente */
  opacity: 1;
  visibility: visible;
  display: flex;
  align-items: center;
  background: var(--Player-Background);
  padding: var(--Player-Frame-Thickness);
  border-radius: 0 var(--Player-Cover-Size) var(--Player-Cover-Size) 0;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.25);
  color: var(--Player-Text);
  font-family: "tenon light", sans-serif;
  transition: margin-left var(--MusicPlayer-SlideIn-Speed) ease-in-out;
  z-index: 69;
}

.music-player:hover {
  margin-left: 0;
}

/* Marco decorativo */
.player-frame {
  position: absolute;
  inset: 0;
  border: var(--Player-Frame-Thickness) solid var(--Player-Accent);
  border-radius: inherit;
  opacity: 0.4;
  pointer-events: none;
}

/* Contenido */
.player-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Metadatos a la izquierda */
.metadata-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.metadata-container .track-title {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--Player-Accent);
  margin-bottom: 4px;
}

.metadata-container .track-artist {
  font-size: 11px;
  color: var(--Player-Text);
  margin-bottom: 2px;
}

.metadata-container .track-album {
  font-size: 10px;
  color: rgba(245,245,220,0.7);
}

/* Controles a la derecha */
.controls-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Botón Play/Pause */
.control-button.play-pause {
  width: var(--Player-Control-Size);
  height: var(--Player-Control-Size);
  border-radius: 50%;
  background: var(--Player-Accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-play {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--Player-Background);
}

.icon-pause {
  display: none;
  width: 12px;
  height: 16px;
  background: var(--Player-Background);
}

/* Carátula */
.cover-container {
  width: var(--Player-Cover-Size);
  height: var(--Player-Cover-Size);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.cover-container img.cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #c2a044;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1em;
    text-shadow: 0 0 8px #c2a044;
    box-shadow: 0 0 20px #d4af37b3; /* b3 ≈ 70% de opacidad */
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.custom-message.show {
    opacity: 1;
}