/*
**************************************************
* 作者:          海螺主题
* 海螺主题官网:    https://www.hailuo.cc
* 版本:          HL093 极光 2.1.5
* 最后更新:    2026-09-18
**************************************************
*/

.player-video {
	position: relative;
	overflow: hidden;
}

.danmu-item {
	position: absolute;
	z-index: 10;
	white-space: nowrap;
	font-size: 20px;
	color: #fff;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
	line-height: 1.4;
	pointer-events: none;
}

.danmu-item .danmu-close {
	display: inline-block;
	margin-left: 6px;
	color: #999;
	font-size: 14px;
	cursor: pointer;
	pointer-events: auto;
}

.danmu-item .danmu-close:hover {
	color: #fff;
}

.danmu-item .danmu-emoji {
	display: inline-block;
	height: 1.3em;
	width: 1.3em;
	margin: 0 1px;
	vertical-align: middle;
	object-fit: contain;
}

.danmu-nav-btns {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	vertical-align: top;
	white-space: nowrap;
}

.danmu-nav-btns .ep-nav-btn {
	flex-shrink: 0;
	white-space: nowrap;
	cursor: pointer;
}

.danmu-toggle-btn.on {}

.danmu-toggle-btn.off {
	opacity: 0.55;
}

.search-suggest {
	position: fixed;
	z-index: 2147483647;
	overflow-y: auto;
	overflow-x: hidden;
	display: none;
	box-sizing: border-box;
	min-width: 0;
	max-width: calc(100vw - 24px);
	max-height: 420px;
	padding: 8px;
	color: #b0c8dd;
	color: var(--text-secondary);
	background: #0a0e14;
	background: var(--bg-primary);
	border: 1.5px solid rgba(103, 232, 249, 0.35);
	border: 1.5px solid var(--accent);
	border-radius: 5px;
	box-shadow:
		0 16px 40px rgba(0, 0, 0, 0.5),
		0 2px 12px rgba(103, 232, 249, 0.12);
	box-shadow:
		0 16px 40px var(--shadow-color),
		0 2px 12px var(--accent-glow);
}

@media (max-width: 768px) {
	.search-suggest {
		max-height: 52vh;
	}
}

.search-suggest.show {
	display: block;
	animation: ss-pop 0.16s ease-out;
}

@keyframes ss-pop {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.search-suggest[data-ss-type="nav"] {
	padding: 6px;
	max-height: 360px;
	border-radius: 5px;
}

.search-suggest[data-ss-type="nav"] .ss-item {
	padding: 10px 12px;
	font-size: 13px;
}

.search-suggest[data-ss-type="sidebar"] {
	padding: 6px;
	border-radius: 5px;
}

.search-suggest[data-ss-type="searchbox"] {
	padding: 10px;
	border-radius: 5px;
}

.search-suggest[data-ss-type="searchbox"] .ss-item {
	padding: 14px 18px;
	font-size: 15px;
}

[data-theme="light"] .search-suggest {
	color: #2d3748;
	background: #f0f4f8;
	border-color: #5a9eff;
	box-shadow:
		0 16px 40px rgba(0, 0, 0, 0.12),
		0 2px 12px rgba(90, 158, 255, 0.15);
}

.search-suggest::-webkit-scrollbar {
	width: 8px;
}

.search-suggest::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 4px;
}

.search-suggest::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #67e8f9, #f3c969);
	border-radius: 4px;
}

.search-suggest::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #56d4e6, #e6b95c);
}

.search-suggest {
	scrollbar-width: thin;
	scrollbar-color: #67e8f9 transparent;
}

.search-suggest .ss-item {
	position: relative;
	display: flex;
	align-items: center;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 500;
	color: #b0c8dd;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: 11px;
	transition:
		background 0.18s ease,
		color 0.18s ease;
	cursor: pointer;
}

[data-theme="light"] .search-suggest .ss-item {
	color: #2d3748;
}

.search-suggest .ss-item::before {
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 0;
	content: "";
	border-radius: 2px;
	background: linear-gradient(180deg, #67e8f9, #f3c969);
	transform: translateY(-50%);
	transition: height 0.18s ease;
}

.search-suggest .ss-item:hover,
.search-suggest .ss-item.active {
	color: #e8edf2;
	color: var(--text-primary);
	background: rgba(103, 232, 249, 0.08);
	background: var(--bg-elevated);
}

[data-theme="light"] .search-suggest .ss-item:hover,
[data-theme="light"] .search-suggest .ss-item.active {
	color: #818691;
	background: #f8fafc;
}

.search-suggest .ss-item:hover::before,
.search-suggest .ss-item.active::before {
	height: 60%;
}

.search-suggest .ss-item .ss-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-suggest .ss-item .ss-icon {
	flex-shrink: 0;
	margin-right: 9px;
	font-size: 14px;
	color: #7a8a9a;
	color: var(--text-muted);
	line-height: 1;
}

[data-theme="light"] .search-suggest .ss-item .ss-icon {
	color: #a0aec0;
}

.search-suggest .ss-type {
	flex-shrink: 0;
	margin-left: 10px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 600;
	color: #67e8f9;
	color: var(--accent);
	white-space: nowrap;
	border-radius: 20px;
	background: rgba(103, 232, 249, 0.12);
	background: var(--bg-elevated);
	border: 1px solid rgba(103, 232, 249, 0.3);
	border: 1px solid var(--accent);
}

[data-theme="light"] .search-suggest .ss-type {
	color: #3b82f6;
	background: #eef5ff;
	border-color: #c9e0ff;
}

.search-suggest .ss-item .ss-name em {
	color: #7ab4ff;
	color: var(--accent-hover);
	font-style: normal;
	font-weight: 700;
}

[data-theme="light"] .search-suggest .ss-item .ss-name em {
	color: #4a8eef;
}

.search-suggest .ss-empty {
	padding: 20px;
	text-align: center;
	color: #7a8a9a;
	color: var(--text-muted);
	font-size: 13px;
}

[data-theme="light"] .search-suggest .ss-empty {
	color: #718096;
}

.sidebar-search,
.nav-search,
.search-box {
	position: relative;
}

#toast.toast-message {
	position: fixed;
	bottom: 88px;
	left: 50%;
	z-index: 2147483647;
	visibility: hidden;
	padding: 11px 26px;
	max-width: min(86vw, 420px);
	color: #e8edf2;
	color: var(--text-primary);
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	line-height: 1.5;
	background: rgba(10, 16, 24, 0.92);
	background: var(--toast-bg);
	border-radius: 40px;
	border: 1px solid rgba(103, 232, 249, 0.4);
	border: 1px solid var(--toast-border);
	box-shadow:
		0 12px 32px rgba(0, 0, 0, 0.45),
		0 0 18px rgba(103, 232, 249, 0.15);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition:
		opacity 0.28s ease,
		transform 0.28s ease,
		visibility 0.28s;
	pointer-events: none;
}

#toast.toast-message.show {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 0);
}

[data-theme="light"] #toast.toast-message {
	color: #1e293b;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(30, 60, 100, 0.18);
}

@media (max-width: 768px) {
	#toast.toast-message {
		bottom: 96px;
		padding: 10px 20px;
		font-size: 13px;
	}
}

.brand-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-right: 18px;
	text-decoration: none !important;
}

.brand-logo img {
	display: block;
	height: 30px;
	max-width: 88px;
	width: auto;
	object-fit: contain;
	border-radius: 5px;
}

.sidebar .sidebar-header .brand-logo {
	margin-right: 0;
}

.sidebar .sidebar-header .brand-logo img {
	height: 36px;
	max-width: 200px;
}

@media (max-width: 767px) {
	.brand-logo img {
		height: 34px;
		max-width: 130px;
	}
}

.section-header h2,
.section-header h1,
.filter-title-row h2,
.filter-title-row h1,
.hl-panel-title {
	display: flex;
	align-items: center;
	height: auto;
}

.section-header h2 .iconfont,
.section-header h1 .iconfont,
.filter-title-row h2 .iconfont,
.filter-title-row h1 .iconfont,
.hl-panel-title .iconfont {
	display: inline-block;
	font-size: 1em;
	line-height: 1;
}

.section-header h1 .iconfont {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.navbar.navbar-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 300;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px max(16px, calc((100vw - 1385px) / 2));
	background: rgba(10, 16, 24, 0.88);
	background: color-mix(in srgb, var(--bg-primary, #0a1018) 88%, transparent);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}


@media (max-width: 767px) {
	.navbar.navbar-fixed {
		padding: 8px 16px;
	}
}

.hero-slider~.navbar.navbar-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: rgba(10, 16, 24, 0.88);
	background: color-mix(in srgb, var(--bg-primary, #0a1018) 88%, transparent);
	transform: none;
}

.hero-slider~.navbar.navbar-fixed::after {
	display: block;
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	content: "";
	background: var(--gradient);
}

.hero-slider~.navbar.navbar-fixed::before {
	position: absolute;
	top: -16px;
	left: 0;
	right: 0;
	z-index: -1;
	height: calc(100% + 16px);
	content: "";
	background: linear-gradient(to bottom,
			rgba(4, 8, 14, 0) 0%,
			rgba(4, 8, 14, 0) 55%,
			transparent 100%);
}

.hero-slider~.navbar.navbar-fixed .nav-links a,
.hero-slider~.navbar.navbar-fixed .brand-tag,
.hero-slider~.navbar.navbar-fixed .menu-toggle-btn,
.hero-slider~.navbar.navbar-fixed .theme-toggle-btn {
	color: var(--text-primary);
}

.hero-slider~.navbar.navbar-fixed .nav-links a.active {
	color: var(--accent);
}

.hero-slider~.navbar.navbar-fixed .nav-search {
	background: rgba(10, 16, 24, 0.35);
	border-color: var(--border-color);
}

.hero-slider~.navbar.navbar-fixed .nav-search-input,
.hero-slider~.navbar.navbar-fixed .nav-search-input::placeholder {
	color: rgba(240, 246, 252, 0.92);
}

.page.list .main,
.page.list .content,
.page.list .module {
	max-width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

.rank-period-bar {
	display: flex;
	gap: 6px;
	margin-bottom: 24px;
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: 16px;
	padding: 6px;
	box-shadow: 0 2px 12px var(--shadow-color);
	width: 100%;
	box-sizing: border-box;
}

.rank-period-btn {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	padding: 12px 4px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	color: var(--text-muted);
	border-radius: 12px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	letter-spacing: 0.5px;
	user-select: none;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rank-period-btn i {
    font-weight: 1;
}
.rank-period-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gradient);
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 12px;
}

.rank-period-btn.active {
	color: #fff;
	box-shadow: 0 4px 16px var(--shadow-color);
}

.rank-period-btn.active::before {
	opacity: 1;
}

.rank-period-btn span {
	position: relative;
	z-index: 1;
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rank-period-btn:not(.active):hover {
	background: var(--bg-elevated);
	color: var(--text-primary);
	transform: translateY(-1px);
}

.rank-period-btn:not(.active):active {
	transform: translateY(0);
}

.rank-period {
	display: none;
}

.rank-period.active {
	display: block;
	animation: rankFadeIn 0.12s ease;
}

.page.list .module {
	min-height: 600px;
}

@keyframes rankFadeIn {
	from {
		opacity: 0.3;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 640px) {
	.page.list .module {
		min-height: 400px;
	}
}

.rank-cat-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.rank-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.rank-cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rank-cat-section {
	margin: 0;
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: 18px;
	padding: 18px 16px 16px;
	box-shadow: 0 2px 12px var(--shadow-color);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.rank-cat-section:hover {
	box-shadow: 0 8px 28px var(--shadow-color);
	transform: translateY(-2px);
}

.rank-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-light);
	gap: 8px;
}

.rank-cat-head h3 {
	font-size: 16px;
	font-weight: 800;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	letter-spacing: 0.3px;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rank-cat-head h3::before {
	content: "";
	width: 4px;
	height: 18px;
	border-radius: 3px;
	background: var(--gradient);
	flex-shrink: 0;
}

.rank-cat-head a {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 20px;
	transition: all 0.25s ease;
	background: var(--bg-elevated);
	border: 1px solid transparent;
	flex-shrink: 0;
	white-space: nowrap;
}

.rank-cat-head a:hover {
	color: #fff;
	background: var(--gradient);
	border-color: transparent;
	transform: translateX(2px);
}

.rank-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.rank-row {
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	padding: 8px 10px;
	background: var(--bg-elevated);
	border-radius: 12px;
	border: 1px solid transparent;
	text-decoration: none;
	color: inherit;
	transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
}

.rank-row::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
	background: var(--gradient);
	opacity: 0;
	transition: opacity 0.28s ease;
	pointer-events: none;
}

.rank-row:hover {
	border-color: var(--accent);
	box-shadow: 0 6px 22px var(--shadow-color);
	transform: translateY(-2px);
	padding-left: 14px;
}

.rank-row:hover::after {
	opacity: 0.06;
}

.rank-row:active {
	transform: translateY(0) scale(0.99);
}

.rank-no {
	flex: 0 0 24px;
	text-align: center;
	font-size: 17px;
	font-weight: 800;
	font-style: italic;
	color: var(--text-muted);
	position: relative;
	z-index: 1;
	line-height: 1;
	transition: transform 0.28s ease;
}

.rank-row:hover .rank-no {
	transform: scale(1.15);
}

.rank-row:nth-child(1) .rank-no {
	background: linear-gradient(135deg, #ffd700, #ff8c00);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-size: 19px;
	text-shadow: 0 2px 8px rgba(255, 215, 0, 0.25);
}

.rank-row:nth-child(2) .rank-no {
	background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-size: 18px;
}

.rank-row:nth-child(3) .rank-no {
	background: linear-gradient(135deg, #cd7f32, #a0522d);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-size: 18px;
}

.rank-poster {
	flex: 0 0 38px;
	width: 38px;
	height: 52px;
	position: relative;
	overflow: hidden;
	border-radius: 7px;
	background: var(--poster-bg);
	box-shadow: 0 2px 8px var(--shadow-color);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.rank-row:hover .rank-poster {
	transform: scale(1.05);
	box-shadow: 0 4px 16px var(--shadow-color);
}

.rank-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.rank-row:hover .rank-poster img {
	transform: scale(1.1);
}

.rank-info {
	flex: 1 1 0;
	min-width: 0;
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.rank-info h4 {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.25s ease;
	letter-spacing: 0.2px;
	max-width: 100%;
}

.rank-row:hover .rank-info h4 {
	color: var(--accent);
}

.rank-info p {
	margin: 0;
	font-size: 11px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0.85;
	max-width: 100%;
}

.rank-badge {
	flex-shrink: 0;
	padding: 3px 9px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 700;
	color: var(--accent);
	background: var(--bg-card);
	position: relative;
	z-index: 1;
	white-space: nowrap;
	border: 1px solid var(--border-light);
	transition: all 0.25s ease;
	letter-spacing: 0.3px;
	max-width: 80px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rank-row:hover .rank-badge {
	background: var(--gradient);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 2px 10px var(--shadow-color);
}

.rank-badgedu {
	flex-shrink: 0;
	padding: 3px 9px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 700;
	color: var(--accent);
	background: var(--bg-card);
	position: relative;
	z-index: 1;
	white-space: nowrap;
	border: 1px solid var(--border-light);
	transition: all 0.25s ease;
	letter-spacing: 0.3px;
	max-width: 80px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rank-badgedu i {
    font-size: 10px;
}
@media (max-width: 640px) {
	.rank-period-bar {
		gap: 4px;
		padding: 4px;
		border-radius: 12px;
		margin-bottom: 16px;
	}

	.rank-period-btn {
		padding: 10px 2px;
		font-size: 12px;
		border-radius: 9px;
		letter-spacing: 0;
	}

	.rank-cat-section {
		padding: 14px 12px 12px;
		border-radius: 14px;
	}

	.rank-cat-head h3 {
		font-size: 14px;
	}

	.rank-cat-head h3::before {
		height: 15px;
		width: 3px;
	}

	.rank-cat-head a {
		font-size: 11px;
		padding: 3px 8px;
	}

	.rank-row {
		gap: 8px;
		padding: 6px 8px;
		border-radius: 10px;
	}

	.rank-row:hover {
		padding-left: 10px;
	}

	.rank-no {
		flex: 0 0 18px;
		font-size: 14px;
	}

	.rank-row:nth-child(1) .rank-no {
		font-size: 16px;
	}

	.rank-row:nth-child(2) .rank-no {
		font-size: 15px;
	}

	.rank-row:nth-child(3) .rank-no {
		font-size: 15px;
	}

	.rank-poster {
		flex: 0 0 30px;
		width: 30px;
		height: 42px;
		border-radius: 5px;
	}

	.rank-info h4 {
		font-size: 12px;
	}

	.rank-info p {
		font-size: 10px;
	}

	.rank-badge {
		display: none;
	}

	.rank-cat-grid {
		gap: 14px;
	}
}

@media (max-width: 380px) {
	.rank-period-btn {
		font-size: 11px;
		padding: 8px 1px;
	}

	.rank-period-btn span {
		font-size: 11px;
	}

	.rank-info p {
		display: none;
	}

	.rank-poster {
		flex: 0 0 26px;
		width: 26px;
		height: 36px;
	}
}

.friend-rss { 
    position: relative;
    text-align: center;
}

.friend-rss a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.friend-rss a:hover {
    font-size: 13px;
    font-weight: 500;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hl-backtop {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 12px var(--shadow-color);
    border: 1px solid var(--border-light);
}
.hl-backtop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hl-backtop:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.hl-backtop:active {
    background: var(--accent-hover);
}
.hl-backtop svg {
    width: 20px;
    height: 20px;
}

@media (max-width:768px){
    .hl-backtop {
        display: none;
        width: 38px;
        height: 38px;
        right: 12px;
        bottom: calc(var(--bottom-nav-height) + 12px);
    }
}