/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scrollbar-width: none;
}

*::-webkit-scrollbar {
	display: none;
}

html,
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: #121212;
	color: #fff;
	min-height: 100vh;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
}

ul,
li {
	list-style: none;
}

img {
	display: block;
	max-width: 100%;
}

/* Home */
.home {
	position: relative;
	padding-bottom: 80px;
	min-height: 100vh;
}

/* Header */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(0, 0, 0, 0);
	transition: background-color 0.1s linear;
}

.header .logo {
	width: 100px;
	height: auto;
}

.language-selector {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	position: relative;
}

.language-selector .arrow-icon {
	color: #fff;
}

.language-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #2a2a2a;
	border-radius: 8px;
	overflow: hidden;
	min-width: 150px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	z-index: 200;
}

.language-dropdown.show {
	display: block;
}

.language-option {
	padding: 12px 16px;
	cursor: pointer;
	transition: background 0.2s;
}

.language-option:hover {
	background: #3a3a3a;
}

.search-icon {
	cursor: pointer;
}

/* Swiper */
.swiper-container {
	position: relative;
	width: 100%;
	height: 465px;
	overflow: hidden;
}

.swiper-wrapper {
	display: flex;
	transition: transform 0.5s ease;
}

.swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 465px;
	position: relative;
}

.swiper-slide .background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.swiper-slide .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 10%, rgba(153, 153, 153, 0.1) 50%, rgba(0, 0, 0, 0.8) 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.swiper-slide .slide-title {
	color: #fff;
	font-size: 20px;
	font-weight: 900;
	text-align: center;
	width: 90%;
}

.swiper-slide .slide-intro {
	color: #d0d0d0;
	font-size: 16px;
	margin-top: 8px;
	width: 70%;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.swiper-slide .play-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding: 12px 32px;
	background: #ef4444;
	border-radius: 24px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: transform 0.2s, background 0.2s;
}

.swiper-slide .play-btn:hover {
	transform: scale(1.05);
	background: #dc2626;
}

.swiper-pagination {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.swiper-pagination .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: background 0.2s, width 0.2s;
}

.swiper-pagination .dot.active {
	background: #ef4444;
	width: 20px;
	border-radius: 4px;
}

/* Trending Section */
.trending {
	width: 100%;
	margin-top: 40px;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	margin-bottom: 20px;
}

.icon-tag {
	width: 12px;
	height: 12px;
	background: linear-gradient(135deg, #ef4444, #f97316);
	border-radius: 2px;
}

.title-text {
	font-family: 'Arial Black', sans-serif;
	font-size: 18px;
	font-weight: 900;
}

.photo-wall-wrapper {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
}

.photo-wall {
	display: grid;
	grid-template-rows: repeat(2, 210px);
	grid-auto-flow: column;
	gap: 24px;
	padding: 0 15px;
	width: max-content;
}

.photo-item {
	scroll-snap-align: center;
	width: 150px;
	height: 210px;
	overflow: hidden;
	border-radius: 12px;
	background-color: #2a2a2a;
	flex-shrink: 0;
	position: relative;
	cursor: pointer;
	transition: transform 0.2s;
}

.photo-item:hover {
	transform: scale(1.02);
}

.photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo-item-index {
	position: absolute;
	left: 0;
	top: 0;
	width: 34px;
	height: 34px;
	border-radius: 8px 0 8px 0;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	font-style: normal;
}

.photo-item:nth-child(1) .photo-item-index {
	background: linear-gradient(225deg, #ffc562 0%, #f46e00 86.46%);
}

.photo-item:nth-child(2) .photo-item-index {
	background: linear-gradient(225deg, #cbffd4 0%, #0dca43 86.46%);
}

.photo-item:nth-child(3) .photo-item-index {
	background: linear-gradient(225deg, #cbdeff 0%, #1289dd 86.46%);
}

/* Tag List */
.taglist {
	display: flex;
	gap: 10px;
	width: 100%;
	padding: 0 15px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	margin-top: 40px;
}

.taglist li {
	flex: 0 0 auto;
	scroll-snap-align: center;
	color: #fff;
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 16px;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.15);
	cursor: pointer;
	transition: background 0.2s;
}

.taglist li:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* Tag Box */
.tag-box {
	width: 100%;
	margin-top: 40px;
}

.tag-box .tag-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	margin-bottom: 20px;
}

.tag-box .tag-title .tag-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tag-box .tag-title .tag-name {
	font-family: 'Arial Black', sans-serif;
	font-size: 18px;
	font-weight: 900;
}

.tag-box .tag-title .more {
	font-size: 14px;
	color: #9ca3af;
	cursor: pointer;
}

.tag-box .tag-title .more:hover {
	color: #fff;
}

.tag-list {
	display: flex;
	align-items: flex-start;
	overflow-x: auto;
	gap: 12px;
	padding: 0 16px;
	-webkit-overflow-scrolling: touch;
}

.tag-list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 150px;
	flex-shrink: 0;
	gap: 8px;
	cursor: pointer;
}

.tag-list li:hover .tag-list-img {
	transform: scale(1.02);
}

.tag-list-img {
	width: 150px;
	height: 210px;
	border-radius: 12px;
	object-fit: cover;
	background: #2a2a2a;
	transition: transform 0.2s;
}

.tag-list-title {
	color: #fff;
	font-size: 14px;
	width: 100%;
	height: 42px;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.5;
}

/* Bottom Navigation */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-around;
	align-items: center;
	background: #1a1a1a;
	padding: 12px 0;
	border-top: 1px solid #2a2a2a;
	z-index: 100;
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: #9ca3af;
	font-size: 12px;
	cursor: pointer;
	transition: color 0.2s;
}

.nav-item.active {
	color: #ef4444;
}

.nav-item.active svg path {
	fill: #ef4444;
}

.nav-item:hover {
	color: #fff;
}

.nav-text {
	font-size: 12px;
}

/* Loading */
.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: #9ca3af;
}

.loading-spinner {
	width: 24px;
	height: 24px;
	border: 2px solid #2a2a2a;
	border-top-color: #ef4444;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 375px) {
	.swiper-container {
		height: 400px;
	}

	.swiper-slide {
		height: 400px;
	}

	.photo-item {
		width: 130px;
		height: 180px;
	}

	.photo-wall {
		grid-template-rows: repeat(2, 180px);
	}

	.tag-list li {
		width: 130px;
	}

	.tag-list-img {
		width: 130px;
		height: 180px;
	}
}
