.autoplayer-pro {
    --controls-bg-hover-color: var(--gray-100);
    --controls-text-hover-color: var(--primary-color-700);
    --text-content-bg-color: var(--primary-color-100);
    --text-color: var(--gray-100);
    --border-color: var(--gray-100);

    position: relative;
    overflow: hidden;
    height: 86vw;
    max-height: 100vh;
}

.autoplayer-pro .poster {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: block;
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
    filter: blur(20px);
}

.autoplayer-pro .fallback.loaded .poster {
    filter: none;
}

.autoplayer-pro .video {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 300ms cubic-bezier(0,0,0.3,1);
}

.autoplayer-pro.video-loaded .video {
    opacity: 1;
}

.autoplayer-pro .video-controls {
    display: none;
    margin-bottom: var(--space-4);
}

.autoplayer-pro.video-loaded .video-controls {
    display: block;
}

.autoplayer-pro .video-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.autoplayer-pro .video-control:hover {
    background-color: var(--controls-bg-hover-color);
    color: var(--controls-text-hover-color);
}

.autoplayer-pro .video-control:focus {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--controls-bg-color);
    outline: none;
}

.autoplayer-pro .video-control .fa-play {
    margin-left: var(--space-px);
}

.autoplayer-pro .text-content {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    padding: var(--space-8) var(--space-12);
    width: calc(100% - 4rem);
    max-width: var(--width-comfortable);
    z-index: 11;
}

.autoplayer-pro .text-content .title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
    color: var(--text-color);
}

.autoplayer-pro .description {
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: var(--text-color);
    margin-bottom: var(--space-2);
}

.autoplayer-pro .text-content .read-more {
    font-family: var(--font-display);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.autoplayer-pro .text-content .read-more:hover,
.autoplayer-pro .text-content .read-more:focus {
    text-decoration: underline;
    outline: none;
}

.autoplayer-pro .scroll-icon,
.autoplayer-pro .scroll-arrows {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 4;
    transform: translate(-50%, 0);
    display: none;
    width: 20px;
    height: auto;
}

.autoplayer-pro .scroll-icon {
    animation-name: bounce;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translate(-50%, 0);} 
   40% {transform: translate(-50%, -20px);} 
   60% {transform: translate(-50%, -10px);} 
}

@media (min-width: 40em) {
    .autoplayer-pro {
        height: 78vw;
    }

    .autoplayer-pro .scroll-icon,
    .autoplayer-pro .scroll-arrows {
        display: block;
    }
}

@media (min-width: 64em) {
    .autoplayer-pro {
        height: 43vw;
    }
}

@media (min-width: 90em) {
    .autoplayer-pro .scroll-icon{
        width: 30px;
    }
    .autoplayer-pro .scroll-arrows {
        width: 28px;
    }
}

@media (max-width: 64em) {
    .autoplayer-pro {
        height: 0;
        padding-bottom: 42.9%;
    }
    .autoplayer-pro video {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
}