/* ─────────────────────────────────────────────────
   Music.css  — identical appearance to original.
   Only the file name changed (music-player.css → Music.css).
   ───────────────────────────────────────────────── */

#mp-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9000;
  font-family: 'Space Mono', 'Courier New', monospace;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: top 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

#mp-root:hover {
  transform: translateY(10px);
}

/* ── Tooltip ── */
#mp-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(10,10,16,0.92);
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#mp-root:hover #mp-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ── Wave canvas bar ── */
#mp-wave-bar {
  display: block;
  width: 340px;
  height: 45px;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#mp-wave-bar:hover { border-color: rgba(255,255,255,0.4); }

#mp-root.mp-playing #mp-wave-bar {
  border-color: rgba(255,255,255,0.5);
  box-shadow:
    0 0 0px 1px rgba(255,255,255,0.08),
    0 0 18px rgba(255,255,255,0.18),
    0 0 40px rgba(255,255,255,0.10),
    0 0 70px rgba(255,255,255,0.05);
  transition: box-shadow 0.05s ease, border-color 0.05s ease;
}

/* ── Pill (prev / ticker / next) ── */
#mp-pill {
  display: flex;
  align-items: center;
  width: 200px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.35s, box-shadow 0.3s;
  align-self: center;
}

#mp-root.mp-playing #mp-pill {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 14px rgba(255,255,255,0.07);
}

/* ── Prev / Next buttons ── */
#mp-prev, #mp-next {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 7px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  line-height: 1;
}
#mp-prev:hover, #mp-next:hover { color: #fff; }
#mp-root.mp-playing #mp-prev,
#mp-root.mp-playing #mp-next { color: rgba(255,255,255,0.8); }

/* ── Scrolling ticker ── */
#mp-ticker-clip {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 16px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
#mp-ticker-text {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  line-height: 16px;
  will-change: transform;
}
#mp-root.mp-playing #mp-ticker-text { color: rgba(255,255,255,0.9); }

/* ── Light-mode overrides ── */
.light #mp-wave-bar,
.light #mp-pill {
  background: rgba(255,255,255,0.55);
  border-color: rgba(0,0,0,0.15);
}
.light #mp-prev, .light #mp-next { color: rgba(0,0,0,0.45); }
.light #mp-ticker-text { color: rgba(0,0,0,0.6); }

/* ── Mobile ── */
@media (max-width: 480px) {
  #mp-root     { top: 12px; right: 12px; }
  #mp-wave-bar { width: 240px; height: 52px; }
  #mp-pill     { width: 160px; }
}
