.abb-video-player-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.abb-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.abb-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.abb-video-watermark {
  position: absolute;
  z-index: 2;
  max-width: 42%;
  padding: 0.25em 0.45em;
  border-radius: 0.2em;
  background: rgb(0 0 0 / 42%);
  color: rgb(255 255 255 / 70%);
  font: 600 clamp(10px, 1.8vw, 15px) / 1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
  transition: top 500ms ease, right 500ms ease, bottom 500ms ease, left 500ms ease;
}

.abb-video-watermark.position-0,
.abb-video-watermark.position-1,
.abb-video-watermark.position-2,
.abb-video-watermark.position-3,
.abb-video-watermark.position-4,
.abb-video-watermark.position-5 {
  left: 50%;
  transform: translateX(-50%);
}

.abb-video-watermark.position-0 {
  top: 10%;
}

.abb-video-watermark.position-1 {
  top: 18%;
}

.abb-video-watermark.position-2 {
  top: 26%;
}

.abb-video-watermark.position-3 {
  top: 62%;
}

.abb-video-watermark.position-4 {
  top: 70%;
}

.abb-video-watermark.position-5 {
  top: 76%;
}

.abb-video-fullscreen {
  position: absolute;
  z-index: 3;
  top: 0.65rem;
  right: 0.65rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: #fff;
  background: rgb(0 0 0 / 72%);
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 0.35rem;
  cursor: pointer;
}

.abb-video-frame.is-pseudo-fullscreen {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  background: #000;
}

.abb-video-authorizer.is-pseudo-fullscreen {
  position: fixed !important;
  z-index: 2147483000;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none;
  aspect-ratio: auto !important;
  background: #000;
}

html.abb-video-pseudo-fullscreen,
html.abb-video-pseudo-fullscreen body {
  overflow: hidden;
}

.abb-video-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
}

.abb-video-frame:fullscreen iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .abb-video-watermark {
    max-width: 48%;
    padding: 0.2em 0.35em;
  }

  .abb-video-fullscreen {
    top: 0.4rem;
    right: 0.4rem;
    min-width: 44px;
    min-height: 44px;
  }
}
