/**
 * AshikhaSoft Video Carousel – frontend styles.
 */

.ahst-video-carousel {
	--ahst-video-bg: #0f172a;
	--ahst-video-border: #e5e7eb;
	--ahst-video-title: #111827;
	--ahst-video-desc: #6b7280;
	--ahst-video-play-bg: rgba(99, 102, 241, 0.92);
	--ahst-video-play-color: #ffffff;
	--ahst-video-aspect: 16 / 9;
	position: relative;
	width: 100%;
	padding: 0 48px;
	box-sizing: border-box;
}

.ahst-video-carousel *,
.ahst-video-carousel *::before,
.ahst-video-carousel *::after {
	box-sizing: border-box;
}

.ahst-video-carousel .swiper-slide {
	display: flex;
	height: auto;
}

.ahst-video {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

.ahst-video__media {
	aspect-ratio: var(--ahst-video-aspect);
	background: var(--ahst-video-bg);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.ahst-video__poster,
.ahst-video__player,
.ahst-video__embed-wrap iframe {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.ahst-video__poster--placeholder {
	background: linear-gradient(135deg, #1e293b, #334155);
	display: block;
	height: 100%;
	width: 100%;
}

.ahst-video__play {
	align-items: center;
	background: var(--ahst-video-play-bg);
	border: none;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
	color: var(--ahst-video-play-color);
	cursor: pointer;
	display: flex;
	height: 64px;
	justify-content: center;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 64px;
	z-index: 2;
}

.ahst-video__play:hover,
.ahst-video__play:focus-visible {
	box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
	outline: none;
	transform: translate(-50%, -50%) scale(1.06);
}

.ahst-video__embed-wrap {
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
	z-index: 3;
}

.ahst-video__embed-wrap iframe {
	border: 0;
}

.ahst-video__media.is-playing .ahst-video__poster,
.ahst-video__media.is-playing .ahst-video__play,
.ahst-video__media.is-playing .ahst-video__overlay-content {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.ahst-video__overlay-content {
	background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
	bottom: 0;
	color: #fff;
	left: 0;
	padding: 20px;
	position: absolute;
	right: 0;
	z-index: 1;
}

.ahst-video__content {
	padding: 14px 4px 0;
}

.ahst-video__title {
	color: var(--ahst-video-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 6px;
}

.ahst-video__desc {
	color: var(--ahst-video-desc);
	font-size: 14px;
	line-height: 1.6;
}

.ahst-video__desc p {
	margin: 0;
}

.ahst-video-carousel-empty {
	color: var(--ahst-video-desc);
	font-style: italic;
	text-align: center;
}

/* Layout: Card */
.ahst-video-carousel--card .ahst-video {
	background: #fff;
	border: 1px solid var(--ahst-video-border);
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	padding: 12px;
}

.ahst-video-carousel--card .ahst-video__content {
	padding: 12px 8px 4px;
}

/* Layout: Overlay */
.ahst-video-carousel--overlay .ahst-video__media {
	border-radius: 16px;
}

.ahst-video-carousel--overlay .ahst-video__title {
	color: #fff;
}

.ahst-video-carousel--overlay .ahst-video__desc {
	color: rgba(255, 255, 255, 0.85);
}

/* Layout: Minimal */
.ahst-video-carousel--minimal .ahst-video__media {
	border-radius: 8px;
}

.ahst-video-carousel--minimal .ahst-video__content {
	padding-top: 10px;
}

@media (max-width: 767px) {
	.ahst-video-carousel:not(.ahst-carousel--grid) {
		padding: 0 36px;
	}

	.ahst-video__play {
		height: 52px;
		width: 52px;
	}
}

@media (max-width: 480px) {
	.ahst-video-carousel:not(.ahst-carousel--grid) {
		padding: 0 8px;
	}
}
