/**
 * FM Premium Video — presets: Cinematic Frame, Product Demo Panel, Editorial Reel
 */

.fm-pv,
.fm-pv *,
.fm-pv *::before,
.fm-pv *::after {
	box-sizing: border-box;
}

.elementor-widget-flowmax-premium-video {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.elementor-widget-flowmax-premium-video>.elementor-widget-empty-icon {
	display: none !important;
}

.fm-pv {
	--fm-pv-overlay: rgba(2, 6, 23, 0.55);
	--fm-pv-badge-color: #ffffff;
	--fm-pv-title-color: #ffffff;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.fm-pv__frame {
	position: relative;
	width: 100%;
	min-width: 0;
	aspect-ratio: 16 / 9;
	isolation: isolate;
	overflow: hidden;
	border-radius: 32px;
	background: #020617;
	box-shadow:
		0 28px 70px rgba(2, 6, 23, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.fm-pv__poster {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.fm-pv__poster-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	object-fit: cover;
	transform: scale(1.02);
}

.fm-pv__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, var(--fm-pv-overlay) 72%, rgba(2, 6, 23, 0.82) 100%),
		radial-gradient(circle at center, transparent 35%, rgba(2, 6, 23, 0.42) 100%);
}

.fm-pv__content {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 2;
	display: grid;
	gap: 8px;
	max-width: 70%;
	min-width: 0;
}

.fm-pv__badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--fm-pv-badge-color);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fm-pv__title {
	margin: 0;
	color: var(--fm-pv-title-color);
	font-size: clamp(1.25rem, 2.2vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
	text-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

.fm-pv__play {
	position: relative;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.72);
	color: #ffffff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow:
		0 18px 40px rgba(2, 6, 23, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	cursor: pointer;
	transition:
		background 0.3s ease,
		box-shadow 0.3s ease;
}

.fm-pv__play svg {
	width: 40px;
	height: 40px;
	margin-left: 0.08em;
}

.fm-pv__play:hover,
.fm-pv__play:focus-visible {
	background: rgba(15, 23, 42, 0.88);
	box-shadow:
		0 22px 48px rgba(2, 6, 23, 0.34),
		0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.fm-pv__play:focus {
	outline: none;
}

.fm-pv__play:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
}

.fm-pv__player {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000000;
	opacity: 1;
	visibility: visible;
}

.fm-pv__player iframe,
.fm-pv__player video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.fm-pv--is-playing .fm-pv__poster {
	pointer-events: none;
}

.fm-pv--is-playing .fm-pv__play {
	opacity: 0;
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.fm-pv__play {
		transition: none;
	}
}

/* Product Demo Panel */
.elementor-widget-flowmax-premium-video .fm-pv.fm-pv--product-demo-panel,
.fm-pv--product-demo-panel {
	--fm-pv-overlay: rgba(15, 23, 42, 0.22);
	--fm-pv-badge-color: #1d4ed8;
	--fm-pv-title-color: #ffffff;
}

.fm-pv--product-demo-panel .fm-pv__frame {
	background: #f8fafc;
	box-shadow:
		0 24px 56px rgba(15, 23, 42, 0.1),
		0 0 0 1px rgba(15, 23, 42, 0.08);
}

.fm-pv--product-demo-panel .fm-pv__overlay {
	background:
		linear-gradient(180deg, rgba(248, 250, 252, 0.04) 0%, var(--fm-pv-overlay) 58%, rgba(2, 6, 23, 0.72) 100%),
		linear-gradient(90deg, rgba(2, 6, 23, 0.18) 0%, transparent 42%);
}

.fm-pv--product-demo-panel .fm-pv__content {
	inset: 0;
	display: block;
	max-width: none;
}

.fm-pv--product-demo-panel .fm-pv__badge {
	position: absolute;
	top: 20px;
	left: 20px;
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid rgba(29, 78, 216, 0.16);
	background: rgba(255, 255, 255, 0.96);
	color: var(--fm-pv-badge-color, #1d4ed8);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.fm-pv--product-demo-panel .fm-pv__title {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 20px;
	max-width: min(72%, 520px);
	margin: 0;
	color: var(--fm-pv-title-color);
	font-size: clamp(1.125rem, 2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-shadow: 0 8px 24px rgba(2, 6, 23, 0.32);
}

.fm-pv--product-demo-panel .fm-pv__play {
	width: 68px;
	height: 68px;
	background: #ffffff;
	color: #1d4ed8;
	box-shadow:
		0 16px 36px rgba(15, 23, 42, 0.16),
		0 0 0 1px rgba(15, 23, 42, 0.06);
}

.fm-pv--product-demo-panel .fm-pv__play svg {
	width: 32px;
	height: 32px;
	margin-left: 0.06em;
}

.fm-pv--product-demo-panel .fm-pv__play:hover,
.fm-pv--product-demo-panel .fm-pv__play:focus-visible {
	background: #f8fafc;
	box-shadow:
		0 20px 44px rgba(15, 23, 42, 0.2),
		0 0 0 1px rgba(29, 78, 216, 0.12);
}

.fm-pv--product-demo-panel .fm-pv__play:focus-visible {
	outline-color: #1d4ed8;
}

/* Editorial Reel */
.elementor-widget-flowmax-premium-video .fm-pv.fm-pv--editorial-reel,
.fm-pv--editorial-reel {
	--fm-pv-overlay: rgba(24, 16, 12, 0.38);
	--fm-pv-badge-color: rgba(255, 250, 245, 0.82);
	--fm-pv-title-color: #fffaf5;
}

.fm-pv--editorial-reel .fm-pv__frame {
	aspect-ratio: 5 / 4;
	background: #1a1410;
	box-shadow:
		0 36px 88px rgba(24, 16, 12, 0.34),
		0 0 0 1px rgba(255, 250, 245, 0.08) inset;
}

.fm-pv--editorial-reel .fm-pv__poster {
	display: block;
}

.fm-pv--editorial-reel .fm-pv__poster-image {
	transform: scale(1.06);
	filter: saturate(0.9) contrast(1.05);
}

.fm-pv--editorial-reel .fm-pv__overlay {
	background:
		linear-gradient(0deg, rgba(24, 16, 12, 0.9) 0%, var(--fm-pv-overlay) 38%, transparent 72%),
		radial-gradient(ellipse at center, transparent 36%, rgba(24, 16, 12, 0.48) 100%);
}

.fm-pv--editorial-reel .fm-pv__content {
	inset: auto 28px 28px 28px;
	top: auto;
	display: grid;
	gap: 14px;
	max-width: min(78%, 640px);
}

.fm-pv--editorial-reel .fm-pv__badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	color: var(--fm-pv-badge-color, rgba(255, 250, 245, 0.82));
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.fm-pv--editorial-reel .fm-pv__badge::before {
	content: '';
	display: inline-block;
	width: 32px;
	height: 1px;
	margin-right: 12px;
	vertical-align: middle;
	background: currentColor;
	opacity: 0.72;
}

.fm-pv--editorial-reel .fm-pv__title {
	margin: 0;
	color: var(--fm-pv-title-color, #fffaf5);
	font-size: clamp(1.75rem, 3.6vw, 3rem);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.04em;
	text-shadow: 0 12px 36px rgba(24, 16, 12, 0.42);
}

.fm-pv--editorial-reel .fm-pv__play {
	position: absolute;
	right: 28px;
	bottom: 28px;
	width: 64px;
	height: 64px;
	background: rgba(255, 250, 245, 0.1);
	color: #fffaf5;
	border: 1px solid rgba(255, 250, 245, 0.34);
	box-shadow: 0 14px 36px rgba(24, 16, 12, 0.24);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.fm-pv--editorial-reel .fm-pv__play svg {
	width: 28px;
	height: 28px;
	margin-left: 0.06em;
}

.fm-pv--editorial-reel .fm-pv__play:hover,
.fm-pv--editorial-reel .fm-pv__play:focus-visible {
	background: rgba(255, 250, 245, 0.16);
	border-color: rgba(255, 250, 245, 0.5);
	box-shadow: 0 18px 44px rgba(24, 16, 12, 0.3);
}

.fm-pv--editorial-reel .fm-pv__play:focus-visible {
	outline-color: #fffaf5;
}

@media (max-width: 767px) {
	.fm-pv__content {
		left: 18px;
		right: 18px;
		bottom: 18px;
		max-width: calc(100% - 36px);
	}

	.fm-pv__badge {
		padding: 5px 10px;
		font-size: 0.6875rem;
	}

	.fm-pv__title {
		font-size: clamp(1.125rem, 5vw, 1.5rem);
	}

	.fm-pv__play {
		width: 64px;
		height: 64px;
	}

	.fm-pv__play svg {
		width: 34px;
		height: 34px;
	}

	.fm-pv--product-demo-panel .fm-pv__badge {
		top: 16px;
		left: 16px;
		padding: 7px 12px;
	}

	.fm-pv--product-demo-panel .fm-pv__title {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: calc(100% - 32px);
	}

	.fm-pv--product-demo-panel .fm-pv__play {
		width: 60px;
		height: 60px;
	}

	.fm-pv--product-demo-panel .fm-pv__play svg {
		width: 28px;
		height: 28px;
	}

	.fm-pv--editorial-reel .fm-pv__frame {
		aspect-ratio: 4 / 5;
	}

	.fm-pv--editorial-reel .fm-pv__content {
		inset: auto 20px 96px 20px;
		max-width: calc(100% - 40px);
		gap: 10px;
	}

	.fm-pv--editorial-reel .fm-pv__title {
		font-size: clamp(1.5rem, 8vw, 2.25rem);
	}

	.fm-pv--editorial-reel .fm-pv__play {
		right: 20px;
		bottom: 20px;
		width: 58px;
		height: 58px;
	}

	.fm-pv--editorial-reel .fm-pv__play svg {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 480px) {
	.fm-pv__content {
		left: 14px;
		right: 14px;
		bottom: 14px;
		max-width: calc(100% - 28px);
	}

	.fm-pv__play {
		width: 56px;
		height: 56px;
	}

	.fm-pv__play svg {
		width: 30px;
		height: 30px;
	}

	.fm-pv--product-demo-panel .fm-pv__badge {
		top: 14px;
		left: 14px;
	}

	.fm-pv--product-demo-panel .fm-pv__title {
		left: 14px;
		right: 14px;
		bottom: 14px;
	}
}