/* See ./l-video-manager.md for design notes and rationale. */

.v-player {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ll-space-5);
}

.v-player[hidden] {
  display: none;
}

.v-player__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 85%);
  cursor: pointer;
}

.v-player__frame {
  position: relative;
  width: min(90dvw, 1200px);
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 96px);
}

.v-player__stage {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: var(--ll-radius-md-mobile);
  overflow: hidden;
}

.v-player__video,
.v-player__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.v-player__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: rgb(0 0 0 / 55%);
  border: 0;
  border-radius: 50%;
  color: var(--ll-color-text-inverse);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-player__close-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background-color: currentcolor;
  mask: var(--v-player-close-icon-url) center / contain no-repeat;

  /* stylelint-disable-next-line property-no-vendor-prefix --
     Safari < 15.4 still requires the -webkit-mask shorthand. */
  -webkit-mask: var(--v-player-close-icon-url) center / contain no-repeat;
}

.v-player__close-icon > img {
  display: none;
}

.v-player__close:hover {
  background: rgb(0 0 0 / 75%);
}

.v-player__close:focus-visible {
  outline: 2px solid var(--ll-color-text-inverse);
  outline-offset: 2px;
}
