/* Customer video testimonial cards — shared by the homepage row and the Reviews page.
   Each card shows a still picture; the YouTube player loads only on play (assets/js/voices.js). */
.am-voice { margin: 0; min-width: 0; list-style: none; }

.am-voice__play,
.am-voice__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	padding: 0;
	border-radius: var(--a-radius-m);
	overflow: hidden;
	background: var(--a-blue-900);
	cursor: pointer;
}
.am-voice__play img {
	width: 100%;
	height: 100%;
	object-fit: cover;      /* trims YouTube's black letterbox bars */
	display: block;
	transition: transform 600ms var(--a-ease-out);
}
.am-voice__play::before {   /* gentle shade so the play button always reads */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 6, 58, .45), rgba(0, 6, 58, 0) 55%);
	z-index: 1;
}
.am-voice__play::after {    /* play button */
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	z-index: 2;
	background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23c4121a'/%3E%3C/svg%3E") center / 30px no-repeat;
	box-shadow: 0 6px 20px rgba(0, 10, 82, .3);
	transition: transform 300ms var(--a-ease-out);
}
.am-voice__play:hover img { transform: scale(1.04); }
.am-voice__play:hover::after { transform: scale(1.08); }
.am-voice__play:active::after { transform: scale(.95); transition-duration: var(--a-press); }
.am-voice__play:focus-visible { outline: 3px solid var(--a-red-ink); outline-offset: 3px; }
.am-voice__frame { cursor: auto; }
.am-voice__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.am-voice__name { margin: 14px 0 2px; font-weight: 600; color: var(--a-ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.am-voice__meta { margin: 0; color: var(--a-muted); font-size: 14px; }

.am-voice__len {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(0, 6, 58, .78);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.3;
}

@media (max-width: 689px) {
	.am-voice__play::after { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}
@media (prefers-reduced-motion: reduce) {
	.am-voice__play img, .am-voice__play::after { transition: none; }
	.am-voice__play:hover img { transform: none; }
}
