/* aimusiclist.com — 화면 모양 (2-D, 디자인규격 v1). 색·크기는 :root 변수만 고친다.
   강조색은 --accent(글자·아이콘·선) / --accent-fill(바탕) 두 변수뿐 — 로고가 정해지면 이 값만 바꾼다.
   목차: 1 변수 · 2 기본 · 3 글자 · 4 전체 틀(사이드바·위 막대·탭 막대) · 5 버튼·분절·칩 · 6 선반·카드 · 7 곡 줄
         8 머리 영역 · 9 메인 · 10 차트·장르·검색 · 11 띠(사이트 만들기·개발자) · 12 양식·관리 · 13 재생 바·전체 화면
         14 창(메뉴·가사·알림·언어) · 15 화면 크기별 · 16 움직임 줄이기 */

/* ───── 1. 변수 ───── */
:root {
  --bg: #fff; --bg-2: #f5f5f7; --bg-3: #e8e8ed;
  --glass: rgb(250 250 252 / .72);
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b;
  --line: rgb(0 0 0 / .08);
  --accent: #6b4eff; --accent-fill: #6b4eff; --accent-ink: #fff;
  --up: #1d8649; --down: #d70015; --warn: #b25000;
  --seg-on: #fff; --on-art: #fff; --scrim: rgb(0 0 0 / .42);
  --shadow-art: 0 2px 8px rgb(0 0 0 / .12);
  --shadow-bar: 0 8px 24px rgb(0 0 0 / .12);
  --shadow-pop: 0 10px 32px rgb(0 0 0 / .16), 0 0 0 .5px rgb(0 0 0 / .08);
  --art-a: 8%;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Pretendard Variable", Pretendard,
          "Apple SD Gothic Neo", "Hiragino Sans", system-ui, "Segoe UI", Roboto,
          "Noto Sans Thai", "Leelawadee UI", "Noto Sans Devanagari", "Nirmala UI",
          "Noto Sans TC", "Microsoft JhengHei", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side: 260px; --pad: 32px; --max: 1280px;
  --tab-h: 0px; --bar-h: 64px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --lh: 0; --ls: 1;   /* 언어별: 줄 높이 더하기, 음수 글자 간격 켜기(1)/끄기(0) */
  --focus: 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg-2: #1c1c1e; --bg-3: #2c2c2e; --glass: rgb(28 28 30 / .72);
    --ink: #f5f5f7; --ink-2: #98989d; --ink-3: #6e6e73; --line: rgb(255 255 255 / .1);
    --accent: #8f7dff; --accent-fill: #7457ff; --up: #30d158; --down: #ff453a; --warn: #ff9f0a;
    --seg-on: #3a3a3c; --shadow-art: none; --shadow-pop: 0 10px 32px rgb(0 0 0 / .5), 0 0 0 .5px rgb(255 255 255 / .12);
    --art-a: 20%;
  }
}
:root:lang(ko), :root:lang(ja), :root:lang(zh) { --lh: .1; --ls: 0; }
:root:lang(th), :root:lang(hi) { --lh: .15; --ls: 0; }

/* ───── 2. 기본 ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/calc(1.47 + var(--lh)) var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none; }
:root:lang(th) body, :root:lang(hi) body { line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent-fill); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-2); }
.small, .sub { font-size: 13px; line-height: calc(1.38 + var(--lh)); }
.mono, code { font-family: var(--mono); font-size: .92em; }
.num, .tab { font-variant-numeric: tabular-nums; }
.text-danger { color: var(--down); }
[hidden] { display: none !important; }

/* ───── 3. 글자 ───── */
.t-display { font-size: 56px; font-weight: 700; line-height: calc(1.07 + var(--lh)); letter-spacing: calc(-.02em * var(--ls)); }
.t-1, .page-head h1 { font-size: 34px; font-weight: 700; line-height: calc(1.15 + var(--lh)); letter-spacing: calc(-.015em * var(--ls)); }
.t-2 { font-size: 22px; font-weight: 700; line-height: calc(1.25 + var(--lh)); letter-spacing: calc(-.01em * var(--ls)); }
.t-3 { font-size: 17px; font-weight: 600; line-height: calc(1.3 + var(--lh)); letter-spacing: calc(-.005em * var(--ls)); }
.t-lead { font-size: 19px; line-height: calc(1.42 + var(--lh)); color: var(--ink-2); }
.caption { font-size: 11px; font-weight: 600; line-height: 1.27; letter-spacing: calc(.06em * var(--ls)); text-transform: uppercase; }
:root:not(:lang(en)) .caption { text-transform: none; }
.eyebrow { font-size: 13px; color: var(--ink-2); margin: 0 0 4px; font-weight: 500; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ───── 4. 전체 틀 ───── */
.main { margin-inline-start: var(--side); position: relative; min-height: 100vh; container-type: inline-size; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 32px var(--pad) 0; }
.bleed { margin-inline: calc(50% - 50cqw); padding-inline: calc(50cqw - 50%); }
body.has-player .main { padding-bottom: calc(var(--bar-h) + 32px); }

/* 사이드바 (데스크톱) — 위·아래 고정, 반투명 유리 */
.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side); z-index: 30; display: flex; flex-direction: column;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-inline-end: 1px solid var(--line); padding: 20px 16px 16px; overflow-y: auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.01em; padding: 4px 8px; }
.logo:hover { text-decoration: none; }
.logo b { font-weight: 700; color: var(--accent); }
.side-search { position: relative; margin: 14px 0 18px; }
.side-search .ic, .search-big .ic { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-2); pointer-events: none; }
.side-search input { width: 100%; height: 34px; border: 0; border-radius: 999px; background: var(--bg-3); padding: 0 12px 0 32px; padding-inline: 32px 12px; font-size: 14px; }
.side-search input::placeholder { color: var(--ink-2); }
.nav, .lib { display: grid; gap: 2px; grid-template-columns: minmax(0, 1fr); }
.nav a, .lib a, .acct-link { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.nav a .ic, .lib a .ic { color: var(--ink-2); }
.nav a:hover, .lib a:hover, .acct-link:hover { background: var(--bg-3); text-decoration: none; }
.nav a[aria-current], .lib a[aria-current] { background: var(--bg-3); font-weight: 600; }
.nav a[aria-current] .ic, .lib a[aria-current] .ic { color: var(--accent); }
.nav span, .lib span, .acct-link span { min-width: 0; padding-block: 7px; line-height: 1.25; overflow-wrap: anywhere; }   /* (2-9) 긴 말은 2줄로 (고칠 것 3) */
.side-h { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 22px 10px 6px; }
.acct { margin-top: auto; padding-top: 16px; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.acct .btn { width: 100%; height: auto; min-height: 36px; padding-block: 8px; }
.acct .btn > span { white-space: normal; text-align: center; line-height: 1.3; }   /* (2-9) 긴 말도 자르지 않고 2줄로 (고칠 것 3) */
:lang(ko) .acct .btn > span { word-break: keep-all; }
.acct-row { display: flex; gap: 6px; align-items: center; }
.acct-row > * { min-width: 0; }
.sheet-bg { display: none; }

/* 휴대폰·태블릿: 위 얇은 막대 + 아래 탭 막대 */
.mbar, .tabbar { display: none; }
.mbar { position: sticky; top: 0; z-index: 25; height: calc(48px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 16px;
  align-items: center; gap: 4px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.mbar.is-scrolled { border-bottom-color: var(--line); }
.mbar .logo { font-size: 17px; padding: 0; }
.mbar-title { flex: 1; text-align: center; font-weight: 600; font-size: 15px; opacity: 0; transform: translateY(6px); transition: .2s var(--ease); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbar.is-scrolled .mbar-title { opacity: 1; transform: none; }
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 25; height: calc(52px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--ink-2); font-size: 10px; font-weight: 500; padding: 0 2px; }
.tabbar a:hover { text-decoration: none; }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar a .ic { width: 24px; height: 24px; }
.tabbar a[aria-current] { color: var(--accent); }

/* 바닥글 */
.foot { margin-top: 96px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot a { color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot p { margin-inline-end: auto; }

/* ───── 5. 버튼·분절·칩 ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--accent-fill); color: var(--accent-ink); font-size: 15px; font-weight: 600; white-space: nowrap; max-width: 100%;
  transition: transform .1s var(--ease), filter .2s var(--ease); }
.btn > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active, .ibtn:active, .card-play:active, .tr-play:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-2, .btn-ghost { background: var(--bg-2); color: var(--ink); }
.btn-2:hover, .btn-ghost:hover { filter: none; background: var(--bg-3); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 17px; }
.btn-small { height: 30px; padding: 0 14px; font-size: 13px; }
.btn-danger { color: var(--down); }
.btn-solid-danger { background: var(--down); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link-more { color: var(--accent); font-size: 15px; white-space: nowrap; }
.ibtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); padding: 0; flex: none; }
.ibtn:hover { background: var(--bg-2); }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--bg-3); border-radius: 999px; padding: 2px; gap: 2px; }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button, .seg span { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.seg a:hover { text-decoration: none; background: color-mix(in srgb, var(--seg-on) 50%, transparent); }
.seg [aria-current], .seg [aria-pressed="true"] { background: var(--seg-on); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.seg [aria-disabled="true"] { color: var(--ink-3); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip:hover { text-decoration: none; background: var(--bg-3); }
.chip[aria-current] { background: var(--ink); color: var(--bg); }

/* ───── 6. 선반·카드 ───── */
.shelf { margin-top: 48px; position: relative; }
.shelf-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.shelf-head h2 { flex: 1; min-width: 0; }
.shelf-head h2 a { color: inherit; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; list-style: none; margin: 0; padding: 0 0 8px; overscroll-behavior-x: contain; }
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row > li { scroll-snap-align: start; min-width: 0; }
.shelf-nav { position: absolute; top: calc(42px + 90px - 16px); width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); box-shadow: var(--shadow-bar);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.shelf-nav.prev { inset-inline-start: -12px; } .shelf-nav.next { inset-inline-end: -12px; }
@media (hover: hover) {
  .shelf:hover .shelf-nav[data-on] { opacity: 1; pointer-events: auto; }
}
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 20px; list-style: none; margin: 0; padding: 0; }
.card { position: relative; min-width: 0; container-type: inline-size; }
.card > a { display: block; color: inherit; }
.card > a:hover { text-decoration: none; }
.card-art { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--art-c, var(--bg-2)); box-shadow: var(--shadow-art); }
.card-art img, .art img { width: 100%; height: 100%; object-fit: cover; }
.card-title { display: block; margin-top: 8px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { display: block; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.card-title:hover, a.card-sub:hover { text-decoration: none; }
.card-play { position: absolute; inset-inline-end: 8px; top: calc(100cqw - 44px); width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-fill); color: var(--accent-ink); box-shadow: var(--shadow-bar); opacity: 0; transform: translateY(4px); transition: .2s var(--ease); }
.card-play .ic { width: 16px; height: 16px; }
.card:hover .card-play, .card-play:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .card-play { opacity: 1; transform: none; } }
.card-r { text-align: center; }
.card-r .card-art { border-radius: 50%; }
.card-r .card-art img, .detail-art.is-round img { position: absolute; inset: 0; }
.detail-art.is-round { position: relative; }
.band + .foot, .bleed:last-child + .foot { margin-top: 0; border-top: 0; }
.avatar { display: grid; place-items: center; width: 100%; height: 100%; background: hsl(var(--h, 260) 28% 46%); color: var(--on-art); font-size: 44px; font-weight: 600; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; width: 100%; height: 100%; }
.mosaic > * { display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-3); }
.ph-ic { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-3); }
.ph-ic .ic { width: 40%; height: 40%; stroke-width: 1; }

/* ───── 7. 곡 줄 ───── */
.tracklist { list-style: none; margin: 0; padding: 0; --sep: 68px; }
.tracklist.is-ranked { --sep: 120px; }
.tracklist.is-numbered { --sep: 52px; }
.track { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px; border-radius: 12px; }
.track::after { content: ""; position: absolute; inset-inline: var(--sep) 8px; bottom: 0; height: 1px; background: var(--line); }
.track:last-child::after, .track:hover::after, .track:focus-within::after { display: none; }
.track:hover, .track:focus-within { background: var(--bg-2); }
.tr-rank { flex: none; width: 40px; display: grid; justify-items: center; line-height: 1.1; }
.tr-rank b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-move { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tr-move-up { color: var(--up); } .tr-move-down { color: var(--down); }
.tr-move-new { color: var(--accent); letter-spacing: .04em; } .tr-move-re { color: var(--ink-2); letter-spacing: .04em; }
.tr-play { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 6px; overflow: hidden;
  background: var(--art-c, var(--bg-2)); color: var(--on-art); display: grid; place-items: center; }
.tr-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-play .ic { position: relative; width: 18px; height: 18px; opacity: 0; transition: opacity .15s; }
.tr-play::before { content: ""; position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .15s; }
.track:hover .tr-play::before, .tr-play:focus-visible::before, .track.is-playing .tr-play::before { opacity: 1; }
.track:hover .tr-play .i-play, .tr-play:focus-visible .i-play { opacity: 1; }
.track.is-playing:not(.is-paused) .tr-play .i-play { opacity: 0; }
.track.is-playing:not(.is-paused):hover .tr-play .i-pause { opacity: 1; }
.track.is-playing.is-paused .tr-play .i-play { opacity: 1; }
.tr-play .i-pause { position: absolute; }
.tr-play:not(.has-thumb) { background: var(--bg-3); color: var(--ink-2); }
.tr-play:not(.has-thumb)::before { display: none; }
.tr-play:not(.has-thumb) .i-play { opacity: 1; }
.is-numbered .tr-play { width: 32px; height: 32px; background: none; color: var(--ink); border-radius: 50%; }
.is-numbered .tr-play::before { display: none; }
.tr-no { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; position: absolute; }
.is-numbered .track:hover .tr-no, .is-numbered .track.is-playing .tr-no { opacity: 0; }
.is-numbered .tr-play .ic { color: var(--ink); }
.is-numbered .track .tr-play .ic { opacity: 0; }
.is-numbered .track:hover .tr-play .i-play, .is-numbered .tr-play:focus-visible .i-play, .is-numbered .track.is-playing.is-paused .tr-play .i-play { opacity: 1; }
.is-numbered .track.is-playing:not(.is-paused):hover .tr-play .i-pause { opacity: 1; }
.is-numbered .track.is-playing:not(.is-paused):hover .tr-play .i-play { opacity: 0; }
.is-numbered .tr-play:focus-visible .tr-no { opacity: 0; }
.is-numbered .track.is-playing .tr-play .viz i { background: var(--accent); }
/* 비주얼라이저: 곡 이미지 위 (기둥 7, 간격 2px) */
.viz { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; opacity: 0; pointer-events: none; }
.viz i { width: 3px; height: 50%; border-radius: 2px; background: var(--on-art); transform: scaleY(.15); transform-origin: center; }
.track.is-playing:not(.is-paused) .viz { opacity: 1; }
.track.is-playing:not(.is-paused):hover .viz { opacity: 0; }
body:not(.viz-real) .track.is-playing:not(.is-paused) .viz i, body:not(.viz-real) .player.is-on .viz i { animation: viz 1s var(--ease) infinite alternate; }
.viz i:nth-child(2) { animation-delay: -.3s !important; } .viz i:nth-child(3) { animation-delay: -.6s !important; animation-duration: .8s !important; }
.viz i:nth-child(4) { animation-delay: -.15s !important; animation-duration: 1.2s !important; } .viz i:nth-child(5) { animation-delay: -.45s !important; }
.viz i:nth-child(6) { animation-delay: -.75s !important; animation-duration: .9s !important; } .viz i:nth-child(7) { animation-delay: -.25s !important; }
@keyframes viz { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
.tr-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tr-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tr-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 2em; }
.track.is-playing .tr-title { color: var(--accent); }
.tr-genres { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 10 auto; min-width: 0; }
.tr-genres b { font-weight: 400; color: var(--ink-2); }
.tr-sub { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-site { color: var(--ink-2); }
.tr-site:hover { color: var(--ink); }
.tr-sep { margin: 0 2px; color: var(--ink-3); }
.tr-sns { flex: none; width: 66px; display: grid; grid-template-columns: repeat(3, 20px); gap: 2px 3px; justify-content: end; }
.tr-sns a { display: grid; place-items: center; width: 20px; height: 20px; color: var(--ink-2); border-radius: 4px; }
.tr-sns a:hover { color: var(--ink); background: var(--bg-3); }
.tr-sns .ic { width: 16px; height: 16px; }
.tr-lyr { flex: none; width: 32px; }
.tr-like { flex: none; display: inline-flex; align-items: center; gap: 3px; min-width: 52px; height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.tr-like:hover { background: var(--bg-3); }
.tr-like .ic { width: 18px; height: 18px; }
.tr-like[aria-pressed="true"] { color: var(--accent-fill); }
.tr-like[aria-pressed="true"] .ic { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.tr-dur { flex: none; width: 44px; text-align: end; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.track .ibtn { color: var(--ink-2); }
.track .ibtn:hover { color: var(--ink); background: var(--bg-3); }
.tr-more { opacity: 0; }
.track:hover .tr-more, .tr-more:focus-visible, .tr-more[aria-expanded="true"], .track.is-playing .tr-more { opacity: 1; }
@media (hover: none) { .tr-more { opacity: 1; } }
.tr-lyrics .ic, .tr-add .ic, .tr-more .ic { width: 18px; height: 18px; }

/* ───── 8. 머리 영역 (평균 색 그라데이션) ───── */
.art-bg { position: absolute; inset-inline: 0; top: 0; height: 520px; pointer-events: none; z-index: -1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--art) var(--art-a), transparent), transparent); }
.main { isolation: isolate; }
.page-head { margin-bottom: 24px; display: grid; gap: 10px; justify-items: start; }
.page-head .t-lead, .page-head > p { max-width: 720px; }
.head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; width: 100%; }
.head-tools .sp { flex: 1; }
.crumbs { font-size: 13px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.detail-head { display: flex; gap: 32px; align-items: flex-end; margin-bottom: 32px; }
.detail-art { flex: none; width: 270px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--art-c, var(--bg-2)); box-shadow: var(--shadow-art); }
.detail-art img { width: 100%; height: 100%; object-fit: cover; }
.detail-art.is-round { width: 160px; border-radius: 50%; }
.detail-txt { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.detail-txt h1 { overflow-wrap: anywhere; }
.detail-txt .t-3 a { color: var(--accent); }
.detail-txt .row-btns { margin-top: 12px; }
.sns-row { display: flex; gap: 4px; }
.sns-row a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); }
.sns-row a:hover { background: var(--bg-2); color: var(--ink); }

/* ───── 9. 메인 ───── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; min-height: 440px; margin-top: -8px; }
.hero-txt { display: grid; gap: 16px; justify-items: start; padding: 24px 0; }
.hero-txt .t-lead { max-width: 30em; }
.hero-txt .row-btns { margin-top: 12px; }
.wall { position: relative; height: 440px; overflow: hidden; border-radius: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wall-in { position: absolute; inset: -30% -20%; display: grid; align-content: center; gap: 14px; transform: rotate(-9deg); }
.wall-row { display: flex; gap: 14px; width: max-content; }
.wall.is-on .wall-row { animation: wall 90s linear infinite; }
.wall.is-on .wall-row:nth-child(2) { animation-direction: reverse; animation-duration: 110s; }
.wall.is-on .wall-row:nth-child(3) { animation-duration: 100s; }
.wall-row img { width: 112px; height: 112px; border-radius: 10px; object-fit: cover; background: var(--bg-2); flex: none; }
@keyframes wall { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.band { padding: 96px 0; }
.band-2 { background: var(--bg-2); }
.band-h { text-align: center; display: grid; gap: 12px; justify-items: center; }
.band-h .t-lead { max-width: 36em; }
.steps { list-style: none; margin: 48px auto 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 900px; counter-reset: st; }
.steps li { display: grid; justify-items: center; text-align: center; gap: 10px; counter-increment: st; }
.step-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--accent); }
.step-ic .ic { width: 28px; height: 28px; }
.steps h3::before { content: counter(st) ". "; color: var(--ink-3); }
.steps p { color: var(--ink-2); font-size: 15px; max-width: 18em; }
.empty-box { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 64px 16px; color: var(--ink-2); }
.empty-box > .ic { width: 48px; height: 48px; color: var(--ink-3); stroke-width: 1.5; }
.empty-box h1, .empty-box h2 { color: var(--ink); }
.empty-box .btn { margin-top: 8px; }
.empty-box .debug { text-align: start; white-space: pre-wrap; background: var(--bg-2); padding: 12px; border-radius: 12px; max-width: 100%; overflow: auto; }

/* ───── 10. 차트·장르·검색 ───── */
.top1-list { margin-bottom: 8px; }
.track.top1 { gap: 32px; padding: 24px; border-radius: 16px; align-items: center;
  background: linear-gradient(120deg, color-mix(in srgb, var(--art, var(--bg-3)) 30%, var(--bg-2)), var(--bg-2) 70%); }
.track.top1:hover, .track.top1:focus-within { background: linear-gradient(120deg, color-mix(in srgb, var(--art, var(--bg-3)) 30%, var(--bg-2)), var(--bg-2) 70%); }
.track.top1::after { display: none; }
.top1 .tr-play.top1-art { width: 240px; height: 240px; border-radius: 12px; box-shadow: var(--shadow-art); }
.top1 .tr-play .ic { width: 44px; height: 44px; }
.top1 .viz { gap: 6px; } .top1 .viz i { width: 8px; border-radius: 4px; }
.top1-txt { display: grid; gap: 6px; justify-items: start; }
.top1-txt .caption { color: var(--accent); display: flex; gap: 8px; align-items: baseline; }
.top1-txt .t-2 { overflow-wrap: anywhere; white-space: normal; }
.top1-txt .row-btns { margin-top: 10px; }
.top1 .ibtn { background: color-mix(in srgb, var(--bg) 60%, transparent); }
/* (2-9) 차트 청취자·나라 수, 목록 필터 줄, 언어 신고 고르기 */
.tr-stat { margin-inline-start: 8px; color: var(--ink-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.filter-row { margin-top: 10px; align-items: center; }
.filter-h { font-size: 13px; color: var(--ink-2); margin-inline-end: 2px; }
.pop-select { display: block; margin: 4px 12px 8px; width: calc(100% - 24px); height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.foot-note { margin-top: 24px; font-size: 15px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tile { position: relative; display: block; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; color: var(--on-art);
  background: var(--art-t, hsl(var(--h, 260) 22% 40%)); }
.tile:hover { text-decoration: none; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .55), transparent 65%); }
.tile-c img { position: absolute; width: 46%; aspect-ratio: 1; height: auto; border-radius: 8px; object-fit: cover; box-shadow: 0 6px 18px rgb(0 0 0 / .3); }
.tile-c img:nth-child(1) { inset-inline-end: 4%; top: 12%; transform: rotate(12deg); }
.tile-c img:nth-child(2) { inset-inline-end: 22%; top: 30%; transform: rotate(-6deg); width: 40%; }
.tile-c img:nth-child(3) { inset-inline-end: -6%; top: 44%; transform: rotate(4deg); width: 38%; }
.tile-name { position: absolute; z-index: 1; inset-inline-start: 16px; bottom: 14px; inset-inline-end: 16px; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover .tile-c img:nth-child(1) { transform: rotate(14deg) scale(1.03); }
.tile-c img { transition: transform .4s var(--ease); }
.subgenres { margin-top: 20px; }
.subgenres h3 { margin-bottom: 10px; }
.search-big { position: relative; max-width: 640px; width: 100%; display: flex; gap: 8px; }
.search-big .ic { inset-inline-start: 16px; width: 18px; height: 18px; }
.search-big input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 999px; background: var(--bg-2); padding-inline: 44px 16px; font-size: 17px; }
.search-big input:focus { background: var(--bg-3); }
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { flex: 1; min-width: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0 0; }

/* ───── 11. 띠 (사이트 만들기·개발자) ───── */

/* ───── 12. 양식·알림·관리 ───── */
.alert, .notice-ok, .notice-inline { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--down) 10%, var(--bg-2)); }
.notice-ok { background: color-mix(in srgb, var(--up) 12%, var(--bg-2)); }
.notice-inline { background: var(--bg-2); color: var(--ink-2); }
.form-msg:empty { display: none; }
.secret-box { display: grid; gap: 8px; justify-items: start; margin: 12px 0; }
.secret-box pre { margin: 0; white-space: pre-wrap; word-break: break-all; background: var(--bg); padding: 12px; border-radius: 10px; width: 100%; }
.secret-box pre span { color: var(--ink-2); }
.local-pl { margin-bottom: 16px; }
.local-pl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.local-pl-head .row-btns { margin-inline-start: auto; }
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-inline-start: var(--side); padding: 8px 16px; background: var(--bg-2); font-size: 13px; }
.lang-hint a { font-weight: 600; }
.lang-hint button { border: 0; background: none; color: var(--ink-2); font-size: 18px; line-height: 1; width: 28px; height: 28px; border-radius: 50%; }

.local-pl, .secret-box { background: var(--bg-2); border-radius: 16px; padding: 18px 20px; }
/* 예전 이름 (관리·검사 화면) */
.block { margin-top: 32px; }
.block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.empty { color: var(--ink-2); padding: 24px 0; }

/* ───── 13. 재생 바 · 전체 화면 재생 ───── */
.player { position: fixed; z-index: 40; bottom: 16px; inset-inline: calc(var(--side) + var(--pad)) var(--pad); margin-inline: auto; max-width: 760px; height: var(--bar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 10px; border-radius: 16px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--shadow-bar), 0 0 0 .5px var(--line); }
.pl-art { position: relative; flex: none; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; border: 0; padding: 0; background: var(--art-c, var(--bg-3)); }
.pl-art img { width: 100%; height: 100%; object-fit: cover; }
.pl-art .viz { background: var(--scrim); }
.pl-art .viz i { height: 46%; }
.player.is-on .pl-art .viz { opacity: 1; }
.pl-info { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.pl-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-site { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-ctrl { display: flex; align-items: center; gap: 6px; }
.pl-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink); padding: 0; }
.pl-btn:hover { background: var(--bg-3); }
.pl-btn .ic { width: 22px; height: 22px; }
.pl-main { width: 36px; height: 36px; background: var(--ink); color: var(--bg); }
.pl-main:hover { background: var(--ink); filter: brightness(1.2); }
.pl-main .ic { width: 18px; height: 18px; }
.pl-right { display: flex; align-items: center; gap: 4px; }
.pl-time { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; margin-inline-end: 4px; }
.pl-vol { display: flex; align-items: center; }
.pl-vol input { width: 80px; }
.pl-seek { position: absolute; inset-inline: 14px; bottom: 0; height: 12px; margin: 0; transform: translateY(50%); }
input[type=range].rng { -webkit-appearance: none; appearance: none; background: none; cursor: pointer; padding: 0; --p: 0%; }
.rng::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p), var(--bg-3) var(--p)); }
.rng::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p), var(--bg-3) var(--p)); }
:root[dir=rtl] .rng::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--accent) var(--p), var(--bg-3) var(--p)); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: var(--accent); border: 0; opacity: 0; transition: opacity .15s; }
.rng::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 0; opacity: 0; }
.rng:hover::-webkit-slider-thumb, .rng:focus-visible::-webkit-slider-thumb, .pfull .rng::-webkit-slider-thumb { opacity: 1; }
.rng:hover::-moz-range-thumb, .rng:focus-visible::-moz-range-thumb, .pfull .rng::-moz-range-thumb { opacity: 1; }
.pl-seek.rng::-webkit-slider-runnable-track { height: 2px; }
.pl-seek:focus-visible { box-shadow: none; }
.pfull { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; overflow-y: auto;
  padding: calc(8px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--art, var(--bg-3)) calc(var(--art-a) * 3), var(--bg)), var(--bg) 85%);
  transform: translateY(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
.pfull.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.pf-top { width: 100%; max-width: 420px; display: flex; justify-content: space-between; align-items: center; }
.pf-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--bg-3); }
.pf-art { width: min(86vw, 360px, 46vh); aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin: 24px 0 28px; background: var(--art-c, var(--bg-2)); box-shadow: 0 16px 40px rgb(0 0 0 / .25); transition: transform .4s var(--ease); }
.pfull.is-paused .pf-art { transform: scale(.86); }
.pf-art img { width: 100%; height: 100%; object-fit: cover; }
.pf-body { width: 100%; max-width: 420px; display: grid; gap: 18px; }
.pf-title { font-size: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-site { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-seek input { width: 100%; height: 20px; }
.pf-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pf-ctrl { display: flex; justify-content: center; align-items: center; gap: 28px; }
.pf-ctrl .pl-btn { width: 56px; height: 56px; }
.pf-ctrl .pl-btn .ic { width: 32px; height: 32px; }
.pf-ctrl .pl-main { width: 68px; height: 68px; }
.pf-ctrl .pl-main .ic { width: 28px; height: 28px; }
.pf-more { display: flex; justify-content: space-around; }
body.pf-lock { overflow: hidden; }

/* ───── 14. 창: 메뉴·가사·알림·언어·계정 ───── */
.pop { position: fixed; z-index: 80; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 12px;
  background: var(--bg); box-shadow: var(--shadow-pop); }
@media (prefers-color-scheme: dark) { .pop { background: var(--bg-2); } }
.pop-h { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 8px 10px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop button, .pop a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--ink); font-size: 14px; text-align: start; }
.pop button:hover, .pop a:hover, .pop button:focus-visible, .pop a:focus-visible { background: var(--bg-3); text-decoration: none; box-shadow: none; }
.pop .ic { width: 18px; height: 18px; color: var(--ink-2); }
.pop button > span:first-of-type, .pop a > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.pop .danger, .pop .danger .ic { color: var(--down); }
.pop-note { font-size: 12px; color: var(--ink-2); padding: 6px 10px; }
.pop-sns { display: flex; gap: 2px; padding: 4px 6px; }
.pop-sns a { width: 36px; justify-content: center; padding: 0; }
.add-menu [aria-checked="true"] .ic { color: var(--accent); }
.lyrics-dlg { width: min(520px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-pop); }
.lyrics-dlg::backdrop { background: rgb(0 0 0 / .4); }
.lyrics-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.lyrics-head h2 { flex: 1; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lyrics-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-2); }
.lyrics-body { padding: 20px; white-space: pre-wrap; overflow-y: auto; max-height: calc(min(80vh, 720px) - 64px); font-size: 17px; line-height: 1.6; }
.toast { position: fixed; z-index: 90; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100vw - 32px); bottom: 24px;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow-bar);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s var(--ease); }
.toast.show { opacity: 1; transform: none; }
body.has-player .toast { bottom: calc(var(--bar-h) + 32px); }
details.lang, details.me-menu { position: relative; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang-pick summary, .me-menu summary { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.lang-pick summary:hover, .me-menu summary:hover, details[open] > summary { background: var(--bg-3); }
.lang-pick summary span, .me-menu summary span:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lang-pick summary .ic, .me-menu summary .ic { color: var(--ink-2); }
.lang-panel, .me-menu ul { position: absolute; inset-inline-start: 0; bottom: calc(100% + 6px); z-index: 50; width: 300px; max-height: 60vh; overflow-y: auto; padding: 6px;
  border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-pop); }
.me-menu ul { list-style: none; margin: 0; width: 228px; }
.lang-head { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 8px 10px 4px; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang-list a, .me-menu ul a, .me-menu .linkish { display: grid; align-content: center; min-height: 40px; padding: 4px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; line-height: 1.25; width: 100%; text-align: start; }
.lang-list a:hover, .me-menu ul a:hover, .me-menu .linkish:hover { background: var(--bg-2); text-decoration: none; }
.lang-list small { color: var(--ink-2); font-size: 11px; }
.lang-list a[aria-current] { font-weight: 600; color: var(--accent); }
.me-menu form { margin: 0; }
.avatar-xs { width: 22px; height: 22px; border-radius: 50%; font-size: 11px; flex: none; }

/* ───── 15. 화면 크기별 ───── */
@media (max-width: 1067px) {
  :root { --side: 0px; --pad: 24px; --tab-h: calc(52px + env(safe-area-inset-bottom)); }
  .side { display: none; }
  .mbar { display: flex; }
  .tabbar { display: flex; }
  .main { padding-bottom: calc(var(--tab-h) + 24px); }
  body.has-player .main { padding-bottom: calc(var(--tab-h) + var(--bar-h) + 32px); }
  .wrap { padding-top: 20px; }
  .player { bottom: calc(var(--tab-h) + 8px); inset-inline: 8px; max-width: 760px; }
  .toast { bottom: calc(var(--tab-h) + 16px); }
  body.has-player .toast { bottom: calc(var(--tab-h) + var(--bar-h) + 24px); }
  .lang-hint { margin: 0; }
  /* 계정 화면: 사이드바의 아래 묶음을 아래에서 올라오는 판으로 */
  body.acct-open .side { display: flex; inset: auto 0 0 0; width: auto; max-height: 86vh; padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    border: 0; border-radius: 16px 16px 0 0; background: var(--bg); box-shadow: var(--shadow-pop); z-index: 75; }
  body.acct-open .side > :not(.acct) { display: none; }
  body.acct-open .acct { margin: 0; padding: 0; }
  body.acct-open .sheet-bg { display: block; position: fixed; inset: 0; z-index: 74; background: rgb(0 0 0 / .35); }
  .acct .lang-panel, .acct .me-menu ul { position: static; width: auto; max-height: none; box-shadow: none; padding: 4px 0 0; background: none; }
  .acct .lang-list a, .acct .me-menu ul a, .acct .me-menu .linkish { min-height: 44px; }
  .acct-close { display: grid !important; justify-self: end; }
}
.acct-close { display: none !important; }
@media (max-width: 1067px) and (min-width: 734px) {
  .tabbar { justify-content: center; }
  .tabbar a { flex: 0 1 120px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .wall { height: 300px; }
}
@media (max-width: 733px) {
  :root { --pad: 16px; --bar-h: 60px; }
  .t-display { font-size: 34px; }
  .t-1, .page-head h1 { font-size: 28px; }
  .t-2 { font-size: 20px; }
  .t-lead { font-size: 17px; }
  .wrap { padding-top: 12px; }
  .shelf { margin-top: 36px; }
  .shelf-row { grid-auto-columns: 140px; gap: 12px; }
  .shelf-nav { display: none; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 12px; }
  .wall { height: 240px; border-radius: 16px; }
  .wall-row img { width: 84px; height: 84px; }
  .band { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .track { min-height: 60px; gap: 10px; padding: 6px 4px; }
  .tracklist { --sep: 62px; }
  .tracklist.is-ranked { --sep: 106px; }
  .tracklist.is-numbered { --sep: 44px; }
  .tr-rank { width: 32px; }
  .tr-play { width: 48px; height: 48px; }
  .tr-genres, .tr-sns, .tr-lyr, .tr-lyrics, .tr-dur, .tr-stat { display: none; }
  .tr-like { min-width: 0; padding: 0 6px; }
  .detail-head { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .detail-txt { justify-items: center; }
  .detail-txt .row-btns { justify-content: center; }
  .detail-art { width: 240px; }
  .detail-art.is-round { width: 160px; }
  .track.top1 { flex-direction: column; align-items: flex-start; padding: 16px; gap: 16px; }
  .top1 .tr-play.top1-art { width: 160px; height: 160px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile-name { font-size: 15px; inset-inline-start: 12px; bottom: 10px; }
  .player { padding: 0 6px 0 8px; gap: 8px; }
  .pl-ctrl [data-p="prev"], .pl-right, .pl-time { display: none; }
  .pl-seek { pointer-events: none; inset-inline: 12px; }
}

/* ───── 16. 움직임 줄이기 ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
