/**
 * Левый сайдбар: категории и жанры (kinotarjima-sidebar-left).
 * В одном стиле с kinotarjima-news-sidebar.
 *
 * @package kinoTarjima
 */

.kinotarjima-sidebar-left {
	margin: 0;
	padding: 0;
}

.kinotarjima-sidebar-left__shell {
	background: linear-gradient(155deg, #2a3746 0%, #1e2a36 52%, #243240 100%);
	border-radius: 14px;
	border: 1px solid rgba(95, 134, 166, 0.35);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 8px 24px rgba(0, 0, 0, 0.35);
	padding: 14px 10px 12px;
	overflow: hidden;
}

.kinotarjima-sidebar-left__section {
	margin: 0 0 18px;
}

.kinotarjima-sidebar-left__section:last-of-type {
	margin-bottom: 12px;
}

.kinotarjima-sidebar-left__head {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(126, 184, 216, 0.22);
}

.kinotarjima-sidebar-left__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: #e8f4fc;
	text-align: center;
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.kinotarjima-sidebar-left__title--genres .kinotarjima-sidebar-left__title-icon {
	color: #f5b301;
	text-shadow: 0 0 18px rgba(245, 179, 1, 0.35);
}

.kinotarjima-sidebar-left__title-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(126, 184, 216, 0.3);
	color: #7dd3fc;
	font-size: 1rem;
}

.kinotarjima-sidebar-left__title--genres .kinotarjima-sidebar-left__title-icon {
	border-color: rgba(245, 179, 1, 0.35);
	background: rgba(245, 179, 1, 0.1);
}

.kinotarjima-sidebar-left__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kinotarjima-sidebar-left__item {
	margin: 0;
}

.kinotarjima-sidebar-left__link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 10px;
	text-decoration: none;
	color: #e4eef5;
	background: rgba(0, 0, 0, 0.22);
	border-radius: 11px;
	border: 1px solid rgba(95, 134, 166, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.15s ease;
}

.kinotarjima-sidebar-left__link:hover,
.kinotarjima-sidebar-left__link:focus {
	background: rgba(74, 109, 140, 0.28);
	border-color: rgba(126, 184, 216, 0.45);
	box-shadow:
		0 4px 14px rgba(0, 0, 0, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	outline: none;
}

.kinotarjima-sidebar-left__link:active {
	transform: scale(0.99);
}

.kinotarjima-sidebar-left__link--genre:hover,
.kinotarjima-sidebar-left__link--genre:focus {
	border-color: rgba(245, 179, 1, 0.4);
	background: rgba(245, 179, 1, 0.08);
}

.kinotarjima-sidebar-left__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(145deg, rgba(55, 78, 102, 0.9) 0%, rgba(35, 49, 63, 0.95) 100%);
	border: 1px solid rgba(126, 184, 216, 0.25);
	color: #9ecae8;
	font-size: 0.95rem;
}

.kinotarjima-sidebar-left__link--genre .kinotarjima-sidebar-left__icon {
	background: linear-gradient(145deg, rgba(90, 70, 30, 0.5) 0%, rgba(45, 38, 22, 0.85) 100%);
	border-color: rgba(245, 179, 1, 0.25);
	color: #ffd87a;
}

.kinotarjima-sidebar-left__icon--svg svg {
	display: block;
	vertical-align: middle;
}

.kinotarjima-sidebar-left__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
}

.kinotarjima-sidebar-left__count {
	flex-shrink: 0;
	min-width: 1.75rem;
	padding: 4px 9px;
	font-size: 0.72rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: #1a1f26;
	background: linear-gradient(180deg, #f5b301 0%, #e8a200 100%);
	border-radius: 999px;
	border: 1px solid rgba(255, 220, 140, 0.45);
	box-shadow: 0 2px 8px rgba(245, 179, 1, 0.3);
}

.kinotarjima-sidebar-left__count--genre {
	background: linear-gradient(180deg, rgba(126, 211, 252, 0.95) 0%, #5eb0e0 100%);
	border-color: rgba(180, 230, 255, 0.4);
	color: #0d1f2a;
	box-shadow: 0 2px 8px rgba(94, 176, 224, 0.25);
}

.kinotarjima-sidebar-left__catalog {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 4px;
	padding: 12px 14px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 800;
	font-size: 0.88rem;
	color: #f0f6fa;
	background: linear-gradient(180deg, #4a6d8c 0%, #3d5a73 100%);
	border: 1px solid rgba(126, 184, 216, 0.35);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	transition: filter 0.2s ease, transform 0.15s ease;
}

.kinotarjima-sidebar-left__catalog:hover,
.kinotarjima-sidebar-left__catalog:focus {
	filter: brightness(1.08);
	color: #fff;
	outline: none;
}

.kinotarjima-sidebar-left__catalog:active {
	transform: scale(0.98);
}

.kinotarjima-sidebar-left__catalog .fa-arrow-right-long {
	font-size: 0.85rem;
	opacity: 0.9;
}

/* Снизить конфликт с legacy: колонка без лишнего «второго» фона под оболочкой */
.main-content .main-navigation__left.kinotarjima-sidebar-left {
	background: transparent;
	padding-top: 0;
}

@media screen and (min-width: 1055px) {
	.kinotarjima-sidebar-left__shell {
		padding: 16px 12px 14px;
	}
}
