: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;
}

body {
	background: var(--body-bg);
	color: var(--text-color);
	overflow-y: scroll;
	font-family: 'Inter', sans-serif;
	margin: 0;
}

.main-content {
	width: 1160px;
	margin: 0 auto;
	padding: 0 10px;
}

.slider-footer,
.slider-footer1 {
	display: flex;
	justify-content: center;
	margin: 20px 0 -20px 0;
	padding: 0;
}
.slider-footer2 {
	display: flex;
	justify-content: center;
	margin: -5px 0 -20px 0;
	padding: 0;
	z-index: 9999;
}

.view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--accent-color);
	color: var(--text-color);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: 0.25s;
}

.view-all-btn svg {
	stroke: var(--text-color);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.view-all-btn:hover {
	background: var(--accent-hover);
	transform: translateY(-2px) scale(1.03);
}

.hero-banner {
	position: relative;
	width: 100%;
	max-width: 1160px;
	height: 420px;
	margin: 25px auto;
	border-radius: 14px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	transition: none;
}

.hero-banner::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to top,
		var(--body-bg) 0%,
		rgba(0, 0, 0, 0.5) 40%,
		rgba(0, 0, 0, 0.2) 70%,
		rgba(0, 0, 0, 0) 100%
	);
	z-index: 10;
	pointer-events: none;
	opacity: 1;
	transition: height 1.2s ease, opacity 1.2s ease;
}

.hero-overlay {
	width: 100%;
	height: 100%;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.1) 0%,
		rgba(0, 0, 0, 0.9) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 40px;
}

.hero-content {
	position: relative;
	z-index: 20;
	transition: opacity 1s ease;
	color: var(--text-color);
	max-width: 600px;
	margin-bottom: 79px;
	margin-left: -7px;
}

.hero-content.fade-in {
	opacity: 1;
	transform: none;
	filter: none;
}
.hero-arrows,
.watch-btn {
	position: relative;
	z-index: 30;
}
.hero-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 14px;
	pointer-events: none;
	z-index: 10;

	background: radial-gradient(
		ellipse at center,
		rgba(0, 0, 0, 0) 100%,
		rgba(0, 0, 0, 0.3) 100%,
		rgba(0, 0, 0, 0.5) 100%
	);
}

.tag {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 13px;
	color: #dcdcdc;
	backdrop-filter: blur(6px);
}

.tag.age {
	background: rgba(255, 85, 85, 0.2);
	border-color: rgba(255, 85, 85, 0.4);
	color: #ff7b7b;
}

.tag.rating {
	background: rgba(255, 255, 100, 0.15);
	border-color: rgba(255, 255, 120, 0.4);
	color: #ffe37d;
}

.hero-content p {
	font-size: 15px;
	line-height: 1.5;
	color: var(--text-color);
}

.watch-btn {
	background: linear-gradient(90deg, #7b5cff, #5c8bff);
	border: none;
	border-radius: 12px;
	color: var(--text-color);
	padding: 14px 34px;
	left: 2%;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 0 15px rgba(123, 92, 255, 0.4);
	transition: all 0.25s ease;
}
.watch-btn:hover {
	background: var(--accent-hover);
}

.watch-btn:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 0 25px rgba(123, 92, 255, 0.7);
}

.watch-btn:active {
	transform: scale(0.98);
}

.hero-banner.fade {
	animation: fadeBg 0.8s ease forwards;
}
@keyframes fadeBg {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.hero-controls {
	position: relative;
	max-width: 1160px;
	margin: -60px auto 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 10px;
	z-index: 20;
}
.hero-controls .watch-btn {
	flex-shrink: 0;
}

.hero-controls .hero-arrows {
	display: flex;
	gap: 12px;
}

.hero-controls .arrow-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: all 0.25s ease;
}

.hero-controls .arrow-btn:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	transform: scale(1.08);
}

.hero-arrows {
	position: absolute;
	bottom: 7%;
	left: 88%;
	display: flex;
	gap: 12px;
	z-index: 5;
}
.arrow-btn {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(6px);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--text-color);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s ease;
}

.arrow-btn:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	transform: scale(1.08);
}

.arrow-btn svg {
	width: 20px;
	height: 20px;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-color);
	font-size: 26px;
	margin-left: -3%;
}
.section-title svg {
	flex-shrink: 0;
	margin-left: 2.4%;
}

.section-title1 {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-color);
	font-size: 26px;
	margin-top: -10px;
	max-width: 1160px;
	width: 1160px;
}
.section-title1 svg {
	flex-shrink: 0;
}

.anime-slider {
	background: var(--body-bg);
	padding: 20px;
	border-radius: 10px;
	height: 240px;
	margin-top: -18px;
	width: 1120px;
	max-width: 1120px;
}

.slider-inner {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 10px;
	max-width: 1190px;
	width: 1162px;
	margin-left: -21px;
}

.slider-inner::-webkit-scrollbar {
	height: 0;
}

.anime-card {
	width: 130px;
	flex-shrink: 0;
	position: relative;
}

.anime-card img {
	width: 100%;
	height: 180px;
	border-radius: 10px;
	object-fit: cover;
}

.episode-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.78);
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 12px;
	color: white;
}

.anime-card h3 {
	font-size: 14px;
	margin: 8px 0 2px;
	color: var(--text-color);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.anime-card p {
	font-size: 12px;
	margin-top: 7px;
	color: var(--text-color);
}

.genres-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 25px;
	margin-top: -30px;
	perspective: 1000px;
}

.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-end;
	text-align: center;
	transform-style: preserve-3d;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.genres-header h2 {
	font-size: 26px;
	margin-bottom: 50px;
	margin-top: -10px;
}
.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: 10px;
	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: 5%;
	transform: translateX(-50%) scale(1);
}

.genre-images img {
	width: 110px;
	height: 150px;
	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);
}

.genre-card h3 {
	color: var(--text-color);
	font-size: 16px;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: auto;
	text-align: center;
	z-index: 3;
	position: relative;
	transition: all 0.4s ease;
}

.genre-card:hover h3 {
	filter: blur(6px);
	opacity: 0;
	transform: translateY(30px) scale(0.9);
	z-index: 1;
}

.new-updates {
	background: var(--body-bg);
	padding: 25px 0;
	border-radius: 10px;
	width: 1184px;
	max-width: 1180px;
	margin: -25px auto 0 -10px;
}

.dates-list {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 20px;
	padding: 0 10px;
}

.date-btn {
	flex: 1;
	text-align: center;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--text-color);
	padding: 10px 0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.25s ease;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}

.date-btn:hover {
	border-color: var(--accent-color);
	color: var(--text-color);
	background: rgba(255, 255, 255, 0.08);
}

.date-btn.active {
	background: var(--accent-color);
	border-color: var(--accent-color);
	color: var(--text-color);
	box-shadow: 0 0 15px rgba(123, 92, 255, 0.5);
}

#updatesGrid {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 0 10px;
}

.update-card {
	width: 130px;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	padding: 0;
	position: relative;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.update-card img {
	width: 100%;
	height: 180px;
	border-radius: 10px;
	object-fit: cover;
	display: block;
}

.update-card .episode-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.78);
	padding: 3px 6px;
	border-radius: 6px;
	font-size: 12px;
	color: var(--text-color);
	z-index: 2;
}

.update-card .info {
	margin-top: 6px;
	width: 100%;
	text-align: center;
}

.update-card h4 {
	font-size: 14px;
	color: var(--text-color);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.update-card span {
	font-size: 14px;
	color: var(--text-color);
	margin-top: 2px;
}

.update-card.empty {
	width: 130px;
	height: 210px;
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-color);
	font-size: 12px;
}

@media (max-width: 1024px) {
	.main-content {
		width: 95%;
		padding: 0 15px;
	}

	.hero-banner {
		height: 350px;
	}

	.hero-content {
		max-width: 500px;
		margin-bottom: 50px;
		padding: 20px;
	}

	.anime-slider {
		width: 95%;
		height: 220px;
	}

	.slider-inner {
		width: 100%;
	}

	.anime-card {
		width: 120px;
	}

	.update-card {
		width: 120px;
	}

	.genres-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: 20px;
	}

	.genre-images img {
		width: 90px;
		height: 130px;
	}

	.genre-card {
		min-height: 140px;
		padding: 12px;
	}

	.section-title,
	.section-title1 {
		font-size: 22px;
	}
}

@media (max-width: 768px) {
	.main-content {
		width: 100%;
		padding: 0 10px;
	}

	.hero-banner {
		height: 280px;
	}

	.hero-content {
		max-width: 400px;
		margin-bottom: 40px;
		padding: 15px;
	}

	.anime-slider {
		width: 100%;
		height: 200px;
	}

	.anime-card {
		width: 100px;
	}

	.update-card {
		width: 100px;
	}

	.genres-grid {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 15px;
	}

	.genre-images img {
		width: 70px;
		height: 100px;
	}

	.genre-card {
		min-height: 120px;
		padding: 10px;
	}

	.section-title,
	.section-title1 {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.hero-banner {
		height: 200px;
		border-radius: 10px;
	}

	.hero-content {
		max-width: 90%;
		margin-bottom: 30px;
		padding: 10px;
	}

	.anime-slider {
		height: 160px;
		padding: 10px;
	}

	.anime-card {
		width: 90px;
	}

	.update-card {
		width: 90px;
	}

	.genres-grid {
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
		gap: 10px;
	}

	.genre-images img {
		width: 60px;
		height: 85px;
	}

	.genre-card {
		min-height: 100px;
		padding: 8px;
	}

	.section-title,
	.section-title1 {
		font-size: 18px;
		margin-left: 0;
	}

	.view-all-btn {
		padding: 6px 12px;
		font-size: 11px;
	}
}
