/* Fixa Academy — cinematic video lightbox */

.fx-video-pop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 40px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.32s ease, visibility 0.32s ease;
}

.fx-video-pop.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.fx-video-pop__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 50% 40%, rgba(241, 91, 85, 0.18), transparent 55%),
		rgba(7, 12, 20, 0.82);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	cursor: pointer;
}

.fx-video-pop__stage {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	transform: translateY(18px) scale(0.96);
	opacity: 0;
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}

.fx-video-pop.is-open .fx-video-pop__stage {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.fx-video-pop__chrome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding: 0 2px;
}

.fx-video-pop__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
	letter-spacing: -0.01em;
	line-height: 1.4;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.fx-video-pop__close {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fx-video-pop__close:hover {
	background: rgba(241, 91, 85, 0.9);
	border-color: transparent;
	transform: scale(1.04);
}

.fx-video-pop__close:focus-visible {
	outline: 2px solid #f15b55;
	outline-offset: 3px;
}

.fx-video-pop__close svg {
	width: 18px;
	height: 18px;
	display: block;
}

.fx-video-pop__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #0a0e14;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08),
		0 28px 80px rgba(0, 0, 0, 0.55),
		0 0 60px rgba(241, 91, 85, 0.12);
}

.fx-video-pop__frame::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 40%, rgba(241, 91, 85, 0.35));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 2;
}

.fx-video-pop__loader {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(110deg, #141a24 25%, #1e2735 50%, #141a24 75%);
	background-size: 200% 100%;
	animation: fxVideoShimmer 1.4s linear infinite;
	z-index: 1;
}

.fx-video-pop__loader[hidden] {
	display: none !important;
}

.fx-video-pop__spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: #f15b55;
	animation: fxVideoSpin 0.75s linear infinite;
}

.fx-video-pop__player {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.fx-video-pop__player[hidden] {
	visibility: hidden;
}

.fx-video-pop__player video,
.fx-video-pop__player .plyr,
.fx-video-pop__player iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	border-radius: 0;
}

.fx-video-pop__player .plyr {
	height: 100%;
}

.fx-video-pop__player .plyr__video-wrapper,
.fx-video-pop__player .plyr__video-embed {
	height: 100%;
}

.fx-video-pop .plyr--video {
	--plyr-color-main: #f15b55;
	--plyr-video-control-color: #fff;
	--plyr-video-control-background-hover: rgba(241, 91, 85, 0.85);
	--plyr-control-radius: 10px;
	--plyr-range-fill-background: #f15b55;
	background: #000;
	height: 100%;
}

.fx-video-pop .plyr__control--overlaid {
	background: #f15b55;
	box-shadow: 0 10px 30px rgba(241, 91, 85, 0.45);
	padding: 18px;
}

.fx-video-pop .plyr__control--overlaid:hover {
	background: #d94842;
}

.fx-video-pop .plyr__controls {
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
	padding: 12px 14px 14px;
}

html.fx-video-open,
html.fx-video-open body {
	overflow: hidden;
}

@keyframes fxVideoShimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@keyframes fxVideoSpin {
	to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
	.fx-video-pop {
		padding: 0;
		align-items: flex-end;
	}

	.fx-video-pop__stage {
		width: 100%;
		padding: 14px 14px 22px;
		background: linear-gradient(180deg, rgba(12, 16, 24, 0.2), #0c1018 28%);
		border-radius: 22px 22px 0 0;
		transform: translateY(100%);
	}

	.fx-video-pop.is-open .fx-video-pop__stage {
		transform: translateY(0);
	}

	.fx-video-pop__frame {
		border-radius: 14px;
	}

	.fx-video-pop__chrome {
		margin-bottom: 10px;
	}
}

/* Subtle pulse on video CTA */
a.fx-slider-btn--secondary[data-fx-video] svg {
	transition: transform 0.25s ease, color 0.25s ease;
}

a.fx-slider-btn--secondary[data-fx-video]:hover svg {
	transform: scale(1.12);
	color: var(--fx-slider-primary, #d31128);
}
