/* 我的收藏 · 音乐 Tab */
.haya-fav-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.haya-fav-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--color-border, #e2e8f0);
	background: var(--color-surface, #fff);
	color: var(--color-text, #0f172a);
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
}
.haya-fav-tab:hover {
	border-color: rgba(var(--color-primary-rgb, 37, 99, 235), .45);
	color: var(--color-primary, #2563eb);
}
.haya-fav-tab.is-active {
	background: rgba(var(--color-primary-rgb, 37, 99, 235), .12);
	border-color: rgba(var(--color-primary-rgb, 37, 99, 235), .35);
	color: var(--color-primary, #2563eb);
}
.haya-fav-tab-count {
	min-width: 18px;
	height: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(15, 23, 42, .08);
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	font-weight: 600;
}
.haya-fav-tab.is-active .haya-fav-tab-count {
	background: rgba(var(--color-primary-rgb, 37, 99, 235), .18);
}
.haya-fav-music-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.haya-fav-music-toolbar-hint {
	font-size: 12px;
	color: var(--color-text-light, #64748b);
}
.haya-fav-playall {
	border: 0;
	border-radius: 10px;
	padding: 8px 14px;
	background: var(--color-primary, #2563eb);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.haya-fav-playall:disabled {
	opacity: .45;
	cursor: not-allowed;
}
.haya-fav-music-list {
	margin: 0;
	padding: 0;
}
.haya-fav-music-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	border-bottom: 1px solid var(--color-border, #e2e8f0);
	border-radius: 10px;
	transition: background .15s ease;
}
.haya-fav-music-item:hover {
	background: rgba(var(--color-primary-rgb, 37, 99, 235), .05);
}
.haya-fav-music-item.is-playing {
	background: rgba(var(--color-primary-rgb, 37, 99, 235), .1);
}
.haya-fav-music-cover-wrap {
	position: relative;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	cursor: pointer;
	background: #cbd5e1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
.haya-fav-music-cover-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .28);
}
.haya-fav-music-item.is-playing .haya-fav-music-cover-wrap::after {
	background: rgba(22, 163, 74, .35);
}
.haya-fav-music-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.haya-fav-music-play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
	pointer-events: none;
}
.haya-fav-music-meta { flex: 1; min-width: 0; }
.haya-fav-music-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: inherit !important;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.haya-fav-music-title:hover {
	color: var(--color-primary, #2563eb) !important;
	text-decoration: underline !important;
}
.haya-fav-music-sub {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 3px;
	font-size: 12px;
	color: var(--color-text-light, #64748b);
}
.haya-fav-music-item.is-playing .haya-fav-music-sub-text {
	color: var(--color-primary, #2563eb);
}
.haya-fav-music-remove {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--color-text-light, #64748b);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}
.haya-fav-music-remove:hover {
	background: rgba(239, 68, 68, .1);
	color: #ef4444;
}
.haya-fav-music-empty { font-size: 14px; }

/* 底部迷你播放条 */
.haya-fav-mini-player {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 1200;
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.94);
	color: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(10px);
	overflow: hidden;
}
.haya-fav-mini-player[hidden] { display: none !important; }
.haya-fav-mini-main {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px 6px;
}
.haya-fav-mini-cover {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: #334155;
}
.haya-fav-mini-meta { flex: 1; min-width: 0; }
.haya-fav-mini-title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.haya-fav-mini-title:hover { text-decoration: underline !important; }
.haya-fav-mini-sub { font-size: 11px; opacity: .72; margin-top: 2px; }
.haya-fav-mini-controls {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}
.haya-fav-mini-prev,
.haya-fav-mini-next,
.haya-fav-mini-toggle,
.haya-fav-mini-close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.haya-fav-mini-toggle {
	width: 38px;
	height: 38px;
	background: var(--color-primary, #2563eb);
	font-size: 14px;
}
.haya-fav-mini-prev:disabled,
.haya-fav-mini-next:disabled {
	opacity: .35;
	cursor: not-allowed;
}
.haya-fav-mini-progress {
	height: 3px;
	background: rgba(255, 255, 255, 0.12);
	cursor: pointer;
}
.haya-fav-mini-progress-bar {
	height: 100%;
	width: 0;
	background: #3b82f6;
	border-radius: 0 2px 2px 0;
}
body.haya-fav-playing-pad {
	padding-bottom: 88px;
}
html[data-theme="dark"] .haya-fav-tab,
html.zaesky-dark .haya-fav-tab {
	background: var(--color-surface-2, #252a31);
}
html[data-theme="dark"] .haya-fav-mini-player,
html.zaesky-dark .haya-fav-mini-player {
	background: rgba(30, 35, 42, 0.96);
}
@media (max-width: 576px) {
	.haya-fav-music-item { padding: 10px 4px; gap: 10px; }
	.haya-fav-music-cover-wrap { width: 48px; height: 48px; }
}
