:root {
	--hvc-bg: #ffffff;
	--hvc-fg: #111111;
	--hvc-size: 96px;
}

/* Hide the native cursor only on devices with a real mouse */
@media (hover: hover) and (pointer: fine) {
	.hvc-video,
	.hvc-video * {
		cursor: none !important;
	}
}

.hvc-video {
	position: relative;
}

/* Custom cursor */
.hvc-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--hvc-size);
	height: var(--hvc-size);
	margin: calc(var(--hvc-size) / -2) 0 0 calc(var(--hvc-size) / -2);
	border-radius: 50%;
	background: var(--hvc-bg);
	color: var(--hvc-fg);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-direction: column;
	font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	pointer-events: none;
	z-index: 99998;
	opacity: 0;
	transform: translate3d(-100px, -100px, 0) scale(0.2);
	transition: opacity 0.2s ease;
	will-change: transform;
}

.hvc-cursor.is-active {
	opacity: 1;
}

.hvc-cursor .hvc-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hvc-cursor svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Fallback play button for touch devices */
@media (hover: none), (pointer: coarse) {
	.hvc-cursor {
		display: none;
	}
}

/* Lightbox */
.hvc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vw;
	background: rgba(0, 0, 0, 0.88);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}

.hvc-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.hvc-stage {
	position: relative;
	width: min(1200px, 100%);
	aspect-ratio: 16 / 9;
	background: #000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.hvc-modal.is-open .hvc-stage {
	transform: scale(1);
}

.hvc-stage iframe,
.hvc-stage video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.hvc-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.hvc-close:hover {
	opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
	.hvc-modal,
	.hvc-stage,
	.hvc-cursor {
		transition: none;
	}
}
