.aavf-videos {
    --aavf-videos-accent: #3498db;
    width: 100%;
}

.aavf-videos__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.aavf-videos__stage iframe,
.aavf-videos__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.aavf-videos__poster {
    display: block;
    margin: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
}

.aavf-videos__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aavf-videos__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    background: #e00;
    opacity: .92;
    transition: opacity .15s ease, background-color .15s ease;
}

.aavf-videos__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}

.aavf-videos__poster:hover .aavf-videos__play,
.aavf-videos__poster:focus-visible .aavf-videos__play {
    opacity: 1;
    background: #c00;
}

.aavf-videos__poster:focus-visible,
.aavf-videos__item:focus-visible {
    outline: 3px solid var(--aavf-videos-accent);
    outline-offset: 2px;
}

.aavf-videos__title {
    margin: .75rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.aavf-videos__list {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0 0 .25rem;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.aavf-videos__list li {
    flex: 0 0 calc((100% - 4rem) / 5);
    min-width: 150px;
    scroll-snap-align: start;
}

@media (max-width: 575.98px) {
    .aavf-videos__list li {
        flex-basis: 46%;
    }
}

.aavf-videos__item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--aavf-videos-accent);
    text-align: left;
    cursor: pointer;
}

.aavf-videos__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: cover;
}

.aavf-videos__item.is-active img {
    outline: 3px solid var(--aavf-videos-accent);
    outline-offset: -3px;
}

.aavf-videos__name {
    display: -webkit-box;
    margin-top: .4rem;
    overflow: hidden;
    font-weight: 700;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.aavf-videos__item:hover .aavf-videos__name,
.aavf-videos__item:focus-visible .aavf-videos__name {
    text-decoration: underline;
}
