/* ==========================================================================
   Kinotheatre — ТОП-10 (карусель с большими цифрами)
   ========================================================================== */

.kt-top10 {
	margin-bottom: calc(var(--kt-gap-lg) * 0.35);
}

.kt-top10__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
}

.kt-top10__title-mark {
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #fff;
	text-shadow:
		0 0 10px rgba(234, 51, 64, 0.35),
		0 0 18px rgba(157, 124, 255, 0.28);
}

.kt-top10__title-sub {
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	font-weight: 500;
	color: var(--kt-text-muted);
}

.kt-top10__track {
	counter-reset: kt-top10;
	align-items: stretch;
	gap: 4px;
	padding-block: 6px 10px;
}

.kt-top10-card {
	flex: 0 0 clamp(168px, 42vw, 204px);
	width: clamp(168px, 42vw, 204px);
	max-width: clamp(168px, 42vw, 204px);
	scroll-snap-align: start;
}

.kt-top10-card__box {
	position: relative;
}

.kt-top10-card__link {
	position: relative;
	display: block;
	color: #fff;
	text-decoration: none;
}

.kt-top10-card__rank {
	position: absolute;
	left: 0;
	bottom: 0;
	top: 0;
	z-index: 1;
	display: block;
	width: 52%;
	pointer-events: none;
}

.kt-top10-card__rank::before {
	counter-increment: kt-top10;
	content: counter(kt-top10);
	position: absolute;
	left: 0;
	bottom: 2px;
	font-size: clamp(4.6rem, 13vw, 7.4rem);
	font-weight: 900;
	font-style: italic;
	line-height: 0.82;
	letter-spacing: -0.04em;
	color: rgba(255, 255, 255, 0.92);
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
	text-shadow:
		0 0 14px rgba(157, 124, 255, 0.35),
		0 4px 18px rgba(0, 0, 0, 0.55);
}

.kt-top10-card:nth-child(10) .kt-top10-card__rank::before {
	font-size: clamp(3.8rem, 10.5vw, 6rem);
	letter-spacing: -0.06em;
}

.kt-top10-card__poster {
	position: relative;
	z-index: 2;
	width: clamp(112px, 28vw, 136px);
	aspect-ratio: 2 / 3;
	height: auto;
	margin-left: clamp(48px, 13vw, 58px);
	margin-right: 0;
	border-radius: var(--kt-radius-lg);
	overflow: hidden;
	background: var(--kt-bg-surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(157, 124, 255, 0.06);
	transition:
		transform var(--kt-transition),
		box-shadow var(--kt-transition),
		border-color var(--kt-transition);
}

.kt-top10-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kt-top10-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.88) 100%);
	pointer-events: none;
}

.kt-top10-card__name {
	position: absolute;
	right: 8px;
	bottom: 8px;
	left: 8px;
	z-index: 1;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.92);
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.kt-top10-card__link:hover .kt-top10-card__poster,
.kt-top10-card__link:focus-visible .kt-top10-card__poster {
	transform: translateY(-3px) scale(1.02);
	border-color: rgba(157, 124, 255, 0.35);
	box-shadow:
		0 14px 34px rgba(0, 0, 0, 0.5),
		0 0 22px rgba(157, 124, 255, 0.14);
}

.kt-top10-card__link:hover .kt-top10-card__rank::before,
.kt-top10-card__link:focus-visible .kt-top10-card__rank::before {
	color: #fff;
	text-shadow:
		0 0 16px rgba(234, 51, 64, 0.35),
		0 0 22px rgba(157, 124, 255, 0.42),
		0 4px 18px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) {
	.kt-top10__track {
		gap: 8px;
	}

	.kt-top10-card {
		flex-basis: 204px;
		width: 204px;
		max-width: 204px;
	}

	.kt-top10-card__poster {
		width: 136px;
		margin-left: 58px;
	}

	.kt-top10-card__name {
		font-size: 0.75rem;
	}
}

@media (hover: none) {
	.kt-top10-card__link:hover .kt-top10-card__poster,
	.kt-top10-card__link:focus-visible .kt-top10-card__poster {
		transform: none;
	}
}
