/* Consent gate for embedded videos, see video-consent.php.
   Child-combinator selectors on purpose: theme/plugin CSS loads after this file. */

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

.ytc-wrap > .ytc-gate {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	padding: 1rem;
	overflow: hidden;
	container-type: size;
	color: #fff;
	font-family: inherit;
	text-align: center;
	/* Fallback when there is no self-hosted still */
	background: #363c44 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180' preserveAspectRatio='xMidYMid slice'%3E %3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2356606b'/%3E%3Cstop offset='1' stop-color='%23363c44'/%3E%3C/linearGradient%3E%3C/defs%3E %3Crect width='320' height='180' fill='url(%23s)'/%3E %3Ccircle cx='252' cy='52' r='20' fill='%23a50011' opacity='.55'/%3E %3Cpath d='M0 118 L48 84 L86 106 L132 70 L188 112 L236 88 L320 120 V180 H0Z' fill='%233f464f'/%3E %3Cpath d='M0 132 Q70 112 140 128 T320 124 V180 H0Z' fill='%232f343b'/%3E %3Cpath d='M0 150 H320 V180 H0Z' fill='%23262a30'/%3E %3Cpath d='M0 165 H320' stroke='%23fff' stroke-opacity='.18' stroke-width='2' stroke-dasharray='14 12'/%3E %3Cg fill='%231c2025'%3E%3Cpath d='M34 124 h62 q8 0 10 6 l10 4 q4 2 4 6 v8 H34z'/%3E%3Ccircle cx='50' cy='150' r='6'/%3E%3Ccircle cx='102' cy='150' r='6'/%3E%3C/g%3E %3Cg fill='%2356606b'%3E%3Crect x='42' y='129' width='12' height='7' rx='1'/%3E%3Crect x='60' y='129' width='12' height='7' rx='1'/%3E%3Cpath d='M104 132 l8 3 v4 h-8z'/%3E%3C/g%3E %3C/svg%3E") center / cover no-repeat;
	opacity: 1;
	transition: opacity .35s ease;
}
/* The site's own still, slightly blurred and darkened for legibility */
.ytc-wrap > .ytc-gate > .ytc-bg {
	position: absolute;
	inset: -12px;
	background: center / cover no-repeat;
	filter: blur(4px);
}
.ytc-wrap > .ytc-gate::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(20, 23, 27, .35) 0%, rgba(20, 23, 27, .7) 100%);
	pointer-events: none;
}
/* Waiting for a stored consent to be confirmed: block clicks, show nothing */
.ytc-wrap > .ytc-gate.is-pending {
	background: transparent;
}
.ytc-wrap > .ytc-gate.is-pending > .ytc-bg,
.ytc-wrap > .ytc-gate.is-pending::after,
.ytc-wrap > .ytc-gate.is-pending > .ytc-card {
	visibility: hidden;
	opacity: 0;
}
.ytc-wrap > .ytc-gate.is-out {
	opacity: 0;
	pointer-events: none;
}

.ytc-wrap > .ytc-gate > .ytc-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .9em;
	box-sizing: border-box;
	width: 100%;
	max-width: 28rem;
	max-height: 100%;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.4;
	transition: opacity .25s ease;
}

.ytc-wrap > .ytc-gate .ytc-btn {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	margin: 0;
	padding: .75em 1.6em .75em 1.3em;
	border: 0;
	border-radius: 2em;
	background: #a50011;
	color: #fff;
	font: inherit;
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
	transition: background-color .2s ease, transform .2s ease;
}
.ytc-wrap > .ytc-gate .ytc-btn:hover {
	background: #8a000e;
	transform: scale(1.03);
}
.ytc-wrap > .ytc-gate .ytc-btn:disabled {
	cursor: progress;
	transform: none;
}
.ytc-wrap > .ytc-gate .ytc-play {
	flex: none;
	width: 0;
	height: 0;
	border-left: .75em solid #fff;
	border-top: .45em solid transparent;
	border-bottom: .45em solid transparent;
}
.ytc-wrap > .ytc-gate.is-loading .ytc-play {
	display: none;
}

.ytc-wrap > .ytc-gate .ytc-text {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: .8em;
	line-height: 1.4;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.ytc-wrap > .ytc-gate .ytc-link {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	line-height: inherit;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0;
	text-shadow: inherit;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
}
.ytc-wrap > .ytc-gate .ytc-link:hover {
	color: #fff;
	text-decoration: none;
}
.ytc-wrap > .ytc-gate .ytc-btn:focus-visible,
.ytc-wrap > .ytc-gate .ytc-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.ytc-wrap > .ytc-gate .ytc-spinner {
	display: none;
	flex: none;
	width: 1em;
	height: 1em;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ytc-spin .8s linear infinite;
}
.ytc-wrap > .ytc-gate.is-loading .ytc-spinner {
	display: inline-block;
}
.ytc-wrap > .ytc-gate .ytc-status {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: .8em;
	font-weight: 700;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.ytc-wrap > .ytc-gate .ytc-status:empty {
	display: none;
}
.ytc-wrap > .ytc-gate.is-error .ytc-status {
	color: #ffd0d5;
}

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

/* Small players: a 16:9 box in a column is ~500x280 on desktop, ~300x170 on phones */
@container (max-height: 260px) {
	.ytc-wrap > .ytc-gate {
		padding: .75rem;
	}
	.ytc-wrap > .ytc-gate > .ytc-card {
		gap: .7em;
		font-size: 13px;
	}
}
@container (max-height: 200px) {
	.ytc-wrap > .ytc-gate {
		padding: .5rem;
	}
	.ytc-wrap > .ytc-gate > .ytc-card {
		gap: .55em;
		font-size: 12px;
		line-height: 1.3;
	}
	.ytc-wrap > .ytc-gate .ytc-btn {
		padding: .65em 1.3em .65em 1.1em;
	}
}
@container (max-height: 150px) {
	.ytc-wrap > .ytc-gate > .ytc-card {
		gap: .4em;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ytc-wrap > .ytc-gate,
	.ytc-wrap > .ytc-gate > .ytc-card,
	.ytc-wrap > .ytc-gate .ytc-btn {
		transition: none;
	}
	.ytc-wrap > .ytc-gate .ytc-btn:hover {
		transform: none;
	}
	.ytc-wrap > .ytc-gate .ytc-spinner {
		animation: none;
		border-top-color: rgba(255, 255, 255, .4);
	}
}
