/* Mode cinéma : vidéo YouTube en plein écran sur fond noir. */
html.vtr-cinema-ouvert {
	overflow: hidden;
}
.vtr-cinema {
	position: fixed;
	inset: 0;
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #0b0c0f;
	color: #fff;
	overflow: hidden;
}
.vtr-cinema[open] {
	display: grid;
	place-items: center;
	animation: vtr-cinema-entree .35s ease both;
}
.vtr-cinema::backdrop {
	background: #0b0c0f;
}
.vtr-cinema__cadre {
	width: min(100vw - 96px, (100vh - 128px) * 16 / 9);
	width: min(100vw - 96px, (100dvh - 128px) * 16 / 9);
	aspect-ratio: 16 / 9;
	background: #000;
}
.vtr-cinema__cadre iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.vtr-cinema .vtr-cinema__fermer,
.vtr-cinema .vtr-cinema__fermer:hover,
.vtr-cinema .vtr-cinema__fermer:focus {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	outline: none;
	opacity: .8;
	transition: opacity .2s ease;
}
.vtr-cinema .vtr-cinema__fermer:hover {
	opacity: 1;
}
.vtr-cinema .vtr-cinema__fermer:focus-visible {
	outline: 1px solid #fff;
	outline-offset: -6px;
}
@keyframes vtr-cinema-entree {
	from {
		opacity: 0;
	}
}
@media (max-width: 860px) {
	.vtr-cinema__cadre {
		width: 100vw;
		max-height: 100dvh;
	}
	.vtr-cinema .vtr-cinema__fermer {
		top: max(8px, env(safe-area-inset-top));
		right: 8px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.vtr-cinema[open] {
		animation: none;
	}
}
