@font-face {
  font-family: "Suisse";
  src:
    url("/fonts/SuisseIntl-Regular-WebS.woff2") format("woff2"),
    url("/fonts/SuisseIntl-Regular-WebS.woff") format("woff"),
    url("/fonts/SuisseIntl-Regular-WebS.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Suisse";
  src:
    url("/fonts/SuisseIntl-RegularItalic-WebS.woff2") format("woff2"),
    url("/fonts/SuisseIntl-RegularItalic-WebS.woff") format("woff"),
    url("/fonts/SuisseIntl-RegularItalic-WebS.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Suisse";
  src:
    url("/fonts/SuisseIntl-Book-WebS.woff2") format("woff2"),
    url("/fonts/SuisseIntl-Book-WebS.woff") format("woff"),
    url("/fonts/SuisseIntl-Book-WebS.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Suisse";
  src:
    url("/fonts/SuisseIntl-SemiBold-WebS.woff2") format("woff2"),
    url("/fonts/SuisseIntl-SemiBold-WebS.woff") format("woff"),
    url("/fonts/SuisseIntl-SemiBold-WebS.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

:root {
  --bg: #000;
  --fg: #f7f7f7;
  --muted: #a7a7a7;
  --soft: #6f6f6f;
  --seat: #7bc6ff;
  --seat-dim: #183044;
  --reserved: #f1dd78;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: "Suisse", Helvetica, Arial, sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 18%, rgba(70, 160, 255, 0.08), transparent 30%),
    #000;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100vw - 96px, 1580px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(500px, 1fr);
  gap: clamp(68px, 8vw, 150px);
  padding: 40px 0 42px;
}

.left-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero {
  max-width: 670px;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.95rem, 2.35vw, 2.55rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero p {
  max-width: 630px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.52rem);
  line-height: 1.38;
  letter-spacing: -0.036em;
  font-weight: 700;
}

.location-form {
  display: grid;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin-top: 30px;
}

.search-row {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 10px;
}

.location-field {
  display: grid;
  gap: 7px;
  flex: 0 0 132px;
  width: 132px;
  min-width: 0;
}

.location-field span {
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.location-field input {
  width: 132px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  padding: 0 16px;
  outline: none;
}

.location-field input:focus {
  border-color: rgba(123, 198, 255, 0.75);
}

.search-row button {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.search-row button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.show-all-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  cursor: pointer;
  user-select: none;
}

.show-all-checkbox {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #fff;
}

.site-footer {
  display: grid;
  gap: 5px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  border-bottom-color: #fff;
}

.affiliation-note {
  font-style: italic;
}

.notice {
  margin: 12px 0 0;
  color: #f0c66d;
  font-size: 0.86rem;
  font-weight: 700;
}

.results-panel {
  margin-top: clamp(62px, 9vh, 104px);
}

.theater-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 48px;
}

.theater-heading {
  display: flex;
  align-items: baseline;
  gap: 1.4em;
}

.theater-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.12rem, 1.35vw, 1.48rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.theater-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-align: left;
}

.showing-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.date-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px 28px;
  color: #6f6f6f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}

.empty-theater-state {
  margin-left: 28px;
  color: #5f5f5f;
  font-size: clamp(0.95rem, 1.04vw, 1.14rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.showing-row {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 148px 76px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: clamp(0.95rem, 1.04vw, 1.14rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.showing-row--muted {
  opacity: 0.14;
}

.showing-row:hover,
.showing-row.is-selected {
  color: #fff;
  opacity: 1;
}

.row-caret {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid transparent;
  transform: translateY(2px);
}

.showing-row.is-selected .row-caret {
  border-left-color: #fff;
}

.row-time,
.row-seats {
  white-space: nowrap;
}

.row-seats,
.row-title {
  font-weight: 400;
}

.row-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-list {
  max-width: 620px;
  color: var(--muted);
}

.empty-list h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.8rem;
  letter-spacing: -0.045em;
}

.empty-list p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
}

.detail-pane {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0;
  padding-left: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden auto;
}

.detail-empty {
  width: 100%;
  min-height: 70vh;
}

.detail-pane.is-loading {
  opacity: 0.72;
}

.seat-detail {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 30px;
  animation: detailIn 220ms ease both;
}

.detail-close {
  display: none;
}

.seatmap {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.screen {
  width: min(480px, 92%);
  height: 23px;
  display: grid;
  place-items: center;
  color: #f3f3f3;
  background: #737373;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  font-size: 0.88rem;
  font-weight: 900;
}

.front-label {
  color: #2e2e2e;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.seat-grid-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.seat-rows {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  transform-origin: top center;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.row-label {
  width: 16px;
  color: #474747;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.seat-line {
  display: flex;
  gap: 4.5px;
  justify-content: center;
}

.seat {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.seat--available {
  background: var(--seat);
  box-shadow: 0 0 16px rgba(123, 198, 255, 0.16);
}

.seat--booked {
  background: var(--reserved);
  box-shadow: 0 0 14px rgba(241, 221, 120, 0.28);
}

.seat--empty {
  opacity: 0;
}

.seat-legend {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  color: #777;
  font-size: 0.78rem;
  font-weight: 800;
}

.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.seat-legend .seat {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.seat-caption {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  order: 2;
}

.seatmap {
  order: 1;
}

.caption-kicker {
  font-size: clamp(0.92rem, 1.08vw, 1.16rem);
  letter-spacing: -0.035em;
}

.seat-caption h2 {
  margin: 0;
  max-width: 650px;
  color: #fff;
  font-size: clamp(1.32rem, 1.68vw, 1.78rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

@keyframes detailIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    width: min(100vw - 34px, 760px);
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-pane {
    position: static;
    height: auto;
    min-height: 55vh;
    padding-top: 0;
  }

  .results-panel {
    margin-top: 54px;
  }

  .theater-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .theater-heading {
    gap: 0.85em;
    flex-wrap: wrap;
  }

  .showing-row {
    grid-template-columns: 20px 140px 72px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .app-shell {
    width: min(100vw - 24px, 540px);
    padding-top: 30px;
    gap: 0;
  }

  .hero p {
    font-size: 1.08rem;
  }

  .location-form {
    width: 100%;
    max-width: none;
  }

  .search-row {
    width: 100%;
    align-items: end;
  }

  .location-field {
    flex: 0 0 138px;
    width: 138px;
  }

  .location-field span {
    font-size: 0.66rem;
  }

  .location-field input {
    width: 138px;
  }

  .search-row button {
    width: auto;
    flex: 0 0 auto;
    padding-inline: 18px;
  }

  .show-all-toggle {
    justify-self: end;
    margin-top: 10px;
    font-size: 0.78rem;
    gap: 7px;
  }

  .show-all-checkbox {
    width: 12px;
    height: 12px;
  }

  .site-footer {
    justify-content: flex-end;
    font-size: 0.78rem;
    text-align: right;
  }

  .showing-row {
    grid-template-columns: 18px 94px 82px minmax(0, 1fr);
    font-size: 0.92rem;
  }

  .date-separator {
    margin-left: 26px;
    font-size: 0.68rem;
  }

  .empty-theater-state {
    margin-left: 26px;
    font-size: 0.92rem;
  }

  .detail-pane {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 50vh;
    min-height: 0;
    padding: 34px 14px 18px;
    background:
      radial-gradient(circle at 50% 0%, rgba(123, 198, 255, 0.09), transparent 55%),
      rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-105%);
    transition: transform 260ms ease, opacity 180ms ease;
  }

  .detail-pane.has-seatmap {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .detail-empty {
    display: none;
  }

  .seat-detail {
    width: min(100%, 540px);
    max-height: 100%;
    gap: 9px;
    align-content: center;
  }

  .detail-close {
    position: absolute;
    top: -26px;
    right: 2px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    line-height: 1;
  }

  .seatmap {
    order: 2;
    gap: 6px;
  }

  .seat-caption {
    order: 1;
    gap: 5px;
  }

  .seat-grid-shell {
    margin-top: 2px;
  }

  .seat {
    width: 10px;
    height: 10px;
    border-radius: 3px;
  }

  .seat-line {
    gap: 4px;
  }

  .screen {
    height: 20px;
    width: min(360px, 84%);
    font-size: 0.72rem;
  }

  .front-label {
    font-size: 0.62rem;
  }

  .seat-legend {
    margin-top: 9px;
    font-size: 0.68rem;
  }

  .caption-kicker {
    font-size: 0.78rem;
  }

  .seat-caption h2 {
    max-width: 92vw;
    font-size: 1.05rem;
  }
}
