#themes.show {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	min-height: 100vh;
}

#themes.hide {
	display: none;
}

.theme-carousel-container {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin: 0 auto;
	padding: 2rem 0;
	background: transparent;
	overflow: hidden;
}

.theme-carousel {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 3rem;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
	justify-content: center;
}

.theme-card {
	position: relative;
	min-width: 340px;
	max-width: 400px;
	height: 240px;
	background-size: cover;
	background-position: center;
	border-radius: 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s, box-shadow 0.2s;
	background: #000;
}

.theme-card.zoomed {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(2.2);
	z-index: 1000;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s,
		z-index 0s;
	box-shadow: 0 12px 48px 8px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}
.theme-card.zoomed.faded {
	opacity: 0.2;
	filter: blur(6px);
}

.theme-card .theme-bg-video.fadeout {
	opacity: 0;
	transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-card .theme-bg-video {
	transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-bg-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	border-radius: 24px;
	pointer-events: none;
}

.theme-card:hover {
	transform: scale(1.08);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	z-index: 2;
}

.theme-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.5) 60%,
		rgba(0, 0, 0, 0.3) 100%
	);
	z-index: 1;
}

.theme-title {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: 2.4rem;
	font-weight: bold;
	text-align: center;
	text-shadow: 0 2px 12px #000, 0 0 8px #00f3ff;
	letter-spacing: 1px;
	width: 100%;
}

.theme-zoom-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: transparent;
	pointer-events: none;
}

.theme-zoom-card {
	position: absolute;
	top: 50%;
	max-width: none;
	left: 50%;
	width: 340px;
	height: 240px;
	transform: translate(-50%, -50%);
	border-radius: 24px;
	overflow: hidden;
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
		height 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s ease,
		opacity 0.4s ease, top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
		left 0.6s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-zoom-card.fullscreen {
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	transform: none;
	border-radius: 0;
}

.theme-zoom-card.faded {
	opacity: 0.15;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 64px;
	height: 64px;
	font-size: 2.8rem;
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px #000;
	user-select: none;
}

.carousel-arrow.left {
	left: 2vw;
}

.carousel-arrow.right {
	right: 2vw;
}

.carousel-arrow:focus {
	outline: 2px solid #00f3ff;
}

.carousel-arrow:hover {
	background: #00f3ff;
	color: #000;
}

.themes-footer {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 20;

	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);

	color: #fff;
	padding: 10px 14px;
	border-radius: 12px;

	font-size: 0.85rem;
	line-height: 1.4;

	display: flex;
	flex-direction: column;
	gap: 4px;

	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.themes-footer a {
	color: #00f3ff;
	text-decoration: none;
	font-weight: 500;
}

.themes-footer a:hover {
	text-decoration: underline;
}

.themes-footer-links {
	display: flex;
	align-items: center;
	gap: 6px;
}

.themes-footer .sep {
	opacity: 0.6;
}

@media screen and (max-width: 1200px) {
	.theme-card {
		min-width: 260px;
		max-width: 320px;
		height: 180px;
	}
	.theme-title {
		font-size: 2rem;
	}
	.carousel-arrow {
		width: 48px;
		height: 48px;
		font-size: 2rem;
	}
}

@media screen and (max-width: 900px) {
	.theme-card {
		min-width: 180px;
		max-width: 220px;
		height: 120px;
	}
	.theme-title {
		font-size: 1.2rem;
	}
	.carousel-arrow {
		width: 36px;
		height: 36px;
		font-size: 1.2rem;
	}
	.carousel-arrow.left {
		left: 0.5vw;
	}
	.carousel-arrow.right {
		right: 0.5vw;
	}
}

@media screen and (max-width: 600px) {
	.theme-carousel-container {
		padding: 0.5rem 0;
	}
	.theme-card {
		min-width: 120px;
		max-width: 150px;
		height: 80px;
	}
	.theme-title {
		font-size: 0.9rem;
	}
	.carousel-arrow {
		width: 28px;
		height: 28px;
		font-size: 1rem;
	}
}
