/**
 * Variant CSS: video--quote-over-poster
 * Layer 2 — Path B video role (2026-06-06).
 * Single poster with a testimonial quote overlaid directly on the frame + centred
 * pure-CSS play button. Distinct from video--testimonial-split (side-by-side columns).
 * All overlaid text + the play button sit on a PHOTO, so fixed white / accent-lift
 * colours are the correct text-on-photo pattern (KI-020), not theme-surface tokens.
 */

body.aibt-universal .universal-video--quote-over-poster {
	background: var(--background);
	color: var(--text-primary);
}

/* --- Stage --- */
body.aibt-universal .universal-video--quote-over-poster .universal-video__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--decor-radius);
	isolation: isolate;
}

body.aibt-universal .universal-video--quote-over-poster .universal-video__poster-img {
	margin: 0 !important;
}

body.aibt-universal .universal-video--quote-over-poster .universal-video__poster-img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 420px;
	object-fit: cover;
	filter: var(--photo-filter, none);
}

/* Gradient scrim, darkest at the bottom where the quote lives. */
body.aibt-universal .universal-video--quote-over-poster .universal-video__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.05) 100%);
	pointer-events: none;
}

/* --- Centred play button (reused empty .universal-video__play) --- */
body.aibt-universal .universal-video--quote-over-poster .universal-video__play {
	position: absolute !important;
	top: 38%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	width: clamp(60px, 7vw, 88px);
	height: clamp(60px, 7vw, 88px);
	border-radius: 50%;
	background: var(--accent);
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.55),
		0 0 0 4px rgba(0, 0, 0, 0.16),
		0 10px 30px rgba(0, 0, 0, 0.42);
	transition: transform var(--duration-fast, 180ms) var(--ease-default, ease);
}

body.aibt-universal .universal-video--quote-over-poster .universal-video__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	width: 34%;
	height: 38%;
	background: var(--cta-text-primary, #FFFFFF);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

body.aibt-universal .universal-video--quote-over-poster .universal-video__stage:hover .universal-video__play {
	transform: translate(-50%, -50%) scale(1.08);
}

/* --- Overlay: quote anchored to the lower portion of the poster --- */
body.aibt-universal .universal-video--quote-over-poster .universal-video__overlay {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	padding: clamp(1.5rem, 5vw, 3.25rem);
	margin: 0 !important;
}

body.aibt-universal .universal-video--quote-over-poster .universal-video__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: color-mix(in srgb, var(--accent) 62%, var(--on-dark, #FFFFFF)) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

/* Quote: large display type, white over photo. Reset core blockquote chrome. */
body.aibt-universal .universal-video--quote-over-poster .universal-video__quote {
	border: 0 !important;
	padding: 0 !important;
	margin: 0 0 var(--space-md) 0 !important;
}

body.aibt-universal .universal-video--quote-over-poster .universal-video__quote p {
	font-family: var(--font-display) !important;
	font-size: clamp(1.4rem, 3vw, 2.25rem) !important;
	font-weight: 500 !important;
	line-height: 1.28 !important;
	color: var(--text-on-dark, #FFFFFF) !important;
	margin: 0 !important;
	text-wrap: balance;
	max-width: 30ch;
}

/* Decorative opening quotation mark in the accent lift. */
body.aibt-universal .universal-video--quote-over-poster .universal-video__quote p::before {
	content: "\201C";
	color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #FFFFFF));
	font-family: var(--font-display);
	margin-right: 0.08em;
}

body.aibt-universal .universal-video--quote-over-poster .universal-video__author-name {
	font-family: var(--font-display) !important;
	font-size: var(--text-base) !important;
	font-weight: 600 !important;
	color: var(--text-on-dark, #FFFFFF) !important;
	margin: 0 0 2px 0 !important;
}

body.aibt-universal .universal-video--quote-over-poster .universal-video__author-role {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	letter-spacing: var(--tracking-wide) !important;
	color: var(--text-on-dark, #FFFFFF) !important;
	opacity: 0.82;
	margin: 0 !important;
}

/* --- Mobile: taller portrait frame so the quote always fits over the poster --- */
@media (max-width: 781px) {
	body.aibt-universal .universal-video--quote-over-poster .universal-video__poster-img img {
		aspect-ratio: 4 / 5;
		min-height: 500px;
	}
	body.aibt-universal .universal-video--quote-over-poster .universal-video__play {
		top: 34%;
	}
}

/* A5: drop wide tracking on small screens so the kicker never overflows. */
@media (max-width: 640px) {
	body.aibt-universal .universal-video--quote-over-poster .universal-video__kicker {
		letter-spacing: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-video--quote-over-poster .universal-video__play {
		transition: none;
	}
	body.aibt-universal .universal-video--quote-over-poster .universal-video__stage:hover .universal-video__play {
		transform: translate(-50%, -50%);
	}
}
