/*
 * PDP product video (functions/commerce/product-video.php) — white panel with
 * mono kicker + Brauer heading and a 16:9 click-to-load facade. The facade is
 * a real <button>: local poster (or dark stage), yellow square play chip,
 * "YouTube — Klick lädt das Video" transparency chip. product-video.js swaps
 * in the youtube-nocookie iframe on click. Sharp corners, tokens.css vars;
 * spacing to the neighbour sections comes from div.product's 30px flex gap.
 */
.sisa-pd-video {
	background: var(--sisa-panel);
	border: 1px solid var(--sisa-hairline);
	padding: clamp(24px, 2.5vw, 32px);
}
.sisa-pd-video__kicker {
	font-family: var(--sisa-mono);
	font-size: 12px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--sisa-text-2);
	margin: 0 0 6px;
}
.sisa-pd-video__h {
	font-family: var(--sisa-display);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: -0.4px;
	color: var(--sisa-ink);
	margin: 0 0 20px;
}

/* ---- facade ---- */
.sisa-pd-video__facade {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	background: var(--sisa-emphasis);
	cursor: pointer;
	overflow: hidden;
}
.sisa-pd-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.sisa-pd-video__facade:hover .sisa-pd-video__poster { transform: scale(1.02); }
/* scrim: keeps the play chip + label readable on any poster */
.sisa-pd-video__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.45));
}

/* play chip — square, brand yellow, sharp */
.sisa-pd-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	background: var(--sisa-yellow);
	color: var(--sisa-yellow-ink);
	transition: transform 0.2s ease;
}
.sisa-pd-video__play svg { width: 30px; height: 30px; display: block; }
.sisa-pd-video__facade:hover .sisa-pd-video__play,
.sisa-pd-video__facade:focus-visible .sisa-pd-video__play {
	transform: translate(-50%, -50%) scale(1.07);
}
.sisa-pd-video__facade:focus-visible {
	outline: 2px solid var(--sisa-yellow);
	outline-offset: 2px;
}

/* transparency chip — bottom-left, mono */
.sisa-pd-video__chip {
	position: absolute;
	left: 14px;
	bottom: 14px;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-family: var(--sisa-mono);
	font-size: 11px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---- playing state (JS swaps the facade content for the iframe) ---- */
.sisa-pd-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--sisa-emphasis);
}
.sisa-pd-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.sisa-pd-video__poster,
	.sisa-pd-video__play { transition: none; }
}

@media (max-width: 768px) {
	.sisa-pd-video__h { font-size: 20px; margin-bottom: 16px; }
	.sisa-pd-video__play { width: 56px; height: 56px; }
	.sisa-pd-video__play svg { width: 24px; height: 24px; }
	.sisa-pd-video__chip { left: 10px; bottom: 10px; font-size: 10px; }
}
