.autoplayer-pro {
    --controls-bg-hover-color: #FFF;
    --controls-text-hover-color: #FFF;
    --text-content-bg-color: var(--primary-color-100);
    --text-color: var(--gray-100);
    --border-color: var(--gray-100);
    position: relative;
    overflow: hidden;
    height: 235px;
    clip-path: unset;
    z-index: 0;
    margin-bottom: 15px;

}

.autoplayer-pro.clip-path-enabled {
    clip-path: ellipse(110% 60% at 50% 35%);
    margin-bottom: 0;
}

@media (min-width: 40em) {
    .autoplayer-pro {
        height: 600px;
        margin-bottom: 30px;
    }
}

@media (min-width: 64em) {
    .autoplayer-pro {
        margin-bottom: 40px;
    }

    .autoplayer-pro.clip-path-enabled {
        height: calc(750px + (920 - 750) * ((100vw - 1025px) / (1440 - 1025)));
        clip-path: ellipse(95% 60% at 50% 35%);
    }
}

@media (min-width: 1440px) {
    .autoplayer-pro.clip-path-enabled,
    .autoplayer-pro {
        height: 920px;
    }
}

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

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

.autoplayer-pro:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 10;
}

.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: var(--background-gradient);
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.autoplayer-pro .video-control:hover {
    background: var(--background-gradient);
    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: 5px;
    padding: var(--space-4);
    width: calc(100% - 4rem);
    max-width: var(--width-comfortable);
    z-index: 100;
}

.autoplayer-pro .overlay {
    position: absolute;
    width: 313px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    padding: var(--space-20);

    background: radial-gradient(ellipse, rgba(0,0,0,0.20) 10%, rgba(255,255,255,0) 70%);
}

@media (min-width: 40em) {
    .autoplayer-pro .overlay {
        width: 430px;
    }

    .autoplayer-pro .text-content {
        bottom: 45px;
    }
}
@media (min-width: 64em) {
    .autoplayer-pro .overlay {
        width: 550px;
        padding: var(--space-24);
    }

    .autoplayer-pro .text-content {
        bottom: 85px;
        padding: var(--space-8);
    }
}

@media (min-width: 1300px) {
    .autoplayer-pro .overlay {
        width: 672px;
    }
}