.autoplayer-pro {    
    position: relative;
    overflow: hidden;
    height: 146.667vw;
    max-height: 80svh;
    display: flex;
}

.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::before,
.autoplayer-pro::after {
    position: absolute;
    display: block;
    content: "";
    pointer-events: none;
}

.autoplayer-pro::before {
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(13, 24, 39, 0.60) 0%, rgba(13, 24, 39, 0.00) 50%);
}

.autoplayer-pro:has(.content-section)::before {
    background:
        linear-gradient(180deg, rgba(13, 24, 39, 0.60) 0%, rgba(13, 24, 39, 0.00) 50%),
        radial-gradient(ellipse at center, rgba(13, 24, 39, 0.45) 0%, rgba(13, 24, 39, 0.00) 100%);
}

.autoplayer-pro::after {
    inset: auto 0 0;
    z-index: 4;
    height: var(--space-5);
    background: url('../svg/ornate-patterned-edge-dark-blue.svg') repeat-x center top / auto 100%;
}

.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 .content-section {
    position: absolute;
    inset: 50% 0 auto;
    z-index: 5;
    translate: 0 -50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-5);
    text-align: center;
}

.autoplayer-pro .title {
    margin: 0;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 63px rgba(0, 0, 0, 0.45);
    color: var(--white);
}

.autoplayer-pro .title-sans,
.autoplayer-pro .title-serif {
    display: block;
    line-height: 1;
}

.autoplayer-pro .title-sans {
    margin-bottom: var(--space-1);
    font-family: var(--font-body);
    font-size: var(--text-3xl);
    letter-spacing: 0.04em;
}

.autoplayer-pro .title-serif {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 3.125rem;
}

.autoplayer-pro .more-button {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.autoplayer-pro .video-controls {
    position: absolute;
    inset: auto var(--space-5) var(--space-10) auto;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: var(--space-3);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-appendix),
        visibility var(--transition-appendix);
}

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

.autoplayer-pro .video-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    aspect-ratio: 1;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    font-size: var(--text-base);
    line-height: 1;
    color: var(--yellow);
    border: none;
    border-radius: var(--rounded-circle);
    background-color: rgba(240, 231, 123, 0.15);
    box-shadow: 0 0 90px rgba(0, 0, 0, 0.7);
    pointer-events: all;
    transition: background-color var(--transition-appendix);
}

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

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

@media (hover: hover) {
    .autoplayer-pro .video-control:hover {
        color: var(--yellow);
        background-color: rgba(240, 231, 123, 0.5);
    }
}

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

    .autoplayer-pro::before {
        display: none;
    }

    .autoplayer-pro:has(.content-section)::before {
        display: block;
        background: radial-gradient(ellipse at center, rgba(13, 24, 39, 0.45) 0%, rgba(13, 24, 39, 0.00) 100%);
    }

    .autoplayer-pro::after {
        height: var(--space-6);
    }

    .autoplayer-pro .content-section {
        gap: var(--space-1);
    }

    .autoplayer-pro .title {
        text-shadow: 0 0 165px rgba(0, 0, 0, 0.45);
    }

    .autoplayer-pro .title-sans {
        margin-bottom: var(--space-3);
        font-size: 3.5rem;
        letter-spacing: 0.08em;
    }

    .autoplayer-pro .title-serif {
        font-size: 8.875rem;
        letter-spacing: 0.04em;
    }

    .autoplayer-pro .video-controls {
        right: var(--space-10);
        bottom: 106px;
    }

    .autoplayer-pro .video-control {
        width: 2.75rem;
        font-size: var(--text-lg);
        box-shadow: 0 0 120px rgba(0, 0, 0, 0.7);
    }
}