:root {
	--primary-color: #C2185B;
	--primary-dark: #AD1457;
	--primary-darker: #880E4F;
	--primary-light: #E91E63;
	--primary-lighter: #F48FB1;
	--accent-color: #6A1B9A;
	--accent-light: #9C27B0;
	--text-dark: #1a1a1a;
	--text-light: #666;
	--bg-light: #221522;
	--bg-secondary: #2f1f2f;
	--bg-white: #2a1a2a;
	--bg-card: rgba(42, 26, 42, 0.95);
	--border-color: rgba(194, 24, 91, 0.3);
	--shadow: rgba(194, 24, 91, 0.25);
	--text-dark: #f0f0f0;
	--text-light: #b0b0b0;
}


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
	height: -webkit-fill-available;
	background: linear-gradient(135deg, #221522 0%, #2f1f2f 50%, #221522 100%);
	background-attachment: fixed;
	/* 确保背景覆盖整个屏幕，顶部和底部使用 header/footer 的背景色 */
	background-color: rgba(42, 26, 42, 0.95);
	overflow-x: hidden;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-dark);
	background: linear-gradient(135deg, #221522 0%, #2f1f2f 50%, #221522 100%);
	background-attachment: fixed;
	position: relative;
	min-height: 100vh;
	min-height: -webkit-fill-available;
	/* 背景覆盖整个屏幕，包括安全区域 */
	margin: 0;
	padding: 0;
	/* 顶部和底部使用 header/footer 的背景色 */
	background-color: rgba(42, 26, 42, 0.95);
	/* 使用 flexbox 实现粘性 footer */
	display: flex;
	flex-direction: column;
}


body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* 覆盖安全区域 */
	top: calc(0px - env(safe-area-inset-top));
	bottom: calc(0px - env(safe-area-inset-bottom));
	left: calc(0px - env(safe-area-inset-left));
	right: calc(0px - env(safe-area-inset-right));
	background-image:
		radial-gradient(circle at 20% 30%, rgba(194, 24, 91, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 50% 50%, rgba(106, 27, 154, 0.1) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* 覆盖安全区域 */
	top: calc(0px - env(safe-area-inset-top));
	bottom: calc(0px - env(safe-area-inset-bottom));
	left: calc(0px - env(safe-area-inset-left));
	right: calc(0px - env(safe-area-inset-right));
	background-image:
		repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(194, 24, 91, 0.03) 2px, rgba(194, 24, 91, 0.03) 4px);
	pointer-events: none;
	z-index: 0;
}


.header,
.main-container,
.footer {
	position: relative;
	z-index: 1;
	/* 确保在 flex 布局中保持原有宽度 */
	width: 100%;
}

a {
	text-decoration: none;
	color: var(--primary-color);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--primary-dark);
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}


.header {
	background: rgba(42, 26, 42, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 2px solid var(--primary-color);
	padding: 12px 0;
	position: sticky;
	/* 在 PWA 模式下，header 从状态栏下方开始，避免内容被遮挡且不增加高度 */
	top: env(safe-area-inset-top, 0px);
	z-index: 1000;
	box-shadow: 0 2px 8px var(--shadow);
	/* 确保 header 在 flex 布局中保持自然高度 */
	flex-shrink: 0;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
}


.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.header-right-mobile {
	display: none;
}


.header-search-right {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
	justify-content: flex-end;
}

.logo {
	font-size: 26px;
	font-weight: 900;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 0 2px 4px rgba(194, 24, 91, 0.2);
}

.logo:hover {
	text-decoration: none;
	opacity: 0.9;
}

.nav-menu {
	display: flex;
	gap: 20px;
	align-items: center;
}

.nav-link {
	color: var(--text-dark);
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-size: 14px;
}

.nav-link:hover {
	color: var(--primary-color);
	background-color: rgba(194, 24, 91, 0.08);
	text-decoration: none;
}

.nav-link.active {
	color: var(--primary-color);
	background-color: rgba(194, 24, 91, 0.15);
	border-bottom: 2px solid var(--primary-color);
}

.header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.nav-link-user {
	color: var(--text-dark);
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-size: 14px;
	background: rgba(194, 24, 91, 0.1);
	border: 1px solid var(--border-color);
}

.nav-link-user:hover {
	color: var(--primary-color);
	background-color: rgba(194, 24, 91, 0.2);
	border-color: var(--primary-color);
	text-decoration: none;
}

.search-box {
	display: flex;
	align-items: center;
	flex: 1;
	max-width: 500px;
	min-width: 200px;
}

.search-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px 0 0 4px;
	font-size: 14px;
	outline: none;
}

.search-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.1);
}

.search-button {
	padding: 8px 16px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(194, 24, 91, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
}

.search-button svg {
	width: 20px;
	height: 20px;
	stroke-width: 2.5;
}

.search-button:hover {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 4px 8px rgba(194, 24, 91, 0.4);
	transform: translateY(-1px);
	text-decoration: none;
}


.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	/* 占据剩余空间，实现粘性 footer */
	flex: 1 0 auto;
	/* 确保宽度不受 flex 影响 */
	width: 100%;
	min-width: 0;
}


.tags-sidebar {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 20px;
	border-radius: 12px;
	margin-bottom: 24px;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 16px var(--shadow);
}

.tags-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.tags-title {
	font-size: 20px;
	font-weight: bold;
	color: var(--text-dark);
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.tags-title::before {
	content: '🔥';
	font-size: 24px;
}

.tags-more {
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.tags-more:hover {
	color: var(--primary-light);
	background-color: rgba(194, 24, 91, 0.1);
	text-decoration: none;
}

.tags-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	transition: max-height 0.3s ease;
}

.tags-list.tags-collapsed {
	position: relative;
}

.tags-list.tags-collapsed::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40px;
	background: linear-gradient(to bottom, transparent, var(--bg-card));
	pointer-events: none;
}

.tags-toggle {
	width: 100%;
	margin-top: 16px;
	padding: 10px;
	background: rgba(194, 24, 91, 0.15);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-dark);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tags-toggle:hover {
	background: rgba(194, 24, 91, 0.25);
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.tag-item {
	display: inline-block;
}

.tag-link {
	display: inline-block;
	padding: 10px 18px;
	background: rgba(194, 24, 91, 0.15);
	border: 1px solid var(--border-color);
	border-radius: 24px;
	color: var(--text-dark);
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.tag-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	transition: left 0.3s ease;
	z-index: -1;
}

.tag-link:hover {
	color: #fff;
	border-color: var(--primary-color);
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 6px 16px var(--shadow);
	text-decoration: none;
}

.tag-link:hover::before {
	left: 0;
}

.tag-link.active {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px var(--shadow);
}


.tags-page {
	max-width: 1200px;
	margin: 0 auto;
}

.tags-page .page-title {
	margin-bottom: 12px;
}

.tags-description {
	color: var(--text-light);
	font-size: 14px;
	margin-top: 0;
	margin-bottom: 30px;
	line-height: 1.6;
}

.tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 20px;
}

.tag-link-large {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 24px;
	min-width: 180px;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	color: var(--text-dark);
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.tag-link-large::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	transition: left 0.3s ease;
	z-index: -1;
}

.tag-link-large:hover {
	color: #fff;
	border-color: var(--primary-color);
	transform: translateY(-4px) scale(1.03);
	box-shadow: 0 8px 24px var(--shadow);
	text-decoration: none;
}

.tag-link-large:hover::before {
	left: 0;
}

.tag-name {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
	text-transform: capitalize;
}

.tag-count {
	font-size: 13px;
	opacity: 0.8;
	font-weight: 500;
}

.tag-link-large:hover .tag-count {
	opacity: 1;
}

@media (max-width: 768px) {
	.tags-container {
		gap: 12px;
		padding: 0 10px;
		justify-content: center;
	}

	.tag-link-large {
		min-width: 140px;
		padding: 16px 20px;
		flex: 0 1 calc(50% - 6px);
		max-width: calc(50% - 6px);
	}

	.tag-name {
		font-size: 16px;
	}

	.tags-page {
		padding: 0 10px;
	}
}


.videos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 30px;
	position: relative;
}

.videos-section {
	width: 100%;
}

@media (min-width: 768px) {
	.videos-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 20px;
	}
}

@media (min-width: 1024px) {
	.videos-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 24px;
	}
}


.video-card {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	border: 1px solid var(--border-color);
	position: relative;
}

.video-card:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 8px 24px var(--shadow);
	border-color: var(--primary-light);
}

.video-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.video-card:hover::before {
	opacity: 1;
}

.video-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
	overflow: hidden;
}

.video-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
	transform: scale(1.1);
}

.video-duration {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: linear-gradient(135deg, rgba(194, 24, 91, 0.95) 0%, rgba(233, 30, 99, 0.95) 100%);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-info {
	padding: 10px;
}

.video-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 8px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 42px;
	transition: color 0.2s ease;
}

.video-title:hover {
	color: var(--primary-color);
}

.video-description {
	font-size: 12px;
	color: var(--text-light);
	margin-bottom: 8px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	opacity: 0.8;
}

.video-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--text-light);
	margin-bottom: 5px;
	gap: 12px;
	flex-wrap: wrap;
}

.video-views {
	color: var(--text-light);
}

.video-upload-date {
	color: var(--text-light);
	opacity: 0.7;
}

.video-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 5px;
}

.video-tag {
	font-size: 11px;
	color: var(--primary-lighter);
	padding: 4px 8px;
	background: rgba(194, 24, 91, 0.2);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.video-tag:hover {
	background: rgba(194, 24, 91, 0.4);
	color: #fff;
	border-color: var(--primary-color);
	transform: translateY(-1px);
	text-decoration: none;
}


.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 30px 0;
	flex-wrap: wrap;
}

.pagination-button {
	padding: 8px 15px;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-dark);
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.pagination-button:hover:not(.disabled) {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border-color: var(--primary-color);
	box-shadow: 0 2px 8px var(--shadow);
	text-decoration: none;
}

.pagination-button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pagination-page {
	padding: 8px 12px;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-dark);
	font-size: 14px;
}

.pagination-page.active {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border-color: var(--primary-color);
	box-shadow: 0 2px 8px var(--shadow);
}


.video-detail-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 1024px) {
	.video-detail-container {
		grid-template-columns: 2fr 1fr;
	}
}

.video-player-section {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 20px;
	border-radius: 4px;
}

.video-player-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 20px;
}

.video-player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.video-detail-info {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 20px;
	border-radius: 4px;
}

.video-detail-title {
	font-size: 24px;
	font-weight: bold;
	color: var(--text-dark);
	margin-bottom: 15px;
	line-height: 1.3;
}

.video-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--border-color);
	font-size: 14px;
	color: var(--text-light);
}

.video-description {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--border-color);
}

.video-description p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-light);
	margin: 0;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.video-detail-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.action-button {
	padding: 8px 16px;
	background: rgba(194, 24, 91, 0.1);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-dark);
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.action-button:hover {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border-color: var(--primary-color);
	box-shadow: 0 2px 8px var(--shadow);
	text-decoration: none;
}

.video-detail-tags {
	margin-top: 20px;
}

.tags-title {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 10px;
	color: var(--text-dark);
}

.related-videos-section {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 20px;
	border-radius: 4px;
}

.related-videos-title {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 20px;
	color: var(--text-dark);
}

.related-videos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
}


.search-header {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 20px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.search-query {
	font-size: 18px;
	color: var(--text-dark);
	margin-bottom: 10px;
}

.search-results-count {
	font-size: 14px;
	color: var(--text-light);
}


.footer {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--border-color);
	padding: 30px 20px;
	margin-top: 50px;
	/* 确保 footer 在底部 */
	flex-shrink: 0;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin-bottom: 20px;
}

.footer-link {
	color: var(--text-light);
	font-size: 13px;
}

.footer-link:hover {
	color: var(--primary-color);
	text-decoration: none;
}

.footer-copyright {
	text-align: center;
	color: var(--text-light);
	font-size: 12px;
	margin-top: 20px;
}


@media (max-width: 768px) {
	.header-container {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.header-top {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.header-right-mobile {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.header-search-right {
		position: relative;
		width: auto;
		flex: 0 0 auto;
		margin-left: auto;
		display: none;
	}

	.header-right {
		display: none;
	}

	.nav-menu {
		position: relative;
	}


	.nav-menu .search-box {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		width: 0;
		min-width: 0;
		overflow: hidden;
		display: flex;
		align-items: center;
		background: var(--bg-card);
		backdrop-filter: blur(10px);
		border: 1px solid var(--border-color);
		border-radius: 4px;
		padding: 0;
		z-index: 1002;
		transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
			opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		opacity: 0;
		box-shadow: 0 4px 12px var(--shadow);
		pointer-events: none;
		height: 100%;
	}

	.nav-menu .search-box.search-box-expanded {
		width: 100%;
		padding: 8px 12px;
		opacity: 1;
		pointer-events: auto;
	}


	.nav-menu.search-expanded .nav-link,
	.nav-menu.search-expanded #userNav {
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}

	.nav-menu.search-expanded .search-icon-mobile {
		opacity: 0;
		pointer-events: none;
	}

	.search-box .search-input {
		flex: 1;
		min-width: 0;
		border: none;
		background: transparent;
		padding: 8px 12px;
		font-size: 14px;
		color: #fff;
		opacity: 0;
		transition: opacity 0.2s ease 0.15s;
	}

	.search-box .search-input::placeholder {
		color: rgba(255, 255, 255, 0.6);
	}

	.search-box.search-box-expanded .search-input {
		opacity: 1;
	}

	.search-box .search-button {
		flex-shrink: 0;
		padding: 8px 12px;
		margin-left: 8px;
		min-width: 40px;
	}

	.search-box .search-button svg {
		width: 18px;
		height: 18px;
	}

	.search-icon-mobile {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		background: rgba(194, 24, 91, 0.1);
		border: 1px solid var(--border-color);
		border-radius: 4px;
		color: var(--text-dark);
		cursor: pointer;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		padding: 0;
		margin-left: auto;
		flex-shrink: 0;
		position: relative;
		z-index: 1001;
	}

	.search-icon-mobile:hover {
		background: rgba(194, 24, 91, 0.2);
		border-color: var(--primary-color);
		color: var(--primary-color);
	}

	.search-icon-mobile.hidden {
		opacity: 0;
		transform: scale(0.8);
		pointer-events: none;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.search-close-mobile {
		display: none;
	}

	.search-box-expanded .search-close-mobile {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		background: transparent;
		border: none;
		color: var(--text-dark);
		cursor: pointer;
		padding: 0;
		margin-right: 8px;
		flex-shrink: 0;
		transition: color 0.2s ease;
	}

	.search-box-expanded .search-close-mobile:hover {
		color: var(--primary-color);
	}

	.nav-menu {
		width: 100%;
		flex-wrap: wrap;
		gap: 10px;
		position: relative;
		align-items: center;
		min-height: 36px;
	}


	.nav-menu .search-box {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		width: 0;
		min-width: 0;
		overflow: hidden;
		display: flex;
		align-items: center;
		background: var(--bg-card);
		backdrop-filter: blur(10px);
		border: 1px solid var(--border-color);
		border-radius: 4px;
		padding: 0;
		z-index: 1002;
		transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
			opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		opacity: 0;
		box-shadow: 0 4px 12px var(--shadow);
		pointer-events: none;
		height: 100%;
	}

	.nav-menu .search-box.search-box-expanded {
		width: 100%;
		padding: 8px 12px;
		opacity: 1;
		pointer-events: auto;
	}


	.nav-menu.search-expanded .nav-link,
	.nav-menu.search-expanded #userNav {
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}

	.nav-menu.search-expanded .search-icon-mobile {
		opacity: 0;
		pointer-events: none;
	}


	.header-search-right .search-box {
		position: static !important;
		display: flex !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		width: auto !important;
		height: auto !important;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		padding: 0 !important;
		overflow: visible !important;
		min-width: 200px !important;
		max-width: 500px !important;
	}

	.videos-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

	.video-detail-container {
		grid-template-columns: 1fr;
	}

	.video-detail-title {
		font-size: 20px;
	}
}


@media (min-width: 769px) {
	.header-container {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 20px;
	}

	.header-top {
		display: flex;
		align-items: center;
		gap: 20px;
		flex: 0 0 auto;
	}

	.header-right-mobile {
		display: none;
	}

	.nav-menu {
		flex: 0 0 auto;
		justify-self: start;
	}

	.search-icon-mobile {
		display: none;
	}

	.search-close-mobile {
		display: none;
	}

	.header-search-right {
		display: flex;
		align-items: center;
		gap: 15px;
		justify-self: end;
		flex: 0 1 auto;
		min-width: 0;
	}

	.search-box {
		display: flex;
		flex: 1;
		min-width: 200px;
		max-width: 500px;
	}


	.nav-menu .search-box {
		display: none !important;
	}
}


.loading {
	text-align: center;
	padding: 40px;
	color: var(--text-light);
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 200px;
}

/* 在 grid 容器中，让加载提示跨越所有列 */
.videos-grid > .loading,
.gallery-grid > .loading,
.manga-grid > .loading {
	grid-column: 1 / -1;
}

/* 在 flex 容器中，确保加载提示居中 */
.stories-list > .loading,
.tags-container > .loading {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}


.load-more-indicator {
	text-align: center;
	padding: 30px;
	margin-top: 20px;
}

.load-more-indicator .loading {
	padding: 20px;
}


.floating-upload-btn {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.4);
	z-index: 1000;
	transition: all 0.3s ease;
	text-decoration: none;
}

.floating-upload-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(194, 24, 91, 0.6);
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.floating-upload-btn:active {
	transform: scale(0.95);
}

@media (max-width: 768px) {
	.floating-upload-btn {
		bottom: 20px;
		right: 20px;
		width: 56px;
		height: 56px;
	}
}


.account-info {
	margin-bottom: 30px;
	padding: 20px;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

.account-info-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.account-info-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-light);
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.account-info-value {
	font-size: 18px;
	font-weight: 600;
	color: var(--primary-light);
	word-break: break-all;
}


.change-password-section {
	margin-bottom: 30px;
	padding: 25px;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

.change-password-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-color);
}

.change-password-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.account-actions {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
	display: flex;
	flex-direction: row;
	gap: 15px;
	flex-wrap: wrap;
}

.change-password-button {
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	text-align: center;
	display: inline-block;
	box-shadow: 0 2px 4px rgba(194, 24, 91, 0.3);
}

.change-password-button:hover {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 4px 8px rgba(194, 24, 91, 0.4);
	transform: translateY(-2px);
}

.change-password-button:active {
	transform: translateY(0);
}


.logout-button {
	padding: 12px 24px;
	background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
	white-space: nowrap;
}

.logout-button:hover {
	background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
	box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
	transform: translateY(-2px);
}

.logout-button:active {
	transform: translateY(0);
}


.gallery-detail-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

.gallery-detail-header {
	margin-bottom: 30px;
}

.gallery-detail-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 15px;
	line-height: 1.3;
}


.content-description {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-light);
	margin: 16px 0;
	padding: 16px;
	background: rgba(194, 24, 91, 0.08);
	border-left: 4px solid var(--primary-color);
	border-radius: 6px;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.gallery-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	color: var(--text-light);
	font-size: 14px;
}

.gallery-images-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
	margin-bottom: 40px;
}

.gallery-image-item {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
	background: var(--bg-card);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(194, 24, 91, 0.3);
}

.gallery-image-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-galleries-section {
	margin-top: 50px;
}

.related-galleries-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 20px;
}


.manga-detail-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.manga-detail-header {
	margin-bottom: 30px;
}

.manga-detail-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 15px;
	line-height: 1.3;
}

.manga-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	color: var(--text-light);
	font-size: 14px;
}

.manga-reader-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 20px;
	padding: 15px;
	background: var(--bg-card);
	border-radius: 8px;
}

.reader-button {
	padding: 10px 20px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.reader-button:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	transform: translateY(-2px);
}

.reader-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.reader-page-info {
	color: var(--text-light);
	font-size: 16px;
	font-weight: 600;
}

.manga-reader {
	margin-bottom: 40px;
	text-align: center;
	background: var(--bg-card);
	border-radius: 8px;
	padding: 20px;
}

.manga-page-image {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.related-manga-section {
	margin-top: 50px;
}

.related-manga-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 20px;
}


.story-detail-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
}

.story-detail-header {
	margin-bottom: 30px;
}

.story-detail-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 15px;
	line-height: 1.3;
}

.story-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	color: var(--text-light);
	font-size: 14px;
}

.story-content-wrapper {
	margin-bottom: 40px;
	background: var(--bg-card);
	border-radius: 8px;
	padding: 30px;
}

.story-content {
	color: var(--text-light);
	line-height: 1.8;
	font-size: 16px;
}

.story-paragraph {
	margin-bottom: 20px;
	text-align: justify;
}

.story-paragraph:last-child {
	margin-bottom: 0;
}

.related-stories-section {
	margin-top: 50px;
}

.related-stories-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.gallery-images-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 10px;
	}

	.manga-reader-controls {
		flex-direction: column;
		gap: 10px;
	}

	.reader-button {
		width: 100%;
	}

	.story-content-wrapper {
		padding: 20px;
	}

	.story-content {
		font-size: 14px;
	}
}

.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-light);
	width: 100%;
	grid-column: 1 / -1;
}

.empty-state-title {
	font-size: 20px;
	margin-bottom: 10px;
	color: var(--text-dark);
}

.empty-state-text {
	font-size: 14px;
}




.auth-container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 200px);
	padding: 40px 20px;
}

.auth-box {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 8px;
	padding: 40px;
	width: 100%;
	max-width: 450px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-title {
	font-size: 28px;
	font-weight: bold;
	color: var(--text-dark);
	margin-bottom: 30px;
	text-align: center;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.form-group:last-child {
	margin-bottom: 0;
}

.form-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-light);
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.form-label svg {
	opacity: 0.8;
	color: var(--primary-color);
}

.form-input {
	padding: 14px 16px;
	background: rgba(42, 26, 42, 0.6);
	border: 2px solid var(--border-color);
	border-radius: 8px;
	font-size: 15px;
	color: var(--text-light);
	outline: none;
	transition: all 0.3s ease;
	font-family: inherit;
}

.form-input select,
select.form-input {
	padding-right: 40px;
	cursor: pointer;
}

.form-input::placeholder {
	color: var(--text-light);
	opacity: 0.5;
}

.form-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.15);
	background: rgba(42, 26, 42, 0.8);
}

.form-input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.char-counter {
	font-size: 12px;
	color: var(--text-muted);
	text-align: right;
	margin-top: -8px;
	padding: 0 4px;
}

.char-counter.warning {
	color: #ff9800;
}

.char-counter.error {
	color: #f44336;
}

.tag-counter {
	font-size: 12px;
	color: var(--text-muted);
	text-align: right;
	margin-top: -8px;
	margin-bottom: 0;
	padding: 0 4px;
}

.tag-counter.warning {
	color: #ff9800;
}

.tag-counter.error {
	color: #f44336;
}

.form-textarea-large {
	min-height: 300px;
	resize: vertical;
	font-family: inherit;
	line-height: 1.6;
}


.chapters-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 16px;
}

.chapter-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border: 2px solid var(--border-color);
	border-radius: 12px;
	background: rgba(42, 26, 42, 0.3);
	transition: all 0.3s ease;
}

.chapter-item:hover {
	border-color: var(--primary-color);
	background: rgba(42, 26, 42, 0.4);
}

.chapter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.chapter-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-color);
}

.chapter-delete-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: rgba(244, 67, 54, 0.1);
	border: 2px solid rgba(244, 67, 54, 0.3);
	border-radius: 8px;
	color: #f44336;
	cursor: pointer;
	transition: all 0.3s ease;
}

.chapter-delete-btn:hover {
	background: rgba(244, 67, 54, 0.2);
	border-color: #f44336;
	transform: scale(1.05);
}

.chapter-delete-btn:active {
	transform: scale(0.95);
}

.chapter-delete-btn svg {
	width: 16px;
	height: 16px;
}

.chapter-content {
	width: 100%;
}

.chapter-char-counter {
	margin-top: -8px;
}

.add-chapter-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	background: rgba(194, 24, 91, 0.1);
	border: 2px dashed var(--primary-color);
	border-radius: 8px;
	color: var(--primary-color);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
}

.add-chapter-btn:hover {
	background: rgba(194, 24, 91, 0.2);
	border-color: var(--primary-light);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.2);
}

.add-chapter-btn:active {
	transform: translateY(0);
}

.add-chapter-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.add-chapter-btn:disabled:hover {
	background: rgba(194, 24, 91, 0.1);
	border-color: var(--primary-color);
	transform: none;
	box-shadow: none;
}

.add-chapter-btn svg {
	width: 18px;
	height: 18px;
}

.form-file {
	display: none;
}

.file-upload-wrapper {
	position: relative;
}

.file-upload-preview {
	border: 2px dashed var(--border-color);
	border-radius: 12px;
	padding: 40px 20px;
	text-align: center;
	background: rgba(194, 24, 91, 0.05);
	cursor: pointer;
	transition: all 0.3s ease;
	max-width: 100%;
	box-sizing: border-box;
}

.file-upload-preview:hover {
	border-color: var(--primary-color);
	background: rgba(194, 24, 91, 0.1);
	transform: translateY(-2px);
}

.file-upload-preview svg {
	color: var(--primary-color);
	opacity: 0.7;
	margin-bottom: 12px;
}

.file-upload-text {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-light);
	margin: 0 0 8px 0;
	word-break: break-word;
	overflow-wrap: break-word;
	word-wrap: break-word;
	max-width: 100%;
	padding: 0 10px;
	box-sizing: border-box;
}

.file-upload-hint {
	font-size: 13px;
	color: var(--text-light);
	opacity: 0.6;
	margin: 0;
	word-break: break-word;
	overflow-wrap: break-word;
	word-wrap: break-word;
	max-width: 100%;
	padding: 0 10px;
	box-sizing: border-box;
}


.thumbnail-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.thumbnail-option {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: 8px;
	border: 2px solid var(--border-color);
	background: rgba(42, 26, 42, 0.3);
	cursor: pointer;
	transition: all 0.3s ease;
}

.thumbnail-option:hover {
	border-color: var(--primary-color);
	background: rgba(194, 24, 91, 0.1);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.2);
}

.thumbnail-option:active {
	transform: translateY(0);
}

.thumbnail-option .form-label {
	cursor: pointer;
	transition: color 0.3s ease;
}

.thumbnail-option:hover .form-label {
	color: var(--primary-color);
}

.thumbnail-option:hover .form-label svg {
	opacity: 1;
	transform: scale(1.1);
}

.thumbnail-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 4px 0;
	position: relative;
}

.thumbnail-divider::before,
.thumbnail-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border-color);
}

.thumbnail-divider span {
	padding: 0 15px;
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.thumbnail-preview-wrapper {
	margin-top: 12px;
}

.thumbnail-preview {
	position: relative;
	display: inline-block;
	max-width: 150px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid var(--border-color);
}

.thumbnail-preview img {
	width: 100%;
	height: auto;
	display: block;
}

.thumbnail-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.thumbnail-remove:hover {
	background: rgba(244, 67, 54, 0.9);
	transform: scale(1.1);
}

.video-frame-selector {
	margin-top: 12px;
}

.video-frame-selector video {
	display: block;
	margin-bottom: 15px;
	max-width: 250px;
	width: 100%;
}

.frame-selector-controls {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.frame-select-btn {
	padding: 12px 24px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	align-self: flex-start;
}

.frame-select-btn:hover {
	background: var(--primary-light);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.3);
}

.frame-preview-wrapper {
	margin-top: 12px;
}

.frame-preview {
	position: relative;
	display: inline-block;
	max-width: 150px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid var(--border-color);
}

.frame-preview img {
	width: 100%;
	height: auto;
	display: block;
}

.frame-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.frame-remove:hover {
	background: rgba(244, 67, 54, 0.9);
	transform: scale(1.1);
}

@media (max-width: 768px) {

	.thumbnail-preview,
	.frame-preview {
		max-width: 100%;
	}

	.video-frame-selector video {
		max-width: 100%;
	}
}

.form-optional {
	color: var(--text-light);
	font-weight: normal;
	font-size: 12px;
}

.form-hint {
	font-size: 12px;
	color: var(--text-light);
	margin-top: 4px;
}

.code-input-group {
	display: flex;
	gap: 10px;
}

.code-input-group .form-input {
	flex: 1;
}

.code-button {
	padding: 12px 20px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px var(--shadow);
}

.code-button:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 4px 8px var(--shadow);
	transform: translateY(-1px);
}

.code-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.auth-button {
	padding: 14px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 10px;
	box-shadow: 0 4px 8px var(--shadow);
}

.auth-button:hover {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 6px 12px var(--shadow);
	transform: translateY(-2px);
}

.forgot-link {
	font-size: 13px;
	color: #0066cc;
	text-align: right;
}

.forgot-link:hover {
	text-decoration: underline;
}

.auth-footer {
	margin-top: 20px;
	text-align: center;
	font-size: 14px;
	color: var(--text-light);
}

.auth-footer a,
.auth-link {
	color: var(--primary-color);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.auth-footer a:hover,
.auth-link:hover {
	color: var(--primary-light);
	text-decoration: underline;
}

.error-message {
	background-color: #fee;
	color: #c33;
	padding: 12px;
	border-radius: 4px;
	font-size: 14px;
	border: 1px solid #fcc;
}

.success-message {
	background-color: #efe;
	color: #3c3;
	padding: 12px;
	border-radius: 4px;
	font-size: 14px;
	border: 1px solid #cfc;
}



.user-container {
	max-width: 1200px;
	margin: 0 auto;
}


.page-header {
	margin-bottom: 30px;
	text-align: center;
}

.page-title {
	font-size: 32px;
	font-weight: bold;
	color: var(--text-dark);
	margin-bottom: 30px;
}

.user-section {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.section-title {
	font-size: 20px;
	font-weight: bold;
	color: var(--text-dark);
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--border-color);
}

.points-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	background: rgba(194, 24, 91, 0.08);
	border-radius: 8px;
}

.points-value {
	font-size: 36px;
	font-weight: bold;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.points-link {
	color: var(--primary-color);
	font-weight: 600;
}

.uploads-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.upload-type-section {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}

.upload-type-section:last-child {
	border-bottom: none;
}

.upload-type-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.upload-type-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.upload-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

.upload-item:hover {
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.2);
	transform: translateX(4px);
}

.upload-item-main {
	width: 100%;
}

.upload-info {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
}

.upload-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 10px;
	line-height: 1.4;
}

.upload-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 12px;
}

.upload-type-badge {
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.upload-type-video {
	background: linear-gradient(135deg, rgba(194, 24, 91, 0.2) 0%, rgba(194, 24, 91, 0.1) 100%);
	color: var(--primary-light);
	border: 1px solid rgba(194, 24, 91, 0.3);
}

.upload-type-gallery {
	background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
	color: #64b5f6;
	border: 1px solid rgba(33, 150, 243, 0.3);
}

.upload-type-manga {
	background: linear-gradient(135deg, rgba(156, 39, 176, 0.2) 0%, rgba(156, 39, 176, 0.1) 100%);
	color: #ba68c8;
	border: 1px solid rgba(156, 39, 176, 0.3);
}

.upload-type-story {
	background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
	color: #ffb74d;
	border: 1px solid rgba(255, 152, 0, 0.3);
}


.section-header-with-more {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--border-color);
}

.section-header-with-more .section-title {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.more-link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.more-link:hover {
	color: var(--primary-light);
	gap: 8px;
}

.more-link svg {
	transition: transform 0.3s ease;
}

.more-link:hover svg {
	transform: translateX(2px);
}

.history-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.history-list-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 12px;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
}

.history-list-item:hover {
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.15);
	transform: translateX(4px);
}

.history-item-thumbnail {
	position: relative;
	flex-shrink: 0;
	width: 120px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--bg-secondary);
}

.history-item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.history-item-type-icon {
	position: absolute;
	top: 6px;
	left: 6px;
	font-size: 18px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	padding: 2px 6px;
	border-radius: 4px;
}

.history-item-content {
	flex: 1;
	min-width: 0;
}

.history-item-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 8px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.history-item-description {
	font-size: 13px;
	color: var(--text-light);
	margin-bottom: 8px;
	line-height: 1.5;
	opacity: 0.8;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.history-item-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--text-muted);
}

.history-item-badge {
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
}

.history-item-info {
	color: var(--text-muted);
}

.history-list-item-upload {
	cursor: default;
}

.history-list-item-upload:hover {
	transform: none;
	border-color: var(--border-color);
	box-shadow: none;
}


.page-header {
	margin-bottom: 30px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.back-link:hover {
	color: var(--primary-light);
	gap: 10px;
}

.back-link svg {
	transition: transform 0.3s ease;
}

.back-link:hover svg {
	transform: translateX(-2px);
}

.upload-points {
	color: var(--primary-light);
	font-weight: 600;
	font-size: 12px;
}

.upload-status {
	padding: 4px 10px;
	border-radius: 4px;
	font-weight: 600;
	text-transform: capitalize;
}

.upload-status.Pending {
	background: rgba(255, 152, 0, 0.2);
	color: #ffb74d;
	border: 1px solid rgba(255, 152, 0, 0.3);
}

.upload-status.Approved {
	background: rgba(76, 175, 80, 0.2);
	color: #81c784;
	border: 1px solid rgba(76, 175, 80, 0.3);
}

.upload-status.Rejected {
	background: rgba(244, 67, 54, 0.2);
	color: #e57373;
	border: 1px solid rgba(244, 67, 54, 0.3);
}

.upload-date {
	color: var(--text-light);
	opacity: 0.7;
}

.status-pending {
	background-color: #fff3cd;
	color: #856404;
}

.status-approved {
	background-color: #d4edda;
	color: #155724;
}

.upload-date {
	font-size: 14px;
	color: var(--text-light);
}

.invites-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.invite-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	background: rgba(194, 24, 91, 0.08);
	border-radius: 4px;
}

.invite-email {
	font-weight: 500;
	color: var(--text-dark);
}

.invite-date {
	font-size: 13px;
	color: #b0b0b0;
}

.invite-reward {
	font-weight: 500;
	color: #28a745;
}

.empty-text {
	color: var(--text-light);
	text-align: center;
	padding: 20px;
}



.points-container {
	max-width: 1200px;
	margin: 0 auto;
}

.points-section {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.points-card {
	text-align: center;
	padding: 40px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
	border-radius: 12px;
	color: #fff;
	box-shadow: 0 8px 24px var(--shadow);
}

.points-card-title {
	font-size: 18px;
	margin-bottom: 15px;
	opacity: 0.9;
}

.points-card-value {
	font-size: 48px;
	font-weight: bold;
	margin-bottom: 10px;
}

.points-card-hint {
	font-size: 14px;
	opacity: 0.9;
}

.points-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.points-method {
	padding: 25px;
	background: rgba(194, 24, 91, 0.08);
	border-radius: 8px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}

.points-method:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.method-icon {
	font-size: 48px;
	margin-bottom: 15px;
}

.method-title {
	font-size: 20px;
	font-weight: bold;
	color: var(--text-dark);
	margin-bottom: 10px;
}

.method-desc {
	font-size: 14px;
	color: var(--text-light);
	margin-bottom: 15px;
}

.method-reward {
	font-size: 18px;
	font-weight: bold;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 15px;
}

.method-button {
	padding: 12px 20px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
	box-shadow: 0 2px 4px var(--shadow);
}

.method-button:hover {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 4px 8px var(--shadow);
	transform: translateY(-2px);
}

.invite-code-box {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 15px;
}

.invite-code-section {
	margin-top: 20px;
}

.invite-code-display {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border: 2px solid var(--primary-color);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.2);
	transition: all 0.3s ease;
	margin-bottom: 15px;
}

.invite-code-display:hover {
	border-color: var(--primary-light);
	box-shadow: 0 6px 20px rgba(194, 24, 91, 0.3);
	transform: translateY(-2px);
}

.invite-code-text {
	flex: 1;
	font-size: 24px;
	font-weight: 700;
	font-family: 'Courier New', monospace;
	color: var(--primary-light);
	letter-spacing: 3px;
	text-align: center;
	padding: 12px 20px;
	background: linear-gradient(135deg, rgba(194, 24, 91, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
	border-radius: 8px;
	border: 1px solid rgba(194, 24, 91, 0.3);
	user-select: all;
	cursor: text;
}

.invite-code-copy {
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(194, 24, 91, 0.3);
	display: flex;
	align-items: center;
	gap: 8px;
}

.invite-code-copy:hover {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 6px 12px rgba(194, 24, 91, 0.4);
	transform: translateY(-2px);
}

.invite-code-copy:active {
	transform: translateY(0);
}

.invite-code-copy::before {
	content: '';
}

.invite-code-hint {
	font-size: 14px;
	color: var(--text-light);
	line-height: 1.6;
	text-align: center;
	padding: 15px;
	background: rgba(194, 24, 91, 0.05);
	border-radius: 8px;
	border-left: 3px solid var(--primary-color);
	margin: 0;
}

.content-type-badge {
	display: inline-block;
	padding: 10px 20px;
	background: linear-gradient(135deg, rgba(194, 24, 91, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
	border: 2px solid var(--primary-color);
	border-radius: 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--primary-light);
	text-align: center;
}



.about-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px;
}

.about-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 30px;
	text-align: center;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.about-content {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 40px;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.about-content p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-light);
	margin-bottom: 20px;
	text-align: justify;
}

.about-content p:last-child {
	margin-bottom: 0;
}

.about-content h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-light);
	margin-top: 30px;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-color);
}

.about-content h2:first-of-type {
	margin-top: 0;
}

.about-content ul {
	margin: 20px 0;
	padding-left: 30px;
}

.about-content li {
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-light);
	margin-bottom: 12px;
}

.about-content li:last-child {
	margin-bottom: 0;
}

.about-content strong {
	color: var(--primary-light);
	font-weight: 600;
}

@media (max-width: 768px) {
	.about-container {
		padding: 20px 15px;
	}

	.about-title {
		font-size: 28px;
		margin-bottom: 20px;
	}

	.about-content {
		padding: 25px 20px;
	}

	.about-content p {
		font-size: 15px;
		line-height: 1.7;
	}

	.about-content h2 {
		font-size: 20px;
		margin-top: 25px;
		margin-bottom: 12px;
	}

	.about-content ul {
		padding-left: 25px;
	}

	.about-content li {
		font-size: 15px;
		line-height: 1.7;
		margin-bottom: 10px;
	}
}

.copy-button {
	padding: 15px 25px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px var(--shadow);
}

.copy-button:hover {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 4px 8px var(--shadow);
	transform: translateY(-2px);
}

.invite-hint {
	font-size: 13px;
	color: var(--text-light);
	text-align: center;
}

.points-history {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.points-history-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	background: rgba(194, 24, 91, 0.08);
	border-radius: 4px;
	transition: all 0.3s ease;
	gap: 12px;
}

.points-history-item:hover {
	transform: translateX(2px);
}

.history-item-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.points-history-item .history-item-type {
	font-weight: 500;
	color: var(--text-light);
	font-size: 15px;
	flex: 1;
}

.points-history-item .history-item-date {
	font-size: 13px;
	color: #b0b0b0;
	flex: 1;
	text-align: center;
}

.points-history-item .history-item-amount {
	flex: 1;
	text-align: right;
}

.history-item-amount {
	font-size: 18px;
	font-weight: bold;
	white-space: nowrap;
}

.history-item-amount.positive {
	color: #28a745;
}

.history-item-amount.negative {
	color: #dc3545;
}

.history-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: rgba(194, 24, 91, 0.08);
	border-radius: 4px;
}

.history-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.history-reason {
	font-weight: 500;
	color: var(--text-dark);
}

.history-date {
	font-size: 12px;
	color: var(--text-light);
}

.history-amount {
	font-size: 18px;
	font-weight: bold;
}

.amount-positive {
	color: #28a745;
}

.amount-negative {
	color: #dc3545;
}



.upload-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
}

.upload-header {
	text-align: center;
	margin-bottom: 40px;
}

.upload-page-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--text-light);
	margin: 0 0 10px 0;
	background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.upload-page-subtitle {
	font-size: 16px;
	color: var(--text-light);
	opacity: 0.7;
	margin: 0;
}

.upload-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.upload-section {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 24px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	margin-bottom: 24px;
}

.upload-section:last-of-type {
	margin-bottom: 0;
}

.upload-section:hover {
	box-shadow: 0 6px 20px rgba(194, 24, 91, 0.15);
	border-color: rgba(194, 24, 91, 0.3);
}

.section-header {
	margin-bottom: 16px;
	padding-bottom: 0;
}

.section-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-light);
	margin: 0 0 8px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-description {
	font-size: 13px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.5;
}

.content-type-badge-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 10px;
}

.content-type-badge {
	display: inline-block;
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border-radius: 24px;
	font-size: 16px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.3);
}

.tag-input-wrapper {
	position: relative;
	border-bottom: none;
}

.tag-input {
	width: 100%;
}

.tag-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	margin-top: 5px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 10;
	box-shadow: 0 8px 24px var(--shadow);
	display: block;
}

.tag-suggestions:empty {
	display: none;
}

.tag-suggestion {
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.tag-suggestion:hover {
	background: rgba(194, 24, 91, 0.2);
	color: var(--primary-lighter);
}

.tag-suggestion-new {
	color: var(--primary-color);
	font-weight: 600;
}

.selected-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-top: none !important;
	border-bottom: none;
}

.selected-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 2px 4px var(--shadow);
}

.tag-remove {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s;
}

.tag-remove:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.popular-tags {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--border-color);
}

.popular-tags-label {
	font-size: 13px;
	color: var(--text-light);
	margin-right: 10px;
}

.popular-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.popular-tag {
	padding: 8px 16px;
	background: rgba(194, 24, 91, 0.15);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-dark);
	cursor: pointer;
	transition: all 0.3s ease;
}

.popular-tag:hover {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 2px 4px var(--shadow);
}

.upload-messages {
	margin-bottom: 12px;
}

.upload-actions {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid var(--border-color);
	display: flex;
	justify-content: center;
	align-items: center;
}

.upload-button {
	padding: 16px 48px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 200px;
}

.upload-button:hover {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 6px 20px rgba(194, 24, 91, 0.4);
	transform: translateY(-2px);
}

.upload-button:active {
	transform: translateY(0);
}

.upload-button svg {
	width: 20px;
	height: 20px;
}


@media (max-width: 768px) {
	.upload-actions {
		margin-top: 16px;
		padding-top: 16px;
	}

	.upload-button {
		padding: 14px 32px;
		font-size: 16px;
		min-width: 180px;
		width: 100%;
		max-width: 300px;
	}

	.file-upload-preview {
		padding: 30px 15px;
	}

	.file-upload-text {
		font-size: 14px;
		padding: 0 5px;
	}

	.file-upload-hint {
		font-size: 12px;
		padding: 0 5px;
	}
}



.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.upload-type-modal {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 0;
	max-width: 800px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 30px;
	border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-light);
	margin: 0;
}

.modal-close {
	background: none;
	border: none;
	color: var(--text-light);
	font-size: 32px;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
	opacity: 0.7;
}

.modal-close:hover {
	opacity: 1;
	background: rgba(194, 24, 91, 0.1);
	color: var(--primary-light);
}

.upload-type-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
	padding: 30px;
}

.upload-type-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 20px;
	background: rgba(194, 24, 91, 0.05);
	border: 2px solid var(--border-color);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.upload-type-option:hover {
	border-color: var(--primary-color);
	background: rgba(194, 24, 91, 0.1);
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(194, 24, 91, 0.3);
}

.type-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.upload-type-option h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-light);
	margin: 0 0 8px 0;
}

.upload-type-option p {
	font-size: 14px;
	color: var(--text-light);
	opacity: 0.7;
	margin: 0 0 12px 0;
	text-align: center;
}

.type-points {
	font-size: 16px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-top: auto;
}

@media (max-width: 768px) {
	.upload-type-modal {
		width: 95%;
		max-height: 85vh;
	}

	.upload-type-options {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
		padding: 20px;
	}

	.upload-type-option {
		padding: 20px 15px;
	}

	.type-icon {
		font-size: 40px;
	}

	.upload-type-option h3 {
		font-size: 18px;
	}

	.modal-header {
		padding: 20px;
	}

	.modal-header h2 {
		font-size: 20px;
	}
}



.unlock-modal {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.unlock-modal-content {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 30px;
	border-radius: 8px;
	max-width: 400px;
	width: 90%;
	position: relative;
	text-align: center;
}

.unlock-title {
	font-size: 24px;
	font-weight: bold;
	color: var(--text-dark);
	margin-bottom: 15px;
}

.unlock-text {
	font-size: 16px;
	color: var(--text-light);
	margin-bottom: 25px;
}

.unlock-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.unlock-button {
	padding: 14px 28px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 8px var(--shadow);
}

.unlock-button:hover {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
	box-shadow: 0 6px 12px var(--shadow);
	transform: translateY(-2px);
}

.unlock-link {
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
}

.unlock-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 24px;
	color: var(--text-light);
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s;
}

.unlock-close:hover {
	background: rgba(194, 24, 91, 0.1);
}


@media (max-width: 768px) {
	.auth-box {
		padding: 30px 20px;
	}

	.code-input-group {
		flex-direction: column;
	}

	.points-methods {
		grid-template-columns: 1fr;
	}

	.invite-code-box {
		flex-direction: column;
	}

	.invite-code-display {
		flex-direction: column;
		padding: 15px;
	}

	.invite-code-text {
		font-size: 20px;
		letter-spacing: 2px;
		padding: 10px 15px;
	}

	.invite-code-copy {
		width: 100%;
		justify-content: center;
	}

	.invite-code-hint {
		font-size: 13px;
		padding: 12px;
	}

	.upload-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.points-methods {
		grid-template-columns: 1fr;
	}

	.upload-type-section {
		margin-bottom: 25px;
	}

	.upload-type-title {
		font-size: 18px;
		margin-bottom: 12px;
	}

	.upload-type-list {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.upload-item-main {
		width: 100%;
	}

	.upload-meta {
		flex-wrap: wrap;
		gap: 8px;
	}

	.upload-type-badge {
		padding: 4px 10px;
		border-radius: 4px;
		font-size: 11px;
		font-weight: 600;
		text-transform: uppercase;
	}

	.upload-type-video {
		background: linear-gradient(135deg, rgba(194, 24, 91, 0.2) 0%, rgba(194, 24, 91, 0.1) 100%);
		color: var(--primary-light);
		border: 1px solid rgba(194, 24, 91, 0.3);
	}

	.upload-type-gallery {
		background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
		color: #64b5f6;
		border: 1px solid rgba(33, 150, 243, 0.3);
	}

	.upload-type-manga {
		background: linear-gradient(135deg, rgba(156, 39, 176, 0.2) 0%, rgba(156, 39, 176, 0.1) 100%);
		color: #ba68c8;
		border: 1px solid rgba(156, 39, 176, 0.3);
	}

	.upload-type-story {
		background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
		color: #ffb74d;
		border: 1px solid rgba(255, 152, 0, 0.3);
	}

	.upload-points {
		color: var(--primary-light);
		font-weight: 600;
		font-size: 12px;
	}

	.upload-type-section {
		margin-bottom: 30px;
		padding-bottom: 20px;
		border-bottom: 1px solid var(--border-color);
	}

	.upload-type-section:last-child {
		border-bottom: none;
	}

	.upload-type-title {
		font-size: 20px;
		font-weight: 600;
		color: var(--text-light);
		margin-bottom: 15px;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.upload-type-list {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.upload-item {
		background: var(--bg-card);
		backdrop-filter: blur(10px);
		border-radius: 8px;
		padding: 15px;
		border: 1px solid var(--border-color);
		transition: all 0.3s ease;
	}

	.upload-item:hover {
		border-color: var(--primary-color);
		box-shadow: 0 4px 12px rgba(194, 24, 91, 0.2);
		transform: translateX(4px);
	}

	.upload-item-main {
		width: 100%;
	}

	.upload-title {
		font-size: 16px;
		font-weight: 600;
		color: var(--text-light);
		margin-bottom: 10px;
		line-height: 1.4;
	}

	.upload-meta {
		display: flex;
		align-items: center;
		gap: 12px;
		flex-wrap: wrap;
		font-size: 12px;
	}

	.upload-status {
		padding: 4px 10px;
		border-radius: 4px;
		font-weight: 600;
		text-transform: capitalize;
	}

	.upload-status.Pending {
		background: rgba(255, 152, 0, 0.2);
		color: #ffb74d;
		border: 1px solid rgba(255, 152, 0, 0.3);
	}

	.upload-status.Approved {
		background: rgba(76, 175, 80, 0.2);
		color: #81c784;
		border: 1px solid rgba(76, 175, 80, 0.3);
	}

	.upload-status.Rejected {
		background: rgba(244, 67, 54, 0.2);
		color: #e57373;
		border: 1px solid rgba(244, 67, 54, 0.3);
	}

	.upload-date {
		color: var(--text-light);
		opacity: 0.7;
	}

	.invite-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.history-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}




.page-header {
	margin-bottom: 30px;
	text-align: center;
}

.page-description {
	color: var(--text-light);
	font-size: 14px;
	margin-top: 8px;
}


.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.gallery-card {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid var(--border-color);
	text-decoration: none;
	display: block;
}

.gallery-card:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 8px 24px var(--shadow);
	border-color: var(--primary-color);
	text-decoration: none;
}

.gallery-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 75%;
	overflow: hidden;
	background: var(--bg-secondary);
}

.gallery-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumbnail img {
	transform: scale(1.1);
}

.gallery-image-count {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
}

.gallery-info {
	padding: 12px;
}

.gallery-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gallery-description {
	font-size: 13px;
	color: var(--text-light);
	line-height: 1.5;
	margin-bottom: 8px;
	padding: 8px 12px;
	background: rgba(194, 24, 91, 0.05);
	border-left: 3px solid var(--primary-color);
	border-radius: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gallery-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: var(--text-light);
	flex-wrap: wrap;
}


.manga-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.manga-card {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid var(--border-color);
	text-decoration: none;
	display: block;
}

.manga-card:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 8px 24px var(--shadow);
	border-color: var(--primary-color);
	text-decoration: none;
}

.manga-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 140%;
	overflow: hidden;
	background: var(--bg-secondary);
}

.manga-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.manga-card:hover .manga-thumbnail img {
	transform: scale(1.05);
}

.manga-pages {
	position: absolute;
	bottom: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
}

.manga-status {
	position: absolute;
	top: 8px;
	right: 8px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.manga-info {
	padding: 12px;
}

.manga-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.manga-description {
	font-size: 13px;
	color: var(--text-light);
	line-height: 1.5;
	margin-bottom: 8px;
	padding: 8px 12px;
	background: rgba(194, 24, 91, 0.05);
	border-left: 3px solid var(--primary-color);
	border-radius: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.manga-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: var(--text-light);
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.manga-author {
	font-size: 12px;
	color: var(--primary-color);
	font-weight: 500;
}


.stories-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 30px;
}

.story-card {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 20px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid var(--border-color);
	text-decoration: none;
	display: block;
}

.story-card:hover {
	transform: translateX(4px);
	box-shadow: 0 4px 16px var(--shadow);
	border-color: var(--primary-color);
	text-decoration: none;
}

.story-content {
	width: 100%;
}

.story-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 12px;
	line-height: 1.4;
}

.story-description {
	font-size: 14px;
	color: var(--text-color);
	line-height: 1.6;
	margin-bottom: 12px;
	padding: 12px;
	background: rgba(194, 24, 91, 0.05);
	border-left: 3px solid var(--primary-color);
	border-radius: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.story-excerpt {
	font-size: 14px;
	color: var(--text-light);
	line-height: 1.6;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.story-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: var(--text-light);
	flex-wrap: wrap;
	align-items: center;
}

.story-author,
.story-words,
.story-views,
.story-date,
.story-chapters {
	display: flex;
	align-items: center;
	gap: 6px;
}

.story-author {
	color: var(--primary-color);
	font-weight: 600;
}

.story-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.story-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.story-status-ongoing {
	background: rgba(255, 152, 0, 0.2);
	color: #ff9800;
	border: 1px solid rgba(255, 152, 0, 0.3);
}

.story-status-completed {
	background: rgba(76, 175, 80, 0.2);
	color: #4caf50;
	border: 1px solid rgba(76, 175, 80, 0.3);
}


.story-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.story-chapters-nav {
	margin-top: 20px;
	padding: 16px;
	background: rgba(42, 26, 42, 0.3);
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

.chapters-nav-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-color);
	margin-bottom: 12px;
}

.chapters-nav-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.chapter-nav-btn {
	padding: 8px 16px;
	background: rgba(42, 26, 42, 0.6);
	border: 2px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-color);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.chapter-nav-btn:hover {
	border-color: var(--primary-color);
	background: rgba(194, 24, 91, 0.1);
	transform: translateY(-2px);
}

.chapter-nav-btn.active {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}


.history-item-extra-info {
	margin-top: 8px;
	font-size: 12px;
	color: var(--text-light);
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.story-status-info,
.story-chapters-info {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}


.history-item-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border-color);
}

.history-item-action-btn {
	padding: 6px 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: var(--bg-color);
	color: var(--text-color);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
}

.history-item-action-btn:hover {
	background: var(--bg-secondary);
	border-color: var(--primary-color);
}

.history-item-delete-btn {
	color: #e74c3c;
	border-color: #e74c3c;
}

.history-item-delete-btn:hover {
	background: rgba(231, 76, 60, 0.1);
	border-color: #c0392b;
}

.history-item-continue-btn {
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.history-item-continue-btn:hover {
	background: rgba(194, 24, 91, 0.1);
	border-color: #ad1457;
}


.upload-status-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.upload-status-pending .upload-status-badge,
.upload-status-badge.upload-status-pending {
	background: rgba(255, 193, 7, 0.2);
	color: #f57c00;
	border: 1px solid #ffc107;
}

.upload-status-approved .upload-status-badge,
.upload-status-badge.upload-status-approved {
	background: rgba(76, 175, 80, 0.2);
	color: #2e7d32;
	border: 1px solid #4caf50;
}

.upload-status-rejected .upload-status-badge,
.upload-status-badge.upload-status-rejected {
	background: rgba(244, 67, 54, 0.2);
	color: #c62828;
	border: 1px solid #f44336;
}

.history-item-meta .upload-status-badge {
	margin-left: 8px;
}

@media (max-width: 768px) {
	.history-item-actions {
		flex-direction: column;
	}

	.history-item-action-btn {
		width: 100%;
	}

	.invite-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 14px 16px;
	}

	.invite-item .invite-email,
	.invite-item .invite-date,
	.invite-item .invite-status {
		width: 100%;
	}

	.invite-email {
		font-size: 14px;
	}

	.invite-date {
		font-size: 12px;
	}

	.invite-status {
		align-self: flex-start;
	}

	.points-history-item {
		gap: 8px;
		padding: 14px 16px;
	}

	.points-history-item .history-item-type {
		font-size: 14px;
		flex: 1;
	}

	.points-history-item .history-item-date {
		font-size: 12px;
		flex: 1;
		text-align: center;
	}

	.points-history-item .history-item-amount {
		font-size: 16px;
		line-height: 1.2;
		flex: 1;
		text-align: right;
	}
}


@media (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

	.manga-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 15px;
	}

	.story-card {
		padding: 16px;
	}

	.story-title {
		font-size: 16px;
	}

	.story-excerpt {
		font-size: 13px;
	}

	.page-title {
		font-size: 24px;
	}
}


.photos-preview-container {
	margin-top: 20px;
}

.photos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.photo-item {
	position: relative;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid var(--border-color);
	background: rgba(42, 26, 42, 0.6);
	cursor: grab;
	transition: all 0.3s ease;
	user-select: none;
	-webkit-user-drag: element;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: pan-y;
}

.photo-item:active {
	cursor: grabbing;
}

.photo-item:hover {
	border-color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.2);
}

.photo-item-actions {
	opacity: 1;
	transition: opacity 0.3s ease;
}

.photo-item.dragging {
	opacity: 0.5;
	transform: scale(0.95);
	cursor: grabbing;
	z-index: 1000;
	touch-action: none;
}

.photo-item.drag-over {
	border-color: var(--primary-color);
	border-width: 3px;
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(194, 24, 91, 0.4);
	background: rgba(194, 24, 91, 0.1);
}

.photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.photo-item-actions {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	gap: 4px;
	z-index: 100;
	pointer-events: none;
}

.photo-item-actions .photo-item-btn {
	pointer-events: auto;
}

.photo-item-btn {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: bold;
	transition: all 0.3s ease;
	pointer-events: auto !important;
	z-index: 100;
	position: relative;
}

.photo-item-btn:hover {
	background: rgba(244, 67, 54, 0.9);
	transform: scale(1.15);
}

.photo-item.dragging .photo-item-btn {
	pointer-events: none;
	opacity: 0;
}

.photo-item-index {
	position: absolute;
	bottom: 4px;
	left: 4px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	color: white;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	pointer-events: none;
	user-select: none;
}

.add-more-photos-btn {
	width: 100%;
	padding: 12px;
	background: rgba(194, 24, 91, 0.1);
	border: 2px dashed var(--border-color);
	border-radius: 8px;
	color: var(--text-light);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.add-more-photos-btn:hover {
	background: rgba(194, 24, 91, 0.2);
	border-color: var(--primary-color);
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.photos-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 10px;
	}
}


.sort-controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 20px;
	padding: 0 20px;
}

.sort-controls label {
	font-size: 14px;
	color: var(--text-color);
	font-weight: 500;
}

.sort-select {
	padding: 8px 12px;
	padding-right: 32px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background: var(--bg-color);
	color: var(--text-color);
	font-size: 14px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http:
 background-repeat: no-repeat;
			background-position: right 10px center;
			transition: all 0.3s ease;
			min-width: 180px;
	}

	.sort-select:hover {
		border-color: var(--primary-color);
	}

	.sort-select:focus {
		outline: none;
		border-color: var(--primary-color);
		box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.1);
	}

	@media (max-width: 768px) {
		.sort-controls {
			flex-direction: row;
			align-items: center;
			padding: 0 10px;
			gap: 8px;
		}

		.sort-controls label {
			font-size: 13px;
			white-space: nowrap;
			flex-shrink: 0;
		}

		.sort-select {
			flex: 1;
			min-width: auto;
			padding: 8px 10px;
			padding-right: 28px;
		}
	}


	.upload-result-modal {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.6);
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 10000;
		backdrop-filter: blur(4px);
	}

	.upload-result-modal-content {
		background: var(--bg-primary, #1a1a1a);
		border-radius: 16px;
		padding: 40px;
		max-width: 500px;
		width: 90%;
		text-align: center;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
		border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
	}

	.upload-result-icon {
		margin-bottom: 24px;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.upload-result-icon svg {
		width: 64px;
		height: 64px;
	}

	.upload-result-title {
		font-size: 24px;
		font-weight: 600;
		margin-bottom: 16px;
		color: var(--text-primary, #ffffff);
	}

	.upload-result-message {
		font-size: 16px;
		color: var(--text-secondary, rgba(255, 255, 255, 0.7));
		margin-bottom: 32px;
		line-height: 1.6;
	}

	.upload-result-actions {
		display: flex;
		gap: 12px;
		justify-content: center;
		flex-wrap: wrap;
	}

	.upload-result-btn {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 12px 24px;
		border-radius: 8px;
		font-size: 16px;
		font-weight: 500;
		border: none;
		cursor: pointer;
		transition: all 0.2s ease;
		min-width: 140px;
		justify-content: center;
	}

	.upload-result-btn-primary {
		background: var(--accent-color, #6366f1);
		color: #ffffff;
	}

	.upload-result-btn-primary:hover {
		background: var(--accent-hover, #4f46e5);
		transform: translateY(-1px);
	}

	.upload-result-btn-secondary {
		background: var(--bg-secondary, #2a2a2a);
		color: var(--text-primary, #ffffff);
		border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
	}

	.upload-result-btn-secondary:hover {
		background: var(--bg-tertiary, #3a3a3a);
		border-color: var(--border-hover, rgba(255, 255, 255, 0.2));
		transform: translateY(-1px);
	}

	.upload-result-btn svg {
		width: 18px;
		height: 18px;
	}

	@media (max-width: 640px) {
		.upload-result-modal-content {
			padding: 32px 24px;
		}

		.upload-result-title {
			font-size: 20px;
		}

		.upload-result-message {
			font-size: 14px;
		}

		.upload-result-actions {
			flex-direction: column;
		}

		.upload-result-btn {
			width: 100%;
		}
	}