/* ========================================================================
   FLOATING MUSIC PLAYER — estilo "rádio do festival"
   ======================================================================== */

.mini-player {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0;
  background: #0A0A0A;
  border: 2px solid var(--yellow);
  box-shadow:
    6px 6px 0 var(--blue),
    0 0 40px rgba(254, 213, 20, 0.25);
  padding: 0;
  transition: transform 0.3s, opacity 0.3s;
  font-family: var(--font-body);
  max-width: 380px;
  overflow: hidden;
}
.mini-player.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.mini-player.minimized {
  max-width: 80px;
}
.mini-player.minimized .player-info,
.mini-player.minimized .player-progress-wrap {
  display: none;
}

/* ----- Cover / Equalizer area ----- */
.player-cover {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.player-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 3px,
    transparent 3px, transparent 8px
  );
}
.player-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
  z-index: 2;
}
.player-eq span {
  width: 5px;
  background: var(--black);
  border-radius: 1px;
  animation: player-eq-bar 0.8s ease-in-out infinite;
}
.player-eq span:nth-child(1) { animation-delay: 0s; height: 60%; }
.player-eq span:nth-child(2) { animation-delay: 0.15s; height: 90%; }
.player-eq span:nth-child(3) { animation-delay: 0.3s; height: 50%; }
.player-eq span:nth-child(4) { animation-delay: 0.45s; height: 100%; }
.player-eq span:nth-child(5) { animation-delay: 0.6s; height: 70%; }
@keyframes player-eq-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.mini-player.paused .player-eq span {
  animation-play-state: paused;
  transform: scaleY(0.4);
}

/* ----- Info area (track name etc) ----- */
.player-info {
  flex: 1;
  padding: 14px 16px 14px 18px;
  min-width: 0;
}
.player-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ff3333;
  border-radius: 50%;
  animation: blink-dot 1.2s infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.player-track {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--off-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}
.player-artist {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Controls ----- */
.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
}
.player-btn {
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border: 2px solid var(--black);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  padding: 0;
  font-family: var(--font-display);
  box-shadow: 3px 3px 0 var(--blue);
}
.player-btn:hover {
  background: var(--yellow-bright);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--blue);
}
.player-btn.small {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gray-light);
  font-size: 0.75rem;
  box-shadow: none;
}
.player-btn.small:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--off-white);
  transform: none;
  box-shadow: none;
}

/* ----- Progress bar ----- */
.player-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 80px;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}
.player-progress-fill {
  height: 100%;
  background: var(--yellow);
  width: 0%;
  transition: width 0.2s linear;
  position: relative;
}
.player-progress-fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--yellow);
  opacity: 0;
  transition: opacity 0.2s;
}
.mini-player:hover .player-progress-fill::after { opacity: 1; }

/* ----- Open button (when minimized) ----- */
.player-open-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border: 2px solid var(--black);
  color: var(--black);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--blue);
  transition: all 0.2s;
  font-size: 1.2rem;
}
.player-open-btn.visible { display: flex; }
.player-open-btn:hover {
  background: var(--yellow-bright);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--blue);
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
  .mini-player { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .player-cover { width: 64px; height: 64px; }
  .player-progress-wrap { left: 64px; }
  .player-track { font-size: 0.95rem; }
  .player-info { padding: 10px 12px; }
  .player-btn { width: 34px; height: 34px; }
}
