/* RC MilkDrop visualizer overlay */
.rcmd-noscroll, .rcmd-noscroll body { overflow: hidden !important; }

.rcmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #000;
  display: none;
  cursor: none;
  outline: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  user-select: none;
}
.rcmd-overlay.rcmd-open { display: block; }
.rcmd-overlay.rcmd-awake { cursor: default; }

.rcmd-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Controls (top right), visible while the mouse is moving */
.rcmd-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.rcmd-awake .rcmd-controls { opacity: 1; pointer-events: auto; }
.rcmd-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -2px;
  cursor: pointer;
}
.rcmd-btn:hover, .rcmd-btn:focus-visible { background: rgba(255,255,255,.2); }
.rcmd-btn.rcmd-active { background: rgba(255,170,0,.45); border-color: rgba(255,200,80,.8); }

/* Preset name (top left), shown briefly on change */
.rcmd-preset {
  position: absolute;
  top: 18px;
  left: 18px;
  max-width: 60vw;
  font-size: 13px;
  opacity: 0;
  transition: opacity .8s;
  text-shadow: 0 1px 3px #000, 0 0 8px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcmd-preset.rcmd-show, .rcmd-awake .rcmd-preset { opacity: .85; }

/* Error / info message */
.rcmd-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(520px, 90vw);
  padding: 18px 22px;
  border-radius: 8px;
  background: rgba(20,20,20,.9);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 15px;
  text-align: center;
  display: none;
}
.rcmd-message.rcmd-show { display: block; }

/* Now playing bar */
.rcmd-np {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 24px 22px;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
  text-shadow: 0 1px 4px #000, 0 0 12px rgba(0,0,0,.8);
  pointer-events: none;
}
.rcmd-np-artist { font-size: clamp(18px, 2.6vw, 30px); font-weight: 700; }
.rcmd-np-title  { font-size: clamp(15px, 2vw, 22px); font-style: italic; margin-top: 2px; }
.rcmd-np-album  { font-size: clamp(12px, 1.3vw, 15px); opacity: .7; margin-top: 4px; }
.rcmd-np:not(.rcmd-has), .rcmd-np-album:empty { display: none; }
.rcmd-np.rcmd-changed { animation: rcmd-np-in 1.2s ease-out; }
@keyframes rcmd-np-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rcmd-np.rcmd-changed { animation: none; }
}

/* Launch links: hidden where the visualizer can't run (e.g. iPhone, no WebGL 2) */
.rcmd-unsupported .rcmd-launch,
.rcmd-unsupported a[href$="#visualizer"] { display: none !important; }
/* Separate rule: browsers without :has() would otherwise drop the one above too */
.rcmd-unsupported li:has(> a[href$="#visualizer"]) { display: none !important; }
