/* TasteTop 화면 스타일 — 값은 모두 tokens.css 변수만 사용 (새 색·글자 크기 금지) */
* { box-sizing:border-box; }
body { margin:0; background:var(--ground); color:var(--ink); font-family:var(--font-sans); font-size:var(--fs-body); line-height:var(--lh-body); }
button, input, select, textarea { font-family:inherit; }
.wrap { max-width:720px; margin:0 auto; padding:var(--space-5); }
h1 { font-size:var(--fs-title); line-height:var(--lh-title); font-weight:800; margin:0; }
h1.logo { display:flex; align-items:center; gap:var(--space-2); flex:none; white-space:nowrap; } /* 로고 tt 타입 1(삼각형 없음, 2026-11-22) + 글자 TasteTop(Pretendard)▲ — 앱 설치 아이콘은 삼각형 있는 타입 2 */
h1.logo img { display:block; width:var(--space-8); height:var(--space-8); }
/* 로고 D-1: 글자 뒤 위쪽 삼각형(1위·뜨는 중, 로고 C에서 이어 옴) — brand-gradient (로고 표시라 허용) */
h1.logo span::after { content:""; display:inline-block; width:var(--space-3); height:var(--space-2); margin-left:var(--space-1); vertical-align:super; background:var(--brand-gradient); clip-path:polygon(50% 0, 100% 100%, 0 100%); }
.sub { color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); }
.sec { color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); margin:var(--space-4) 0 var(--space-2); font-weight:700; }
.chips { display:flex; flex-wrap:wrap; gap:var(--space-2); }
.chip { min-height:36px; border:1px solid var(--line); background:var(--surface-raised); color:var(--ink-soft); padding:0 var(--space-4); border-radius:var(--radius-md); font-size:var(--fs-body); cursor:pointer; }
.chip.on { border-color:var(--mint); background:var(--mint-tint); color:var(--mint); font-weight:700; }
.top { display:flex; gap:var(--space-2); flex-wrap:wrap; justify-content:flex-end; align-items:center; }
.top a, .top button { min-height:44px; display:inline-flex; align-items:center; font-size:var(--fs-caption); padding:0 var(--space-3); border-radius:var(--radius-md); text-decoration:none; border:none; cursor:pointer; font-weight:700; }
.google { background:var(--ink); color:var(--ground); } .facebook { background:var(--brand-facebook); color:var(--brand-facebook-ink); } .kakao { background:var(--brand-kakao); color:var(--brand-kakao-ink); }
.ghost { background:var(--surface-raised); color:var(--ink); border:1px solid var(--line) !important; }
select { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius-md); padding:0 var(--space-3); min-height:44px; font-size:var(--fs-body); width:100%; }
.player { position:relative; width:100%; aspect-ratio:16/9; background:var(--ground); border-radius:var(--radius-sm); overflow:hidden; margin-top:var(--space-4); }
.player > div, .player iframe { position:absolute; inset:0; width:100%; height:100%; }
.now { margin:var(--space-3) 0 var(--space-1); font-weight:700; }
.controls { display:flex; gap:var(--space-2); flex-wrap:wrap; }
button.btn, a.btn { display:inline-flex; align-items:center; text-decoration:none; }
button.btn { min-height:44px; border:1px solid var(--line); background:var(--surface-raised); color:var(--ink-soft); padding:0 var(--space-4); border-radius:var(--radius-md); font-size:var(--fs-body); cursor:pointer; }
a.btn { min-height:44px; border:1px solid var(--line); background:var(--surface-raised); color:var(--ink-soft); padding:0 var(--space-4); border-radius:var(--radius-md); font-size:var(--fs-body); }
button.like { color:var(--mint); border-color:var(--mint); background:var(--mint-tint); font-weight:700; } button.no { color:var(--danger); } button.heart.on { color:var(--magenta); border-color:var(--magenta); }
.start { width:100%; margin-top:var(--space-3); min-height:44px; font-size:var(--fs-body); background:var(--mint); color:var(--ground); border:none; border-radius:var(--radius-md); font-weight:700; cursor:pointer; }
.ad { margin:var(--space-4) 0; min-height:90px; border:1px dashed var(--line); border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:var(--fs-caption); }
.social { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-xl); padding:var(--space-5); margin-top:var(--space-3); }
.cm { padding:var(--space-2) 0; border-top:1px solid var(--line); }
.cm:first-of-type { border-top:none; }
.cm .meta { color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); display:flex; gap:var(--space-2); align-items:center; flex-wrap:wrap; }
.cm .meta button { background:none; border:none; color:var(--muted); font-size:var(--fs-caption); cursor:pointer; padding:0; text-decoration:underline; }
.cm p { margin:var(--space-1) 0 0; white-space:pre-wrap; word-break:break-word; }
.write { display:flex; gap:var(--space-2); margin-top:var(--space-3); }
.write textarea, .write input { flex:1; background:var(--surface-raised); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius-md); padding:var(--space-2) var(--space-3); font-size:var(--fs-body); }
.write textarea { resize:vertical; min-height:44px; }
ol { list-style:none; padding:0; margin:var(--space-2) 0 0; }
li { display:flex; gap:var(--space-3); align-items:center; padding:var(--space-2); border-radius:var(--radius-lg); cursor:pointer; }
li:hover { background:var(--surface-raised); } li.cur { background:var(--now-row); }
li img { width:96px; height:54px; object-fit:cover; border-radius:var(--radius-sm); flex:none; background:var(--surface-raised); }
.t { font-weight:700; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.c { color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); }
.msg { color:var(--muted); padding:var(--space-4) 0; text-align:center; }
label.opt { color:var(--muted); font-size:var(--fs-caption); display:flex; align-items:center; gap:var(--space-2); margin-top:var(--space-2); }
.modal { position:fixed; inset:0; background:var(--scrim); display:none; align-items:center; justify-content:center; padding:var(--space-4); z-index:10; }
.modal.show { display:flex; }
.sheet { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-xl); box-shadow:var(--shadow-float); padding:var(--space-5); width:100%; max-width:440px; max-height:90vh; overflow:auto; }
.sheet h2 { font-size:var(--fs-title); line-height:var(--lh-title); font-weight:800; margin:0 0 var(--space-1); }
button.btn.primary { min-height:44px; background:var(--mint); color:var(--ground); border-color:var(--mint); font-weight:700; }
.sheet-actions { position:sticky; bottom:calc(-1 * var(--space-5)); margin:var(--space-4) calc(-1 * var(--space-5)) calc(-1 * var(--space-5)); padding:var(--space-3) var(--space-5); background:var(--surface); border-top:1px solid var(--line); justify-content:flex-end; }
.sheet.first #infoMore, .sheet.first #resetLearn { display:none; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-2); }
footer a { color:inherit; }
footer { color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); margin:var(--space-6) 0 var(--space-2); }
select.pick { width:auto; margin-top:var(--space-2); border-radius:var(--radius-md); min-height:44px; }
select.pick.on { border-color:var(--mint); background:var(--mint-tint); color:var(--mint); font-weight:700; }
.chip.avoid.on { border-color:var(--danger); color:var(--danger); background:var(--surface-raised); }
input.search { width:100%; margin-top:var(--space-2); background:var(--surface-raised); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius-md); min-height:44px; padding:0 var(--space-3); font-size:var(--fs-body); }
/* 한 줄 가로 스크롤 칩 (시안 배치) */
.chips.scroll { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:0 calc(-1 * var(--space-5)); padding:0 var(--space-5); scroll-padding:0 var(--space-5); }
.chips.scroll::-webkit-scrollbar { display:none; }
.chips.scroll .chip { flex:none; white-space:nowrap; }
.chip { display:inline-flex; align-items:center; gap:var(--space-2); }
.ico { width:18px; height:18px; flex:none; }
.cm .meta span .ico { width:12px; height:12px; vertical-align:-2px; margin-right:var(--space-1); }
/* 재생 바: 폰은 아래 탭 바로 위에 고정 (유리) */
body { padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
body.scrolled, body.has-song { padding-bottom:calc(var(--playbar-h) + var(--tabbar-h) + env(safe-area-inset-bottom)); }
.playbar { position:fixed; left:0; right:0; bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index:8; display:none; align-items:center; gap:var(--space-2); padding:var(--space-3) var(--space-4); background:var(--glass); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur); border-top:1px solid var(--line); box-shadow:var(--shadow-float); }
.playbar .now { flex:1; min-width:0; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.playbar .now:empty::before { content:"TasteTop"; color:var(--muted); font-weight:400; }
button.ibtn { width:44px; height:44px; flex:none; display:inline-flex; align-items:center; justify-content:center; gap:var(--space-1); border:1px solid var(--line); background:var(--surface-raised); color:var(--ink); border-radius:var(--radius-md); cursor:pointer; padding:0; }
button.ibtn.heart { font-size:var(--fs-body); font-weight:700; }
button.ibtn.heart.on { color:var(--magenta); border-color:var(--magenta); }
.controls { margin-top:var(--space-3); }
/* 폰: 영상은 스크롤해도 위에 붙어 보이게 (YouTube 정책: 플레이어는 늘 보여야 함, 최소 200px) */
@media (max-width: 720px) {
  #list, #pickers { scroll-margin-top:max(56.25vw, 200px); } /* 위에 붙은 영상 아래로 맞춰 보이게 */
  .player { position:sticky; top:0; z-index:6; min-height:200px; border-radius:0; margin-left:calc(-1 * var(--space-5)); margin-right:calc(-1 * var(--space-5)); width:auto; }
}
/* 곡 줄: 순위 칸 */
li .rk { width:28px; flex:none; text-align:center; font-family:var(--font-num); font-size:var(--fs-rank); line-height:var(--lh-rank); font-weight:800; color:var(--ink-soft); }
li.cur .rk { color:var(--mint); }
li .info { min-width:0; flex:1; }
/* 취향 비중 슬라이더 · 취향 일치(Match %) · 숨은 명곡 */
.slider { margin-top:var(--space-4); }
.slider-head { display:flex; justify-content:space-between; align-items:baseline; gap:var(--space-2); font-size:var(--fs-body); line-height:var(--lh-body); font-weight:700; }
.slider-head i { font-style:normal; font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-eyebrow); font-weight:700; color:var(--muted); margin-left:var(--space-1); }
.slider .sval { font-family:var(--font-num); font-size:var(--fs-rank); line-height:var(--lh-rank); font-weight:800; color:var(--mint); }
.slider input { width:100%; height:44px; margin:0; accent-color:var(--mint); cursor:pointer; }
.slider-ends { display:flex; justify-content:space-between; color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); }
.slider.off .sval { color:var(--muted); font-family:var(--font-sans); font-size:var(--fs-caption); line-height:var(--lh-caption); font-weight:700; }
.slider.off input { accent-color:var(--muted); opacity:.6; } /* 건드리기 전: 상관없음 */
li .match { flex:none; font-family:var(--font-num); font-size:var(--fs-eyebrow); font-weight:700; color:var(--mint); background:var(--mint-tint); border-radius:var(--radius-pill); padding:var(--space-1) var(--space-2); }
.gem { display:inline-flex; align-items:center; gap:var(--space-1); color:var(--magenta); font-weight:700; margin-right:var(--space-1); }
.gem .ico { width:12px; height:12px; fill:currentColor; }
/* Taste DNA */
.dna-card { background:linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box, var(--brand-gradient) border-box; border:1px solid transparent; border-radius:var(--radius-xl); padding:var(--space-5); margin-top:var(--space-4); }
.dna-card .sec { margin-top:0; }
.dna-persona { font-size:var(--fs-heading); line-height:var(--lh-heading); font-weight:800; }
.dna-bar { margin-bottom:var(--space-3); }
.dna-row { display:flex; justify-content:space-between; font-size:var(--fs-caption); line-height:var(--lh-caption); color:var(--ink-soft); }
.dna-row b, .chip b { font-family:var(--font-num); font-size:var(--fs-eyebrow); color:var(--violet-light); }
.dna-gems b { font-family:var(--font-num); font-size:var(--fs-eyebrow); color:var(--magenta); }
.dna-track { height:6px; border-radius:var(--radius-pill); background:var(--surface-raised); margin-top:var(--space-1); overflow:hidden; }
.dna-track i { display:block; height:100%; background:var(--brand-gradient); border-radius:var(--radius-pill); }
.dna-gems { display:flex; justify-content:space-between; align-items:center; margin-top:var(--space-4); padding:var(--space-3) var(--space-4); border-radius:var(--radius-lg); background:var(--surface-raised); color:var(--magenta); font-size:var(--fs-caption); font-weight:700; }
.dna-gems span { display:inline-flex; align-items:center; gap:var(--space-1); }
.dna-gems .ico { width:12px; height:12px; fill:currentColor; }
.top .ghost.dna-btn { background:var(--violet-tint); color:var(--violet-light); border-color:var(--violet-tint) !important; }
.dna-btn .ico { width:16px; height:16px; margin-right:var(--space-1); }
/* ---------- 배치 v5 (폰 기본). 넓은 화면은 css/wide.css ---------- */
/* 폰: 한 줄로 쌓기. 구역 묶음은 없는 것처럼(display:contents) 두고 order로 시안 순서를 맞춤 */
.wrap { display:flex; flex-direction:column; }
.g-list, .g-side { display:contents; }
.topbar { order:0; display:flex; justify-content:space-between; align-items:center; gap:var(--space-2); margin:calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) 0; padding:var(--space-3) var(--space-5); background:var(--glass); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur); border-bottom:1px solid var(--line); }
.hero { order:1; margin-top:var(--space-5); }
.pickers { order:2; display:flex; flex-direction:column; gap:var(--space-2); margin-top:var(--space-4); }
.pickers select.pick { margin-top:var(--space-2); }
.tuner-bar { order:3; }
.player { order:4; }
.start { order:5; }
#count { order:6; margin-top:var(--space-3); }
#list { order:7; }
.controls { order:8; } #listPick, #genrePick { order:9; } .social { order:10; } .ad { order:11; } footer { order:12; }
.eyebrow { font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-eyebrow); font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--mint); }
.hero-title { font-size:var(--fs-display); line-height:var(--lh-display); font-weight:800; margin:var(--space-1) 0; }
/* 취향 비중 요약 줄(폰) → 누르면 튜너 시트 */
.tuner-bar { display:flex; align-items:center; gap:var(--space-2); width:100%; min-height:52px; margin-top:var(--space-4); padding:0 var(--space-2) 0 var(--space-4); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); color:var(--ink); font-size:var(--fs-body); font-weight:700; cursor:pointer; text-align:left; }
.tuner-bar .tb-label { flex:1; }
.tuner-bar .tb-val { font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-eyebrow); color:var(--mint); }
.tuner-bar .tb-btn { display:inline-flex; align-items:center; gap:var(--space-1); min-height:36px; padding:0 var(--space-3); background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--radius-md); color:var(--ink-soft); }
/* 취향 튜너: 폰은 아래 시트(유리, 위 24 둥글기). 화면 아래쪽만 덮어 위의 영상은 그대로 보임 */
.g-tuner { position:fixed; left:0; right:0; bottom:0; z-index:20; max-height:calc(100dvh - max(56.25vw, 200px)); overflow-y:auto; padding:var(--space-2) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom)); background:var(--glass); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur); border-top:1px solid var(--line); border-radius:var(--radius-xl) var(--radius-xl) 0 0; box-shadow:var(--shadow-float); transform:translateY(105%); transition:transform .25s ease; }
.g-tuner.open { transform:none; }
.grab { width:36px; height:4px; border-radius:var(--radius-pill); background:var(--line); margin:0 auto var(--space-3); }
.card-head { display:flex; justify-content:space-between; align-items:center; gap:var(--space-2); }
.card-head h2 { display:flex; align-items:center; gap:var(--space-2); font-size:var(--fs-heading); line-height:var(--lh-heading); font-weight:700; margin:0; }
.card-head h2 .ico { color:var(--mint); width:20px; height:20px; }
.g-tuner > .sub { margin-top:var(--space-1); }
.sec-row { display:flex; justify-content:space-between; align-items:center; }
.mt-label { display:inline-flex; align-items:center; gap:var(--space-1); }
.mt-label .ico { width:16px; height:16px; color:var(--mint); }
.mt-label .mt-my, .mt-label.mt-all { color:var(--mint); }
.sec-row b { font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-eyebrow); color:var(--mint); }
.presets { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--space-3) var(--space-2); padding-top:var(--space-2); }
.preset span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.preset { display:flex; align-items:center; justify-content:center; gap:var(--space-1); min-height:44px; padding:0 var(--space-2); background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--radius-md); color:var(--ink-soft); font-size:var(--fs-caption); line-height:var(--lh-caption); font-weight:700; cursor:pointer; white-space:nowrap; }
.preset .ico { width:16px; height:16px; }
.preset.on { background:var(--mint-tint); border-color:var(--mint); color:var(--mint); }
.preset { position:relative; }
.preset .now-tri { position:absolute; top:var(--space-1); right:var(--space-2); width:12px; height:10px; background:var(--brand-gradient); clip-path:polygon(50% 0, 100% 100%, 0 100%); } /* 지금 시간대 프리셋: 로고 tt의 삼각형과 같은 표시 */
.divider { border:none; border-top:1px solid var(--line); margin:var(--space-5) 0 0; }
.avoid-line { display:flex; justify-content:space-between; align-items:center; gap:var(--space-2); margin-top:var(--space-4); color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); }
.linkbtn { background:none; border:none; padding:0; min-height:44px; color:var(--violet-light); font-size:var(--fs-caption); font-weight:700; cursor:pointer; flex:none; }
.tuner-apply { width:100%; justify-content:center; margin-top:var(--space-4); }
.scrim { position:fixed; inset:0; z-index:19; display:none; } /* 바깥을 누르면 닫힘 (어둡게 덮지 않음) */
.scrim.show { display:block; }
/* 폰 아래 탭 4개 (유리) */
.tabs { position:fixed; left:0; right:0; bottom:0; z-index:9; display:grid; grid-template-columns:repeat(4, 1fr); height:calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); background:var(--glass); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur); border-top:1px solid var(--line); }
.tabs button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--space-1); background:none; border:none; color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); font-weight:700; cursor:pointer; }
.tabs button .ico { width:22px; height:22px; }
.tabs button.on { color:var(--mint); }
.playbar { border-top:1px solid var(--line); box-shadow:none; }
/* 나라 빠른 고르기: 세계 · KR US JP GB BR · +N (나라 코드, 국기 없음) */
.quick-regions { display:flex; gap:var(--space-2); overflow-x:auto; scrollbar-width:none; }
.quick-regions::-webkit-scrollbar { display:none; }
.pickers .quick-regions { margin:0 calc(-1 * var(--space-5)); padding:0 var(--space-5); } /* 폰: 화면 끝까지 옆으로 넘김 */
.qr { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:var(--space-1); min-width:44px; min-height:36px; padding:0 var(--space-3); background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--radius-md); color:var(--ink-soft); font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-eyebrow); font-weight:700; letter-spacing:.04em; cursor:pointer; }
.qr.wide span { font-family:var(--font-sans); font-size:var(--fs-caption); letter-spacing:0; }
.qr .ico { width:16px; height:16px; }
.qr.on { background:var(--mint-tint); border-color:var(--mint); color:var(--mint); }
.qr.open { border-color:var(--ink-soft); color:var(--ink); }
#regionBox { display:none; } #regionBox.open { display:block; } /* +N을 누르면 대륙 칩·나라 고르기 */
/* ---------- 가운데 (시안 v5): 제목 줄 · 차트 묶음 버튼 · 숨은 명곡 · 곡 줄 ---------- */
.hero { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:var(--space-3); }
.hero-text { min-width:0; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); }
.hero-actions select.pick { width:auto; margin:0; min-height:44px; }
.start { display:none !important; } /* 재생은 제목 옆 "모두 듣기" */
.seg { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); padding:var(--space-1); gap:var(--space-1); }
.chips.scroll.seg { margin:0; padding:var(--space-1); align-self:flex-start; max-width:100%; }
.seg .chip { border:none; background:none; color:var(--muted); min-height:36px; padding:0 var(--space-3); border-radius:var(--radius-sm); font-size:var(--fs-caption); line-height:var(--lh-caption); font-weight:700; }
.seg .chip .ico { width:16px; height:16px; }
.seg .chip.on { background:var(--mint-tint); color:var(--mint); }
/* 숨은 명곡 카드 (magenta 표시) */
.gems { order:6; margin-top:var(--space-4); padding:var(--space-4); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-xl); }
.gems-head { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); margin-bottom:var(--space-3); }
.gem-title { display:inline-flex; align-items:center; gap:var(--space-1); color:var(--magenta); font-size:var(--fs-body); }
.gem-title .ico { width:14px; height:14px; }
.gem-cards { display:flex; gap:var(--space-2); overflow-x:auto; scrollbar-width:none; }
.gem-card { flex:0 0 240px; display:flex; align-items:center; gap:var(--space-3); padding:var(--space-3); background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--radius-lg); color:var(--ink); text-align:left; cursor:pointer; min-width:0; }
.gem-card img { width:48px; height:48px; object-fit:cover; border-radius:var(--radius-sm); flex:none; }
.gc-info { flex:1; min-width:0; display:flex; flex-direction:column; }
.gc-info .t { font-size:var(--fs-body); line-height:var(--lh-body); -webkit-line-clamp:1; }
.gc-info .c { font-size:var(--fs-caption); line-height:var(--lh-caption); color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gem-card .match { flex:none; font-family:var(--font-num); font-size:var(--fs-eyebrow); font-weight:700; color:var(--mint); background:var(--mint-tint); border-radius:var(--radius-pill); padding:var(--space-1) var(--space-2); }
.list-card { order:7; }
/* 곡 줄: 취향 순위 / 차트 순위 */
li .rk { display:flex; flex-direction:column; align-items:center; width:40px; }
li .rk b { font-family:var(--font-num); font-size:var(--fs-rank); line-height:var(--lh-rank); font-weight:800; color:var(--ink-soft); }
li .rk small { font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-eyebrow); font-weight:700; color:var(--muted); }
li.cur .rk b { color:var(--mint); }
li .c { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gcol, .rowplay, .list-head, .hero-actions { display:none; } /* 폰: 장르 칸·듣기 버튼·머리줄 없음 */
.gchip { display:inline-block; padding:0 var(--space-2); border:1px solid var(--line); background:var(--surface-raised); border-radius:var(--radius-sm); color:var(--ink-soft); font-size:var(--fs-caption); line-height:var(--lh-caption); white-space:nowrap; }
.rowplay { width:44px; height:44px; align-items:center; justify-content:center; border:none; border-radius:var(--radius-md); background:var(--mint-tint); color:var(--mint); cursor:pointer; padding:0; }
.rowplay .ico { width:14px; height:14px; fill:currentColor; }
/* ---------- 2026-11-21 시안 맞춤: 위 막대 · 지금 곡 카드 · 폰 첫 화면 ---------- */
.mt-0 { margin-top:0; } .mt-2 { margin-top:var(--space-2); }
/* 위 막대: 폰은 찾기·내 정보 아이콘 2개만 (시안 v5) */
.top { flex-wrap:nowrap; }
.search-box, .lists-btn, .dna-btn { display:none !important; }
.me-btn span { display:none; }
.top .me-btn, .top .search-btn { width:44px; padding:0; justify-content:center; }
.top .ico { width:18px; height:18px; }
.topbar.searching .logo, .topbar.searching .search-btn { display:none; }
.topbar.searching .top { flex:1; }
.topbar.searching .search-box { display:flex !important; flex:1; }
.search-box { align-items:center; gap:var(--space-2); min-height:44px; padding:0 var(--space-3); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); color:var(--muted); }
.search-box input { flex:1; min-width:0; background:none; border:none; outline:none; color:var(--ink); font-size:var(--fs-body); }
.lists-btn b { font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-eyebrow); color:var(--magenta); margin-left:var(--space-1); }
.lists-btn .ico { color:var(--magenta); }
.top .ghost .ico { margin-right:var(--space-1); }
.top .me-btn .ico, .top .search-btn .ico { margin-right:0; }
/* 내 정보 창: 계정 줄 */
.account { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-2); margin-top:var(--space-3); padding:var(--space-3) var(--space-4); background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--radius-lg); }
.acc-name { font-weight:700; }
.login-row { display:flex; flex-wrap:wrap; gap:var(--space-2); width:100%; }
.login-row .btn { flex:1; justify-content:center; font-weight:700; border:none; }
.login-row .btn.google { background:var(--ink); color:var(--ground); } .login-row .btn.facebook { background:var(--brand-facebook); color:var(--brand-facebook-ink); } .login-row .btn.kakao { background:var(--brand-kakao); color:var(--brand-kakao-ink); } /* a.btn보다 앞서도록 */
/* 제목 줄: 평균 일치 (오른쪽) */
.hero-text { flex:1; }
.avg-match { display:flex; flex-direction:column; align-items:flex-end; }
.avg-match .eyebrow { color:var(--muted); }
.avg-match b { font-family:var(--font-num); font-size:var(--fs-rank); line-height:var(--lh-rank); font-weight:800; color:var(--mint); }
/* 폰: 차트 고르기 줄(지금 뜨는·YouTube Music·Apple…)은 "차트" 탭에서만 */
#types { display:none; }
body.charts-open #types { display:flex; }
/* 폰: 튜너 안의 정렬·장르 */
.tuner-view { display:flex; gap:var(--space-2); margin-top:var(--space-3); }
.tuner-view select.pick { flex:1; margin:0; }
/* 지금 곡: 폰은 아래 재생 바(영상이 위에 붙은 뒤에만) */
body.scrolled .playbar, body.has-song .playbar { display:flex; animation:pb-up .25s ease; } /* 곡을 틀면 올라와서 계속 고정 */
@keyframes pb-up { from { transform:translateY(100%); opacity:0; } to { transform:none; opacity:1; } }
.now-info { flex:1; min-width:0; }
.now-info .now { margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.now-sub { color:var(--muted); font-size:var(--fs-caption); line-height:var(--lh-caption); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.now-match .match { font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-eyebrow); font-weight:700; color:var(--mint); background:var(--mint-tint); border-radius:var(--radius-pill); padding:var(--space-1) var(--space-2); }
.now-match:empty { display:none; }
.prog { position:absolute; left:0; right:0; top:0; }
.prog-track { height:2px; background:var(--surface-raised); overflow:hidden; }
.prog-track i { display:block; width:0; height:100%; background:var(--brand-gradient); }
.prog-times { display:none; }
.pb-btns { display:flex; gap:var(--space-2); flex:none; }
button.ibtn.play { background:var(--mint); color:var(--ground); border-color:var(--mint); }
button.ibtn.play .ico, button.ibtn .ico { fill:currentColor; }
button.ibtn.heart .ico, #pbDislike .ico { fill:none; } /* 선 아이콘 (채움은 재생·건너뛰기·좋아요한 하트만) */
/* 왜 내 취향일까요 · 버튼 줄 · 더 보기 */
.why { order:9; margin-top:var(--space-3); padding:var(--space-4); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-xl); }
.why-head { display:flex; align-items:center; gap:var(--space-2); font-weight:700; margin-bottom:var(--space-3); }
.why-head .ico { color:var(--mint); width:14px; height:14px; }
.why .chip { min-height:32px; font-size:var(--fs-caption); line-height:var(--lh-caption); cursor:default; }
.controls { order:10; display:grid; grid-template-columns:1fr 1fr; }
.controls .btn { justify-content:center; gap:var(--space-1); white-space:nowrap; }
.more-btn { grid-column:1 / -1; color:var(--muted) !important; }
.more { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:var(--space-2); }
.more[hidden] { display:none; }
#listPick, #genrePick { order:11; } .social { order:12; } .ad { order:13; } footer { order:14; }
/* 곡 줄 하트: 내 리스트에 저장 (magenta) */
.rowheart { flex:none; width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; border:none; background:none; color:var(--muted); border-radius:var(--radius-md); cursor:pointer; padding:0; }
.rowheart.on { color:var(--magenta); }
.rowheart.on .ico { fill:currentColor; }
@media (max-width: 1099px) { li img { width:64px; height:36px; } } /* 폰: 썸네일을 줄여 곡 제목이 보이게 */
/* 창(내 정보·Taste DNA)과 튜너 시트: 내용이 길면 손가락·휠로 넘기되 스크롤 막대는 숨김 */
.sheet, .g-tuner { scrollbar-width:none; }
.sheet::-webkit-scrollbar, .g-tuner::-webkit-scrollbar { display:none; }
/* 차트 출처 묶음 버튼(모든 차트·YouTube·Apple·지금 뜨는): 폰은 "차트" 탭에서만 */
.sources { display:none; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; align-self:flex-start; max-width:100%; }
.sources::-webkit-scrollbar { display:none; }
body.charts-open .sources { display:flex; }
.sources .chip { flex:none; white-space:nowrap; }
/* 곡 목록: 폰은 카드 없이, 어디서 뜨나는 가수 옆 한 줄 */
.scol { display:none; }
#playAll { gap:var(--space-2); }
#playAll .ico { width:14px; height:14px; }
/* 직접 만든 곡 올리기 · 내가 올린 곡 */
.upload-entry { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-2); margin-top:var(--space-3); }
.upload-entry .btn { justify-content:center; }
.field { display:flex; flex-direction:column; gap:var(--space-1); margin-top:var(--space-3); font-size:var(--fs-caption); line-height:var(--lh-caption); color:var(--muted); }
.field input, .field select { width:100%; min-width:0; box-sizing:border-box; min-height:44px; padding:0 var(--space-3); background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--radius-md); color:var(--ink); font-size:var(--fs-body); font-family:var(--font-sans); }
.field input[type=file] { padding:var(--space-2) var(--space-3); }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-2); }
.check { display:flex; gap:var(--space-2); align-items:flex-start; margin-top:var(--space-4); font-size:var(--fs-body); line-height:var(--lh-body); }
.check input { width:20px; height:20px; margin-top:var(--space-1); accent-color:var(--mint); flex:none; }
.mu-row { padding:var(--space-3) 0; border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:var(--space-2); }
.mu-head { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--space-2); }
.mu-title { font-weight:700; }
.mu-row audio { width:100%; height:40px; }
.mu-st { flex:none; font-size:var(--fs-caption); line-height:var(--lh-caption); font-weight:700; padding:var(--space-1) var(--space-2); border-radius:var(--radius-pill); background:var(--surface-raised); color:var(--muted); }
.mu-st.st-approved { background:var(--mint-tint); color:var(--mint); }
.mu-st.st-rejected { color:var(--danger); }
.mu-reason { color:var(--danger); }
.mu-remove { align-self:flex-start; color:var(--danger) !important; }
/* 창작자 곡: 배지 · 영상 대신 곡 카드 */
.badge-creator { display:inline-flex; align-items:center; gap:var(--space-1); color:var(--mint); font-weight:700; }
.badge-creator .ico { width:12px; height:12px; }
.player { position:relative; }
.audio-art { display:none; position:absolute; inset:0; flex-direction:column; align-items:center; justify-content:center; gap:var(--space-1); text-align:center; padding:var(--space-4);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); }
.audio-art .eyebrow { color:var(--mint); }
.audio-title { font-size:var(--fs-heading); line-height:var(--lh-heading); font-weight:700; }
body.audio-mode .audio-art { display:flex; }
.badge-ai { display:inline-flex; align-items:center; color:var(--ink-soft); font-weight:700; border:1px solid var(--line); border-radius:var(--radius-sm); padding:0 var(--space-1); } /* AI 사용 곡: 강조색 없이 */

/* 로그인 전 안내 띠 (목록 위) */
.login-hint { order:6; display:flex; align-items:center; gap:var(--space-3); padding:var(--space-3) var(--space-4); margin-bottom:var(--space-3); background:var(--mint-tint); border:1px solid var(--mint); border-radius:var(--radius-lg); color:var(--ink); font-size:var(--fs-body); line-height:var(--lh-body); }
.login-hint[hidden] { display:none; }
.login-hint .lh-ico { color:var(--mint); display:flex; flex:none; }
.login-hint .lh-text { flex:1; min-width:0; }
.login-hint .btn { flex:none; min-height:44px; }

/* 그만 듣기: 곡 줄 밀기 · 되돌리기 알림 (js/dislike.js) */
#list { overflow-x:hidden; }
#list li { position:relative; transition:transform .18s ease, opacity .18s ease; }
#list li::after { content:attr(data-out); position:absolute; top:0; bottom:0; left:100%; display:flex; align-items:center; padding-left:var(--space-4); width:160px; color:var(--muted); font-size:var(--fs-body); font-weight:700; pointer-events:none; }
#list li.swipe-ready::after { color:var(--danger); }
.toast { position:fixed; left:50%; bottom:calc(var(--tabbar-h) + var(--playbar-h) + var(--space-3) + env(safe-area-inset-bottom)); transform:translate(-50%, var(--space-4)); z-index:20; display:flex; align-items:center; gap:var(--space-3); max-width:calc(100% - 2 * var(--space-5)); padding:0 var(--space-2) 0 var(--space-4); background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--radius-md); box-shadow:var(--shadow-float); color:var(--ink); font-size:var(--fs-body); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
.toast.show { opacity:1; transform:translate(-50%, 0); pointer-events:auto; }
.toast span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.playbar #prev { display:none; } /* 폰 재생 바: 자리가 좁아 이전 대신 별로예요 (넓은 화면은 wide.css에서 다시 보임) */

/* 취향 비중 카드 (2026-11-22 사용자 시안, 20%씩) */
.w-card { margin-top:var(--space-4); padding:var(--space-4) var(--space-5); background:var(--ground); border:1px solid var(--line); border-radius:var(--radius-lg); }
.w-card label { display:inline-flex; align-items:center; gap:var(--space-2); }
.w-card label .ico { width:16px; height:16px; color:var(--mint); }
.w-pill { padding:0 var(--space-2); border-radius:var(--radius-sm); background:var(--mint-tint); color:var(--mint); font-family:var(--font-num); font-size:var(--fs-body); line-height:var(--lh-body); font-weight:700; white-space:nowrap; }
.w-card input[type=range] { -webkit-appearance:none; appearance:none; background:transparent; height:44px; }
.w-card input[type=range]::-webkit-slider-runnable-track { height:6px; border-radius:var(--radius-pill); background:var(--surface-raised); }
.w-card input[type=range]::-moz-range-track { height:6px; border-radius:var(--radius-pill); background:var(--surface-raised); }
.w-card input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:20px; height:20px; margin-top:-7px; border-radius:var(--radius-pill); background:var(--mint); border:3px solid var(--ground); box-shadow:0 0 0 3px var(--mint-tint); }
.w-card input[type=range]::-moz-range-thumb { width:14px; height:14px; border-radius:var(--radius-pill); background:var(--mint); border:3px solid var(--ground); box-shadow:0 0 0 3px var(--mint-tint); }
.w-card input[type=range]:focus-visible { outline:2px solid var(--mint); outline-offset:2px; border-radius:var(--radius-sm); }
.w-card .slider-head i { margin-left:0; }
.w-card .slider-ends > span { display:inline-flex; align-items:center; gap:var(--space-1); }
.w-card .slider-ends .ico { width:14px; height:14px; color:var(--mint); }
.w-card.off .w-pill { background:var(--surface-raised); color:var(--muted); font-family:var(--font-sans); font-size:var(--fs-caption); line-height:var(--lh-body); }
.w-card.off input[type=range]::-webkit-slider-thumb { background:var(--muted); box-shadow:none; }
.w-card.off input[type=range]::-moz-range-thumb { background:var(--muted); box-shadow:none; }
.w-card .slider-head { flex-wrap:wrap; row-gap:var(--space-1); } /* 좁은 칸에서는 알약이 다음 줄로 */
.w-card .slider-head label { white-space:nowrap; }
.w-card .slider-ends .ai-mid { font-family:var(--font-num); font-size:var(--fs-eyebrow); line-height:var(--lh-caption); font-weight:700; color:var(--muted); } /* AI가 추정한 값이라는 표시 (정책) */

/* 지금 곡 큰 카드: 넓은 화면만 (wide.css). 차트 종류 묶음(앱 인기·나이대별·창작자 곡·내 리스트)은 화면에서 숨김 — 기능은 다른 곳에서 */
.hero-card { display:none; }
#types { display:none !important; }
.rising { display:none; } /* PC만 (wide.css) */
.w-card .slider-ends { gap:var(--space-2); } /* 끝 글자끼리 붙지 않게 (영어 화면) */
.w-card .slider-ends > span:last-child { text-align:right; }
