/* ==========================================================================
   Heaven — reels.css
   The feed of product videos (page «reels»).
   Phone: the video edge to edge above a dark tab bar, actions over its right edge.
   From 700 px: a 9:16 card on a dim stage lit by the clip's own colours, actions beside it.
   From 1024 px: the site header stays on top, arrows to move through the feed.
   ========================================================================== */

/* ---------- 1. Page shell ---------- */
html:has(body.hv-reels-page) {
	overflow: hidden;
	scrollbar-gutter: auto;
	background: #000;
}

body.hv-reels-page {
	height: 100dvh;
	padding-bottom: 0;
	overflow: hidden;
	overscroll-behavior: none;
	background: #000;
}

.hv-reels-page .hv-announce { display: none; }
.hv-reels-page .hv-main { min-height: 0; }

@media (max-width: 1023.98px) {
	.hv-reels-page .hv-header { display: none; }

	/* Here the tab bar is not the floating glass capsule of the other pages: the clip takes the whole screen down
	   to a black strip, as in every feed of this kind. */
	body.hv-reels-page { --tabbar-space: calc(var(--tabbar-h) + var(--safe-b)); }

	.hv-reels-page .hv-tabbar {
		left: 0;
		right: 0;
		bottom: 0;
		max-width: none;
		padding: 0 0 var(--safe-b);
		border-top: 1px solid rgba(255, 255, 255, .1);
		border-radius: 0;
		background: #000;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: none;
	}

	.hv-reels-page .hv-tabbar::after { content: none; }
	.hv-reels-page .hv-tabbar__item { height: var(--tabbar-h); border-radius: 0; }
	.hv-reels-page .hv-tabbar__item .hv-count { top: 6px; }

	.hv-reels-page .hv-tabbar__drop {
		top: 6px;
		bottom: calc(6px + var(--safe-b));
		left: 0;
		width: 20%;
		padding-inline: 8px;
	}

	.hv-reels-page .hv-tabbar__drop span { background: rgba(255, 255, 255, .13); box-shadow: none; }

	/* The cookie question sits at the top here: at the bottom it would cover the product and «Купити». */
	.hv-reels-page .hv-consent {
		top: calc(env(safe-area-inset-top, 0px) + 60px);
		bottom: auto;
		transform: translateY(-12px);
	}

	.hv-reels-page .hv-consent.is-open { transform: none; }

	.hv-reels-page .hv-tabbar__item { color: rgba(255, 255, 255, .58); }
	.hv-reels-page .hv-tabbar__item[aria-current="page"] { color: #fff; }
	.hv-reels-page .hv-tabbar .hv-count { background: #fff; color: var(--c-ink); }
}

/* ---------- 2. Stage and feed ---------- */
.hv-reels {
	--reel-like: #FF4163;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: calc(var(--tabbar-h) + var(--safe-b) + 1px); /* + the tab bar's top border */
	z-index: 1;
	overflow: hidden;
	overflow: clip; /* Nothing inside may scroll the stage itself (a focused button near its edge would). */
	background: #000;
	color: #fff;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.admin-bar .hv-reels { top: var(--wp-admin--admin-bar--height, 46px); }

.hv-reels__feed {
	position: absolute;
	inset: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-snap-type: y mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hv-reels__feed::-webkit-scrollbar { display: none; }
.hv-reels__feed:focus { outline: none; }

.hv-reel {
	position: relative;
	display: flex;
	justify-content: center;
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* The picture keeps 9:16; a screen narrower than that (every phone) crops its sides instead of leaving bars. */
.hv-reel__stage {
	position: relative;
	flex: none;
	height: 100%;
	max-width: 100%;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	background: #17130F;
}

.hv-reel__poster,
.hv-reel__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The cover stays until the video has a frame of its own: no black flash between clips. */
.hv-reel__poster { transition: opacity .3s linear; } /* Fades when a returning visitor gets another first clip. */
.hv-reel__video { opacity: 0; transition: opacity .28s linear; }
.hv-reel.has-frame .hv-reel__video { opacity: 1; }

.hv-reel__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .34) 20%, rgba(0, 0, 0, 0) 46%),
		linear-gradient(to bottom, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, 0) 17%);
	pointer-events: none;
	transition: opacity .25s;
}

.hv-reel__tap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	touch-action: pan-y;
	-webkit-touch-callout: none;
}

.hv-reel__tap:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

/* Play sign while the clip is paused. */
.hv-reel__state {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	margin: -39px 0 0 -39px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .38);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 0;
	transform: scale(.55);
	transition: opacity .18s, transform .32s var(--ease);
	pointer-events: none;
}

.hv-reel__state .hv-icon { margin-left: 3px; stroke: none; }
.hv-reel.is-paused .hv-reel__state { opacity: 1; transform: none; }

.hv-reel__spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 2.5px solid rgba(255, 255, 255, .3);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

/* Only when the wait is long enough to notice. */
.hv-reel.is-waiting:not(.is-paused) .hv-reel__spinner {
	opacity: 1;
	animation: hv-spin .8s linear infinite;
	transition: opacity .2s .45s;
}

.hv-reel__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.5px;
	background: rgba(255, 255, 255, .22);
	pointer-events: none;
	transition: opacity .25s;
}

.hv-reel__progress span {
	display: block;
	height: 100%;
	background: #fff;
	transform: scaleX(0);
	transform-origin: 0 50%;
	will-change: transform;
}

/* ---------- 3. Caption and product ---------- */
.hv-reel__info {
	position: absolute;
	left: 14px;
	right: 72px;
	bottom: 18px;
	display: grid;
	gap: 10px;
	justify-items: start;
	pointer-events: none;
	transition: opacity .25s;
}

.hv-reel__info a,
.hv-reel__info button { pointer-events: auto; }

.hv-reel__author {
	display: flex;
	align-items: center;
	gap: 9px;
	font: 700 .9375rem/1 var(--f-sans);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

.hv-reel__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border: 1.5px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	background: var(--c-sky);
	color: var(--c-ink);
}

.hv-reel__group { font-weight: 500; opacity: .86; }
.hv-reel__group:not(:empty)::before { content: '·'; margin-right: 9px; }

.hv-reel__title {
	display: -webkit-box;
	overflow: hidden;
	font: 500 .9375rem/1.4 var(--f-sans);
	letter-spacing: 0;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
	text-wrap: pretty;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Frosted card: the thing in the clip, its price, one button to buy it. */
.hv-reel__shop {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 420px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 18px;
	background: rgba(60, 52, 46, .5);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}

/* The frost is a costly effect on a phone: only the clip on screen and its neighbours carry it. */
.hv-reel.is-active .hv-reel__shop,
.hv-reel.is-near .hv-reel__shop,
.hv-reels:not(.is-live) .hv-reel__shop {
	background: rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
}

.hv-reel__product {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: #fff;
}

.hv-reel__thumb {
	flex: none;
	width: 44px;
	height: 58px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .18);
	object-fit: cover;
}

.hv-reel__thumb:not([src]) { visibility: hidden; }

.hv-reel__product-text { display: grid; gap: 3px; min-width: 0; }

.hv-reel__product-name {
	display: -webkit-box;
	overflow: hidden;
	font: 600 .8125rem/1.25 var(--f-sans);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hv-reel__product-price { display: flex; align-items: baseline; gap: 7px; font: 700 .875rem/1.1 var(--f-sans); font-variant-numeric: lining-nums; }
.hv-reel__product-price s { font-weight: 500; font-size: .75rem; opacity: .72; }

.hv-reel__buy {
	position: relative;
	flex: none;
	min-height: 46px;
	padding: 0 20px;
	overflow: hidden;
	border-radius: var(--r-pill);
	background: #fff;
	color: var(--c-ink);
	font: 700 .875rem/1 var(--f-sans);
	cursor: pointer;
	transition: transform var(--t-fast), background-color var(--t-fast);
}

.hv-reel__buy:active { transform: scale(.96); }

/* One soft glint across the button once the clip has been watched for a moment. */
.hv-reel__buy::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -70%;
	width: 50%;
	background: linear-gradient(100deg, rgba(244, 225, 216, 0) 0%, rgba(244, 225, 216, .95) 50%, rgba(244, 225, 216, 0) 100%);
	transform: skewX(-18deg);
	pointer-events: none;
}

.hv-reel.is-active .hv-reel__buy::after { animation: hv-reel-glint 1.1s 1.8s var(--ease) 1 both; }

.hv-reel__buy.is-loading { color: transparent; pointer-events: none; }
.hv-reel__buy.is-loading::after {
	left: 50%;
	top: 50%;
	bottom: auto;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(31, 27, 24, .25);
	border-top-color: var(--c-ink);
	border-radius: 50%;
	background: none;
	transform: none;
	animation: hv-spin .7s linear infinite;
}

.hv-reel__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 40px;
	margin: -8px 0 -10px;
	padding: 0 4px;
	color: #fff;
	font: 600 .8125rem/1 var(--f-sans);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
	cursor: pointer;
}

.hv-reel__more[hidden] { display: none; }

/* A clip that has just arrived brings its caption in, line by line. */
.hv-reels.is-live .hv-reel__info > * {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .2s, transform .2s;
}

.hv-reels.is-live .hv-reel.is-active .hv-reel__info > * {
	opacity: 1;
	transform: none;
	transition: opacity .5s var(--ease), transform .65s var(--ease);
}

.hv-reels.is-live .hv-reel.is-active .hv-reel__info > :nth-child(2) { transition-delay: .05s; }
.hv-reels.is-live .hv-reel.is-active .hv-reel__info > :nth-child(3) { transition-delay: .11s; }
.hv-reels.is-live .hv-reel.is-active .hv-reel__info > :nth-child(4) { transition-delay: .17s; }

/* ---------- 4. Actions ---------- */
.hv-reel__rail {
	position: absolute;
	right: 6px;
	bottom: 22px;
	display: grid;
	gap: 6px;
	justify-items: center;
	transition: opacity .25s;
}

.hv-reel__act {
	position: relative;
	display: grid;
	gap: 5px;
	justify-items: center;
	min-width: 52px;
	padding: 6px 0;
	color: #fff;
	cursor: pointer;
}

.hv-reel__act-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 36px;
}

.hv-reel__act .hv-icon {
	stroke-width: 1.7;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
	transition: transform var(--t-fast);
}

.hv-reel__act:active .hv-icon { transform: scale(.88); }

.hv-reel__act-n {
	min-height: 12px;
	font: 600 .75rem/1 var(--f-sans);
	font-variant-numeric: lining-nums;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.hv-reel__act-n:empty { display: none; }
.hv-reel__act:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 12px; }

.hv-reel__act--like[aria-pressed="true"] .hv-icon { fill: var(--reel-like); stroke: var(--reel-like); }
.hv-reel__act--save[aria-pressed="true"] .hv-icon { fill: #fff; }

.hv-reel__act--like.is-popping .hv-icon,
.hv-reel__act--save.is-popping .hv-icon { animation: hv-reel-pop .5s var(--ease); }

.hv-reel__act--like .hv-reel__act-icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border: 2px solid var(--reel-like);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.hv-reel__act--like.is-popping[aria-pressed="true"] .hv-reel__act-icon::after { animation: hv-reel-ring .55s ease-out; }

/* The heart a double tap leaves on the picture (reels.js animates it). */
.hv-reel__burst {
	position: absolute;
	z-index: 3;
	width: 104px;
	height: 104px;
	margin: -52px 0 0 -52px;
	pointer-events: none;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .28));
}

.hv-reel__burst svg { display: block; width: 100%; height: 100%; }

.hv-reel__spark {
	position: absolute;
	z-index: 3;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	pointer-events: none;
}

.hv-reel__spark svg { display: block; width: 100%; height: 100%; }

/* A long press shows the clip alone. */
.hv-reels.is-clean .hv-reel__info,
.hv-reels.is-clean .hv-reel__rail,
.hv-reels.is-clean .hv-reel__shade,
.hv-reels.is-clean .hv-reel__progress,
.hv-reels.is-clean .hv-reel__state,
.hv-reels.is-clean .hv-reels__top,
.hv-reels.is-clean .hv-reels__nav { opacity: 0; }

/* ---------- 5. Top bar, hint, arrows ---------- */
.hv-reels__top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: calc(env(safe-area-inset-top, 0px) + 8px) 6px 8px 16px;
	pointer-events: none;
	transition: opacity .25s;
}

.hv-reels__top a { pointer-events: auto; }

.hv-reels__title {
	font: 600 1.875rem/1 var(--f-serif);
	letter-spacing: .005em;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

.hv-reels__lead { display: none; }

.hv-reels__iconbtn {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: #fff;
}

.hv-reels__iconbtn .hv-icon { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.hv-reels__iconbtn .hv-count { background: #fff; color: var(--c-ink); }

.hv-reels__nav { display: none; }
.hv-reels__ambient { display: none; }

.hv-reels__hint {
	position: absolute;
	left: 50%;
	bottom: 34%;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px 10px 12px;
	border-radius: var(--r-pill);
	background: rgba(0, 0, 0, .46);
	font: 600 .8125rem/1 var(--f-sans);
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: opacity .3s, transform .4s var(--ease);
	pointer-events: none;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.hv-reels__hint[hidden] { display: none; }
.hv-reels__hint.is-visible { opacity: 1; transform: translate(-50%, 0); }
.hv-reels__hint-icon { display: grid; height: 18px; animation: hv-reel-nudge 1.1s ease-in-out infinite; }
.hv-reels__hint-icon .hv-icon { grid-area: 1 / 1; }
.hv-reels__hint-icon .hv-icon:first-child { transform: translateY(-5px); opacity: .55; }
.hv-reels__hint-icon .hv-icon:last-child { transform: translateY(3px); }

/* First visit: the next clip rises over the bottom edge for a moment to show the feed goes on. The clip on screen
   stays where it is, and the rising one cannot be touched (it is inert), so a tap made at that moment still lands
   on the button the visitor aimed at. */
.hv-reels__feed.is-peeking .hv-reel.is-active + .hv-reel {
	z-index: 2;
	animation: hv-reel-peek 1.7s cubic-bezier(.3, .7, .2, 1) 1;
}

.hv-reels__feed.is-peeking .hv-reel.is-active + .hv-reel .hv-reel__stage {
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -14px 44px rgba(0, 0, 0, .5);
}

/* ---------- 6. Wider screens: the clip is a card ---------- */
@media (min-width: 700px) {
	.hv-reels { background: #0F0D0C; }

	/* Two layers that cross-fade: the stage takes the colours of the clip on screen. */
	.hv-reels__ambient {
		position: absolute;
		inset: 0;
		display: block;
		overflow: hidden;
		overflow: clip;
		pointer-events: none;
	}

	/* Larger than the stage, so the blur has no pale edge. */
	.hv-reels__ambient span {
		position: absolute;
		inset: -90px;
		background: center / cover no-repeat;
		filter: blur(64px) saturate(1.3) brightness(.5);
		opacity: 0;
		transition: opacity 1s ease;
	}

	.hv-reels__ambient span.is-on { opacity: .9; }

	.hv-reel {
		align-items: center;
		gap: 14px;
		padding: 18px 0;
	}

	/* Balances the actions on the right, so the card sits in the middle of the stage. */
	.hv-reel::before { content: ''; flex: none; width: 60px; }

	.hv-reel__stage {
		max-width: calc(100% - 176px);
		border-radius: 22px;
		box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
	}

	.hv-reel__info { left: 16px; right: 16px; bottom: 20px; }

	.hv-reel__rail {
		position: static;
		flex: none;
		align-self: flex-end;
		gap: 12px;
		width: 60px;
		padding-bottom: 6px;
	}

	.hv-reel__act { min-width: 60px; padding: 0; }

	.hv-reel__act-icon {
		width: 52px;
		height: 52px;
		border-radius: 50%;
		background: rgba(255, 255, 255, .12);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		transition: background-color var(--t-fast);
	}

	.hv-reel__act .hv-icon { width: 24px; height: 24px; filter: none; }
	.hv-reel__act--like .hv-reel__act-icon::after { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
	.hv-reels__top { padding: 18px 20px; }
	.hv-reels__hint { bottom: 46%; }
}

/* Tablet: the card nearly fills the width, and a heading half on the card, half on the stage looks broken.
   The tab bar already names the section; the heading stays for screen readers. */
@media (min-width: 700px) and (max-width: 1023.98px) {
	.hv-reels__top > div {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.hv-reels__top { justify-content: flex-end; }
}

@media (min-width: 700px) and (hover: hover) {
	.hv-reel__act:hover .hv-reel__act-icon { background: rgba(255, 255, 255, .22); }
	.hv-reel__buy:hover { background: var(--c-blush); }
	.hv-reel__product:hover .hv-reel__product-name { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- 7. Computer: under the site header ---------- */
@media (min-width: 1024px) {
	html:has(body.hv-reels-page) { background: var(--c-bg); }
	body.hv-reels-page { background: var(--c-bg); } /* Behind the translucent header: the same tone as on every page. */

	.hv-reels,
	.admin-bar .hv-reels {
		position: relative;
		top: auto;
		bottom: auto;
		height: calc(100dvh - var(--header-h) - 1px - var(--wp-admin--admin-bar--height, 0px));
	}

	.hv-reels__top { padding: 26px 34px; }
	.hv-reels__title { font-size: 2.5rem; }

	.hv-reels__lead {
		display: block;
		max-width: 230px;
		margin-top: 10px;
		font-size: .875rem;
		line-height: 1.45;
		color: rgba(255, 255, 255, .7);
	}

	.hv-reels__iconbtn { display: none; }
	.hv-reel { gap: 18px; padding: 22px 0; }
	.hv-reel__stage { max-width: calc(100% - 420px); }

	.hv-reels__nav {
		position: absolute;
		right: 34px;
		top: 50%;
		z-index: 4;
		display: grid;
		gap: 12px;
		transform: translateY(-50%);
		transition: opacity .25s;
	}

	.hv-reels__navbtn {
		display: grid;
		place-items: center;
		width: 52px;
		height: 52px;
		border-radius: 50%;
		background: rgba(255, 255, 255, .12);
		color: #fff;
		cursor: pointer;
		transition: background-color var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}

	.hv-reels__navbtn:hover { background: rgba(255, 255, 255, .24); }
	.hv-reels__navbtn:active { transform: scale(.94); }
	.hv-reels__navbtn[disabled] { opacity: .3; cursor: default; }
	.hv-reels__navbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
}

/* A low window (a small laptop, a phone on its side): tighter padding, smaller controls. */
@media (min-width: 700px) and (max-height: 620px) {
	.hv-reel { padding: 10px 0; }
	.hv-reel__rail { gap: 6px; }
	.hv-reel__act-icon { width: 44px; height: 44px; }
	.hv-reels__lead { display: none; }
}

/* ---------- 8. Sheets: comments, products, share ---------- */
.hv-reelsheet .hv-drawer__head {
	position: relative;
	justify-content: center;
	min-height: 56px;
	padding: 8px 56px;
}

.hv-reelsheet .hv-drawer__head .hv-iconbtn { position: absolute; right: 8px; top: 50%; margin-top: -22px; }
.hv-reelsheet__title { font: 700 1rem/1.2 var(--f-sans); letter-spacing: 0; }

@media (max-width: 767.98px) {
	/* Leaves the clip in view above the sheet and follows the keyboard (reels.js sets --hv-kb). */
	.hv-reelsheet--comments .hv-drawer__panel {
		bottom: var(--hv-kb, 0px);
		height: min(72dvh, 640px);
		max-height: calc(100dvh - var(--hv-kb, 0px) - 12px);
	}
}

.hv-reelc__list {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hv-reelc__item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.hv-reelc__item.is-reply { margin-left: 48px; }
.hv-reelc__item.is-new { animation: hv-reelc-in .45s var(--ease); }

.hv-reelc__avatar {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: hsl(var(--h, 28) 48% 89%);
	color: hsl(var(--h, 28) 32% 30%);
	font: 700 .9375rem/1 var(--f-sans);
	text-transform: uppercase;
}

.hv-reelc__avatar--brand { background: var(--c-sky); color: var(--c-ink); }

.hv-reelc__meta { font-size: .8125rem; line-height: 1.3; color: var(--c-ink-3); }
.hv-reelc__meta b { margin-right: 7px; color: var(--c-ink); font-weight: 700; }
.hv-reelc__brand { margin-right: 7px; padding: 2px 7px; border-radius: var(--r-pill); background: var(--c-sky); color: var(--c-sky-ink); font-size: .6875rem; font-weight: 700; }
.hv-reelc__badge { display: inline-block; margin-left: 7px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-sand); color: var(--c-ink-2); font-size: .6875rem; font-weight: 600; }
.hv-reelc__text { margin-top: 3px; font-size: .9375rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.hv-reelc__status { padding: 32px 0; text-align: center; color: var(--c-ink-2); }

.hv-reelc__skeleton { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.hv-reelc__skeleton .hv-skeleton:first-child { height: 36px; border-radius: 50%; }
.hv-reelc__skeleton .hv-skeleton:last-child { height: 40px; }

.hv-reelc__empty { display: grid; justify-items: center; gap: 6px; padding: 36px 12px 12px; text-align: center; }
.hv-reelc__empty[hidden] { display: none; }
.hv-reelc__empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: var(--c-sand); }
.hv-reelc__empty-title { font: 600 1.375rem/1.2 var(--f-serif); }

.hv-reelc__form { padding: 10px 14px calc(10px + var(--safe-b)); }

.hv-reelc__emoji { display: flex; justify-content: space-between; margin-bottom: 8px; }
.hv-reelc__emoji button { width: 42px; height: 40px; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform var(--t-fast); }
.hv-reelc__emoji button:active { transform: scale(1.3); }

.hv-reelc__who { margin: 0 4px 8px; font-size: .8125rem; color: var(--c-ink-3); }
.hv-reelc__who[hidden] { display: none; }
.hv-reelc__who button { color: var(--c-ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.hv-reelc__name { margin-bottom: 8px; }
.hv-reelc__name[hidden] { display: none; }
.hv-reelc__name .hv-input { min-height: 46px; padding-block: 10px; border-radius: 23px; background: var(--c-bg); }

.hv-reelc__row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 4px 4px 4px 16px;
	border: 1px solid var(--c-line);
	border-radius: 23px;
	background: var(--c-bg);
	transition: border-color var(--t-fast);
}

.hv-reelc__row:focus-within { border-color: var(--c-ink); }

.hv-reelc__row textarea {
	flex: 1;
	min-width: 0;
	max-height: 116px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--c-ink);
	font: 400 1rem/1.4 var(--f-sans);
	resize: none;
}

.hv-reelc__row textarea:focus { outline: none; }
.hv-reelc__row textarea::placeholder { color: var(--c-ink-3); }

.hv-reelc__send {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--c-ink);
	color: #fff;
	cursor: pointer;
	transition: opacity var(--t-fast), transform var(--t-fast);
}

.hv-reelc__send[disabled] { opacity: .28; cursor: default; }
.hv-reelc__send:not([disabled]):active { transform: scale(.9); }
.hv-reelc__form.is-sending .hv-reelc__send .hv-icon { animation: hv-reelc-fly .7s ease-in-out infinite; }

.hv-reelc__msg { margin-top: 8px; font-size: .75rem; line-height: 1.35; text-align: center; color: var(--c-ink-3); }
.hv-reelc__msg.is-error { color: var(--c-error); }
.hv-reelc__msg.is-ok { color: var(--c-success); font-weight: 600; }

/* Products of the clip. */
.hv-reelp__list { margin: -8px 0 0; padding: 0; list-style: none; }

.hv-reelp__item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--c-line);
}

.hv-reelp__item:last-child { border-bottom: 0; }
.hv-reelp__media { display: block; width: 64px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px; background: var(--c-sand); }
.hv-reelp__media img { width: 100%; height: 100%; object-fit: cover; }
.hv-reelp__name { display: block; font: 600 .9375rem/1.3 var(--f-sans); }
.hv-reelp__price { margin-top: 5px; font: 700 .9375rem/1.1 var(--f-sans); font-variant-numeric: lining-nums; }
.hv-reelp__price s { margin-left: 6px; font-weight: 500; font-size: .8125rem; color: var(--c-ink-3); }
.hv-reelp__item .hv-btn { padding: 0 18px; }

/* Share. */
.hv-reels-share__what { margin-bottom: 18px; font-size: .9375rem; line-height: 1.4; text-align: center; color: var(--c-ink-2); }
.hv-reels-share__grid { display: flex; justify-content: center; gap: 6px; }

.hv-reels-share__item {
	display: grid;
	gap: 8px;
	justify-items: center;
	flex: 1;
	max-width: 88px;
	padding: 4px 0;
	font: 600 .75rem/1.2 var(--f-sans);
	color: var(--c-ink);
	cursor: pointer;
}

.hv-reels-share__item[hidden] { display: none; }

.hv-reels-share__item span {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--c-sand);
	transition: background-color var(--t-fast), transform var(--t-fast);
}

.hv-reels-share__item:active span { transform: scale(.94); }
.hv-reels-share__link { margin-top: 20px; }
.hv-reels-share__link .hv-input { min-height: 46px; padding-block: 10px; font-size: .875rem; color: var(--c-ink-2); text-overflow: ellipsis; }

@media (hover: hover) {
	.hv-reels-share__item:hover span { background: var(--c-line); }
	.hv-reelp__name:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- 9. Motion ---------- */
@keyframes hv-reel-pop {
	0% { transform: scale(1); }
	28% { transform: scale(1.34); }
	55% { transform: scale(.88); }
	100% { transform: scale(1); }
}

@keyframes hv-reel-ring {
	0% { opacity: .9; transform: scale(.4); }
	100% { opacity: 0; transform: scale(1.5); }
}

@keyframes hv-reel-glint {
	0% { left: -70%; }
	100% { left: 130%; }
}

@keyframes hv-reel-peek {
	0%, 100% { transform: translateY(0); }
	34%, 58% { transform: translateY(-92px); }
}

@keyframes hv-reel-nudge {
	0%, 100% { transform: translateY(2px); }
	50% { transform: translateY(-3px); }
}

@keyframes hv-reelc-in {
	0% { opacity: 0; transform: translateY(-10px); }
	100% { opacity: 1; transform: none; }
}

@keyframes hv-reelc-fly {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
	.hv-reels.is-live .hv-reel__info > *,
	.hv-reels.is-live .hv-reel.is-active .hv-reel__info > * { transform: none; transition: opacity .2s; }
	.hv-reel.is-active .hv-reel__buy::after,
	.hv-reels__hint-icon,
	.hv-reels__feed.is-peeking .hv-reel.is-active + .hv-reel,
	.hv-reel__act--like.is-popping .hv-icon,
	.hv-reel__act--save.is-popping .hv-icon { animation: none; }
	.hv-reels__ambient span { transition: none; }
}
