/* music-bridge.css · vanilla widget for static HTML pages */

.mpb-root {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 9999;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #fff;
}

/* Mini icon */
.mpb-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, rgba(10, 8, 16, 0.95), rgba(20, 15, 40, 0.95));
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.mpb-mini:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 175, 55, 0.35);
}
.mpb-mini.is-playing {
  color: #a78bfa;
  border-color: rgba(108, 63, 255, 0.55);
  animation: mpb-pulse 2.4s ease-in-out infinite;
}
@keyframes mpb-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(108, 63, 255, 0.35); }
  50%      { box-shadow: 0 0 32px rgba(108, 63, 255, 0.6); }
}

/* Panel */
.mpb-panel {
  position: relative;
  width: 280px;
  max-width: calc(100vw - 2.4rem);
  padding: 1rem 1rem 0.9rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 15, 40, 0.94), rgba(8, 4, 18, 0.97));
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 70px rgba(108, 63, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: mpb-card-in 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes mpb-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mpb-close {
  position: absolute;
  top: 0.55rem; right: 0.6rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.mpb-close:hover {
  color: #D4AF37;
  border-color: rgba(212, 175, 55, 0.5);
  transform: scale(1.08);
}

.mpb-cover-wrap {
  width: 110px;
  height: 110px;
  margin: 0.4rem auto 0.7rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.22),
    0 14px 30px rgba(0, 0, 0, 0.5);
  background: #0a0810;
}
.mpb-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.mpb-track {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 0.15rem;
}
.mpb-artist {
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #D4AF37;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.mpb-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.mpb-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D4AF37, #a78bfa);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.mpb-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.mpb-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.mpb-btn:hover {
  color: #D4AF37;
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}
.mpb-play-big {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #D4AF37, #fff8d6 50%, #a78bfa);
  color: #0a0518;
  border: none;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
  font-size: 0.85rem;
}
.mpb-play-big:hover {
  color: #0a0518;
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.45);
}

.mpb-hint {
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
  font-weight: 700;
  margin-top: 0.7rem;
  animation: mpb-pulse-text 1.8s ease-in-out infinite;
}
@keyframes mpb-pulse-text {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

@media (max-width: 600px) {
  .mpb-root { bottom: 1rem; right: 1rem; }
  .mpb-panel { width: 250px; }
  .mpb-cover-wrap { width: 90px; height: 90px; }
}
