/* 🧰 My Pet Detective Playlist */
.pl-body { background: radial-gradient(circle at 50% 0, #3b1a6e, #12082a 60%) fixed, #12082a; }
.pl { max-width: 1040px; margin: 0 auto; padding: 18px 16px 40px; color: #fff; }
.pl h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; margin: 0 0 10px; }
.pl h1 span { background: linear-gradient(90deg, #ff6bd5, #ffd23f, #6be3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl h2 { font-size: 1.4rem; margin: 0 0 8px; }
.pl-hero { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; margin: 8px 0 22px; }
.pl-chest { position: relative; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #ffd23f55, #8b5cf633 55%, transparent 70%), #24104a; box-shadow: 0 0 0 3px #ffd23f55, 0 18px 40px #0008; }
.pl-chest img#chest-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-chest.has-art .pl-chest-emoji, .pl-chest img#chest-img[hidden] { display: none; }
.pl-chest-emoji { font-size: 8rem; filter: drop-shadow(0 10px 20px #000a); }
.pl-covers { position: absolute; inset: auto 0 10% 0; display: flex; justify-content: center; }
.pl-covers img { width: 22%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid #fff; margin: 0 -4%;
  transform: rotate(calc((var(--i) - 2.5) * 7deg)) translateY(calc(var(--i) * 1px)); box-shadow: 0 6px 14px #0009; }
.pl-lead { font-size: 1.15rem; line-height: 1.45; color: #f1e6ff; margin: 0 0 14px; }
.pl-save, .pl-install, .pl-net-btn { display: inline-block; border: 0; border-radius: 16px; padding: 14px 20px; font-family: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.pl-save { background: linear-gradient(135deg, #ff6bd5, #8b5cf6); color: #fff; box-shadow: 0 8px 24px #ff6bd555; }
.pl-save:disabled { opacity: .6; cursor: progress; }
.pl-install { margin-top: 10px; background: #2a1a4a; color: #fff; border: 2px solid #6b4fa3; }
.pl-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: #ffe27a; }
.pl-ios, .pl-small { color: #cdbbe8; }
.pl-player { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin: 0 0 18px;
  background: #1d0f3acc; backdrop-filter: blur(8px); border: 1px solid #4b3577; border-radius: 18px; }
.pl-now-cover { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #2a1a4a; }
.pl-now { flex: 1; min-width: 0; }
.pl-now-title { margin: 0 0 6px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bar { height: 6px; border-radius: 3px; background: #ffffff22; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff6bd5, #ffd23f); }
.pl-ctl { display: flex; gap: 6px; }
.pl-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #2a1a4a; color: #fff; font-size: 1.1rem; cursor: pointer; }
.pl-ctl .pl-play { width: 52px; height: 52px; background: linear-gradient(135deg, #ff6bd5, #8b5cf6); font-size: 1.3rem; }
.pl-ctl [aria-pressed="true"] { background: #6b4fa3; }
.pl-net { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin: 0 0 24px; border-radius: 20px; background: linear-gradient(135deg, #2b6b4f, #1c3f6e); }
.pl-net img { width: 86px; height: auto; flex: none; filter: drop-shadow(0 6px 14px #0008); }
.pl-net.is-off { background: linear-gradient(135deg, #3a2a55, #241a3a); }
.pl-net.pop img { animation: plpop .9s ease; }
@keyframes plpop { 30% { transform: translateY(-14px) scale(1.12) rotate(-6deg); } 60% { transform: translateY(0) scale(1); } }
.pl-net-say { margin: 0 0 10px; font-size: 1.1rem; font-weight: 600; }
.pl-net-btn { background: linear-gradient(135deg, #3ee08f, #19a96b); color: #04210f; }
.pl-net-btn.is-grey { background: #4a3d63; color: #d8cdee; }
.pl-songs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pl-song { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: #ffffff0d; border: 1px solid #ffffff1a; }
.pl-song.is-saved { border-color: #3ee08f88; background: #3ee08f14; }
.pl-song label { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 52px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; cursor: pointer; }
.pl-song input { grid-row: 1 / 3; width: 22px; height: 22px; accent-color: #ff6bd5; }
.pl-song img { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.pl-song-t { font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.pl-song-s { font-size: .85rem; color: #7ff0b4; }
.pl-song-play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #2a1a4a; color: #fff; cursor: pointer; }
.pl-how { margin-top: 28px; color: #e6dbf7; }
.pl-how li { margin: 6px 0; line-height: 1.45; }
.pl-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
@media (max-width: 700px) {
  .pl-hero { grid-template-columns: 1fr; }
  .pl-chest { max-width: 240px; margin: 0 auto; width: 100%; }
  .pl-hero-words { text-align: center; }
  .pl-ctl button { width: 40px; height: 40px; }
  .pl-now-cover { display: none; }
}
