/* ============================================================
   AMSEATS — Times Square marquee noir
   ============================================================ */
:root {
  --bg:        #0b0a08;
  --bg-2:      #141009;
  --bg-3:      #1c160d;
  --card:      #17120b;
  --ink:       #f4ead6;
  --ink-dim:   #a99c81;
  --ink-faint: #6f6450;
  --gold:      #f0b429;
  --gold-hi:   #ffd35c;
  --red:       #d8332f;
  --red-deep:  #571513;
  --green:     #6fcf6b;
  --line:      rgba(240, 180, 41, 0.16);
  --line-soft: rgba(240, 180, 41, 0.08);
  --shadow:    0 30px 80px -30px rgba(0,0,0,0.9);
  --r:         14px;
  --display:   'Staatliches', 'Arial Narrow', sans-serif;
  --body:      'Archivo', system-ui, sans-serif;
  --mono:      'Space Mono', ui-monospace, monospace;
  --maxw:      1280px;
}

* { box-sizing: border-box; }
/* Ensure the [hidden] attribute always wins over display: grid/flex below. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(216,51,47,0.10), transparent 60%),
    radial-gradient(1000px 600px at 8% 0%, rgba(240,180,41,0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Marquee bar ===== */
.bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(11,10,8,0.97), rgba(11,10,8,0.82));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--display); font-size: 30px; letter-spacing: 3px;
  line-height: 0.8; color: var(--gold-hi);
  text-shadow: 0 0 18px rgba(240,180,41,0.45);
}
.bulbs { display: flex; gap: 7px; padding-left: 2px; }
.bulbs i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 7px var(--gold);
  animation: blink 1.4s infinite steps(1);
}
.bulbs i:nth-child(2n) { animation-delay: .2s; }
.bulbs i:nth-child(3n) { animation-delay: .5s; }
.bulbs i:nth-child(4n) { animation-delay: .8s; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.search {
  flex: 1 1 auto; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240,180,41,0.12); }
.search-ico { width: 18px; height: 18px; stroke: var(--ink-dim); fill: none; stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }
#search {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-size: 15px; letter-spacing: .2px;
}
#search::placeholder { color: var(--ink-faint); }

.bar-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.city-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--ink); background: var(--red-deep);
  border: 1px solid rgba(216,51,47,0.5); border-radius: 999px; padding: 6px 13px;
}
.city-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.source-badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: .5px;
  color: var(--ink-dim); border: 1px dashed var(--line); border-radius: 8px; padding: 5px 9px;
  text-transform: uppercase;
}

/* ===== Layout ===== */
.view { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 26px; }
.hero-bulbs {
  height: 4px; width: 100%; margin-bottom: 30px;
  background-image: radial-gradient(circle, var(--gold-hi) 0 2px, transparent 2.5px);
  background-size: 22px 4px; background-repeat: repeat-x;
  opacity: .65; filter: drop-shadow(0 0 5px var(--gold));
}
.hero-kicker {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 4px;
  font-size: 12px; color: var(--gold); margin: 0 0 14px;
}
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 11vw, 132px); line-height: 0.86; letter-spacing: 1px;
  margin: 0; color: var(--ink);
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
}
.hero-title::first-line { color: var(--gold-hi); }
.hero-sub { font-family: var(--mono); color: var(--ink-dim); margin: 18px 0 0; font-size: 14px; }

/* ===== Tabs ===== */
.tabs { display: flex; align-items: center; gap: 8px; margin: 14px 0 26px; border-bottom: 1px solid var(--line-soft); }
.tab {
  background: none; border: none; color: var(--ink-faint);
  font-family: var(--display); font-size: 22px; letter-spacing: 2px;
  padding: 8px 4px; margin-right: 18px; position: relative; transition: color .2s;
}
.tab:hover { color: var(--ink-dim); }
.tab.is-active { color: var(--gold-hi); }
.tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
}
.tab-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 1px; }

/* ===== Movie grid ===== */
.grid-movies {
  display: grid; gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.card {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft);
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s;
  animation: rise .5s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 24px 50px -22px rgba(240,180,41,0.4); }
.poster { aspect-ratio: 2/3; width: 100%; object-fit: cover; background: var(--bg-2); }
.poster.ph { display: grid; place-items: center; font-family: var(--display); font-size: 40px; color: var(--ink-faint); }
.card-glow { position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(0deg, rgba(8,6,3,0.95), transparent); pointer-events: none; }
.card-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 13px; }
.card-title { font-family: var(--display); font-size: 19px; letter-spacing: .8px; line-height: .95; }
.card-sub { font-family: var(--mono); font-size: 11px; color: var(--gold); margin-top: 5px; letter-spacing: .5px; }
.rating {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1px;
  background: rgba(11,10,8,0.85); border: 1px solid var(--line); color: var(--ink);
  padding: 3px 7px; border-radius: 6px; backdrop-filter: blur(4px);
}

/* ===== Theater grid ===== */
.grid-theaters { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.theater-card {
  display: flex; gap: 14px; padding: 16px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line-soft); transition: border-color .2s, transform .2s;
}
.theater-card:hover { border-color: var(--line); transform: translateY(-3px); }
.tc-num { font-family: var(--display); font-size: 30px; color: var(--gold); line-height: 1; min-width: 30px; }
.tc-name { font-family: var(--display); font-size: 21px; letter-spacing: .6px; }
.tc-addr { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.tc-tag { display:inline-block; margin-top:8px; font-family: var(--mono); font-size: 11px; color: var(--gold); }

/* ===== Movie detail ===== */
.detail-hero { position: relative; border-radius: 0 0 var(--r) var(--r); overflow: hidden; margin: 0 calc(-1 * clamp(16px,4vw,40px)); }
.detail-hero-img { width: 100%; height: clamp(280px, 42vw, 520px); object-fit: cover; opacity: .42; filter: saturate(1.05); }
.detail-hero::after { content:""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 6%, rgba(11,10,8,0.55) 55%, rgba(11,10,8,0.7)); }
.back {
  position: absolute; top: 22px; left: clamp(16px,4vw,40px); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  background: rgba(11,10,8,0.7); border: 1px solid var(--line); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}
.back:hover { border-color: var(--gold); color: var(--gold-hi); }

.detail-head { position: relative; z-index: 3; display: flex; gap: clamp(18px, 3vw, 36px); margin-top: clamp(-150px, -18vw, -90px); align-items: flex-end; }
.detail-poster { width: clamp(140px, 20vw, 230px); aspect-ratio: 2/3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); flex: 0 0 auto; background: var(--bg-2); }
.detail-info { padding-bottom: 8px; }
.detail-title { font-family: var(--display); font-size: clamp(40px, 7vw, 86px); line-height: .85; letter-spacing: 1px; margin: 0; }
.detail-metarow { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; font-family: var(--mono); font-size: 12px; }
.chip-meta { border: 1px solid var(--line); color: var(--ink); padding: 5px 11px; border-radius: 999px; letter-spacing: .5px; }
.chip-meta.accent { color: var(--gold-hi); border-color: rgba(240,180,41,0.4); }
.detail-syn { max-width: 720px; color: var(--ink-dim); line-height: 1.65; }
.detail-tag { font-family: var(--display); font-size: 22px; color: var(--gold); letter-spacing: 1px; margin: 0 0 10px; }
.trailer-link { display:inline-flex; align-items:center; gap:8px; margin-top:14px; font-family: var(--mono); font-size:13px; color: var(--red); letter-spacing:.5px; }
.trailer-link:hover { color: var(--gold-hi); }

/* ===== Showtimes block ===== */
.shows { margin-top: clamp(34px, 5vw, 56px); }
.shows-h { font-family: var(--display); font-size: 30px; letter-spacing: 2px; margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; }
.shows-h small { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 1px; }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.date-btn {
  flex: 0 0 auto; min-width: 70px; text-align: center;
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 12px;
  color: var(--ink-dim); padding: 10px 12px; transition: all .18s;
}
.date-btn b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: 1px; color: var(--ink); line-height: 1; }
.date-btn span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.date-btn:hover { border-color: var(--line); }
.date-btn.is-active { background: var(--gold); border-color: var(--gold); color: #1a1306; }
.date-btn.is-active b { color: #1a1306; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.fchip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .3px;
  background: var(--bg-3); border: 1px solid var(--line-soft); color: var(--ink-dim);
  padding: 7px 13px; border-radius: 999px; transition: all .18s;
}
.fchip:hover { border-color: var(--line); color: var(--ink); }
.fchip.is-on { background: rgba(240,180,41,0.14); border-color: var(--gold); color: var(--gold-hi); }

.theater-block { border-top: 1px solid var(--line-soft); padding: 22px 0; }
.tb-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.tb-name { font-family: var(--display); font-size: 24px; letter-spacing: .8px; }
.tb-addr { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.times { display: flex; flex-wrap: wrap; gap: 10px; }
.time-btn {
  position: relative; font-family: var(--mono); font-weight: 700; font-size: 14px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink);
  padding: 10px 14px 9px; border-radius: 10px; transition: all .16s; letter-spacing: .5px;
}
.time-btn:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(240,180,41,0.5); }
.time-btn .fmt { display: block; font-size: 9px; color: var(--gold); letter-spacing: 1px; margin-top: 3px; font-weight: 400; }
.time-btn.sold { opacity: .4; pointer-events: none; }
.time-btn.sold::after { content: "SOLD"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--red); font-size: 10px; }

/* ===== States ===== */
.empty, .loading { padding: 60px 0; text-align: center; font-family: var(--mono); color: var(--ink-faint); letter-spacing: 1px; }
.spinner { width: 34px; height: 34px; margin: 0 auto 16px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { color: var(--red); }

/* ===== Seat modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(4,3,2,0.78); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 26px clamp(18px, 4vw, 34px) 30px;
  animation: pop .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--ink-dim); font-size: 28px; line-height: 1; }
.modal-x:hover { color: var(--gold-hi); }

.seat-h { font-family: var(--display); font-size: 28px; letter-spacing: 1px; margin: 0 6px 2px 0; }
.seat-sub { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .5px; margin-bottom: 6px; }

/* In-modal day / time switcher — jump to another showtime's seat map. */
.seat-switch { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.ss-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ss-day {
  flex: 0 0 auto; min-width: 52px; text-align: center;
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 10px;
  color: var(--ink-dim); padding: 6px 8px; transition: all .16s;
}
.ss-day b { display: block; font-family: var(--display); font-size: 18px; line-height: 1; color: var(--ink); }
.ss-day span { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.ss-day:hover { border-color: var(--line); }
.ss-day.is-on { background: var(--gold); border-color: var(--gold); color: #1a1306; }
.ss-day.is-on b { color: #1a1306; }
.ss-times { display: flex; flex-wrap: wrap; gap: 6px; max-height: 92px; overflow-y: auto; }
.ss-time {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .3px;
  background: var(--bg-3); border: 1px solid var(--line-soft); color: var(--ink);
  padding: 6px 10px; border-radius: 8px; transition: all .16s;
}
.ss-time i { font-style: normal; font-weight: 400; font-size: 8px; color: var(--gold); letter-spacing: .5px; }
.ss-time:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-1px); }
.ss-time.is-on { background: rgba(240,180,41,0.16); border-color: var(--gold); color: var(--gold-hi); }
.ss-time.sold { opacity: .38; pointer-events: none; text-decoration: line-through; }
.ss-empty { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .5px; }

/* Screen + seats share one centered stage so they line up. --seat-gut is the
   left row-label gutter; the screen is inset by it to sit over the seat field. */
.seat-stage { --seat-gut: 18px; max-width: 600px; margin: 20px auto 0; }
.screen {
  position: relative; height: 38px; margin: 0 0 24px;
  margin-left: calc(var(--seat-gut) + 4px); width: calc(100% - var(--seat-gut) - 4px);
}
.screen::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%/100% 100% 0 0;
  border-top: 3px solid var(--gold-hi);
  box-shadow: 0 -14px 40px -8px rgba(240,180,41,0.55);
}
.screen span { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 5px; color: var(--ink-faint); }

.seatmap { display: flex; flex-direction: column; gap: 5px; }
.seatrow { display: grid; gap: 4px; align-items: center; }
.rowlab { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); text-align: center; }
.seat {
  width: 100%; aspect-ratio: 1; border-radius: 4px 4px 2px 2px;
  border: 1px solid transparent; transition: transform .1s;
}
.seat.avail { background: rgba(240,180,41,0.16); border-color: rgba(240,180,41,0.55); }
.seat.avail:hover { background: var(--gold); transform: translateY(-2px); }
.seat.prem.avail { background: rgba(111,207,107,0.16); border-color: rgba(111,207,107,0.6); }
.seat.prem.avail:hover { background: var(--green); }
.seat.taken { background: rgba(216,51,47,0.16); border-color: rgba(216,51,47,0.35); cursor: not-allowed; }
.seat.none { background: transparent; border-color: transparent; }
.seat.sel { background: var(--gold-hi) !important; border-color: #fff; box-shadow: 0 0 12px var(--gold); }

.legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 24px 0 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid; }
.lg-avail { background: rgba(240,180,41,0.16); border-color: rgba(240,180,41,0.55); }
.lg-prem { background: rgba(111,207,107,0.16); border-color: rgba(111,207,107,0.6); }
.lg-taken { background: rgba(216,51,47,0.16); border-color: rgba(216,51,47,0.35); }

.prices { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.price { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 11px; color: var(--ink); }
.price b { color: var(--gold-hi); }

.book-row { display: flex; justify-content: center; margin-top: 20px; }
.book-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 20px; letter-spacing: 1.5px;
  background: var(--gold); color: #1a1306; border: 1px solid var(--gold);
  padding: 11px 26px; border-radius: 11px; transition: all .16s;
  box-shadow: 0 12px 30px -14px rgba(240,180,41,0.6);
}
.book-btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(240,180,41,0.75); }
.synthetic-note {
  margin-top: 20px; padding: 11px 14px; border-radius: 10px;
  background: rgba(216,51,47,0.08); border: 1px solid rgba(216,51,47,0.3);
  font-family: var(--mono); font-size: 11px; color: var(--ink-dim); line-height: 1.5; text-align: center;
}
.live-note {
  margin-top: 20px; padding: 11px 14px; border-radius: 10px;
  background: rgba(111,207,107,0.08); border: 1px solid rgba(111,207,107,0.35);
  font-family: var(--mono); font-size: 11px; color: var(--green); line-height: 1.5; text-align: center;
}
.seat-count { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--gold-hi); margin-top: 4px; }

/* ===== Top nav (Browse / API) ===== */
.topnav { display: flex; gap: 4px; }
.navlink {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-faint); padding: 6px 11px; border-radius: 999px;
  border: 1px solid transparent; transition: color .18s, border-color .18s, background .18s;
}
.navlink:hover { color: var(--ink); }
.navlink.is-active { color: var(--gold-hi); border-color: var(--line); background: rgba(240,180,41,0.08); }

/* ===== API view ===== */
.api-hero { padding: clamp(36px, 6vw, 70px) 0 10px; }
.api-title { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 9vw, 104px); line-height: .86; letter-spacing: 1px; margin: 8px 0 0; }
.api-title::first-line { color: var(--gold-hi); }
.api-lede { max-width: 660px; color: var(--ink-dim); line-height: 1.6; margin: 18px 0 0; font-size: 17px; }
.api-lede code, .conv-list code, .flow code, .fo-call, .ep-path { font-family: var(--mono); }
.api-lede code { color: var(--gold); font-size: .9em; }

.api-base {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px;
}
.ab-label { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--ink-faint); }
#api-base-url { font-family: var(--mono); font-size: 14px; color: var(--gold-hi); }

.api-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: .5px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; transition: all .16s;
}
.btn:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1306; font-weight: 700; }
.btn-gold:hover { background: var(--gold-hi); color: #1a1306; }
.btn.ok { border-color: var(--green); color: var(--green); }
.btn-gold.ok { background: var(--green); border-color: var(--green); color: #08220a; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.api-hint { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

.api-h { font-family: var(--display); font-size: 30px; letter-spacing: 2px; margin: 0 0 16px; }
.api-h-section { margin-top: clamp(40px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--line-soft); }

.api-grid { margin-top: 30px; }
.conv { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px 22px; }
.conv-list { margin: 0; padding-left: 18px; color: var(--ink-dim); line-height: 1.9; font-size: 14px; }
.conv-list code { color: var(--gold); font-size: 12px; }

/* endpoint cards */
.ep-list { display: grid; gap: 14px; }
.ep { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; transition: border-color .18s; }
.ep:hover { border-color: var(--line); }
.ep-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-m { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--green);
  border: 1px solid rgba(111,207,107,0.4); border-radius: 6px; padding: 3px 8px; background: rgba(111,207,107,0.08); }
.ep-path { font-size: 15px; color: var(--ink); letter-spacing: .3px; }
.ep-try { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .5px; }
.ep-try:hover { color: var(--gold-hi); }
.ep-desc { color: var(--ink-dim); margin: 10px 0 0; font-size: 14px; line-height: 1.55; }
.ep-params { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.ep-params th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--line-soft); padding: 4px 10px 6px 0; font-weight: 400; }
.ep-params td { padding: 5px 10px 5px 0; color: var(--ink-dim); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ep-params td code { font-family: var(--mono); color: var(--gold); }
.ep-params .pin { font-family: var(--mono); color: var(--ink-faint); font-size: 11px; }

.code { position: relative; margin-top: 12px; }
.code pre { margin: 0; overflow-x: auto; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.copy { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink-dim); padding: 4px 8px; border-radius: 6px; }
.copy:hover { border-color: var(--gold); color: var(--gold-hi); }
.copy.ok { border-color: var(--green); color: var(--green); }

/* example flow */
.flow-lede { color: var(--ink-dim); max-width: 720px; line-height: 1.6; margin: 0 0 22px; }
.flow { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px clamp(18px,3vw,28px); }
.flow-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.flow-steps li { display: flex; gap: 14px; align-items: flex-start; }
.fs-n { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--display); font-size: 16px; color: #1a1306; background: var(--gold); }
.flow-steps b { display: block; font-size: 14px; }
.flow-steps code { font-family: var(--mono); font-size: 12px; color: var(--gold); }

.flow-out { margin-top: 22px; display: grid; gap: 14px; }
.fo-step { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.fo-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fo-n { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--gold-hi); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; }
.fo-head b { font-size: 14px; }
.fo-call { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.fo-count { font-family: var(--mono); font-size: 13px; color: var(--gold-hi); margin: 0 0 10px; }

.fo-chips, .fo-times { display: flex; flex-wrap: wrap; gap: 7px; }
.fo-chip, .fo-time { font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 11px; }
.fo-time.sold { opacity: .45; text-decoration: line-through; }
.fo-chip.more, .fo-time.more { color: var(--gold); border-color: var(--line); }

.fo-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.fo-poster { display: block; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft);
  background: var(--bg-2); aspect-ratio: 2/3; transition: transform .2s, border-color .2s; }
.fo-poster:hover { transform: translateY(-4px); border-color: var(--gold); }
.fo-poster img { width: 100%; height: 100%; object-fit: cover; }
.fo-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 30px; color: var(--ink-faint); }
.fo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 6px; font-family: var(--mono); font-size: 9.5px;
  line-height: 1.2; color: var(--ink); background: linear-gradient(0deg, rgba(8,6,3,0.95), transparent); }

.fo-src { font-family: var(--mono); font-size: 10px; letter-spacing: .5px; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.fo-src.live { color: var(--green); border: 1px solid rgba(111,207,107,0.4); }
.fo-src.syn { color: var(--red); border: 1px solid rgba(216,51,47,0.4); }
.fo-seats { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); margin: 4px 0 8px; }
.fo-seats b { color: var(--gold-hi); }
.fo-seatbar { height: 8px; border-radius: 999px; background: rgba(216,51,47,0.22); overflow: hidden; }
.fo-seatbar span { display: block; height: 100%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.fo-sample { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin: 8px 0 0; }
.loading.sm { padding: 14px 0; }
.loading.sm .spinner { width: 22px; height: 22px; margin: 0 auto; }

/* ===== Footer ===== */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 30px clamp(16px,4vw,40px) 50px; border-top: 1px solid var(--line-soft); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.foot > span:first-child { font-family: var(--display); font-size: 22px; letter-spacing: 2px; color: var(--gold); }
.foot-note { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

@media (max-width: 640px) {
  .brand-name { font-size: 24px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .bar { flex-wrap: wrap; }
  .detail-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Theater-schedule browse layout (date + theater → showtimes)
   ============================================================ */
.pin-ico { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linejoin: round; }
.city-pill .pin-ico { margin-right: -2px; }

.view-wide { max-width: 1600px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 40px) 70px; }
.layout { display: grid; grid-template-columns: 350px 1fr; gap: clamp(22px, 3vw, 44px); align-items: start; }

/* ----- sidebar ----- */
.side { border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; background: rgba(20, 16, 9, 0.4); position: sticky; top: 84px; }
.side-block + .side-block { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.step { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }

.datebar { display: flex; align-items: stretch; gap: 6px; }
.datenav {
  flex: 0 0 auto; width: 26px; background: var(--bg-3); border: 1px solid var(--line-soft);
  border-radius: 9px; color: var(--ink-dim); font-size: 18px; line-height: 1; transition: all .15s;
}
.datenav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-hi); }
.datenav:disabled { opacity: .3; cursor: default; }
.datebar-track { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dcell { background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 1px; text-align: center; color: var(--ink-dim); transition: all .15s; }
.dcell b { display: block; font-family: var(--display); font-size: 19px; line-height: 1; color: var(--ink); }
.dcell span { font-family: var(--mono); font-size: 8px; letter-spacing: .5px; }
.dcell:hover { border-color: var(--line); }
.dcell.is-on { border-color: var(--gold); background: rgba(240, 180, 41, 0.06); }
.dcell.is-on b, .dcell.is-on span { color: var(--gold-hi); }

.side-search {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 12px;
}
.side-search:focus-within { border-color: var(--gold); }
.side-search input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-size: 14px; }
.side-search input::placeholder { color: var(--ink-faint); }

.theater-list { display: flex; flex-direction: column; }
.tcard {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  width: 100%; text-align: left; background: none; border: 1px solid transparent;
  border-bottom: 1px solid var(--line-soft); border-radius: 10px; padding: 13px 12px;
  color: var(--ink); transition: all .15s;
}
.tcard:hover { background: rgba(255, 255, 255, 0.025); }
.tcard.is-on { border: 1px solid var(--gold); background: rgba(240, 180, 41, 0.07); }
.tcard-name { display: block; font-weight: 700; font-size: 15px; }
.tcard.is-on .tcard-name { color: var(--gold-hi); }
.tcard-addr { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); margin-top: 3px; }
.tcard-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.tcard-check { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #1a1306; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tcard-dist { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.view-all {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: none; border-top: 1px solid var(--line-soft); margin-top: 4px;
  padding: 14px 12px 2px; font-family: var(--mono); font-size: 13px; color: var(--ink-dim); transition: color .15s;
}
.view-all:hover { color: var(--gold-hi); }
.view-all span { color: var(--gold); font-size: 16px; }
.empty.sm { padding: 22px 0; font-size: 12px; }

/* ----- main: theater header ----- */
.theater-main { min-width: 0; border-left: 1px solid var(--line-soft); padding-left: clamp(20px, 3vw, 44px); }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .side { position: static; } .theater-main { border-left: none; padding-left: 0; } }
.th-head { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.th-logo { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-size: 21px; letter-spacing: 1px; box-shadow: 0 0 24px -8px rgba(240,180,41,.5); }
.th-headmain { min-width: 0; flex: 1; }
.th-titlerow { display: flex; align-items: center; gap: 14px; }
.th-name { font-family: var(--display); font-size: clamp(32px, 4vw, 52px); letter-spacing: 1px; line-height: 1; margin: 0; }
.th-fav { background: none; border: none; color: var(--ink-faint); font-size: 26px; line-height: 1; transition: color .15s; }
.th-fav:hover, .th-fav.on { color: var(--gold); }
.th-addr { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); margin: 12px 0 16px; }
.th-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.tmeta { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--ink-dim); }
.mi { width: 17px; height: 17px; stroke: var(--ink-faint); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ----- main: showtime rows ----- */
.sched-date { font-family: var(--display); font-size: 26px; letter-spacing: 2px; margin: 24px 0 16px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.srow {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 38px; align-items: center; gap: clamp(10px, 2vw, 24px);
  width: 100%; text-align: left; background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 12px 14px 22px;
  color: var(--ink); transition: all .15s;
}
.srow:hover { border-color: var(--gold); background: rgba(240, 180, 41, 0.06); transform: translateX(2px); }
.srow.sold { opacity: .5; cursor: not-allowed; }
.srow.sold:hover { border-color: var(--line-soft); background: rgba(255,255,255,0.02); transform: none; }
.sr-time { font-family: var(--display); font-size: 23px; letter-spacing: 1px; color: var(--ink); white-space: nowrap; }
.sr-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sr-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); letter-spacing: .3px; }
.sr-avail { display: flex; align-items: center; gap: 14px; justify-self: end; }
.sr-avail-l { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--ink-dim); white-space: nowrap; }
.sr-avail.low .sr-avail-l { color: #d8a24c; }
.sr-avail.sold .sr-avail-l { color: var(--red); }
.sr-dots { display: inline-flex; gap: 5px; }
.sr-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); }
.sr-dots i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 6px rgba(240, 180, 41, .5); }
.sr-go { justify-self: end; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-dim); font-size: 19px; transition: all .15s; }
.srow:hover .sr-go { border-color: var(--gold); color: var(--gold-hi); }

.sched-foot { display: flex; align-items: center; gap: 9px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.sched-foot .fi { color: var(--ink-dim); font-size: 13px; }

@media (max-width: 620px) {
  .srow { grid-template-columns: 76px minmax(0,1fr) 30px; row-gap: 8px; }
  .sr-avail { grid-column: 1 / -1; justify-self: start; }
}

/* ============================================================
   Seat modal — two-pane (date/time/legend/pricing rail + map)
   ============================================================ */
#seat-modal .modal-card { width: min(1200px, 96vw); max-width: none; max-height: 94vh; padding: 0; overflow: hidden; }
.sm-grid { display: grid; grid-template-columns: 348px 1fr; height: min(860px, 90vh); }

.sm-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.sm-side-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 30px 26px 10px; }
.sm-side .seat-h { font-size: 30px; margin: 0 0 4px; }
.sm-side .seat-sub { line-height: 1.7; margin-bottom: 4px; }
.sm-block { margin-top: 24px; }
.sm-step { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 12px; }

.sm-datebar { display: flex; align-items: stretch; gap: 6px; }
.sm-days { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sm-day { background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 1px; text-align: center; color: var(--ink-dim); transition: all .15s; }
.sm-day b { display: block; font-family: var(--display); font-size: 19px; line-height: 1; color: var(--ink); }
.sm-day span { font-family: var(--mono); font-size: 8px; letter-spacing: .5px; }
.sm-day:hover { border-color: var(--line); }
.sm-day.is-on { background: var(--gold); border-color: var(--gold); color: #1a1306; }
.sm-day.is-on b { color: #1a1306; }

.sm-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sm-times .ss-time { width: 100%; padding: 10px 5px; }

.sm-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }
.sm-legend span { display: inline-flex; align-items: center; gap: 9px; }
.sm-legend i { width: 15px; height: 15px; border-radius: 4px; border: 1px solid; display: inline-block; }
.lg-sel { background: var(--gold); border-color: var(--gold-hi); }

.sm-pricing { display: flex; flex-direction: column; }
.pr-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-dim); }
.pr-row:last-child { border-bottom: none; }
.pr-row b { font-family: var(--mono); color: var(--ink); }
.pr-muted { color: var(--ink-faint); font-size: 12px; }

.sm-actions { flex: 0 0 auto; padding: 16px 26px 22px; border-top: 1px solid var(--line-soft); }
.sm-actions:empty { display: none; }
.sm-actions .book-btn { display: flex; justify-content: center; width: 100%; }

/* right pane */
.sm-main { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 34px 30px 22px; }
#seat-map-area { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.seat-stage-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.sm-main .seat-stage { max-width: 840px; margin: 4px auto 0; }
.sm-main .seatmap { transform-origin: top center; transition: transform .12s ease; }
.sm-main .seat-count { margin-top: 18px; font-size: 14px; }
.seat-note-syn { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); margin: 6px 0 0; }

#seat-modal .seat.sel { display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 700; color: #1a1306; line-height: 1; overflow: hidden; }

.zoombar { position: absolute; right: 26px; bottom: 18px; display: flex; gap: 8px; }
.zoombar button { width: 40px; height: 40px; border-radius: 50%; background: rgba(20, 16, 9, 0.82); border: 1px solid var(--line); color: var(--ink-dim); font-size: 17px; line-height: 1; backdrop-filter: blur(6px); transition: all .15s; }
.zoombar button:hover { border-color: var(--gold); color: var(--gold-hi); }

@media (max-width: 880px) {
  .sm-grid { grid-template-columns: 1fr; height: auto; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; }
  .sm-side { display: block; border-right: none; border-bottom: 1px solid var(--line); }
  .sm-side-body { overflow: visible; padding: 24px 18px 4px; }
  .sm-actions { border-top: none; padding: 8px 18px 18px; }
  .sm-main { padding: 24px 18px 56px; }
  .zoombar { right: 16px; bottom: 12px; }
}
