/* 종묘관 시제품 v1: 1안 시안 완성본(시안_첫화면, 10/23)의 입구·레코드 벽장·음반 창 + 곡 쪽·재생 막대·연결 영상 */
:root {
  --stage: #121110; --ink: #ECE6D8; --dim: rgba(236,230,216,.62); --faint: rgba(236,230,216,.16);
  --red: #C3150E;
  --ko: 'Pretendard Variable', Pretendard, sans-serif;
  --en: 'EB Garamond', serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--stage); color: var(--ink); font-family: var(--ko); }
body { overflow: hidden; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* 위 막대: 인장 + 관 이름, 로비로 */
.bar { position: fixed; z-index: 50; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px;
  padding: 22px clamp(16px, 4vw, 48px); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar img { width: 26px; height: 26px; }
.bar .nm { font-weight: 400; font-size: 15px; letter-spacing: .14em; }
.bar .kind { font-weight: 300; font-size: 13px; color: var(--dim); letter-spacing: .08em; }
.bar .lobby { margin-left: auto; font-size: 13px; color: var(--dim); letter-spacing: .08em; padding: 8px 0; }
.bar .lobby:hover { color: var(--ink); }
.tag { position: fixed; z-index: 50; right: clamp(16px, 4vw, 48px); bottom: 14px; font-size: 11px; color: rgba(236,230,216,.35); letter-spacing: .06em; }

/* 장면 전환 */
.scene { position: fixed; inset: 0; transition: opacity .9s ease; }
.scene.off { opacity: 0; pointer-events: none; }

/* 음반 글(음반 창) */
.info__no { font-family: var(--en); font-size: 15px; letter-spacing: .12em; color: var(--dim); }
.info__t { font-weight: 200; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; margin: 10px 0 4px; letter-spacing: -.01em; }
.info__en { font-family: var(--en); font-style: italic; font-size: 19px; color: var(--dim); }
.info__line { font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--dim); margin: 18px 0 0; }
.info__meta { font-size: 13px; letter-spacing: .04em; color: var(--dim); margin-top: 14px; }
.info__btn { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid rgba(236,230,216,.5); font-size: 14px; letter-spacing: .06em; }
.info__btn:hover { background: var(--ink); color: var(--stage); }

/* 곡 목록(부록) 줄 */
.songs { flex: 1; overflow: auto; padding: 30px clamp(16px, 4vw, 48px) 80px; display: none; touch-action: pan-y; }
.songs h3 { font-weight: 300; font-size: 13px; letter-spacing: .14em; color: var(--dim); margin: 26px 0 8px; }
.songs ol { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.songs li { display: grid; grid-template-columns: 44px 1fr minmax(120px, 230px) 64px; gap: 14px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--faint); font-size: 15px; }
.songs li .n { font-family: var(--en); color: var(--dim); }
.songs li .t { font-weight: 300; }
.songs li .t small { display: block; margin-top: 3px; color: var(--dim); font-size: 12px; }
.songs li .a { color: var(--dim); font-size: 13px; }
.songs li .m { font-size: 12px; color: var(--dim); text-align: right; letter-spacing: .04em; }
@media (max-width: 760px) {
  .tag { bottom: auto; top: 60px; }
  .songs li { grid-template-columns: 34px 1fr 56px; }
  .songs li .a { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── 레코드 벽장(1안): 짙은 나무 선반에 음반이 앞을 보고 기대어 섬 ── */
.wallwrap { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; padding: 92px clamp(16px, 4vw, 48px) 90px; }
.wall__head { max-width: 1180px; margin: 0 auto 46px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.wall__t { font-weight: 200; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.01em; }
.wall__n { font-size: 13px; color: var(--dim); letter-spacing: .06em; }
.wall__songs { margin-left: auto; font-size: 13px; color: var(--dim); letter-spacing: .06em; padding: 6px 0; border-bottom: 1px solid var(--faint); }
.wall__songs:hover { color: var(--ink); border-color: var(--dim); }
.cab { max-width: 1180px; margin: 0 auto; }
.shelf2 { --s: clamp(140px, 13.5vw, 210px); --g: clamp(26px, 3vw, 50px); margin-bottom: 70px; position: relative; }
/* 옆에 더 있음 표시: 직지관 서가와 같음(jikji.css .shelf__hint·.shelf__go 값 그대로). 선반 줄이 화면을 넘칠 때만, 맨 끝까지 넘기면 사라짐 */
.shelf__hint { position: absolute; z-index: 1; top: 0; bottom: 0; width: 64px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.shelf__hint--prev { left: 0; background: linear-gradient(90deg, rgba(14, 10, 7, .88), rgba(14, 10, 7, 0)); }
.shelf__hint--next { right: 0; background: linear-gradient(270deg, rgba(14, 10, 7, .88), rgba(14, 10, 7, 0)); }
.shelf2.is-more-l .shelf__hint--prev, .shelf2.is-more-r .shelf__hint--next { opacity: 1; visibility: visible; }
.shelf__go { position: absolute; top: calc(34px + var(--s) / 2 - 22px); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(239, 235, 228, .22); background: rgba(18, 17, 15, .62); color: #EFEBE4; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.shelf__hint--prev .shelf__go { left: 8px; }
.shelf__hint--next .shelf__go { right: 8px; }
.shelf__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shelf__go:active { background: rgba(18, 17, 15, .85); }
@media (prefers-reduced-motion: reduce) { .shelf__hint { transition: none; } }
.shelf2__scroll { overflow: visible; }
.shelf2__unit { position: relative; }
.shelf2__row { position: relative; display: flex; align-items: flex-end; gap: var(--g); padding: 34px calc(var(--g) * .6) 0; }
.shelf2__row::before { /* 선반 위에서 비추는 조명 */
  content: ''; position: absolute; left: -3%; right: -3%; top: -30px; height: calc(100% + 30px);
  background: radial-gradient(60% 70% at 50% 0%, rgba(255,238,210,.075), rgba(255,238,210,0) 72%); pointer-events: none; }
.ledge { position: relative; height: 16px; background-color: #2A2018; border-radius: 1px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='16'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.006 .9' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .42  0 0 0 0 .30  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>");
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -2px 0 rgba(0,0,0,.35), 0 16px 26px rgba(0,0,0,.6); }
.ledge__lbl { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 10px; letter-spacing: .3em; color: rgba(236,230,216,.6); white-space: nowrap; }
.caps { display: flex; gap: var(--g); padding: 14px calc(var(--g) * .6) 0; }
.cap { width: var(--s); flex: none; font-size: 13px; line-height: 1.45; }
.cap b { display: block; font-weight: 400; }
.cap span { color: var(--dim); font-size: 12px; }
.rec2 { position: relative; width: var(--s); height: var(--s); flex: none; cursor: pointer; transform-origin: 50% 100%;
  transform: perspective(1000px) rotateX(3deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rec2 img { position: relative; display: block; width: 100%; height: 100%;   /* 오른쪽·아래로 보이는 두꺼운 종이 옆면 + 그림자 */
  box-shadow: 1px 1px 0 #3a332b, 2px 2px 0 #2c2620, 3px 3px 0 #1f1b17, 0 18px 26px rgba(0,0,0,.55), 0 2px 3px rgba(0,0,0,.6); }

/* 재킷 위에 덧씌우는 결: 비닐 덮개 반사광(마우스 따라), 안에 든 판 자국, 위에서 오는 빛, 종이 결, 닳은 모서리 */
.jk { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255,255,255,0) calc(var(--mx, 30%) - 22%), rgba(255,255,255,.09) var(--mx, 30%), rgba(255,255,255,0) calc(var(--mx, 30%) + 22%)),
    radial-gradient(circle closest-side, rgba(255,255,255,0) 93%, rgba(255,255,255,.045) 95% 97%, rgba(255,255,255,0) 99%),
    radial-gradient(circle closest-side, rgba(255,255,255,0) 31%, rgba(255,255,255,.022) 32.5% 34%, rgba(255,255,255,0) 35.5%),
    linear-gradient(180deg, rgba(255,240,215,.07), rgba(255,240,215,0) 40%, rgba(0,0,0,.16)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .96  0 0 0 0 .9  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 0 0 2px rgba(0,0,0,.25), inset 0 0 22px rgba(0,0,0,.32); }
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
.rec2 .jk { transition: --mx .5s cubic-bezier(.2,.7,.2,1); }   /* 반사광이 마우스를 조금 늦게 따라옴 */

/* 판: 골과 빛 반사는 vinyl()이 곡 수에 맞춰 그림. 평소에는 재킷 안에 숨어 있고, 마우스를 올리면 살짝 나옴 */
@property --la { syntax: '<angle>'; inherits: true; initial-value: 40deg; }   /* 판에 비친 조명의 각도(빠져나온 오른쪽에 반사가 오게) */
.disc2 { position: absolute; inset: 1.5%; border-radius: 50%; transform: translateX(0); transition: transform .6s cubic-bezier(.2,.7,.2,1), --la 1.2s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 12px 28px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.18); container-type: inline-size; }
.disc2::after { /* 레이블: 음반 색을 띤 종이, 가운데 구멍 */
  content: ''; position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; transform: translate(-50%, -50%); border-radius: 50%;
  background:
    radial-gradient(circle, #0c0c0c 0 4.5%, rgba(0,0,0,.4) 4.5% 6.5%, transparent 6.5%),
    radial-gradient(circle closest-side, transparent 0 84%, rgba(0,0,0,.22) 84% 86%, transparent 86%),
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%),
    color-mix(in srgb, var(--lab, #222) 62%, #CFC6B4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 2px rgba(0,0,0,.45); }
.disc2::before { /* 레이블 글자: 박물관 이름과 음반 번호(아주 작게) */
  content: '한국탈중앙박물관 · 종묘관\A' attr(data-no); white-space: pre; position: absolute; left: 50%; top: 58%; z-index: 1; transform: translateX(-50%);
  font-size: 1.9cqw; line-height: 1.5; letter-spacing: .08em; text-align: center; color: rgba(20,18,16,.72); }
.rec2:hover .disc2, .rec2:focus-visible .disc2 { transform: translateX(16%); }
.rec2:focus-visible { outline: 1px solid rgba(236,230,216,.7); outline-offset: 6px; }

/* 음반 쪽: 벽장 위로 덮는 창 */
.alb2 { position: fixed; inset: 0; z-index: 70; display: none; }
.alb2.on { display: block; }
.alb2__bg { position: absolute; inset: 0; background: rgba(12,11,10,.985); opacity: 0; transition: opacity .5s; }
.alb2.show .alb2__bg { opacity: 1; }
/* 닫기: 지름 52px 동그란 단추 + 아래 '닫기'(음반 창, 곡 목록 같은 모양) */
.xbtn { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px; color: var(--ink); }
.xbtn__o { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(236,230,216,.8); background: rgba(18,17,16,.72); transition: background .25s, border-color .25s; }
.xbtn__o svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; transition: stroke .25s; }
.xbtn__t { font-size: 12px; letter-spacing: .14em; }
.xbtn:hover .xbtn__o, .xbtn:focus-visible .xbtn__o { background: var(--ink); border-color: var(--ink); }
.xbtn:hover svg, .xbtn:focus-visible svg { stroke: var(--stage); }
.xbtn:focus-visible { outline: none; }
/* 뒤로: 직지관·반구대관 상세 쪽의 '← 직지관'과 같은 모양(10/23 관장님 '디자인 통일'). 음반 창·곡 쪽·곡 목록의 왼쪽 위 */
.jback { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 13px; letter-spacing: .08em;
  color: var(--dim); cursor: pointer; transition: color .25s; }
.jback:hover, .jback:focus-visible { color: var(--ink); outline: none; }
.alb2__x { position: absolute; z-index: 3; left: clamp(16px, 4vw, 48px); top: 20px; opacity: 0; transition: opacity .4s .2s; }
.alb2.show .alb2__x { opacity: 1; }
.alb2__box { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; display: grid; /* 휴대폰에서 빠져나온 판(기운 네모 틀)이 옆으로 밀리지 않게 */ grid-template-columns: auto minmax(280px, 440px); gap: max(clamp(36px, 5vw, 80px), calc(min(56vh, 38vw) * .44));
  align-items: center; justify-content: center; padding: 112px clamp(16px, 4vw, 48px) 60px; touch-action: pan-y; }
.alb2__cv { position: relative; width: min(56vh, 38vw); aspect-ratio: 1; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.alb2__cv img { position: relative; display: block; width: 100%; height: 100%;
  box-shadow: 1px 1px 0 #3a332b, 2px 2px 0 #2c2620, 3px 3px 0 #241f1a, 4px 4px 0 #1b1814, 0 40px 80px rgba(0,0,0,.6); }
.alb2__cv.out .disc2 { transform: translateX(38%); transition: transform 1.1s cubic-bezier(.2,.7,.2,1), --la 1.2s cubic-bezier(.2,.7,.2,1); }   /* 창이 열리면 판이 3분의 1쯤 빠져나와 멈춤 */
.alb2__txt { position: relative; z-index: 2; opacity: 0; transform: translateY(12px); transition: opacity .5s .3s, transform .5s .3s; max-height: calc(100vh - 172px); overflow-y: auto; }
.alb2.show .alb2__txt { opacity: 1; transform: none; }
.alb2__txt .info__line { margin-top: 14px; }
.tracks { list-style: none; margin: 30px 0 0; padding: 0; }
.tracks li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--faint); font-size: 14px; }
.tracks li .n { font-family: var(--en); color: var(--dim); }
.tracks li .t { font-weight: 300; }
.tracks li .t small { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
.tr__play { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid rgba(236,230,216,.42);
  font-size: 13px; letter-spacing: .06em; transition: background .2s, color .2s, border-color .2s; }
.tr__play span { font-size: 9px; }
.tr__play:hover, .tr__play:focus-visible { background: var(--ink); color: var(--stage); border-color: var(--ink); outline: none; }
/* 듣기 앞 출처 꼬리표: 소장(박물관 음원) / 유튜브(연결 영상) */
.tr__act { display: inline-flex; align-items: center; gap: 10px; }
.src { font-size: 11px; letter-spacing: .06em; color: var(--dim); white-space: nowrap; }
.songs li .m .src::after { content: ' · '; }
.tr__soon { display: inline-flex; align-items: center; min-height: 38px; padding: 0 2px; font-size: 12px; letter-spacing: .06em; color: rgba(236,230,216,.45); white-space: nowrap; }
.liner p, .desc p { margin: 14px 0 0; font-weight: 300; font-size: 15px; line-height: 1.85; color: var(--ink); }
.liner { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--faint); }
.liner__h { margin: 0; font-weight: 400; font-size: 12px; letter-spacing: .18em; color: var(--dim); }
.sp__lead { margin: 20px 0 0; max-width: 34em; font-weight: 300; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--ink); }
.tracks li.hl { background: rgba(236,230,216,.06); }

/* 곡 목록(부록): 오른쪽에서 밀려 나오는 창 */
.sheet { position: fixed; inset: 0; z-index: 80; display: none; }
.sheet.on { display: block; }
.sheet__bg { position: absolute; inset: 0; background: rgba(12,11,10,.6); opacity: 0; transition: opacity .45s; }
.sheet.show .sheet__bg { opacity: 1; }
.sheet__box { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100vw); background: #171614; border-left: 1px solid var(--faint);
  overflow-y: auto; padding: 26px clamp(16px, 3vw, 32px) 60px; transform: translateX(100%); transition: transform .5s cubic-bezier(.2,.7,.2,1); touch-action: pan-y; }
.sheet.show .sheet__box { transform: none; }
.sheet__head { display: flex; align-items: center; gap: 12px; }
.sheet__t { font-weight: 300; font-size: 22px; }
.sheet__n { font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.sheet__x { margin: -10px 0 8px; }
.sheet__note { font-size: 13px; color: var(--dim); margin: 10px 0 0; }
.sheet .songs { display: block; padding: 0; overflow: visible; }
.sheet .songs li { cursor: pointer; grid-template-columns: 34px 1fr minmax(90px, 150px) 40px; }
.sheet .songs li:hover, .sheet .songs li:focus-visible { background: rgba(236,230,216,.05); outline: none; }

@media (max-width: 760px) {
  .alb2__box { grid-template-columns: 1fr; align-items: start; justify-items: start; padding-top: 104px; gap: 26px; }
  .alb2__cv { width: min(64vw, 46vh); }   /* 빠져나온 판까지 화면 안에 들어오게 표지를 조금 줄임 */
  .alb2__txt { max-height: none; overflow: visible; }
}
@media (max-width: 600px) {
  .shelf2 { --s: 38vw; --g: 16px; margin-bottom: 40px; }   /* 두 장 반쯤: 다음 음반 가장자리가 보이게 */
  .shelf__hint--prev { left: calc(-1 * clamp(16px, 4vw, 48px)); }   /* 선반 줄은 화면 끝까지 닿으므로 그늘도 화면 끝에 */
  .shelf__hint--next { right: calc(-1 * clamp(16px, 4vw, 48px)); }
  .shelf2__scroll { overflow-x: auto; overflow-y: visible; margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); padding: 0 16px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; touch-action: pan-x pan-y; scrollbar-width: none; }
  .shelf2__scroll::-webkit-scrollbar { display: none; }
  .shelf2__unit { width: max-content; min-width: 100%; }
  .rec2 { scroll-snap-align: start; }
  .sheet .songs li { grid-template-columns: 30px 1fr 40px; }
}

/* 음반 창·곡 목록이 열리면 위 막대와 시안 표시는 잠시 숨김(창 위로 비치지 않게) */
.bar, .tag { transition: opacity .4s, visibility 0s; }
body.modal .bar, body.modal .tag { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility 0s linear .4s; }
body.modal .bar > * { pointer-events: none; }   /* 막대 안 '로비로'(.bar > *는 눌리게 해 둠)가 숨은 채로 창 위에서 눌려 로비로 나가던 것 막음(10/23) */


/* 이어 듣기(이 기기에 남은 기록이 있을 때만, 벽장 머리 아래 한 줄) */
.resume[hidden] { display: none; }
.resume { flex-basis: 100%; margin: 4px 0 0; }
.resume__btn { display: inline-grid; gap: 3px; max-width: 100%; padding: 8px 16px; border: 1px solid rgba(236,230,216,.5); text-align: left; color: var(--ink); }
.resume__t { font-size: 13px; letter-spacing: .04em; }
.resume__t svg { width: 9px; height: 9px; margin-right: 8px; fill: currentColor; }
.resume__t b { font-weight: 400; }
.resume__btn small { font-size: 11px; color: var(--dim); }
.resume__btn:hover, .resume__btn:focus-visible { background: var(--ink); color: var(--stage); outline: none; }
.resume__btn:hover small, .resume__btn:focus-visible small { color: rgba(18,17,16,.6); }
@media (max-height: 520px) {   /* 낮은 가로 화면: 첫 화면에 음반이 보이도록 머리 여백을 줄임 */
  .wallwrap { padding-top: 82px; }
  .wall__head { margin-bottom: 22px; }
  .resume__btn { padding: 5px 12px; }
}

/* ── 시제품 v1: 듣기 ── */
/* 트랙 줄: 곡 이름을 누르면 곡 쪽, 듣기 단추는 바로 재생. 준비 중인 곡은 단추를 흐리게 */
.tracks li .t { text-align: left; color: inherit; padding: 4px 0; }
.tracks li button.t:hover b, .tracks li button.t:focus-visible b { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dim); }
.tracks li .t b { font-weight: 300; }
.tr__play[disabled] { opacity: .38; cursor: default; }
.tr__play[disabled]:hover { background: none; color: inherit; border-color: rgba(236,230,216,.42); }
.on-air { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; box-shadow: 0 0 0 3px rgba(195,21,14,.18); }
.info__btn[disabled] { opacity: .38; cursor: default; }
.info__btn[disabled]:hover { background: none; color: inherit; }
.tracks li.air .t b::before, .sheet .songs li.air .t::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--red); vertical-align: middle; }
.alb2__note { margin: 10px 0 0; font-size: 12px; color: rgba(236,230,216,.45); }

/* 자리 표시(근거표를 확인받은 뒤 채울 글) */
.ph { margin: 14px 0 0; padding: 14px 16px; border: 1px dashed rgba(236,230,216,.22); font-size: 13px; line-height: 1.6; color: rgba(236,230,216,.5); }

/* 곡 쪽(기획안 2장 C): 음반 창 위로 오른쪽에서 밀려 들어오는 쪽 */
.songpg { position: fixed; inset: 0; z-index: 78; display: none; }
.songpg.on { display: block; }
.songpg__bg { position: absolute; inset: 0; background: var(--stage); opacity: 0; transition: opacity .4s; }
.songpg.show .songpg__bg { opacity: 1; }
.songpg__x { position: absolute; z-index: 3; left: clamp(16px, 4vw, 48px); top: 20px; }
.songpg__box { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; touch-action: pan-y; padding: 112px clamp(16px, 4vw, 48px) 140px;
  opacity: 0; transform: translateX(40px); transition: opacity .45s, transform .55s cubic-bezier(.2,.7,.2,1); }
.songpg.show .songpg__box { opacity: 1; transform: none; }
.sp { max-width: 860px; margin: 0 auto; }
.sp__alb { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .08em; color: var(--dim); padding: 4px 0; }
.sp__alb img { width: 44px; height: 44px; box-shadow: 1px 1px 0 #3a332b, 2px 2px 0 #241f1a; }
.sp__alb:hover span { color: var(--ink); }
.sp__comp { margin: 34px 0 0; font-size: 14px; letter-spacing: .04em; color: var(--dim); }
.sp__comp i { font-family: var(--en); font-size: 16px; }
.sp__t { margin: 10px 0 0; font-weight: 200; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.12; letter-spacing: -.015em; }
.sp__o { margin: 8px 0 0; font-family: var(--en); font-style: italic; font-size: clamp(18px, 1.8vw, 22px); color: var(--dim); }
.sp__act { margin: 34px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bigplay { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; border: 1px solid rgba(236,230,216,.75); font-size: 16px; letter-spacing: .06em; }
.bigplay svg { width: 14px; height: 14px; fill: currentColor; }
.bigplay small { font-size: 12px; color: var(--dim); letter-spacing: .02em; }
.bigplay:hover, .bigplay:focus-visible { background: var(--ink); color: var(--stage); outline: none; }
.bigplay:hover small, .bigplay:focus-visible small { color: rgba(18,17,16,.6); }
.keep { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(236,230,216,.42); font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.keep svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.keep:hover, .keep:focus-visible { background: var(--ink); color: var(--stage); outline: none; }
.keep[aria-busy="true"] { pointer-events: none; opacity: .7; }
.sp__note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: rgba(236,230,216,.5); }

/* 연결 영상: 누르기 전에는 박물관 카드만(유튜브에서 아무것도 불러오지 않음), 누른 뒤 퍼가기 플레이어 */
.vbox { margin: 30px 0 0; }
.vcard { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; border: 1px solid var(--faint);
  background: radial-gradient(70% 90% at 50% 40%, #24211d, #141312); }
.vcard .vc { display: grid; justify-items: center; gap: 10px; padding: 20px; }
.vcard .o { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(236,230,216,.8); display: grid; place-items: center; }
.vcard .o svg { width: 20px; height: 20px; fill: var(--ink); margin-left: 3px; }
.vcard b { font-weight: 300; font-size: 18px; }
.vcard .vm { font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.vcard:hover .o, .vcard:focus-visible .o { background: var(--ink); } .vcard:hover .o svg, .vcard:focus-visible .o svg { fill: var(--stage); }
.vcard:focus-visible { outline: 1px solid var(--dim); }

/* 악장 목록: 맨 위 작품 줄, 그 아래 악장 줄. 줄을 누르면 그 악장부터 */
.sp__h { margin: 54px 0 0; font-weight: 400; font-size: 12px; letter-spacing: .18em; color: var(--dim); }
.mvs { list-style: none; margin: 14px 0 0; padding: 0; }
.mvs .work { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(236,230,216,.4); font-size: 14px; }
.mvs .work span:last-child { font-family: var(--en); color: var(--dim); }
.mv { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border-top: 1px solid var(--faint); }
.mv__go { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; }
.mv__go:focus-visible { outline: 1px solid var(--dim); outline-offset: -1px; }
.mv .n { font-family: var(--en); color: var(--dim); font-size: 14px; padding: 12px 0; }
.mv .nm { padding: 12px 0; font-size: 15px; font-weight: 300; min-width: 0; }
.mv .nm small { display: block; margin-top: 3px; font-family: var(--en); font-style: italic; font-size: 13px; color: var(--dim); }
.mv .d { font-family: var(--en); font-size: 14px; color: var(--dim); }
.mv .get { font-size: 12px; color: var(--dim); padding: 10px 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.mv .get:hover { color: var(--ink); }
.mv:hover { background: rgba(236,230,216,.035); }
.mv.now .nm { color: var(--ink); }
.mv.now .n { color: var(--red); }

/* 라벨 */
.lbl { margin: 14px 0 0; display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--faint); font-size: 14px; line-height: 1.65; }
.lbl dt, .lbl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--faint); }
.lbl dt { color: var(--dim); font-size: 13px; }
.lbl dd small { display: block; color: var(--dim); font-size: 12px; }
.lbl a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236,230,216,.3); word-break: break-all; }
.fix { margin: 14px 0 0; font-size: 14px; color: var(--dim); line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; height: 40px; padding: 0 14px 0 12px; border: 1px solid rgba(236,230,216,.42); font-size: 13px; color: var(--ink); }
.card-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-link:hover, .card-link:focus-visible { background: var(--ink); color: var(--stage); outline: none; }
.cardbox { position: fixed; inset: 0; z-index: 95; background: #24231F; opacity: 0; transition: opacity .4s ease; }
.cardbox.is-open { opacity: 1; }
.cardbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cardbox .xbtn { position: absolute; z-index: 1; top: 16px; right: clamp(12px, 3vw, 40px); }

/* 재생 막대(기획안 2장 D): 화면 아래 고정. 1줄 '작곡가: 작품', 2줄 '악장' */
.player { position: fixed; z-index: 85; left: 0; right: 0; bottom: 0; height: 80px; display: grid; align-items: center; gap: 18px;
  grid-template-columns: 48px minmax(0, 1fr) auto minmax(180px, .9fr) 44px; padding: 0 clamp(16px, 4vw, 48px) env(safe-area-inset-bottom);
  background: rgba(16,15,14,.97); border-top: 1px solid var(--faint); transform: translateY(105%); visibility: hidden;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear .45s; }
body.has-player .player { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.pl__cv { width: 48px; height: 48px; padding: 0; }
.pl__cv img { width: 100%; height: 100%; display: block; box-shadow: 1px 1px 0 #3a332b, 2px 2px 0 #241f1a; }
.pl__t { min-width: 0; text-align: left; padding: 6px 0; }
.pl__l1, .pl__l2 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player:not(.playing) .on-air { display: none; }
.pl__l1 { font-size: 14px; }
.pl__l2 { margin-top: 4px; font-size: 12px; color: var(--dim); }
.pl__t:hover .pl__l1 span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.pl__btns { display: flex; align-items: center; gap: 4px; }
.pl__btns button, .pl__mute { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.pl__btns svg, .pl__mute svg { width: 18px; height: 18px; fill: var(--ink); }
.pl__btns .pp { width: 48px; height: 48px; border: 1.5px solid rgba(236,230,216,.75); }
.pl__btns button:hover, .pl__mute:hover, .pl__btns button:focus-visible, .pl__mute:focus-visible { background: rgba(236,230,216,.12); outline: none; }
.pl__prog { width: 100%; max-width: 520px; justify-self: end; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-family: var(--en); font-size: 13px; color: var(--dim); }
.pl__prog input { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: none; }
.pl__prog input::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--ink) var(--p), rgba(236,230,216,.2) var(--p)); }
.pl__prog input::-moz-range-track { height: 3px; background: linear-gradient(90deg, var(--ink) var(--p), rgba(236,230,216,.2) var(--p)); }
.pl__prog input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--ink); }
.pl__prog input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ink); }
.pl__prog input:focus-visible { outline: none; }
.pl__prog input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(236,230,216,.25); }
.pl__cur.drag { color: var(--ink); }
.pl__mute.off svg { opacity: .45; }
/* 음반 듣기 중 영상 곡 차례: 막대 자리에 묻기 */
.pl__ask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 0 16px;
  background: rgba(16,15,14,.98); font-size: 14px; color: var(--dim); }
.pl__ask[hidden] { display: none; }
.pl__ask b { font-weight: 400; color: var(--ink); }
.pl__ask button { min-height: 40px; padding: 0 16px; border: 1px solid rgba(236,230,216,.5); color: var(--ink); font-size: 13px; }
.pl__ask button:hover, .pl__ask button:focus-visible { background: var(--ink); color: var(--stage); outline: none; }

/* 막대가 뜨면 화면 아래 여백을 막대만큼 늘림, 시제품 표시는 숨김 */
body.has-player .wallwrap { padding-bottom: 150px; }
body.has-player .alb2__box { padding-bottom: 110px; }
body.has-player .alb2__txt { max-height: calc(100vh - 222px); }
body.has-player .sheet__box { padding-bottom: 130px; }
body.has-player .tag { opacity: 0; }
.dl-msg { position: fixed; z-index: 96; left: 50%; bottom: 100px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px;
  background: #24221F; border: 1px solid var(--faint); font-size: 13px; color: var(--ink); }
.dl-msg[hidden] { display: none; }
body.has-player .dl-msg { bottom: 150px; }   /* 재생 막대와 그 위 독보다 위 */

/* ── 작은 영상 창: 연결 영상 곡을 재생 막대 바로 위, 지금 곡 표지 자리 위에서 재생(10/23). 유튜브 규칙대로 영상 칸은 200px 높이 이상,
   그 위에는 아무것도 겹치지 않음(재생 막대보다 위 층, 독은 비켜 숨김, 명함이 열리면 영상을 멈추고 숨김) ── */
.mini { position: fixed; z-index: 86; left: clamp(16px, 4vw, 48px); bottom: calc(80px + 12px + env(safe-area-inset-bottom)); width: 356px;
  background: rgba(16,15,14,.97); border: 1px solid var(--faint); box-shadow: 0 18px 40px rgba(0,0,0,.45); animation: miniIn .35s cubic-bezier(.2,.7,.2,1); }
.mini[hidden] { display: none; }
@keyframes miniIn { from { transform: translateY(18px); } to { transform: none; } }
.mini__cap { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 12px; font-size: 12px; }
.mini__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mini__src { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 11px; }
.mini__src:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mini__x { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: var(--dim); }
.mini__x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mini__x:hover, .mini__x:focus-visible { color: var(--ink); }
.mini__frame { position: relative; height: 200px; background: #000; }
.mini__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-height: 420px) { .mini__cap { display: none; } }   /* 아주 낮은 가로 화면: 윗줄을 빼고 영상만(조작은 재생 막대로) */
body.card-on .mini { visibility: hidden; }
body.mini-on .dock { opacity: 0; visibility: hidden; pointer-events: none; }
body.mini-on .dl-msg { bottom: 340px; }
body.mini-on .wallwrap, body.mini-on .songpg__box, body.mini-on .sheet__box { padding-bottom: 360px; }
@media (max-width: 760px) {
  .mini { left: 12px; right: 12px; width: auto; bottom: calc(112px + 8px + env(safe-area-inset-bottom)); }
  body.mini-on .dl-msg { bottom: 372px; }
  body.mini-on .wallwrap, body.mini-on .songpg__box, body.mini-on .sheet__box, body.mini-on .alb2__box { padding-bottom: 390px; }
}

/* ── 아래 독: 다른 관과 같음(직지관 jikji.css의 .dock을 그대로). 재생 막대가 있으면 그 위로 올리고, 음반 창·곡 쪽·곡 목록이 열리면 숨김 ── */
.dock { position: fixed; z-index: 44; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: stretch; height: 44px; padding: 0 6px; background: rgba(18, 17, 15, .62); border: 1px solid rgba(239, 235, 228, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: .9; transition: opacity .5s ease, transform .5s ease, bottom .45s cubic-bezier(.2,.7,.2,1); }
.dock.is-moving { opacity: .45; }
.dock.is-away { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.dock:hover, .dock:focus-within { opacity: 1; }
.dock__item { position: relative; display: flex; align-items: center; gap: 9px; padding: 0 16px; color: #A29C91; font-size: 12.5px; letter-spacing: .08em; line-height: 1; white-space: nowrap; transition: color .25s ease; }
.dock__item::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 1px; background: #EFEBE4; transform: scaleX(0); transition: transform .3s ease; }
a.dock__item:hover, a.dock__item:focus-visible { color: #EFEBE4; }
a.dock__item:hover::before, a.dock__item:focus-visible::before { transform: scaleX(1); }
.dock__item.is-here { color: #EFEBE4; }
.dock__item.is-here::before { background: #D2271D; transform: scaleX(1); }
.dock__item[aria-disabled] { color: rgba(162, 156, 145, .55); cursor: default; }
.dock__glyph svg { display: block; width: 15px; height: 15px; }
.dock__kind { opacity: .7; }
.dock__sep { width: 1px; margin: 12px 4px; background: rgba(239, 235, 228, .14); }
.dock__tip { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); display: none; padding: 6px 10px; white-space: nowrap;
  font-size: 11.5px; letter-spacing: .06em; line-height: 1.3; color: #EFEBE4; background: rgba(18, 17, 15, .92); border: 1px solid rgba(239, 235, 228, .14); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip { display: block; } }
body.has-player .dock { bottom: calc(92px + env(safe-area-inset-bottom)); }
body.modal .dock { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }

@media (max-width: 760px) {
  .dock { height: 54px; padding: 0 4px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .dock__item { flex-direction: column; justify-content: center; gap: 6px; min-width: 60px; padding: 0 10px; font-size: 11px; letter-spacing: .04em; }
  .dock__item::before { left: 50%; right: auto; width: 14px; margin-left: -7px; bottom: 5px; }
  .dock__glyph svg { width: 17px; height: 17px; }
  .dock__kind { display: none; }
  .dock__sep { margin: 14px 2px; }
  body.has-player .dock { bottom: calc(122px + env(safe-area-inset-bottom)); }
  body.has-player .dl-msg { bottom: 190px; }
  body.has-player .alb2__txt { max-height: none; }
  .player { height: 112px; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: 40px 64px; row-gap: 0; column-gap: 12px; align-items: center; }
  .pl__prog { grid-column: 1 / -1; grid-row: 1; padding-top: 6px; max-width: none; }
  .pl__cv { grid-row: 2; width: 44px; height: 44px; } .pl__t { grid-row: 2; } .pl__btns { grid-row: 2; }
  .pl__mute { display: none; }
  body.has-player .songpg__box { padding-bottom: 170px; }
  body.has-player .wallwrap { padding-bottom: 200px; }   /* 재생 막대 112px + 그 위 독 */
  body.has-player .alb2__box { padding-bottom: 140px; }
}
@media (max-width: 600px) {
  .mv__go { grid-template-columns: 26px 1fr auto; gap: 8px; }
  .lbl { grid-template-columns: 1fr; }
  .lbl dt { padding-bottom: 0; border-bottom: 0; }
  .lbl dd { padding-top: 4px; }
  .bigplay { width: 100%; justify-content: center; }
}

/* 후원 안내 한 줄(모든 관 같음): 벽장 맨 아래, 누르면 후원 쪽 */
.wall__support { margin: 8px 0 0; padding: 0 0 120px; text-align: center; font-size: 13px; letter-spacing: .04em; }
.wall__support a { color: #EFEBE4; border-bottom: 1px solid #D2271D; padding-bottom: 2px; transition: color .25s; }
.wall__support a:hover { color: #D2271D; }
