:root {
  --night: #0b1d4a;
  --night-deep: #07122e;
  --panel: rgba(12, 28, 72, 0.82);
  --panel-line: rgba(255, 214, 120, 0.28);
  --gold: #ffd36b;
  --gold-deep: #e8a933;
  --cream: #fff6e0;
  --muted: #b9c6ea;
  --red: #c8372d;
  --green: #5fd38d;
  --warn: #ffb347;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--cream);
  background: var(--night-deep);
  line-height: 1.5;
}

/* Blurred copy of the poster as the page backdrop */
body::before {
  content: '';
  position: fixed;
  inset: -40px;
  z-index: -2;
  background: url('poster-bg.webp?v=3') center / cover no-repeat;
  filter: blur(28px) brightness(0.45) saturate(1.2);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 18, 46, 0.2), rgba(7, 18, 46, 0.7));
}

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

h1, h2 {
  font-family: 'Philosopher', Georgia, serif;
  margin: 0;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 24px;
}

.poster {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 2px solid var(--panel-line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 190, 80, 0.18);
}

.booking-col {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  padding: 22px 18px 28px;
  backdrop-filter: blur(6px);
  display: grid;
  gap: 26px;
  align-content: start;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1; }
.lead { margin: 8px 0 0; color: var(--muted); }

h2 { font-size: 1.4rem; margin-bottom: 12px; }

/* City tabs */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tab {
  font: inherit;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--panel-line);
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.tab strong { display: block; font-size: 1.15rem; }
.tab span { font-size: 0.85rem; color: var(--muted); }
.tab:hover { background: rgba(255, 255, 255, 0.12); }
.tab[aria-selected='true'] {
  background: linear-gradient(180deg, rgba(255, 211, 107, 0.22), rgba(255, 211, 107, 0.08));
  border-color: var(--gold);
}
.tab:focus-visible, .btn:focus-visible, .choice:focus-within, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Showtime cards */
.city-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.city-head h2 { margin: 0; }
.city-date { color: var(--muted); font-weight: 600; }

.sold-banner {
  background: rgba(200, 55, 45, 0.18);
  border: 1px solid rgba(255, 120, 110, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-weight: 600;
}

.times { display: grid; gap: 12px; }

.show {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.show-time {
  font-family: 'Philosopher', Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
}

.seats-text { font-weight: 700; }
.seats-text small { font-weight: 400; color: var(--muted); }
.seats-text.low { color: var(--warn); }
.seats-text.out { color: #ff8f86; }

.bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--green);
  transition: width 0.4s;
}
.bar.low > i { background: var(--warn); }
.bar.out > i { background: #ff8f86; }

.show .btn { grid-column: 1 / -1; }

.btn {
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  color: #3a2200;
  background: linear-gradient(180deg, #ffe08a, var(--gold-deep));
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 6px 18px rgba(232, 169, 51, 0.35);
  transition: transform 0.1s, filter 0.15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled] {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.btn.secondary {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Prices */
.price-grid { display: grid; gap: 12px; }
.price-card {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.price-card strong { display: block; font-size: 1.05rem; }
.price-card span { color: var(--muted); font-size: 0.9rem; }
.price-num {
  font-family: 'Philosopher', Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  white-space: nowrap;
}
.note { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }

.how ol { margin: 0; padding-left: 22px; color: var(--muted); }
.how li { margin-bottom: 6px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 24, 0.75); }
.sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 94vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #14296a, #0b1d4a);
  border: 1px solid var(--panel-line);
  border-radius: 24px 24px 0 0;
  padding: 24px 18px 28px;
}
.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 2rem;
  line-height: 1;
  color: var(--cream);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 10px;
}

.form { display: grid; gap: 16px; }
.form h2 { margin: 0 28px 0 0; }
.summary-line { color: var(--muted); margin: 0; }

fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 800; margin-bottom: 8px; padding: 0; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--panel-line);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}
.choice input { accent-color: var(--gold); width: 20px; height: 20px; flex: none; }
.choice b { display: block; }
.choice small { color: var(--muted); }
.choice .price-tag { margin-left: auto; font-weight: 800; color: var(--gold); white-space: nowrap; }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(255, 211, 107, 0.14); }

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input {
  font: inherit;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--panel-line);
  border-radius: 12px;
  padding: 12px 14px;
}
.field input::placeholder { color: #8d9cc8; }

.qty { display: flex; align-items: center; gap: 14px; }
.qty button {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--panel-line);
  border-radius: 12px;
  cursor: pointer;
}
.qty output { min-width: 28px; text-align: center; font-size: 1.3rem; font-weight: 800; }

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.2rem;
  border-top: 1px solid var(--panel-line);
  padding-top: 12px;
}
.total span:last-child { color: var(--gold); font-size: 1.6rem; }

.error {
  background: rgba(200, 55, 45, 0.2);
  border: 1px solid rgba(255, 120, 110, 0.55);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.done { display: grid; gap: 14px; text-align: center; }
.done h2 { margin: 0; }
.code {
  font-family: 'Philosopher', Georgia, serif;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px dashed var(--gold);
  border-radius: 14px;
  padding: 8px 12px;
}
.steps { text-align: left; background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 12px 14px 12px 34px; margin: 0; }
.steps li { margin-bottom: 6px; }
.timer { color: var(--warn); font-weight: 700; }

@media (min-width: 560px) {
  .modal { align-items: center; }
  .sheet { border-radius: 24px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; padding: 32px 24px; align-items: start; }
  .poster-col { position: sticky; top: 24px; }
  .booking-col { padding: 28px 28px 32px; }
  .times { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar > i { transition: none; }
}
