/* ============================================================
   문래창작소극장 — 메인 스타일시트 v2.0
   테마: Cinematic Stage (극장 네이비블랙 + 골드)
   2026.08.14 반응형 전체 리뉴얼
   ============================================================ */

/* === 01. 디자인 토큰 ===================================== */
:root {
  /* ── Cinematic Stage 컬러 팔레트 (다크 기본) ─────────── */
  --bg-base:       #07091a;
  --bg-surface:    #0c1226;
  --bg-card:       #121a30;
  --bg-card-hover: #19233c;
  --bg-elevated:   #1c2840;
  --bg-nav:        rgba(7,9,26,.9);

  --text-primary:   #ede8e1;
  --text-secondary: #7a8fa8;
  --text-muted:     #3e4f66;

  --accent:        #d4a843;
  --accent-hover:  #dfb954;
  --accent-dark:   #a07c28;
  --accent-light:  #e8c475;
  --accent-lo:     rgba(212,168,67,.12);
  --accent-rgb:    212, 168, 67;

  --border:        rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.14);
  --border-light:  rgba(255,255,255,.07);

  --status-pending:   #f59e0b;
  --status-confirmed: #22c55e;
  --status-cancelled: #ef4444;
  --status-upcoming:  #60a5fa;

  /* radius 스케일 — sm(입력/뱃지) · md(버튼) · lg(카드) · xl(대형 카드/모달) */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius:     12px;   /* = lg, 카드 기본값. 변수명은 하위 호환을 위해 유지 */
  --radius-lg:  16px;   /* = xl, 대형 카드/모달 */
  --radius-full: 9999px;

  --shadow-card: 0 4px 32px rgba(0,0,0,.55);
  --shadow-nav:  0 1px 24px rgba(0,0,0,.6);
  --shadow-md:   0 8px 24px rgba(0,0,0,.4);
  --shadow-lg:   0 16px 64px rgba(0,0,0,.6);

  /* ── Spacing — 4pt 스케일 ───────────────────────────── */
  --s-1:  4px;   --s-2:  8px;   --s-3: 12px;  --s-4: 16px;
  --s-5:  20px;  --s-6:  24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px;  --s-16: 64px;  --s-20: 80px; --s-24: 96px;

  /* ── Z-index 계층 ───────────────────────────────────── */
  --z-base:     1;
  --z-dropdown: 20;
  --z-sticky:   40;
  --z-overlay:  98;
  --z-nav:     100;
  --z-sidebar: 300;
  --z-modal:   400;

  /* ── Transitions ────────────────────────────────────── */
  --ease-fast:   150ms ease;
  --ease-base:   250ms ease;
  --ease-slow:   380ms ease;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* ── 레이아웃 ─────────────────────────────────────────── */
  --font-base:  'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --max-width:  1100px;
  --nav-h:      64px;
  --sidebar-w:  240px;

  /* 하위 호환용 aliases */
  --font-display: var(--font-base);
  --font-body:    var(--font-base);
  --bg-nav-color: var(--bg-nav);
}

/* ── 라이트 모드 (따뜻한 크림빛 극장 로비) ──────────────── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-base:       #f2ede5;
    --bg-surface:    #ffffff;
    --bg-card:       #faf7f1;
    --bg-card-hover: #f5efe5;
    --bg-elevated:   #ffffff;
    --bg-nav:        rgba(242,237,229,.96);
    --text-primary:  #1e180e;
    --text-secondary:#6b5f4a;
    --text-muted:    #b0a08a;
    --accent:        #9b7020;
    --accent-hover:  #b58428;
    --accent-dark:   #7a5518;
    --accent-light:  #c89840;
    --accent-lo:     rgba(155,112,32,.1);
    --accent-rgb:    155, 112, 32;
    --border:        rgba(0,0,0,.09);
    --border-strong: rgba(0,0,0,.16);
    --border-light:  rgba(0,0,0,.09);
    --shadow-card:   0 2px 16px rgba(0,0,0,.1);
    --shadow-nav:    0 1px 8px rgba(0,0,0,.12);
    --shadow-md:     0 4px 16px rgba(0,0,0,.1);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.15);
  }
}

:root[data-theme="dark"] {
  --bg-base:       #07091a;
  --bg-surface:    #0c1226;
  --bg-card:       #121a30;
  --bg-card-hover: #19233c;
  --bg-elevated:   #1c2840;
  --bg-nav:        rgba(7,9,26,.9);
  --text-primary:  #ede8e1;
  --text-secondary:#7a8fa8;
  --text-muted:    #3e4f66;
  --accent:        #d4a843;
  --accent-hover:  #dfb954;
  --accent-dark:   #a07c28;
  --accent-light:  #e8c475;
  --accent-lo:     rgba(212,168,67,.12);
  --accent-rgb:    212, 168, 67;
  --border:        rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.14);
  --border-light:  rgba(255,255,255,.07);
  --shadow-card:   0 4px 32px rgba(0,0,0,.55);
  --shadow-nav:    0 1px 24px rgba(0,0,0,.6);
  --shadow-md:     0 8px 24px rgba(0,0,0,.4);
  --shadow-lg:     0 16px 64px rgba(0,0,0,.6);
}

/* === 02. 리셋 & 기본 ===================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color var(--ease-fast); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; touch-action: manipulation; }

/* === 03. 타이포그래피 ===================================== */
h1, h2, h3, h4 {
  line-height: 1.2;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* === 04. 레이아웃 헬퍼 =================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--s-6);
  padding-right: var(--s-6);
}

/* 세로 padding만 지정 — .container와 한 요소에 같이 써도(예: class="container section")
   좌우 padding을 덮어쓰지 않도록 축약(shorthand) 대신 longhand 사용 */
.section { padding-top: var(--s-20); padding-bottom: var(--s-20); }

.section-header { margin-bottom: var(--s-10); }
.section-header h2 { margin-bottom: var(--s-2); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* === 05. 내비게이션 ======================================= */
.hall-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  transition: background var(--ease-base), border-color var(--ease-base);
}

.hall-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--text-primary);
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--text-primary); opacity: .85; }

.nav-links {
  display: flex;
  gap: var(--s-8);
  align-items: center;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--s-1) var(--s-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color var(--ease-fast);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active {
  color: var(--text-primary);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: var(--s-2); right: var(--s-2); bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 0 var(--s-5) !important;
  min-height: 38px;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: .85rem !important;
  display: inline-flex;
  align-items: center;
  transition: background var(--ease-fast) !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #000 !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  transition: background var(--ease-fast);
  padding: 0;
}
.nav-hamburger:hover { background: var(--bg-card); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background var(--ease-base), transform var(--ease-base), opacity var(--ease-base);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: var(--z-overlay);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

.hall-nav.is-scrolled {
  background: var(--bg-base);
  border-bottom-color: var(--border-strong);
}

/* 스크린리더/키보드 사용자를 위한 본문 바로가기 링크 */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--s-4);
  z-index: var(--z-modal);
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: .88rem;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius-sm);
  transition: top var(--ease-fast);
}
.skip-link:focus {
  top: var(--s-4);
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* === 06. 히어로 =========================================== */
.hall-hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #07091a 0%, #0e0717 45%, #07091a 100%);
  z-index: 0;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .28;
  mix-blend-mode: luminosity;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7,9,26,.92) 30%, rgba(7,9,26,.25) 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: .25;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.hero-eyebrow span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text-primary);
  line-height: 1.0;
  margin-bottom: var(--s-4);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent-light);
  margin-bottom: var(--s-3);
  font-weight: 400;
}
.hero-desc {
  font-size: .97rem;
  color: var(--text-secondary);
  white-space: pre-line;
  margin-bottom: var(--s-8);
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* === 07. 버튼 ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0 var(--s-6);
  min-height: 44px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: .93rem;
  transition:
    background var(--ease-fast),
    color var(--ease-fast),
    border-color var(--ease-fast),
    transform var(--ease-fast),
    box-shadow var(--ease-fast);
  line-height: 1;
  touch-action: manipulation;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb),.3);
}

.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-danger {
  border: 1.5px solid rgba(239,68,68,.4);
  color: var(--status-cancelled);
}
.btn-danger:hover {
  background: rgba(239,68,68,.08);
  border-color: var(--status-cancelled);
}

.btn-sm {
  min-height: 36px;
  padding: 0 var(--s-4);
  font-size: .82rem;
}

.btn.is-loading {
  pointer-events: none;
  opacity: .65;
}
.btn:disabled:not(.is-loading) {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* === 08. 배지 ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem var(--s-2);
  border-radius: var(--radius-sm);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.badge--on-sale   { background: rgba(var(--accent-rgb),.15); color: var(--accent); }
.badge--upcoming  { background: rgba(96,165,250,.15);         color: var(--status-upcoming); }
.badge--sold-out  { background: rgba(239,68,68,.1);           color: var(--status-cancelled); }
.badge--ended     { background: var(--border);                color: var(--text-muted); }
.badge--pending   { background: rgba(245,158,11,.15);         color: var(--status-pending); }
.badge--confirmed { background: rgba(34,197,94,.15);          color: var(--status-confirmed); }
.badge--cancelled { background: rgba(239,68,68,.1);           color: var(--status-cancelled); }

/* === 09. 공연 카드 ======================================== */
.perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
  display: flex;
  flex-direction: column;
}
.perf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(var(--accent-rgb),.35);
}

.perf-card-poster {
  aspect-ratio: 3/4;
  background: var(--bg-surface);
  overflow: hidden;
  position: relative;
}
.perf-card-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.perf-card:hover .perf-card-poster img { transform: scale(1.05); }
.perf-card-poster-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}

.perf-card-body {
  padding: var(--s-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.perf-card-title {
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.35;
}
.perf-card-meta {
  font-size: .8rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
}
.perf-card-price {
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: var(--s-2);
  font-size: .93rem;
}

/* ── 피처드 공연 카드 ──────────────────────────────────── */
.featured-perf {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.featured-perf-poster {
  background: var(--bg-surface);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.featured-perf-poster img { width: 100%; height: 100%; object-fit: cover; }
.featured-perf-poster-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--text-muted);
}
.featured-perf-body {
  padding: var(--s-8);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.featured-perf-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.featured-perf-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  font-size: .85rem; color: var(--text-secondary);
}
.featured-perf-meta strong { color: var(--text-primary); font-weight: 600; }
.featured-perf-price {
  font-size: 1.5rem; font-weight: 800;
  color: var(--accent); font-variant-numeric: tabular-nums;
}

/* ── 공연 카드 슬라이더 ────────────────────────────────── */
.perf-slider-outer { position: relative; overflow: hidden; }
.perf-slider-track {
  display: flex;
  gap: var(--s-5);
  transition: transform .38s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
  touch-action: pan-y;
}
.perf-slider-item {
  flex: 0 0 calc((100% - var(--s-10)) / 3);
  min-width: 0;
}
.perf-slider-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  height: 100%;
}
.perf-slider-card:hover {
  border-color: rgba(var(--accent-rgb),.4);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  transform: translateY(-3px);
  color: inherit;
}
.perf-slider-poster {
  aspect-ratio: 3/4; overflow: hidden; background: var(--bg-surface);
}
.perf-slider-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--ease-slow);
}
.perf-slider-card:hover .perf-slider-poster img { transform: scale(1.05); }
.perf-slider-poster-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}
.perf-slider-body {
  padding: var(--s-4) var(--s-5);
  flex: 1; display: flex; flex-direction: column; gap: var(--s-2);
}
.perf-slider-title {
  font-weight: 700; font-size: .95rem; line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.perf-slider-meta {
  font-size: .77rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3);
}
.perf-slider-price {
  font-weight: 700; color: var(--accent); font-size: .92rem;
  margin-top: auto; padding-top: var(--s-2);
}
.slider-nav { display: flex; gap: var(--s-2); }
.slider-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer; font-size: 1rem;
  color: var(--text-secondary);
  transition: border-color var(--ease-fast), color var(--ease-fast), background var(--ease-fast);
  touch-action: manipulation;
}
.slider-btn:hover:not(:disabled) {
  border-color: var(--accent); color: var(--accent); background: var(--accent-lo);
}
.slider-btn:disabled { opacity: .3; cursor: default; }

/* === 10. 일정 테이블 ====================================== */
.schedule-table-wrap { overflow-x: auto; }
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
}
.schedule-table thead th {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.schedule-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--ease-fast);
}
.schedule-table tbody tr:last-child { border-bottom: none; }
.schedule-table tbody tr:hover { background: var(--bg-card-hover); }
.schedule-table td { padding: var(--s-4); vertical-align: middle; }
.schedule-table .td-title { font-weight: 600; }
.schedule-table .td-date { white-space: nowrap; color: var(--text-secondary); }
.schedule-table .td-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-table .td-price {
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent);
}
.schedule-table .td-action { text-align: right; white-space: nowrap; }

/* ── 날짜 탭 (수평 스크롤 + scroll-snap) ────────────────── */
.date-tabs {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-2);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.date-tabs::-webkit-scrollbar { height: 3px; }
.date-tabs::-webkit-scrollbar-track { background: transparent; }
.date-tabs::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: var(--radius-full);
}

.date-tab {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--ease-fast), color var(--ease-fast), background var(--ease-fast);
  min-width: 66px; min-height: 48px;
  gap: var(--s-1);
  flex-shrink: 0;
  scroll-snap-align: start;
  touch-action: manipulation;
}
.date-tab:hover { border-color: var(--accent); color: var(--text-primary); }
.date-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-lo);
  color: var(--accent);
}
.date-tab-month { font-size: .63rem; font-weight: 600; opacity: .7; }
.date-tab-day   { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.date-tab-dow   { font-size: .68rem; font-weight: 600; }
.date-tab-count { font-size: .63rem; color: var(--text-muted); margin-top: var(--s-1); }
.date-tab[aria-selected="true"] .date-tab-count { color: var(--accent-light); opacity: .8; }
.date-panel { display: none; }
.date-panel.active { display: block; }

/* === 11. 예매 단계 인디케이터 ============================ */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-8);
  padding: var(--s-4) 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: .82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
  flex-shrink: 0;
  transition: background var(--ease-base), border-color var(--ease-base), color var(--ease-base);
}
.step-item.active { color: var(--text-primary); font-weight: 600; }
.step-item.active .step-num {
  background: var(--accent); border-color: var(--accent); color: #000;
}
.step-item.done { color: var(--text-secondary); }
.step-item.done .step-num {
  background: var(--status-confirmed); border-color: var(--status-confirmed); color: #fff;
}
.step-connector {
  width: var(--s-8); height: 1px;
  background: var(--border-strong);
  margin: 0 var(--s-2); flex-shrink: 0;
}

/* === 12. 예매 폼 / 폼 컨트롤 ============================= */
.booking-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  max-width: 540px;
}

.form-group { margin-bottom: var(--s-5); }
.form-label {
  display: block;
  font-size: .83rem; font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--text-secondary);
}
.form-label .required { color: var(--accent); margin-left: var(--s-1); }

.form-control {
  width: 100%;
  padding: 0 var(--s-4);
  height: 48px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem; /* iOS 자동 확대 방지 */
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  touch-action: manipulation;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lo);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control {
  height: auto; min-height: 100px;
  padding: var(--s-3) var(--s-4);
  resize: vertical; line-height: 1.7;
}
select.form-control {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8fa8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  padding-right: var(--s-10);
}
.form-hint {
  display: block; font-size: .78rem;
  color: var(--text-muted); margin-top: var(--s-1); line-height: 1.5;
}
.form-error {
  display: block; font-size: .78rem;
  color: var(--status-cancelled); margin-top: var(--s-1);
}

/* === 13. 계좌 복사 박스 ================================== */
.bank-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
}
.bank-info { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bank-label {
  font-size: .78rem; color: var(--text-secondary);
  margin-bottom: var(--s-1); font-weight: 500;
}
.btn-copy {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 var(--s-4);
  height: 40px;
  font-size: .82rem; font-weight: 600;
  color: var(--text-secondary);
  transition: border-color var(--ease-fast), color var(--ease-fast);
  display: flex; align-items: center; gap: var(--s-2);
  touch-action: manipulation; white-space: nowrap;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy.copied { border-color: var(--status-confirmed); color: var(--status-confirmed); }

/* === 14. FAQ 아코디언 ====================================== */
.faq-list { display: flex; flex-direction: column; gap: var(--s-2); }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--ease-fast);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: rgba(var(--accent-rgb),.3); }
.faq-item summary {
  padding: var(--s-4) var(--s-5);
  cursor: pointer; font-weight: 600; font-size: .93rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  transition: background var(--ease-fast);
  min-height: 52px; user-select: none; touch-action: manipulation;
}
.faq-item summary:hover { background: var(--bg-card-hover); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; color: var(--accent);
  flex-shrink: 0; transition: transform var(--ease-base);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--bg-card-hover); }
.faq-answer {
  padding: var(--s-4) var(--s-5) var(--s-5);
  color: var(--text-secondary);
  font-size: .88rem; line-height: 1.8;
  border-top: 1px solid var(--border);
}

/* === 15. 공지사항 ========================================= */
.notice-list { display: flex; flex-direction: column; gap: var(--s-2); }
.notice-item {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--ease-fast), background var(--ease-fast);
  min-height: 56px;
}
.notice-item:hover {
  border-color: rgba(var(--accent-rgb),.3); background: var(--bg-card-hover);
}
.notice-item-pin { color: var(--accent); font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.notice-item-title { flex: 1; font-weight: 500; font-size: .9rem; line-height: 1.45; }
.notice-item-date {
  font-size: .78rem; color: var(--text-muted);
  white-space: nowrap; font-variant-numeric: tabular-nums; flex-shrink: 0;
}

/* === 16. 공연 상세 ========================================= */
.perf-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-10); align-items: start;
}
.perf-hero-poster {
  width: 220px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover; aspect-ratio: 2/3;
}
.perf-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-12); align-items: start;
}
.perf-detail-aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-6));
}

/* 출연진 그리드 */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-5);
}
.cast-card {
  display: flex; gap: var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-4); align-items: flex-start;
}
.cast-card-img {
  flex-shrink: 0; width: 72px; height: 90px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.cast-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cast-img-placeholder { font-size: 1.8rem; opacity: .3; }
.cast-card-body { flex: 1; min-width: 0; }
.cast-name  { font-weight: 700; font-size: .95rem; margin-bottom: var(--s-1); }
.cast-role  { font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: var(--s-2); }
.cast-bio   { font-size: .82rem; color: var(--text-secondary); line-height: 1.65; white-space: pre-line; }

/* 출연진 편집 그리드 */
.cast-inner-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-4);
  background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-4);
}

/* === 17. 소개 페이지 ======================================= */
.about-photo-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-5); margin-bottom: var(--s-10);
}

/* === 18. 브레드크럼 ======================================== */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2);
  padding: 0; margin: 0 0 var(--s-6);
  font-size: .8rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--ease-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .4; }

/* === 19. 푸터 ============================================= */
.hall-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--s-12) 0 var(--s-8);
  font-size: .85rem; color: var(--text-secondary);
}
.hall-footer .container {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-8); align-items: start;
}
/* 하단 저작권/관리자 줄은 자식이 1개뿐이라 grid를 적용하면 오른쪽에
   빈 auto 칸+gap만큼 여백이 남아 우측 정렬이 어긋남 → block으로 되돌림 */
.hall-footer .container:last-of-type { display: block; }
.footer-logo {
  font-size: 1.05rem; font-weight: 800; letter-spacing: .01em;
  color: var(--text-primary); margin-bottom: var(--s-3);
}
.footer-logo span { color: var(--accent); }
.footer-info { line-height: 1.9; }
.footer-links {
  display: flex; flex-direction: column;
  gap: var(--s-2); text-align: right;
}
.footer-links a { color: var(--text-secondary); transition: color var(--ease-fast); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .78rem; color: var(--text-muted); }
.footer-rule {
  border: none; border-top: 1px solid var(--border);
  margin: var(--s-8) 0 0;
}

/* === 20. 관리자 공통 ======================================= */
.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100svh;
}

.admin-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: var(--s-6) 0;
  position: sticky; top: 0;
  height: 100svh; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.admin-sidebar-logo {
  padding: 0 var(--s-5) var(--s-5);
  font-weight: 800; font-size: .88rem; letter-spacing: .01em;
  border-bottom: 1px solid var(--border); margin-bottom: var(--s-3);
}
.admin-sidebar-logo small {
  display: block; font-size: .68rem; font-weight: 400;
  color: var(--text-muted); letter-spacing: .04em; margin-top: var(--s-1);
}

/* 아코디언 그룹 */
.admin-nav-details { border-bottom: 1px solid var(--border); }
.admin-nav-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) var(--s-5);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer; list-style: none;
  user-select: none; touch-action: manipulation;
  transition: color var(--ease-fast); min-height: 40px;
}
.admin-nav-summary::-webkit-details-marker,
.admin-nav-summary::marker { display: none; }
.admin-nav-summary::after {
  content: '›'; font-size: 1.1rem; line-height: 1;
  flex-shrink: 0; transition: transform var(--ease-base); color: inherit;
}
.admin-nav-details[open] > .admin-nav-summary::after { transform: rotate(90deg); }
.admin-nav-summary:hover { color: var(--text-primary); }
.admin-nav-sub  { padding-bottom: var(--s-1); }
.admin-nav-flat { border-bottom: 1px solid var(--border); }

.admin-nav-link {
  display: flex; align-items: center;
  padding: var(--s-2) var(--s-5);
  font-size: .87rem; color: var(--text-secondary);
  transition: background var(--ease-fast), color var(--ease-fast);
  min-height: 40px; touch-action: manipulation;
}
.admin-nav-link:hover { background: var(--bg-card); color: var(--text-primary); }
.admin-nav-link.active {
  background: var(--accent-lo);
  color: var(--accent);
  font-weight: 600;
  border-right: 2px solid var(--accent);
}

.admin-sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: var(--s-2); margin-top: var(--s-2);
}

.admin-main {
  padding: var(--s-8);
  overflow-x: hidden; min-width: 0;
}
.admin-page-title {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: var(--s-6); padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}

/* ── 관리자 모바일 상단 바 ─────────────────────────────── */
.admin-mobile-bar {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 0 var(--s-4);
  height: 52px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: var(--z-sidebar);
}
.admin-mobile-left { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.admin-mobile-logo {
  font-size: .85rem; font-weight: 800; letter-spacing: .01em;
  display: inline-flex; align-items: baseline; white-space: nowrap;
}
.admin-mobile-logo span  { color: var(--accent); }
.admin-mobile-logo small {
  font-size: .65rem; font-weight: 500;
  letter-spacing: .04em; color: var(--text-muted); margin-left: var(--s-2);
}
.admin-mobile-back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.2rem; line-height: 1;
  cursor: pointer; touch-action: manipulation;
  transition: border-color var(--ease-fast), color var(--ease-fast);
}
.admin-mobile-back-btn:hover { border-color: var(--accent); color: var(--accent); }
.admin-mobile-menu-btn {
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer; touch-action: manipulation;
  transition: border-color var(--ease-fast);
}
.admin-mobile-menu-btn:hover { border-color: var(--accent); }
.admin-mobile-menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text-secondary); border-radius: 1px;
  transition: background var(--ease-fast);
}
.admin-mobile-menu-btn:hover span { background: var(--accent); }

/* ── 관리자 사이드바 오버레이 ─────────────────────────── */
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 290;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.admin-sidebar-overlay.open { display: block; }

/* === 21. 관리자 테이블 ===================================== */
.admin-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  font-size: .88rem;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.admin-table thead th {
  background: var(--bg-surface);
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--ease-fast);
}
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-card-hover); }
.admin-table td { padding: var(--s-4); vertical-align: middle; }

/* === 22. 관리자 폼 ======================================== */
.admin-form {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-8); max-width: 700px;
}
.admin-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4);
}
.admin-form textarea.form-control { resize: vertical; min-height: 100px; }
.admin-form-actions {
  display: flex; gap: var(--s-3);
  margin-top: var(--s-6); padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}

/* ── 관리자 필터 폼 ────────────────────────────────────── */
.admin-filter-form {
  display: flex; flex-wrap: wrap;
  gap: var(--s-3); margin-bottom: var(--s-6); align-items: flex-end;
}

/* === 23. 접근성 & 유틸리티 ================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* === 24. 브레이크포인트 — 4단계 체계 =====================
   1024px → 태블릿 가로
    768px → 태블릿 세로 / 모바일 상단 기준
    640px → 모바일
    480px → 소형 모바일
   ======================================================= */

/* ── 1024px ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .perf-detail-grid { grid-template-columns: 1fr 300px; gap: var(--s-8); }
}

/* ── 768px ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* 공개 nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    min-height: calc(100svh - var(--nav-h));
    background: var(--bg-nav);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    padding: var(--s-8) var(--s-6);
    gap: var(--s-4); align-items: flex-start;
    z-index: var(--z-overlay);
  }
  .nav-links.open a {
    font-size: 1.05rem; min-height: 48px;
    display: flex; align-items: center; width: 100%;
    padding: 0 var(--s-4); border-radius: var(--radius);
  }
  .nav-links.open a:hover { background: var(--bg-card); }

  .section { padding-top: var(--s-16); padding-bottom: var(--s-16); }
  .admin-main { padding: var(--s-5) var(--s-4); }
  .admin-dashboard-grid { grid-template-columns: 1fr !important; }

  .featured-perf { grid-template-columns: 1fr; }
  .featured-perf-poster { min-height: 200px; aspect-ratio: 16/7; }

  .hall-footer .container { grid-template-columns: 1fr; }
  .footer-links { text-align: left; flex-direction: row; flex-wrap: wrap; }
  .footer-links a:not(:last-child)::after {
    content: '/';
    margin-left: var(--s-2);
    color: var(--text-muted);
  }

  /* admin 레이아웃 */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-mobile-bar { display: flex; }
  .admin-sidebar {
    position: fixed; top: 0;
    left: calc(-1 * var(--sidebar-w) - 20px);
    width: var(--sidebar-w);
    height: 100svh; z-index: var(--z-sidebar);
    overflow-y: auto; padding: var(--s-5) 0;
    border-right: 1px solid var(--border-strong);
    transition: left var(--ease-base), box-shadow var(--ease-base);
  }
  .admin-sidebar.open { left: 0; box-shadow: var(--shadow-lg); }

  .admin-form .form-row { grid-template-columns: 1fr; }

  /* 공연 상세 */
  .perf-detail-grid { grid-template-columns: 1fr; }
  .perf-detail-aside { position: static; }
  .perf-hero-grid { grid-template-columns: 1fr; }
  .perf-hero-poster { width: 100%; max-width: 260px; }

  /* 슬라이더 */
  .perf-slider-item { flex: 0 0 calc((100% - var(--s-5)) / 2); }
}

/* ── 640px ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding-left: var(--s-4); padding-right: var(--s-4); }
  .section { padding-top: var(--s-12); padding-bottom: var(--s-12); }

  /* admin 필터 */
  .admin-filter-form { flex-direction: column; }
  .admin-filter-form > * { width: 100%; }
  .admin-filter-form .btn { width: 100%; justify-content: center; }

  /* admin 테이블 → 카드 */
  .admin-table-card { display: block; border: none; background: none; }
  .admin-table-card thead { display: none; }
  .admin-table-card tbody { display: block; }
  .admin-table-card tbody tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: var(--s-4); margin-bottom: var(--s-3);
  }
  .admin-table-card tbody tr:last-child { margin-bottom: 0; }
  .admin-table-card tbody tr:hover { background: var(--bg-card-hover); }
  .admin-table-card td {
    display: flex; align-items: center; gap: var(--s-2);
    padding: var(--s-1) 0; border: none;
    vertical-align: unset; font-size: .87rem; min-height: 0;
    text-align: left !important; /* 데스크탑 테이블용 text-align:center가 카드뷰 라벨까지 밀지 않도록 강제 좌측 정렬 */
  }
  .admin-table-card td::before {
    content: attr(data-label);
    flex: 0 0 5rem;
    font-size: .68rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); padding-top: .1rem; line-height: 1.4;
  }
  .admin-table-card td[data-label=""] {
    border-top: 1px solid var(--border);
    padding-top: var(--s-3); margin-top: var(--s-2);
  }
  .admin-table-card td[data-label=""]::before { display: none; }

  /* schedule 테이블 → 카드 */
  .schedule-table thead { display: none; }
  .schedule-table tbody tr {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--s-1) var(--s-3);
    background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: var(--s-3); padding: var(--s-4);
  }
  .schedule-table tbody tr:last-child { margin-bottom: 0; }
  .schedule-table td { border: none; padding: 0; }
  .schedule-table .td-title {
    flex: 0 0 100%; font-size: .93rem; font-weight: 700;
    padding-bottom: var(--s-2); border-bottom: 1px solid var(--border); margin-bottom: var(--s-1);
  }
  .schedule-table .td-date,
  .schedule-table .td-time { font-size: .78rem; color: var(--text-secondary); }
  .schedule-table .td-genre,
  .schedule-table .td-runtime { display: none; }
  .schedule-table .td-action { margin-left: auto; flex-shrink: 0; }

  /* cast */
  .cast-grid { grid-template-columns: 1fr; }

  /* booking */
  .booking-form { padding: var(--s-5) var(--s-4); }
  .step-label { display: none; }
  .step-connector { width: var(--s-4); }

  /* slider */
  .perf-slider-item { flex: 0 0 calc(100% - var(--s-10)); }
}

/* ── 480px ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .about-photo-grid { grid-template-columns: 1fr; }

  .cast-inner-grid { grid-template-columns: 1fr; }
  .cast-inner-grid > div:first-child {
    display: flex; flex-direction: row; gap: var(--s-4); align-items: center;
  }

  main .container dl { grid-template-columns: 1fr !important; }

  .admin-dashboard-grid { grid-template-columns: 1fr !important; }

  .perf-hero-grid { gap: var(--s-6); }
}

/* === 26. UX 업그레이드 (2026.08.14) ======================= */

/* ── 곧 매진 배지 (잔여석 임계치 이하) ─────────────────────── */
.badge--low-stock {
  background: rgba(239,68,68,.12);
  color: #f87171;
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ── 날짜탭: 해당 날짜 전 회차 매진 ─────────────────────────── */
.date-tab[data-soldout="true"] {
  opacity: .4;
  cursor: default;
}
.date-tab[data-soldout="true"] .date-tab-count { color: var(--status-cancelled); }

/* ── 사이드바 네비 링크 옆 카운트 뱃지 ──────────────────────── */
.admin-nav-link-badge {
  margin-left: auto;
  background: rgba(245,158,11,.18);
  color: var(--status-pending);
  font-size: .68rem; font-weight: 700;
  padding: 1px var(--s-2);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.admin-nav-link { justify-content: space-between; }

/* ── 홈: 공간 소개 티저 스트립 ───────────────────────────────── */
.venue-teaser {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-10);
  align-items: center;
}
.venue-teaser-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-muted);
  border: 1px solid var(--border);
}
.venue-teaser-photo img { width: 100%; height: 100%; object-fit: cover; }
.venue-teaser-body p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: var(--s-6);
}

/* ── 공연상세: 다른 공연 더 보기 ─────────────────────────────── */
.more-perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-5);
}

/* ── 예매완료: 캘린더 추가 버튼 ──────────────────────────────── */
.btn-calendar {
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-calendar:hover { border-color: var(--accent); color: var(--accent); }

/* ── 관리자 대시보드: 이번 주 공연 위젯 ──────────────────────── */
.week-show-list { display: flex; flex-direction: column; gap: var(--s-2); }
.week-show-item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.week-show-date {
  flex-shrink: 0; width: 44px; text-align: center;
  font-size: .68rem; font-weight: 700; color: var(--accent);
  letter-spacing: .04em;
}
.week-show-date strong { display: block; font-size: 1.1rem; color: var(--text-primary); }
.week-show-body { flex: 1; min-width: 0; }
.week-show-title { font-size: .87rem; font-weight: 600; }
.week-show-meta { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }

/* ── 홈 히어로 워드마크 포인트 (선택 적용) ──────────────────── */
.hero-title--spotlight {
  text-shadow: 0 0 40px rgba(var(--accent-rgb), .35), 0 0 90px rgba(var(--accent-rgb), .15);
}

@media (max-width: 768px) {
  .venue-teaser { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* === 25. prefers-reduced-motion ========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:  .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior:     auto !important;
  }
}
