/* ── TRIGGER DESKTOP (bouton mandala) ──────── */
#mp-trigger {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 62px; height: 62px;
  background: rgba(242,234,216,0.97);
  border: 2px solid #d4a84b;
  border-radius: 50%;
  z-index: 9999; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 4px 18px rgba(0,0,0,0.4),
    0 0 0 4px rgba(212,168,75,0.22),
    0 0 22px rgba(212,168,75,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: visible;
  animation: mp-pulse 2.2s ease-in-out infinite;
}
@keyframes mp-pulse {
  0%,100% {
    box-shadow:
      0 4px 18px rgba(0,0,0,0.4),
      0 0 0 4px rgba(212,168,75,0.22),
      0 0 22px rgba(212,168,75,0.35);
  }
  50% {
    box-shadow:
      0 4px 24px rgba(0,0,0,0.45),
      0 0 0 9px rgba(212,168,75,0.18),
      0 0 40px rgba(212,168,75,0.55);
  }
}
.mp-label {
  position: absolute;
  top: -28px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Jost', sans-serif;
  font-size: 9px; letter-spacing: 0.18em;
  color: #d4a84b; text-transform: uppercase;
  white-space: nowrap;
  background: rgba(22,20,38,0.92);
  padding: 3px 9px; border-radius: 4px;
  border: 1px solid rgba(212,168,75,0.4);
  pointer-events: none;
  text-shadow: 0 0 8px rgba(212,168,75,0.6);
}
#mp-trigger:hover {
  transform: scale(1.1);
  animation: none;
  box-shadow:
    0 6px 28px rgba(0,0,0,0.5),
    0 0 0 10px rgba(212,168,75,0.22),
    0 0 50px rgba(212,168,75,0.6);
}
#mp-trigger img {
  width: 42px; height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 1;
  animation: mp-spin 22s linear infinite;
  filter: drop-shadow(0 0 3px rgba(212,168,75,0.4));
}
@keyframes mp-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
#mp-trigger:hover img { animation-duration: 6s; }

/* ── MESSAGE POPUP BLOQUÉ ───────────────────── */
#mp-blocked {
  position: fixed;
  bottom: 90px; right: 24px;
  background: rgba(22,20,38,0.97);
  border: 1px solid rgba(212,168,75,0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 11px; color: rgba(212,168,75,0.8);
  letter-spacing: 0.08em;
  z-index: 9999; display: none;
  max-width: 200px; line-height: 1.5;
}

/* ── PLAYER FIXE MOBILE ─────────────────────── */
#mp-mobile {
  position: fixed;
  bottom: 80px; right: 16px;
  width: 158px;
  background: rgba(22,20,38,0.97);
  border: 1.5px solid rgba(212,168,75,0.55);
  border-radius: 14px;
  padding: 10px 12px;
  z-index: 9999; cursor: pointer;
  font-family: 'Jost', sans-serif;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,168,75,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
  display: none;
}
#mp-mobile.playing { border-color: rgba(212,168,75,0.52); }
.mpm-tname {
  display: flex; align-items: center;
  gap: 6px; margin-bottom: 8px;
}
.mpm-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #d4a84b; opacity: 0.45; flex-shrink: 0;
  transition: opacity 0.3s;
}
#mp-mobile.playing .mpm-dot {
  opacity: 1;
  animation: mpm-dot 1.7s ease-in-out infinite;
}
@keyframes mpm-dot {
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(1.6);opacity:0.55}
}
.mpm-tname-txt {
  font-family: 'Cormorant Display', Georgia, serif;
  font-size: 9px; letter-spacing: 0.22em;
  color: #d4a84b; text-transform: uppercase;
}
.mpm-viz {
  display: flex; align-items: flex-end;
  gap: 2px; height: 18px; margin-bottom: 9px;
}
.mpm-b {
  width: 2px; border-radius: 1px;
  background: rgba(212,168,75,0.18);
}
#mp-mobile.playing .mpm-b {
  background: rgba(212,168,75,0.65);
  animation: mpm-bar 1.3s ease-in-out infinite;
}
@keyframes mpm-bar { 0%,100%{transform:scaleY(0.2)} 50%{transform:scaleY(1)} }
.mpm-ctrl { display: flex; align-items: center; gap: 8px; }
.mpm-pbtn {
  width: 23px; height: 23px; border-radius: 50%;
  border: 1px solid rgba(212,168,75,0.38);
  background: transparent; color: #d4a84b;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 10px; flex-shrink: 0;
  transition: background 0.2s;
}
.mpm-pbtn:hover { background: rgba(212,168,75,0.09); }
.mpm-prog {
  flex: 1; height: 1.5px;
  background: rgba(242,234,216,0.07);
  border-radius: 1px; overflow: hidden;
}
.mpm-pfill {
  height: 100%; background: #d4a84b;
  width: 0%; border-radius: 1px;
  transition: width 0.15s linear;
}

/* ── AFFICHAGE SELON APPAREIL ───────────────── */
@media (min-width: 769px) {
  #mp-trigger  { display: flex; }
  #mp-mobile   { display: none !important; }
}
@media (max-width: 768px) {
  #mp-trigger  { display: none !important; }
  #mp-mobile   { display: block; }
}
@media (max-width: 380px) {
  #mp-mobile { width: 140px; right: 12px; }
}
