/* ---
   PERSISTENT PLAYER — Barre fixe en bas de page
--- */

.persistent-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-black);
  color: var(--color-cream);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.persistent-player.is-visible {
  transform: translateY(0);
}

/* Barre de progression (tout en haut du player) */
.pp__progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
}

.pp__progress-fill {
  height: 100%;
  background: var(--color-pink);
  width: 0%;
  transition: width 1s linear;
  pointer-events: none;
}

/* Layout interne */
.pp__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Infos piste */
.pp__track {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pp__thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.pp__thumb svg {
  opacity: 0.9;
}

.pp__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pp__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp__meta {
  font-size: 12px;
  opacity: 0.5;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Contrôles */
.pp__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pp__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--color-cream);
}

.pp__btn--play {
  background: var(--color-pink);
  color: #fff;
  width: 52px;
  height: 52px;
}

.pp__btn--play:hover {
  background: #fff;
  color: var(--color-black);
  transform: scale(1.08);
}

.pp__btn--skip:hover {
  opacity: 0.7;
}

/* Bouton fermer */
.pp__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pp__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Décale le footer quand le player est visible */
body.has-player .site-footer {
  padding-bottom: 90px;
}

/* Responsive */
@media (max-width: 768px) {
  .pp__inner {
    padding: 12px 20px;
    gap: 12px;
  }

  .pp__title {
    font-size: 13px;
  }

  .pp__btn--skip {
    display: none;
  }

  .pp__btn--play {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .pp__meta {
    display: none;
  }

  .pp__thumb {
    width: 36px;
    height: 36px;
  }
}
