/* ===== Главный баннер: одна скруглённая карточка во всю ширину (по макету) ===== */
.home-corousel {
	padding: 0 var(--page-gutter);
}

.carousel-container {
	position: relative;
	width: 100%;
	height: clamp(360px, 33.5vw, 680px);
	margin: 0 auto;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background: var(--surface-color);
	isolation: isolate;
}

.carousel {
	position: relative;
	width: 100%;
	height: 100%;
}

.carousel__item-wrap {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	transition: opacity .6s ease;
	pointer-events: none;
}

.carousel__item-wrap.active {
	opacity: 1;
	z-index: 3;
	pointer-events: auto;
}

/* Соседние слайды больше не выезжают сбоку — просто ждут своей очереди */
.carousel__item-wrap.left,
.carousel__item-wrap.right,
.carousel__item-wrap.left-out,
.carousel__item-wrap.right-out {
	opacity: 0;
	z-index: 1;
}

.carousel__item-container {
	position: absolute;
	inset: 0;
}

.carousel__item {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.preview-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	opacity: 1;
	transition: opacity 0.8s ease;
	pointer-events: none;
	object-fit: cover;
}

/* Затемнение снизу-слева, как в макете */
.carousel__effect {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: linear-gradient(15deg, rgba(0, 0, 0, .95) 8%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}

.carousel-content {
	position: absolute;
	left: clamp(24px, 3.5vw, 66px);
	bottom: clamp(24px, 3vw, 52px);
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: min(560px, 80%);
}

.release-title {
	font-size: clamp(1.8rem, 3vw, 3.2rem);
	font-weight: 800;
	line-height: 1.05;
	margin: 0;
	color: #fff;
	text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

.carousel-content__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.description__limiter {
	display: block;
	width: 100%;
}

.description__text {
	font-size: clamp(15px, 1.1vw, 21px);
	line-height: 1.4;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.carousel-content__btn {
	margin-top: 8px;
}

.carousel-progress-bar {
	width: 180px;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .15);
	overflow: hidden;
}

.carousel-progress {
	width: 0%;
	height: 100%;
	background-color: var(--text-color-emphasis);
}

/* ===== Стрелки ===== */
.carousel-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border: 1px solid var(--pill-border);
	border-radius: 50%;
	background: var(--pill-bg);
	backdrop-filter: blur(6px);
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease, background-color .2s ease;
}

.carousel-container:hover .carousel-button {
	opacity: 1;
}

.carousel-button:hover {
	background: var(--text-color-emphasis);
}

.carousel-button__icon {
	width: 10px;
	height: 20px;
	fill: #fff;
}

.carousel-button__icon_prev {
	transform: scaleX(-1);
}

.prev {
	left: 18px;
}

.next {
	right: 18px;
}

@media screen and (max-width: 768px) {
	.carousel-container {
		height: 70vw;
		min-height: 380px;
		border-radius: var(--radius-lg);
	}

	.carousel-content {
		width: auto;
		right: 20px;
		gap: 12px;
	}

	.description__text {
		-webkit-line-clamp: 2;
	}

	.carousel-button {
		display: none;
	}
}
