/*
 * klxm/videojs_base – layout of the players and bridge to the site's design.
 * Hosts set --videojs-* (or nothing: square corners, poster and video fill the player without bars; Video.js'
 * defaults otherwise). No style attributes needed (CSP).
 */
media-i18n:has(> .videojs-player) { display: block; }
.videojs-player, .videojs-player__skin { display: block; width: 100%; max-width: 100%; }
.videojs-player {
    --media-accent-color: var(--videojs-accent);
    --media-accent-text-color: var(--videojs-accent-text);
    --media-border-radius: var(--videojs-radius, 0px);
    /* fill the player: no bars when poster or video differ slightly from the format; fullscreen keeps contain */
    --media-object-fit: var(--videojs-fit, cover);
    --media-border-color: var(--videojs-border);
    --media-focus-ring-color: var(--videojs-focus);
    --media-font-family: var(--videojs-font, inherit);
    --media-scale-unit: var(--videojs-scale);
}
.videojs-player--r16-9 .videojs-player__skin { aspect-ratio: 16 / 9; }
.videojs-player--r4-3 .videojs-player__skin { aspect-ratio: 4 / 3; }
.videojs-player--r1-1 .videojs-player__skin { aspect-ratio: 1 / 1; }
.videojs-player--r9-16 .videojs-player__skin { aspect-ratio: 9 / 16; max-height: 85vh; margin-inline: auto; width: auto; }
.videojs-player--r21-9 .videojs-player__skin { aspect-ratio: 21 / 9; }
.videojs-player--r3-2 .videojs-player__skin { aspect-ratio: 3 / 2; }
.videojs-player__noscript, .videojs-player__fallback { margin: .5em 0; }
