/* 채널 뮤직 — 원본 세로형 레이아웃(히어로 + 전체곡 리스트 + 곡 상세 모달 + 하단 고정 재생바). 테마 변수 사용. */
.zm-app{color:var(--text);max-width:900px;margin:0 auto;padding-bottom:96px;}
.zm-app *{box-sizing:border-box;}

.zm-hero{display:flex;align-items:center;gap:16px;padding:22px 22px;border-radius:18px;margin-bottom:22px;
	background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 16%,var(--surface)),var(--surface));border:1px solid var(--border);}
.zm-hero__ic{width:56px;height:56px;border-radius:16px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;flex:0 0 auto;}
.zm-hero__tx h1{font-size:22px;font-weight:900;margin:0 0 5px;color:var(--text);}
.zm-hero__tx p{font-size:13px;color:var(--sub);margin:0;}

.zm-empty{text-align:center;padding:60px 20px;color:var(--mute);}
.zm-empty__ic{font-size:48px;margin-bottom:12px;}

.zm-sectitle{font-size:15px;font-weight:900;color:var(--text);margin:22px 0 12px;}
.zm-sectitle:first-of-type{margin-top:0;}
.zm-sectitle b{color:var(--accent);margin-left:4px;}

/* 재생목록 카드 그리드 */
.zm-plgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:14px;margin-bottom:6px;}
.zm-plcard{border:1px solid var(--border);background:var(--surface);border-radius:14px;padding:10px;cursor:pointer;text-align:left;
	display:flex;flex-direction:column;gap:8px;transition:transform .12s,box-shadow .12s,border-color .12s;}
.zm-plcard:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.12);}
.zm-plcard.is-active{border-color:var(--accent);}
.zm-plcard__cover{width:100%;aspect-ratio:1;border-radius:10px;background:var(--surface-2) center/cover;
	display:flex;align-items:center;justify-content:center;font-size:34px;}
.zm-plcard__cover--all{background:linear-gradient(135deg,var(--accent),#7a6cff);color:#fff;}
.zm-plcard__name{font-size:13.5px;font-weight:800;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zm-plcard.is-active .zm-plcard__name{color:var(--accent);}
.zm-plcard__meta{font-size:11.5px;color:var(--mute);}

/* 전체 곡 리스트 */
.zm-tracks{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;}
.zm-tr{display:flex;align-items:center;gap:13px;padding:10px 14px;border-bottom:1px solid var(--border);cursor:pointer;}
.zm-tr:last-child{border-bottom:0;}
.zm-tr:hover{background:var(--surface-2);}
.zm-tr.is-active{background:var(--accent-soft);}
.zm-tr__no{flex:0 0 22px;text-align:center;font-size:12.5px;font-weight:700;color:var(--mute);}
.zm-tr.is-active .zm-tr__no{display:none;}
.zm-tr__cover{position:relative;flex:0 0 46px;width:46px;height:46px;border-radius:9px;background:var(--surface-2) center/cover;overflow:hidden;}
.zm-tr__play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);color:#fff;opacity:0;transition:opacity .12s;}
.zm-tr__play svg{width:17px;height:17px;}
.zm-tr:hover .zm-tr__play{opacity:1;}
.zm-tr__eq{position:absolute;inset:0;display:none;align-items:flex-end;justify-content:center;gap:2px;padding-bottom:9px;background:rgba(0,0,0,.35);}
.zm-tr__eq i{width:3px;background:#fff;border-radius:1px;height:5px;}
.zm-tr.is-active .zm-tr__eq{display:flex;}
.zm-tr.is-active .zm-tr__play{display:none;}
.zm-tr.is-active.is-playing .zm-tr__eq i{animation:zmeq .9s ease-in-out infinite;}
.zm-tr.is-active.is-playing .zm-tr__eq i:nth-child(2){animation-delay:.2s;}
.zm-tr.is-active.is-playing .zm-tr__eq i:nth-child(3){animation-delay:.4s;}
@keyframes zmeq{0%,100%{height:5px;}50%{height:16px;}}
.zm-tr__meta{flex:1;min-width:0;display:flex;flex-direction:column;}
.zm-tr__t{font-size:14px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zm-tr.is-active .zm-tr__t{color:var(--accent);}
.zm-tr__a{font-size:12px;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zm-tr__plays{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;min-width:50px;font-size:11.5px;font-weight:700;color:var(--mute);font-variant-numeric:tabular-nums;}
.zm-tr__plays svg{width:13px;height:13px;opacity:.7;}
.zm-tr__lrcbtn{flex:0 0 auto;border:1px solid var(--border);background:none;color:var(--sub);font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:7px;cursor:pointer;}
.zm-tr__lrcbtn:hover{border-color:var(--accent);color:var(--accent);}
.zm-tr__like{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-width:46px;border:0;background:none;cursor:pointer;color:var(--mute);font-size:12px;font-weight:700;padding:4px 6px;border-radius:8px;font-variant-numeric:tabular-nums;}
.zm-tr__like svg{width:16px;height:16px;}
.zm-tr__like:hover{background:rgba(255,90,120,.12);}
.zm-tr__like.is-liked{color:#ff5a78;}
.zm-tr__like.is-liked svg{fill:#ff5a78;stroke:#ff5a78;}

/* 곡 상세 모달 */
.zm-modal{position:fixed;inset:0;z-index:1400;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:20px;}
.zm-modal[hidden]{display:none;}
.zm-modal__box{position:relative;width:100%;max-width:440px;max-height:80vh;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:0 24px 70px rgba(0,0,0,.4);}
.zm-modal__x{position:absolute;right:14px;top:12px;background:none;border:0;font-size:20px;color:var(--mute);cursor:pointer;}
.zm-modal__head{display:flex;align-items:center;gap:14px;margin-bottom:14px;}
.zm-modal__cover{width:72px;height:72px;border-radius:14px;background:var(--surface-2) center/cover;display:flex;align-items:center;justify-content:center;font-size:30px;flex:0 0 auto;overflow:hidden;}
.zm-modal__t{font-size:17px;font-weight:900;color:var(--text);}
.zm-modal__a{font-size:13px;color:var(--sub);margin-top:3px;}
.zm-modal__lrc{flex:1 1 auto;overflow-y:auto;min-height:100px;text-align:center;padding:8px 0;}
.zm-modal__lrc .zm-l{font-size:14px;line-height:2;color:var(--mute);transition:color .2s;}
.zm-modal__lrc .zm-l.is-cur{color:var(--accent);font-weight:800;font-size:15.5px;}
.zm-modal__lrc-empty{color:var(--mute);font-size:13px;padding:40px 0;}
.zm-modal__acts{margin-top:12px;text-align:center;}
.zm-modal__play{border:0;background:var(--accent);color:#fff;font-size:13.5px;font-weight:800;padding:10px 22px;border-radius:11px;cursor:pointer;}

/* 하단 고정 재생바 */
.zm-bar{position:fixed;left:0;right:0;bottom:0;z-index:1200;display:flex;align-items:center;gap:14px;
	padding:10px 18px;background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -6px 20px rgba(0,0,0,.08);}
.zm-bar[hidden]{display:none;}
.zm-bar__cover{width:44px;height:44px;border-radius:9px;background:var(--surface-2) center/cover;flex:0 0 auto;}
.zm-bar__info{flex:0 0 auto;min-width:0;max-width:210px;display:flex;flex-direction:column;gap:1px;}
.zm-bar__meta{min-width:0;display:flex;flex-direction:column;}
.zm-bar__t{font-size:13px;font-weight:800;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zm-bar__a{font-size:11.5px;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zm-bar__lrcline{font-size:11.5px;color:var(--accent);font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:14px;}
.zm-bar__ctrl{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
.zm-bar__btn{border:0;background:none;cursor:pointer;color:var(--sub);padding:4px;display:flex;align-items:center;justify-content:center;}
.zm-bar__btn:hover{color:var(--accent);}
.zm-bar__btn svg{width:21px;height:21px;display:block;}
.zm-bar__btn--sm{opacity:.55;}
.zm-bar__btn--sm svg{width:17px;height:17px;}
.zm-bar__btn--sm.is-on{opacity:1;color:var(--accent);}
.zm-bar__ibtn{border:0;background:none;cursor:pointer;color:var(--sub);padding:5px;border-radius:8px;display:flex;align-items:center;}
.zm-bar__ibtn:hover{color:var(--accent);background:var(--surface-2);}
.zm-bar__ibtn svg{width:19px;height:19px;display:block;}
.zm-bar__volic{width:18px;height:18px;color:var(--sub);flex:0 0 auto;}
.zm-bar__btn--play{width:42px;height:42px;border-radius:50%;background:var(--accent);color:#fff;font-size:16px;display:flex;align-items:center;justify-content:center;padding:0;}
.zm-bar__seek{flex:1 1 auto;display:flex;align-items:center;gap:9px;min-width:120px;}
.zm-time{font-size:11px;color:var(--mute);font-variant-numeric:tabular-nums;flex:0 0 auto;min-width:32px;text-align:center;}
.zm-seek,.zm-vol{-webkit-appearance:none;appearance:none;height:5px;border-radius:999px;background:var(--border);outline:none;cursor:pointer;}
.zm-seek{flex:1;}
.zm-seek::-webkit-slider-thumb,.zm-vol::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:var(--accent);cursor:pointer;}
.zm-seek::-moz-range-thumb,.zm-vol::-moz-range-thumb{width:13px;height:13px;border:0;border-radius:50%;background:var(--accent);cursor:pointer;}
.zm-bar__lrc{flex:0 0 auto;border:1px solid var(--border);background:none;color:var(--sub);font-size:12px;font-weight:700;padding:6px 11px;border-radius:8px;cursor:pointer;}
.zm-bar__lrc:hover{border-color:var(--accent);color:var(--accent);}
.zm-bar__vol{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;font-size:13px;}
.zm-vol{width:66px;}
@media(max-width:720px){
	.zm-bar__seek{display:none;}
	.zm-bar__vol{display:none;}
	.zm-bar__meta{flex:1;max-width:none;}
}

/* 재생목록 큐 패널 (하단 바 위) */
.zm-queue{position:fixed;left:0;right:0;bottom:64px;z-index:1201;max-width:420px;margin:0 auto;max-height:50vh;display:flex;flex-direction:column;
	background:var(--surface);border:1px solid var(--border);border-radius:14px 14px 0 0;box-shadow:0 -8px 30px rgba(0,0,0,.18);overflow:hidden;}
.zm-queue[hidden]{display:none;}
.zm-queue__h{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);font-size:14px;font-weight:800;color:var(--text);}
.zm-queue__x{border:0;background:none;font-size:18px;color:var(--mute);cursor:pointer;}
.zm-queue__ol{list-style:none;margin:0;padding:6px;overflow-y:auto;}
.zm-q{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:9px;cursor:pointer;}
.zm-q:hover{background:var(--surface-2);}
.zm-q.is-active{background:var(--accent-soft);}
.zm-q__n{flex:0 0 18px;text-align:center;font-size:12px;color:var(--accent);}
.zm-q__m{flex:1;min-width:0;display:flex;flex-direction:column;}
.zm-q__t{font-size:13px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zm-q.is-active .zm-q__t{color:var(--accent);}
.zm-q__a{font-size:11px;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
