/*
 * Scribe embed (SPEC §6): a 16:9 box with a click-to-play facade, then the player. Single-class selectors under
 * :where() so a stencil restyles any part with one class (.scribe-<stencil> .scribe-embed { border-radius: 12px }).
 * Type and colours are pinned so theme rules for bare a / img / span don't leak in.
 */
:where(.scribe-embed) {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
	color: #fff;
}
:where(.scribe-embed) iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
:where(.scribe-embed.scribe-embed--html) {
	aspect-ratio: auto;
	background: none;
	color: inherit;
}
:where(.scribe-embed--html) iframe {
	position: static;
	width: 100%;
	min-height: 152px;
}
:where(.scribe-embed__facade) {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0;
	padding: 0;
	color: #fff;
	text-decoration: none;
	font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	cursor: pointer;
}
:where(.scribe-embed__facade):focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}
:where(.scribe-embed__thumb) {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
:where(.scribe-embed__title) {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: block;
	padding: 14px 16px 32px;
	overflow: hidden;
	background: linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0));
	color: #fff;
	font: inherit;
	letter-spacing: normal;
	text-align: left;
	text-overflow: ellipsis;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	white-space: nowrap;
}
:where(.scribe-embed__play) {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 50px;
	border-radius: 14px;
	background: rgba(18, 18, 18, 0.8);
	color: #fff;
	transform: translate(-50%, -50%);
	transition: background-color 160ms, transform 160ms;
}
:where(.scribe-embed__play) svg {
	display: block;
	width: 26px;
	height: 26px;
	margin-left: 3px;
}
:where(.scribe-embed__facade):is(:hover, :focus-visible) :where(.scribe-embed__play) {
	background: #000;
	transform: translate(-50%, -50%) scale(1.06);
}
:where(.scribe-embed[data-provider='youtube']) :where(.scribe-embed__facade):is(:hover, :focus-visible) :where(.scribe-embed__play) {
	background: #d4001c;
}
@media (prefers-reduced-motion: reduce) {
	:where(.scribe-embed__play) {
		transition: none;
	}
}
