/*
 * "Pozri sa k nám" video box. design/PAGE-STRUCTURE.md §3.3,
 * DESIGN-SYSTEM.md §5.3 (still at opacity .28), §1.4 (the play circle is one of
 * the five 50% radii in the whole design).
 *
 * The same 16/9 frame holds either the placeholder or the real embed, so the
 * section does not move when the client supplies a link.
 */

.sp-video {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--sp-line-strong);
	background: var(--sp-surface-sunken);
}

.sp-video__still {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .28;
}

.sp-video__overlay {
	position: relative;
	padding: var(--sp-9);
	text-align: center;
}

/* 86px circle, 2px red ring, red tint fill. */
.sp-video__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 86px;
	height: 86px;
	margin: 0 auto;
	border: var(--sp-border-accent);
	border-radius: var(--sp-radius-circle);
	background: var(--sp-tint-red-12);
}

/* The play triangle is a border trick, exactly as in the prototype. */
.sp-video__play::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: var(--sp-2);
	border-top: 16px solid transparent;
	border-bottom: 16px solid transparent;
	border-left: 26px solid var(--sp-red);
}

.sp-video__title {
	margin: var(--sp-7) 0 0;
	font-family: var(--sp-font-display);
	font-style: italic;
	font-weight: 800;
	/* TODO token: video-placeholder title size (DESIGN-SYSTEM §1.2). */
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: var(--sp-lh-display);
	text-transform: uppercase;
	color: var(--sp-text);
}

/* ------------------------------------------------------------- real embed */

.sp-video__embed {
	position: absolute;
	inset: 0;
}

.sp-video__embed iframe,
.sp-video__embed embed,
.sp-video__embed video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
