section:has(> video) {
	position: relative;
	cursor: pointer;
	background-color: var(--monochromeColor);
	overflow: hidden;
}

section:has(> video):focus-visible {
	outline: 2px solid var(--primaryColor);
	outline-offset: -2px;
}

section:has(> video).is-paused::before {
	content: "\F040D";
	display: grid;
	place-items: center;
	position: absolute;
	inset: 0;
	font-size: clamp(4rem, 20vw, 8rem);
	background-color: oklch(from var(--contrastOverlayColor) l c h / 0.25);
	transition: background-color 250ms;
	pointer-events: none;
	z-index: 1;
}

section:has(> video).is-paused:hover::before {
	background-color: oklch(from var(--contrastOverlayColor) l c h / 0.10);
}

section:has(> video) > footer {
	display: flex;
	flex-wrap: wrap;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	transform: translateY(100%);
	transition: transform 200ms;
	z-index: 2;
}

section:has(> video):hover > footer,
section:has(> video):focus-within > footer,
section:has(> video).is-paused > footer {
	transform: translateY(0);
}

section:has(> video) > video::-webkit-media-controls {
	display: none;
}

section:has(> video) > [role="status"][aria-label="Loading"] {
	display: none;
}

section:has(> video) > footer > progress {
	width: 100%;
	height: var(--mediumSpacing);
	border: 0;
	color: var(--primaryColor);
	accent-color: var(--primaryColor);
	appearance: none;
	-webkit-appearance: none;
	background-color: var(--secondaryColor);
	cursor: ew-resize;
	touch-action: none;
	overflow: hidden;
}

section:has(> video) > footer > progress::-webkit-progress-bar {
	background-color: var(--secondaryColor);
}

section:has(> video) > footer > progress::-webkit-progress-value {
	background-color: var(--primaryColor);
}

section:has(> video) > footer > progress::-moz-progress-bar {
	background-color: var(--primaryColor);
}

section:has(> video) > footer > nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: var(--mediumSpacing);
	opacity: 1;
	animation: none;
}

section:has(> video) > footer > nav > * {
	min-width: 0;
	height: auto;
	min-height: 0;
	padding: 0;
	background: none !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

section:has(> video) > footer > nav > *::before {
	color: #000;
	font-size: 2em;
}

section:has(> video) > footer > nav > button::before {
	content: "\F03E6";
}

section:has(> video).is-paused > footer > nav > button::before {
	content: "\F040D";
}

section:has(> video) > [role="alert"] {
	position: absolute;
	inset: 0;
	max-width: none;
	height: 100%;
	background-color: oklch(from var(--contrastColor) l c h / 0.50);
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
	cursor: default;
	z-index: 3;
}

@media only screen and (max-width: 1000px) {
	section:has(> video) > footer {
		transform: translateY(0);
	}
}
