:root{
  --ink:#1f2340; --soft:#6b6f8a; --line:#e1e4f0; --bg:#f5f6fb; --card:#ffffff;
  --pink:#ff6f91; --pinkbg:#ffe8ee; --mint:#2fc4b2; --mintbg:#e2f7f4; --mintdk:#14917f;
  --yellow:#ffc845; --yellowbg:#fff6dc; --lav:#7c6cf2; --lavbg:#eeebff;
}
*{ box-sizing:border-box; margin:0; padding:0 }
body{ background:var(--bg); color:var(--ink); font-family:'Fredoka',-apple-system,sans-serif; min-height:100vh; display:flex; flex-direction:column }
.kr{ font-family:'Noto Sans KR',sans-serif }

.topbar{ position:sticky; top:0; z-index:10; background:#fff; border-bottom:1.5px solid var(--line);
         padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap }
.brand{ font-weight:700; font-size:17px; display:flex; align-items:center; gap:8px }
.logo{ background:var(--yellowbg); border-radius:10px; padding:2px 8px; font-weight:900; font-size:16px }
.logo span{ color:var(--pink) }
.badge{ font-size:11px; font-weight:600; background:var(--mintbg); color:var(--mintdk); padding:3px 9px; border-radius:99px }
#groupSelect{ font-family:inherit; font-size:13px; font-weight:600; color:var(--ink); background:#f6f7fb;
              border:1.5px solid var(--line); border-radius:10px; padding:7px 10px; max-width:220px }

.wrap{ width:100%; max-width:560px; margin:16px auto; padding:0 14px; display:flex; flex-direction:column; gap:16px; flex:1 }
.card{ background:var(--card); border:1.5px solid var(--line); border-radius:22px; padding:20px; box-shadow:0 6px 20px rgba(31,35,64,.04) }

.meta-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px }
.pill{ background:var(--lavbg); color:var(--lav); font-size:12px; font-weight:600; padding:4px 11px; border-radius:99px }
.cid{ font-size:12px; color:var(--soft); font-weight:500 }

.ko-main{ font-size:clamp(32px, 9vw, 52px); font-weight:900; text-align:center; line-height:1.25; padding:12px 6px 6px; word-break:keep-all }
.sub-line{ text-align:center; font-size:15px; color:var(--soft); min-height:26px; margin-bottom:16px }
.reveal-btn{ font-family:inherit; font-size:13px; font-weight:600; background:var(--lavbg); color:var(--lav);
             border:1.5px solid var(--lav); border-radius:99px; padding:5px 14px; cursor:pointer }

.status-bar{ background:var(--yellowbg); border-radius:14px; padding:10px 14px; margin-bottom:14px; text-align:center }
.status-text{ font-size:14px; font-weight:600; color:var(--ink); margin-bottom:6px }
.prog-track{ height:8px; background:#fff; border-radius:99px; overflow:hidden }
.prog-fill{ height:100%; width:0%; background:var(--pink); border-radius:99px; transition:width 80ms linear }

.controls-main{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px }
.btn{ font-family:inherit; font-weight:600; font-size:15px; border:none; border-radius:14px; padding:13px 16px;
      cursor:pointer; flex:1; min-width:120px; transition:transform .08s ease, opacity .15s }
.btn:active{ transform:scale(.97) }
.btn.primary{ background:var(--ink); color:#fff }
.btn.accent{ background:var(--pink); color:#fff }
.btn.ghost{ background:#f0f2f8; color:var(--ink); flex:0 0 auto; min-width:90px }
.btn.small{ background:var(--mintbg); color:var(--mintdk); font-size:13px; padding:8px 13px; flex:0 0 auto; min-width:auto }

.toggles{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
.seg{ display:grid; grid-template-columns:1fr 1fr; background:#f2f4fa; border-radius:12px; padding:3px }
.seg button{ font-family:inherit; font-size:13px; font-weight:600; border:none; background:transparent; color:var(--soft);
             padding:8px 6px; border-radius:9px; cursor:pointer }
.seg button.active{ background:#fff; color:var(--ink); box-shadow:0 2px 6px rgba(31,35,64,.08) }

.hint-line{ font-size:12px; color:var(--soft); line-height:1.45; margin-top:12px; text-align:center }

.list-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px }
.list-head h2{ font-size:18px; font-weight:700 }
.list-sub{ font-size:12px; color:var(--soft) }

.clip-list{ display:flex; flex-direction:column; gap:8px }
.clip-item{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 14px;
            border:1.5px solid var(--line); border-radius:14px; background:#fff; cursor:pointer; text-align:left; width:100%; font-family:inherit }
.clip-item:hover{ border-color:var(--lav) }
.clip-item.active{ border-color:var(--pink); background:var(--pinkbg) }
.clip-item .left{ display:flex; flex-direction:column; gap:2px }
.clip-item .k{ font-size:20px; font-weight:800; color:var(--ink) }
.clip-item .m{ font-size:12px; color:var(--soft) }
.clip-item .play-ic{ width:34px; height:34px; border-radius:50%; background:var(--lavbg); color:var(--lav);
                     display:flex; align-items:center; justify-content:center; font-size:14px; flex:none }
.clip-item.active .play-ic{ background:var(--pink); color:#fff }

.foot{ text-align:center; font-size:11.5px; color:var(--soft); padding:18px 14px 26px }
