/* Shared embed controls
   One row of ghost pills directly beneath an embed's frame (outside it),
   right-aligned, on the caption's line (the page lays that out): Pause / Play (one toggle), Replay, Reset. The markup is built
   by controls.js from <div data-embed-controls="playback replay reset">.
   Embeds must not restyle these controls or redefine their behavior. */

.embed-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 12px 0 0;
}

.embed-controls__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--color-border, #dedede);
	border-radius: 999px;
	background: transparent;
	color: var(--color-text, #454545);
	font-family: var(--font-sans, "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.12s ease;
}

.embed-controls__btn:hover {
	border-color: var(--color-heading, #000000);
}

.embed-controls__btn:focus-visible {
	outline: 2px solid var(--color-accent, #8b8f5e);
	outline-offset: 2px;
}

.embed-controls__btn svg {
	flex: none;
	width: 12px;
	height: 12px;
}

.embed-controls__btn[hidden],
.embed-controls [hidden] {
	display: none;
}

.embed-controls__live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Reduced motion: no animation, so only Reset remains */
@media (prefers-reduced-motion: reduce) {
	.embed-controls__btn--playback,
	.embed-controls__btn--replay {
		display: none;
	}

	.embed-controls__btn {
		transition: none;
	}
}
