:root {
	--body-bg: #0a0a0a;
	--text-color: #fff;
	--hover-bg: rgba(255, 255, 255, 0.08);
	--accent-color: #5c34b4;
	--accent-hover: #7b5cff;
	--1: #2a2538;
}

html {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar {
	display: none;
}

.catalog-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 1160px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	align-items: stretch;
}
.filters-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 15px;
	justify-content: center;
	margin-top: -50px;
}

.dropdown-filter {
	position: relative;
}

.dropdown-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-width: 140px;
	max-width: 140px;
	padding: 12px 12px;
	border-radius: 10px;
	background: #191919;
	color: var(--text-color);
	border: 1px solid #2a253800;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dropdown-btn .text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.arrow {
	transition: transform 0.3s ease;
}

.dropdown-filter.active .arrow {
	transform: rotate(180deg);
}

.dropdown-content {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 8px;
	min-width: 100%;
	background: var(--body-bg);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	transform: translateY(0);
	opacity: 0;
	pointer-events: none;
	transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
	z-index: 100;
}

.dropdown-filter.active .dropdown-content {
	max-height: 300px;
	opacity: 1;
	pointer-events: auto;
}
.dropdown-content::-webkit-scrollbar {
	width: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
	background: var(--accent-color);
	border-radius: 2px;
}

.dropdown-content::-webkit-scrollbar-track {
	background: transparent;
}

.dropdown-content label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	font-size: 14px;
	color: var(--text-color);
	cursor: pointer;
	border-radius: 6px;
	transition: 0.2s;
}

.dropdown-content label:hover {
	background: rgba(123, 92, 255, 0.2);
}

.dropdown-content input[type='checkbox'] {
	display: none;
}

.checkmark {
	visibility: hidden;
	color: var(--accent-color);
	font-weight: bold;
}

.dropdown-content input[type='checkbox']:checked + .checkmark {
	visibility: visible;
}
.filter-label {
	margin-bottom: 10px;
}

.titles-container {
	width: 100%;
	background: var(--body-bg);
	border-radius: 10px;
	padding: 20px 0;
}

.titles-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.title-card {
	display: flex;
	flex-direction: column;
	background: #191919;
	border-radius: 10px;
	width: 100%;
	overflow: hidden;
	transition: transform 0.2s ease, background 0.2s;
}

.title-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.title-card h3 {
	font-size: 14px;
	margin: 8px 10px 2px;
	color: var(--text-color);
	margin-bottom: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tags {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin-top: 10px;
	justify-content: flex-start;
	align-items: flex-start;
	margin-left: 10px;
}

.tag.genre {
	background-color: #7b5cff;
}

.tag.type {
	background-color: #34b48f;
}

.tag.status {
	background-color: #ff7b5c;
}

.tag {
	color: var(--text-color);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
	cursor: pointer;
	display: inline-block;
}

@media screen and (max-width: 1200px) {
	.catalog-layout {
		width: 95%;
		padding: 0 10px;
	}

	.titles-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.title-card img {
		height: 180px;
	}
}

@media screen and (max-width: 992px) {
	.catalog-layout {
		width: 95%;
	}

	.titles-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.title-card img {
		height: 160px;
	}

	.dropdown-btn {
		min-width: 120px;
		max-width: 120px;
		padding: 10px;
		font-size: 13px;
	}

	.filters-bar {
		justify-content: flex-start;
		padding: 8px;
	}

	.tag {
		font-size: 10px;
		padding: 1px 4px;
	}
}

@media screen and (max-width: 768px) {
	.titles-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.title-card img {
		height: 140px;
	}

	.dropdown-btn {
		min-width: 100px;
		max-width: 100px;
		font-size: 12px;
		padding: 8px 10px;
	}

	.filters-bar {
		justify-content: center;
		gap: 8px;
	}

	.tag {
		font-size: 9px;
		padding: 1px 3px;
	}
}

@media screen and (max-width: 480px) {
	.titles-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.title-card img {
		height: 120px;
	}

	.dropdown-btn {
		min-width: 100%;
		max-width: 100%;
		font-size: 12px;
		padding: 8px 10px;
	}

	.filters-bar {
		flex-direction: column;
		gap: 6px;
		align-items: stretch;
		padding: 5px;
	}

	.tag {
		font-size: 9px;
		padding: 1px 2px;
		white-space: normal;
	}
}
