:root {
  color-scheme: light;
  --ink: #141414;
  --dark: #171717;
  --black: #0d0d0d;
  --paper: #fafaf9;
  --white: #fff;
  --muted: #565656;
  --muted-light: #c9c9c9;
  --line: #d9d9d7;
  --line-dark: #454545;
  --gold: #b07a35;
  --gold-soft: #e9d4af;
  --focus: var(--ink);
  --ok: #2d7d4f;
  --ok-soft: #e4f1e8;
  --warn: #b8862b;
  --warn-soft: #f6ecd4;
  --stop: #b23b3b;
  --stop-soft: #f6e2e2;
  --serif: "Baskerville", "Times New Roman", "Noto Serif CJK KR", "AppleMyungjo", Batang, serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-inline-size: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
p, h1, h2, h3, h4, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #000; color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  min-height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .3em;
  font: 1.55rem/1 var(--serif); text-decoration: none; color: #fff; white-space: nowrap;
}
.brand i { font-style: italic; color: var(--gold-soft); }
.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a {
  color: #d6d6d6; text-decoration: none; font-size: .86rem; white-space: nowrap;
}
.header-nav a:hover, .header-nav a.is-active { color: #fff; text-decoration: underline; text-underline-offset: .3em; }

/* ---------- Hero / show summary ---------- */
.show-hero {
  background: var(--black); color: #fff;
  padding: clamp(28px, 5vw, 52px) 0;
  border-bottom: 1px solid #000;
}
.show-hero .shell { display: grid; grid-template-columns: 112px 1fr; gap: 26px; align-items: center; }
.show-hero img { width: 112px; border-radius: 4px; box-shadow: 0 10px 30px #0008; }
.show-occasion { color: var(--gold-soft); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5em; }
.show-title { font: 400 clamp(1.5rem, 3.4vw, 2.3rem)/1.18 var(--serif); margin-bottom: .55em; }
.show-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #cfcfcf; font-size: .92rem; }
.show-meta b { color: #fff; font-weight: 600; }

/* ---------- Discount banner ---------- */
.discount-strip {
  background: linear-gradient(90deg, #1c1813, #2a2118);
  color: #fff; text-align: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line-dark);
  font-size: .98rem;
}
.discount-strip b { color: var(--gold-soft); }
.price-strike { color: #9a9a9a; text-decoration: line-through; margin-right: .5em; }
.price-now { color: var(--gold-soft); font-weight: 700; font-size: 1.12em; }

/* ---------- Section ---------- */
.wrap { padding: clamp(28px, 5vw, 56px) 0; }
.section-title {
  font: 400 1.5rem/1.2 var(--serif);
  margin-bottom: .3em;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.6em; }

.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
/* grid/flex 자식이 콘텐츠(좌석도) 때문에 안 줄어드는 것 방지 */
.booking-grid > * { min-width: 0; }
@media (max-width: 920px) { .booking-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Seat map ---------- */
.stage-bar {
  background: #e7e7e4; color: #6a6a6a;
  text-align: center; letter-spacing: .5em; text-indent: .5em;
  padding: 12px; border-radius: 6px; font-size: .9rem; font-weight: 600;
  margin: 0 auto 24px; width: min(420px, 80%);
}
/* 뷰포트(확대/이동 영역) — JS가 최초 진입 시 전체가 들어오도록 scale 자동 맞춤 */
.seatmap {
  overflow: hidden; position: relative; touch-action: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px;
}
.seatmap-pan { transform-origin: 0 0; will-change: transform; display: inline-block; }
/* 좌석도 본체: 내부 여백으로 양끝 좌석·행번호가 잘리지 않게 */
.seatmap-inner { width: max-content; margin: 0 auto; padding: 8px 14px; }

/* 줌 컨트롤 */
.zoom-controls { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.zoom-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 14px; font-size: .9rem; color: var(--ink); min-width: 44px; }
.zoom-btn:hover { background: var(--paper); }
.seat-loading { text-align: center; color: #9a9a9a; padding: 40px; }

/* 행 한 줄: [행번호] [3섹션 그리드] [행번호]
   --seat: 좌석 지름, --gap: 좌석 간격
   섹션 폭은 좌석 수 기준 고정 → 모든 행이 세로로 정렬됨 */
.seatmap-inner { --seat: 22px; --gap: 6px; --sec-gap: clamp(18px, 2.4vw, 34px); }
.seat-line { display: flex; align-items: center; margin-bottom: var(--gap); }
.row-num {
  width: 24px; color: #9a9a9a; font-size: .68rem; flex: none;
  font-variant-numeric: tabular-nums;
}
.row-num-l { text-align: right; padding-right: 8px; }
.row-num-r { text-align: left; padding-left: 8px; }

/* 3섹션 그리드 — 좌(7col) · 중(12col) · 우(7col) 분량의 고정폭 */
.seat-grid {
  display: grid;
  grid-template-columns:
    calc(7 * var(--seat) + 6 * var(--gap))
    calc(12 * var(--seat) + 11 * var(--gap))
    calc(7 * var(--seat) + 6 * var(--gap));
  column-gap: var(--sec-gap);
  align-items: center;
}
.seat-section { display: flex; align-items: center; gap: var(--gap); min-height: var(--seat); }
.sec-left   { justify-content: flex-start; }
.sec-center { justify-content: center; }
.sec-right  { justify-content: flex-end; }

/* 서브블록 간 좁은 간격 */
.seat-gap { width: calc(var(--seat) * .5); flex: none; }
.seat-gap-wide { width: var(--seat); flex: none; }

/* 섹션 헤더 (통로없음) */
.section-head { margin-bottom: 10px; }
.col-head { color: #8a8a8a; font-size: .72rem; font-weight: 600; justify-content: center; }

/* 통로 표시 줄 */
.aisle-row { margin: 8px 0 14px; }
.aisle-mark { color: #7a7a7a; font-size: .72rem; text-align: center; }
.wheel-line { margin: 12px 0; }
.seat-foot-note { text-align: center; color: #9a9a9a; font-size: .74rem; margin-top: 16px; }

/* 좌석 셀
   색상 기준:
     선택가능 흐린 보라 #C4B5FD / 현재선택 진한 보라 #6D28D9(+체크+외곽선)
     판매제외 연회색 #D1D5DB / 판매완료 진회색 #6B7280(+X) */
.seat {
  width: var(--seat, 22px); height: var(--seat, 22px); border-radius: 50%;
  border: 2px solid transparent;
  background: #d1d5db;
  padding: 0; position: relative; flex: none;
  transition: transform .08s, box-shadow .12s;
}
/* 선택 가능 (흐린 보라 #C4B5FD) */
.seat.is-avail { background: #c4b5fd; cursor: pointer; }
button.seat.is-avail:hover { transform: scale(1.14); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #c4b5fd; z-index: 2; }
/* 휠체어 접근 좌석: 색 규칙은 동일, 흰 테두리로 유형만 표시 */
.seat.is-wheel { box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
button.seat.is-wheel.is-avail:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 2px #fff, 0 0 0 4px #c4b5fd; }
/* 현재 선택함 (진한 보라 #6D28D9 + 체크 + 외곽선) — hover 와 확실히 구분 */
.seat.is-selected { background: #6d28d9 !important; border-color: #4c1d95; transform: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6d28d9; z-index: 3; }
.seat.is-selected::after {
  content: "✓"; color: #fff; font-size: .72rem; position: absolute; inset: 0;
  display: grid; place-items: center; font-weight: 800;
}
.seat.is-selected.is-wheel { box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 2px #fff, 0 0 0 4px #6d28d9; }
/* 선택 불가 — 판매완료/판매제외 모두 회색으로 통일 (#D1D5DB) */
.seat.is-taken,
.seat.is-block { background: #d1d5db; border-color: transparent; cursor: not-allowed; }

/* 빈자리/비좌석 (원본에 좌석이 없는 자리 = 통로/빈공간) */
.seat-empty { background: transparent; border-color: transparent; }
/* 휠체어 마커(좌석 아님) */
.seat-wheelmark { background: transparent; border: none; display: grid; place-items: center; font-size: .82rem; color: #6b7280; }

/* 좌석 범례 */
.legend { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; margin-top: 22px; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; border: 2px solid transparent; font-size: .68rem; color: #fff; font-weight: 800; }
.lg-avail { background: #c4b5fd; }
.lg-sel { background: #6d28d9; border-color: #4c1d95; }
.lg-sel::after { content: "✓"; }
.lg-wheel { background: #c4b5fd; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); color: transparent; }
.lg-unavail { background: #d1d5db; }

/* ---------- Booking side panel ---------- */
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px; position: sticky; top: calc(var(--header-height) + 16px);
  box-shadow: 0 10px 34px #0000000d;
}
.panel h3 { font: 400 1.2rem/1.2 var(--serif); margin-bottom: 14px; }
.sel-list { list-style: none; padding: 0; margin: 0 0 16px; min-height: 40px; }
.sel-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; background: var(--paper); border-radius: 6px; margin-bottom: 6px; font-size: .88rem;
}
.sel-list .remove { border: none; background: none; color: var(--muted); font-size: 1rem; line-height: 1; padding: 2px 4px; }
.sel-list .remove:hover { color: var(--stop); }
.sel-empty { color: #9a9a9a; font-size: .86rem; padding: 10px 2px; }

.price-box { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.price-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.price-row.total { color: var(--ink); font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.price-row .save { color: var(--ok); }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: .92rem; background: var(--paper);
}
.field input:focus { outline: none; border-color: var(--ink); background: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border: none; border-radius: 7px;
  background: var(--ink); color: #fff; font-size: 1rem; font-weight: 600;
  transition: background .15s;
}
.btn:hover { background: #000; }
.btn:disabled { background: #c7c7c7; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper); }
.btn-primary { background: #6d28d9; }
.btn-primary:hover { background: #5b21b6; }
.btn-danger { background: var(--stop); }
.btn-danger:hover { background: #9a2f2f; }
a.btn { text-decoration: none; }

.note { font-size: .76rem; color: #9a9a9a; margin-top: 12px; line-height: 1.6; }

/* ---------- Toast / confirm ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 8px;
  font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60;
  box-shadow: 0 10px 30px #0006;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Confirm dialog ---------- */
dialog.sheet { border: none; border-radius: 12px; padding: 0; width: min(460px, 92vw); box-shadow: 0 30px 80px #0007; }
dialog.sheet::backdrop { background: #0d0d0dbb; }
.sheet-head { padding: 22px 24px 0; }
.sheet-head h3 { font: 400 1.35rem/1.2 var(--serif); }
.sheet-body { padding: 16px 24px; }
.sheet-body dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .92rem; }
.sheet-body dt { color: var(--muted); }
.sheet-body dd { text-align: right; font-weight: 500; }
.sheet-foot { display: flex; gap: 10px; padding: 16px 24px 24px; }

/* ---------- Admin ---------- */
.admin-bg { background: var(--paper); min-height: 100vh; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px;
}
.stat .k { color: var(--muted); font-size: .8rem; margin-bottom: 6px; }
.stat .v { font: 400 1.7rem/1 var(--serif); }
.stat .v small { font-size: .9rem; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.filter-chip {
  border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; font-size: .84rem; color: var(--muted);
}
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-input { padding: 9px 13px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: .9rem; min-width: 200px; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.res-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.res-table th, .res-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.res-table th { background: var(--paper); color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .03em; position: sticky; top: 0; }
.res-table tbody tr:hover { background: #fcfcfb; }
.res-table .seats-cell { max-width: 260px; }
.seat-tag { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; margin: 2px 3px 2px 0; font-size: .78rem; }
.muted { color: var(--muted); }
.tiny { font-size: .76rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.st-pending { background: var(--warn-soft); color: var(--warn); }
.st-confirmed { background: var(--ok-soft); color: var(--ok); }
.st-cancelled { background: var(--stop-soft); color: var(--stop); }
.st-hold { background: #eef1f4; color: #5a6b7b; }
.st-expired { background: #efecec; color: #8a8a8a; }

.act-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 10px; font-size: .78rem; color: var(--ink); }
.act-btn:hover { background: var(--paper); }
.act-btn.danger { color: var(--stop); border-color: #e9c9c9; }
.act-btn.danger:hover { background: var(--stop-soft); }
.act-btn.ok { color: var(--ok); border-color: #c6e0cf; }
.act-btn.ok:hover { background: var(--ok-soft); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.empty-row td { text-align: center; color: #9a9a9a; padding: 48px 14px; }

/* 관리자 좌석 현황 */
.admin-seatmap-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 28px; }
.admin-seatmap-card .seat { cursor: default; }
.admin-seatmap-card .seat:hover { transform: none; border-color: transparent; }

.site-footer { background: #000; color: #9a9a9a; padding: 22px 0; font-size: .8rem; text-align: center; }
.site-footer a { color: #cfcfcf; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 12px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 결제 수단 선택 */
/* 결제 방법 선택 — 카드형 */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-methods:has(.pay-opt[hidden]) { grid-template-columns: 1fr; }
.pay-opt {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; background: #fff; transition: border-color .12s, background .12s, box-shadow .12s;
}
.pay-opt:hover { border-color: #b9a7ea; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt-icon { font-size: 1.25rem; line-height: 1; }
.pay-opt-text { display: flex; flex-direction: column; line-height: 1.25; }
.pay-opt-text b { font-size: .92rem; }
.pay-opt-text small { color: var(--muted); font-size: .74rem; }
.pay-opt-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.pay-opt:has(input:checked) { border-color: #6d28d9; background: #f6f2fe; box-shadow: 0 0 0 1px #6d28d9; }
.pay-opt:has(input:checked) .pay-opt-check { border-color: #6d28d9; background: #6d28d9; }
.pay-opt:has(input:checked) .pay-opt-check::after { content: "✓"; color: #fff; font-size: .72rem; font-weight: 800; }

/* 동의 체크 */
.consent { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 4px; font-size: .82rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: #6d28d9; flex: none; }
.consent a { color: #6d28d9; text-decoration: underline; text-underline-offset: 2px; }

/* 정책 레이어 팝업 */
.policy-modal { width: min(520px, 94vw); }
.policy-body { max-height: 64vh; overflow-y: auto; font-size: .9rem; line-height: 1.75; color: #333; }
.policy-body h4 { font-size: .92rem; margin: 16px 0 4px; color: var(--ink); }
.policy-body h4:first-child { margin-top: 0; }
.policy-body p { margin-bottom: 8px; }
.policy-lead { font-weight: 600; color: var(--ink); }
.policy-list { margin: 8px 0; padding-left: 18px; }
.policy-list li { line-height: 1.9; }
.policy-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.policy-contact { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* hold 타이머 */
.hold-timer { margin-top: 14px; text-align: center; font-size: .86rem; color: var(--warn); font-weight: 600; }

/* 무통장 입금 안내 */
.pay-guide { margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px; text-align: center; }
.pay-guide-t { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.pay-acct { font-size: 1.05rem; }
.pay-acct b { font-weight: 700; }
.pay-holder { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.pay-amt { margin-top: 8px; }
.pay-amt b { color: var(--ok); }
.pay-note { font-size: .76rem; color: #9a9a9a; margin-top: 10px; line-height: 1.6; }

.mobile-hint { display: none; }

/* ============ 결제 결과 페이지 ============ */
.pay-result-shell { max-width: 480px; }
.pay-result { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 28px; text-align: center; box-shadow: 0 10px 34px #0000000d; }
.pay-result-icon { font-size: 3rem; line-height: 1; margin-bottom: 14px; }
.pay-result-title { font: 400 1.4rem/1.3 var(--serif); margin-bottom: 8px; }
.pay-result-sub { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.pay-result-dl { text-align: left; margin: 22px auto 4px; max-width: 320px; background: var(--paper); border-radius: 10px; padding: 16px 18px; }
.pay-result-bank { text-align: left; margin: 18px auto 0; max-width: 340px; }
.pay-result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.pay-result-actions .btn { width: 100%; }

/* ============ 상세 페이지 ============ */
.detail-hero { background: #fff; border-bottom: 1px solid var(--line); padding: clamp(24px,4vw,44px) 0; }
.detail-hero-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px,4vw,56px); align-items: start; }
.detail-poster img { width: 100%; border-radius: 10px; box-shadow: 0 12px 40px #0002; aspect-ratio: 1050/1482; object-fit: cover; }
.poster-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.poster-thumb { width: 56px; height: 76px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; background: none; }
.poster-thumb img { width: 100%; height: 100%; object-fit: cover; }
.poster-thumb.is-active { border-color: #6d28d9; }

.detail-occasion { color: var(--gold); font-size: .85rem; letter-spacing: .1em; margin-bottom: .5em; }
.detail-title { font: 400 clamp(1.5rem,3vw,2.2rem)/1.25 var(--serif); margin-bottom: .7em; }
.detail-facts { display: grid; gap: 10px; margin-bottom: 22px; }
.detail-facts > div { display: grid; grid-template-columns: 64px 1fr; font-size: .95rem; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { font-weight: 500; }

.detail-pricebox { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; background: var(--paper); }
.pb-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.pb-strike { color: #9a9a9a; text-decoration: line-through; font-size: .85em; margin-right: .3em; }
.pb-sale { color: #6d28d9; font-size: 1.4rem; font-weight: 700; }
.pb-note { font-size: .76rem; color: #9a9a9a; margin-top: 8px; }

.detail-cta { display: flex; gap: 10px; }
.detail-cta .btn { flex: 1; }
.cta-sub { font-size: .78rem; color: #9a9a9a; margin-top: 10px; text-align: center; }

/* 탭 */
.detail-tabs { position: sticky; top: var(--header-height); z-index: 9; background: #fff; border-bottom: 1px solid var(--line); }
.detail-tabs-inner { display: flex; gap: 4px; overflow-x: auto; }
.detail-tabs .tab { padding: 15px 18px; font-size: .92rem; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.detail-tabs .tab.is-active { color: #6d28d9; border-bottom-color: #6d28d9; font-weight: 600; }

.detail-main { padding: 20px 0 100px; }
.detail-sec { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.detail-sec:last-child { border-bottom: none; }
.detail-sec-title { font: 400 1.35rem/1.2 var(--serif); margin-bottom: 18px; }

/* 프로그램 */
.program-card { display: flex; align-items: center; gap: 20px; background: var(--paper); border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }
.composer-art img { width: 90px; border-radius: 8px; }
.composer-en { font: 500 1.1rem/1.3 var(--serif); }
.composer-en span { color: var(--muted); font-size: .85rem; }
.composer-ko { color: var(--muted); margin-top: 2px; }
.program-list { list-style: none; padding: 0; margin: 0 0 28px; }
.program-list > li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.program-list > li:last-child { border-bottom: none; }
.pg-en { font: 500 1.02rem/1.4 var(--serif); }
.pg-en span { color: var(--muted); font-size: .85em; }
.pg-ko { color: var(--muted); margin-top: 2px; }
.pg-mov { list-style: none; padding: 8px 0 0; margin: 0; font-size: .86rem; color: var(--muted); }
.pg-mov li { padding: 2px 0; }
.pg-mov span { color: #9a9a9a; }
.pg-intermission { text-align: center; color: var(--gold); font-style: italic; letter-spacing: .05em; background: none !important; }

/* 아티스트 */
.artist-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.artist-photo img { width: 100%; border-radius: 10px; }
.artist-photo figcaption { margin-top: 8px; font-weight: 600; }
.artist-photo figcaption span { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.artist-bio h3 { font: 400 1.15rem/1.2 var(--serif); margin-bottom: 12px; }
.artist-bio p { font-size: .92rem; line-height: 1.8; color: #333; margin-bottom: 12px; }
.bio-more p { color: #555; }
.link-more { background: none; border: none; color: #6d28d9; font-size: .88rem; cursor: pointer; padding: 4px 0; text-decoration: none; display: inline-block; }
.link-more:hover { text-decoration: underline; }

/* 정보 테이블 */
.info-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.info-table th { text-align: left; width: 140px; padding: 12px 14px; background: var(--paper); color: var(--muted); font-weight: 600; vertical-align: top; border-bottom: 1px solid var(--line); }
.info-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sec-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* 취소·환불 */
.refund-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.refund-lead { font-weight: 600; margin-bottom: 12px; }
.refund-list { margin: 0; padding-left: 20px; }
.refund-list li { font-size: .9rem; line-height: 1.9; color: #333; }

/* 모바일 하단 고정 CTA */
.sticky-cta { display: none; }

/* ============ 예매 확인·취소 ============ */
.lookup-shell { max-width: 560px; }
.lookup-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.lk-tab { flex: 1; padding: 11px; border: 1.5px solid var(--line); background: #fff; border-radius: 9px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.lk-tab.is-active { border-color: #6d28d9; color: #6d28d9; background: #f6f2fe; }
.lookup-form { margin-bottom: 20px; }
.list-count { font-size: .86rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
#result-list .lookup-result { margin-bottom: 16px; }
.lookup-result .result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lookup-result .result-head h3 { font: 500 1.15rem/1 var(--serif); }
.result-dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 14px; font-size: .92rem; }
.result-dl dt { color: var(--muted); }
.result-dl dd { font-weight: 500; }
.cancel-box { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cancel-box h4 { font-size: 1rem; margin-bottom: 12px; }
.cancel-box .btn { margin-top: 16px; }
.cancel-closed { margin-top: 20px; padding: 14px; background: var(--paper); border-radius: 8px; color: var(--muted); font-size: .88rem; text-align: center; }

/* ============ 반응형 ============ */
@media (max-width: 860px) {
  .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-poster { max-width: 300px; margin: 0 auto; }
  .artist-card { grid-template-columns: 1fr; gap: 16px; }
  .artist-photo { max-width: 240px; }
}
@media (max-width: 560px) {
  .panel { position: static; }
  .res-table { font-size: .82rem; }
  .mobile-hint { display: inline; }
  .seatmap-inner { --seat: 24px; --gap: 6px; }
  .detail-main { padding-bottom: 90px; }
  /* 모바일 하단 고정 예매 바 */
  .sticky-cta {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px #0001; transition: transform .2s;
  }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  .sticky-cta .btn { width: auto; flex: 1; padding: 13px; }
  .sticky-price { display: flex; flex-direction: column; line-height: 1.2; }
  .sticky-price span { font-weight: 700; color: #6d28d9; font-size: 1.05rem; }
  .sticky-price small { color: var(--muted); font-size: .72rem; }
  .detail-facts > div { grid-template-columns: 56px 1fr; }
  .info-table th { width: 100px; font-size: .85rem; }
}
