/* One stable 16:9 stage. Gutenberg's own ratio spacer must not add a second
 * 56.25% height when its iframe is replaced with a ratio-reserving preview. */
.wp-block-embed .wp-block-embed__wrapper:has(> .lv-video-lazy)::before {
	content: none;
	display: none;
	padding: 0;
}
.lv-video-lazy { width: 100%; }
.lv-video-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 0;
	overflow: hidden;
	background: var(--wp--preset--color--lv-navy, #25344d);
	color: var(--wp--preset--color--lv-paper, #fff);
}
.lv-video-lazy :is(.lv-video-poster, iframe.lv-video-frame) {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
}
.lv-video-lazy .lv-video-poster { object-fit: cover; }
.lv-video-lazy .lv-video-play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 24px;
	border: 0;
	border-radius: 0;
	background: #10182755;
	color: var(--wp--preset--color--lv-paper, #fff);
	font-family: var(--wp--preset--font-family--display, Heebo, sans-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	text-shadow: 0 1px 2px #000;
	cursor: pointer;
}
.lv-video-lazy .lv-video-play-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 48px;
	padding-left: 3px;
	border-radius: 8px;
	background: var(--wp--preset--color--lv-red-600, #c42222);
	font-size: 24px;
	text-shadow: none;
}
.lv-video-lazy .lv-video-play > span:last-child {
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--wp--preset--color--lv-navy, #25344d);
}
.lv-video-lazy .lv-video-play:hover .lv-video-play-icon { background: var(--wp--preset--color--lv-red-700, #b3201f); }
.lv-video-link-ready { display: flex; justify-content: flex-end; padding-top: 8px; }
.lv-video-lazy .lv-video-external {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 10px;
	border: 1px solid var(--wp--preset--color--lv-navy, #25344d);
	border-radius: 6px;
	background: var(--wp--preset--color--lv-paper, #fff);
	color: var(--wp--preset--color--lv-navy, #25344d);
	font-family: var(--wp--preset--font-family--body, Lato, sans-serif);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: underline;
}
.lv-video-lazy :is(.lv-video-play, .lv-video-external):focus:not(:focus-visible) { outline: none; box-shadow: none; }
.lv-video-lazy :is(.lv-video-play, .lv-video-external):focus-visible { outline: 3px solid #fff; outline-offset: -5px; box-shadow: inset 0 0 0 7px var(--wp--preset--color--lv-navy, #25344d); }
.lv-video-lazy .lv-video-external:focus-visible { outline: 2px solid var(--wp--preset--color--lv-navy, #25344d); outline-offset: 3px; box-shadow: none; }
.lv-video-lazy [hidden] { display: none !important; }
.lv-video-lazy .lv-video-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Native video posters share the existing blue duration pill. */
body [data-lv-video-lazy] .lv-video-stage > .lv-inline-video-duration{z-index:3;pointer-events:none;}
body [data-lv-video-lazy][data-lv-video-playing="true"] .lv-inline-video-duration{display:none!important;}
