/**
 * Video testimonials — playlist-style player.
 *
 * Desktop: list on the left (slides open on scroll), big player on the right. Phone: player on top,
 * list as a swipeable row below. Selectors use two classes so page-builder img/button rules cannot win.
 */

.ki-vt {
	--ki-vt-list: 389px;
	position: relative;
	padding: 90px 24px 100px;
	background: #faf7f0;
}

.ki-vt__head {
	max-width: 760px;
	margin: 0 auto 56px;
	text-align: center;
}

.ki-vt .ki-vt__eyebrow {
	position: relative;
	display: inline-block;
	margin-bottom: 24px;
	padding-bottom: 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ki-color-ink, #353535);
}

.ki-vt__eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--ki-color-accent, #7cb8ae);
	opacity: 0.6;
}

.ki-vt__eyebrow::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	width: 52px;
	height: 4px;
	background: var(--ki-color-accent, #7cb8ae);
}

.ki-vt .ki-vt__heading {
	margin: 0;
	font-size: clamp(2rem, 3.6vw, 3.2rem);
	font-weight: 300;
	line-height: 1.14;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.ki-vt .ki-vt__heading strong {
	display: block;
	font-weight: 800;
}

.ki-vt .ki-vt__subtitle {
	margin: 20px auto 0;
	max-width: 640px;
	font-size: 1.05rem;
	line-height: 1.85;
	color: #555555;
}

/* ---------- Box ---------- */

.ki-vt__box {
	display: flex;
	align-items: stretch;
	max-width: 1240px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 18px 50px rgba(53, 53, 53, 0.12);
}

/* List column: the <ul> is absolutely placed so a long list scrolls instead of stretching the box. */
.ki-vt__listwrap {
	position: relative;
	flex: 0 0 var(--ki-vt-list);
	width: var(--ki-vt-list);
	background: #ffffff;
	border-right: 1px solid #eeeeee;
	transition: flex-basis 1s cubic-bezier(0.22, 1, 0.36, 1), width 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease 0.15s;
}

.ki-vt__list {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--ki-vt-list);
	height: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 20px;
	list-style: none;
	overflow-x: hidden;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	scrollbar-width: thin;
	scrollbar-color: var(--ki-color-accent, #7cb8ae) transparent;
}

/* Before the section is in view (JS only): list closed, player full width. */
.ki-vt--js:not(.is-open) .ki-vt__listwrap {
	flex-basis: 0;
	width: 0;
	opacity: 0;
	border-right-width: 0;
}

.ki-vt__li {
	position: relative;
	margin: 0;
	flex: none;
}

.ki-vt .ki-vt__li .ki-vt__item {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 10px 40px 10px 10px;
	border: 0;
	border-radius: 14px;
	background: #f4f1ea;
	text-align: left;
	cursor: pointer;
	color: #1a1a1a;
	transition: background-color 0.3s linear, color 0.3s linear, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ki-vt .ki-vt__li .ki-vt__item:hover,
.ki-vt .ki-vt__li .ki-vt__item:focus-visible {
	background: #e8f1ee;
	transform: translateX(3px);
}

.ki-vt .ki-vt__li .ki-vt__item.is-active {
	background: var(--ki-color-accent-deep, #146131);
	color: #ffffff;
	transform: none;
}

.ki-vt__thumb {
	position: relative;
	flex: none;
	width: 104px;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #1a1a1a;
}

.ki-vt .ki-vt__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ki-vt__thumb-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ki-vt__thumb-play svg {
	width: 18px;
	height: 18px;
}

.ki-vt__item:hover .ki-vt__thumb-play,
.ki-vt__item.is-active .ki-vt__thumb-play {
	opacity: 1;
}

.ki-vt__meta {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ki-vt__meta-head {
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.35;
}

.ki-vt__meta-name {
	font-size: 0.74rem;
	line-height: 1.4;
	opacity: 0.7;
}

/* ---------- Share / controls ---------- */

.ki-vt .ki-vt__share {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #555555;
	cursor: pointer;
	transition: background-color 0.3s linear, color 0.3s linear;
}

.ki-vt .ki-vt__share--list {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	color: #777777;
}

.ki-vt .ki-vt__share--list svg {
	width: 14px;
	height: 14px;
}

.ki-vt__li:has(.is-active) .ki-vt__share--list {
	color: #ffffff;
}

.ki-vt .ki-vt__share--list:hover,
.ki-vt .ki-vt__share--list:focus-visible {
	background: var(--ki-color-accent, #7cb8ae);
	color: #0f1412;
}

/* ---------- Player ---------- */

.ki-vt__player {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
	padding: 30px;
}

.ki-vt__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #0f1412;
}

.ki-vt__stage iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ki-vt .ki-vt__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #0f1412;
	cursor: pointer;
}

.ki-vt .ki-vt__poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ki-vt .ki-vt__poster:hover img {
	transform: scale(1.03);
}

.ki-vt__bigplay {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	border-radius: 50%;
	background: var(--ki-color-accent-deep, #146131);
	color: #ffffff;
	box-shadow: 0 0 0 0 rgba(124, 184, 174, 0.55);
	animation: ki-vt-pulse 2.4s ease-out infinite;
	transition: background-color 0.3s linear, color 0.3s linear;
}

.ki-vt__bigplay svg {
	width: 30px;
	height: 30px;
	margin-left: 3px;
}

.ki-vt__poster:hover .ki-vt__bigplay {
	background: var(--ki-color-accent, #7cb8ae);
	color: #0f1412;
}

@keyframes ki-vt-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(124, 184, 174, 0.55);
	}

	70%,
	100% {
		box-shadow: 0 0 0 26px rgba(124, 184, 174, 0);
	}
}

.ki-vt__info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid #eeeeee;
}

.ki-vt .ki-vt__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

.ki-vt .ki-vt__name {
	display: block;
	margin-top: 6px;
	font-size: 0.92rem;
	color: #666666;
}

.ki-vt__actions {
	display: flex;
	flex: none;
	gap: 10px;
}

.ki-vt .ki-vt__ctrl {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef5f2;
	color: var(--ki-color-accent-deep, #146131);
	cursor: pointer;
	transition: background-color 0.3s linear, color 0.3s linear;
}

.ki-vt .ki-vt__ctrl:hover,
.ki-vt .ki-vt__ctrl:focus-visible {
	background: var(--ki-color-accent-deep, #146131);
	color: #ffffff;
}

/* "Link copied" toast */
.ki-vt__toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	z-index: 1000001;
	padding: 12px 22px;
	border-radius: 999px;
	background: #1a1a1a;
	font-size: 0.85rem;
	color: #ffffff;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.ki-vt__toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- Tablet / phone ---------- */

@media (max-width: 900px) {
	.ki-vt {
		padding: 64px 16px 72px;
	}

	.ki-vt__box {
		flex-direction: column-reverse;
		border-radius: 18px;
	}

	.ki-vt__listwrap,
	.ki-vt--js:not(.is-open) .ki-vt__listwrap {
		flex: none;
		width: 100%;
		border-right: 0;
		border-top: 1px solid #eeeeee;
		opacity: 1;
		transition: none;
	}

	.ki-vt__list {
		position: static;
		width: 100%;
		height: auto;
		flex-direction: row;
		padding: 16px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
	}

	.ki-vt__li {
		flex: 0 0 min(78%, 300px);
		scroll-snap-align: start;
	}

	.ki-vt__player {
		padding: 16px;
		gap: 16px;
	}

	.ki-vt__bigplay {
		width: 64px;
		height: 64px;
		margin: -32px 0 0 -32px;
	}

	.ki-vt__info {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.ki-vt .ki-vt__title {
		font-size: 1.05rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ki-vt__listwrap,
	.ki-vt .ki-vt__li .ki-vt__item,
	.ki-vt .ki-vt__poster img,
	.ki-vt__toast {
		transition: none;
	}

	.ki-vt__bigplay {
		animation: none;
	}
}

/* ---------- Phone / tablet: tidy card strip under the player ---------- */
@media (max-width: 900px) {
	.ki-vt__li { flex: 0 0 min(64%, 230px); }
	.ki-vt .ki-vt__li .ki-vt__item { flex-direction: column; align-items: stretch; gap: 10px; height: 100%; padding: 10px 10px 14px; }
	.ki-vt .ki-vt__li .ki-vt__item:hover, .ki-vt .ki-vt__li .ki-vt__item:focus-visible { transform: none; }
	.ki-vt__thumb { width: 100%; }
	.ki-vt__meta { gap: 3px; padding: 0 4px; }
	.ki-vt__meta-head { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; }
	.ki-vt__meta-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .72rem; }
	.ki-vt .ki-vt__share--list { display: none; }
	.ki-vt__list { align-items: stretch; }
}
