.playlist-page { position: relative; background: radial-gradient(circle at 50% 10%, rgba(6,78,59,0.08) 0%, rgba(245,158,11,0.03) 40%, rgba(0,0,0,0) 70%); }

	.playlist-card {
		background: var(--text); border-radius: 22px; box-shadow: 0 18px 50px rgba(6,78,59,0.16);
		overflow: hidden; border: 1px solid rgba(6,78,59,0.10);
	}

	/* Player ala Spotify — full width, semua layer (murottal & adzan) */
	.playlist-player {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080;
		width: 100%; margin: 0;
		background: rgba(12,16,14,0.96);
		backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
		border-top: 1px solid var(--line-soft);
		box-shadow: 0 -14px 40px rgba(0,0,0,0.45);
		color: #fff; padding: 12px 48px;
		display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
		align-items: center; gap: 20px;
	}
	.pp-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
	.pp-art {
		width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
		background: linear-gradient(135deg, #064e3b, #059669); color: #fff; font-size: 1.45rem;
		display: inline-flex; align-items: center; justify-content: center;
		box-shadow: 0 8px 22px rgba(5,150,105,0.35);
	}
	.pp-art.adhan { background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 8px 22px rgba(245,158,11,0.4); }
	.pp-meta { min-width: 0; }
	.pp-title { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pp-live {
		/* Default tersembunyi; JS (#pp-live) yang memunculkan saat adzan berjalan. */
		display: none; align-items: center; gap: 6px; margin-top: 3px;
		font-size: .62rem; font-weight: 800; letter-spacing: 1.5px; color: #fbbf24;
		cursor: pointer; touch-action: manipulation;
		-webkit-tap-highlight-color: transparent; user-select: none;
	}
	.pp-live-dot { width: 7px; height: 7px; border-radius: 999px; background: #f59e0b; animation: livePulse 1.1s ease-in-out infinite; }
	@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
	.pp-center { display: flex; flex-direction: column; align-items: center; gap: 7px; }
	.pp-controls { display: flex; align-items: center; gap: 12px; }
	.pp-btn {
		width: 38px; height: 38px; border-radius: 999px; border: none; cursor: pointer;
		background: transparent; color: #9ca3af; font-size: 1.2rem;
		display: inline-flex; align-items: center; justify-content: center;
		transition: color .18s, transform .18s, background .18s;
	}
	.pp-btn:hover { color: #fff; transform: scale(1.08); }
	.pp-btn.pp-play {
		background: #059669; color: #fff; width: 48px; height: 48px; font-size: 1.5rem;
		box-shadow: 0 8px 20px rgba(5,150,105,0.45);
	}
	.pp-btn.pp-play:hover { background: #10b981; transform: scale(1.05); }
	.pp-progress { display: flex; align-items: center; gap: 10px; width: min(540px, 44vw); font-size: .66rem; color: #9ca3af; font-variant-numeric: tabular-nums; }
	.pp-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; cursor: pointer; transition: height .15s; }
	.pp-bar:hover { height: 6px; }
	.pp-bar > div { height: 100%; width: 0%; background: #10b981; border-radius: 4px; }
	.pp-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
	.pp-loc-badge {
		font-size: .72rem; padding: 4px 12px; border-radius: 999px;
		white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-weight: 600;
		text-decoration: none; transition: all .2s;
	}
	.pp-loc-badge.active {
		color: #34d399; background: rgba(16,185,129,0.18); border: 1px solid rgba(16,185,129,0.5);
	}
	.pp-loc-badge.active:hover {
		background: rgba(16,185,129,0.35); color: #fff;
	}
	.pp-loc-badge.inactive {
		color: #f87171; background: rgba(239,68,68,0.20); border: 1px solid rgba(239,68,68,0.5);
	}
	.pp-loc-badge.inactive:hover {
		background: rgba(239,68,68,0.35); color: #fff;
	}
	.pp-adhan-badge {
		font-size: .72rem; color: #fbbf24; background: rgba(245,158,11,0.14);
		border: 1px solid rgba(245,158,11,0.30); padding: 4px 12px; border-radius: 999px;
		white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-weight: 600;
		cursor: pointer; touch-action: manipulation;
		-webkit-tap-highlight-color: transparent; user-select: none;
	}
	.pp-count { font-size: .72rem; color: #d1d5db; background: var(--line); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
	.pl-item .pl-check { flex-shrink: 0; width: 18px; height: 18px; cursor: pointer; }
	.pl-dur { font-size: .75rem; color: #94a3b8; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 38px; text-align: right; }
	.pl-hint { font-size: .78rem; }
	.pp-hint { font-size: .78rem; }
	@media (max-width: 900px) {
		.playlist-player { grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 10px 34px; }
		.pp-center { grid-row: 2; grid-column: 1 / -1; }
		.pp-progress { width: 100%; }
		.pp-art { width: 44px; height: 44px; font-size: 1.2rem; }
	}

	/* Toolbar + List */
	.playlist-toolbar {
		display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
		padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
	}
	.playlist-toolbar .form-check-label { font-size: .85rem; font-weight: 600; color: #334155; }
	.playlist-list { max-height: 60vh; overflow-y: auto; }
	.pl-item {
		display: flex; align-items: center; gap: 12px; padding: 10px 20px;
		border-bottom: 1px solid #f1f5f9; transition: background .15s; cursor: pointer;
	}
	.pl-item:hover { background: #f8fafc; }
	.pl-item.playing { background: #ecfdf5; }
	.pl-item .pl-num {
		width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
		background: linear-gradient(135deg, #064e3b, #059669); color: #fff;
		display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
	}
	.pl-item.playing .pl-num { background: linear-gradient(135deg, #d97706, #f59e0b); }
	.pl-name { flex: 1; min-width: 0; }
	.pl-name .nm { font-weight: 700; color: #0f172a; font-size: .92rem; }
	.pl-name .fn { font-size: .72rem; color: #94a3b8; }
	.pl-eq { display: none; gap: 3px; align-items: flex-end; height: 16px; }
	.pl-item.playing .pl-eq { display: inline-flex; }
	.pl-eq span { width: 4px; background: #d97706; border-radius: 2px; animation: eqB 1s ease-in-out infinite; }
	.pl-eq span:nth-child(2) { animation-delay: .2s; }
	.pl-eq span:nth-child(3) { animation-delay: .4s; }
	@keyframes eqB { 0%,100% { height: 5px; } 50% { height: 16px; } }

	/* =================================================================
	   Tema gelap — kartu daftar memakai permukaan tema, bukan `var(--text)`
	   (yang bernilai putih di tema gelap) agar toolbar & baris tetap gelap.
	   ================================================================= */
	html.theme-dark .playlist-card {
		background: var(--surface-card);
		border-color: var(--line);
		box-shadow: 0 18px 50px rgba(0,0,0,.45);
	}
	html.theme-dark .playlist-toolbar {
		background: rgba(255,255,255,.04);
		border-bottom-color: var(--line);
	}
	html.theme-dark .playlist-toolbar .form-check-label { color: var(--text-muted); }
	html.theme-dark .pl-item { border-bottom-color: rgba(255,255,255,.06); }
	html.theme-dark .pl-item:hover { background: rgba(255,255,255,.04); }
	html.theme-dark .pl-item.playing { background: rgba(16,185,129,.12); }
	html.theme-dark .pl-name .nm { color: var(--text); }
	html.theme-dark .pl-name .fn { color: var(--text-faint); }
	/* Bootstrap .text-muted memakai !important; samakan dengan token tema. */
	html.theme-dark .playlist-card .text-muted { color: var(--text-muted) !important; }


