.tp-carousel {
	position: relative;
	padding: 0 56px;
}

.tp-carousel-viewport {
	overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
}

/*
 * No CSS scroll-snap here on purpose: combined with JS-driven
 * `scrollTo({behavior:'smooth'})`, Chromium's snap logic fights the
 * animation and reverts it back to the start position. Slides "snap"
 * instead via JS (closestSlideIndex + scrollToSlide) after drags and
 * on button/dot navigation.
 */

.tp-carousel-viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}

.tp-carousel-viewport::-webkit-scrollbar {
	display: none;
	height: 0;
}

.tp-carousel-track {
	display: flex;
	gap: 24px;
	padding: 24px 0 44px;
}

.tp-carousel-slide {
	flex: 0 0 auto;
	width: min(320px, 78vw);
}

.tp-carousel-card {
	display: block;
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	aspect-ratio: 3 / 4;
	transform: scale(0.9);
	opacity: 0.55;
	transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
	box-shadow: 0 10px 30px rgba(13, 20, 26, 0.1);
	background-color: #0d141a;
	-webkit-user-drag: none;
	user-select: none;
}

.tp-carousel-slide.is-active .tp-carousel-card,
.tp-carousel-card:hover,
.tp-carousel-card:focus-visible {
	transform: scale(1);
	opacity: 1;
	box-shadow: 0 24px 48px rgba(13, 20, 26, 0.28);
}

.tp-carousel-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	pointer-events: none;
}

.tp-carousel-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 20, 26, 0) 32%, rgba(13, 20, 26, 0.88) 100%);
}

.tp-carousel-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.tp-carousel-tag {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: var(--tp-primary, #61ce70);
	color: #0d141a;
	padding: 4px 10px;
	border-radius: 999px;
}

.tp-carousel-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}

.tp-carousel-duration {
	font-size: 0.85rem;
	opacity: 0.85;
}

.tp-carousel-cta {
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.tp-carousel-cta svg {
	width: 16px;
	height: 16px;
}

.tp-carousel-slide.is-active .tp-carousel-cta,
.tp-carousel-card:hover .tp-carousel-cta,
.tp-carousel-card:focus-visible .tp-carousel-cta {
	opacity: 1;
	transform: translateY(0);
}

.tp-carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
}

.tp-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 20px rgba(13, 20, 26, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #0d141a;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	z-index: 2;
}

.tp-carousel-arrow:hover {
	background: var(--tp-primary, #61ce70);
	transform: translateY(-50%) scale(1.08);
}

.tp-carousel-arrow svg {
	width: 20px;
	height: 20px;
}

.tp-carousel-prev {
	left: 0;
}

.tp-carousel-next {
	right: 0;
}

.tp-carousel-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.tp-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: rgba(13, 20, 26, 0.2);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.tp-carousel-dot.is-active {
	background: var(--tp-primary-dark, #3fa64d);
	width: 22px;
	border-radius: 999px;
}

@media (max-width: 640px) {
	.tp-carousel {
		padding: 0 8px;
	}

	.tp-carousel-arrow {
		width: 36px;
		height: 36px;
	}

	.tp-carousel-title {
		font-size: 1.1rem;
	}
}