/* ==========================================================================
   THE 12TH — Accessible Video Controls
   Wrapped around every <video> by assets/js/compliance/video-a11y.js.
   Brand tokens inherited from style.css :root.
   ========================================================================== */

.v12-video {
	position: relative;
	display: inline-block; /* Don't disrupt layout of inline-styled videos */
	max-width: 100%;
}
/* When the original video filled its parent (e.g. splash full-bleed,
   .vibe-slide), the wrapper must too. */
.v12-video > video {
	display: block;
	max-width: 100%;
}

/* ── Controls bar ───────────────────────────────────────────────────────── */
.v12-video__controls {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	z-index: 5;
}

/* Reveal on hover/focus-within (desktop). */
.v12-video:hover .v12-video__controls,
.v12-video:focus-within .v12-video__controls {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Always-on for touch devices (no reliable hover). */
@media (hover: none), (pointer: coarse) {
	.v12-video__controls {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.v12-video__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(11, 18, 29, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--accent-color, #D4AF37);
	border: 1px solid var(--accent-color, #D4AF37);
	border-radius: 2px;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease,
	            box-shadow 0.3s ease;
}
.v12-video__btn:hover,
.v12-video__btn:focus-visible {
	background: var(--accent-color, #D4AF37);
	color: #000;
	outline: none;
}
.v12-video__btn:focus-visible {
	box-shadow: 0 0 0 4px var(--accent-glow, rgba(212, 175, 55, 0.15));
}
.v12-video__btn svg {
	display: block;
	width: 14px;
	height: 14px;
}

/* Splash hero video — controls would clash with the GSAP intro animation,
   so push the controls into the corner so they're reachable but unobtrusive. */
#the12th-splash-screen .v12-video__controls {
	bottom: 24px;
	left: auto;
	right: 24px;
	background: none;
	padding: 0;
}

/* Vibe-strip carousel: keep controls subtle until the slide is hovered. */
.vibe-slide .v12-video__controls {
	bottom: 8px;
	padding: 8px 10px;
}
.vibe-slide .v12-video__btn {
	width: 36px;
	height: 36px;
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.v12-video__controls,
	.v12-video__btn {
		transition-duration: 0.01ms !important;
		transform: none !important;
	}
}
