/* Music Player modular preloader — Nexus HUD aesthetic */
.mpp-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  pointer-events: auto;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(8, 40, 72, 0.55), rgba(1, 4, 12, 0.88) 70%),
    rgba(1, 4, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mpp-overlay.is-visible { opacity: 1; }
.mpp-overlay[hidden] { display: none !important; }

.mpp-panel {
  width: min(420px, 92vw);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(61, 224, 255, 0.35);
  background: linear-gradient(160deg, rgba(12, 28, 48, 0.95), rgba(4, 12, 24, 0.92));
  box-shadow:
    0 0 0 1px rgba(126, 240, 255, 0.08) inset,
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 42px rgba(61, 224, 255, 0.12);
  color: #d8f7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  position: relative;
  overflow: hidden;
}
.mpp-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(61, 224, 255, 0.03) 2px, rgba(61, 224, 255, 0.03) 3px
  );
  pointer-events: none;
  animation: mpp-scan 4.5s linear infinite;
}
@keyframes mpp-scan {
  from { transform: translateY(-8%); }
  to { transform: translateY(8%); }
}
.mpp-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}
.mpp-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3de0ff;
  box-shadow: 0 0 10px #3de0ff, 0 0 20px rgba(61, 224, 255, 0.5);
  animation: mpp-pulse 1.1s ease-in-out infinite;
}
@keyframes mpp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.mpp-sys {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(126, 240, 255, 0.85);
}
.mpp-title {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #eafcff;
}
.mpp-status {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  min-height: 1.25rem;
  font-size: 0.78rem;
  color: rgba(180, 230, 255, 0.78);
}
.mpp-bar {
  position: relative;
  z-index: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 50, 80, 0.85);
  border: 1px solid rgba(61, 224, 255, 0.25);
  overflow: hidden;
}
.mpp-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b9bff, #3de0ff 45%, #7ef0ff);
  box-shadow: 0 0 12px rgba(61, 224, 255, 0.55);
  transition: width 0.2s ease;
}
.mpp-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(126, 240, 255, 0.65);
}
.mpp-rings {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 52px;
  height: 52px;
  z-index: 1;
  opacity: 0.85;
}
.mpp-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(61, 224, 255, 0.35);
  animation: mpp-spin 2.4s linear infinite;
}
.mpp-rings span:nth-child(2) {
  inset: 8px;
  border-color: rgba(126, 240, 255, 0.45);
  animation-duration: 1.6s;
  animation-direction: reverse;
}
.mpp-rings span:nth-child(3) {
  inset: 16px;
  border-color: rgba(43, 155, 255, 0.55);
  animation-duration: 1.1s;
}
@keyframes mpp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .mpp-overlay { transition: none; }
  .mpp-led, .mpp-rings span, .mpp-panel::before { animation: none; }
}
