body.asmon-immersive > .asmon-video-highlight,
body.asmon-video-highlight-open > .asmon-video-highlight {
	position: fixed !important;
	z-index: 10200 !important;
}

.asmon-video-highlight {
	position: fixed;
	inset: 0;
	z-index: 10100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding:
		clamp(2.5rem, 8vh, 4rem)
		clamp(1rem, 4vw, 2.5rem)
		clamp(1rem, 4vw, 2.5rem);
	box-sizing: border-box;
	pointer-events: none;
	visibility: hidden;
}

.asmon-video-highlight.is-open {
	pointer-events: auto;
	visibility: visible;
}

.asmon-video-highlight__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0);
	cursor: pointer;
	transition: background 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.asmon-video-highlight.is-active:not(.is-closing) .asmon-video-highlight__backdrop {
	background: rgba(0, 0, 0, 0.97);
}

.asmon-video-highlight.is-closing .asmon-video-highlight__backdrop {
	background: rgba(0, 0, 0, 0);
	transition: background 0.34s ease;
}

.asmon-video-highlight__close {
	position: absolute;
	top: clamp(3.75rem, 3vw, 1.25rem);
	right: clamp(2.75rem, 3vw, 1.25rem);
	z-index: 4;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(201, 168, 76, 0.35);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: rgba(255, 255, 255, 0.92);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.45rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.92);
	transition:
		opacity 0.35s ease 0.1s,
		transform 0.35s ease 0.1s,
		border-color 0.25s ease,
		background 0.25s ease;
}

.asmon-video-highlight.is-active:not(.is-closing) .asmon-video-highlight__close {
	opacity: 1;
	transform: scale(1);
}

.asmon-video-highlight.is-closing .asmon-video-highlight__close,
.asmon-video-highlight.is-open:not(.is-active) .asmon-video-highlight__close {
	opacity: 0;
	transition-duration: 0.12s;
}

.asmon-video-highlight__close:hover,
.asmon-video-highlight__close:focus-visible {
	border-color: rgba(201, 168, 76, 0.75);
	background: rgba(20, 20, 20, 0.85);
	outline: none;
}

.asmon-video-highlight__close-icon {
	display: block;
	margin: 0;
	padding: 0;
	line-height: 1;
	transform: translateY(-0.04em);
}

.asmon-video-highlight__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: min(100%, 72rem);
	max-height: min(88vh, 52rem);
	overflow: visible;
	pointer-events: none;
}

.asmon-video-highlight__frame {
	--asmon-vh-border: 3px;
	--asmon-vh-breathe: 2.8s;
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto;
	max-width: min(100%, 72rem);
	max-height: min(88vh, 52rem);
	border-radius: 3px;
	overflow: hidden;
	transform: translate3d(
			var(--asmon-vh-dx, 0px),
			var(--asmon-vh-dy, 0px),
			0
		)
		scale(var(--asmon-vh-scale, 0.88));
	transform-origin: center center;
	transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
	pointer-events: auto;
	background: linear-gradient(165deg, rgba(18, 15, 11, 0.98) 0%, rgba(8, 6, 4, 0.99) 100%);
}

.asmon-video-highlight.is-active:not(.is-closing) .asmon-video-highlight__frame {
	transform: translate3d(0, 0, 0) scale(1);
	animation: asmon-video-highlight-frame-glow var(--asmon-vh-breathe) ease-in-out infinite;
}

.asmon-video-highlight.is-closing .asmon-video-highlight__frame {
	animation: none;
	filter: none;
}

.asmon-video-highlight__frame::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	border-radius: inherit;
	box-shadow:
		inset 0 0 0 var(--asmon-vh-border) rgba(201, 168, 76, 0.45),
		0 0 16px 2px rgba(201, 168, 76, 0.12);
	animation: asmon-video-highlight-border-breathe var(--asmon-vh-breathe) ease-in-out infinite;
}

.asmon-video-highlight__chrome-flare {
	--chrome-cycle: 18s;
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	border-radius: inherit;
	padding: var(--asmon-vh-border);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	overflow: hidden;
}

.asmon-video-highlight__chrome-flare::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		100deg,
		transparent 0%,
		rgba(255, 248, 228, 0.18) 32%,
		rgba(255, 252, 245, 0.72) 50%,
		rgba(255, 248, 228, 0.18) 68%,
		transparent 100%
	);
	background-size: 55% 100%;
	background-repeat: no-repeat;
	background-position: -55% 0;
	animation: asmon-video-highlight-chrome-flare var(--chrome-cycle) linear infinite;
}

@keyframes asmon-video-highlight-frame-glow {
	0%,
	100% {
		filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.32))
			drop-shadow(0 0 40px rgba(201, 168, 76, 0.16))
			drop-shadow(0 0 64px rgba(90, 74, 36, 0.1));
	}

	50% {
		filter: drop-shadow(0 0 28px rgba(201, 168, 76, 0.48))
			drop-shadow(0 0 52px rgba(201, 168, 76, 0.26))
			drop-shadow(0 0 80px rgba(120, 98, 48, 0.14));
	}
}

@keyframes asmon-video-highlight-border-breathe {
	0%,
	100% {
		box-shadow:
			inset 0 0 0 var(--asmon-vh-border) rgba(201, 168, 76, 0.36),
			0 0 12px 2px rgba(201, 168, 76, 0.1);
	}

	50% {
		box-shadow:
			inset 0 0 0 var(--asmon-vh-border) rgba(201, 168, 76, 0.58),
			0 0 20px 3px rgba(201, 168, 76, 0.2);
	}
}

@keyframes asmon-video-highlight-chrome-flare {
	0% {
		background-position: -55% 0;
	}

	38% {
		background-position: 155% 0;
	}

	76% {
		background-position: -55% 0;
	}

	76%,
	100% {
		background-position: -55% 0;
	}
}

.asmon-video-highlight__layout {
	position: relative;
	z-index: 1;
	display: block;
	width: auto;
	max-width: 100%;
	min-width: 0;
	padding: 0;
	box-sizing: border-box;
}

.asmon-video-highlight__main {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
	width: auto;
}

.asmon-video-highlight__viewport {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0e0b08;
	overflow: hidden;
	line-height: 0;
}

.asmon-video-highlight__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.asmon-video-highlight__caption {
	max-width: min(92vw, 52rem);
	margin: 0;
	padding: 0 0.5rem;
	color: var(--asmon-text, #dbd3c7);
	font-size: 0.95rem;
	font-style: italic;
	line-height: 1.45;
	text-align: center;
	opacity: 0;
	transform: translateY(6px);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

.asmon-video-highlight.is-active:not(.is-closing) .asmon-video-highlight__caption:not(:empty) {
	opacity: 1;
	transform: translateY(0);
}

.asmon-video-highlight__sidebar {
	display: none !important;
}

body.asmon-video-highlight-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.asmon-video-highlight__dialog {
		max-width: 100%;
	}

	.asmon-video-highlight__frame {
		max-height: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asmon-video-highlight__backdrop,
	.asmon-video-highlight__frame,
	.asmon-video-highlight__close,
	.asmon-video-highlight__caption,
	.asmon-video-highlight__frame::before,
	.asmon-video-highlight__chrome-flare::before {
		transition: none;
		animation: none;
	}

	.asmon-video-highlight.is-active:not(.is-closing) .asmon-video-highlight__frame {
		filter: drop-shadow(0 0 24px rgba(201, 168, 76, 0.38))
			drop-shadow(0 0 48px rgba(201, 168, 76, 0.18));
		animation: none;
	}

	.asmon-video-highlight__frame::before {
		box-shadow: inset 0 0 0 var(--asmon-vh-border) rgba(201, 168, 76, 0.5);
	}
}
