/* Home-page YouTube Short theater (vertical 9:16), above the Vault CTA. */
.yt-theater {
	--theater-gold: var(--mgc-gold, var(--tvc-gold, #d4af37));
	--theater-gold-bright: var(--mgc-gold-bright, var(--tvc-gold-bright, #ffd97a));
	--theater-gold-deep: var(--mgc-gold-deep, var(--tvc-blue-deep, #8a6a1f));
	--theater-text: var(--mgc-text, var(--tvc-text, #ece5d3));
	--theater-muted: var(--mgc-text-muted, var(--tvc-text-muted, #948a76));
	--theater-border: var(--mgc-border-strong, var(--tvc-border-strong, rgba(212, 175, 55, 0.55)));
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 10px auto 0;
	padding: 52px 20px 36px;
	background:
		radial-gradient(ellipse 70% 60% at 50% 42%, color-mix(in srgb, var(--theater-gold) 16%, transparent), transparent 68%),
		linear-gradient(180deg, #050505 0%, #0c0a08 45%, #050505 100%);
	border-top: 1px solid var(--theater-border);
	border-bottom: 1px solid var(--theater-border);
}

/* Subtle side curtains */
.yt-theater::before,
.yt-theater::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(24%, 200px);
	pointer-events: none;
	z-index: 0;
	opacity: 0.88;
}
.yt-theater::before {
	left: 0;
	background: repeating-linear-gradient(
		90deg,
		#140806 0 12px,
		#2a110c 12px 20px,
		#3a1810 20px 26px,
		#0d0605 26px 36px
	);
	box-shadow: inset -40px 0 50px rgba(0, 0, 0, 0.72);
	-webkit-mask-image: linear-gradient(to right, #000 35%, transparent);
	mask-image: linear-gradient(to right, #000 35%, transparent);
}
.yt-theater::after {
	right: 0;
	background: repeating-linear-gradient(
		270deg,
		#140806 0 12px,
		#2a110c 12px 20px,
		#3a1810 20px 26px,
		#0d0605 26px 36px
	);
	box-shadow: inset 40px 0 50px rgba(0, 0, 0, 0.72);
	-webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
	mask-image: linear-gradient(to left, #000 35%, transparent);
}

/* Gold valance / curtain rod */
.yt-theater-valance {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10px;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, var(--theater-gold-bright), var(--theater-gold) 45%, var(--theater-gold-deep));
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
	opacity: 0.85;
}

.yt-theater-stage {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.yt-theater-bezel {
	width: min(400px, 86vw);
	max-width: 400px;
	padding: 9px;
	border-radius: 28px;
	background: linear-gradient(
		160deg,
		var(--theater-gold-bright),
		var(--theater-gold) 32%,
		var(--theater-gold-deep) 68%,
		var(--theater-gold) 100%
	);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.55),
		0 16px 40px rgba(0, 0, 0, 0.55),
		0 0 36px color-mix(in srgb, var(--theater-gold) 34%, transparent),
		0 0 80px color-mix(in srgb, var(--theater-gold) 16%, transparent);
}

.yt-theater-screen {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 20px;
	overflow: hidden;
	background: #000;
	isolation: isolate;
}

.yt-theater-facade {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: #000;
	color: inherit;
}
.yt-theater-facade:focus-visible {
	outline: 2px solid var(--theater-gold-bright);
	outline-offset: -3px;
}
.yt-theater-facade img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.yt-theater-play {
	position: relative;
	z-index: 1;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--theater-gold) 88%, #000 12%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.1);
	transition: transform 0.18s ease, background 0.18s ease;
}
.yt-theater-play::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-36%, -50%);
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #111;
}
.yt-theater-facade:hover .yt-theater-play,
.yt-theater-facade:focus-visible .yt-theater-play {
	transform: scale(1.06);
	background: var(--theater-gold-bright);
}

.yt-theater-screen iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: inherit;
	background: #000;
}

.yt-theater-caption {
	margin: 18px 16px 0;
	max-width: 400px;
	text-align: center;
	color: var(--theater-text);
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	line-height: 1.45;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (max-width: 520px) {
	.yt-theater { padding: 36px 12px 28px; }
	.yt-theater-bezel { width: min(360px, 92vw); padding: 7px; border-radius: 22px; }
	.yt-theater-screen { border-radius: 16px; }
	.yt-theater-play { width: 64px; height: 64px; }
	.yt-theater::before,
	.yt-theater::after { width: min(16%, 72px); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
	.yt-theater-play { transition: none; }
}
