/**
 * Video Testimonial Card — standalone styles
 */

.avt-video-card-wrap {
	width: 100%;
}

.avt-video-card {
	position: relative;
	border-radius: var(--avt-card-radius, 24px);
	overflow: hidden;
	min-height: 415px;
	background: #111827;
	isolation: isolate;
}

.avt-video-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
    display: flex;
	justify-content: center;
	align-items: center;
}

.avt-video-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
	will-change: transform;
}

.avt-video-card--zoom:hover .avt-video-card__image {
	transform: scale(1.08);
}

.avt-video-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.1) 0%,
		rgba(0, 0, 0, 0.25) 40%,
		rgba(0, 0, 0, 0.75) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.avt-video-card.is-playing .avt-play-btn {
	opacity: 0.85;
}

.avt-video-card__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 28px;
	max-width: 78%;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.avt-video-card__rating {
	margin-bottom: 12px;
}

.avt-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
}

.avt-star {
	display: block;
	flex-shrink: 0;
}

.avt-video-card__title {
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 12px;
}

.avt-video-card__name {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: #fff;
	margin: 0;
}

.avt-video-card__designation {
	font-size: 12px;
	line-height: 16px;
	color: rgba(255, 255, 255, 0.7);
	margin: 2px 0 0;
}

.avt-video-card__badge {
	position: absolute;
	right: 24px;
	bottom: 28px;
	z-index: 2;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.avt-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.avt-play-btn__ping,
.avt-play-btn__circle,
.avt-play-btn__icon {
	pointer-events: none;
}

.avt-play-btn__ping {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
	opacity: 0.35;
	animation: avt-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.avt-play-btn__circle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
	box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45);
}

.avt-play-btn__icon {
	margin-left: 3px;
}

.avt-play-btn:hover .avt-play-btn__circle {
	transform: scale(1.05);
	transition: transform 0.2s ease;
}

@keyframes avt-ping {
	0% {
		transform: scale(1);
		opacity: 0.35;
	}
	75%,
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

/* Video popup modal */
html.avt-video-modal-open {
	overflow: hidden;
}

.avt-video-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.avt-video-modal[hidden] {
	display: none !important;
}

.avt-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.avt-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.avt-video-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.avt-video-modal__close:hover {
	background: rgba(0, 0, 0, 0.85);
}

.avt-video-modal__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.avt-video-modal__player iframe,
.avt-video-modal__player video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #000;
}

.avt-video-modal__player video {
	object-fit: contain;
}

.avt-empty-notice {
	padding: 16px;
	background: #fef3c7;
	border-left: 4px solid #f59e0b;
	color: #92400e;
}

@media (max-width: 768px) {
	.avt-video-card {
		min-height: 320px;
		height: 320px;
	}

	.avt-video-card__content {
		max-width: 100%;
		padding: 20px;
	}

	.avt-video-card__badge {
		right: 16px;
		bottom: 16px;
		font-size: 10px;
		padding: 6px 10px;
	}
}