/* song.na.to — 학습 노래 MV 무대 (2026-11-12). word·say 의 보라 밤하늘·책 무대와 다르게: 검은 무대 + LED 점 화면 + 하이퍼팝 형광.
   묶음마다 제 색(처음 라임 · WORD 핑크 · SAY 시안 · RULE 오렌지). 무거운 장식(흐림·무한 움직임·큰 그림자) 없음 — 헌법 8. */
:root { --bg: #050506; --bg2: #0d0d12; --ink: #f6f7f2; --mute: #a3a6ad; --line: #24252c;
  --lime: #c8ff1a; --pink: #ff2e93; --cyan: #19e3ff; --orange: #ff8a1f; --a: var(--lime); color-scheme: dark; }
/* 묶음 색 = 다섯 사이트 공용 색(learn.css --lx-word·say·rule) */
.g-start { --a: var(--lime); } .g-word { --a: #ffb020; } .g-say { --a: #ff5c93; } .g-rule { --a: #3ddc84; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sg { margin: 0; color: var(--ink); line-height: 1.55; word-break: var(--xn-wb, keep-all); overflow-wrap: anywhere; overflow-x: hidden;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* LED 점 화면 + 무대 조명 두 줄기(움직이지 않음) */
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.6px),
    conic-gradient(from 200deg at 15% -5%, transparent 0 8deg, rgba(200, 255, 26, .10) 14deg, transparent 22deg),
    conic-gradient(from 140deg at 85% -5%, transparent 0 8deg, rgba(255, 46, 147, .12) 14deg, transparent 22deg);
  background-size: 6px 6px, 100% 900px, 100% 900px; background-repeat: repeat, no-repeat, no-repeat; }
.sg a { color: inherit; }
.sg-dot { opacity: .45; }
.sg [lang="en"] { font-feature-settings: "ss01"; }
main { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }

/* 두 말 — 한국어 페이지는 한국어 먼저, 영어 페이지는 영어 먼저 */
.sg-l { display: block; }
.sg-h1 { display: flex; flex-direction: column; }
.sg-enfirst .sg-l-en { order: -1; }

/* 머리 */

/* 첫 화면 — 영상이 주인공 */
.sg-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; padding: 20px 0 30px; }
.sg-hero .sg-stage { grid-column: 2; grid-row: 1 / span 2; }
.sg-hero .sg-hero-text { grid-column: 1; grid-row: 1; }
.sg-hero .sg-count { grid-column: 1; grid-row: 2; align-self: start; }
.sg-one { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sg-one .sg-stage { grid-column: 1; grid-row: 1; }
.sg-one .sg-hero-text { grid-column: 2; }
.sg-kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.sg-kicker a { text-decoration: none; }
.sg-h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 3.9rem); line-height: 1.04; font-weight: 900; letter-spacing: -.02em; }
.sg-h1 .sg-l-en, .sg-enfirst .sg-h1 .sg-l-ko { font-size: .5em; line-height: 1.2; margin-top: .35em; font-weight: 800; color: var(--mute); }
.sg-enfirst .sg-h1 .sg-l-en { font-size: 1em; margin-top: 0; color: var(--ink); }
.sg-enfirst .sg-h1 .sg-l-ko { margin-top: .35em; }
.sg-h1 em { font-style: normal; color: var(--a); }
.sg-h1-song { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.sg-h1-song .sg-l-en em { color: var(--a); }
.sg-lead { margin: 14px 0 0; color: #d6d8dc; font-size: 1.02rem; display: flex; flex-direction: column; gap: 4px; }
.sg-lead [lang="en"] { color: var(--mute); font-size: .95rem; }
.sg-enfirst .sg-lead [lang="en"] { order: -1; color: #d6d8dc; font-size: 1.02rem; }
.sg-enfirst .sg-lead [lang="ko"] { color: var(--mute); font-size: .95rem; }
.sg-count { margin: 0; color: var(--mute); font-size: .9rem; }
.sg-count b { color: var(--lime); font-size: 1.5rem; font-weight: 900; margin-right: 2px; }

/* LED 화면 테두리 안의 영상 */
.sg-stage { margin: 0; }
.sg-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  border: 2px solid var(--a); box-shadow: 0 0 0 4px #000, 0 0 0 5px color-mix(in srgb, var(--a) 45%, transparent), 0 10px 30px -12px color-mix(in srgb, var(--a) 60%, transparent); }
.sg-player img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sg-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.sg-play b { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--a); color: #000; font-size: 1.9rem; padding-left: 6px; }
.sg-play:hover b, .sg-play:focus-visible b { transform: scale(1.06); }
.sg-soon { display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--a) 40%, transparent) 1.1px, transparent 1.7px) 0 0 / 7px 7px,
    radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--a) 30%, transparent), transparent 70%), #000; }
.sg-soon-in { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.sg-soon-in b { font-size: clamp(1.6rem, 6vw, 3.2rem); font-weight: 900; font-style: italic; color: var(--a); letter-spacing: .02em; }
.sg-soon-in small { font-size: .9rem; color: #e3e5e8; font-weight: 700; letter-spacing: .06em; }
.sg-stage figcaption { margin-top: 12px; }
.sg-stage figcaption a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 44px; text-decoration: none; font-size: 1.05rem; }
.sg-now { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #000; background: var(--a); border-radius: 4px; padding: 2px 6px; }
.sg-stage figcaption [lang="en"] { color: var(--mute); }

/* 곡 쪽: 후렴·소리 훅·단추 */
.sg-hook { margin: 14px 0 0; font-size: 1.15rem; font-weight: 800; }
.sg-hook [lang="en"] { color: var(--mute); font-weight: 700; }
.sg-theme { margin: 6px 0 0; color: var(--mute); font-size: .92rem; }
.sg-adlib { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sg-adlib b { font-size: 1.5rem; font-weight: 900; font-style: italic; color: var(--a); }
.sg-adlib small { color: var(--mute); }
.sg-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sg-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.sg-btn b { font-weight: 900; letter-spacing: .06em; }
.sg-go { background: var(--a); color: #000; border-color: var(--a); }
.sg-shared { margin: 10px 0 0; color: var(--lime); font-weight: 700; }
.sg-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 26px; }
.sg-pn a { display: flex; flex-direction: column; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--bg2); }
.sg-pn small { color: var(--mute); }
.sg-pn [lang="en"] { color: var(--mute); font-size: .88rem; }
.sg-next { grid-column: 2; text-align: right; }

/* 새 MV 카드 */
.sg-h2 { font-size: 1.35rem; font-weight: 900; margin: 30px 0 14px; letter-spacing: -.01em; }
.sg-h2 small { font-size: .72rem; letter-spacing: .2em; color: var(--mute); margin-left: 8px; font-weight: 800; }
.sg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.sg-cards a { display: block; padding: 8px 2px; min-height: 44px; text-decoration: none; }
.sg-cards [lang="en"] { color: var(--mute); }
.sg-cards .sg-play b { width: 54px; height: 54px; font-size: 1.3rem; }

/* 전체 곡 — 세트리스트 */
.sg-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sg-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .88rem;
  border: 1px solid color-mix(in srgb, var(--a) 60%, transparent); color: var(--a); }
.sg-jump a [lang="en"], .sg-jump a .sg-dot { display: none; }
.sg-enfirst .sg-jump a [lang="en"] { display: inline; } .sg-enfirst .sg-jump a [lang="ko"] { display: none; }
.sg-group { margin-top: 22px; scroll-margin-top: 12px; }
.sg-gh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--a); }
.sg-gh b { font-size: 1.15rem; color: var(--a); }
.sg-gh small { color: var(--mute); font-weight: 600; font-size: .85rem; }
.sg-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 18px; }
.sg-row-a { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; }
.sg-row-a:hover .sg-tt b, .sg-row-a:focus-visible .sg-tt b { color: var(--a); }
.sg-no { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--a); font-size: 1.05rem; font-style: italic; }
.sg-tt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sg-tt b { font-weight: 800; }
.sg-tt [lang="en"] { color: var(--mute); font-size: .86rem; }
.sg-enfirst .sg-tt [lang="en"] { order: -1; color: var(--ink); font-size: 1rem; font-weight: 800; }
.sg-enfirst .sg-tt b { font-weight: 500; color: var(--mute); font-size: .86rem; }
.sg-st i { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sg-live { background: var(--a); color: #000; }
.sg-wait { color: var(--mute); border: 1px dashed var(--line); }
.sg-wait [lang="en"], .sg-wait .sg-dot { display: none; }
.sg-enfirst .sg-wait [lang="en"] { display: inline; } .sg-enfirst .sg-wait [lang="ko"] { display: none; }
.is-now .sg-row-a { background: color-mix(in srgb, var(--a) 14%, transparent); border-radius: 8px; }
.sg-all a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--lime); }

/* 책 칸 — 가사 책(#lyrics)·단어·말하기·문법 책(#books). 카드 틀은 _learn_books.html(class pr-*), 색은 묶음 색 그대로 (11-13) */
.sg-shelf { margin-top: 10px; }
.sg-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.sg-who > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.sg-who b { font-size: 1.1rem; font-weight: 900; }
.sg-who em { font-style: normal; color: var(--lime); }
.sg-who p { margin: 6px 0 0; color: #d6d8dc; font-size: .95rem; }
.sg-enfirst .sg-who-en { order: -1; }
.sg-peek { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 460px; margin: 0 0 18px; }
.sg-peek figure { margin: 0; }
.sg-peek img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.sg-peek figcaption { margin-top: 6px; font-size: .8rem; color: var(--mute); text-align: center; }
.sg-peek figcaption [lang="en"], .sg-peek figcaption .sg-dot { display: none; }
.sg-enfirst .sg-peek figcaption [lang="en"] { display: inline; } .sg-enfirst .sg-peek figcaption [lang="ko"] { display: none; }
.sg .pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (min-width: 900px) { #lyrics .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sg .pr-book { --a: var(--lime); display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 14px;
  background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--a); scroll-margin-top: 16px; }
.sg .pr-book[id*="word-"], .sg .pr-book[id^="wsong"] { --a: #ffb020; }
.sg .pr-book[id*="say-"], .sg .pr-book[id^="ssong"] { --a: #ff5c93; }
.sg .pr-book[id*="rule-"] { --a: #3ddc84; }
.sg .pr-book:target { box-shadow: 0 0 0 2px var(--a); }
.sg .pr-cover { align-self: start; }
.sg .pr-cover img { width: 100%; height: auto; display: block; border-radius: 6px; }
.sg .pr-shine { display: none; }
.sg .pr-code { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: var(--a); }
.sg .pr-btitle { margin: 2px 0 4px; font-size: 1.2rem; font-weight: 900; line-height: 1.25; display: flex; flex-direction: column; }
.sg .pr-btitle [lang="en"] { font-size: .76em; color: var(--mute); font-weight: 700; }
.sg-enfirst .pr-btitle [lang="en"] { order: -1; font-size: 1em; color: var(--ink); font-weight: 900; }
.sg-enfirst .pr-btitle [lang="ko"] { font-size: .76em; color: var(--mute); font-weight: 700; }
.sg .pr-bsub { margin: 0 0 4px; color: #d6d8dc; font-size: .88rem; display: flex; flex-direction: column; }
.sg .pr-bsub [lang="en"] { color: var(--mute); }
.sg-enfirst .pr-bsub [lang="en"] { order: -1; color: #d6d8dc; } .sg-enfirst .pr-bsub [lang="ko"] { color: var(--mute); }
.sg .pr-meta { margin: 0 0 10px; font-size: .86rem; color: var(--mute); }
.sg .pr-pair { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  border: 1px dashed color-mix(in srgb, var(--a) 70%, transparent); background: color-mix(in srgb, var(--a) 10%, transparent); }
.sg .pr-pair > span { display: flex; flex-direction: column; font-weight: 800; line-height: 1.3; }
.sg .pr-pair small { font-weight: 600; color: var(--mute); font-size: .78rem; }
.sg .pr-pair i { margin-left: auto; font-style: normal; font-weight: 900; color: var(--a); }
.sg .pr-buy { display: flex; flex-direction: column; gap: 8px; }
.sg .pr-btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: .92rem;
  border: 1px solid var(--line); background: #15161c; color: var(--ink); line-height: 1.2; }
.sg .pr-btn small { display: block; font-weight: 600; font-size: .78em; opacity: .85; }
.sg .pr-gp { background: var(--a); border-color: var(--a); color: #000; }
.sg .pr-kb { border-color: #2bb673; }
.sg .pr-soon { opacity: .5; cursor: default; }
.sg-enfirst .pr-buy .pr-gp { order: -1; }

/* 폰 */
@media (max-width: 760px) {
  .sg-hero, .sg-one { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 6px; }
  .sg-hero .sg-stage, .sg-hero .sg-hero-text, .sg-hero .sg-count, .sg-one .sg-stage, .sg-one .sg-hero-text { grid-column: 1; grid-row: auto; }
  .sg-hero .sg-stage { order: 1; } .sg-hero .sg-hero-text { order: 2; } .sg-hero .sg-count { order: 3; }
  .sg-h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .sg-one .sg-stage { order: 1; } .sg-one .sg-hero-text { order: 2; }

  .sg-rows { grid-template-columns: minmax(0, 1fr); }
  .sg .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-who { grid-template-columns: minmax(0, 1fr); }
  .sg .pr-book { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .sg-play b { width: 64px; height: 64px; }
  .sg-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (pointer: coarse) { .sg-kicker a { display: inline-block; padding: 12px 0; margin: -12px 0; } }

/* 11-25 나토 결 — 밝은 종이색 · 먹색 글자 · 얇은 선(대표 「나토 학습 사이트 디자인도 밝은 계열로」 · 「효과를 조금 줄이면」 · 「자연스럽게」).
   위의 검은 무대·LED 점·형광 값은 그대로 두고 이 층이 덮는다. 묶음 색은 밝은 바탕에서 4.5:1 넘는 진한 값, 그 위 글자는 흰색. */
:root { --bg: #fbfaf7; --bg2: #fff; --ink: #121315; --mute: #55585d; --line: #e7e4de;
  --lime: #4d7c0f; --pink: #be185d; --cyan: #0e7490; --orange: #c2410c; color-scheme: light; }
.g-start { --a: #4d7c0f; } .g-word { --a: #b45309; } .g-say { --a: #be123c; } .g-rule { --a: #047857; }
body.sg { background-color: var(--bg); background-image: none; }
.sg-lead, .sg-enfirst .sg-lead [lang="en"], .sg-who p { color: #3a3c40; }
.sg-player { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 18px -10px rgba(18, 19, 21, .3); }
.sg-play b, .sg-go, .sg-live, .sg-now { color: #fff; }
.sg-soon { background: #f3f1ec; }
.sg-soon-in small { color: #3a3c40; }
.sg-btn { border-radius: 12px; background: #fff; }
.sg-go { background: #121315; border-color: #121315; color: #fbfaf7; }
.sg-pn a, .sg-who > div { background: #fff; border-radius: 12px; }
.is-now .sg-row-a { background: color-mix(in srgb, var(--a) 7%, transparent); }
.sg .pr-btn { background: #fff; border-radius: 12px; }
.sg .pr-gp { background: #121315; border-color: #121315; color: #fbfaf7; }
.sg .pr-kb { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.sg .pr-bsub, .sg-enfirst .pr-bsub [lang="en"] { color: #3a3c40; }
.sg a.sg-go { color: #fbfaf7; }   /* .sg a { color: inherit } 보다 세게 */
.sg-now [lang], .sg-now .sg-dot { color: inherit; }
/* 11-25 나토 세로선(최대 1032px · 좌우 16px) */
html.nt-framed body.sg main { max-width: 1032px; padding-left: 16px; padding-right: 16px; }
