/* M&P Radio side dock (site-wide): rests off screen on the right edge with a small gold marker,
   glides out when you come near it, tucks back in when you leave. */
.mpr{--e:cubic-bezier(.22,.61,.36,1);position:fixed;right:0;bottom:max(96px,calc(env(safe-area-inset-bottom) + 96px));z-index:89;font-family:Manrope,system-ui,sans-serif;color:#efece6;pointer-events:none}
.mpr>*{pointer-events:auto}
.mpr__tab{position:absolute;right:0;bottom:22px;width:30px;height:62px;display:grid;place-items:center;border:1px solid rgba(217,178,95,.55);border-right:0;border-radius:16px 0 0 16px;
  background:rgba(14,13,17,.92);box-shadow:-6px 8px 24px rgba(0,0,0,.35);backdrop-filter:blur(10px);cursor:pointer;padding:0 0 0 2px;transition:transform .5s var(--e),opacity .4s var(--e),width .35s var(--e)}
.mpr__tab:hover{width:36px}
.mpr__tab .mpr__eq{width:14px;height:18px}
.mpr.is-on .mpr__tab{box-shadow:-6px 8px 24px rgba(0,0,0,.35),0 0 18px rgba(217,178,95,.28)}
.mpr__card{position:relative;width:300px;margin-right:14px;padding:12px 12px 10px;border-radius:22px;background:rgba(14,13,17,.94);border:1px solid rgba(217,178,95,.4);
  box-shadow:0 22px 50px -10px rgba(0,0,0,.6);backdrop-filter:blur(14px);
  transform:translateX(calc(100% + 24px));opacity:0;visibility:hidden;transition:transform .6s var(--e),opacity .45s var(--e),visibility 0s linear .6s}
.mpr.is-out .mpr__card{transform:none;opacity:1;visibility:visible;transition:transform .55s var(--e),opacity .35s var(--e),visibility 0s}
.mpr.is-out .mpr__tab{transform:translateX(100%);opacity:0;pointer-events:none}
.mpr__top{display:flex;align-items:center;gap:8px}
.mpr__info{flex:1;min-width:0;text-decoration:none;color:inherit;line-height:1.2}
.mpr__info small{display:block;font-size:9.5px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:#d9b25f}
.mpr__info b{display:block;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mpr__info em{display:block;font-style:normal;font-size:12px;color:#a9a196;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mpr__prog{position:relative;height:4px;margin:12px 4px 8px;border-radius:4px;background:rgba(217,178,95,.18);cursor:pointer;overflow:hidden}
.mpr__prog i{display:block;height:100%;width:0;border-radius:4px;background:linear-gradient(90deg,#d9b25f,#f3dc9c);transition:width .25s linear}
.mpr__ctl{display:flex;align-items:center;justify-content:center;gap:14px}
.mpr__b{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;border:0;background:transparent;color:#f3dc9c;cursor:pointer;text-decoration:none;font-size:16px;transition:background .3s var(--e),color .3s var(--e),transform .3s var(--e)}
.mpr__b:hover{background:rgba(217,178,95,.12)}
.mpr__b:active{transform:scale(.94)}
.mpr__b svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mpr__b--play{width:44px;height:44px;background:linear-gradient(180deg,#f8e8b2,#ebcd80 46%,#d6b062);color:#2a1d06;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 8px 20px -10px rgba(217,178,95,.8)}
.mpr__b--play:hover{background:linear-gradient(180deg,#f8e8b2,#ebcd80 46%,#d6b062);filter:brightness(1.05)}
.mpr__b--play svg{fill:currentColor;stroke-width:2.6}
.mpr__b--play svg path[d^="M8 5v14"]{fill:none}
.mpr__b--sm{width:30px;height:30px;color:#a9a196}
.mpr__b--sm svg{width:16px;height:16px}
.mpr__b[aria-pressed="true"]{color:#f3dc9c;background:rgba(217,178,95,.16)}
.mpr__eq{display:flex;align-items:flex-end;gap:2px;height:16px;width:18px;flex:none}
.mpr__eq i{flex:1;height:30%;border-radius:1px;background:#d9b25f}
.mpr.is-on .mpr__eq i{animation:mprq .9s ease-in-out infinite alternate}
.mpr__eq i:nth-child(2){animation-delay:-.3s}.mpr__eq i:nth-child(3){animation-delay:-.6s;animation-duration:.7s}.mpr__eq i:nth-child(4){animation-delay:-.15s;animation-duration:1.1s}.mpr__eq i:nth-child(5){animation-delay:-.45s;animation-duration:.8s}
@keyframes mprq{0%{height:20%}50%{height:100%}100%{height:45%}}
.mpr__tap{position:absolute;right:8px;bottom:94px;margin:0;padding:7px 12px;border-radius:999px;white-space:nowrap;font-size:12px;font-weight:700;color:#2a1d06;background:linear-gradient(180deg,#f8e8b2,#d6b062);pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.35);animation:mprTap 4s var(--e) 1 forwards}
.mpr.is-out .mpr__tap{display:none}
@keyframes mprTap{0%{opacity:0;transform:translateX(8px)}12%,80%{opacity:1;transform:none}100%{opacity:0;transform:translateX(8px)}}
/* big player */
.mpr:has(.mpr__big:not([hidden])){z-index:3000}
.mpr__big{position:fixed;inset:0;z-index:2;display:grid;place-items:center;padding:20px;background:rgba(8,7,10,0);backdrop-filter:blur(0);transition:background .35s var(--e),backdrop-filter .35s var(--e)}
.mpr__big[hidden]{display:none}
.mpr__big.on{background:rgba(8,7,10,.55);backdrop-filter:blur(10px)}
.mpr__bigc{position:relative;width:min(560px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;gap:16px;padding:30px 30px 20px;border-radius:28px;background:linear-gradient(180deg,#17151b,#0e0d11);border:1px solid rgba(217,178,95,.4);box-shadow:0 40px 100px -30px rgba(0,0,0,.8);
  transform:translateY(18px) scale(.98);opacity:0;transition:transform .5s var(--e),opacity .35s var(--e)}
.mpr__big.on .mpr__bigc{transform:none;opacity:1}
.mpr__close{position:absolute;top:14px;right:14px}
.mpr__now{text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.mpr__eq--lg{width:46px;height:40px;gap:4px;margin-bottom:6px}
.mpr__now small{font-size:10.5px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:#d9b25f}
.mpr__now h3{margin:0;font-family:"Playfair Display",Georgia,serif;font-size:30px;line-height:1.15;color:#fff}
.mpr__now p{margin:0;color:#a9a196;font-size:14px}
.mpr__seek{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px;font-size:12px;color:#a9a196;font-variant-numeric:tabular-nums}
.mpr__seek span:last-child{text-align:right}
.mpr__prog--lg{margin:0;height:6px}
.mpr__ctl--lg{gap:18px}
.mpr__ctl--lg .mpr__b--play{width:60px;height:60px}
.mpr__ctl--lg .mpr__b--play svg{width:24px;height:24px}
.mpr__list{list-style:none;margin:4px 0 0;padding:6px;overflow:auto;max-height:min(40vh,320px);border-top:1px solid rgba(255,255,255,.08);scrollbar-width:thin;scrollbar-color:rgba(217,178,95,.4) transparent}
.mpr__list button{display:flex;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:12px;background:none;color:#efece6;cursor:pointer;text-align:left;font:inherit;transition:background .3s var(--e)}
.mpr__list button:hover{background:rgba(217,178,95,.08)}
.mpr__list b{font-size:14px;font-weight:700}
.mpr__list span{font-size:12px;color:#a9a196;white-space:nowrap}
.mpr__list li.on button{background:rgba(217,178,95,.14)}
.mpr__list li.on b{color:#f3dc9c}
.mpr button:focus-visible,.mpr a:focus-visible,.mpr__prog:focus-visible{outline:2px solid #f3dc9c;outline-offset:2px}
@media (max-width:760px){.mpr{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 120px)}.mpr__card{width:min(300px,calc(100vw - 48px))}.mpr__bigc{padding:26px 18px 16px}.mpr__now h3{font-size:24px}}
@media (prefers-reduced-motion:reduce){.mpr.is-on .mpr__eq i{animation:none;height:70%}.mpr__card,.mpr__tab,.mpr__bigc,.mpr__big{transition:none}}

/* no visible page scrollbar (scrolling still works) */
html{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{width:0;height:0;display:none}

/* back office (AI Office Music): room for the player, and step behind open dialogs */
html.mpr-embed body{padding-bottom:0}
body:has(.modal:not([hidden])) .mpr{z-index:40}

/* hidden while a video call is on */
.mpr-incall .mpr{display:none!important}
.mpr__vol{display:flex;align-items:center;gap:8px;margin:10px 4px 2px;color:inherit;opacity:.85}
.mpr__vol svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mpr__vol input{flex:1;accent-color:#d6b676;height:28px;cursor:pointer}
.mpr__bigc .mpr__vol{max-width:340px;margin:14px auto 6px}
/* mobile version: sit above the back office's bottom bar; bigger touch targets */
@media (max-width:900px){
  body:has(#mobNav) .mpr{bottom:calc(150px + env(safe-area-inset-bottom))}
  .mpr__tab{min-width:28px;min-height:62px}
  .mpr__b{min-width:42px;min-height:42px}
}

.mpr__tab{touch-action:none}.mpr.is-drag .mpr__tab{cursor:grabbing}
/* move it anywhere (floatdock.js): tuck into the left edge too, or sit free wherever it was dropped */
.mpr[data-side=left] .mpr__tab{right:auto;left:0;border-right:1px solid rgba(217,178,95,.55);border-left:0;border-radius:0 16px 16px 0;padding:0 2px 0 0;box-shadow:6px 8px 24px rgba(0,0,0,.35)}
.mpr[data-side=left] .mpr__card{margin-right:0;margin-left:14px;transform:translateX(calc(-100% - 24px))}
.mpr[data-side=left].is-out .mpr__card{transform:none}
.mpr[data-side=left].is-out .mpr__tab{transform:translateX(-100%)}
.mpr.is-free .mpr__tab{display:none}
.mpr.is-free .mpr__card{margin:0;transform:none;opacity:1;visibility:visible;transition:opacity .25s var(--e),box-shadow .2s}
.mpr .mpf__handle{cursor:grab;touch-action:none}
.mpr .mpf__handle button,.mpr .mpf__handle a,.mpr .mpf__handle input,.mpr .mpf__handle .mpr__prog{cursor:pointer}
.mpr.is-drag,.mpr.is-drag *{cursor:grabbing!important;user-select:none}
.mpr.is-drag .mpr__card{transition:none;box-shadow:0 30px 70px -10px rgba(0,0,0,.75),0 0 0 1px rgba(217,178,95,.6)}
