/* ==========================================================================
   TICKETLINE — Components
   아트보드의 반복 패턴을 클래스로 정리. 값은 원본 디자인과 1:1.
   레이아웃 간격은 style="--gap:24px" 로 조절한다.
   ========================================================================== */

/* --- page shells -------------------------------------------------------- */
/* 실제 화면: 1440 폭을 중앙에 두고 그 안에서 살림 */
.shell { max-width: 1440px; margin: 0 auto; }
.view  { padding: 40px 48px 64px; display: flex; flex-direction: column; gap: 32px; }

/* 스타일가이드: 아트보드를 세로로 늘어놓는 캔버스 */
.page  { padding: 72px 80px 160px; display: flex; flex-direction: column; gap: 96px; }

/* --- layout primitives ------------------------------------------------- */
.row  { display: flex; flex-direction: row; gap: var(--gap, 12px); }
.col  { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--gap, 12px); }

.row.center, .col.center      { align-items: center; }
.row.baseline                 { align-items: flex-end; }
.row.top                      { align-items: flex-start; }
.between                      { justify-content: space-between; }
.middle                       { justify-content: center; }
.wrap                         { flex-wrap: wrap; }
.grow                         { flex: 1; min-width: 0; }
.none                         { flex: none; }
.txt-center                   { text-align: center; }

/* --- typography -------------------------------------------------------- */
.mono   { font-family: var(--mono); }
.num    { font-variant-numeric: tabular-nums; }
.muted  { color: var(--muted); }
.dim    { color: var(--dim); }
.faint  { color: var(--dimmer); }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dim);
}
.kicker--lg      { font-size: 12px; letter-spacing: .18em; }
.kicker--wide    { letter-spacing: .22em; }
.kicker--accent  { color: var(--accent); }
.kicker--ok      { color: var(--ok); }
.kicker--warn    { color: var(--warn); }
.kicker--danger  { color: var(--danger); }
.kicker--hold    { color: var(--hold); }

.lede { font-size: 16px; line-height: 1.7; color: var(--muted); }

/* --- surfaces ---------------------------------------------------------- */
.card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card--sm    { border-radius: var(--r-md); padding: 20px 24px; }
.card--flat  { border-radius: var(--r); padding: 16px; }
.card--ok    { border-color: var(--ok-a32); }
.card--hold  { border-color: var(--hold-a32); }

.panel {
  background: var(--ink);
  border: 1px solid var(--line-dim);
  border-radius: var(--r-lg);
}
.panel--deep   { background: var(--ink-deep); }
.panel--ok     { border-color: var(--ok-a40); }
.panel--accent { border-color: var(--accent-a40); }
.panel--warn   { border-color: var(--warn-a32); }
.panel--danger { border-color: var(--danger-a35); }

/* 1440 아트보드 프레임 */
.screen { width: 1440px; max-width: 100%; overflow: hidden; }

.divider { height: 1px; background: var(--line); }

/* --- app chrome -------------------------------------------------------- */
.appbar {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dim);
}
.brand {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .18em;
}
.brand--sm { font-size: 14px; }
.navlinks { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.navlinks .on { color: var(--text); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--raise); border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--muted);
}

/* --- 세그먼트 필터 (내 예매: 예정 / 취소·만료) ------------------------------ */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; }
.seg__btn {
  padding: 8px 16px; border: 0; border-radius: 7px; background: transparent;
  font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.seg__btn:hover { color: var(--text); background: var(--raise); }
.seg__btn[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 700; }
.res-empty { margin: 0; padding: 28px 0; text-align: center; font-size: 14px; color: var(--dim); }

/* --- 결제 수단 선택 -------------------------------------------------------- */
.paymethod {
  height: 64px; border-radius: var(--r); background: var(--surf); border: 1px solid var(--line);
  font: inherit; font-size: 14px; color: var(--muted); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.paymethod:hover { border-color: var(--line-3); color: var(--text); }
.paymethod[aria-checked="true"] { background: var(--raise); border-color: var(--accent); color: var(--accent-2); font-weight: 700; }
.paydetail {
  min-height: 52px; display: flex; align-items: center; padding: 0 16px;
  border-radius: var(--r); background: var(--surf); border: 1px dashed var(--line-2);
  font-size: 13px; color: var(--text-2);
}

/* --- 티켓 저장: 인쇄 / PDF 에는 티켓만 ------------------------------------- */
@media print {
  body * { visibility: hidden; }
  .ticket, .ticket * { visibility: visible; }
  .ticket { position: absolute; left: 0; top: 0; width: 420px; box-shadow: none; }
}

/* --- buttons ----------------------------------------------------------- */
.btn {
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--block   { width: 100%; }
.btn--lg      { height: 60px; font-size: 17px; font-weight: 800; }
.btn--md      { height: 56px; font-size: 16px; font-weight: 800; }
.btn--sm      { height: 44px; font-size: 14px; }
.btn--xs      { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }

.btn--danger  { background: var(--danger); color: #fff; font-weight: 800; }

.btn--soft    { background: var(--raise); border-color: var(--line-2); color: var(--text); }
.btn--soft:hover { border-color: var(--line-3); }

.btn--ghost   { background: transparent; border-color: var(--line-2); color: var(--muted); font-weight: 600; }
.btn--ghost:hover { border-color: var(--line-3); color: var(--text-2); }
.btn--ghost.btn--leave:hover { border-color: var(--danger); color: var(--danger-2); }

.btn--off {
  background: var(--raise);
  border-color: var(--line-2);
  color: var(--dimmer);
  cursor: not-allowed;
}
.btn--off .box {
  width: 14px; height: 14px; border-radius: 3px;
  border: 2px solid var(--dimmer);
}

/* --- pills / chips / dots ---------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--raise);
  font-size: 12px;
  color: var(--muted);
}
.pill--md     { padding: 8px 14px; }
.pill--lg     { padding: 8px 16px; font-size: 13px; }
.pill--accent { background: var(--accent-a14); border-color: var(--accent-a40); color: var(--accent-2); font-weight: 600; }
.pill--ok     { background: var(--ok-a14); border-color: var(--ok-a40); color: var(--ok); font-weight: 700; }
.pill--flat   { background: var(--surf); border-color: var(--line); }
.pill--tint   { background: var(--accent-a12); border-color: var(--accent-a35); color: var(--accent-2); }
.pill--on     { background: var(--raise); border-color: var(--accent); color: var(--accent-2); font-weight: 700; }
.pill--dead   { background: var(--line-dark); border-color: var(--line); color: var(--muted); font-weight: 700; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dot--sm    { width: 6px; height: 6px; }
.dot--ok    { background: var(--ok); }
.dot--warn  { background: var(--warn); }
.dot--blink { animation: blink 1.4s infinite; }

/* 확산 링이 도는 라이브 인디케이터 */
.pulse { position: relative; display: flex; width: 10px; height: 10px; flex: none; }
.pulse::before, .pulse::after { content: ""; position: absolute; border-radius: 50%; }
.pulse::before { inset: 0; background: var(--accent); }
.pulse::after  { inset: -4px; background: rgba(76,111,255,.5); animation: pulseRing 1.6s infinite; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--accent); border-top-color: transparent;
  animation: spin .9s linear infinite;
  flex: none;
}

/* 사각 아이콘 자리 (안내 문구 앞 컬러 칩) */
.mark {
  width: 20px; height: 20px; border-radius: var(--r-xs);
  border: 1px solid var(--accent); background: var(--accent-a14);
  flex: none;
}
.mark--sm     { width: 16px; height: 16px; border-radius: 5px; }
.mark--md     { width: 22px; height: 22px; border-radius: 7px; }
.mark--lg     { width: 26px; height: 26px; border-radius: var(--r-sm); }
.mark--ok     { border-color: var(--ok); background: var(--ok-a18); }
.mark--warn   { border-color: var(--warn); background: var(--warn-a16); }
.mark--danger { border-color: var(--danger); background: var(--danger-a16); }
.mark--hold   { border-color: var(--hold); background: var(--hold-a18); }

/* --- 숫자 표시 ---------------------------------------------------------- */
.stat__label { font-size: 13px; color: var(--muted); }
.stat__value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.stat__value .unit { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat__meta { font-size: 12px; color: var(--dim); }

.kpi__value {
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.metric__value {
  font-size: 64px;
  line-height: .95;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.metric__unit { font-size: 22px; font-weight: 700; color: var(--muted); }

/* 대기 순번 — 이 서비스의 시각적 서명 */
.rank__num {
  font-size: 180px;
  line-height: .82;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.rank__suffix { font-size: 40px; font-weight: 700; color: var(--muted); padding-bottom: 14px; }
.rank--md .rank__num    { font-size: 88px; letter-spacing: -0.055em; }
.rank--md .rank__suffix { font-size: 22px; padding-bottom: 8px; }
.rank--sm .rank__num    { font-size: 76px; line-height: .85; letter-spacing: -0.05em; }
.rank--sm .rank__suffix { font-size: 20px; padding-bottom: 6px; }

/* 카운트다운 */
.countdown { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.countdown__num { font-size: 104px; line-height: .9; font-weight: 800; letter-spacing: -0.05em; }
.countdown__sep { font-size: 64px; line-height: .9; font-weight: 300; color: var(--faint); transform: translateY(-8px); }
.countdown__labels {
  display: flex; gap: 96px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim);
}

/* --- 순번 레일 ---------------------------------------------------------- */
.rail {
  position: relative;
  height: var(--rail-h, 56px);
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 7px);
}
.rail__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--pct, 0%);
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 7px);
  animation: railGlow 2.4s infinite;
}
.rail__fill--ok    { background: repeating-linear-gradient(90deg, var(--ok) 0 1px, transparent 1px 7px); }
.rail__fill--still { animation: none; }
.rail__marker {
  position: absolute; top: -10px; bottom: -10px;
  left: var(--pct, 0%);
  width: 2px;
  background: var(--text);
}
.rail__legend {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--dim);
}
.rail__legend .you { color: var(--text); }

/* --- 진행 바 ------------------------------------------------------------ */
.bar {
  height: var(--bar-h, 8px);
  border-radius: var(--r-pill);
  background: var(--raise);
  overflow: hidden;
}
.bar__fill { height: 100%; width: var(--pct, 0%); border-radius: inherit; background: var(--accent); }
.bar__fill--ok     { background: var(--ok); }
.bar__fill--warn   { background: var(--warn); }
.bar__fill--danger { background: var(--danger); }
.bar__fill--hold   { background: var(--hold); }
.bar__fill--hatch  { background: repeating-linear-gradient(135deg, var(--danger) 0 6px, var(--danger-2) 6px 12px); }

/* --- 좌석도 ------------------------------------------------------------- */
.stage {
  width: 70%;
  height: 34px;
  border-radius: 0 0 60% 60%;
  background: linear-gradient(var(--raise), var(--ink-deep));
  border: 1px solid var(--line-2);
  border-top: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--dim);
}
.stage--sm { width: 60%; height: 22px; font-size: 9px; background: var(--skeleton); }

.seatmap  { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.seatrow  { display: flex; align-items: center; gap: 12px; }
.seatrow__label { font-family: var(--mono); font-size: 11px; color: var(--dimmer); width: 18px; }
.seats    { display: flex; gap: var(--seat-gap, 6px); }

.seat {
  width: var(--seat, 24px);
  height: var(--seat, 24px);
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  display: block;
}
.seat--free   { background: var(--seat-free); border-color: var(--seat-free-line); }
.seat--picked { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-a35); }
.seat--held   { background: var(--hold-a16); border: 1px dashed var(--hold); }
.seat--sold   { background: var(--seat-sold); }
.seat--skel-a { background: var(--skeleton); }
.seat--skel-b { background: var(--raise); }

.seats--sm { --seat: 20px; --seat-gap: 5px; }
.seats--sm .seat { border-radius: 5px; }

.legend { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.legend__item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.legend__swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid transparent; }
.legend--sm { gap: 14px; }
.legend--sm .legend__item { gap: 6px; font-size: 11px; }
.legend--sm .legend__swatch { width: 12px; height: 12px; border-radius: 4px; }

/* --- 토스트 ------------------------------------------------------------- */
.toast {
  border: 1px solid var(--line);
  background: var(--surf);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.toast--error { background: var(--danger-bg); border-color: var(--danger-a35); }
.toast__title { font-size: 15px; font-weight: 700; }
.toast__body  { font-size: 13px; line-height: 1.6; color: var(--muted); }
.toast__code  { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.toast--error .toast__title { color: var(--danger-3); }
.toast--error .toast__body  { color: var(--danger-txt); }
.toast--error .toast__code  { color: var(--danger-txt); opacity: .8; }

/* --- 로그 스트림 --------------------------------------------------------- */
.logbox {
  background: var(--ink-deep);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--mono); font-size: 12px; line-height: 1.5;
}
.logline { display: flex; gap: 10px; }
.logline__ts   { color: var(--dimmer); }
.logline__msg  { color: var(--muted); }
.tag--ok       { color: var(--ok); }
.tag--conflict { color: var(--hold); }
.tag--timeout  { color: var(--warn); }
.tag--admit    { color: var(--accent); }
.tag--expired  { color: var(--danger); }

/* --- 티켓 --------------------------------------------------------------- */
.ticket {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ticket__perf { position: relative; height: 24px; display: flex; align-items: center; }
.ticket__perf::before,
.ticket__perf::after {
  content: ""; position: absolute;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink);
}
.ticket__perf::before { left: -12px; }
.ticket__perf::after  { right: -12px; }
.ticket__perf span {
  flex: 1; margin: 0 16px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
/* 스캐너가 읽도록 다크 테마에서도 흰 바탕에 검은 모듈 */
.qr {
  width: 104px; height: 104px; border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 6px;
  flex: none;
}
.qr svg { display: block; width: 100%; height: 100%; }

/* --- 플레이스홀더 -------------------------------------------------------- */
.poster {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--hatch);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
}
.thumb {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--hatch);
}

/* --- 예매 내역 ---------------------------------------------------------- */
.res-item {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: flex; gap: 20px; align-items: center;
}
.res-item--dead { background: var(--ink-deep); border-color: var(--line-dark); opacity: .75; }
.res-item__thumb { width: 64px; height: 84px; border-radius: var(--r-sm); flex: none; overflow: hidden; }
.res-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.res-item--dead .res-item__thumb img { filter: grayscale(1); }
.res-item__title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.res-item__meta  { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.res-item__code  { font-family: var(--mono); font-size: 11px; color: var(--dim); }

.empty {
  background: var(--ink-deep);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

/* --- 모달 --------------------------------------------------------------- */
.modal-stage {
  display: flex; align-items: center; justify-content: center;
  padding: 56px;
}
.modal {
  width: 480px;
  background: var(--surf);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}

/* --- 모바일 프레임 375 --------------------------------------------------- */
.phone {
  width: 375px;
  background: var(--ink);
  border: 1px solid var(--line-dim);
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  flex: none;
}
.phone__statusbar {
  height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.phone__body { padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 26px; }

/* --- 회차 탭 ------------------------------------------------------------ */
.round {
  padding: 14px 20px;
  border-radius: var(--r);
  background: var(--surf);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  min-width: 150px;
  flex: none;
}
.round__time { font-size: 15px; font-weight: 600; }
.round__left { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.round--on { background: var(--accent); border-color: var(--accent); }
.round--on .round__time { color: #fff; font-weight: 700; }
.round--on .round__left { color: rgba(255,255,255,.75); }
.round--sold { background: var(--ink-deep); border-color: var(--line-dark); }
.round--sold .round__time { color: var(--disabled); }

/* --- 반응형 ------------------------------------------------------------- */
@media (max-width: 1560px) {
  .page { padding: 48px 32px 120px; }
}
@media (max-width: 900px) {
  .page { padding: 32px 20px 80px; }
  .rank__num { font-size: 108px; }
  .countdown__num { font-size: 64px; }
  .countdown__sep { font-size: 40px; }
  .countdown__labels { gap: 48px; }
}

/* --- 실시간 상태 --------------------------------------------------------- */
[hidden] { display: none !important; }

/* 토스트 스택 (우측 상단) */
.toast-host {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 420px;
  max-width: calc(100vw - 40px);
}
.toast-host .toast { box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }

/* 좌석은 선택 가능할 때만 커서가 바뀐다 */
.seat--free { cursor: pointer; }
.seat--free:hover { border-color: var(--accent); }
.seat--picked { cursor: pointer; }

/* 순번 10 이하 — '곧 입장' */
body.queue--imminent .rank__num { color: var(--ok); }
body.queue--imminent .rank__suffix { color: var(--ok); opacity: .7; }
body.queue--imminent .rail__fill { background: repeating-linear-gradient(90deg, var(--ok) 0 1px, transparent 1px 7px); }

/* 결제 홀드 1분 이하 */
body.hold--warning .hold-clock { color: var(--warn); animation: blink 1.1s infinite; }
body.hold--warning .bar__fill--hold { background: var(--warn); }
body.hold--warning [data-hold-normal] { display: none; }
body.hold--warning [data-hold-warning] { display: flex; }

/* 홀드 만료 */
body.hold--expired [data-hold-normal],
body.hold--expired [data-hold-warning],
body.hold--expired [data-hold-form] { display: none; }
body.hold--expired [data-hold-expired] { display: flex; }
[data-hold-warning], [data-hold-expired] { display: none; }

/* 버튼 비활성 */
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary:disabled:hover { background: var(--accent); }

/* 모달 오버레이 */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}

/* --- service chrome (손님 상단바 · 테마 · 하단 정보) ------------------------ */
.navlinks a { color: var(--muted); }
.navlinks a:hover, .navlinks a.on { color: var(--text); }
.navlinks a.on { font-weight: 700; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surf); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn__sun { display: none; }
:root:not([data-theme="light"]) .icon-btn__moon { display: none; }
:root:not([data-theme="light"]) .icon-btn__sun { display: block; }
.member { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.member:hover { color: var(--text); }
.appbar--admin { background: var(--ink-deep); }
.admin-tag {
  font-size: 10.5px; letter-spacing: .14em; padding: 3px 7px; border-radius: var(--r-xs);
  background: var(--text); color: var(--bg);
}

.sitefoot { border-top: 1px solid var(--line); margin-top: 24px; font-size: 13px; color: var(--muted); }
.sitefoot__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding: 32px 48px 24px; }
.sitefoot__head { font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.sitefoot__note { margin: 0; line-height: 1.6; max-width: 32ch; }
.sitefoot__bar { display: flex; justify-content: space-between; padding: 14px 48px 28px; border-top: 1px solid var(--line-dim); color: var(--dim); font-size: 12px; }
.sitefoot__bar a { color: var(--dim); }
.sitefoot__bar a:hover { color: var(--text); }

/* --- 공연 목록 홈 ---------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surf); }
.feature__poster { display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; box-shadow: 0 12px 28px rgba(14, 15, 19, .18); }
.feature__poster img, .feature__poster .poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature__title { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; }
.pcard { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.pcard:hover { color: var(--text); }
.pcard__poster { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--hatch); border: 1px solid var(--line); }
.pcard__poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.pcard:hover .pcard__poster img { transform: scale(1.03); }
.pcard__badge { position: absolute; left: 10px; top: 10px; padding: 5px 9px; border-radius: var(--r-xs); background: rgba(14, 15, 19, .82); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.pcard__badge--sold { background: var(--danger); }
.pcard__meta { display: flex; flex-direction: column; gap: 3px; }
.pcard__cat { font-size: 12px; font-weight: 700; color: var(--accent); }
.pcard__title { font-size: 16px; line-height: 1.35; font-weight: 700; }
.pcard:hover .pcard__title { color: var(--accent); }
.pcard__sub { font-size: 13px; color: var(--muted); }
.pcard__left { font-size: 13px; font-weight: 700; color: var(--ok); margin-top: 2px; }

/* 상세 화면 포스터 이미지 */
.poster--img { padding: 0; overflow: hidden; }
.poster--img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- 언어 전환 (EN · 한) ------------------------------------------------- */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surf); }
.lang-toggle a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang-toggle a + a { border-left: 1px solid var(--line); }
.lang-toggle a:hover { color: var(--text); }
.lang-toggle a.on { background: var(--text); color: var(--bg); }

/* --- 휴대폰 ------------------------------------------------------------- */
/* 화면 대부분이 인라인 격자라, 좁은 폭에서는 !important 로 한 칸으로 접는다 */
@media (max-width: 900px) {
  .appbar { height: auto; min-height: 56px; padding: 6px 16px; flex-wrap: wrap; gap: 0 12px; }
  .appbar > .row { --gap: 14px !important; min-width: 0; }
  .appbar > .row:last-child { margin-left: auto; }
  .brand { letter-spacing: .12em; }
  .navlinks { gap: 14px; white-space: nowrap; }
  .navlinks a { display: inline-flex; align-items: center; min-height: 44px; }
  .member { display: none; }
  .lang-toggle a { min-width: 44px; height: 44px; }
  .icon-btn { width: 44px; height: 44px; }

  .shell { overflow-x: clip; }
  .view { padding: 20px 16px 40px; gap: 28px !important; }
  .panel { padding: 20px 16px !important; }
  .grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; --gap: 24px !important; }
  .grid[style*="--cols:4"], .grid[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; --gap: 10px !important; }
  .grid > [style*="border-right"] { border-right: 0 !important; padding: 20px 16px !important; }
  .grid > [style*="padding:"] { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="width:360px"], [style*="width:320px"] { width: 100% !important; }
  .row.between { flex-wrap: wrap; gap: 12px; }
  .panel.row { flex-direction: column; align-items: stretch; --gap: 20px !important; }
  [style*="min-width:360px"], [style*="min-width:320px"] { min-width: 0 !important; }

  .feature { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px; }
  .feature__poster { width: min(240px, 100%); margin: 0 auto; }
  .feature__title { font-size: 28px; }
  .section-title { font-size: 20px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 12px; }
  .countdown__num { font-size: 56px; }
  .countdown__sep { font-size: 34px; }
  .countdown__labels { gap: 40px; }
  .rank__num { font-size: 84px; }

  /* 좌석은 손가락으로 누를 크기를 지키고 좌석도만 옆으로 민다 */
  .seatmap { align-items: flex-start; overflow-x: auto; width: 100%; padding-bottom: 8px; }
  .seatmap .seats { --seat: 30px; --seat-gap: 6px; }
  .seatrow .seats + .seatrow__label { display: none; }
  .hold-clock { font-size: 84px !important; }
  .row.baseline { flex-wrap: wrap; }
  .pill--lg { display: inline-flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .seg__btn { min-height: 44px; }
  .btn--xs { min-height: 44px; }
  select.btn { max-width: 100%; }
  .seatrow { flex: none; }

  .res-item { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .res-item .grow { flex: 1 1 180px; min-width: 0; }
  .logline { flex-wrap: wrap; overflow-wrap: anywhere; }
  .modal { max-width: 100%; }
  .sitefoot__inner { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 16px 20px; }
  .sitefoot__bar { padding: 14px 16px 24px; align-items: center; }
  .sitefoot__bar a { display: inline-flex; align-items: center; min-height: 44px; }
}
