/* 人類の遺産スタジオ — 영상 스튜디오 사이트(2026-11-25 둘째 판)
   검은 바탕 · 작품 그림이 주인공 · 글자는 크고 굵게 · 틈 없는 작품 벽
   색: 黒 #000 / 白 #fff / 人類の遺産 青 / 博物館 金 / あとさき 橙 */
:root {
  --ink: #fff; --dim: #b6bac0; --faint: #80868e; --line: #2c2f34; --panel: #17191c;
  --c-jinrui: #4a8cff; --c-museum: #e6b644; --c-atosaki: #ff7d36; --c-shiro: #e3e7ea;
  --c: #fff;
  --pad: clamp(20px, 4.2vw, 72px);
  --head: 68px;
  --go: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #000; color: var(--ink); font: 500 17px/1.75 var(--go); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }
.c-jinrui, .t-jinrui, .d-jinrui { --c: var(--c-jinrui); }
.c-museum, .t-museum, .d-museum { --c: var(--c-museum); }
.c-atosaki, .t-atosaki, .d-atosaki { --c: var(--c-atosaki); }
.d-shiro { --c: var(--c-shiro); }

/* ── 머리 ── */
.head { position: sticky; top: 0; z-index: 50; background: #000; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); min-height: 68px; border-bottom: 1px solid var(--line); }
.logo { font-size: 1.25rem; font-weight: 900; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 2vw, 32px); margin-left: auto; }
.nav a { font-size: 1rem; font-weight: 700; text-decoration: none; padding: 20px 0 17px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { border-color: #666; }
.ns { display: none; }
.nav, .tower, .themes { scrollbar-width: none; }
.nav::-webkit-scrollbar, .tower::-webkit-scrollbar, .themes::-webkit-scrollbar { display: none; }
.n-jinrui[aria-current] { border-color: var(--c-jinrui); }
.n-museum[aria-current] { border-color: var(--c-museum); }
.n-atosaki[aria-current] { border-color: var(--c-atosaki); }
.n-shiro[aria-current] { border-color: var(--c-shiro); }
.n-note[aria-current] { border-color: #fff; }

/* ── 머리 오른쪽 끝: 검색창 ── */
.hs { position: relative; flex: 0 1 260px; min-width: 170px; }
.hs input { width: 100%; min-height: 44px; border: 1.5px solid #5a5f66; border-radius: 999px; color: #fff; padding: 0 14px 0 44px; font-size: 1rem;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") 15px 50% / 20px no-repeat; }
.hs input::placeholder { color: #c9cdd2; }
.hs input:hover, .hs input:focus { border-color: #fff; }
.hs-pop { position: absolute; right: 0; top: calc(100% + 12px); width: min(640px, calc(100vw - var(--pad) * 2)); max-height: min(74vh, 760px); overflow-y: auto; overscroll-behavior: contain; background: #0b0c0e; border: 1.5px solid #6a7078; padding: 18px; }
.hs-sum { font-weight: 900; font-size: 1.0625rem; }
.hs-none, .hs-more { color: var(--dim); font-size: 0.9375rem; margin-top: 10px; }
.hs-ch { margin-top: 12px; }
.hs-ch button { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.hs-ch button[class^="c-"][aria-pressed="true"] { background: var(--c); border-color: var(--c); }
.hs-notes { display: grid; gap: 8px; margin-top: 16px; }
.hs-note { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--panel); border-left: 5px solid var(--c); text-decoration: none; }
.hs-list { display: grid; gap: 14px; margin-top: 18px; }
.hs-pop .row:hover .tile-t, .hs-pop .row:focus-visible .tile-t, .hs-note:hover .tile-t { text-decoration: underline; text-underline-offset: 4px; }

/* ── 단추 · 고르는 알약 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 2px solid #fff; font-weight: 700; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.btn:hover { background: #fff; color: #000; }
.btn-fill { background: #fff; color: #000; }
.btn-fill:hover { background: var(--c-museum); border-color: var(--c-museum); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 44px; padding: 0 18px; border: 1.5px solid #5a5f66; border-radius: 999px; background: none; color: #fff; font-weight: 700; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; }
.tabs button:hover { border-color: #fff; }
.tabs button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; }
.tabs button span { font-weight: 500; margin-left: 6px; opacity: 0.75; }

/* ── 구획 ── */
.sec { padding: clamp(64px, 10vh, 128px) var(--pad) 0; }
.sec-h { font-size: clamp(1.875rem, 3.6vw, 3.25rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 28px; }
.sec-h2 { font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: 900; margin: 56px 0 20px; }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-top .sec-h { margin-bottom: 0; }

/* ── 첫 화면: 本編 · ショート 마다 채널을 고르는 단추 ── */
.home-sec .sec-h { margin-bottom: 20px; }
.pick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pick button { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 26px 10px 12px; border: 2px solid #4a4f56; border-radius: 999px; background: var(--panel); color: #fff; cursor: pointer; text-align: left; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.pick button:hover { border-color: var(--c); }
.pick button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #000; }
.pick img { width: 48px; height: 48px; border-radius: 50%; }
.pick-n { font-size: 1.1875rem; font-weight: 900; line-height: 1.3; white-space: nowrap; }
.pick-c { font-size: 0.9375rem; font-weight: 700; opacity: 0.72; white-space: nowrap; }
.ps { display: none; }
.home-more { margin-top: 24px; }

/* ── 첫 화면: 큰 문구 + 돌아가는 성 영상 ── */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 0 4vw; padding: clamp(28px, 6vh, 72px) 0 0 var(--pad); }
.hero h1 { font-size: clamp(3rem, 6.9vw, 8rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; }
.hero-lead { font-size: clamp(1rem, 1.35vw, 1.25rem); max-width: 27em; margin-top: 28px; color: #e6e8eb; }
.hero-btn { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-reel { position: relative; aspect-ratio: 16 / 9; background: #101214; overflow: hidden; }
.hero-reel video { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s; }
.reel-cap { position: absolute; left: 0; bottom: 0; background: #000; padding: 8px 16px 8px 14px; font-size: 0.875rem; display: flex; gap: 12px; align-items: baseline; }
.reel-cap span { color: var(--dim); }
.reel-cap a { font-weight: 700; text-underline-offset: 3px; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(36px, 7vh, 72px) var(--pad) 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font-size: 0.9375rem; color: var(--dim); }
.stats dd { font-size: clamp(2.5rem, 5.2vw, 5rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.stats small { font-size: 0.34em; font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.stats-note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--faint); margin-top: 8px; }

/* ── 문짝 네 장 ── */
.doors { display: flex; height: min(76vh, 740px); min-height: 500px; margin: 0 calc(var(--pad) * -1); }
.door { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; transition: flex-grow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.door:hover, .door:focus-visible { flex-grow: 1.75; }
.door-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); transition: filter 0.4s, transform 0.9s; }
.door:hover .door-bg, .door:focus-visible .door-bg { filter: none; transform: scale(1.04); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.92) 86%); }
.door-tx { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(18px, 2.2vw, 36px); width: 100%; }
.door-ic { border-radius: 50%; margin-bottom: 8px; }
.door strong { font-size: clamp(1.625rem, 2.7vw, 2.75rem); font-weight: 900; line-height: 1.2; white-space: nowrap; }
.door strong::after { content: ""; display: block; width: 56px; height: 6px; background: var(--c); margin-top: 12px; }
.door-sub { font-size: 1rem; line-height: 1.6; margin-top: 8px; max-width: 20em; min-height: 3.2em; }
.door-cnt { font-size: 0.875rem; color: var(--dim); }
.door-go { margin-top: 14px; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 2px solid #fff; font-weight: 700; font-size: 0.9375rem; }
.door:hover .door-go, .door:focus-visible .door-go { background: #fff; color: #000; }

/* ── 영상 칸 ── */
.tile { position: relative; display: block; text-decoration: none; min-width: 0; }
.tile-img { position: relative; display: block; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 9; }
.tile.short .tile-img { aspect-ratio: 9 / 16; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tile:hover .tile-img img, .tile:focus-visible .tile-img img { transform: scale(1.05); }
.tile-len { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.82); padding: 1px 8px; font-size: 0.8125rem; font-weight: 700; }
.tile-ep { position: absolute; left: 0; top: 0; background: var(--c); color: #000; padding: 3px 12px; font-size: 1rem; font-weight: 900; }
.tile-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(0.8); transition: opacity 0.18s, transform 0.18s; z-index: 2; }
.tile-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #000; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: none; }
.tile-ch { font-size: 0.8125rem; font-weight: 700; color: var(--c); }
.tile-t { font-size: 1rem; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tile-m { font-size: 0.8125rem; color: var(--dim); }
.tile-cap { display: flex; flex-direction: column; gap: 3px; }

/* 벽: 틈 없이 깔고, 올리면 제목이 뜬다 */
.wall { display: grid; margin: 0 calc(var(--pad) * -1); }
.w-long { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-short { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.wall .tile-cap { position: absolute; inset: 0; z-index: 1; justify-content: flex-end; padding: 14px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.94)); opacity: 0; transition: opacity 0.2s; }
.wall .tile:hover .tile-cap, .wall .tile:focus-visible .tile-cap { opacity: 1; }
.wall .tile-play { top: 38%; }
.wall .tile-img::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--c); }
.w-short .tile-t { font-size: 0.9375rem; }
@media (hover: none) {
  .wall { gap: 2px; }
  .wall .tile-cap { position: static; opacity: 1; background: none; padding: 8px 10px 18px; }
  .wall .tile-play { display: none; }
}

/* 격자: 제목이 늘 보인다(찾는 곳) */
.grid { display: grid; gap: 32px 16px; }
.g-long { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-short { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid .tile-cap { padding-top: 10px; }
.lib .tile-ch { display: none; }
.grid + .grid { margin-top: 40px; }

/* ── 채널 장 ── */
.bill-bg { width: 100%; aspect-ratio: 2000 / 675; max-height: 56vh; object-fit: cover; }
.bill-tx { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 20px 28px; align-items: start; padding: 32px var(--pad) 0; }
.bill-ic { border-radius: 50%; }
.bill h1 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.bill h1::after { content: ""; display: block; width: 72px; height: 7px; background: var(--c); margin-top: 16px; }
.bill-lead { font-size: 1.0625rem; max-width: 44em; margin-top: 18px; }
.bill-note { font-size: 0.9375rem; color: var(--dim); margin-top: 8px; }
.bill-btn { display: flex; flex-direction: column; gap: 12px; }
.lib { scroll-margin-top: var(--head); }
.lib-bar { position: sticky; top: var(--head); z-index: 20; background: #000; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lib-bar .themes { flex: 1 1 100%; }
.lib-q, .lib-sort { min-height: 46px; background: var(--panel); border: 1.5px solid #5a5f66; border-radius: 999px; color: #fff; padding: 0 18px; font-size: 1rem; }
.lib-q { flex: 1 1 240px; max-width: 420px; margin-left: auto; }
.lib-q::placeholder { color: var(--faint); }
.lib .tabs button[aria-pressed="true"] { background: var(--c); border-color: var(--c); }
.lib-result { color: var(--dim); font-size: 0.9375rem; margin: 18px 0 20px; }
.lib-g { font-size: 1.5rem; font-weight: 900; margin: 44px 0 18px; }
.lib-g:first-child { margin-top: 0; }
.lib-g small { font-size: 0.9375rem; font-weight: 500; color: var(--dim); margin-left: 12px; }
.lib-empty { font-size: 1.0625rem; padding: 40px 0; }

/* ── 보는 창(영상 · 성 구역) ── */
.theater, .viewer { position: fixed; inset: 0; z-index: 100; background: #000; overflow-y: auto; overscroll-behavior: contain; }
.ov-bar { position: sticky; top: 0; z-index: 3; background: #000; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px var(--pad); border-bottom: 1px solid var(--line); }
.ov-ch { display: flex; align-items: center; gap: 12px; margin-right: auto; font-weight: 900; font-size: 1.125rem; text-decoration: none; }
.ov-ch img { width: 40px; height: 40px; border-radius: 50%; }
.ov-bar button { min-height: 46px; padding: 0 20px; border: 2px solid #5a5f66; background: none; color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ov-bar button:hover { border-color: #fff; }
.ov-bar .ov-close { border-color: #fff; background: #fff; color: #000; }
.th-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; padding: 24px var(--pad) 72px; align-items: start; }
.th-player { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 190px); background: #0d0f11; display: flex; justify-content: center; }
.th-player.is-short { aspect-ratio: auto; height: calc(100vh - 150px); min-height: 440px; max-height: none; }
.th-player iframe, .poster { height: 100%; aspect-ratio: 16 / 9; max-width: 100%; border: 0; }
.th-player.is-short iframe, .th-player.is-short .poster { aspect-ratio: 9 / 16; }
.poster { position: relative; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .tile-play { opacity: 1; transform: none; width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.poster .tile-play::after { left: 36px; top: 28px; border-width: 16px 0 16px 26px; }
.th-title { font-size: clamp(1.375rem, 2.1vw, 1.875rem); font-weight: 900; line-height: 1.4; margin-top: 22px; }
.th-meta { font-size: 0.9375rem; color: var(--dim); margin-top: 8px; }
.th-desc { margin-top: 16px; max-width: 46em; white-space: pre-line; color: #e6e8eb; }
.th-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.th-side section + section { margin-top: 36px; }
.th-side h3 { font-size: 1.1875rem; font-weight: 900; margin-bottom: 14px; }
.th-side h3::before { content: ""; display: inline-block; width: 6px; height: 1em; background: var(--c); margin-right: 10px; vertical-align: -0.12em; }
.side-shorts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.side-shorts .tile-cap { padding-top: 6px; }
.side-shorts .tile-t { font-size: 0.875rem; -webkit-line-clamp: 2; }
.side-shorts .tile-m, .th-side .tile-ch { display: none; }
.side-longs { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 12px; text-decoration: none; }
.row .tile-t { font-size: 0.9375rem; }
.row .tile-play { display: none; }
.row-tx { display: flex; flex-direction: column; gap: 4px; }

/* ── 성 장 ── */
.chero { position: relative; min-height: min(80vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.chero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 12%; }
.chero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 68%), linear-gradient(0deg, #000 0%, transparent 22%); }
.chero-tx { position: relative; z-index: 1; padding: 96px var(--pad) 40px; max-width: 820px; }
.chero-kicker { font-size: 0.9375rem; font-weight: 700; color: var(--dim); }
.chero h1 { font-size: clamp(3rem, 7.6vw, 7.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-top: 8px; white-space: nowrap; }
.chero-lead { font-size: 1.0625rem; max-width: 34em; margin-top: 22px; color: #e6e8eb; }
.chero-facts { display: flex; gap: 40px; margin-top: 28px; }
.chero-facts div { display: flex; align-items: baseline; gap: 6px; }
.chero-facts dd { font-size: 2.75rem; font-weight: 900; line-height: 1; }
.chero-facts dt { font-size: 0.9375rem; color: var(--dim); }
.cmap-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 52px; align-items: start; }
.tower { position: sticky; top: calc(var(--head) + 24px); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tower a { width: var(--w); min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; background: #1c1f23; border-top: 4px solid #6a7078; text-decoration: none; white-space: nowrap; }
.tower a b { font-weight: 900; }
.tower a span { font-size: 0.8125rem; color: var(--dim); }
.tower a:hover { background: #2c3036; }
.tower a[aria-current="true"] { background: #fff; color: #000; border-color: #fff; }
.tower a[aria-current="true"] span { color: #333; }
.tower a[aria-disabled="true"] { opacity: 0.3; pointer-events: none; }
.floor { scroll-margin-top: calc(var(--head) + 24px); }
.floor + .floor { margin-top: 56px; }
.floor h3 { font-size: 1.875rem; font-weight: 900; margin-bottom: 16px; display: flex; align-items: baseline; gap: 14px; }
.floor h3 small { font-size: 0.9375rem; font-weight: 500; color: var(--dim); }
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
.zone { display: block; text-decoration: none; min-width: 0; }
.zone-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.zone-img img, .zone-img video { width: 100%; height: 100%; object-fit: cover; }
.zone-img video { position: absolute; inset: 0; }
.zone:hover .zone-img, .zone:focus-visible .zone-img { outline: 3px solid #fff; outline-offset: -3px; }
.zone-tx { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.zone-face { font-size: 0.8125rem; font-weight: 700; color: var(--c-museum); }
.zone strong { font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.zone-cnt { font-size: 0.8125rem; color: var(--dim); }
.cmap-note { font-size: 0.875rem; color: var(--dim); max-width: 60em; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
.vw-name { font-size: 1.1875rem; font-weight: 900; margin-right: auto; line-height: 1.4; }
.vw-pos { font-size: 0.9375rem; color: var(--dim); white-space: nowrap; }
.vw-body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; padding: 20px var(--pad) 56px; align-items: start; }
.vw-stage { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 130px); background: #0d0f11; display: flex; align-items: center; justify-content: center; }
.vw-stage img, .vw-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.vw-arrow { position: absolute; top: 50%; width: 60px; height: 84px; margin-top: -42px; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 2rem; font-weight: 900; line-height: 1; cursor: pointer; }
.vw-arrow:hover { background: #fff; color: #000; }
.vw-arrow.prev { left: 0; }
.vw-arrow.next { right: 0; }
.vw-cap { position: absolute; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.82); padding: 8px 16px; font-size: 0.9375rem; font-weight: 700; }
.vw-kinds { margin-top: 12px; }
.vw-kinds button { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.vw-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.vw-thumbs button { padding: 0; border: 0; background: var(--panel); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; opacity: 0.55; }
.vw-thumbs button:hover { opacity: 1; }
.vw-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vw-thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid #fff; outline-offset: -3px; }

/* ── 첫 화면의 성 띠 · 만드는 법 ── */
.castle-band { position: relative; margin-top: clamp(72px, 12vh, 150px); min-height: 80vh; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: 5vw; padding: 14vh var(--pad) 9vh; overflow: hidden; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.castle-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 46%, rgba(0, 0, 0, 0.3) 100%), linear-gradient(0deg, #000 0%, transparent 22%, transparent 80%, #000 100%); }
.band-tx, .band-mosaic { position: relative; z-index: 1; }
.band-tx h2 { font-size: clamp(2.125rem, 4.8vw, 4.5rem); font-weight: 900; line-height: 1.18; letter-spacing: -0.02em; }
.band-tx p { max-width: 33em; margin-top: 22px; }
.band-tx p + p { margin-top: 28px; }
.band-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.band-mosaic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 0.2s; }
.band-mosaic a:hover img { opacity: 0.75; }
.make-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.make-cols h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.make-cols p { color: #dcdfe3; }

/* ── 考察ノート: 게시판 목록 ── */
.board-h { font-size: clamp(2.75rem, 6.6vw, 6.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
.board-lead { font-size: 1.0625rem; max-width: 34em; margin: 20px 0 32px; color: #e6e8eb; }
.board .tabs { margin-bottom: 28px; }
.board .tabs button[class^="c-"][aria-pressed="true"] { background: var(--c); border-color: var(--c); }
.board-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid #fff; }
.board-list li { border-bottom: 1px solid var(--line); }
.board-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr) 232px; gap: 8px 28px; align-items: center; padding: 22px 0; text-decoration: none; }
.b-no { font-size: 2rem; font-weight: 900; line-height: 1; color: var(--faint); font-variant-numeric: tabular-nums; }
.b-tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.b-meta { font-size: 0.875rem; color: var(--dim); }
.b-meta b { color: var(--c); font-weight: 700; margin-right: 14px; }
.b-tx strong { font-size: clamp(1.1875rem, 1.9vw, 1.625rem); font-weight: 900; line-height: 1.45; }
.b-sum { font-size: 0.9375rem; color: #d3d6da; max-width: 46em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.b-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); border-top: 4px solid var(--c); }
.board-list a:hover strong, .board-list a:focus-visible strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--c); }
.board-list a:hover .b-no, .board-list a:focus-visible .b-no { color: #fff; }
.notes + .lib { padding-top: clamp(56px, 8vh, 96px); }

/* ── 考察ノート: 글 한 편 ── */
.post-head { padding: clamp(36px, 7vh, 84px) var(--pad) 0; }
.post-ch { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; font-weight: 700; }
.post-ch a { text-underline-offset: 4px; }
.post-ch a + a { color: var(--c); }
.post h1 { font-size: clamp(2rem, 4.5vw, 4.25rem); font-weight: 900; line-height: 1.25; letter-spacing: -0.015em; max-width: 19em; margin-top: 14px; }
.post h1::after { content: ""; display: block; width: 72px; height: 7px; background: var(--c); margin-top: 22px; }
.post-sum { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 34em; margin-top: 22px; color: #e6e8eb; }
.post-meta { font-size: 0.875rem; color: var(--dim); margin-top: 12px; }
.post-fig { margin-top: 40px; }
.post-fig img { width: 100%; max-height: 64vh; object-fit: cover; }
.post-fig figcaption { font-size: 0.8125rem; color: var(--dim); padding: 8px var(--pad) 0; }
.post-grid { display: grid; grid-template-columns: minmax(0, 40em) minmax(320px, 440px); justify-content: start; gap: clamp(48px, 7vw, 132px); align-items: start; padding: 48px var(--pad) 0; font-size: 1.125rem; }
.post-body { line-height: 2.05; }
.post-side { font-size: 1.0625rem; }
.post-body h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 900; line-height: 1.45; margin: 2.3em 0 0.7em; }
.post-body p + p { margin-top: 1.25em; }
.post-body ul { display: grid; gap: 0.9em; margin: 1.3em 0; padding-left: 22px; border-left: 5px solid var(--c); line-height: 1.85; }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 5px solid #5a5f66; color: #d3d6da; }
.post-body a { color: var(--c); text-underline-offset: 4px; }
.post-side { position: sticky; top: calc(var(--head) + 24px); }
.side-big .tile-cap { padding-top: 10px; }
.side-big .tile + .tile { margin-top: 20px; }
.post-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; padding: 72px var(--pad) 0; }
.post-to { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; background: var(--panel); border-left: 5px solid var(--c); text-decoration: none; }
.post-to span { font-size: 0.8125rem; color: var(--dim); }
.post-to strong { font-weight: 700; line-height: 1.5; }
.post-to:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* ── 발 ── */
.foot { margin-top: clamp(96px, 16vh, 180px); padding: 56px var(--pad) 36px; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-logo { font-size: clamp(1.875rem, 4.4vw, 4rem); font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; }
.foot-cols { display: flex; gap: 72px; }
.foot-cols h2 { font-size: 0.875rem; font-weight: 500; color: var(--dim); margin-bottom: 8px; }
.foot-cols a { font-weight: 700; text-decoration: none; line-height: 2.1; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-note { font-size: 0.875rem; color: var(--dim); max-width: 60em; margin-top: 44px; }
.foot-copy { font-size: 0.8125rem; color: var(--faint); margin-top: 14px; }
.foot-visits { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 10px; font-size: 0.875rem; color: var(--dim); }
.foot-visits b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── 좁은 화면 ── */
@media (max-width: 1340px) {
  .nl { display: none; }
  .ns { display: inline; }
}
@media (max-width: 1180px) {
  .post-grid { grid-template-columns: minmax(0, 40em); gap: 48px; }
  .post-side { position: static; }
  .post-side .side-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .side-big .tile + .tile { margin-top: 0; }
  .th-body, .vw-body { grid-template-columns: minmax(0, 1fr); }
  .th-player.is-short { height: 72vh; }
  .vw-stage { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .vw-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .side-shorts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .side-longs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-long { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w-short { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-long { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-short { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cmap-grid { grid-template-columns: 196px minmax(0, 1fr); gap: 32px; }
  .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --head: 108px; }
  .head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo hs" "nav nav"; gap: 6px 16px; padding-top: 10px; }
  .logo { grid-area: logo; }
  .hs { grid-area: hs; justify-self: end; width: 100%; max-width: 340px; min-width: 0; }
  .nav { grid-area: nav; margin: 0; gap: 0; justify-content: space-between; }
  .nav a { padding: 8px 0 9px; font-size: 0.9375rem; }
  .hs-pop { position: fixed; left: 10px; right: 10px; top: var(--head); width: auto; max-height: calc(100vh - var(--head) - 10px); padding: 14px; }
  .lib-bar { position: static; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .board-list a { grid-template-columns: minmax(0, 1fr) 132px; gap: 8px 16px; padding: 18px 0; }
  .b-no { display: none; }
  .b-sum { -webkit-line-clamp: 3; }
  .pick button { min-height: 60px; padding: 8px 20px 8px 10px; gap: 10px; }
  .pick img { width: 40px; height: 40px; }
  .pick-n { font-size: 1.0625rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 36px 0 0; }
  .hero-tx { padding: 0 var(--pad) 32px; }
  .hero h1 { font-size: clamp(2.75rem, 13.5vw, 5rem); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 32px var(--pad) 0; }
  .stats-note { padding: 0 var(--pad); }
  .doors { flex-direction: column; height: auto; min-height: 0; }
  .door { flex: none; height: auto; min-height: 250px; }
  .door::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.88) 62%); }
  .door-ic { display: none; }
  .door-tx { padding-top: 84px; }
  .door:hover, .door:focus-visible { flex-grow: 0; }
  .door-bg { filter: brightness(0.82); object-position: 50% 30%; }
  .door-sub { min-height: 0; }
  .w-long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-short { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-long { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .g-short { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 10px; }
  .bill-tx { grid-template-columns: 64px minmax(0, 1fr); padding-top: 22px; }
  .bill-ic { width: 64px; height: 64px; }
  .bill-btn { grid-column: 1 / -1; }
  .lib-q { max-width: none; margin-left: 0; }
  .lib-bar .themes { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .castle-band, .make-cols { grid-template-columns: minmax(0, 1fr); }
  .castle-band { min-height: 0; padding: 72px var(--pad) 56px; gap: 32px; }
  .chero { min-height: 560px; }
  .chero::after { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.8) 55%, rgba(0, 0, 0, 0.25) 100%); }
  .chero h1 { font-size: clamp(2.75rem, 13vw, 5rem); }
  .chero-facts { gap: 22px; }
  .chero-facts dd { font-size: 2rem; }
  .cmap-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tower { top: var(--head); z-index: 10; background: #000; flex-direction: row; align-items: stretch; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad); }
  .tower a { width: auto; flex: none; }
  .floor { scroll-margin-top: calc(var(--head) + 76px); }
  .ov-bar { flex-wrap: wrap; }
  .vw-name { flex: 1 1 100%; }
  .vw-pos { margin-right: auto; }
  .side-shorts, .vw-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-longs { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { gap: 40px; }
}
@media (max-width: 520px) {
  .logo { font-size: 1.0625rem; }
  .pl { display: none; }
  .ps { display: inline; }
  .pick { gap: 8px; }
  .pick button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; padding: 10px 6px; border-radius: 14px; text-align: center; }
  .pick-n { font-size: 0.9375rem; }
  .pick-c { font-size: 0.8125rem; }
  .board-list a { grid-template-columns: minmax(0, 1fr) 104px; }
  .b-sum { display: none; }
  .post-side .side-big { grid-template-columns: minmax(0, 1fr); }
  .zones { grid-template-columns: minmax(0, 1fr); }
  .w-short { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row { grid-template-columns: 136px minmax(0, 1fr); }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .door:hover, .door:focus-visible { flex-grow: 1; }
}

/* ── 2026-11-26 구독 띠 · 재생 창의 목차/설명/자료 · 새 영상/본 영상 표시 ── */
.btn-sub { background: #e0102f; border-color: #e0102f; color: #fff; }
.btn-sub:hover { background: #fff; border-color: #fff; color: #000; }

.sub-lead { max-width: 44em; color: #d5d8dc; margin: -10px 0 30px; }
.sub-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #fff; }
.has-first .sub-list { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
.sub-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 22px 18px; padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.sub-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.sub-list img { border-radius: 50%; }
.sub-tx { display: flex; flex-direction: column; gap: 6px; }
.sub-tx strong { font-size: 1.375rem; font-weight: 900; line-height: 1.3; }
.sub-tx strong::after { content: ""; display: block; width: 40px; height: 4px; background: var(--c); margin: 8px 0 4px; }
.has-first .sub-list li:first-child strong { font-size: clamp(1.5rem, 2.4vw, 2.125rem); }
.sub-tx span { font-size: 0.9375rem; color: #d5d8dc; }
.sub-tx .sub-note { font-size: 0.875rem; color: var(--dim); }
.sub-list .btn { grid-column: 1 / -1; white-space: normal; text-align: center; }

/* 공개 예정 줄(대표님 11-26 「공개예정 영상썸네일정도로」) — 쇼츠는 세로, 본편은 가로 그대로 같은 높이로 옆으로 늘어선다 */
.up-lead { max-width: 34em; color: #d5d8dc; }
.up-row { --h: 300px; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 18px; scrollbar-color: #5a6068 transparent; }
.up { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; color: #fff; text-decoration: none; }
.up-short { width: calc(var(--h) * 9 / 16); }
.up-long { width: calc(var(--h) * 16 / 9); }
.up-img { position: relative; display: block; height: var(--h); overflow: hidden; background: var(--panel); }
.up-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.up:hover .up-img img { transform: scale(1.03); }
.up-when { margin-top: 6px; font-size: 1.0625rem; font-weight: 900; color: var(--c); }
.up-t { font-size: 0.9375rem; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.up-go { margin-top: auto; padding-top: 4px; font-size: 0.875rem; font-weight: 700; color: #ff5a6e; }
.up:hover .up-go { text-decoration: underline; text-underline-offset: 3px; }
.up.is-open .up-go { color: #fff; }

/* 채널 고르는 단추의 맨 앞 «NEW» — 세 채널을 섞은 최신 순 */
.c-new { --c: #fff; }
.pick-new { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: #e0102f; color: #fff; font-size: 0.8125rem; font-weight: 900; }

.tile-new { position: absolute; right: 8px; top: 10px; z-index: 2; background: #fff; color: #000; padding: 1px 10px; font-size: 0.8125rem; font-weight: 900; }
.is-seen .tile-img img { opacity: 0.42; }
.is-seen .tile-img::before { content: "視聴済み"; position: absolute; left: 8px; bottom: 8px; z-index: 2; background: rgba(0, 0, 0, 0.82); padding: 1px 8px; font-size: 0.8125rem; font-weight: 700; }

.th-links { margin-top: 18px; }
.th-info { max-width: 46em; margin-top: 30px; }
.th-info h3 { font-size: 1.1875rem; font-weight: 900; margin-bottom: 12px; }
.th-info h3::before { content: ""; display: inline-block; width: 6px; height: 1em; background: var(--c); margin-right: 10px; vertical-align: -0.12em; }
.th-info h4 { font-size: 1rem; font-weight: 900; margin-top: 22px; }
.th-info p { margin-top: 12px; }
.th-info ul { margin: 10px 0 0 1.25em; }
.th-info li { margin-top: 6px; }
.th-toc ol { list-style: none; border-top: 1px solid var(--line); }
.th-toc button { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 12px; align-items: baseline; width: 100%; min-height: 48px; padding: 10px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.th-toc button span { font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.th-toc button:hover, .th-toc button:focus-visible { background: var(--panel); }
.th-info .th-desc { margin-top: 28px; white-space: normal; }
.th-info .th-desc > p:first-child { margin-top: 0; }
.th-info details { margin-top: 18px; }
.th-info summary { display: flex; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.th-info summary:hover { color: var(--c); }
.th-extra { margin-top: 36px; padding: 24px 26px 28px; background: var(--panel); border-left: 6px solid var(--c); }
.th-extra p:first-of-type { margin-top: 0; }
.th-src { margin-top: 28px; }
.th-src li { font-size: 0.9375rem; color: #d5d8dc; overflow-wrap: anywhere; }
.th-src a { color: #fff; }

@media (max-width: 960px) {
  .sub-list, .has-first .sub-list { grid-template-columns: minmax(0, 1fr); }
  .sub-list li, .sub-list li + li { padding: 26px 0 28px; border-left: 0; }
}
@media (max-width: 860px) {
  .up-row { --h: 220px; gap: 12px; }
  .up-when { font-size: 0.9375rem; }
  .up-t { font-size: 0.8125rem; }
  .pick-new { width: 40px; height: 40px; font-size: 0.75rem; }
  .th-extra { padding: 20px 18px 22px; }
}
