html:has(dialog.mp[open]) { overflow: hidden; }
dialog.mp { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 22px 22px 18px; border: 1px solid rgba(200,163,94,.35);
  border-radius: 18px; background: #0e1320; color: #e9ecf2; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); overflow: hidden; }
dialog.mp::backdrop { background: rgba(5,8,14,.82); }
dialog.mp[open] { animation: mp-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes mp-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { dialog.mp[open] { animation: none; } }

.mp-x { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(14,19,32,.9); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.mp-x:hover, .mp-x:focus-visible { border-color: #c8a35e; color: #c8a35e; }

.mp-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 14px; margin-top: 28px; }
.mp-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 190px); margin: 0 auto; border-radius: 12px; overflow: hidden; background: #05080e; }
.mp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
dialog.mp.mp-tall { width: min(620px, calc(100vw - 32px)); }
.mp-tall .mp-frame { aspect-ratio: 9 / 16; height: min(calc(100dvh - 190px), 860px); width: auto; max-width: 100%; }

.mp-arw { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: border-color .2s, color .2s, background .2s; }
.mp-arw svg { width: 18px; height: 18px; display: block; }
.mp-prev svg { rotate: 180deg; }
.mp-arw:hover, .mp-arw:focus-visible { border-color: #c8a35e; color: #c8a35e; background: rgba(200,163,94,.08); }
.mp-arw[hidden] { visibility: hidden; display: grid; }

.mp-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 62px 0; }
.mp-t { margin: 0; font: 400 19px/1.3 "DM Serif Display", Georgia, serif; color: #fff; }
.mp-n { margin: 0; flex: none; font: 600 11.5px/1.3 "Libre Franklin", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #c8a35e; }

@media (max-width: 640px) {
  dialog.mp { padding: 14px 10px 12px; }
  .mp-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; }
  .mp-arw { width: 36px; height: 36px; }
  .mp-foot { padding: 10px 42px 0; }
  .mp-t { font-size: 16px; }
}
