/* All player styles are scoped so they can be added to an existing website. */
.mm-video {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.mm-video__frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #101827;
  box-shadow: 0 8px 28px rgb(16 24 39 / 12%);
}

.mm-video__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101827;
}

.mm-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(56px, 9vw, 76px);
  height: clamp(56px, 9vw, 76px);
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #244c98;
  color: #fff;
  box-shadow: 0 4px 20px rgb(0 0 0 / 24%);
  cursor: pointer;
}

.mm-video__play:hover { background: #18376f; }
.mm-video__play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 9px #244c98;
}
.mm-video__play svg { display: block; width: 55%; height: 55%; }
.mm-video [hidden] { display: none !important; }

.mm-video__media:focus-visible { outline: 3px solid #244c98; outline-offset: -3px; }
.mm-video__media:fullscreen { width: 100%; height: 100%; background: #000; }

.mm-video__message {
  margin: 12px 0 0;
  font: 16px/1.5 system-ui, sans-serif;
  color: #27354a;
}
.mm-video__message a { color: #244c98; text-decoration: underline; }

@media (max-width: 480px) {
  .mm-video__frame { border-radius: 10px; }
}
