/**
 * Variant CSS: video--feature-split
 * Layer 2 — Path B video role (2026-05-28).
 * Text column + media column (poster image + pure-CSS play button overlay).
 */

body.aibt-universal .universal-video--feature-split {
	background: var(--background);
	color: var(--text-primary);
}

body.aibt-universal .universal-video--feature-split .universal-video__grid {
	align-items: center;
}

/* --- Text column --- */
body.aibt-universal .universal-video--feature-split .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: var(--accent) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-video--feature-split h2.universal-video__headline,
body.aibt-universal .universal-video--feature-split .universal-video__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 0 var(--space-md) 0 !important;
}

body.aibt-universal .universal-video--feature-split .universal-video__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

body.aibt-universal .universal-video--feature-split .universal-video__body {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: 0 0 var(--space-lg) 0 !important;
	max-width: 46ch;
}

body.aibt-universal .universal-video--feature-split .universal-video__cta a {
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	background: var(--cta-bg-primary) !important;
	color: var(--cta-text-primary) !important;
	border: 1px solid var(--cta-border-primary, var(--cta-bg-primary)) !important;
	padding: var(--space-sm) var(--space-lg) !important;
	transition: background var(--duration-fast, 180ms) ease;
}

body.aibt-universal .universal-video--feature-split .universal-video__cta a:hover {
	background: var(--accent-hover, var(--accent)) !important;
}

/* Keyboard focus ring (a11y): the CTA is the only interactive element here. */
body.aibt-universal .universal-video--feature-split .universal-video__cta a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: inherit;
}

/* --- Media column: poster + play overlay --- */
body.aibt-universal .universal-video--feature-split .universal-video__poster {
	position: relative;
	overflow: hidden;
	border-radius: var(--decor-radius);
}

body.aibt-universal .universal-video--feature-split .universal-video__poster-img {
	margin: 0 !important;
}

body.aibt-universal .universal-video--feature-split .universal-video__poster-img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	filter: var(--photo-filter, none);
}

/* Subtle dark scrim so the play button reads on any poster. */
body.aibt-universal .universal-video--feature-split .universal-video__poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.18);
	pointer-events: none;
}

/* Circular play button, centred over the poster.
   Fill stays --accent for theme coherence, but the EDGE guarantee is
   theme-independent: a crisp white inner ring keeps the disc visible on dark
   or mid photos, while the outer dark halo keeps a light accent (e.g. lime)
   from dissolving into a bright poster. These rgba layers sit on a PHOTO, not
   a theme surface — fixed values are the correct text-on-photo pattern. */
body.aibt-universal .universal-video--feature-split .universal-video__play {
	position: absolute !important;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: clamp(64px, 8vw, 92px);
	height: clamp(64px, 8vw, 92px);
	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) ease;
}

/* Play triangle drawn purely in CSS (clip-path), centred in the circle. */
body.aibt-universal .universal-video--feature-split .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--feature-split .universal-video__poster:hover .universal-video__play {
	transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 781px) {
	body.aibt-universal .universal-video--feature-split .universal-video__grid {
		flex-direction: column !important;
	}
	body.aibt-universal .universal-video--feature-split .universal-video__text-col,
	body.aibt-universal .universal-video--feature-split .universal-video__media-col {
		flex-basis: 100% !important;
		width: 100% !important;
	}
}

/* Tighten the wide kicker tracking on small screens so it never wraps awkwardly. */
@media (max-width: 640px) {
	body.aibt-universal .universal-video--feature-split .universal-video__kicker {
		letter-spacing: var(--tracking-wider) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-video--feature-split .universal-video__play,
	body.aibt-universal .universal-video--feature-split .universal-video__cta a {
		transition: none;
	}
	body.aibt-universal .universal-video--feature-split .universal-video__poster:hover .universal-video__play {
		transform: translate(-50%, -50%);
	}
}
