/* Shared by both pages. js/video-loader.js marks a video data-fr-loading while it waits for data to
   play, and the .fr-video box around it shows a spinner over the poster. The spinner fades in after a
   moment so videos that start quickly don't flash it. */

.fr-video {
    position: relative;
}

.fr-video:has(> video[data-fr-loading])::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    margin: -1.375rem 0 0 -1.375rem;
    box-sizing: border-box;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    animation: fr-video-spinner-appear 0.2s 0.4s both, fr-video-spinner-spin 0.8s linear infinite;
}

@keyframes fr-video-spinner-appear {
    from {
        opacity: 0;
    }
}

@keyframes fr-video-spinner-spin {
    to {
        transform: rotate(360deg);
    }
}
