/* ===== Argon 定制扩展样式：播放器 / Live2D / 声明弹窗 =====

   1) APlayer 固定在屏幕左下角（不再居中）。
   2) 声明改为右下角小卡片，不进全屏遮罩、不锁滚动。 */

/* ---- 播放器：沿用 APlayer 自带的左下角布局，只做细节修饰 ---- */
.aplayer.aplayer-fixed {
	z-index: 900;
}
/* 歌词层跟播放器同宽（默认是整屏宽，会横穿页面） */
.aplayer.aplayer-fixed:not(.aplayer-narrow) .aplayer-lrc {
	left: 0;
	right: auto;
	width: 400px;
	max-width: 100vw;
	margin: 0;
}
.aplayer.aplayer-fixed .aplayer-list {
	border-radius: var(--card-radius, 4px) var(--card-radius, 4px) 0 0;
}
/* 列表展开时限制高度，避免顶到导航栏 */
.aplayer.aplayer-fixed .aplayer-list ol {
	max-height: 260px;
}
html.darkmode .aplayer.aplayer-fixed .aplayer-body,
html.darkmode .aplayer.aplayer-fixed .aplayer-list {
	background: #2b2b2b;
	color: #ddd;
}
html.darkmode .aplayer .aplayer-info .aplayer-music .aplayer-title {
	color: #eee;
}
html.darkmode .aplayer .aplayer-list ol li {
	border-top-color: #3a3a3a;
}
html.darkmode .aplayer .aplayer-list ol li:hover {
	background: #363636;
}
/* ---- Live2D ---- */
#waifu {
	z-index: 2;
}
#waifu-toggle {
	background-color: var(--themecolor, #5e72e4);
	border-radius: 0 5px 5px 0;
}
@media (max-width: 768px) {
	#waifu,
	#waifu-toggle {
		display: none !important;
	}
}

/* ---- Cookie / AI 声明：右下角小卡片 ---- */
.argon-consent {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2000;
	display: none;
	width: 288px;
	max-width: calc(100vw - 24px);
}
.argon-consent.is-open {
	display: block;
}
/* 角落卡片不用遮罩 */
.argon-consent-mask {
	display: none !important;
}
.argon-consent-card {
	position: relative;
	padding: 14px 16px 13px;
	background: #fff;
	border-radius: var(--card-radius, 4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.argon-consent.is-open .argon-consent-card {
	opacity: 1;
	transform: translateY(0);
}
.argon-consent-head {
	display: flex;
	align-items: center;
	margin-bottom: 7px;
}
.argon-consent-icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin-right: 9px;
	border-radius: 50%;
	line-height: 26px;
	text-align: center;
	font-size: 12px;
	color: var(--themecolor, #5e72e4);
	background: rgba(var(--themecolor-rgbstr, 94, 114, 228), 0.12);
}
.argon-consent-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: inherit;
}
.argon-consent-text {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.7;
	color: inherit;
	opacity: 0.62;
	text-align: left;
}
.argon-consent-btn {
	display: block;
	width: 100%;
	height: 32px;
	padding: 0 10px;
	line-height: 32px;
	font-size: 13px;
	background: var(--themecolor, #5e72e4);
	border-color: var(--themecolor, #5e72e4);
}
.argon-consent-btn:hover {
	background: var(--themecolor-dark, #4b5fd0);
	border-color: var(--themecolor-dark, #4b5fd0);
}
html.darkmode .argon-consent-card {
	background: #2b2b2b;
	color: #e6e6e6;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
html.darkmode .argon-consent-text {
	color: #cfcfcf;
	opacity: 1;
}
html.darkmode .argon-consent-icon {
	background: rgba(var(--themecolor-rgbstr, 94, 114, 228), 0.22);
}
@media (max-width: 768px) {
	/* 手机端：贴底、抬高避让播放器，高度控制在屏幕约四分之一 */
	.argon-consent {
		left: 12px;
		right: 12px;
		bottom: 76px;
		width: auto;
	}
	.argon-consent-card {
		padding: 12px 14px 11px;
	}
	.argon-consent-text {
		font-size: 11.5px;
		line-height: 1.65;
		margin-bottom: 9px;
	}
	.argon-consent-btn {
		height: 30px;
		line-height: 30px;
		font-size: 12.5px;
	}
}
