/* US Radio PWA — 스포티파이 모바일 디자인 언어 리스킨.
   전 자산 로컬(외부 CDN·웹폰트 참조 없음). 서체는 Figtree(SIL OFL) 로컬 번들. */

/* ---------- 서체: Figtree 가변 woff2 (로컬) ---------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('vendor/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('vendor/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 토큰: 다크가 기본 ---------- */
:root {
  --bg: #121212;
  --card: #181818;
  --elev: #242424;
  --press: #282828;
  --tile: #2A2A2A;
  --green: #1DB954;
  --green-on: #1ED760;
  --txt: #FFFFFF;
  --txt2: #B3B3B3;
  --txt3: #727272;
  --line: #2A2A2A;
  --accentcol: #333333;          /* 지배색(재생 중 방송국) — JS 가 갱신 */
  --tabh: 56px;
  --minih: 58px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Helvetica Neue', 'Malgun Gothic', system-ui, sans-serif;
  color-scheme: dark;
}
/* 라이트(수동 선택 또는 '시스템 따름' + 시스템이 라이트) — 스포티파이 문법을 밝게 옮긴 것 */
:root[data-theme="light"], :root[data-theme="system"].sys-light {
  --bg: #FFFFFF;
  --card: #F6F6F6;
  --elev: #EFEFEF;
  --press: #E6E6E6;
  --tile: #EFEFEF;
  --txt: #000000;
  --txt2: #6A6A6A;
  --txt3: #9B9B9B;
  --line: #E4E4E4;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* display 를 지정하는 클래스가 UA 의 [hidden] 을 이기지 못하도록 못 박는다 */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--txt); }
svg { display: block; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- 레이아웃 ---------- */
#main {
  padding: calc(var(--sat) + 14px) calc(var(--sar) + 16px)
           calc(var(--sab) + var(--tabh) + var(--minih) + 24px) calc(var(--sal) + 16px);
  max-width: 720px; margin: 0 auto;
}
body.no-mini #main { padding-bottom: calc(var(--sab) + var(--tabh) + 24px); }
body.has-banner #main { padding-top: calc(var(--sat) + 48px); }

.hdr { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.hdr h1 { flex: 1; margin: 0; font-size: 22px; font-weight: 800; }
.icon-btn {
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--txt); border-radius: 50%;
}
.icon-btn:active { background: var(--press); }
.icon-btn.heart.on { color: var(--green-on); }

/* 서브 화면 스티키 헤더 */
.subhdr { display: flex; align-items: center; gap: 6px; margin: -4px -4px 14px;
  position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 4px; }
.subhdr h1 { flex: 1; margin: 0; font-size: 20px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 필터 칩(홈 상단) ---------- */
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chiprow::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--elev); color: var(--txt); font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; }
.pill.on { background: var(--txt); color: var(--bg); }

/* ---------- 알약 타일 그리드(최근·즐겨찾기) ---------- */
.pillgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.ptile { display: flex; align-items: center; gap: 10px; min-height: 56px; border-radius: 4px;
  background: var(--tile); overflow: hidden; text-align: left; }
.ptile:active { background: var(--press); }
.ptile img { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; background: var(--elev); }
.ptile span { flex: 1; min-width: 0; padding-right: 8px; font-size: 13px; font-weight: 700;
  line-height: 1.25; max-height: 2.5em; overflow: hidden; }

/* ---------- 가로 스크롤 선반 ---------- */
.shelf-h { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 12px; }
.shelf-h h2 { margin: 0; font-size: 19px; font-weight: 800; }
.shelf-h button { font-size: 12px; font-weight: 700; color: var(--txt2); letter-spacing: .04em; }
.shelf { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.shelf::-webkit-scrollbar { display: none; }
.scard { flex: 0 0 132px; width: 132px; text-align: left; scroll-snap-align: start; }
.scard img { width: 132px; height: 132px; border-radius: 8px; object-fit: cover;
  background: var(--elev); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.scard .sname { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard .ssub { margin-top: 2px; font-size: 12px; color: var(--txt2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 세로 목록(보관함 문법) ---------- */
ul.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 11px; padding: 8px 4px; min-height: 60px; }
.row:active { background: var(--press); border-radius: 4px; }
.logo { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 4px;
  object-fit: cover; background: var(--elev); }
.row-main { flex: 1; min-width: 0; }
/* 잘림 방어 1단 — 핵심 문구(방송국명)는 1줄 말줄임 대신 2줄까지 자연 줄바꿈 */
.row-name { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 2단 — 아주 긴 이름은 한 단계 축소 후 클램프 */
.row-name.long { font-size: 13.5px; }
/* 3단 — 재생 중인 행만 느린 왕복 marquee(목록 전체 marquee 는 소음) */
.row.is-cur .row-name.mq { -webkit-line-clamp: 1; white-space: nowrap; }
.row.is-cur .row-name.mq > span { display: inline-block; animation: rowMq 11s ease-in-out infinite; }
@keyframes rowMq { 0%, 10% { transform: translateX(0); } 50%, 60% { transform: translateX(var(--mqx, -30%)); } 100% { transform: translateX(0); } }
.row.is-cur .row-name { color: var(--green-on); }
.row-sub { font-size: 12.5px; color: var(--txt2); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; margin-top: 2px; }
.fav-btn { min-width: 44px; min-height: 44px; display: flex; align-items: center;
  justify-content: center; color: var(--txt3); }
.fav-btn.on { color: var(--green-on); }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; margin-right: 6px; }
.bars i { width: 2.5px; background: var(--green-on); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.bars i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.bars i:nth-child(2) { height: 100%; }
.bars i:nth-child(3) { height: 65%; animation-delay: -.45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.more-btn { display: block; width: 100%; padding: 13px; margin: 10px 0;
  border: 1px solid var(--txt3); border-radius: 999px; color: var(--txt); font-size: 13px; font-weight: 700; }
.empty { color: var(--txt2); font-size: 14px; padding: 12px 4px; }

/* ---------- 장르 컬러 타일 ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { position: relative; height: 96px; border-radius: 8px; overflow: hidden; text-align: left; }
.tile .tname { position: absolute; left: 12px; top: 10px; right: 44px; font-size: 15px;
  font-weight: 800; color: #fff; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tile .tcount { position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.82); }
.tile .tart { position: absolute; right: -8px; bottom: -6px; width: 58px; height: 58px;
  border-radius: 5px; transform: rotate(25deg); box-shadow: -3px -3px 10px rgba(0,0,0,.35);
  object-fit: cover; background: rgba(0,0,0,.35); }
.tile:active { filter: brightness(1.15); }

/* ---------- 검색 ---------- */
.searchbar { position: relative; margin-bottom: 18px; }
.searchbar input {
  width: 100%; min-height: 44px; padding: 0 14px 0 42px; border: 0; border-radius: 8px;
  background: #FFFFFF; color: #121212; font-size: 15px; font-weight: 600;
}
.searchbar input::placeholder { color: #6A6A6A; font-weight: 600; }
.searchbar .sico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #121212; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--elev);
  color: var(--txt); font-size: 13.5px; font-weight: 700; }
.btn:disabled { opacity: .45; }
.btn-primary { background: var(--green); color: #000; }
.btn-wide { display: block; width: 100%; margin-bottom: 12px; }
.hint { font-size: 12.5px; color: var(--txt2); margin: 0 0 12px; }

/* ---------- 설정(보관함 행 문법) ---------- */
.lrow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px;
  padding: 6px 4px; text-align: left; }
.lrow:active { background: var(--press); border-radius: 4px; }
.lico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 4px; background: var(--elev);
  display: flex; align-items: center; justify-content: center; color: var(--txt2); }
.lrow.grn .lico { background: linear-gradient(135deg, var(--green), #0d7a37); color: #fff; }
.lmain { flex: 1; min-width: 0; }
.lname { font-size: 15px; font-weight: 600; }
.lsub { font-size: 12.5px; color: var(--txt2); margin-top: 2px; }
.lval { font-size: 12.5px; color: var(--txt2); text-align: right; max-width: 45%; word-break: break-all; }
.seg { display: flex; gap: 8px; margin: 6px 0 18px; }
.seg button { flex: 1; min-height: 40px; border-radius: 999px; background: var(--elev);
  color: var(--txt); font-size: 13px; font-weight: 700; }
.seg button.on { background: var(--txt); color: var(--bg); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.notice { font-size: 13px; color: var(--txt2); background: var(--card); border-radius: 8px;
  padding: 14px; line-height: 1.55; }

/* ---------- 버퍼링 스피너(버튼 안) ---------- */
.wait { width: 20px; height: 20px; border-radius: 50%; display: block;
  border: 2.4px solid rgba(255, 255, 255, .32); border-top-color: #fff;
  animation: spin .8s linear infinite; }
.wait.dark { width: 26px; height: 26px; border-color: rgba(0, 0, 0, .25); border-top-color: #000; }

/* ---------- 스켈레톤 ---------- */
.sk { background: var(--tile); border-radius: 4px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 헤어라인(라이브 진행 표시) ---------- */
.hairline { position: relative; height: 1.5px; border-radius: 2px;
  background: rgba(255, 255, 255, .22); overflow: hidden; }
.hairline i { position: absolute; left: 0; top: 0; bottom: 0; width: 34%;
  background: var(--txt); border-radius: 2px; transform: translateX(-40%); }
.hairline.on i { animation: slide 2.4s linear infinite; }
.hairline.live { margin: 20px 0 6px; height: 2px; }
@keyframes slide { from { transform: translateX(-110%); } to { transform: translateX(340%); } }

/* ---------- 미니 플레이어 ---------- */
.mini {
  position: fixed; z-index: 45;
  left: calc(var(--sal) + 8px); right: calc(var(--sar) + 8px);
  bottom: calc(var(--sab) + var(--tabh) + 6px);
  border-radius: 8px; padding: 8px 8px 6px;
  background: var(--accentcol);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  max-width: 704px; margin: 0 auto;
  transition: background .45s ease;
}
.mini-row { display: flex; align-items: center; gap: 10px; }
.mini-logo { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: rgba(0,0,0,.3); }
.mini-main { flex: 1; min-width: 0; }
.mini-name { font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-name.mq { text-overflow: clip; }
.mini-name.mq > span { display: inline-block; animation: rowMq 12s ease-in-out infinite; }
.mini-sub { font-size: 11px; color: rgba(255,255,255,.72);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { min-width: 44px; min-height: 44px; display: flex; align-items: center;
  justify-content: center; color: #fff; }
.mini .hairline { margin-top: 6px; background: rgba(255,255,255,.22); }
.mini .hairline i { background: #fff; }

/* ---------- 탭바 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; padding: 0 calc(var(--sar) + 4px) var(--sab) calc(var(--sal) + 4px);
  background: linear-gradient(to top, #000 62%, rgba(0, 0, 0, 0));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
:root[data-theme="light"] .tabbar, :root[data-theme="system"].sys-light .tabbar {
  background: linear-gradient(to top, #fff 62%, rgba(255, 255, 255, 0));
}
.tab { flex: 1; min-height: var(--tabh); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; font-size: 10.5px; color: var(--txt3); font-weight: 600; }
.tab.is-on { color: var(--txt); }
.tab-ico { display: flex; height: 24px; align-items: center; }

/* ---------- 나우 플레잉 ---------- */
.now {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
  background: linear-gradient(to bottom, var(--accentcol) 0%, var(--bg) 62%);
  animation: rise .26s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.now-head { display: flex; align-items: center; padding: 2px 8px; }
.now-head-title { flex: 1; text-align: center; font-size: 11px; font-weight: 700;
  color: var(--txt2); letter-spacing: .08em; text-transform: uppercase; }
.now-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 24px 28px; }
.now-art-wrap { position: relative; width: min(74vw, 320px); margin: 10px auto 28px; aspect-ratio: 1/1; }
.now-art { width: 100%; height: 100%; border-radius: 8px; object-fit: cover;
  background: var(--elev); box-shadow: 0 18px 42px rgba(0, 0, 0, .55); }
.spinner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.32); border-radius: 8px; }
.spinner::after { content: ""; width: 32px; height: 32px; border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.now-title-row { display: flex; align-items: center; gap: 10px; }
.now-titles { flex: 1; min-width: 0; }
.marquee { overflow: hidden; white-space: nowrap; }
.now-name { margin: 0; font-size: 22px; font-weight: 800; display: inline-block; white-space: nowrap; }
.marquee.run .now-name { animation: mq 12s linear infinite; }
@keyframes mq { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(var(--mq, -40%)); } }
.now-sub { font-size: 14px; color: var(--txt2); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700;
  color: var(--txt2); letter-spacing: .06em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-on); }
.live-codec { margin-left: auto; font-weight: 600; letter-spacing: 0; }
.now-error { margin: 16px 0 0; color: #FFB020; font-size: 13.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.now-ctrl { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 26px 0 10px; }
.ctrl { min-width: 52px; min-height: 52px; display: flex; align-items: center;
  justify-content: center; color: var(--txt); border-radius: 50%; }
.ctrl:active { opacity: .6; }
.ctrl-main { width: 64px; height: 64px; border-radius: 50%; background: var(--txt); color: var(--bg);
  display: flex; align-items: center; justify-content: center; }
.ctrl-main:active { transform: scale(.94); }
.now-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.foot-btn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px;
  color: var(--txt2); font-size: 11.5px; font-weight: 700; }
.foot-btn.on { color: var(--green-on); }
.foot-btn .fi { display: flex; }
.note { font-size: 11.5px; color: var(--txt3); margin: 14px 0 0; text-align: center; }
.sleep-panel { margin-top: 16px; background: var(--card); border-radius: 8px; padding: 14px; }
.sleep-panel .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sleep-panel .pill { background: var(--elev); }

/* ---------- 자막 알약(나우플레잉) ---------- */
.cc-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.cc-pill { min-height: 34px; background: rgba(255, 255, 255, .12); color: var(--txt); }
.cc-pill.on { background: var(--green-on); color: #000; }
.cc-state { font-size: 11.5px; color: var(--txt2); font-weight: 600; }

/* ---------- 자막(가사) 시트 ---------- */
.lyrics {
  position: fixed; inset: 0; z-index: 65;
  display: flex; flex-direction: column;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
  background: linear-gradient(to bottom, var(--accentcol) 0%, #0b0b0b 78%);
  animation: rise .26s cubic-bezier(.2, .8, .2, 1);
}
.ly-head { display: flex; align-items: center; gap: 8px; padding: 2px 8px; }
.ly-title { flex: 1; min-width: 0; text-align: center; }
.ly-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ly-sub { font-size: 10.5px; color: var(--txt2); font-weight: 600; letter-spacing: .04em; }
.ly-modes { display: flex; gap: 8px; justify-content: center; padding: 8px 16px 4px; }
.ly-modes .pill { min-height: 32px; font-size: 12.5px; background: rgba(255, 255, 255, .14); }
.ly-modes .pill.on { background: var(--txt); color: var(--bg); }
.ly-note { text-align: center; font-size: 11px; color: var(--txt2); padding: 6px 20px 10px; }
/* position:relative 필수 — 없으면 자식의 offsetTop 이 스크롤 컨테이너가 아니라
   position:fixed 인 .lyrics 기준으로 잡혀 중앙 정렬 계산이 헤더 높이만큼 어긋난다(실측 800px). */
.ly-body { flex: 1; position: relative; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 30vh 24px 30vh; }
/* scroll-behavior:smooth 를 쓰지 않는다 — 이 조합에서 프로그램적 scrollTop 대입이
   통째로 무시되는 것을 실측했다(1.2초 뒤에도 0). 중앙 정렬은 JS rAF 트윈으로 한다. */
.ly-body::-webkit-scrollbar { display: none; }
.ly-seg { margin-bottom: 22px; transition: color .35s ease, opacity .35s ease; }
.ly-en { font-size: calc(22px * var(--cap-scale, 1) * var(--cap-narrow, 1)); font-weight: 800;
  line-height: 1.32; letter-spacing: -.01em; overflow-wrap: break-word; }
.ly-ko { font-size: calc(17px * var(--cap-scale, 1) * var(--cap-narrow, 1)); font-weight: 600;
  line-height: 1.4; margin-top: 6px; opacity: .92; overflow-wrap: break-word; }
.ly-seg.cur .ly-en, .ly-seg.cur .ly-ko { color: var(--green-on); }   /* 현재 문장 하이라이트 */
.ly-seg.near .ly-en, .ly-seg.near .ly-ko { color: #FFFFFF; opacity: .92; }
.ly-seg.far .ly-en, .ly-seg.far .ly-ko { color: var(--txt2); opacity: .68; }
.ly-body.hide-en .ly-en { display: none; }
.ly-body.hide-ko .ly-ko { display: none; }
.ly-msg { font-size: 15px; font-weight: 600; color: var(--txt2); text-align: center; padding: 8px 0 18px; }

/* 뮤직 아틀라스 카드(한국어 해설) */
.atlas-card { margin: 0 20px 12px; padding: 14px 16px; border-radius: 10px;
  background: rgba(0, 0, 0, .34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.atlas-h { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--green-on);
  text-transform: uppercase; margin-bottom: 6px; }
.atlas-t { font-size: 14.5px; font-weight: 700; }
.atlas-g { font-size: 11.5px; color: var(--txt2); margin-top: 2px; }
.atlas-s { font-size: 13px; line-height: 1.55; color: #E6E6E6; margin-top: 8px; }
.atlas-k { font-size: 11.5px; color: var(--txt2); margin-top: 8px; }

.ly-dots { display: flex; gap: 6px; justify-content: center; padding: 0 0 18px; }
.ly-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-on);
  animation: dot 1.1s ease-in-out infinite; }
.ly-dots i:nth-child(2) { animation-delay: .18s; }
.ly-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- 모델 다운로드 진행바 ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 12.5px; color: var(--txt2); }
.bar-row span { flex: 0 0 58px; font-weight: 700; }
.bar-row b { flex: 0 0 42px; text-align: right; font-size: 12px; color: var(--txt); }
.bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0%; background: var(--green-on);
  border-radius: 999px; transition: width .25s ease; }
.ovl-btns { display: flex; gap: 10px; margin-top: 14px; }
.ovl-btns .btn { flex: 1; }

/* ---------- 오버레이 ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .66);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px calc(var(--sar) + 14px) calc(var(--sab) + 16px) calc(var(--sal) + 14px); }
.overlay-card { background: var(--elev); border-radius: 12px; padding: 22px; max-width: 460px; width: 100%; }
.overlay-card h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.overlay-card p { margin: 0 0 14px; font-size: 14px; color: var(--txt2); line-height: 1.55; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--txt2);
  min-height: 44px; margin-bottom: 6px; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }

/* ---------- 오프라인 배너 ---------- */
.offline-banner { position: fixed; z-index: 80; left: 0; right: 0; top: 0;
  padding: calc(var(--sat) + 8px) 12px 8px; text-align: center;
  background: var(--green); color: #000; font-size: 12.5px; font-weight: 800; }

@media (min-width: 560px) { .tiles, .pillgrid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- ♪ 가사 지원 배지 ---------- */
.sid-badge { color: var(--green-on); font-size: 11px; font-weight: 800; margin-right: 4px; }

/* ---------- 라이브 차트 ---------- */
.chart-head { margin-bottom: 14px; }
.chart-title-row { display: flex; align-items: center; gap: 8px; }
.chart-title { flex: 1; margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.chart-sub { font-size: 13px; color: var(--txt2); margin-top: 2px; }
.chart-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 16px; }
.chart-time { font-size: 11.5px; color: var(--txt3); font-weight: 600; }
.chart-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line);
  border-top-color: var(--green-on); animation: spin .8s linear infinite; }
.crow { display: flex; align-items: center; gap: 11px; padding: 9px 3px; min-height: 64px; }
.crow:active { background: var(--press); border-radius: 6px; }
.crank { min-width: 1.4ch; flex: 0 0 auto; text-align: center; padding-right: 2px; }
.cnum { font-size: 18px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.cdelta { display: block; font-size: 9px; font-weight: 800; margin-top: 3px; letter-spacing: -.03em; white-space: nowrap; }
.cdelta.up { color: var(--green-on); }
.cdelta.down { color: #FF6B6B; }
.cdelta.same { color: var(--txt3); }
.cdelta.new { color: #FFD166; }
.cart { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 4px; overflow: hidden; position: relative; }
.cart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmid { flex: 1; min-width: 0; }
/* 곡 제목 = 2줄 클램프(1줄 말줄임 금지) · 가수명 = 1줄 말줄임 */
.ctitle { font-size: 14.5px; font-weight: 700; line-height: 1.28; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ctitle.long { font-size: 13px; }
.cartist { font-size: 12.5px; color: var(--txt2); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; margin-top: 2px; }
.ccount { flex: 0 0 auto; min-width: 34px; min-height: 32px; padding: 0 7px; border-radius: 999px;
  background: var(--elev); color: var(--txt2); font-size: 11.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.ccount svg { display: block; }
.csubs { padding: 2px 4px 10px 58px; }
.csub { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px;
  padding: 5px 8px; border-radius: 6px; text-align: left; font-size: 13px; color: var(--txt2); }
.csub:active { background: var(--press); }
.csub img { width: 28px; height: 28px; border-radius: 3px; object-fit: cover; background: var(--elev); }

/* ══════════ 전환 애니메이션 (transform/opacity 만) ══════════ */
@keyframes xPushIn  { from { transform: translateX(100%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes xPopOut  { from { transform: none; opacity: 1; } to { transform: translateX(100%); opacity: .5; } }
@keyframes xUnderOut{ from { transform: none; opacity: 1; } to { transform: translateX(-12%); opacity: .55; } }
@keyframes xUnderBk { from { transform: translateX(-12%); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes xFade    { from { opacity: 0; } to { opacity: 1; } }
.x-push-in   { animation: xPushIn .35s cubic-bezier(0.32,0.72,0,1); }
.x-pop-out   { animation: xPopOut .33s cubic-bezier(0.32,0.72,0,1) forwards; }
.x-under-out { animation: xUnderOut .35s cubic-bezier(0.32,0.72,0,1); }
.x-under-back{ animation: xUnderBk .33s cubic-bezier(0.32,0.72,0,1); }
.x-pop-in    { animation: xUnderBk .33s cubic-bezier(0.32,0.72,0,1); }
.x-fade      { animation: xFade .1s linear; }

/* 시트: iOS 감각의 슬라이드업(350ms) + 뒤 배경 dim */
.now, .lyrics { animation: sheetUp .35s cubic-bezier(0.32,0.72,0,1); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.now::before, .lyrics::before {
  content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0,0,0,.5);
  animation: xFade .35s linear;
}
.now-head, .ly-head { touch-action: none; }          /* 드래그 디스미스 손잡이 */
.now-head::after, .ly-head::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.28);
}
.now-head, .ly-head { position: relative; padding-top: 14px; }

/* ══════════ 터치 리액션 ══════════ */
html { -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: contain; }
button, .row, .crow, .scard, .ptile, .tile, .pill, .lrow, .csub, .gcard {
  touch-action: manipulation;                        /* 300ms 지연 제거 */
}
.row, .crow, .scard, .ptile, .tile, .lrow, .pill, .csub, .gcard, .ctrl, .mini-btn, .icon-btn, .btn, .ccount {
  transition: transform .13s cubic-bezier(0.2,0,0.2,1), background-color .13s linear;
}
.row:active, .crow:active, .lrow:active, .csub:active { transform: scale(.985); background: var(--press); }
.scard:active, .ptile:active, .tile:active, .gcard:active { transform: scale(.965); }
.pill:active, .btn:active, .ccount:active { transform: scale(.955); }
.ctrl-main:active, .mini-btn:active { transform: scale(.92); }
.ctrl:active, .icon-btn:active { transform: scale(.9); }
/* 놓을 때 스프링 복귀 */
.ctrl-main, .mini-btn { transition: transform .26s cubic-bezier(0.34,1.56,0.64,1); }

@media (prefers-reduced-motion: reduce) {
  .now, .lyrics, .x-push-in, .x-pop-out, .x-under-out, .x-under-back, .x-pop-in { animation: xFade .1s linear !important; }
  .row, .crow, .scard, .ptile, .tile, .lrow, .pill, .csub, .gcard, .ctrl, .mini-btn, .icon-btn, .btn { transition: none; }
}

/* ══════════ 팟캐스트 ══════════ */
.pc-banner { display: flex; gap: 12px; align-items: flex-start; background: var(--card);
  border-radius: 10px; padding: 14px; margin-bottom: 16px; font-size: 12.5px; color: var(--txt2); line-height: 1.55; }
.pc-banner-x { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--elev); color: var(--txt); font-size: 12px; font-weight: 700; }
.pc-artwrap { position: relative; }
.pc-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-on); box-shadow: 0 0 0 2px var(--bg); }
.pc-head { display: flex; gap: 14px; margin-bottom: 18px; }
.pc-hero { width: 116px; height: 116px; flex: 0 0 116px; border-radius: 8px; object-fit: cover;
  background: var(--elev); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.pc-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pc-title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.pc-artist { font-size: 12.5px; color: var(--txt2); }
.pc-ep { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.pc-ep-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-ep-sub { font-size: 12px; color: var(--txt2); margin-top: 3px; }
.pc-ep-desc { font-size: 12.5px; color: var(--txt2); margin-top: 7px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-bar { height: 3px; border-radius: 2px; background: var(--elev); margin: 10px 0 8px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; background: var(--green-on); border-radius: 2px; }
.pc-acts { display: flex; gap: 8px; align-items: center; }
.pc-acts .btn { min-height: 36px; font-size: 12.5px; padding: 0 14px; }
.pc-acts .btn.on { background: var(--green); color: #000; }
.pc-done { font-size: 11.5px; color: var(--green-on); font-weight: 700; }
.pc-note { font-size: 10.5px; color: var(--txt3); margin-top: 8px; line-height: 1.45; }

/* 팟캐스트 재생 컨트롤 */
.pod-ctl { margin-top: 18px; }
.seek { width: 100%; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; }
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; margin-top: -4.5px; }
.pod-times { display: flex; justify-content: space-between; font-size: 11px; color: var(--txt2);
  font-weight: 600; margin-top: -2px; }
.pod-row { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.pod-skip { min-width: 52px; min-height: 40px; border-radius: 999px; background: var(--elev);
  color: var(--txt); font-size: 12.5px; font-weight: 700; }
.pod-speed { justify-content: center; margin-top: 12px; }
.pod-speed .pill { min-height: 32px; font-size: 12px; }

/* ══════════ 학습 모드 ══════════ */
.learn-bar { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 10px 16px;
  background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  scrollbar-width: none; }
.learn-bar::-webkit-scrollbar { display: none; }
.learn-bar .pill { flex: 0 0 auto; min-height: 32px; font-size: 12px; background: var(--elev); }
.lrn-label { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--txt2); letter-spacing: .02em; }
.lrn-label.on { color: var(--green-on); }
.lrn-speed { flex: 0 0 110px; }
.ly-seg.learn { position: relative; padding-right: 42px; cursor: pointer; }
.ly-seg.learn .ly-en { font-size: calc(19px * var(--cap-scale, 1) * var(--cap-narrow, 1)); }
.lrn-tools { position: absolute; right: 0; top: 2px; }
.lrn-chip { min-width: 34px; min-height: 34px; border-radius: 50%; background: rgba(255,255,255,.12);
  color: var(--txt2); font-size: 15px; font-weight: 700; }
.ly-seg.inloop { background: rgba(30,215,96,.10); border-radius: 8px; }
.ly-seg.picked { background: rgba(255,255,255,.12); border-radius: 8px; }

/* ══════════ 관심 아티스트 ══════════ */
.i-sug { margin: -6px 0 12px; }
.i-sug-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 6px 8px; border-radius: 6px; text-align: left; font-size: 13.5px; color: var(--txt); }
.i-sug-row:active { background: var(--press); }
.i-sug-row img { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; background: var(--elev); }
.pill.i-hit { background: rgba(30,215,96,.16); color: var(--green-on); font-size: 11.5px; min-height: 28px; }
.par-card { padding: 12px 14px; border-radius: 10px; background: var(--card); margin-bottom: 10px; }
.par-ctx { font-size: 12.5px; color: var(--txt3); line-height: 1.5; }
.par-hit { font-size: 15px; font-weight: 700; line-height: 1.45; margin: 5px 0; }
.par-mark { color: var(--green-on); }
.par-ko { font-size: 13px; color: var(--txt2); margin: 4px 0 5px; }
.par-meta { font-size: 11px; color: var(--txt3); font-weight: 700; margin-top: 6px; }

/* ══════════ 자막 표시 옵션(배치·크기·순서) ══════════ */
.ly-seg { display: flex; flex-direction: column; }
.ly-body.ko-first .ly-en { order: 2; }
.ly-body.ko-first .ly-ko { order: 1; margin-top: 0; margin-bottom: 6px; }
/* 좌우 2단 병렬 — 문장 쌍이 같은 행에 정렬된다 */
.ly-body.cols .ly-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ly-body.cols .ly-en { grid-column: 1; }
.ly-body.cols .ly-ko { grid-column: 2; margin-top: 0; }
.ly-body.cols.ko-first .ly-en { grid-column: 2; }
.ly-body.cols.ko-first .ly-ko { grid-column: 1; }
.ly-body.cols .ly-seg.learn { grid-template-columns: 1fr 1fr; }
/* 세로 화면에서는 열이 좁으므로 한 단계 축소 */
@media (orientation: portrait) { .ly-body.cols { --cap-narrow: 0.85; } }
@media (orientation: landscape) { .ly-body.cols { --cap-narrow: 1; } }

.disp-gear { min-width: 34px; padding: 0 10px; }
.disp-gear svg { display: block; }
.disp-pop { margin: 4px 16px 8px; padding: 14px; border-radius: 12px;
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.disp-title { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--txt2);
  text-transform: uppercase; margin-bottom: 10px; }
.disp-row { margin-bottom: 12px; }
.disp-row:last-child { margin-bottom: 0; }
.disp-label { font-size: 12px; font-weight: 700; color: var(--txt2); margin-bottom: 6px; }
.disp-row .chips { justify-content: flex-start; }
.disp-row .pill { min-height: 32px; font-size: 12px; background: var(--elev); }
.disp-note { font-size: 10.5px; color: var(--txt3); margin-top: 5px; }

/* ══════════ 음질 표시 ══════════ */
.qbadge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: -.01em;
  padding: 1px 6px; border-radius: 4px; margin-right: 5px; vertical-align: 1px;
  background: rgba(255,255,255,.12); color: var(--txt2); }
.qbadge.q-hifi { background: linear-gradient(135deg, #E8C26A, #C79A2E); color: #201800; }
.qbadge.q-hq { background: rgba(30,215,96,.18); color: var(--green-on); }
.qbadge.q-sq { background: rgba(255,255,255,.12); color: var(--txt2); }
.qbadge.q-lq { background: rgba(255,255,255,.08); color: var(--txt3); }
.qbadge.q-na { background: rgba(255,255,255,.06); color: var(--txt3); }
.qmulti { font-size: 10.5px; font-weight: 700; color: var(--txt2); background: rgba(255,255,255,.10);
  padding: 1px 6px; border-radius: 4px; margin-right: 5px; }
.live-codec.q-hifi { color: #E8C26A; }
.live-codec.q-hq { color: var(--green-on); }
.live-dot.buffering { background: #FFB020; }
.live-dot.idle { background: var(--txt3); }
.sort-seg { margin: 0 0 12px; }
.sort-seg button { min-height: 34px; font-size: 12.5px; }
.qpick { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin-top: 12px;
  scrollbar-width: none; }
.qpick::-webkit-scrollbar { display: none; }
.qpick .pill { flex: 0 0 auto; min-height: 32px; font-size: 12px; background: var(--elev); }
.tile-hifi { background: linear-gradient(140deg, #C79A2E, #7A5A10); }

/* ══════════ 플로팅 자막 오버레이 ══════════
   투명한 것은 배경뿐 — 글자는 항상 완전 불투명하게 둔다(가독성 원칙). */
.cap-float {
  /* ★260826 실사고: 나우 플레잉(z60)·자막 시트(z65)가 이 오버레이(구 z58)를 덮어
     '켜짐인데 화면엔 없음'이 났다. 스펙(전 화면 영속)대로 모달(70) 아래 최상단에 둔다. */
  position: fixed; z-index: 68;
  left: calc(var(--sal) + 16px); right: calc(var(--sar) + 16px);
  bottom: calc(var(--sab) + var(--tabh) + var(--minih) + 14px);
  max-width: 688px; margin: 0 auto;
  background: rgba(18, 18, 18, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px; padding: 8px 12px 11px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .32s cubic-bezier(0.34,1.3,0.64,1), bottom .32s cubic-bezier(0.34,1.3,0.64,1),
              top .32s cubic-bezier(0.34,1.3,0.64,1), height .32s cubic-bezier(0.34,1.3,0.64,1);
  touch-action: none;
}
.cap-float.top { bottom: auto; top: calc(var(--sat) + 12px); }
.cf-head { display: flex; align-items: center; gap: 8px; height: 16px; }
.cf-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--green-on); text-transform: uppercase; }
.cf-grip { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.22); max-width: 40px; margin: 0 auto; }
.cf-x { width: 26px; height: 26px; border-radius: 50%; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1; }
/* position:relative 필수 — 없으면 자식 offsetTop 이 스크롤 컨테이너 기준이 아니어서
   중·대 크기에서 하이라이트 중앙 정렬이 어긋난다(실측 384px). */
.cf-body { margin-top: 4px; cursor: pointer; position: relative; }
.cf-line { margin-top: 3px; }
.cf-line.past { opacity: 1; }
.cf-line.past .cf-en, .cf-line.past .cf-ko { color: #B3B3B3; }
.cf-line.cur .cf-en, .cf-line.cur .cf-ko { color: #1ED760; }
.cf-en { font-size: calc(15px * var(--cap-scale, 1)); font-weight: 800; line-height: 1.3;
  color: #FFFFFF; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-ko { font-size: calc(13px * var(--cap-scale, 1)); font-weight: 600; line-height: 1.35;
  color: #FFFFFF; margin-top: 2px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-body.ko-first .cf-line { display: flex; flex-direction: column; }
.cf-body.ko-first .cf-en { order: 2; }
.cf-body.ko-first .cf-ko { order: 1; margin-top: 0; margin-bottom: 2px; }
/* 최소화 알약 */
.cap-pill { position: fixed; z-index: 68; right: calc(var(--sar) + 10px);
  bottom: calc(var(--sab) + var(--tabh) + var(--minih) + 16px);
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(18,18,18,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14); color: var(--green-on); font-size: 12px; font-weight: 800; }

/* ══════════ 오버레이 크기 3단 ══════════ */
.cf-size { width: 26px; height: 26px; border-radius: 7px; color: rgba(255,255,255,.75); font-size: 13px; }
.cf-body { max-height: none; overflow: visible; }
/* 중 — 화면 높이 45%, 하단 고정 */
.cap-float.size-m { height: 45vh; display: flex; flex-direction: column; }
.cap-float.size-m .cf-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
/* 대 — 여백 20px만 남긴 거의 전체 화면(여전히 레이어: 뒤 페이지가 비친다) */
.cap-float.size-l {
  left: calc(var(--sal) + 20px); right: calc(var(--sar) + 20px);
  top: calc(var(--sat) + 20px); bottom: calc(var(--sab) + 20px);
  height: auto; display: flex; flex-direction: column;
}
.cap-float.size-l .cf-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.cap-float.size-m .cf-line, .cap-float.size-l .cf-line { margin-top: 10px; }
/* 중·대에서만 2단 병렬 허용 */
.cf-body.cols .cf-line { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.cf-body.cols .cf-en { grid-column: 1; }
.cf-body.cols .cf-ko { grid-column: 2; margin-top: 0; }
.cf-body.cols.ko-first .cf-en { grid-column: 2; }
.cf-body.cols.ko-first .cf-ko { grid-column: 1; }
.new-badge { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  padding: 1px 5px; border-radius: 4px; margin-right: 5px; vertical-align: 1px;
  background: var(--green-on); color: #000; }

/* ══════════ 내 아티스트 존 ══════════ */
.iz { background: linear-gradient(180deg, #181818, #121212); border-radius: 14px;
  padding: 12px 12px 6px; margin: 0 -4px 18px; }
:root[data-theme="light"] .iz, :root[data-theme="system"].sys-light .iz {
  background: linear-gradient(180deg, #F6F6F6, #FFFFFF); }
.iz-avatars { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.iz-avatars::-webkit-scrollbar { display: none; }
.iz-av { flex: 0 0 auto; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--txt2); font-weight: 600; }
.iz-av img, .iz-av-all { width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
  background: var(--elev); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--txt2); border: 2px solid transparent; }
.iz-av.on img, .iz-av.on .iz-av-all { border-color: var(--green-on); color: var(--green-on); }
.iz-av.on { color: var(--txt); }
.iz-av span { max-width: 62px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iz-count { font-size: 11px; font-weight: 800; color: var(--green-on); margin-left: 8px; }
.iz .shelf-h { margin: 10px 0 10px; }
.iz .shelf-h h2 { font-size: 16px; }
.iz-ep { flex: 0 0 138px; width: 138px; }
.iz-ep img { width: 138px; height: 138px; border-radius: 8px; }
.iz-chips { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.iz-chips .pill { min-height: 22px; padding: 0 8px; font-size: 10px; }
.iz-par { margin-bottom: 8px; padding: 11px 13px; }
.par-hit.one { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 4px; }
.iz-onboard { padding: 18px 16px; text-align: left; }
.iz-on-t { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.iz-on-s { font-size: 13px; color: var(--txt2); line-height: 1.55; margin-bottom: 14px; }
/* 탭바 점 배지 */
.tab.has-dot .tab-ico { position: relative; }
.tab.has-dot .tab-ico::after { content: ""; position: absolute; top: -1px; right: -3px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-on); }

/* ══════════ 타입어헤드 후보 리스트 ══════════ */
.i-sug { margin: -6px 0 12px; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.i-sug-h { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--txt3);
  text-transform: uppercase; padding: 8px 6px 4px; }
.i-sug-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 52px;
  padding: 6px 8px; border-radius: 8px; text-align: left; }
.i-sug-row:active { background: var(--press); transform: scale(.985); }
.i-sug-row.done { opacity: .55; }
.i-sug-row.ok { background: rgba(30,215,96,.16); }
.i-sug-row img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--elev); flex: 0 0 40px; }
.i-sug-row img.round { border-radius: 50%; }
.i-init { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--elev);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--txt2); }
.i-sug-main { flex: 1; min-width: 0; }
.i-sug-n { font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.i-sug-a { font-size: 12px; color: var(--txt2); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-check { color: var(--green-on); font-size: 15px; font-weight: 800; }
.i-spin { position: absolute; right: 12px; top: 50%; margin-top: -7px; width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid rgba(0,0,0,.18); border-top-color: #121212;
  animation: spin .8s linear infinite; }
.i-toast { position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 90;
  bottom: calc(var(--sab) + var(--tabh) + var(--minih) + 24px);
  background: rgba(0,0,0,.86); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s linear, transform .2s cubic-bezier(0.32,0.72,0,1); }
.i-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.i-sug.loading { opacity: .42; pointer-events: none; }
.searchbar { position: relative; }

/* 학습 반복 단위 · 시크바 범위 밴드 · 단락 경계 */
.seek-wrap { position: relative; }
.seek-band { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px;
  background: rgba(30, 215, 96, .55); pointer-events: none; }
.ly-seg.para-end { border-bottom: 1px solid rgba(255,255,255,.10); padding-bottom: 14px; }

/* ── 자막 모델 준비 시트 보강(핫픽스) ─────────────────────────── */
.mb-line{font-size:11px;color:var(--txt2,#B3B3B3);margin:-4px 0 8px 0;min-height:14px;
  font-variant-numeric:tabular-nums}
.cc-stage{font-size:12.5px;color:#fff;margin-top:6px;min-height:16px}
.cc-stage.pulse{animation:ccPulse 1.2s ease-in-out infinite}
@keyframes ccPulse{0%,100%{opacity:.5}50%{opacity:1}}
.cc-resume{background:#242424;border-radius:10px;padding:12px;margin-bottom:12px}
.cc-resume p{font-size:13px;margin:0 0 10px 0;color:#fff}
.bar i.indet{width:38%!important;animation:ccIndet 1.1s ease-in-out infinite alternate}
@keyframes ccIndet{from{margin-left:0}to{margin-left:62%}}

