.autoplayer-pro {
    --controls-bg-hover-color: var(--gray-100);
    --controls-text-hover-color: var(--sw-key-color);
    --text-content-bg-color: var(--primary-color-100);
    --text-color: var(--gray-100);
    --border-color: var(--gray-100);
    
    position: relative;
    overflow: hidden;
    min-height: 548px;
    display: flex;
    align-items: center;
}

.autoplayer-pro.maintain-aspect-ratio {
    height: 100%;
}

.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 top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 40%);
    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.maintain-aspect-ratio .video {
    width: 1024px;  
    height: 100%;
    z-index: 1;
}

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

.autoplayer-pro .video-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 96px;
    margin-bottom: var(--space-4);
}

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

.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: rgba(0, 0, 0, 0.35) !important;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

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


.autoplayer-pro .video-control:focus-visible {
    outline: var(--border-color) solid 1px;
    outline-offset: 2px;
}

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

.autoplayer-pro .text-content {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: var(--space-1) var(--space-5);
    width: 100%;
    z-index: 12;
}

.autoplayer-pro .text-content .title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    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 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    color: var(--purple-deep);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    min-width: 133px;
    min-height: 37px;
    max-width: 240px;
    border: 3px solid var(--green);
    background-color: var(--secondary-50);
    border-radius: 9999px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 14px;
    line-height: 120%;
    text-align: center;
    margin-right: 12px;
    margin-bottom: 16px;
}

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

.autoplayer-pro .logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    z-index: 3;
    margin: 0 auto;
}

.autoplayer-pro .logo-wrapper .logo {
    max-width: 242px;
}

@media (min-width: 64em) {
    .autoplayer-pro .logo-wrapper .logo {
        max-width: 100%;
    }

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

    .autoplayer-pro .text-content .read-more {
        min-width: 152px;
        min-height: 43px;
        max-width: inherit;
        margin-top: 10px;
        margin-left: 6px;
        margin-bottom: 27px;
        font-size: var(--text-base);
    }

    .autoplayer-pro .video-controls {
        margin-bottom: var(--space-4);
        width: 138px;
    }

    .autoplayer-pro,
    .autoplayer-pro.maintain-aspect-ratio {
        height: 700px;
    }

    .autoplayer-pro.maintain-aspect-ratio .video {
        position: absolute;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
        min-width: 1240px;
    }
}