/**
 * hypro/video-strip — styles (front end + editor).
 * No background of its own: it sits on the page background. Mobile: text on
 * top, videos below (swipe sideways). Desktop: text left, videos right.
 */
.hypro-video-strip {
	padding-block: 56px;
	color: var(--hypro-near-black, #0c0c0a);
	overflow: hidden;
}

.hypro-video-strip__inner {
	display: grid;
	gap: 32px;
	max-width: var(--hypro-container-max, 1600px);
	margin-inline: auto;
	padding-inline: var(--hypro-container-pad, 24px);
}

/* ── Text ──────────────────────────────────────────────────────────────── */
.hypro-video-strip__header {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.hypro-video-strip__heading {
	margin: 0;
	font-family: var(--hypro-font-display, inherit);
	font-size: clamp(2.25rem, 9vw, 4.5rem);
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--hypro-near-black, #0c0c0a);
}

.hypro-video-strip__subtext {
	margin: 0;
	font-size: 1.0625rem;
	color: var(--hypro-muted, #6b6b68);
}

/* ── Strip ─────────────────────────────────────────────────────────────── */
.hypro-video-strip__viewport {
	position: relative;
	min-width: 0;
}

.hypro-video-strip__track {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.hypro-video-strip__track::-webkit-scrollbar {
	display: none;
}

.hypro-video-strip__item {
	position: relative;
	flex: 0 0 clamp(180px, 52vw, 260px);
	margin: 0;
	scroll-snap-align: start;
}

.hypro-video-strip__video {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 20px;
	background-color: var(--hypro-near-black, #0c0c0a);
}

/* ── Play button (covers the card) ─────────────────────────────────────── */
.hypro-video-strip__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: transparent;
	color: var(--hypro-near-black, #0c0c0a);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hypro-video-strip__play-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.92);
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.hypro-video-strip__play-icon svg {
	width: 28px;
	height: 28px;
	margin-left: 3px; /* optical centering of the triangle */
}

.hypro-video-strip__play:hover .hypro-video-strip__play-icon {
	transform: scale(1.08);
}

.hypro-video-strip__play:focus-visible,
.hypro-video-strip__sound:focus-visible {
	outline: 3px solid var(--hypro-blue, #1526be);
	outline-offset: 2px;
}

/* While playing the play icon disappears (tap the card to pause). */
.hypro-video-strip__item.is-playing .hypro-video-strip__play-icon {
	opacity: 0;
	transform: scale(0.8);
}

/* ── Mute / unmute (bottom of the card, only while playing) ────────────── */
.hypro-video-strip__sound {
	position: absolute;
	bottom: 12px;
	left: 50%;
	z-index: 1;
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(12 12 10 / 0.65);
	color: #fff;
	cursor: pointer;
	transform: translateX(-50%);
}

.hypro-video-strip__item.is-playing .hypro-video-strip__sound {
	display: flex;
}

.hypro-video-strip__icon {
	width: 20px;
	height: 20px;
}

.hypro-video-strip__icon--off,
.hypro-video-strip__sound[aria-pressed="false"] .hypro-video-strip__icon--on {
	display: none;
}

.hypro-video-strip__sound[aria-pressed="false"] .hypro-video-strip__icon--off {
	display: block;
}

/* ── Arrows (desktop with a mouse) ─────────────────────────────────────── */
.hypro-video-strip__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--hypro-near-black, #0c0c0a);
	box-shadow: 0 2px 12px rgb(0 0 0 / 0.2);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.hypro-video-strip__arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

.hypro-video-strip__arrow svg {
	width: 22px;
	height: 22px;
}

.hypro-video-strip__arrow--prev {
	left: 8px;
}

.hypro-video-strip__arrow--next {
	right: 8px;
}

/* ── Desktop: text left, videos right ──────────────────────────────────── */
@media (min-width: 900px) {
	.hypro-video-strip {
		padding-block: 72px;
	}

	.hypro-video-strip__inner {
		grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
		align-items: center;
		gap: 80px;
	}

	.hypro-video-strip__header {
		align-items: flex-start;
		text-align: left;
	}

	/* No title/button set: the strip takes the full width, not the text column. */
	.hypro-video-strip__inner > .hypro-video-strip__viewport:only-child {
		grid-column: 1 / -1;
	}

	.hypro-video-strip__heading {
		/* Sized so the longest word ("VENDIDAS") fits the text column with room to spare. */
		font-size: clamp(2.25rem, 3.4vw, 3.75rem);
	}

	.hypro-video-strip__item {
		flex-basis: clamp(200px, 17vw, 260px);
	}
}

@media (hover: hover) and (min-width: 900px) {
	.hypro-video-strip__arrow {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hypro-video-strip__track {
		scroll-behavior: auto;
	}

	.hypro-video-strip__play-icon {
		transition: none;
	}
}

/* ── Editor preview ────────────────────────────────────────────────────── */
.hypro-video-strip--editor .hypro-video-strip__track {
	flex-wrap: wrap;
	overflow: visible;
}

.hypro-video-strip--editor .hypro-video-strip__item {
	flex-basis: 160px;
}

.hypro-video-strip__tools {
	position: absolute;
	inset-inline: 6px;
	top: 6px;
	display: flex;
	justify-content: space-between;
	gap: 4px;
}
