/* ===== EndingLine 主题：白色基底 + 迪斯科点缀（黑板区域除外） ===== */

/* 哥特风标题字体（Pirata One，开源 Blackletter，仅拉丁字符）；
   中文回退到棱角感较强的华文新魏/隶书，营造同风格 */
@font-face {
	font-family: "Pirata One";
	src: url("/resources/fonts/pirata-one.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* 站酷庆科黄油体（免费商用）：粗黑锐利的中文展示字体，与哥特气质相配 */
@font-face {
	font-family: "ZCOOL QingKe HuangYou";
	src: url("/resources/fonts/zcool-qhky.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* 字体应用放在文件末尾（避免被后续同优先级规则覆盖），见文末"哥特标题字体应用" */

body {
	background-color: #fdfbff;
	background-image:
		radial-gradient(circle at 8% 12%, rgba(255, 47, 146, 0.05), transparent 35%),
		radial-gradient(circle at 92% 80%, rgba(140, 0, 255, 0.05), transparent 35%);
	margin: 0;
	font-family: "宋体", serif;
	color: #333;
}

/* 顶部横幅：红紫流动渐变（全站最闪的一处） */
.el-header {
	height: 70px;
	display: flex;
	align-items: center;
	background: linear-gradient(90deg, #ff004c, #ff00a8, #8c00ff, #ff004c);
	background-size: 300% 100%;
	animation: disco-slide 8s linear infinite;
	box-shadow: 0 2px 12px rgba(200, 0, 111, 0.35);
}

@keyframes disco-slide {
	0% { background-position: 0% 0; }
	100% { background-position: 300% 0; }
}

.el-header .logo-text {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* 顶栏哥特字标（透明 PNG），白色辉光在粉底上提亮 */
.el-header .logo-img {
	height: 80px;
	width: auto;
	vertical-align: middle;
	filter:
		drop-shadow(0 0 3px rgba(255, 255, 255, 0.95))
		drop-shadow(0 0 8px rgba(255, 255, 255, 0.5))
		drop-shadow(0 2px 2px rgba(120, 0, 80, 0.4));
}

.el-header .logo-text::after {
	content: ' ♪';
	color: #ffe95c;
	font-size: 28px;
	vertical-align: middle;
}

/* 主体布局：半透明白卡片浮在 3D 背景上（layui 栅格：桌面侧栏3列+内容9列，手机竖排） */
.el-main {
	max-width: 1000px;
	margin: 16px auto;
	padding: 20px;
	box-sizing: border-box;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(4px);
	box-shadow: 0 6px 24px rgba(80, 60, 120, 0.12);
}

.el-side {
	text-align: center;
}

.el-side img.logo {
	display: block;
	margin: 0 auto 15px;
	max-width: 100%;
	height: auto;
	border: 3px solid #fff;
	border-radius: 6px;
	box-shadow: 0 0 0 2px #ff2fd6, 0 4px 14px rgba(140, 0, 255, 0.25);
	box-sizing: border-box;
}

/* 原 endingline.css 字体样式（恢复经典配色） */
.font_stytle {
	font-family: "宋体";
	font-size: 14px;
	font-style: normal;
	line-height: 18px;
	color: #9999CC;
}

.font_stytle_poem {
	font-family: "Times New Roman", Times, serif;
	font-size: 14px;
	font-style: normal;
	line-height: normal;
	font-weight: normal;
	color: #336699;
}

a.font_stytle_poem {
	text-decoration: none;
	transition: all 0.2s ease;
}

a.font_stytle_poem:hover {
	color: #ff2f92;
	text-shadow: 0 0 6px rgba(255, 47, 146, 0.4);
}

/* ===== Flash 文字特效兜底样式 ===== */
.flash-text {
	display: inline-block;
	font-family: "Times New Roman", Times, serif;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 2px;
	background: linear-gradient(90deg, #ff004c, #8c00ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: neon-breathe 2.4s ease-in-out infinite;
}

.flash-text.large {
	font-size: 20px;
}

@keyframes neon-breathe {
	0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 0, 168, 0.5)); }
	50% { opacity: 0.75; filter: drop-shadow(0 0 1px rgba(255, 0, 168, 0.3)); }
}

/* ===== 迪斯科闪光按钮：红紫渐变 + 呼吸发光 + 流光扫过 ===== */
@keyframes disco-sweep {
	0% { left: -80%; }
	55% { left: 130%; }
	100% { left: 130%; }
}

@keyframes disco-glow {
	0%, 100% { box-shadow: 0 0 4px rgba(255, 47, 146, 0.3), 0 0 9px rgba(140, 0, 255, 0.16); }
	50% { box-shadow: 0 0 8px rgba(255, 47, 146, 0.5), 0 0 16px rgba(140, 0, 255, 0.3); }
}

.el-btn {
	display: inline-block;
	min-width: 100px;
	height: 26px;
	line-height: 26px;
	padding: 0 12px;
	border: none;
	border-radius: 13px;
	background: linear-gradient(135deg, #ff2f92, #c8006f 45%, #8c00ff);
	color: #fff;
	font-size: 13px;
	font-family: "宋体";
	cursor: pointer;
	transition: all 0.25s ease;
	position: relative;
	overflow: hidden;
	animation: disco-glow 2.4s ease-in-out infinite;
}

/* 流光扫过（JS flash 风高光） */
.el-btn::after,
.hud-btn::after,
.dlg-close::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 45%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	animation: disco-sweep 2.8s linear infinite;
	pointer-events: none;
}

.el-btn:hover {
	background: linear-gradient(135deg, #ff5cb0, #e00085 45%, #a020ff);
	transform: translateY(-1px) scale(1.04);
}

.el-btn:active {
	transform: translateY(1px);
	box-shadow: 0 1px 4px rgba(200, 0, 111, 0.3);
}

.el-btn.small {
	min-width: 72px;
	height: 24px;
	line-height: 24px;
	font-size: 12px;
}

/* 迪斯科按钮：大红大紫家族内的细微变化（v2 深紫 / v3 大红） */
.el-btn.v2, .hud-btn.v2 {
	background: linear-gradient(135deg, #c44dff, #8c00ff 45%, #5a00b3);
}

.el-btn.v3, .hud-btn.v3 {
	background: linear-gradient(135deg, #ff3b5c, #e00045 45%, #c8006f);
}

/* 黑板工具：黑板刷用深紫色 */
.chalk-tools .tool-eraser {
	background: linear-gradient(135deg, #c44dff, #8c00ff 45%, #5a00b3);
}

/* 播放列表呼吸特效：随音乐节奏脉动 */
@keyframes q-breathe {
	0%, 100% { box-shadow: 0 0 10px rgba(255, 47, 146, 0.3), 0 0 24px rgba(140, 0, 255, 0.18); }
	50% { box-shadow: 0 0 24px rgba(255, 47, 146, 0.75), 0 0 48px rgba(140, 0, 255, 0.45); }
}

.pl-queue { animation: q-breathe 3.2s ease-in-out infinite; }

.pl-queue.playing { animation-duration: 1.05s; } /* 播放中呼吸变快 */

.pl-queue .q-head {
	background: linear-gradient(90deg, #ff2f92, #ff9a00, #8c00ff, #00c9ff, #ff2f92);
	background-size: 300% 100%;
	animation: q-head-flow 5s linear infinite;
}

@keyframes q-head-flow {
	0% { background-position: 0% 0; }
	100% { background-position: 300% 0; }
}

.pl-queue.playing .q-head { animation-duration: 1.8s; }

/* ❤ 播放列表开关钮 */
.pl-heart-btn {
	border: none;
	background: none;
	cursor: pointer;
	font-size: 18px;
	color: #ff2f92;
	text-shadow: 0 0 8px rgba(255, 47, 146, 0.6);
	transition: transform 0.18s ease;
	animation: heart-breathe 1.6s ease-in-out infinite;
}

.pl-heart-btn:hover { transform: scale(1.3); }

@keyframes heart-breathe {
	0%, 100% { transform: scale(1); }
	30% { transform: scale(1.18); }
	45% { transform: scale(1.05); }
}

/* 图形验证码 */
.captcha-box {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 8px;
	background: linear-gradient(135deg, #2d0a4e, #4a1060);
	color: #ffe95c;
	font-family: monospace;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 6px;
	cursor: pointer;
	text-shadow: 0 0 8px rgba(255, 47, 146, 0.8);
	transform: skewX(-8deg);
	user-select: none;
	white-space: nowrap;
}

/* ===== 播放器（独立音乐区）响应式 ===== */
@media (max-width: 640px) {
	.player-layer {
		position: static;
		flex-direction: column;
		align-items: center;
		gap: 0;
		padding: 0;
		pointer-events: auto;
	}
	#player3d { width: 240px; height: 215px; }
	.pl-info { width: 92vw; max-width: 92vw; margin: 0 auto 12px; }
}

.el-btn[disabled] {
	opacity: 0.45;
	cursor: default;
	animation: none;
}

/* ===== 迪斯科弹框（全站不跳转，统一弹框） ===== */
.dlg-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(30, 0, 50, 0.45);
	backdrop-filter: blur(3px);
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
}

.dlg-overlay.show { display: flex; }

@keyframes dlg-glow {
	0%, 100% { box-shadow: 0 0 14px rgba(255, 47, 146, 0.5), 0 0 34px rgba(140, 0, 255, 0.35), 0 12px 40px rgba(0, 0, 0, 0.3); }
	50% { box-shadow: 0 0 28px rgba(255, 47, 146, 0.9), 0 0 60px rgba(140, 0, 255, 0.55), 0 12px 40px rgba(0, 0, 0, 0.3); }
}

.dlg-box {
	background: #fff;
	border-radius: 14px;
	max-width: 92vw;
	max-height: 84vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: dlg-glow 2.4s ease-in-out infinite;
}

.dlg-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	background: linear-gradient(90deg, #ff2f92, #c8006f 45%, #8c00ff);
	color: #fff;
	font-weight: bold;
	font-size: 15px;
}

.dlg-close {
	position: relative;
	overflow: hidden;
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.dlg-close:hover { transform: rotate(90deg) scale(1.1); background: rgba(255, 255, 255, 0.35); }

.dlg-body {
	padding: 16px 20px;
	overflow: auto;
	font-size: 14px;
	color: #444;
	line-height: 1.8;
}

/* 弹框内表单 */
.dlg-form label {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
	color: #666;
}

.dlg-form input[type="text"],
.dlg-form input[type="password"],
.dlg-form input:not([type]),
.dlg-form select,
.dlg-form textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: 3px;
	padding: 6px 10px;
	border: 1px solid #e0d0ee;
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
}

.dlg-form input:focus,
.dlg-form select:focus,
.dlg-form textarea:focus {
	outline: none;
	border-color: #ff2f92;
	box-shadow: 0 0 6px rgba(255, 47, 146, 0.35);
}

.dlg-form textarea { min-height: 120px; resize: vertical; }

.dlg-actions { text-align: center; margin-top: 14px; }

/* 弹框内列表项（诗歌列表等） */
.dlg-item {
	display: block;
	padding: 8px 12px;
	margin-bottom: 8px;
	border-radius: 8px;
	background: rgba(255, 47, 146, 0.06);
	cursor: pointer;
	transition: all 0.18s ease;
}

.dlg-item:hover {
	background: linear-gradient(90deg, rgba(255, 47, 146, 0.15), rgba(140, 0, 255, 0.12));
	transform: translateX(4px);
	box-shadow: 0 2px 8px rgba(200, 0, 111, 0.18);
}

.dlg-item .t { font-weight: bold; color: #333; }
.dlg-item .m { font-size: 12px; color: #999; margin-left: 8px; }

.dlg-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.dlg-pager .page-info { font-size: 12px; color: #999; }

/* ===== 首页播放列表 ===== */
.song-list {
	list-style: none;
	margin: 12px auto 0;
	padding: 0;
	width: 92%;
	max-width: 560px;
}

.song-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	margin-bottom: 6px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	font-size: 13px;
	color: #555;
	transition: all 0.18s ease;
}

.song-list li:hover {
	background: #fff;
	transform: translateX(4px);
	box-shadow: 0 2px 8px rgba(200, 0, 111, 0.18);
}

.song-list li.active {
	background: linear-gradient(90deg, rgba(255, 47, 146, 0.18), rgba(140, 0, 255, 0.15));
	color: #c8006f;
	font-weight: bold;
	box-shadow: 0 0 10px rgba(255, 47, 146, 0.3);
}

.song-no { width: 24px; color: #bbb; font-family: monospace; }
.song-list li.active .song-no { color: #ff2f92; }
.song-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist { color: #999; font-size: 12px; }

.song-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 10px 0 4px;
}

.song-pager .page-info { font-size: 12px; color: #999; }

/* 站内信未读角标 */
.msg-badge {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: linear-gradient(135deg, #ff3b5c, #c8006f);
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	box-shadow: 0 0 6px rgba(255, 47, 146, 0.8);
	animation: disco-glow 1.6s ease-in-out infinite;
}

/* ===== 登录框：白色卡片 + 渐变描边 ===== */
.login-box {
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 12px 8px;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, #ff2f92, #8c00ff) border-box;
	box-shadow: 0 3px 12px rgba(140, 0, 255, 0.12);
}

.login-box table {
	margin: 0 auto;
}

.login-box input[type="text"],
.login-box input[type="password"] {
	border: 1px solid #d9c2f0;
	border-radius: 3px;
	padding: 3px 5px;
	font-size: 13px;
	width: 110px;
	background: #fdfbff;
	color: #333;
	outline: none;
	transition: all 0.2s ease;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
	border-color: #ff2f92;
	box-shadow: 0 0 6px rgba(255, 47, 146, 0.35);
}

hr {
	border: none;
	height: 2px;
	background: linear-gradient(90deg, transparent, #ff2fd6, #8c00ff, transparent);
}

/* ===== 黑板（table 布局：黑板图为表背景，粉笔涂鸦独占一列，其余区域可用鼠标写字） ===== */
.blackboard-wrap {
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: 10px auto 0;
}

table.blackboard {
	width: 100%;
	aspect-ratio: 2 / 1;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
	background: url("/resources/images/heiban.jpg") no-repeat center;
	background-size: 100% 100%;
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	opacity: 0.88; /* 微透明，隐约透出背景 */
}

/* 粉笔写字画布：覆盖整块黑板（光标由 chalk.js 按工具切换） */
.chalk-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: crosshair;
	border-radius: 4px;
}

/* 黑板右上角的工具条：粉笔 / 黑板刷（迪斯科闪光风） */
.chalk-tools {
	position: absolute;
	top: 4%;
	right: 3%;
	z-index: 2;
	display: flex;
	gap: 8px;
}

.chalk-tools button {
	position: relative;
	overflow: hidden;
	border: none;
	border-radius: 12px;
	padding: 3px 12px;
	background: linear-gradient(135deg, #ff2f92, #c8006f 45%, #8c00ff);
	color: #fff;
	font-family: "Segoe Script", "STXingkai", "华文行楷", "KaiTi", "楷体", cursive;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.18s ease;
	animation: disco-glow 2.4s ease-in-out infinite;
}

.chalk-tools button::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 45%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	animation: disco-sweep 2.8s linear infinite;
	pointer-events: none;
}

.chalk-tools button:hover {
	transform: translateY(-1px) scale(1.06);
}

.chalk-tools button.active {
	background: linear-gradient(135deg, #ff9a00, #ff2f92 50%, #8c00ff);
	box-shadow: 0 0 14px rgba(255, 154, 0, 0.8);
}

/* ===== 音乐 & 冷笑话专区：全宽四栏 ===== */
.library-wrap {
	width: 1240px;
	max-width: 96vw;
	margin: 16px auto;
	padding: 18px 20px 14px;
	box-sizing: border-box;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(4px);
	box-shadow: 0 6px 24px rgba(80, 60, 120, 0.12);
}

.song-cols {
	display: flex;
	gap: 14px;
	width: 100%;
	margin: 0 auto;
}

/* 默认桌面四栏（flex 基值写在这里，后面的媒体查询才能覆盖它） */
.song-col { flex: 1 1 22%; min-width: 0; }

/* 冷笑话条目：两行截断，点开看全文 */
.joke-item {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding: 7px 12px;
	margin-bottom: 6px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	font-size: 12px;
	line-height: 1.7;
	color: #555;
	transition: all 0.18s ease;
}

.joke-item:hover {
	background: #fff;
	transform: translateX(4px);
	box-shadow: 0 2px 8px rgba(200, 0, 111, 0.18);
	color: #333;
}

/* 艺人等级徽章 */
.artist-lv {
	display: inline-block;
	margin-left: 4px;
	padding: 0 6px;
	border: 1px solid currentColor;
	border-radius: 8px;
	font-size: 10px;
	line-height: 15px;
	white-space: nowrap;
}

/* 点赞小红心飞舞特效 */
.heart-fly {
	position: fixed;
	z-index: 300;
	pointer-events: none;
	color: #ff2f92;
	font-size: 14px;
	text-shadow: 0 0 6px rgba(255, 47, 146, 0.6);
	animation: heart-fly 1s ease-out forwards;
}

@keyframes heart-fly {
	0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
	100% { transform: translate(var(--dx), -90px) scale(1.8) rotate(var(--rot)); opacity: 0; }
}

.song-heart.bounce { animation: heart-bounce 0.35s ease; }

@keyframes heart-bounce {
	0% { transform: scale(1); }
	40% { transform: scale(1.6); }
	100% { transform: scale(1); }
}

/* ===== 琴社霸主榜（音乐 / 笑话双列排名） ===== */
.rank-wrap {
	display: flex;
	gap: 16px;
}

.rank-col { flex: 1; min-width: 0; }

.rank-col h4 {
	margin: 8px 0 8px;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	background: linear-gradient(90deg, #ff9a00, #ff2f92, #8c00ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rank-list { list-style: none; margin: 0; padding: 0; }

.rank-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	margin-bottom: 5px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.65);
	font-size: 13px;
	color: #555;
	cursor: pointer;
	transition: all 0.18s ease;
}

.rank-list li:hover {
	background: #fff;
	transform: translateX(4px);
	box-shadow: 0 2px 8px rgba(200, 0, 111, 0.18);
}

.rk {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border-radius: 50%;
	text-align: center;
	line-height: 20px;
	font-size: 11px;
	color: #fff;
	background: #c5c5d5;
	font-family: monospace;
}

.rk1 { background: linear-gradient(135deg, #ffd700, #ff9a00); box-shadow: 0 0 8px rgba(255, 180, 0, 0.8); }
.rk2 { background: linear-gradient(135deg, #d0d0e0, #9090a8); }
.rk3 { background: linear-gradient(135deg, #e8a06a, #a0522d); }

.rank-list .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-hearts { color: #ff2f92; font-size: 12px; white-space: nowrap; }

/* 作者名（可点击，弹框看其作品） */
.a-name { cursor: pointer; }
.a-name:hover { color: #ff2f92; text-decoration: underline; }

/* 冷笑话条目：正文 + 作者/点赞底栏 */
.joke-item {
	display: block; /* 覆盖 -webkit-box，截断移到正文 */
}

.j-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.j-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
	font-size: 11px;
}

/* ===== 悬浮播放列表：可拖动、可收起；默认停靠左下角草坪区，不挡唱片机 ===== */
.pl-queue {
	position: fixed;
	left: 24px;
	right: auto;
	bottom: 24px;
	width: 300px;
	max-height: 240px;
	z-index: 30;
	display: none;
	flex-direction: column;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(6px);
	box-shadow: 0 0 16px rgba(255, 47, 146, 0.35), 0 6px 20px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	pointer-events: auto;
}

.pl-queue.show { display: flex; }

.pl-queue .q-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: bold;
	color: #fff;
	background: linear-gradient(90deg, #ff2f92, #8c00ff);
	cursor: move;
	user-select: none;
}

.q-collapse {
	background: rgba(255, 255, 255, 0.22);
	border: none;
	color: #fff;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
}

.q-collapse:hover { background: rgba(255, 255, 255, 0.4); }

/* 收起后的右下角小球 */
.q-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 35;
	display: none;
	border: none;
	border-radius: 20px;
	padding: 8px 16px;
	background: linear-gradient(135deg, #ff2f92, #c8006f 45%, #8c00ff);
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	overflow: hidden;
	animation: disco-glow 2.4s ease-in-out infinite;
}

.q-fab.show { display: block; }

.q-fab::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 45%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	animation: disco-sweep 2.8s linear infinite;
	pointer-events: none;
}

/* ===== 响应式：平板两栏、手机一栏一行 ===== */
@media (max-width: 1100px) {
	.library-wrap { width: 96vw; }
	.song-cols { flex-wrap: wrap; }
	.song-col { flex: 1 1 46%; }
}

@media (max-width: 1020px) {
	.el-main { width: 96vw; }
}

/* 手机端：一栏单独一行（断点放宽到 768px，大屏手机也单列） */
@media (max-width: 768px) {
	.song-col { flex: 1 1 100%; }
	.rank-wrap { flex-direction: column; }
	.pl-queue { left: 12px; right: auto; bottom: 12px; width: 82vw; }
}

.song-col .song-list { width: 100%; }

/* 唱片机画布容器（队列面板锚定在它上方） */
.pl-stage { position: relative; }

.song-col h4 {
	margin: 8px 0 4px;
	text-align: center;
	font-size: 13px;
	font-weight: bold;
	background: linear-gradient(90deg, #ff2f92, #8c00ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.song-act {
	border: none;
	background: none;
	cursor: pointer;
	font-size: 13px;
	padding: 0 2px;
	transition: transform 0.15s ease;
}

.song-act:hover { transform: scale(1.35); }

.song-heart { color: #ff2f92; }
.song-heart .n { font-size: 11px; color: #c8006f; font-family: monospace; }
.song-add { color: #8c00ff; font-weight: bold; }

/* ===== 播放列表条目样式（面板定位为 fixed，随屏幕滚动始终在视线内，见上方 .pl-queue） ===== */
.pl-queue ul {
	list-style: none;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
}

.pl-queue li {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 8px;
	border-radius: 6px;
	font-size: 12px;
	color: #555;
	cursor: pointer;
}

.pl-queue li:hover { background: rgba(255, 47, 146, 0.1); }

.pl-queue li.active {
	background: linear-gradient(90deg, rgba(255, 47, 146, 0.18), rgba(140, 0, 255, 0.15));
	color: #c8006f;
	font-weight: bold;
}

.pl-queue .q-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-queue .q-del { border: none; background: none; color: #ccc; cursor: pointer; font-size: 12px; }
.pl-queue .q-del:hover { color: #ff2f92; }

/* 歌词 / 播放列表小钮：迪斯科闪光胶囊（与 hud-btn 同款 js-flash 风） */
.pl-queue-btn {
	position: relative;
	overflow: hidden;
	margin-top: 6px;
	padding: 3px 14px;
	font-size: 12px;
	font-family: "Segoe Script", "STXingkai", "华文行楷", "KaiTi", "楷体", cursive;
	color: #fff;
	background: linear-gradient(135deg, #ff2f92, #c8006f 45%, #8c00ff);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.18s ease;
	animation: disco-glow 2.4s ease-in-out infinite;
}

.pl-queue-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 45%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	animation: disco-sweep 2.8s linear infinite;
	pointer-events: none;
}

.pl-queue-btn:hover {
	transform: translateY(-1px) scale(1.06);
	box-shadow: 0 0 12px rgba(255, 47, 146, 0.6);
}

/* 侧栏：登录后的欢迎条 */
.side-welcome {
	text-align: center;
	font-size: 13px;
	color: #555;
	padding: 10px 4px;
}

.side-welcome .who {
	font-weight: bold;
	background: linear-gradient(90deg, #ff2f92, #8c00ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.chalk-hint {
	position: absolute;
	right: 3%;
	bottom: 3%;
	font-family: "Segoe Script", "STXingkai", "华文行楷", "KaiTi", "楷体", cursive;
	font-size: 12px;
	color: rgba(40, 6, 234, 0.5);
	text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
	pointer-events: none;
}

.blackboard td {
	vertical-align: middle;
	/* overflow: hidden; */
}

.blackboard .pen-cell {
	width: 40%;
	vertical-align: middle;
	padding: 0 0 3% 5%;
}

.blackboard .pen {
	/* display: block; */
	width: 100%; /* 涂鸦适当放大，探出列宽也没关系（透明图） */
	height: auto;
	margin-left: 10px;
	vertical-align: top;
	/* margin-left: -10%; */
}

/* 诗歌文字已移除，黑板中部/右侧留给鼠标粉笔写字 */

/* ===== 诗歌列表/详情 ===== */
.poem-item {
	border-bottom: 1px dashed #d9c2f0;
	padding: 10px 0;
}

.poem-item .poem-time {
	font-size: 12px;
	color: #aaa;
}

.poem-item .poem-title {
	margin: 6px 0;
	font-size: 15px;
}

.poem-item .poem-excerpt {
	height: 60px;
	overflow: hidden;
	color: #336699;
	font-size: 14px;
	line-height: 1.6;
}

.poem-item .poem-meta {
	font-size: 13px;
	color: #9999CC;
	margin-top: 6px;
}

.pager {
	margin: 15px 0;
}

.pager a {
	display: inline-block;
	padding: 2px 9px;
	margin-right: 4px;
	border: 1px solid #d9c2f0;
	border-radius: 3px;
	color: #336699;
	text-decoration: none;
	font-size: 13px;
	transition: all 0.2s ease;
}

.pager a.current {
	background: linear-gradient(135deg, #ff2f92, #8c00ff);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(200, 0, 111, 0.35);
}

.pager a:hover {
	border-color: #ff2f92;
	color: #ff2f92;
}

/* ===== 表单（添加诗歌） ===== */
.form-table {
	margin: 0 auto;
	border-collapse: collapse;
}

.form-table td {
	padding: 6px 8px;
	font-size: 14px;
}

.form-table input[type="text"],
.form-table input[type="password"],
.form-table textarea {
	border: 1px solid #d9c2f0;
	border-radius: 3px;
	padding: 4px 6px;
	font-size: 13px;
	font-family: "宋体";
	width: 320px;
	box-sizing: border-box;
	background: #fdfbff;
	color: #333;
	outline: none;
	transition: all 0.2s ease;
}

.form-table input[type="text"]:focus,
.form-table textarea:focus {
	border-color: #ff2f92;
	box-shadow: 0 0 6px rgba(255, 47, 146, 0.3);
}

.form-table textarea {
	height: 180px;
	resize: vertical;
}

/* 页脚：顶部一条彩虹渐变装饰 */
.el-footer {
	text-align: center;
	padding: 20px 0;
	font-size: 12px;
	color: #999999;
}

.el-footer::before {
	content: '';
	display: block;
	width: 240px;
	height: 3px;
	margin: 0 auto 12px;
	border-radius: 2px;
	background: linear-gradient(90deg, #ff004c, #ff9a00, #ffe95c, #8c00ff, #ff00a8);
}

.el-nav {
	margin: 10px 0;
}

.el-nav p {
	margin: 8px 0;
}

.el-nav a {
	font-size: 15px;
}

.el-nav a::before {
	content: '♪ ';
	color: #ff2f92;
}

code {
	background: #f0e6ff;
	padding: 1px 5px;
	border-radius: 3px;
	color: #c8006f;
}

/* ===== 手机端适配（<992px，与 layui xs 断点一致） ===== */
@media (max-width: 991px) {
	.el-header { height: 56px; }
	.el-header .logo-img { height: 40px; }

	.el-main { margin: 10px; padding: 14px; }

	.chalk-hint { font-size: 10px; }

	/* 表单输入不溢出 */
	.form-table input[type="text"],
	.form-table input[type="password"],
	.form-table textarea { width: 100%; }
}

/* ===== 迪斯科风格优化：高级复古土 ===== */

/* 半透明卡片：真正透出 3D 背景（彩色只留一圈细边和微光，不再整片晕染） */
.el-main,
.library-wrap {
	border: 2px solid rgba(222, 110, 168, 0.45);
	background: rgba(255, 255, 255, 0.38);
	backdrop-filter: blur(4px);
	box-shadow:
		0 6px 24px rgba(80, 60, 120, 0.10),
		0 0 14px rgba(255, 47, 146, 0.10);
}

/* 顶部横幅：挂一颗旋转的镜面迪斯科球 */
.el-header { position: relative; overflow: hidden; }

.disco-ball {
	position: absolute;
	top: 6px;
	right: 26px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95) 0 6%, transparent 26%),
		repeating-conic-gradient(from 0deg, #ffe95c 0 12deg, #ff2f92 12deg 24deg, #8c00ff 24deg 36deg, #00c9ff 36deg 48deg);
	background-blend-mode: screen;
	box-shadow:
		0 0 14px rgba(255, 233, 92, 0.9),
		0 0 34px rgba(255, 47, 146, 0.55),
		inset -6px -8px 14px rgba(60, 0, 90, 0.55);
	animation: ball-spin 9s linear infinite;
}

/* 吊线 */
.disco-ball::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	width: 2px;
	height: 8px;
	background: rgba(255, 255, 255, 0.8);
	transform: translateX(-50%);
}

/* 洒下来的旋转光斑 */
.disco-ball::after {
	content: "";
	position: absolute;
	top: 110%;
	left: 50%;
	width: 150px;
	height: 40px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(255, 233, 92, 0.35), transparent 70%);
	animation: ball-light 2.2s ease-in-out infinite;
	pointer-events: none;
}

@keyframes ball-spin {
	to { transform: rotate(360deg); }
}

@keyframes ball-light {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

@media (max-width: 991px) {
	.disco-ball { width: 32px; height: 32px; right: 12px; }
}

/* 满天星闪光层：细小的迪斯科光点缓慢眨眼睛 */
.disco-stars {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle, rgba(255, 233, 92, 0.45) 0 1.5px, transparent 2px),
		radial-gradient(circle, rgba(255, 47, 146, 0.32) 0 1.5px, transparent 2px),
		radial-gradient(circle, rgba(140, 0, 255, 0.28) 0 1.5px, transparent 2px);
	background-size: 260px 260px, 340px 340px, 420px 420px;
	background-position: 20px 40px, 130px 190px, 240px 90px;
	animation: stars-twinkle 4.5s ease-in-out infinite;
}

@keyframes stars-twinkle {
	0%, 100% { opacity: 0.18; }
	50% { opacity: 0.45; }
}

/* 栏目标题：霓虹灯管字 + 两侧小星星 */
.song-col h4,
.rank-col h4 {
	position: relative;
	text-shadow: 0 0 6px rgba(255, 47, 146, 0.2);
}

.song-col h4::before,
.rank-col h4::before,
.song-col h4::after,
.rank-col h4::after {
	content: "✦";
	background: linear-gradient(90deg, #ff9a00, #ff2f92);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 11px;
	vertical-align: middle;
	margin: 0 6px;
}

/* ===== 全站搜索条 ===== */
.el-search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 560px;
	margin: 4px auto 12px;
	padding: 0 8px;
}

.el-search input {
	flex: 1;
	height: 32px;
	padding: 0 14px;
	border: 2px solid transparent;
	border-radius: 16px;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, #ff2f92, #8c00ff) border-box;
	font-size: 13px;
	font-family: "宋体";
	color: #333;
	outline: none;
	box-shadow: 0 0 10px rgba(255, 47, 146, 0.18);
	transition: all 0.2s ease;
}

.el-search input:focus {
	box-shadow: 0 0 16px rgba(255, 47, 146, 0.45);
}

.el-search .el-btn { min-width: 72px; height: 32px; line-height: 32px; border-radius: 16px; }

/* 搜索框容器 + 清空 × */
.el-search-box {
	position: relative;
	flex: 1;
	display: flex;
}

.el-search-box input { padding-right: 34px; }

.el-search-x {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff6fae, #a64dff);
	color: #fff;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.el-search-x:hover {
	transform: translateY(-50%) scale(1.15);
	box-shadow: 0 0 8px rgba(255, 47, 146, 0.5);
}

/* ===== 分享弹窗 / 分享落地播放器：迪斯科暗夜霓虹卡 ===== */
.share-dlg,
.share-player {
	text-align: center;
	color: #fff;
	background: linear-gradient(160deg, rgba(46, 10, 66, 0.97), rgba(18, 4, 34, 0.98));
	border-radius: 16px;
	padding: 16px 16px 14px;
	box-shadow:
		inset 0 0 0 1px rgba(255, 47, 146, 0.4),
		inset 0 0 30px rgba(140, 0, 255, 0.18),
		0 0 26px rgba(255, 47, 146, 0.22);
	position: relative;
	overflow: hidden;
}

/* 星点闪烁背景 */
.share-dlg::before,
.share-player::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.5px 1.5px at 15% 25%, rgba(255, 233, 92, 0.9), transparent 60%),
		radial-gradient(1.5px 1.5px at 80% 15%, rgba(37, 244, 255, 0.8), transparent 60%),
		radial-gradient(2px 2px at 65% 70%, rgba(255, 47, 146, 0.85), transparent 60%),
		radial-gradient(1.5px 1.5px at 30% 80%, rgba(255, 255, 255, 0.7), transparent 60%),
		radial-gradient(1.5px 1.5px at 90% 55%, rgba(255, 233, 92, 0.7), transparent 60%);
	animation: stars-twinkle 2.2s ease-in-out infinite;
	pointer-events: none;
}

.share-dlg > *,
.share-player > * { position: relative; }

.sp-disc {
	width: 190px;
	height: 190px;
	margin: 4px auto 12px;
	border-radius: 50%;
	position: relative;
	background: repeating-radial-gradient(circle at 50% 50%, #131318 0 2px, #20202a 2px 4px);
	box-shadow:
		0 8px 26px rgba(20, 0, 40, 0.45),
		inset 0 0 0 2px rgba(255, 255, 255, 0.06);
	animation: sp-spin 1.8s linear infinite;
	animation-play-state: paused;
}

.sp-disc.spin { animation-play-state: running; }

@keyframes sp-spin {
	to { transform: rotate(360deg); }
}

/* 盘面高光（不随盘旋转） */
.sp-disc::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 210deg, transparent 0deg, rgba(255, 255, 255, 0.14) 24deg, transparent 60deg,
		transparent 180deg, rgba(255, 255, 255, 0.08) 210deg, transparent 250deg);
	pointer-events: none;
}

.sp-label {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 66px;
	height: 66px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: linear-gradient(135deg, #ff2f92, #8c00ff);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 26px;
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* 盘缘小白点：让旋转肉眼可见 */
.sp-mark {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 7px;
	height: 7px;
	margin-left: -3.5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.sp-hole {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #f7f7fb;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.sp-btns {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin: 6px 0 2px;
}

.sp-play {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ff2f92, #8c00ff);
	box-shadow: 0 4px 16px rgba(200, 0, 111, 0.45);
	transition: transform 0.15s;
}

.sp-play:hover { transform: scale(1.08); }

.sp-play svg { width: 24px; height: 24px; fill: #fff; }

.sp-play .ic-pause { display: none; }

.sp-play.playing .ic-play { display: none; }

.sp-play.playing .ic-pause { display: block; }

.sp-heart {
	position: static;
	font-size: 15px;
	padding: 8px 14px;
}

.share-title {
	margin: 2px 0 2px;
	font-size: 18px;
	font-weight: bold;
	font-family: "Segoe Script", "STXingkai", "华文行楷", "KaiTi", "楷体", cursive;
	background: linear-gradient(90deg, #ff2f92, #ffe95c, #25f4ff, #8c00ff, #ff2f92);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: q-head-flow 3s linear infinite;
	filter: drop-shadow(0 0 8px rgba(255, 47, 146, 0.6));
}

.share-title::before { content: '✦ '; -webkit-text-fill-color: #ffe95c; }

.share-title::after { content: ' ✦'; -webkit-text-fill-color: #ffe95c; }

.share-sub { margin: 0 0 8px; font-size: 12px; color: rgba(255, 255, 255, 0.72); }

/* 二维码：旋转彩虹霓虹环 + 白底卡片 */
.share-qr {
	display: inline-block;
	position: relative;
	padding: 5px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 0 22px rgba(255, 47, 146, 0.55), 0 0 44px rgba(140, 0, 255, 0.35);
}

.share-qr::before {
	content: '';
	position: absolute;
	inset: -40%;
	background: conic-gradient(#ff2f92, #ffe95c, #25f4ff, #8c00ff, #ff2f92);
	animation: qr-ring 2.5s linear infinite;
}

@keyframes qr-ring {
	to { transform: rotate(360deg); }
}

.share-qr img {
	position: relative;
	display: block;
	width: 168px;
	height: 168px;
	padding: 8px;
	background: #fff;
	border-radius: 12px;
}

.share-tip { margin: 8px 0 6px; font-size: 12px; color: #ffd6f0; text-shadow: 0 0 8px rgba(255, 47, 146, 0.5); }

/* 分享海报整图：迪斯科装饰 + 歌名 + 二维码一张图，截图/长按直接可发 */
.share-poster {
	display: block;
	width: 300px;
	max-width: 100%;
	margin: 4px auto 8px;
	border-radius: 14px;
	box-shadow: 0 0 26px rgba(255, 47, 146, 0.5), 0 0 52px rgba(140, 0, 255, 0.32);
}

.share-link {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 4px;
}

.share-link input {
	flex: 1;
	height: 30px;
	padding: 0 10px;
	font-size: 12px;
	color: #ffe1f1;
	border: 1px solid rgba(255, 47, 146, 0.5);
	border-radius: 8px;
	outline: none;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 10px rgba(140, 0, 255, 0.15);
}

/* ===== layui 弹层统一皮肤（粉紫霓虹边） ===== */
.el-layer {
	border-radius: 14px !important;
	overflow: hidden;
	border: 2px solid rgba(222, 110, 168, 0.5) !important;
	box-shadow: 0 8px 40px rgba(140, 0, 255, 0.18), 0 0 20px rgba(255, 47, 146, 0.15) !important;
}

.el-layer .layui-layer-title {
	background: linear-gradient(90deg, rgba(255, 111, 174, 0.14), rgba(166, 77, 255, 0.14)) !important;
	border-bottom: 1px solid rgba(222, 110, 168, 0.3) !important;
	color: #c8006f !important;
	font-weight: bold;
}

.el-layer .layui-layer-setwin .layui-layer-close1:hover,
.el-layer .layui-layer-setwin .layui-layer-close2:hover { color: #ff2f92; }

/* ===== 播放中：全站 flash 组件加速迪斯科 ===== */
body.playing .sec-title,
body.playing .pl-mode-name { animation-duration: 0.9s; }

body.playing .hud-btn,
body.playing .pl-queue-btn,
body.playing .q-fab,
body.playing .el-btn.v2,
body.playing .el-btn.v3 { animation-duration: 0.8s; }

body.playing .pl-center { animation-duration: 0.55s; }

body.playing .pl-stage { animation-duration: 1.1s; }

body.playing .disco-stars { animation-duration: 1.6s; }

body.playing .sec-title::before,
body.playing .sec-title::after { animation-duration: 0.9s; }

/* ===== 播放中：深邃蓝夜场 ===== */
/* 天空（html 渐变）切深蓝夜空 */
html.playing {
	background: linear-gradient(180deg, #03071f 0%, #071338 38%, #0b1c4e 72%, #061230 100%);
}

/* 顶栏切深蓝流动霓虹 */
body.playing .el-header {
	background: linear-gradient(90deg, #020e3a, #0a2fa0, #1e6bff, #020e3a);
	background-size: 300% 100%;
}

/* ===== beat 协同：--beat 变量随音乐低频能量跳动，组件同步踩点 =====
   配色统一为深邃蓝：sepia 先把颜色归一到棕褐，再定角 hue-rotate(180deg) 染成深蓝；
   蓝色为常驻基调（弱拍也保持深蓝），beat 只叠加亮度/饱和度/辉光脉冲，
   停止播放 body.playing 移除即还原 */
/* 大标题本身有 neon-breathe 动画会覆盖 filter，播放时整体换成深蓝版呼吸动画 */
body.playing .sec-title { animation-name: neon-breathe-blue; }

@keyframes neon-breathe-blue {
	0%, 100% {
		opacity: 1;
		filter: brightness(calc(0.82 + var(--beat, 0) * 0.5)) sepia(calc(0.95 + var(--beat, 0) * 0.05)) hue-rotate(180deg)
			saturate(calc(2.6 + var(--beat, 0) * 1.4))
			drop-shadow(0 0 calc(4px + var(--beat, 0) * 12px) rgba(50, 120, 255, 0.9));
	}
	50% {
		opacity: 0.82;
		filter: brightness(calc(0.78 + var(--beat, 0) * 0.35)) sepia(calc(0.9 + var(--beat, 0) * 0.1)) hue-rotate(180deg)
			saturate(calc(2.1 + var(--beat, 0) * 1.0))
			drop-shadow(0 0 calc(1px + var(--beat, 0) * 8px) rgba(50, 120, 255, 0.65));
	}
}

/* 各栏目小标题（音乐/冷笑话霸主榜、原创/AI翻唱/冷笑话合集等）常驻深蓝，随节拍呼吸 */
body.playing .rank-col h4,
body.playing .song-cols h4,
body.playing .dlg-head {
	filter: brightness(calc(0.84 + var(--beat, 0) * 0.45)) sepia(calc(0.95 + var(--beat, 0) * 0.05)) hue-rotate(180deg)
		saturate(calc(2.4 + var(--beat, 0) * 1.2))
		drop-shadow(0 0 calc(2px + var(--beat, 0) * 8px) rgba(50, 120, 255, 0.85));
}

/* 播放时全站按钮/组件常驻深邃蓝，节拍增强辉光 */
body.playing .el-btn,
body.playing .hud-btn,
body.playing .pl-heart-btn,
body.playing .pl-queue-btn,
body.playing .song-act,
body.playing .q-fab,
body.playing .q-collapse,
body.playing .q-del,
body.playing .el-search-x,
body.playing .sp-play,
body.playing .dlg-close,
body.playing .pl-center,
body.playing .disco-ball {
	filter: brightness(calc(0.66 + var(--beat, 0) * 0.38)) sepia(calc(0.95 + var(--beat, 0) * 0.05)) hue-rotate(180deg)
		saturate(calc(2.6 + var(--beat, 0) * 1.4))
		drop-shadow(0 0 calc(3px + var(--beat, 0) * 8px) rgba(45, 110, 255, 0.85));
}

/* 卡片/列表项等正文面板：只轻微染冷色，保证内容文字清晰可读（不参与深度染蓝） */
body.playing .dlg-item,
body.playing .joke-item,
body.playing .song-list li,
body.playing .dlg-box,
body.playing .pl-queue {
	filter: brightness(calc(1.04 + var(--beat, 0) * 0.12)) sepia(calc(0.25 + var(--beat, 0) * 0.15)) hue-rotate(180deg)
		saturate(calc(1.05 + var(--beat, 0) * 0.3));
}

/* 播放时夜景变暗：四栏歌曲列表与冷笑话摘要背景提到近乎不透明、文字加深，保证可读 */
body.playing .song-list li,
body.playing .joke-item {
	background: rgba(255, 255, 255, 0.94);
	color: #2a2a33;
}

/* 播放时点赞爱心特效与爱心按钮转蓝色系 */
body.playing .heart-fly {
	color: #3a8cff;
	text-shadow: 0 0 8px rgba(70, 140, 255, 0.95);
}
body.playing .song-heart { color: #3a8cff; }
body.playing .song-heart .n { color: #2060d0; }
body.playing .pl-heart-btn {
	color: #3a8cff;
	text-shadow: 0 0 8px rgba(70, 140, 255, 0.85);
}

body.playing .el-header {
	box-shadow: 0 2px calc(10px + var(--beat, 0) * 34px) rgba(70, 130, 255, calc(0.3 + var(--beat, 0) * 0.5));
}

body.playing .el-search input {
	box-shadow: 0 0 calc(10px + var(--beat, 0) * 26px) rgba(70, 140, 255, calc(0.2 + var(--beat, 0) * 0.5));
}

body.playing .rank-wrap .rk1,
body.playing .rank-wrap .rk2,
body.playing .rank-wrap .rk3 {
	filter: brightness(calc(1 + var(--beat, 0) * 0.8));
}

body.playing .logo {
	filter: drop-shadow(0 0 calc(var(--beat, 0) * 16px) rgba(90, 160, 255, 0.85));
}

body.playing .pl-info {
	filter: brightness(calc(1 + var(--beat, 0) * 0.4));
}

.song-share { color: #f09000; font-weight: bold; }

/* ===== 区块霓虹大标题（替换老 SWF 文字特效） ===== */
.sec-title {
	position: relative;
	margin: 2px 0 12px;
	text-align: center;
	font-family: "Segoe Script", "STXingkai", "华文行楷", "KaiTi", "楷体", cursive;
	font-size: 26px;
	font-weight: bold;
	letter-spacing: 6px;
	background: linear-gradient(90deg, #f09000, #e8558f 35%, #7a3fd1 70%, #2aa8d8);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 5px rgba(255, 47, 146, 0.28));
	animation: neon-breathe 2.4s ease-in-out infinite;
}

.sec-title::before,
.sec-title::after {
	content: "✦";
	background: linear-gradient(135deg, #ffe95c, #ff2f92);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 16px;
	vertical-align: middle;
	margin: 0 12px;
	letter-spacing: 0;
	animation: stars-twinkle 2.2s ease-in-out infinite;
}

/* 页脚备案号 */
.el-footer .beian {
	margin-top: 4px;
	font-size: 12px;
}

.el-footer .beian a {
	color: #999;
	text-decoration: none;
	transition: all 0.2s ease;
}

.el-footer .beian a:hover {
	color: #ff2f92;
	text-shadow: 0 0 8px rgba(255, 47, 146, 0.45);
}

/* 搜索结果分组标题 */
.search-sec {
	margin: 10px 0 6px;
	font-size: 13px;
	font-weight: bold;
	background: linear-gradient(90deg, #ff9a00, #ff2f92, #8c00ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ===== 欢迎条小头像 ===== */
.side-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, #ff2f92, #8c00ff) border-box;
	box-shadow: 0 0 8px rgba(255, 47, 146, 0.5);
	margin-bottom: 6px;
	cursor: pointer;
}

.who { cursor: pointer; }

/* ===== 个人主页大头像 ===== */
.pf-avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, #ff2f92, #ff9a00, #8c00ff) border-box;
	box-shadow: 0 0 16px rgba(255, 47, 146, 0.45);
}

.pf-avatar-ph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	background:
		linear-gradient(135deg, #ffe3f1, #f0e6ff) padding-box,
		linear-gradient(135deg, #ff2f92, #8c00ff) border-box;
}

/* ===== 播放列表面板：我的列表工具条 ===== */
.q-pl-bar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 8px;
	background: rgba(255, 47, 146, 0.06);
	border-bottom: 1px dashed #f0c8e0;
}

.q-pl-bar select {
	flex: 1;
	min-width: 0;
	height: 22px;
	font-size: 12px;
	font-family: "宋体";
	border: 1px solid #e0d0ee;
	border-radius: 6px;
	color: #555;
	background: #fff;
	outline: none;
}

.q-pl-bar button {
	border: none;
	border-radius: 6px;
	padding: 2px 7px;
	font-size: 11px;
	font-family: "宋体";
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #c44dff, #8c00ff);
	transition: transform 0.15s ease;
}

.q-pl-bar button:hover { transform: scale(1.1); }

.q-pl-bar #btnPlLoad,
.q-pl-bar #btnPlSave {
	background: linear-gradient(135deg, #ff3b5c, #c8006f);
}

/* ===== 作品管理条目操作钮 ===== */
.work-acts {
	float: right;
	white-space: nowrap;
}

.work-acts .song-act { font-size: 15px; padding: 0 3px; }

/* ===== 哥特标题字体应用（置于文件末尾，压过前文同优先级 font-family） =====
   拉丁字符用 Pirata One（Blackletter 哥特体），中文用站酷庆科黄油体；
   仅播放时生效，暂停全部恢复默认普通字体 */
body.playing .sec-title,
body.playing .rank-col h4,
body.playing .song-cols h4,
body.playing .dlg-head,
body.playing .share-title,
body.playing .pl-title,
body.playing .el-header .logo-text {
	font-family: "Pirata One", "ZCOOL QingKe HuangYou", "STXinwei", "华文新魏", "KaiTi", "楷体", serif;
	letter-spacing: 2px;
}

/* 播放中：列表/正文/按钮文本也切酷字体（暂停恢复默认宋体） */
body.playing .song-list li,
body.playing .rank-list li,
body.playing .joke-item,
body.playing .dlg-item,
body.playing .pl-queue,
body.playing .song-pager,
body.playing .el-btn,
body.playing .hud-btn,
body.playing .pl-queue-btn,
body.playing .q-fab,
body.playing .q-collapse,
body.playing .pl-mode-name {
	font-family: "Pirata One", "ZCOOL QingKe HuangYou", "STXinwei", "华文新魏", "KaiTi", "楷体", serif;
	letter-spacing: 1px;
}

/* ===== 磁带随身听风播放列表（深色拉丝金属机身 + 磁带观察窗 + 手写曲目纸套） ===== */
.pl-queue {
	width: 322px;
	max-height: 430px;
	border: 1px solid #4a4f5a;
	border-radius: 18px;
	background:
		radial-gradient(circle 5px at 15px 15px, #0f1114 45%, #596070 52%, #0f1114 68%, transparent 72%),
		radial-gradient(circle 5px at calc(100% - 15px) 15px, #0f1114 45%, #596070 52%, #0f1114 68%, transparent 72%),
		radial-gradient(circle 5px at 15px calc(100% - 15px), #0f1114 45%, #596070 52%, #0f1114 68%, transparent 72%),
		radial-gradient(circle 5px at calc(100% - 15px) calc(100% - 15px), #0f1114 45%, #596070 52%, #0f1114 68%, transparent 72%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 4px),
		linear-gradient(160deg, #3c414c, #25282f 58%, #1a1c22);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
	backdrop-filter: none;
	animation: none;
}

.pl-queue.playing { animation: none; }

/* 品牌条：浮雕金属字 + 指示灯 */
.pl-queue .q-head {
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.55);
	border-radius: 17px 17px 0 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
	animation: none;
}

.wm-brand {
	flex: 1;
	font: italic 700 15px/1.1 Arial, Helvetica, sans-serif;
	letter-spacing: 2.5px;
	color: #dde1e8;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16), 0 -1px 1px rgba(0, 0, 0, 0.85);
}

.wm-brand em {
	display: block;
	margin-top: 2px;
	font: 400 7.5px/1 Arial, Helvetica, sans-serif;
	font-style: normal;
	letter-spacing: 3.5px;
	color: #8f96a3;
}

.wm-led {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4a2a12;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
	transition: all 0.3s ease;
}

.pl-queue.playing .wm-led {
	background: #7cff6b;
	box-shadow: 0 0 8px #7cff6b, 0 0 16px rgba(124, 255, 107, 0.6);
	animation: wm-led-blink 1.2s ease-in-out infinite;
}

@keyframes wm-led-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.pl-queue .q-collapse {
	background: linear-gradient(180deg, #4a505c, #2c3038);
	border: 1px solid #14161a;
	color: #cfd4dd;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pl-queue .q-collapse:hover { background: linear-gradient(180deg, #5a6070, #343945); }
.pl-queue .q-collapse:active { transform: translateY(1px); box-shadow: none; }

/* 磁带观察窗：内凹黑玻 + 斜向玻璃反光 */
.wm-window {
	position: relative;
	height: 94px;
	margin: 12px 14px 6px;
	border: 1px solid rgba(0, 0, 0, 0.65);
	border-radius: 12px;
	background: linear-gradient(180deg, #0b0c10, #181a21);
	box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.wm-window::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.07) 48%, transparent 56%);
	pointer-events: none;
	z-index: 3;
}

/* 卷轴：六辐飞轮，默认停转，播放时转动（play-state 保持角度连续） */
.wm-reel {
	position: absolute;
	top: 44%;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 2px solid #14161a;
	border-radius: 50%;
	background: repeating-conic-gradient(#e3e6ec 0 18deg, #7a808d 18deg 60deg);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.6);
	animation: wm-spin 2.1s linear infinite paused;
	z-index: 2;
}

.wm-reel.l { left: 30px; }
.wm-reel.r { right: 30px; }

.wm-reel i {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 13px;
	height: 13px;
	margin: -6.5px 0 0 -6.5px;
	border-radius: 50%;
	background: #14161a;
	box-shadow: inset 0 0 0 3px #3c414c;
}

.pl-queue.playing .wm-reel { animation-play-state: running; }
.pl-queue.playing .wm-reel.r { animation-duration: 2.9s; } /* 收带轮转得慢，模拟真实磁带 */

@keyframes wm-spin { to { transform: rotate(360deg); } }

/* 磁带：两轮之间的深棕带体 */
.wm-tape {
	position: absolute;
	left: 55px;
	right: 55px;
	top: 44%;
	height: 3px;
	margin-top: -1.5px;
	background: #2a1a10;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
	z-index: 1;
}

/* 窗口底部手写标签 */
.wm-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	text-align: center;
	font-family: "Segoe Script", "STXingkai", "华文行楷", "KaiTi", "楷体", cursive;
	font-size: 12.5px;
	color: #ffd6f0;
	text-shadow: 0 0 8px rgba(255, 47, 146, 0.6);
	z-index: 2;
}

/* 我的列表工具条：随身听物理按键 */
.q-pl-bar {
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.28);
	border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.q-pl-bar select {
	height: 24px;
	color: #cfd4dd;
	background: #14161b;
	border: 1px solid #3c414c;
	border-radius: 4px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.q-pl-bar button {
	color: #e6e9ef;
	background: linear-gradient(180deg, #4a505c, #2c3038);
	border: 1px solid #14161a;
	border-radius: 4px;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.q-pl-bar button:active { transform: translateY(1px); box-shadow: none; }

.q-pl-bar #btnPlLoad,
.q-pl-bar #btnPlSave {
	background: linear-gradient(180deg, #ff5aa8, #c8006f);
}

/* 曲目纸套：横格信纸 + 手写体墨水字 */
.pl-queue ul {
	min-height: 118px;
	margin: 6px 14px 8px;
	padding: 6px 10px;
	border-radius: 8px;
	background:
		repeating-linear-gradient(180deg, transparent 0 25px, rgba(120, 90, 160, 0.2) 25px 26px),
		linear-gradient(180deg, #f6eeda, #eee2c5);
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.28);
}

.pl-queue li {
	gap: 8px;
	padding: 0 6px;
	line-height: 26px;
	font-family: "Segoe Script", "STXingkai", "华文行楷", "KaiTi", "楷体", cursive;
	font-size: 13.5px;
	color: #4a3b66;
	border-radius: 4px;
}

.pl-queue li:hover { background: rgba(140, 0, 255, 0.08); }

/* 当前曲目：荧光笔划线 + 序号换成跳动小箭头 */
.pl-queue li.active {
	background: linear-gradient(90deg, rgba(255, 47, 146, 0.3), rgba(140, 0, 255, 0.16));
	color: #c8006f;
	font-weight: bold;
}

.pl-queue li.active .song-no { display: none; }

.pl-queue li.active::before {
	content: "▶";
	margin-right: 2px;
	font-size: 11px;
	color: #ff2f92;
}

.pl-queue.playing li.active::before { animation: wm-blink 1s steps(2, jump-none) infinite; }

@keyframes wm-blink { 50% { opacity: 0.25; } }

.pl-queue .q-del { color: #b3a78b; }
.pl-queue .q-del:hover { color: #ff2f92; }

/* 机底丝印 */
.wm-foot {
	padding: 0 0 10px;
	text-align: center;
	font: 400 8.5px/1 Arial, Helvetica, sans-serif;
	letter-spacing: 4px;
	color: #7d8492;
	text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.8);
}

/* 收起态：右下角迷你磁带 */
.q-fab {
	padding: 8px 16px 8px 42px;
	border: 1px solid #4a4f5a;
	border-radius: 12px;
	background: linear-gradient(160deg, #3c414c, #20232b);
	color: #ffd6f0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 14px rgba(255, 47, 146, 0.35);
	animation: none;
}

.q-fab::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -4.5px;
	border-radius: 50%;
	background: #dfe2e8;
	box-shadow: 15px 0 0 #7a808d;
}
