.card__video-canvas {
  position: absolute;
  z-index: 99;
}

@media (min-aspect-ratio: 1/1) {
  .card__video-canvas {
    height: 100% !important;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-aspect-ratio: 1/1), (aspect-ratio: 1/1) {
  .card__video-canvas {
    width: 100% !important;
    top: 50%;
    transform: translateY(-50%);
  }
}

.card__video-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}
.card__video-play .control-pause,
.card__video-play .control-play,
.card__video-fullscreen  {
    opacity: 0;
    transition: opacity 200ms;
}
body {
    overflow: hidden;
}
.card__video-buttons.hover .card__video-play .control-pause,
.card__video-buttons.hover .card__video-play .control-play,
.card__video-buttons.hover .card__video-fullscreen {
    opacity: 1;
    transition: opacity 200ms;
}

.paused .card__video-play .control-pause,
.paused .card__video-play .control-play,
.paused .card__video-fullscreen {
    opacity: 1;
    transition: opacity 200ms;
}

.card__video-play {
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
}
.card__video-fullscreen {
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 20px;
    bottom: 25px;
}
.hidden {
    display: none;
}
.control-spinner {
    animation: rotate 2s linear infinite;
}
.control-spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.mobile-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    pointer-events: none;
}
.mobile-anim {
    position: relative;
    margin: auto;
    width: 80px;
    height: 140px;
    border: 5px solid #fff;
    border-radius: 10px;
    background: #333;
    overflow: hidden;
    opacity: 0;
}
.mobile-anim.vert {
    transform: rotate(-90deg);
    animation: iphone 4s linear 0s 1 normal;
}
.mobile-anim.vert::after {
    bottom: 0;
    top: 0;
    animation: content 1.1s linear 0s 1 normal;
}
.mobile-anim.horiz {
    transform: rotate(0deg);
    animation: iphone-h 4s linear 0s 1 normal;
}
.mobile-anim.horiz::after {
    bottom: 30%;
    top: 30%;
    animation: content-h 1.1s linear 0s 1 normal;
}
.mobile-anim::before, .mobile-anim::after {
    content: '';
    position: absolute;
}
.mobile-anim::before {
    top: 0;
    left: 50%;
    width: 60%;
    padding-top: 10%;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 2;
}
.mobile-anim::after {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    animation: content 1.1s linear 0s 1 normal;
    z-index: 1;
}
@keyframes content {
    0%, 45% { top: 30%; bottom: 30%; }
    70%, 100% { top: 0; bottom: 0; }
}
@keyframes content-h {
    0%, 45% { top: 0; bottom: 0; }
    70%, 100% { top: 30%; bottom: 30%; }
}
@keyframes iphone {
    0%, 10% { transform: rotate(0deg) }
    20%, 100% { transform: rotate(-90deg) }
    0%, 40% {opacity: 1}
    60% {opacity: 0}
}
@keyframes iphone-h {
    0%, 10% { transform: rotate(-90deg) }
    20%, 100% { transform: rotate(0deg) }
    0%, 40% {opacity: 1}
    60% {opacity: 0}
}