/**
 * Featured video facade (div.bms-video.bms-video--facade): structural styles.
 *
 * The poster link fills core's 16:9 embed frame (wp-block-embed styles) and
 * becomes the player on click (build/video/view.js). Colours come from theme
 * tokens (with fallbacks): a navy disc with a gold play mark, reversed on
 * hover and focus. Loaded only when a facade renders.
 */

.bms-video__play {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	background-color: var(--wp--preset--color--accent-3, #102a4c);
	cursor: pointer;
}

.bms-video iframe {
	border: 0;
}

.bms-video__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bms-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent-3, #102a4c);
	color: var(--wp--preset--color--accent-2, #fdb837);
	box-shadow: var(--wp--preset--shadow--elevated, 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3));
	transform: translate(-50%, -50%);
}

.bms-video__icon svg {
	width: 2.25rem;
	height: 2.25rem;
	margin-inline-start: 0.25rem;
}

.bms-video__play:hover .bms-video__icon,
.bms-video__play:focus-visible .bms-video__icon {
	background-color: var(--wp--preset--color--accent-2, #fdb837);
	color: var(--wp--preset--color--accent-3, #102a4c);
}

/* Gold ring inside the frame, so it shows over any poster. */
.bms-video__play:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-2, #fdb837);
	outline-offset: -3px;
}

@media (prefers-reduced-motion: no-preference) {

	.bms-video__icon {
		transition:
			background-color var(--wp--custom--transition--duration, 150ms) ease-out,
			color var(--wp--custom--transition--duration, 150ms) ease-out;
	}
}
