/* William Poetic Solace — 사이트 공통 스타일 (휴대폰 기준으로 먼저 만들고, 넓은 화면에서 넓힘) */
:root {
  --bg: #130f0c;
  --bg-2: #1a1510;
  --bg-3: #241c13;
  --line: #2e261d;
  --text: #ece4d8;
  --text-2: #cbbfad;
  --text-3: #978a75;
  --gold: #c9922f;
  --gold-2: #e0b264;
  --serif: 'Gowun Batang', 'Noto Serif KR', serif;
  --sans: 'Gowun Dodum', 'Noto Sans KR', sans-serif;
  --latin: 'Playfair Display', 'Gowun Batang', serif;
  --pad: 20px;
  --max: 1180px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #f3cf8c; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; }
.latin { font-family: var(--latin); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.tag { font-family: var(--latin); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--text-3); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--gold); color: var(--bg); padding: 8px 12px; z-index: 99; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 2px; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-2); color: var(--bg); }
.btn-outline { border-color: #6b5a42; color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--text); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn[disabled], .btn.is-soon { opacity: .45; cursor: not-allowed; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(19,15,12,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font-family: var(--latin); font-size: 18px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand:hover { color: var(--text); }
.nav { display: none; gap: 26px; align-items: center; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); }
.menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px var(--pad) 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--text); border-bottom: 1px solid var(--line); font-size: 16px; }
.lang { display: flex; gap: 6px; font-size: 12px; color: var(--text-3); }
.lang span.on { color: var(--text); }

/* 메인 히어로 */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; background: #0c0a08 var(--hero-m) center top / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,6,0) 0%, rgba(10,8,6,.15) 40%, rgba(19,15,12,.9) 78%, rgba(19,15,12,1) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 48px; width: 100%; }
.hero h1 { font-size: 32px; margin: 14px 0 16px; }
.hero p { color: var(--text-2); margin: 0 0 28px; font-size: 16px; }
.hero .actions { display: flex; flex-direction: column; gap: 12px; }

/* 섹션 */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-2); }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.block-head h2 { font-size: 26px; margin-top: 8px; }
.block-head a { font-size: 14px; white-space: nowrap; }

.perks { display: grid; grid-template-columns: 1fr; gap: 22px; }
.perk { border-top: 1px solid var(--gold); padding-top: 14px; }
.perk h3 { font-size: 18px; margin-bottom: 6px; }
.perk p { margin: 0; color: var(--text-2); font-size: 15px; }

/* 앨범 카드 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.card { color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.card:hover { color: var(--text); }
.card .cv { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.card .t { font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.4; }
.card .e { font-family: var(--latin); font-size: 12px; color: var(--text-3); line-height: 1.4; margin-top: -4px; }
.card .n { font-size: 12px; color: var(--text-3); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { min-height: 38px; padding: 6px 16px; border: 1px solid var(--line); background: transparent; color: var(--text-2); border-radius: 999px; font-family: var(--sans); font-size: 14px; cursor: pointer; }
.chip.on { border-color: var(--gold); color: var(--text); background: var(--bg-3); }

/* 회원 등급 */
.tiers { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tier { border: 1px solid var(--line); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.tier.hl { border-color: var(--gold); background: var(--bg-3); }
.tier .b { font-size: 12px; color: var(--gold); letter-spacing: .04em; }
.tier h3 { font-size: 19px; }
.tier p { margin: 0; color: var(--text-2); font-size: 15px; }
.note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* 앨범 페이지 */
.album-hero { position: relative; background: #0c0a08 center / cover no-repeat; }
.album-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,8,.35), rgba(19,15,12,.92) 70%, var(--bg)); }
.album-hero .wrap { position: relative; z-index: 1; padding-top: 36px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 22px; }
.album-hero .cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 18px 50px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); }
.album-hero h1 { font-size: 28px; margin: 8px 0 6px; }
.album-hero .en { font-family: var(--latin); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.album-hero .meta { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.crumb { font-size: 13px; color: var(--text-3); }
.crumb a { color: var(--text-3); }

.video { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border: 1px solid var(--line); overflow: hidden; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-size: 14px; }
.video button:hover { background: rgba(0,0,0,.2); }
.video .play { width: 68px; height: 68px; border-radius: 50%; background: rgba(201,146,47,.92); display: flex; align-items: center; justify-content: center; }
.video .play svg { width: 26px; height: 26px; margin-left: 4px; fill: #130f0c; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-size: 13px; color: var(--text-3); margin: 10px 0 0; }
.videos { display: grid; gap: 22px; }

.sec { padding: 44px 0; border-top: 1px solid var(--line); }
.sec > h2 { font-size: 22px; margin: 8px 0 20px; }
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.track { display: grid; grid-template-columns: 30px 1fr; gap: 4px 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.track::before { counter-increment: t; content: counter(t, decimal-leading-zero); font-family: var(--latin); color: var(--gold); font-size: 14px; padding-top: 2px; }
.track .name { font-size: 15px; line-height: 1.55; }
.track .acts { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.soon-note { font-size: 13px; color: var(--text-3); margin-top: 14px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { min-height: 44px; padding: 8px 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-3); font-family: var(--sans); font-size: 14px; cursor: pointer; margin-bottom: -1px; }
.tab.on { color: var(--text); border-bottom-color: var(--gold); }
.panel[hidden] { display: none; }
.prose { font-size: 16px; line-height: 1.9; color: var(--text-2); }
.prose p { margin: 0 0 1.1em; }
.prose h3 { font-size: 17px; color: var(--text); margin: 1.6em 0 .6em; }
.prose .sign { color: var(--text-3); }
.empty { padding: 26px 20px; border: 1px dashed #4a3e2e; color: var(--text-3); font-size: 15px; text-align: center; }
.lyrics { font-family: var(--serif); font-size: 16px; line-height: 2; color: var(--text-2); white-space: pre-line; }
.lyrics .lab { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--gold); margin: 1.6em 0 .2em; }
.lyrics .lab:first-child { margin-top: 0; }

.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }

/* 준비 중 페이지 */
.soon { min-height: 62vh; display: flex; align-items: center; text-align: center; }
.soon h1 { font-size: 28px; margin: 12px 0; }
.soon p { color: var(--text-2); }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--text-3); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .links a { color: var(--text-2); }

@media (min-width: 640px) {
  :root { --pad: 32px; }
  .grid, .more { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .actions { flex-direction: row; }
  .hero h1 { font-size: 42px; }
  .hero { background-image: var(--hero); background-position: 65% center; }
}
@media (min-width: 960px) {
  :root { --pad: 48px; }
  .nav { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
  .hero { min-height: 640px; }
  .hero .wrap { padding-bottom: 80px; }
  .hero h1 { font-size: 52px; max-width: 720px; }
  .hero p { max-width: 560px; font-size: 17px; }
  section.block { padding: 88px 0; }
  .block-head h2 { font-size: 32px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
  .more { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .perks, .tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .album-hero .wrap { flex-direction: row; align-items: flex-end; gap: 44px; padding-top: 72px; padding-bottom: 56px; }
  .album-hero .cover { width: 520px; flex: none; }
  .album-hero h1 { font-size: 40px; }
  .album-body { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sec > h2 { font-size: 26px; }
  .track { grid-template-columns: 40px 1fr auto; align-items: center; }
  .track .acts { grid-column: 3; margin-top: 0; }
  .videos.multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 960px) {
  .prose, .lyrics, .album-body .empty { max-width: 760px; }
  .videos:not(.multi) { max-width: 960px; }
}
@media (min-width: 640px) {
  .hero::after { background: linear-gradient(90deg, rgba(12,10,8,.78) 0%, rgba(12,10,8,.35) 45%, rgba(12,10,8,0) 70%), linear-gradient(180deg, rgba(19,15,12,0) 70%, var(--bg) 100%); }
  .hero .wrap { padding-bottom: 96px; }
}
@media (min-width: 960px) {
  .hero { min-height: 680px; background-color: #0b0908; background-size: auto 100%; background-position: right center; }
  .hero::after { background: linear-gradient(90deg, #0b0908 0%, #0b0908 30%, rgba(11,9,8,.6) 48%, rgba(11,9,8,0) 62%), linear-gradient(180deg, rgba(19,15,12,0) 72%, var(--bg) 100%); }
}
@media (min-width: 1700px) { .hero { background-size: cover; background-position: 70% center; } }

/* 로그인 · 내 보관함 */
.auth-wrap { min-height: 72vh; display: flex; align-items: flex-start; justify-content: center; padding: 40px var(--pad) 72px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-family: var(--latin); font-size: 28px; margin: 8px 0 8px; }
.auth-sub { font-size: 14px; margin: 0 0 24px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 22px; }
.seg-btn { min-height: 46px; background: none; border: 0; color: var(--text-3); font-family: var(--sans); font-size: 15px; cursor: pointer; }
.seg-btn.on { background: var(--bg-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); }
#login-page[data-state="reset"] .seg { display: none; }
.social { display: grid; gap: 10px; }
.sbtn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 0; border-radius: 6px; font-family: var(--sans); font-size: 15px; font-weight: 700; cursor: pointer; }
.sbtn .ico { position: absolute; left: 18px; font-weight: 800; }
.sbtn.kakao { background: #FEE500; color: #191600; }
.sbtn.naver { background: #03C75A; color: #fff; opacity: .55; }
.sbtn.google { background: #fff; color: #1f1f1f; }
.sbtn.google .ico { color: #4285F4; }
.soon-tag { position: absolute; right: 14px; font-size: 11px; font-weight: 400; background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 999px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 22px 0 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.fld { display: block; margin-bottom: 14px; }
.fld span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.fld em { font-style: normal; color: var(--text-3); }
.fld input { width: 100%; min-height: 48px; padding: 10px 14px; background: #0f0c0a; border: 1px solid #3a3026; border-radius: 4px; color: var(--text); font-size: 16px; font-family: var(--sans); }
.fld input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.agree { display: grid; gap: 10px; margin: 6px 0 14px; font-size: 14px; color: var(--text-2); }
.agree label, .toggle { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; cursor: pointer; }
.agree input, .toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.btn-block { width: 100%; }
.form-msg { min-height: 1.2em; font-size: 14px; margin: 4px 0 12px; }
.form-msg.err { color: #f08a7a; }
.form-msg.ok { color: #9fd3a0; }
.form-msg.info { color: var(--gold-2); }
.linkbtn { background: none; border: 0; color: var(--text-3); font-family: var(--sans); font-size: 14px; cursor: pointer; text-decoration: underline; padding: 8px 0; }
.auth-foot { text-align: center; margin: 8px 0 0; }
.auth-note { font-size: 12px; color: var(--text-3); margin-top: 18px; line-height: 1.6; }
.me-info { display: grid; gap: 0; margin: 18px 0 8px; border-top: 1px solid var(--line); }
.me-info div { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.me-info dt { color: var(--text-3); font-size: 14px; }
.me-info dd { margin: 0; overflow-wrap: anywhere; }
.consent { border: 1px solid var(--gold); background: var(--bg-3); padding: 22px 20px; margin: 22px 0; }
.consent h2, .me-sec h2 { font-size: 19px; margin-bottom: 10px; }
.me-sec { margin-top: 32px; }
