:root {
	--body-bg: #0a0a0a;
	--text-color: #fff;
	--hover-bg: rgba(255, 255, 255, 0.08);
	--accent-color: #5c34b4;
	--accent-hover: #7b5cff;
	--1: #2a2538;
	--back: #1a1a1a;
}

html {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
html::-webkit-scrollbar {
	display: none;
}

.collections-container {
	max-width: 1160px;
	margin: 40px auto;
	margin-top: -15px;
	width: 100%;
}

.filter-btn {
	background: var(--search);
	border: none;
	padding: 10px 24px;
	border-radius: 30px;
	color: var(--text-color);
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
	margin-top: -50px;
}
.filter-btn:hover {
	background: var(--accent-color);
}

.collections-header1 {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.header1-left {
	display: flex;
	flex-direction: column;
}
.search-input-wrapper {
	position: relative;
	margin-top: 20px;
}
.search-input-wrapper input {
	max-width: 1095px;
	width: 100%;
	background: var(--back);
	border: none;
	border-radius: 30px;
	padding: 12px 20px 12px 45px;
	color: var(--text-color);
	font-size: 14px;
	outline: none;
}
.search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--cont-name);
	pointer-events: none;
}

.collections-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 20px;
}

.genre-card {
	background: var(--back);
	border-radius: 16px;
	padding: 15px;
	position: relative;
	overflow: hidden;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	cursor: pointer;
	min-height: 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	transform-style: preserve-3d;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* --- Hover карточки --- */
.genre-card:hover {
	transform: translateY(-6px) scale(1.08);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* --- Изображения внутри карточки --- */
.genre-images {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 4px;
	position: absolute;
	bottom: -10%;
	left: 50%;
	transform: translateX(-50%) scale(0.8);
	transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	z-index: 2;
}
.genre-card:hover .genre-images {
	bottom: 1%;
	transform: translateX(-50%) scale(1);
}
.genre-images img {
	width: 90px;
	height: 125px;
	border-radius: 10px;
	object-fit: cover;
	transform: rotate(var(--angle, -8deg));
	transition: transform 0.4s ease, filter 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.genre-images img:nth-child(2) {
	--angle: 0deg;
}
.genre-images img:nth-child(3) {
	--angle: 8deg;
}
.genre-card:hover .genre-images img {
	transform: rotate(var(--angle, 0deg)) scale(1.1);
	filter: brightness(1.1);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.empty-card {
	width: 100px;
	height: 130px;
	border-radius: 10px;
	background: var(--back);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-color);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	transform: rotate(var(--angle, 0deg)) scale(0.8);
	transition: transform 0.4s ease, filter 0.3s ease, box-shadow 0.3s ease,
		background 0.3s ease;
}
.genre-card:hover .empty-card {
	transform: rotate(var(--angle, 0deg)) scale(1.1);
	filter: brightness(1.1);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
	background: rgba(92, 52, 180, 0.3);
}

.genre-card h3 {
	color: var(--text-color);
	font-size: 16px;
	text-transform: uppercase;
	font-weight: 700;
	margin-top: -1px;
	margin-bottom: 4px;
	text-align: center;
	z-index: 3;
	position: relative;
	transition: all 0.4s ease;
}

.genre-card .info {
	color: var(--text-color);
	font-size: 13px;
	text-align: center;
	position: relative;
	z-index: 3;
	margin-top: 2px;
	transition: all 0.4s ease;
}

.genre-card:hover h3,
.genre-card:hover .info {
	filter: blur(6px);
	opacity: 0;
	transform: translateY(30px) scale(0.9);
	z-index: 1;
}

@media (max-width: 1024px) {
	.collections-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.genre-card {
		min-height: 140px;
	}

	.genre-images img {
		width: 70px;
		height: 100px;
	}

	.empty-card {
		width: 80px;
		height: 110px;
	}
}

@media (max-width: 768px) {
	.collections-grid {
		grid-template-columns: 1fr;
		gap: 15px;
		padding: 0 20px;
	}

	.genre-card {
		min-height: 130px;
		padding: 10px;
	}

	.genre-images img {
		width: 60px;
		height: 85px;
	}

	.empty-card {
		width: 70px;
		height: 100px;
	}

	.genre-card h3 {
		font-size: 14px;
	}

	.genre-card .info {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.collections-container {
		margin: 20px 10px;
	}

	.filter-btn {
		padding: 8px 16px;
		font-size: 13px;
		margin-top: -40px;
	}

	.search-input-wrapper input {
		padding: 10px 15px 10px 35px;
		font-size: 13px;
	}

	.genre-card {
		min-height: 120px;
		padding: 8px;
	}

	.genre-images img {
		width: 50px;
		height: 70px;
	}

	.empty-card {
		width: 60px;
		height: 90px;
	}

	.genre-card h3 {
		font-size: 13px;
	}

	.genre-card .info {
		font-size: 11px;
	}
}
