/*
 * The shared MFMusic engine below owns the player presentation.
 * Keep its .mfm dock, drawer, controls, animations, and responsive rules unchanged
 * so Prime uses the same visual component as the Estudio reference pages.
 */
#p08-music-experience[hidden] {
  display: none !important;
}

/* The video remains attached to this persistent surface during route changes. */
#p08-music-experience[data-p08-persistent] {
  position: fixed;
  z-index: 10080;
  inset: auto 18px calc(var(--mfm-off, 85px) + 18px) auto;
  width: min(640px, calc(100vw - 36px));
  max-height: min(76dvh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  margin: 0;
  padding: 28px 22px 20px;
  border: 1px solid rgba(229, 190, 111, .45);
  border-radius: 24px;
  background: #0d1b1e;
  color: #f8f3e8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
}
#p08-music-experience[data-p08-persistent] h2 {
  padding-right: 24px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}
#p08-music-experience[data-p08-persistent] .mfm-panel {
  margin-top: 14px;
}
.p08-music-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: #17292c;
  color: #fff;
  cursor: pointer;
}
.p08-music-panel-close svg { width: 20px; height: 20px; }
.p08-music-panel-close:focus-visible { outline: 3px solid #e5be6f; outline-offset: 3px; }
.p08-theme-active { --p08-theme-glow: rgba(229, 190, 111, .55); }
html.p08-navigating { cursor: progress; }
html.p08-navigating #conteudo { opacity: .72; transition: opacity .16s ease; }
@media (max-width: 540px) {
  #p08-music-experience[data-p08-persistent] {
    inset-inline: 10px;
    width: calc(100vw - 20px);
    max-height: 70dvh;
    padding: 26px 14px 14px;
    border-radius: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.p08-navigating #conteudo { transition: none; }
}

/* Lift the quote CTA above the shared fixed music dock without reskinning it. */
body.p08-page-orcamento .p08-quote-dock {
  bottom: calc(var(--mfm-off, 0px) + 14px + env(safe-area-inset-bottom, 0px));
}
