.mv-sp-overlay[hidden] { display: none !important; }
.mv-sp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(4, 11, 24, .78);
  padding: max(20px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: mv-sp-fade .22s ease-out both;
}
.mv-sp-overlay *, .mv-sp-overlay *::before, .mv-sp-overlay *::after { box-sizing: border-box; }
.mv-sp-dialog {
  position: relative;
  width: min(1050px, 100%);
  max-height: 88dvh;
  border-radius: 14px;
  filter: drop-shadow(0 15px 45px rgba(0, 0, 0, .55));
  animation: mv-sp-rise .25s ease-out both;
}
.mv-sp-banner-link {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  outline-offset: 4px;
}
.mv-sp-banner {
  display: block;
  width: 100%;
  max-height: 86dvh;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
}
.mv-sp-close {
  position: absolute;
  z-index: 2;
  top: -15px;
  right: -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111d31;
  color: #fff;
  font: 700 29px/1 Arial, sans-serif;
  box-shadow: 0 3px 16px rgba(0,0,0,.5);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.mv-sp-close:hover, .mv-sp-close:focus-visible { background: #e33b30; transform: scale(1.06); }
.mv-sp-close:focus-visible, .mv-sp-banner-link:focus-visible { outline: 3px solid #ffcf33; outline-offset: 3px; }
@keyframes mv-sp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mv-sp-rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .mv-sp-overlay { padding: 14px 12px; }
  .mv-sp-dialog { width: 100%; }
  .mv-sp-banner-link, .mv-sp-banner { border-radius: 9px; }
  .mv-sp-close { right: -8px; top: -19px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-sp-overlay, .mv-sp-dialog { animation: none !important; }
  .mv-sp-close { transition: none !important; }
}
