/*
    헤더 '내 플리' 아이콘 + 창 (fragments/header.html [data-hpl], 동작 js/my-pl.js, 시안 docs/music-sian/shots/mine-*-icon)
    PC: 아이콘 아래로 펼침 · 폰: 화면 너비에 맞춘 창
*/
.hpl { position: relative; }
.hpl__btn { position: relative; }
.hpl__btn[aria-expanded="true"] { color: var(--text-strong); background: var(--surface-2); }

/* 재생 중 표시: 아이콘 오른쪽 아래 작은 막대 */
.hpl__eq { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.hpl__eq[hidden] { display: none; }
.hpl__eq b, .hpl-row__eq b { width: 2px; background: var(--primary); border-radius: 1px; animation: hplEq 1s infinite ease-in-out; }
.hpl__eq b:nth-child(2), .hpl-row__eq b:nth-child(2) { animation-delay: -.4s; }
.hpl__eq b:nth-child(3), .hpl-row__eq b:nth-child(3) { animation-delay: -.7s; }
.hpl__eq.paused b, .hpl-row.paused .hpl-row__eq b { animation-play-state: paused; }
@keyframes hplEq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.hpl__pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: var(--z-pop); width: 300px; padding: var(--sp-2); background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.85); animation: umenuIn .18s cubic-bezier(.2,.8,.2,1); }
.hpl__pop[hidden] { display: none; }
.hpl__h { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sp-3) 6px; }
.hpl__h b { font-size: var(--fs-base); color: var(--text-strong); }
.hpl__h span { font-size: var(--fs-xs); color: var(--muted); }
.hpl__msg { margin: 0; padding: var(--sp-4) var(--sp-3); font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--text-sub); text-align: center; }

/* 플리 한 줄: 줄 전체가 재생 단추 (지금 듣는 플리면 멈춤 · 다시 재생) */
.hpl-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px var(--sp-3); font: inherit; text-align: left; color: inherit; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.hpl-row:hover, .hpl-row:focus-visible { background: var(--hover); outline: none; }
.hpl-row__th { position: relative; flex: none; width: 40px; height: 40px; overflow: hidden; background: var(--art-bg, #222) center / cover no-repeat; border-radius: 6px; }
.hpl-row__ic { position: absolute; inset: 0; display: none; place-items: center; color: #fff; background: rgba(0,0,0,.55); }
.hpl-row__ic svg { width: 16px; height: 16px; }
.hpl-row__eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.hpl-row__eq b { width: 3px; }
.hpl-row:hover .hpl-row__ic--play, .hpl-row:focus-visible .hpl-row__ic--play, .hpl-row.on .hpl-row__ic--eq { display: grid; }
.hpl-row.on:hover .hpl-row__ic--eq, .hpl-row.on:focus-visible .hpl-row__ic--eq, .hpl-row.on:hover .hpl-row__ic--play, .hpl-row.on:focus-visible .hpl-row__ic--play { display: none; }
.hpl-row.on:hover .hpl-row__ic--pause, .hpl-row.on:focus-visible .hpl-row__ic--pause { display: grid; }
.hpl-row.on.paused:hover .hpl-row__ic--pause, .hpl-row.on.paused:focus-visible .hpl-row__ic--pause { display: none; }
.hpl-row.on.paused:hover .hpl-row__ic--play, .hpl-row.on.paused:focus-visible .hpl-row__ic--play { display: grid; }
.hpl-row__tx { flex: 1; min-width: 0; }
.hpl-row__tx b { display: block; overflow: hidden; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); white-space: nowrap; text-overflow: ellipsis; }
.hpl-row.on .hpl-row__tx b { color: var(--primary); }
.hpl-row__tx small { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }
.hpl-row__tx small svg { flex: none; width: 11px; height: 11px; }
.hpl-row[aria-busy="true"] { opacity: .6; cursor: progress; }

.hpl__f { display: flex; gap: 6px; margin-top: 6px; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.hpl__f a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-sub); background: var(--hover); border-radius: 8px; }
.hpl__f a:hover, .hpl__f a:focus-visible { color: var(--text-strong); background: var(--surface-2); }

@media (max-width: 768px) {
  .hpl__pop { position: fixed; top: calc(var(--header-h, 64px) + 4px); left: 12px; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hpl__pop { animation: none; }
  .hpl__eq b, .hpl-row__eq b { animation: none; height: 60%; }
}
