/* -----------------------------------------------------------------------------
   NumatAGRI — Product Video facade
   Click-to-play poster + play button. On click, the JS swaps in the
   real provider iframe with autoplay so the click feels seamless.

   Aspect ratio is enforced by aspect-ratio: 16/9 with a padding-bottom
   fallback for older browsers (Safari < 15).
   -------------------------------------------------------------------------- */

.numat-product-video {
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.numat-product-video__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #013D1C;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	border: 0;
	padding: 0;
	display: block;
}

/* Aspect-ratio fallback for browsers that don't support aspect-ratio. */
@supports not (aspect-ratio: 16 / 9) {
	.numat-product-video__player {
		height: 0;
		padding-bottom: 56.25%;
	}
}

.numat-product-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
	            filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.numat-product-video__player:hover .numat-product-video__poster,
.numat-product-video__player:focus-visible .numat-product-video__poster {
	transform: scale(1.03);
	filter: brightness(0.92);
}

.numat-product-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	pointer-events: none;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.numat-product-video__play svg {
	width: 100%;
	height: 100%;
	display: block;
}

.numat-product-video__player:hover .numat-product-video__play,
.numat-product-video__player:focus-visible .numat-product-video__play {
	transform: translate(-50%, -50%) scale(1.08);
}

.numat-product-video__player:focus-visible {
	outline: 2px solid #FED828;
	outline-offset: 3px;
}

.numat-product-video__caption {
	margin: 12px 0 0;
	font-family: 'Soho Gothic Pro', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 300;
	color: #58595B;
	line-height: 1.5;
	text-align: center;
}

/* When the iframe takes over, hide the poster + play overlay. */
.numat-product-video__player.is-playing .numat-product-video__poster,
.numat-product-video__player.is-playing .numat-product-video__play {
	display: none;
}

.numat-product-video__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 480px) {
	.numat-product-video__player {
		border-radius: 8px;
	}
	.numat-product-video__play {
		width: 56px;
		height: 56px;
	}
}
