@import '~moda-themes';

.VideoPlayer {
  $self: &;

  display: inline-block;
  position: relative;
  background-color: color('black');
  max-width: 100%;
  max-height: 100%;

  > video {
    display: block;
    width: 100%;
    height: 100%;
  }

  &__overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 250ms;
    transition-delay: 1s;
  }

  &__indicator {
    color: color('white');
  }

  &:hover {
    #{$self}__overlay {
      opacity: 1;
      // So as to only apply `transition-delay` on `mouseout`
      transition: opacity 250ms;
    }
  }

  &--paused {
    #{$self}__overlay {
      opacity: 1;
    }
  }
}
