/* 음악 탭 — 어두운 보라 무대 위에 커다란 앨범 원판 + 곡 목록. 재생 중엔 원판 둘레로 소리 막대가 춤춘다 */
:root[data-view="songs"]:not(#_), :root[data-view="about"]:not(#_) {
  --bg: #07040f; --fg: #f3ecff; --mute: #a994d6; --ink: #f3ecff; --onink: #07040f; --line: rgba(150, 100, 255, .22);
  --chip: #150b28; --chip-h: #21123d; --btn: #1c1036; color-scheme: dark;
}
:root[data-view="songs"]:not(#_) body, :root[data-view="about"]:not(#_) body { background: #07040f !important; color: var(--fg); }
:root[data-view="songs"] .intro, :root[data-view="songs"] .bar, :root[data-view="songs"] #grid, :root[data-view="songs"] #modeview,
:root[data-view="songs"] #vault, :root[data-view="songs"] .about, :root[data-view="songs"] .modeb, :root[data-view="songs"] .modemenu,
:root[data-view="about"] .intro, :root[data-view="about"] .bar, :root[data-view="about"] #grid, :root[data-view="about"] #modeview,
:root[data-view="about"] #vault, :root[data-view="about"] .about, :root[data-view="about"] .modeb, :root[data-view="about"] .modemenu { display: none !important; }
.songs[hidden], .aboutpg[hidden] { display: none; }
.songs { --ac: 150, 100, 255; position: relative; width: min(var(--maxw), 100% - 2 * var(--pad)); margin: 28px auto 0; padding-bottom: 40px; }
.mbg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mbg i { position: absolute; display: block; border-radius: 50%; filter: blur(90px); transition: background 1.2s; }
.mbg .ma { left: -10vmax; top: -14vmax; width: 64vmax; height: 64vmax; background: radial-gradient(closest-side, rgba(var(--ac), .38), transparent 72%); animation: mbA 18s ease-in-out infinite alternate; }
.mbg .mb { right: -16vmax; bottom: -22vmax; width: 70vmax; height: 70vmax; background: radial-gradient(closest-side, rgba(110, 60, 220, .34), transparent 72%); animation: mbA 24s ease-in-out infinite alternate-reverse; }
@keyframes mbA { to { transform: translate3d(5vmax, 4vmax, 0) scale(1.1); } }
.mhead .meta { font-size: 13px; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.songs h1 { margin: 8px 0 0; font-size: clamp(44px, 7vw, 108px); font-weight: 760; letter-spacing: -.045em; line-height: .98;
  background: linear-gradient(100deg, #fff 20%, rgb(var(--ac)) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.songs .slead { margin: 14px 0 0; max-width: 40em; font-size: 15px; line-height: 1.65; color: var(--mute); text-wrap: pretty; word-break: keep-all; }
.mstage { display: grid; grid-template-columns: minmax(280px, 40%) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); margin-top: clamp(24px, 4vw, 52px); align-items: start; }
.mnow { position: sticky; top: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mdisc { position: relative; width: min(100%, 460px); aspect-ratio: 1; }
.mdisc canvas { position: absolute; inset: -9%; width: 118%; height: 118%; pointer-events: none; }
.mcover { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; background: #1a0f33; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px rgba(var(--ac), .45), inset 0 0 0 6px rgba(255,255,255,.06); animation: mspin 24s linear infinite; animation-play-state: paused; }
.mcover img { display: block; width: 100%; height: 100%; object-fit: cover; }
:root.splaying .mcover { animation-play-state: running; }
@keyframes mspin { to { transform: rotate(360deg); } }
.mnt { margin: 26px 0 0; max-width: 100%; font-size: clamp(20px, 2vw, 28px); font-weight: 680; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.mns { margin: 6px 0 0; font-size: 13.5px; color: var(--mute); }
.mplay { margin-top: 20px; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(var(--ac), .35)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 40px rgba(var(--ac), .5); transition: transform .25s, box-shadow .25s; }
.mplay:hover { transform: scale(1.07); } .mplay:active { transform: scale(.96); }
.mplay svg { width: 24px; height: 24px; }
.songs .spills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.songs .pill { height: 36px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--mute); font-size: 14px; font-weight: 550; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.songs .pill span { font-size: 12px; opacity: .7; }
.songs .pill:hover { background: rgba(255,255,255,.1); }
.songs .pill.on { background: #f3ecff; color: #07040f; border-color: transparent; }
.songs .sempty { margin: 8px 0 0; padding: 56px 24px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--mute); font-size: 15px; line-height: 1.7; text-align: center; text-wrap: balance; word-break: keep-all; }
/* 곡 목록 — 한 줄에 곡 하나: 번호 · 작은 재킷 · 제목 · 길이 */
.sgrid { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; counter-reset: sn; }
.sg { counter-increment: sn; display: grid; grid-template-columns: 34px 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 16px; border: 1px solid transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: background-color .25s, border-color .25s, transform .3s cubic-bezier(.2,.8,.2,1); position: relative; }
.sg::before { content: counter(sn, decimal-leading-zero); font-size: 12.5px; color: var(--mute); text-align: center; font-variant-numeric: tabular-nums; }
.sg:hover, .sg:focus-visible { background: rgba(255,255,255,.07); border-color: var(--line); transform: translateX(4px); outline: none; }
.sgc { position: relative; display: block; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #1a0f33; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 20px rgba(0,0,0,.35); }
.sgc img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sgp { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 3, 20, .5); color: #fff; opacity: 0; transition: opacity .2s; }
.sgp svg { width: 20px; height: 20px; margin-left: 2px; }
.sg:hover .sgp, .sg:focus-visible .sgp { opacity: 1; }
.sgeq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 12px; background: rgba(8, 3, 20, .55); }
.sgeq b { display: block; width: 4px; height: 22px; border-radius: 2px; background: #fff; transform-origin: bottom; animation: sgeq .9s ease-in-out infinite; }
.sgeq b:nth-child(2) { animation-delay: -.3s; } .sgeq b:nth-child(3) { animation-delay: -.6s; }
@keyframes sgeq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.sg.now { background: linear-gradient(90deg, rgba(var(--ac), .22), rgba(var(--ac), .04)); border-color: rgba(var(--ac), .5); }
.sg.now::before { content: ""; }
.sg.now .sgeq { display: flex; } .sg.now .sgp { display: none; }
.sg.now.paused .sgeq b { animation-play-state: paused; }
.sgt { max-width: 100%; font-size: 16px; font-weight: 640; line-height: 1.3; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgm { display: block; margin-top: 2px; max-width: 100%; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgd { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* 아래 고정 재생 막대 */
.sbar { -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80; width: min(760px, 100% - 24px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 18px 44px rgba(0,0,0,.2); }
.sbar[hidden] { display: none; }
.sbc { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--chip); }
.sbc img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sbi { min-width: 0; }
.sbt { font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbs { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.sbrow time { flex: none; font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 2.4em; }
.sbrow time:last-child { text-align: right; }
.sbseek { --p: 0%; flex: 1; min-width: 0; height: 18px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sbseek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--fg) var(--p), var(--line) var(--p)); }
.sbseek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--fg); border: 0; transform: scale(0); transition: transform .15s; }
.sbseek:hover::-webkit-slider-thumb, .sbseek:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.sbseek::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.sbseek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--fg); }
.sbseek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--fg); }
.sbbtn { display: flex; align-items: center; gap: 4px; }
.sbbtn button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.sbbtn button:hover { background: var(--chip); }
.sbbtn button svg { width: 18px; height: 18px; }
.sbbtn #splay { width: 44px; height: 44px; background: var(--fg); color: var(--bg); }
.sbbtn #splay:hover { background: var(--fg); opacity: .86; }
.sbbtn #splay svg { width: 18px; height: 18px; }
.sbbtn .sbx { width: 30px; height: 30px; color: var(--mute); margin-left: 2px; }
.sbbtn .sbx svg { width: 12px; height: 12px; }
:root.sbar-on .foot { padding-bottom: 96px; }
@media (max-width: 640px) {
  .sbar { grid-template-columns: auto minmax(0, 1fr); bottom: 10px; row-gap: 6px; }
  .sbbtn { grid-column: 1 / -1; justify-content: center; }
  .sbbtn #sprev, .sbbtn #snext { width: 40px; }
}


@media (max-width: 860px) {
  .mstage { grid-template-columns: 1fr; gap: 22px; }
  .mnow { position: static; } .mdisc { width: min(70vw, 320px); }
  .mbg i { filter: blur(60px); }
}
@media (max-width: 640px) { .sg { grid-template-columns: 26px 50px minmax(0, 1fr) auto; gap: 10px; } .sgc { width: 50px; height: 50px; } }
@media (prefers-reduced-motion: reduce) { .mcover, .mbg i, .sgeq b { animation: none !important; } .sg:hover { transform: none; } }

/* 음악 · 소개 화면은 길어서 세로로 스크롤된다(메인 보기 방식은 화면 고정이라 따로 풀어 준다) */
:root[data-view="songs"]:not(#_), :root[data-view="about"]:not(#_) { overflow-y: auto !important; height: auto !important; }
:root[data-view="songs"]:not(#_) body, :root[data-view="about"]:not(#_) body { overflow: visible !important; height: auto !important; min-height: 100vh; }

/* 곡 목록 / 가사 탭 */
.mtabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.mtab { height: 34px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: var(--mute); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.mtab:hover { color: var(--fg); } .mtab.on { background: #f3ecff; color: #07040f; }
.mpane[hidden] { display: none; }
.lyr { max-height: min(70vh, 720px); overflow-y: auto; padding: 4px 4px 40px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 60px), transparent); scrollbar-width: none; }
.lyr::-webkit-scrollbar { display: none; }
.lyh { display: flex; align-items: baseline; gap: 10px; margin: 0 0 22px; } .lyh b { font-size: 20px; letter-spacing: -.02em; } .lyh span { font-size: 13px; color: var(--mute); }
.lyl p { margin: 0 0 10px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; line-height: 1.55; letter-spacing: -.015em; color: rgba(243,236,255,.9); word-break: keep-all; text-wrap: pretty; transition: color .3s, opacity .3s, transform .3s; }
.lyl br { display: block; content: ""; margin-bottom: 18px; }
.lyl.sync p { color: rgba(243,236,255,.34); } .lyl.sync p.on { color: #fff; transform: translateX(6px); text-shadow: 0 0 28px rgba(var(--ac), .8); }
.lyempty { margin: 8px 0 0; padding: 48px 24px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--mute); font-size: 15px; text-align: center; }

.songs .spills.sub { margin: -6px 0 16px; } .songs .spills.sub .pill { height: 30px; padding: 0 13px; font-size: 13px; background: transparent; } .songs .spills.sub .pill.on { background: rgba(var(--ac), .3); color: #fff; border-color: rgba(var(--ac), .6); }

.lyl p.sec { margin: 22px 0 8px; font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--ac)); opacity: .9; } .lyl p.sec:first-child { margin-top: 0; }

/* 앨범 커버 크게 보기 */
.mcover { cursor: zoom-in; } .sbc { cursor: zoom-in; }
.mcover:focus-visible { outline: 2px solid rgb(var(--ac)); outline-offset: 4px; }
.cvbox { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: rgba(5, 2, 14, .82); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); opacity: 0; transition: opacity .22s; }
.cvbox.on { opacity: 1; } .cvbox[hidden] { display: none; }
.cvbox figure { margin: 0; display: grid; justify-items: center; gap: 18px; max-width: 100%; transform: scale(.94); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cvbox.on figure { transform: none; }
.cvbox img { display: block; width: min(86vmin, 900px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 40px 120px rgba(var(--ac, 150, 100, 255), .5), 0 20px 60px rgba(0,0,0,.6); }
.cvbox figcaption { display: grid; gap: 4px; text-align: center; } .cvbox figcaption b { font-size: 20px; letter-spacing: -.02em; } .cvbox figcaption span { font-size: 13.5px; color: var(--mute); }
.cvx { position: absolute; right: clamp(14px, 3vw, 36px); top: clamp(14px, 3vw, 36px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cvx:hover { background: rgba(255,255,255,.2); } .cvx svg { width: 14px; height: 14px; }

/* 가사 탭: 제목은 흐려지는 가장자리 밖에 두고 크게, 가사만 스크롤된다 */
.lyr { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 0; }
.lyh { display: grid; gap: 4px; margin: 2px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lyh b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 720; letter-spacing: -.03em; line-height: 1.2; color: #fff; text-wrap: balance; }
.lyh span { font-size: 13.5px; color: var(--mute); }
.lyl { max-height: min(60vh, 640px); overflow-y: auto; padding: 16px 4px 48px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 56px), transparent); }
.lyl::-webkit-scrollbar { display: none; }
.lyl { padding-top: 8px; }
/* 가사 간격 */
.lyl p { margin: 0 0 18px; line-height: 1.75; }
.lyl br { display: block; content: ""; margin-bottom: 34px; }
.lyl p.sec { margin: 42px 0 18px; } .lyl p.sec:first-child { margin-top: 0; }

/* 탭 · 분류 버튼 가독성: 안 눌린 버튼도 글자와 테두리를 또렷하게 */
.mtabs { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.mtab { color: #e4d8ff; font-size: 15px; font-weight: 650; height: 38px; padding: 0 22px; }
.mtab:hover { background: rgba(255,255,255,.12); color: #fff; }
.songs .pill { height: 40px; padding: 0 18px; font-size: 15px; font-weight: 650; color: #efe6ff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32); }
.songs .pill span { font-size: 13px; opacity: .85; color: #cdbcf5; }
.songs .pill:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.songs .pill.on { background: #f3ecff; color: #07040f; border-color: #f3ecff; } .songs .pill.on span { color: #4b3a78; opacity: 1; }
.songs .spills.sub .pill { height: 34px; padding: 0 15px; font-size: 14px; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.24); }
.songs .spills.sub .pill.on { background: rgba(var(--ac), .38); color: #fff; border-color: rgba(var(--ac), .8); } .songs .spills.sub .pill.on span { color: #fff; }
/* 가사 탭: 탭 버튼과 첫 가사 사이를 넉넉히 */
.lyr { margin-top: 30px; } .lyl { padding-top: 44px; }

/* 음악 · 소개 화면의 스크롤바는 숨긴다(분류를 누를 때 목록 길이가 바뀌어 스크롤바가 생겼다 사라지며 화면이 좌우로 흔들리던 문제). 휠 · 터치 · 키보드 스크롤은 그대로 된다 */
:root[data-view="songs"], :root[data-view="about"] { scrollbar-width: none; -ms-overflow-style: none; }
:root[data-view="songs"]::-webkit-scrollbar, :root[data-view="about"]::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* 부르는 사람 표시([Female] · [Male]) */
.lyl p.spk { display: inline-block; margin: 14px 0 6px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #efe6ff; background: rgba(var(--ac), .22); border: 1px solid rgba(var(--ac), .45); line-height: 1.6; }
.lyl p.spk + p { margin-top: 0; }
/* "음악" 제목 자간: 한글이라 너무 붙지 않게 넉넉하게 */
.songs h1 { letter-spacing: .06em; padding-left: .02em; }
