/* ── MINI PLAYER ── */
.mp-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* ── Playlist tracks ── */
.mp-playlist { display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mp-track {
  display: grid;
  grid-template-columns: 2rem 1fr auto auto;
  align-items: center;
  gap: 10;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
  position: relative;
}
.mp-track:last-child { border-bottom: none; }
.mp-track::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient-rgb);
  opacity: 0;
  transition: opacity 0.25s;
}
.mp-track:hover { background: rgba(255,255,255,0.03); }
.mp-track:hover::before { opacity: 0.5; }
.mp-track.active { background: rgba(255,255,255,0.05); }
.mp-track.active::before { opacity: 1; }

/* Numéro / indicateur */
.mp-tn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  transition: opacity 0.2s;
  line-height: 1;
}
.mp-track.active .mp-tn { opacity: 0; }
.mp-track.active .mp-tn-playing {
  display: flex !important;
}
.mp-tn-playing {
  display: none;
  position: absolute;
  left: 0.8rem;
  width: 2rem;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}
.mp-tn-playing span {
  width: 3px;
  background: var(--gradient-rgbEq);
  border-radius: 1px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}
.mp-tn-playing span:nth-child(1) { height: 5px; animation-delay: 0s; }
.mp-tn-playing span:nth-child(2) { height: 10px; animation-delay: 0.01s; }
.mp-tn-playing span:nth-child(3) { height: 7px; animation-delay: 0.03s; }
@keyframes eq-bounce {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1.0); }
}
.mp-wrap.paused .mp-tn-playing span { animation-play-state: paused; }

.mp-tname {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 0.75rem;
}
.mp-track:hover .mp-tname,
.mp-track.active .mp-tname { color: rgba(255,255,255,0.9); }

.mp-tline { display: none; } /* supprimé, remplacé par grid */

.mp-tdur {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  min-width: 2.8rem;
  text-align: right;
  transition: color 0.2s;
}
.mp-track.active .mp-tdur { color: rgba(255,255,255,0.5); }

/* ── Contrôles bas ── */
.mp-controls {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}
.mp-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  width: 30px; height: 30px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.mp-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.mp-btn.play {
  width: 36px; height: 36px;
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
}
.mp-btn.play:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Zone titre — au milieu */
.mp-now { grid-column: 4; overflow: hidden; }
.mp-now-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2;
}
.mp-now-sub {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gradient-rgb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: 1px;
}

/* Bloc temps — à droite */
.mp-time-block {
  grid-column: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}
.mp-time-current {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}
.mp-time-total {
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* Barre de progression — pleine largeur en dessous des contrôles */
.mp-progress-wrap {
  padding: 0 1rem 0.7rem;
}
.mp-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  position: relative;
  border-radius: 2px;
}
.mp-bar-bg::after {
  content: '';
  position: absolute;
  inset: -6px 0;
  cursor: pointer;
}
.mp-bar-fill {
  height: 3px;
  background: var(--gradient-rgb);
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
  border-radius: 2px;
}

/* anciens mp-times masqués (remplacé par mp-time-block) */
.mp-times { display: none; }