/**
 * Variant CSS: video--quote-over-cover
 * Layer 2 — Path B video role (2026-06-06).
 * Tall portrait (4:5) cinematic cover inside a dark band: a large editorial
 * pull-quote centred over a heavy gradient, a decorative CSS play affordance
 * below the quote, and an attribution line. Distinct from quote-over-poster
 * (landscape 16:9, bottom-anchored quote, light section).
 *
 * NOTE: every text element in __overlay sits ON THE PHOTO, so fixed white /
 * rgba values are the correct text-on-photo pattern (theme-independent
 * legibility). The surrounding band uses the dark token per KI-020.
 */

/* Dark cinematic band framing the cover. */
body.aibt-universal .universal-video--quote-over-cover {
	background: var(--background-dark, #141414);
	color: var(--text-on-dark, #FFFFFF);
	padding-block: calc(clamp(2.5rem, 6vw, 5rem) * var(--density, 1));
}

/* --- Stage: the portrait cover frame --- */
body.aibt-universal .universal-video--quote-over-cover .universal-video__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--decor-radius);
	max-width: 560px;
	margin-inline: auto;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

body.aibt-universal .universal-video--quote-over-cover .universal-video__poster-img img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: var(--photo-filter, none);
}

/* Heavy vertical gradient so the centred quote always reads on the cover. */
body.aibt-universal .universal-video--quote-over-cover .universal-video__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.30) 38%,
		rgba(0, 0, 0, 0.62) 100%
	);
	pointer-events: none;
}

/* --- Overlay: kicker + pull-quote + play + attribution, centred --- */
body.aibt-universal .universal-video--quote-over-cover .universal-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: clamp(1.5rem, 5vw, 3rem);
}

body.aibt-universal .universal-video--quote-over-cover .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;
	/* Accent lift over a dark/photo surface — KI-020 safe. */
	color: color-mix(in srgb, var(--accent) 55%, var(--on-dark, #FFFFFF)) !important;
	margin: 0 auto var(--space-md) auto !important;
}

/* The headline IS the pull-quote: editorial serif, centred, kept auto-margined
   (A8/A9 — centered element must keep horizontal-auto margins). */
body.aibt-universal .universal-video--quote-over-cover h2.universal-video__headline,
body.aibt-universal .universal-video--quote-over-cover .universal-video__headline {
	font-family: var(--font-display) !important;
	color: var(--text-on-dark, #FFFFFF) !important;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
	margin: 0 auto !important;
	max-width: 18ch;
}

body.aibt-universal .universal-video--quote-over-cover .universal-video__headline em {
	/* Emphasized word lifts to accent, brightened so it never dissolves. */
	color: color-mix(in srgb, var(--accent) 60%, var(--on-dark, #FFFFFF)) !important;
	font-style: italic;
}

/* Circular play affordance, sits below the quote. Decorative (aria-hidden).
   White inner ring + dark halo guarantee the disc reads on any cover. */
body.aibt-universal .universal-video--quote-over-cover .universal-video__play {
	position: relative !important;
	margin: clamp(1.5rem, 3.5vw, 2.5rem) auto clamp(1.25rem, 3vw, 2rem) auto !important;
	width: clamp(58px, 7vw, 80px);
	height: clamp(58px, 7vw, 80px);
	border-radius: 50%;
	background: var(--accent);
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.60),
		0 0 0 4px rgba(0, 0, 0, 0.18),
		0 10px 28px rgba(0, 0, 0, 0.45);
	transition: transform var(--duration-fast, 180ms) var(--ease-default, ease);
}

/* Play triangle drawn purely in CSS (clip-path), centred in the disc. */
body.aibt-universal .universal-video--quote-over-cover .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-cover .universal-video__stage:hover .universal-video__play {
	transform: scale(1.08);
}

/* --- Attribution --- */
body.aibt-universal .universal-video--quote-over-cover .universal-video__author-name {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	font-weight: 700 !important;
	color: var(--text-on-dark, #FFFFFF) !important;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
	margin: 0 auto var(--space-xs, 0.25rem) auto !important;
}

body.aibt-universal .universal-video--quote-over-cover .universal-video__author-role {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	color: rgba(255, 255, 255, 0.82) !important;
	margin: 0 auto !important;
}

/* --- Responsive --- */
@media (max-width: 640px) {
	/* Cap the wide kicker tracking so it never wraps awkwardly (A5). */
	body.aibt-universal .universal-video--quote-over-cover .universal-video__kicker {
		letter-spacing: var(--tracking-wider) !important;
	}
	body.aibt-universal .universal-video--quote-over-cover .universal-video__headline {
		max-width: 100%;
	}
	/* A taller crop reads better on phones for a centred portrait cover. */
	body.aibt-universal .universal-video--quote-over-cover .universal-video__poster-img img {
		aspect-ratio: 3 / 4;
	}
}

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