/* Coverswim — consent-overlay voor YouTube-video's (zie video-consent.php).
   Selectors bewust via child-combinators: theme- en pluginstyles laden na dit bestand. */

.ultv-video > .ytc-wrap {
	position: relative;
	display: block;
}

.ultv-video > .ytc-wrap > .ytc-gate {
	--ytc-accent: #0077bf;
	--ytc-accent-hover: #0958a5;

	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	container-type: size;
	cursor: pointer;
	/* Fallback zonder lokale thumbnail: inline SVG, nul externe requests. */
	background-color: #0b3553;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%230b3553'/%3E%3Cstop offset='1' stop-color='%230077bf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23abe2ef' stroke-opacity='.18' stroke-width='.8'%3E%3Cpath d='M-5 62c14-6 26 6 40 0s26-6 40 0 26 6 40 0 26-6 40 0'/%3E%3Cpath d='M-5 71c14-6 26 6 40 0s26-6 40 0 26 6 40 0 26-6 40 0'/%3E%3Cpath d='M-5 80c14-6 26 6 40 0s26-6 40 0 26 6 40 0 26-6 40 0'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.2'%3E%3Cpath d='M22 56V34a38 20 0 0 1 116 0v22'/%3E%3Cpath d='M41 56V30M61 56V22M80 56V20M99 56V22M119 56V30'/%3E%3C/g%3E%3C/svg%3E");
	background-size: cover;
	background-position: center;
	font-family: "Open Sans", Arial, sans-serif;
	opacity: 1;
	transition: opacity .4s ease;
}

.ultv-video > .ytc-wrap > .ytc-gate.ytc-is-leaving {
	opacity: 0;
	pointer-events: none;
}

/* Wazige lokale thumbnail + donker verloop voor leesbaarheid. */
.ultv-video > .ytc-wrap > .ytc-gate > .ytc-bg {
	position: absolute;
	inset: -24px;
	background-size: cover;
	background-position: center;
	filter: blur(7px) saturate(1.1);
	transform: scale(1.04);
	transition: filter .3s ease, transform .3s ease;
}

.ultv-video > .ytc-wrap > .ytc-gate::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(6, 30, 48, .35) 0%, rgba(6, 30, 48, .72) 100%);
	pointer-events: none;
}

.ultv-video > .ytc-wrap > .ytc-gate:not(.ytc-has-poster)::after {
	background: rgba(6, 30, 48, .25);
}

.ultv-video > .ytc-wrap > .ytc-gate:hover > .ytc-bg {
	filter: blur(5px) saturate(1.15);
	transform: scale(1.06);
}

/* Inhoud pas tonen zodra zeker is dat er geen toestemming is (geen flits voor terugkerende bezoekers). */
.ultv-video > .ytc-wrap > .ytc-gate > .ytc-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 16px 20px;
	text-align: center;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
	opacity: 1;
	transition: opacity .25s ease;
}

.ultv-video > .ytc-wrap > .ytc-gate:not(.ytc-is-ready) > .ytc-content {
	opacity: 0;
	visibility: hidden;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-play {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0 0 2px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.25;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	text-shadow: inherit;
	cursor: pointer;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-play-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--ytc-accent);
	color: #fff;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .22), 0 8px 24px rgba(0, 0, 0, .35);
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-play-icon svg {
	width: 30px;
	height: 30px;
	margin-left: 3px;
}

.ultv-video > .ytc-wrap > .ytc-gate:hover .ytc-play-icon,
.ultv-video > .ytc-wrap > .ytc-gate .ytc-play:focus-visible .ytc-play-icon {
	transform: scale(1.07);
	background: var(--ytc-accent-hover);
	box-shadow: 0 0 0 8px rgba(255, 255, 255, .28), 0 10px 28px rgba(0, 0, 0, .4);
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-play:focus-visible,
.ultv-video > .ytc-wrap > .ytc-gate .ytc-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-play[disabled] {
	cursor: progress;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-spinner {
	display: none;
	width: 26px;
	height: 26px;
	border: 3px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ytc-spin .8s linear infinite;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-play.ytc-is-loading svg {
	display: none;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-play.ytc-is-loading .ytc-spinner {
	display: block;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-note {
	max-width: 360px;
	margin: 0;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, .92);
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-link {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-shadow: inherit;
	opacity: .85;
	cursor: pointer;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-link:hover {
	opacity: 1;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-status {
	margin: 0;
	padding: 4px 10px;
	background: rgba(179, 38, 30, .9);
	font-size: 12px;
	line-height: 1.4;
	color: #fff;
	text-shadow: none;
}

.ultv-video > .ytc-wrap > .ytc-gate .ytc-status:empty {
	display: none;
}

@keyframes ytc-spin {
	to { transform: rotate(360deg); }
}

/* Kleinere video (gsm, smalle kolom). */
@container (max-height: 240px) {
	.ultv-video > .ytc-wrap > .ytc-gate > .ytc-content {
		gap: 6px;
		padding: 10px 14px;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-play {
		gap: 8px;
		font-size: 15px;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-play-icon {
		width: 52px;
		height: 52px;
		box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 6px 18px rgba(0, 0, 0, .35);
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-play-icon svg {
		width: 24px;
		height: 24px;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-note {
		font-size: 11.5px;
		line-height: 1.4;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-link {
		font-size: 11.5px;
	}
}

/* Heel kleine gsm: knop naast de tekst in plaats van erboven. */
@container (max-height: 185px) {
	.ultv-video > .ytc-wrap > .ytc-gate > .ytc-content {
		gap: 5px;
		padding: 8px 12px;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-play {
		flex-direction: row;
		gap: 10px;
		font-size: 14px;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-play-icon {
		width: 42px;
		height: 42px;
		box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 4px 12px rgba(0, 0, 0, .35);
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-play-icon svg {
		width: 20px;
		height: 20px;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-spinner {
		width: 18px;
		height: 18px;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-note {
		font-size: 11px;
		line-height: 1.35;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-link {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ultv-video > .ytc-wrap > .ytc-gate,
	.ultv-video > .ytc-wrap > .ytc-gate > .ytc-bg,
	.ultv-video > .ytc-wrap > .ytc-gate > .ytc-content,
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-play-icon {
		transition: none;
	}
	.ultv-video > .ytc-wrap > .ytc-gate:hover > .ytc-bg,
	.ultv-video > .ytc-wrap > .ytc-gate:hover .ytc-play-icon {
		transform: none;
	}
	.ultv-video > .ytc-wrap > .ytc-gate .ytc-spinner {
		animation-duration: 2.4s;
	}
}
