/* ===================================================================
   tracklist.css — 곡 목록 표 (최신 트랙·믹셋·레전드·디깅, 2026-11)
   그리는 코드: inc/tracklist.lib.php, 움직임: sub/js/tracklist.js
   - 표가 들어갈 실제 폭(컨테이너)에 맞춰 칸을 줄여요. 왼쪽 메뉴가 있든 없든 같은 규칙이에요.
     좁을 때부터 넓을 때 순서로: 휴대폰(⋮ 메뉴) → 아이콘 3개·날짜 → 길이 → 재생 → 좋아요·리포스트 → 연도까지
   - 제목은 언제나 한 줄(…으로 줄임). 다운 단추는 제목 칸 안에 붙어서, 없으면 그 자리까지 제목이 써요.
   - 다크가 기본이고, 화이트(크림)는 맨 아래 [data-theme="light"]에서 색만 바꿔요.
=================================================================== */

:root{
  --tl-text:#ededed;
  --tl-text-2:#bdbdbd;
  --tl-text-3:#8d8d8d;
  --tl-line:#232323;
  --tl-head:#8d8d8d;
  --tl-hover:rgba(255,255,255,.035);
  --tl-accent:#ff0050;
  --tl-accent-text:#ff3d74;
  --tl-accent-soft:rgba(255,0,80,.10);
  --tl-on-accent:#fff;
  --tl-ic:#9a9a9a;
  --tl-ic-hover:#fff;
  --tl-ic-bg:rgba(255,255,255,.08);
  --tl-chip:#1a1a1a;
  --tl-chip-line:#333;
  --tl-chip-text:#d8d8d8;
  --tl-ink:#fff;
  --tl-ink-text:#111;
  --tl-dig:#0e0e0e;
  --tl-dig-line:#262626;
  --tl-wave:#5a5a5a;
  --tl-wave-prog:#ff0050;
  --tl-pop:#1b1b1b;
  --tl-pop-line:#2e2e2e;
  --tl-shadow:0 12px 32px rgba(0,0,0,.55);
  --tl-cover-bg:#1a1a1a;
  --tl-focus:0 0 0 2px rgba(255,0,80,.55);
}

.tl-sr{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tl-svg{width:1em;height:1em;display:block;flex:none}

/* 목록 페이지에서는 본문 칸이 창보다 넓어지지 않게 해요 (탭 줄·표가 창을 옆으로 밀어내던 문제).
   default.css는 1025px 이상에서만 이렇게 해 뒀는데, 새 표는 좁은 폭을 스스로 줄여서 모든 폭에서 괜찮아요 */
.va-main{min-width:0}

/* ---------------- 제목 줄 ---------------- */
.tl-pagehead{flex-wrap:wrap; row-gap:8px}
.tl-pagehead .va-title{min-width:0}

/* ---------------- 기간 탭 + 날짜 고르기 ---------------- */
.tl-tabbar{display:flex; align-items:center; gap:10px; margin:15px 0 12px; min-width:0}
/* 탭은 언제나 한 줄: 넓으면 고르게 나누고, 모자라면 옆으로 밀어서 봐요 (레전드 연도 탭 9개도 글자가 깨지지 않게) */
.tl-tabbar .va-tab{
  margin:0; flex:1 1 auto; min-width:0; max-width:none;
  flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.tl-tabbar .va-tab::-webkit-scrollbar{display:none}
.tl-tabbar .va-tab a{flex:1 0 auto; white-space:nowrap}
.tl-date{display:flex; align-items:center; gap:4px; flex:none}
.tl-date-btn{
  position:relative; display:inline-flex; align-items:center; gap:7px;
  height:34px; padding:0 12px; border-radius:8px; cursor:pointer;
  border:1px solid #444; background:#111; color:#ccc; font-weight:600; font-size:14px; white-space:nowrap;
}
.tl-date-btn .tl-svg{font-size:17px}
.tl-date-btn:hover{border-color:#666; color:#fff}
.tl-date.on .tl-date-btn{background:var(--tl-accent); border-color:var(--tl-accent); color:#fff}
.tl-date-input{position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; border:0; padding:0; margin:0; font-size:16px}
.tl-date-input::-webkit-calendar-picker-indicator{position:absolute; inset:0; width:auto; height:auto; opacity:0; cursor:pointer}
.tl-date-step{
  display:inline-flex; align-items:center; justify-content:center; width:30px; height:34px; border-radius:8px;
  color:var(--tl-text-2); font-size:17px; text-decoration:none;
}
.tl-date-step:hover{background:var(--tl-ic-bg); color:var(--tl-text)}
.tl-date-step.is-off{opacity:.3; pointer-events:none}

/* ---------------- 도구 줄 (곡 수 · 전체 재생 · 정렬) ---------------- */
.tl-bar{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 14px; margin:4px 0 14px}
.tl-bar-l,.tl-bar-r{display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0}
.tl-per{display:inline-flex; padding:3px; border-radius:999px; background:var(--tl-chip); border:1px solid var(--tl-chip-line)}
.tl-per a{
  min-width:40px; height:30px; padding:0 10px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
  color:var(--tl-text-2); font-weight:700; font-size:14px; text-decoration:none; font-variant-numeric:tabular-nums;
}
.tl-per a:hover{color:var(--tl-text)}
.tl-per a.on{background:var(--tl-ink); color:var(--tl-ink-text)}
.tl-playall{
  display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 16px 0 13px; border-radius:999px; cursor:pointer;
  background:var(--tl-accent); color:#fff; border:0; font-weight:700; font-size:14px; white-space:nowrap;
}
.tl-playall .tl-svg{font-size:16px}
.tl-playall:hover{filter:brightness(1.08)}
.tl-playall:disabled{opacity:.6; cursor:progress}
.tl-sort{position:relative; display:inline-flex; align-items:center}
.tl-sort-sel{
  appearance:none; -webkit-appearance:none; height:38px; padding:0 36px 0 14px; border-radius:10px; cursor:pointer;
  background:var(--tl-chip); color:var(--tl-text); border:1px solid var(--tl-chip-line); font-weight:600; font-size:14px;
}
.tl-sort .tl-svg{position:absolute; right:12px; font-size:16px; color:var(--tl-text-3); pointer-events:none}
.tl-digswitch{display:none; align-items:center; gap:8px; font-size:13px; color:var(--tl-text-2); cursor:pointer; user-select:none}
.tl-digswitch input{position:absolute; opacity:0; width:1px; height:1px}
.tl-digswitch i{position:relative; width:34px; height:20px; border-radius:999px; background:#444; transition:background .2s; flex:none}
.tl-digswitch i::after{content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .2s}
.tl-digswitch input:checked + i{background:var(--tl-accent)}
.tl-digswitch input:checked + i::after{transform:translateX(14px)}
.tl-digswitch input:focus-visible + i{box-shadow:var(--tl-focus)}
@media (max-width:720px){
  .tl-digswitch{display:inline-flex}
  .tl-bar{gap:8px 10px; margin-bottom:10px}
  .tl-per a{min-width:36px; height:28px; padding:0 8px; font-size:13px}
  .tl-playall{height:34px; padding:0 13px 0 11px; font-size:13px}
  .tl-sort-sel{height:34px; font-size:13px; padding:0 32px 0 12px}
  .tl-tabbar{gap:6px; margin:10px 0}
  .tl-date-btn{height:30px; padding:0 10px; border-radius:15px; font-size:13px}
  .tl-date-step{width:26px; height:30px}
}
/* 아주 좁은 화면(폴드 접힘 등): 날짜 단추는 달력 그림만 */
@media (max-width:400px){
  .tl-date:not(.on) .tl-date-btn span{display:none}
  .tl-date:not(.on) .tl-date-btn{padding:0 8px}
}
@media (max-width:330px){
  .tl-playall span{display:none}
  .tl-playall{padding:0 10px}
  .tl-date.on .tl-date-btn span{font-size:12px}
}

/* ---------------- 표 ---------------- */
/* 칸 너비는 변수로: 순위 · 커버 · 숫자(재생·좋아요) · 리포스트 · 길이 · 날짜 · 아이콘 하나 */
.tl{
  container:tl / inline-size; width:100%;
  --tl-gap:10px; --tl-padx:8px;
  --tl-rankw:22px; --tl-cover:44px; --tl-numw:52px; --tl-repw:60px; --tl-timew:46px; --tl-datew:46px; --tl-icw:34px;
  --tl-act3:calc(var(--tl-icw) * 3 + 4px);
}
.tl.tl-has-old{--tl-datew:62px}   /* 지난해 곡이 있으면 19-05-03처럼 두 자리 연도가 붙어요 */
@media (pointer:coarse){ .tl{--tl-icw:38px} }  /* 손가락으로 누르는 기기: 단추를 조금 크게 */
.tl .tl-head,
.tl .tl-body .tl-row{
  display:grid; align-items:center; column-gap:var(--tl-gap);
  grid-template-areas:none;
  padding:0 var(--tl-padx);
  /* 휴대폰 기본: 순위 · 커버 · 제목 · ⋮ */
  grid-template-columns:var(--tl-rankw) var(--tl-cover) minmax(0,1fr) var(--tl-icw);
}
.tl .tl-head{display:none; padding-top:10px; padding-bottom:10px; color:var(--tl-head); font-size:12px; font-weight:700; letter-spacing:0; white-space:nowrap; border-bottom:1px solid var(--tl-line)}
.tl .tl-body .tl-row{
  position:relative; padding-top:9px; padding-bottom:9px; border-top:1px solid var(--tl-line); border-bottom:0;
  background:transparent; transition:background-color .15s;
}
.tl .tl-body .tl-row:first-child{border-top:0}
.tl .tl-body .tl-row:hover{background:var(--tl-hover)}

/* 칸: 넓을 때만 보이는 것은 기본으로 숨겨요 */
.tl .tl-c-plays,.tl .tl-c-likes,.tl .tl-c-reposts,.tl .tl-c-time,.tl .tl-c-date{display:none}
.tl .tl-num{text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap}
.tl .tl-c-date{white-space:nowrap; font-variant-numeric:tabular-nums}
.tl .tl-c-date .tl-y{display:none}
.tl .tl-head .tl-c-date{text-align:left}

.tl .tl-c-rank{
  text-align:center; font-weight:800; font-size:12px; color:var(--tl-text-2);
  font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden;
}
.tl .tl-head .tl-c-rank{font-weight:700; color:var(--tl-head)}

/* 커버 */
.tl-cover{
  position:relative; display:block; width:var(--tl-cover); height:var(--tl-cover); padding:0; border:0; border-radius:6px;
  overflow:hidden; cursor:pointer; background:var(--tl-cover-bg); touch-action:manipulation;
}
.tl-cover img{width:100%; height:100%; object-fit:cover; display:block}
.tl-cover-ic{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45); color:#fff; font-size:20px; opacity:0; transition:opacity .15s;
}
.tl-cover:hover .tl-cover-ic,.tl-cover:focus-visible .tl-cover-ic{opacity:1}
.tl-cover:focus-visible{outline:none; box-shadow:var(--tl-focus)}
/* 지금 재생 중: 커버 위 막대 3개가 움직여요 */
.tl-eq{position:absolute; inset:0; display:none; align-items:flex-end; justify-content:center; gap:3px; padding-bottom:11px; background:rgba(0,0,0,.42)}
.tl-eq i{width:4px; height:18px; border-radius:2px; background:#fff; transform-origin:bottom; animation:tl-eq .9s ease-in-out infinite}
.tl-eq i:nth-child(2){animation-delay:-.3s}
.tl-eq i:nth-child(3){animation-delay:-.6s}
@keyframes tl-eq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
.tl-row.active .tl-eq{display:flex}
.tl-row.active .tl-cover:hover .tl-eq{display:none}
.tl-row.active.is-paused .tl-eq i{animation-play-state:paused}

/* 제목·아티스트 */
.tl .tl-c-main{min-width:0; cursor:pointer; touch-action:manipulation}
.tl .tl-head .tl-c-main{cursor:default}
.tl-l1{display:flex; align-items:center; gap:7px; min-width:0}
.tl-title{
  flex:0 1 auto; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  color:var(--tl-text); font-weight:700; font-size:15px; line-height:1.35; word-break:normal;
}
.tl .tl-c-main:hover .tl-title{color:var(--tl-accent-text)}
.tl-row.active .tl-title{color:var(--tl-accent-text)}
.tl-l2{display:flex; align-items:center; gap:8px; min-width:0; margin-top:2px; font-size:13px; line-height:1.35; color:var(--tl-text-3)}
.tl-artist{flex:0 1 auto; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis}
.tl-meta{display:inline-flex; align-items:center; gap:8px; flex:none; white-space:nowrap; font-variant-numeric:tabular-nums; font-size:12px}
.tl-meta > span{display:inline-flex; align-items:center; gap:3px}
.tl-meta > span::before{content:""; width:3px; height:3px; border-radius:50%; background:currentColor; opacity:.6; margin-right:5px}
.tl-meta .tl-svg{font-size:9px}
.tl-pro{
  flex:none; padding:1px 6px; border-radius:4px; font-size:10.5px; font-weight:800; letter-spacing:.3px; line-height:1.5;
  background:#ff5500; color:#fff;
}
.tl-down{
  flex:none; margin-left:auto; display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 10px 0 8px; border-radius:999px;
  font-size:12.5px; font-weight:800; text-decoration:none; white-space:nowrap;
  color:var(--tl-accent-text); background:var(--tl-accent-soft); border:1px solid rgba(255,0,80,.35);
}
.tl-down .tl-svg{font-size:14px}
.tl-down:hover{background:var(--tl-accent); color:#fff; border-color:var(--tl-accent)}

/* 기능 아이콘: 휴대폰에서는 ⋮만, 넓으면 아티스트·담기·좋아요 */
.tl .tl-c-act{display:flex; align-items:center; justify-content:flex-end; gap:2px}
.tl-ic{
  display:inline-flex; align-items:center; justify-content:center; width:var(--tl-icw,34px); height:var(--tl-icw,34px); padding:0; border:0; border-radius:50%;
  background:transparent; color:var(--tl-ic); font-size:19px; cursor:pointer; text-decoration:none; flex:none;
  transition:background-color .15s, color .15s, transform .15s; touch-action:manipulation;
}
.tl-ic:hover{background:var(--tl-ic-bg); color:var(--tl-ic-hover)}
.tl-ic:active{transform:scale(.9)}
.tl-ic:focus-visible{outline:none; box-shadow:var(--tl-focus)}
.tl-ic[aria-pressed="true"]{color:var(--tl-accent-text)}
.tl-ic.is-busy{opacity:.5; pointer-events:none}
.tl-ic.pop{animation:tl-pop .35s ease}
@keyframes tl-pop{40%{transform:scale(1.25)}}
.tl .tl-c-act .tl-ic:not(.tl-ic-more){display:none}

.tl-empty{margin:0; padding:36px 16px; text-align:center; color:var(--tl-text-3); font-size:14px}

/* 좁을 때는 '다운'을 아이콘만 (제목 자리를 넓게), 아주 좁으면 길이는 빼요 */
@container tl (max-width:599px){
  .tl-down span{display:none}
  .tl-down{width:28px; height:28px; padding:0; justify-content:center}
  .tl-down .tl-svg{font-size:15px}
}
@container tl (max-width:399px){
  .tl-meta .tl-m-time{display:none}
}

/* ---- 폭별 칸 (보이는 칸 수와 grid 칸 수가 꼭 같아야 해요) ---- */
@container tl (max-width:299px){
  /* 폴드 접힘 같은 아주 좁은 화면: 순위를 빼고 커버 · 제목 · ⋮ */
  .tl > *{--tl-gap:8px; --tl-padx:4px; --tl-cover:40px}
  .tl .tl-head,.tl .tl-body .tl-row{grid-template-columns:var(--tl-cover) minmax(0,1fr) var(--tl-icw)}
  .tl .tl-c-rank{display:none}
  .tl-title{font-size:14px}
  .tl-meta .tl-m-plays{display:none}
}
@container tl (min-width:480px){
  /* 순위 · 커버 · 제목 · 날짜 · 아이콘 3개 */
  .tl > *{--tl-gap:12px; --tl-padx:10px; --tl-rankw:28px}
  .tl .tl-head{display:grid}
  .tl .tl-head,.tl .tl-body .tl-row{grid-template-columns:var(--tl-rankw) var(--tl-cover) minmax(0,1fr) var(--tl-datew) var(--tl-act3)}
  .tl .tl-c-date{display:block}
  .tl .tl-c-act .tl-ic:not(.tl-ic-more){display:inline-flex}
  .tl .tl-c-act .tl-ic-more{display:none}
  .tl-meta > span:first-child{display:none}
  .tl-meta > span:nth-child(2)::before{display:none}
  .tl .tl-c-rank{font-size:13px}
}
@container tl (min-width:600px){
  /* + 길이 */
  .tl > *{--tl-rankw:30px}
  .tl .tl-head,.tl .tl-body .tl-row{grid-template-columns:var(--tl-rankw) var(--tl-cover) minmax(0,1fr) var(--tl-timew) var(--tl-datew) var(--tl-act3)}
  .tl .tl-c-time{display:block}
  .tl-meta .tl-m-time{display:none}
}
@container tl (min-width:720px){
  /* + 재생 수 */
  .tl > *{--tl-cover:46px; --tl-rankw:32px}
  .tl .tl-head,.tl .tl-body .tl-row{grid-template-columns:var(--tl-rankw) var(--tl-cover) minmax(0,1fr) var(--tl-numw) var(--tl-timew) var(--tl-datew) var(--tl-act3)}
  .tl .tl-c-plays{display:block}
  .tl-meta{display:none}
}
@container tl (min-width:860px){
  /* + 좋아요 · 리포스트 */
  .tl > *{--tl-gap:14px; --tl-padx:12px; --tl-cover:48px; --tl-rankw:34px}
  .tl .tl-head,.tl .tl-body .tl-row{grid-template-columns:var(--tl-rankw) var(--tl-cover) minmax(0,1fr) var(--tl-numw) var(--tl-numw) var(--tl-repw) var(--tl-timew) var(--tl-datew) var(--tl-act3)}
  .tl .tl-c-likes,.tl .tl-c-reposts{display:block}
  .tl-title{font-size:15.5px}
}
@container tl (min-width:1040px){
  /* 날짜에 연도까지 (2026-11-04) */
  .tl > *{--tl-rankw:36px; --tl-numw:56px; --tl-repw:64px; --tl-timew:48px; --tl-datew:86px}
  .tl .tl-c-date .tl-y{display:inline}
}
/* 컨테이너 쿼리가 없는 옛 브라우저: 휴대폰 모양 그대로 (제목은 한 줄) */

/* 재생 중인 줄 */
.tl .tl-body .tl-row.active{background:var(--tl-accent-soft); box-shadow:inset 3px 0 0 var(--tl-accent)}
/* 디깅 플레이어가 열린 줄 */
.tl .tl-body .tl-row.is-open{background:var(--tl-dig); border-top-color:var(--tl-dig-line)}
.tl .tl-body .tl-row.is-open.active{background:var(--tl-dig)}

/* ---------------- 디깅 모드 (줄 아래 펼쳐지는 플레이어) ---------------- */
.tl-dig{display:grid; grid-template-rows:0fr; transition:grid-template-rows .26s cubic-bezier(.2,.7,.2,1); background:var(--tl-dig)}
.tl-dig.open{grid-template-rows:1fr}
.tl-dig > .tl-dig-in{min-height:0; overflow:hidden}
.tl-dig.active-row{box-shadow:inset 3px 0 0 var(--tl-accent)}
.tl-dig-box{
  display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"play wave" "info info";
  align-items:center; gap:10px 14px; padding:4px var(--tl-padx) 16px calc(var(--tl-padx) + 6px);
}
.tl-dig-play{
  grid-area:play; width:52px; height:52px; border-radius:50%; border:0; cursor:pointer; flex:none;
  display:flex; align-items:center; justify-content:center; background:var(--tl-accent); color:#fff; font-size:24px;
  box-shadow:0 6px 18px rgba(255,0,80,.28); transition:transform .15s, filter .15s; touch-action:manipulation;
}
.tl-dig-play:hover{filter:brightness(1.08)}
.tl-dig-play:active{transform:scale(.94)}
.tl-dig-play:focus-visible{outline:none; box-shadow:var(--tl-focus), 0 6px 18px rgba(255,0,80,.28)}
.tl-dig-play .tl-svg{font-size:24px}
.tl-dig-play.is-play .tl-svg{transform:translateX(1px)}
.tl-dig-play.is-loading{pointer-events:none}
.tl-dig-play.is-loading .tl-svg{display:none}
.tl-dig-play.is-loading::after{content:""; width:22px; height:22px; border-radius:50%; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; animation:tl-spin .8s linear infinite}
@keyframes tl-spin{to{transform:rotate(360deg)}}

.tl-wave{grid-area:wave; position:relative; height:72px; min-width:0; cursor:pointer; touch-action:none; user-select:none; -webkit-user-select:none; outline:none}
.tl-wave canvas{position:absolute; left:0; top:0; width:100%; height:100%; display:block}
.tl-wave-prog{position:absolute; left:0; top:0; bottom:0; width:0; overflow:hidden; will-change:width}
.tl-wave-prog canvas{width:auto}
.tl-wave-head{position:absolute; top:4px; bottom:14px; width:2px; margin-left:-1px; left:0; background:var(--tl-accent); border-radius:1px; opacity:0; transition:opacity .2s}
.tl-wave.is-cur .tl-wave-head{opacity:1}
.tl-wave-hover{position:absolute; top:0; bottom:12px; width:1px; left:0; background:var(--tl-text); opacity:0; pointer-events:none}
.tl-wave:hover .tl-wave-hover{opacity:.55}
.tl-wave-tip{
  position:absolute; top:-4px; left:0; transform:translate(-50%,-100%); padding:2px 7px; border-radius:6px; font-size:11.5px; font-weight:700;
  background:var(--tl-ink); color:var(--tl-ink-text); white-space:nowrap; opacity:0; pointer-events:none; font-variant-numeric:tabular-nums;
}
.tl-wave:hover .tl-wave-tip{opacity:1}
.tl-wave:focus-visible{box-shadow:var(--tl-focus); border-radius:6px}
.tl-wave-time{position:absolute; left:0; right:0; bottom:-2px; display:flex; justify-content:space-between; font-size:11.5px; font-weight:700; color:var(--tl-text-3); font-variant-numeric:tabular-nums; pointer-events:none}
.tl-wave-time .cur{color:var(--tl-accent-text)}
.tl-wave-msg{position:absolute; inset:0 0 14px; display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--tl-text-3)}
.tl-wave.is-loading .tl-wave-msg::before{content:""; width:14px; height:14px; margin-right:8px; border-radius:50%; border:2px solid currentColor; border-top-color:transparent; animation:tl-spin .8s linear infinite}

.tl-dig-info{grid-area:info; display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; min-width:0}
.tl-chip{display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 10px; border-radius:999px; font-size:12px; font-weight:600; background:var(--tl-chip); color:var(--tl-chip-text); border:1px solid var(--tl-chip-line); white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis}
.tl-chip b{font-weight:800; color:var(--tl-text-3)}
a.tl-chip{text-decoration:none}
a.tl-chip:hover{border-color:var(--tl-text-3); color:var(--tl-text)}
.tl-chip .tl-svg{font-size:13px}
.tl-dig-login{display:inline-flex; align-items:center; gap:10px; font-size:13px; color:var(--tl-text-2)}
.tl-dig-login a{display:inline-flex; align-items:center; height:30px; padding:0 14px; border-radius:999px; background:var(--tl-ink); color:var(--tl-ink-text); font-weight:700; text-decoration:none}
.tl-dig-close{margin-left:auto}

@container tl (min-width:720px){
  .tl-dig-box{
    grid-template-columns:auto minmax(0,1fr) minmax(150px,auto);
    grid-template-areas:"play wave info";
    padding:6px var(--tl-padx) 18px calc(var(--tl-padx) + var(--tl-rankw) + var(--tl-gap));
    gap:10px 18px;
  }
  .tl-dig-info{flex-direction:column; align-items:flex-start; justify-content:center; max-width:220px}
  .tl-dig-close{margin-left:0}
  .tl-wave{height:80px}
}
@container tl (max-width:479px){
  .tl-dig-box{gap:8px 12px; padding:2px var(--tl-padx) 14px}
  .tl-dig-play{width:46px; height:46px}
  .tl-wave{height:62px}
}

/* ---------------- ⋮ 메뉴 · 알림 ---------------- */
.tl-menu{
  position:fixed; z-index:10050; min-width:210px; max-width:calc(100vw - 24px); padding:6px; border-radius:14px;
  background:var(--tl-pop); border:1px solid var(--tl-pop-line); box-shadow:var(--tl-shadow);
  opacity:0; transform:translateY(-4px) scale(.98); transform-origin:top right; transition:opacity .14s, transform .14s;
}
.tl-menu.open{opacity:1; transform:none}
.tl-menu-head{padding:8px 10px 8px; font-size:12.5px; color:var(--tl-text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; border-bottom:1px solid var(--tl-pop-line); margin-bottom:4px}
.tl-menu a,.tl-menu button{
  display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:0 12px; border:0; border-radius:10px; background:transparent;
  color:var(--tl-text); font-size:15px; font-weight:600; text-align:left; text-decoration:none; cursor:pointer;
}
.tl-menu a:hover,.tl-menu button:hover,.tl-menu a:focus-visible,.tl-menu button:focus-visible{background:var(--tl-ic-bg); outline:none}
.tl-menu .tl-svg{font-size:20px; color:var(--tl-text-3)}
.tl-menu [aria-pressed="true"] .tl-svg{color:var(--tl-accent-text)}

.tl-toast{
  position:fixed; left:50%; bottom:22px; z-index:10060; display:flex; align-items:center; gap:14px; max-width:calc(100vw - 32px);
  padding:12px 16px; border-radius:12px; background:var(--tl-ink); color:var(--tl-ink-text); font-size:14px; font-weight:600;
  box-shadow:var(--tl-shadow); transform:translate(-50%,16px); opacity:0; transition:opacity .2s, transform .2s; pointer-events:none;
}
.tl-toast.show{opacity:1; transform:translate(-50%,0); pointer-events:auto}
.tl-toast a{color:inherit; font-weight:800; text-decoration:underline; text-underline-offset:3px; white-space:nowrap}

@media (prefers-reduced-motion:reduce){
  .tl-dig,.tl-menu,.tl-toast,.tl-ic,.tl .tl-body .tl-row{transition:none}
  .tl-eq i{animation:none; transform:scaleY(.6)}
}

/* 옛 표 꾸밈(chart.css의 휴대폰 규칙 등)이 새 표에 끼어들지 않게 */
.tl .tl-c-main,.tl .tl-c-cover,.tl .tl-c-act{grid-area:auto}

/* ===================================================================
   화이트(크림) 모드 — 색만 바꿔요 (theme-light.css의 --lt-* 변수를 써요)
=================================================================== */
[data-theme="light"]{
  --tl-text:var(--lt-text);
  --tl-text-2:var(--lt-text-2);
  --tl-text-3:var(--lt-text-3);
  --tl-line:var(--lt-divider);
  --tl-head:var(--lt-text-3);
  --tl-hover:var(--lt-subtle);
  --tl-accent:var(--lt-accent);
  --tl-accent-text:var(--lt-accent-text);
  --tl-accent-soft:var(--lt-accent-soft);
  --tl-ic:var(--lt-text-3);
  --tl-ic-hover:var(--lt-text);
  --tl-ic-bg:rgba(var(--lt-ink-rgb),.07);
  --tl-chip:var(--lt-surface);
  --tl-chip-line:var(--lt-border-strong);
  --tl-chip-text:var(--lt-text-2);
  --tl-ink:var(--lt-ink);
  --tl-ink-text:#fff;
  --tl-dig:#fbf8f3;
  --tl-dig-line:var(--lt-divider);
  --tl-wave:#cbbfb0;
  --tl-wave-prog:var(--lt-accent);
  --tl-pop:var(--lt-surface);
  --tl-pop-line:var(--lt-border);
  --tl-shadow:var(--lt-shadow-lg);
  --tl-cover-bg:var(--lt-fill);
  --tl-focus:0 0 0 3px rgba(var(--lt-accent-rgb),.28);
}
[data-theme="light"] .tl-date-btn{background:var(--lt-surface); border-color:var(--lt-border-strong); color:var(--lt-text-2)}
[data-theme="light"] .tl-date-btn:hover{background:var(--lt-fill-hover); color:var(--lt-text)}
[data-theme="light"] .tl-date.on .tl-date-btn{background:var(--lt-accent-soft); border-color:var(--lt-accent-line); color:var(--lt-accent-text)}
[data-theme="light"] .tl-digswitch i{background:var(--lt-border-strong)}
[data-theme="light"] .tl-playall{background:var(--lt-accent)}
[data-theme="light"] .tl-playall:hover{background:var(--lt-accent-hover); filter:none}
[data-theme="light"] .tl-down{border-color:var(--lt-accent-line)}
[data-theme="light"] .tl-down:hover{background:var(--lt-accent); border-color:var(--lt-accent); color:#fff}
[data-theme="light"] .tl-dig-play{box-shadow:0 6px 16px rgba(var(--lt-accent-rgb),.25)}
[data-theme="light"] .tl-cover img{outline:1px solid rgba(var(--lt-ink-rgb),.12); outline-offset:-1px; border-radius:6px}
/* 표는 theme-light.css의 흰 카드 그대로 두고, 줄 여백·선만 새 표에 맞춰요 */
[data-theme="light"] .tl .tl-head,
[data-theme="light"] .tl .tl-body .tl-row{padding-left:var(--tl-padx); padding-right:var(--tl-padx)}
[data-theme="light"] .tl .tl-head{background:var(--lt-subtle); border-bottom:1px solid var(--lt-border)}
[data-theme="light"] .tl .tl-body .tl-row{border-top-color:var(--lt-divider)}
[data-theme="light"] .tl .tl-body .tl-row:hover{background:var(--lt-subtle)}
[data-theme="light"] .tl .tl-body .tl-row.active,
[data-theme="light"] .tl .tl-body .tl-row.active:hover{background:var(--lt-accent-soft); box-shadow:inset 3px 0 0 var(--lt-accent)}
[data-theme="light"] .tl .tl-body .tl-row.is-open,
[data-theme="light"] .tl .tl-body .tl-row.is-open:hover{background:var(--tl-dig)}
[data-theme="light"] .tl .tl-row.active .tl-title{color:var(--lt-accent-text) !important}
[data-theme="light"] .tl .tl-c-rank{color:var(--lt-text-2)}
[data-theme="light"] .tl-menu{border-color:var(--lt-border)}
