:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #12141a;
  --muted: #3f4654;
  --line: #e4e7ee;
  --accent: #2d4bf0;
  --accent-soft: #e8edff;
  --black: #000000;
  --ok: #0f7a4a;
  --warn: #9a3412;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 28px rgba(18, 20, 26, 0.08);
  --header: 64px;
  --nav: 76px;
  --font: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header);
  padding: 8px 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  height: 38px;
  width: auto;
  max-width: min(220px, 58vw);
  mix-blend-mode: lighten;
  filter: brightness(0) invert(1);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn--light {
  background: rgba(18, 20, 26, 0.08);
  color: var(--text);
}

.icon-btn--phone {
  background: var(--accent);
}

#site-header {
  order: 1;
  flex-shrink: 0;
}

#site-nav {
  order: 4;
  position: sticky;
  bottom: 0;
  z-index: 12;
  flex-shrink: 0;
  margin: 0 12px 10px;
  padding-bottom: env(safe-area-inset-bottom);
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(18, 20, 26, 0.16);
  padding: 8px 6px;
}

.site-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 52px;
  justify-content: center;
  border-radius: 14px;
}

.site-nav__link svg {
  width: 22px;
  height: 22px;
}

.site-nav__link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page {
  order: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 0 32px;
}

.hero-copy {
  margin: 0 0 18px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

h1,
h2,
.section-title {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eceff5;
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  margin-bottom: 22px;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
  min-width: 0;
}

.search button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}

.search svg {
  width: 20px;
  height: 20px;
}

.tonight {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  text-decoration: none;
  margin-bottom: 8px;
}

.tonight img {
  width: 92px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.badge--accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

.badge--imdb {
  margin-top: 8px;
  margin-right: 8px;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
}

.hero-layout .badge--imdb {
  margin-top: 0;
}

[data-imdb]:empty,
#imdb-badge:empty,
#imdb-link:empty {
  display: none;
}

.badge--warn {
  background: #ffedd5;
  border-color: transparent;
  color: var(--warn);
}

.muted {
  color: var(--muted);
}

.movie-title {
  margin: 6px 0 2px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 72vw);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 16px 18px;
  margin: 0 -16px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.poster-card {
  scroll-snap-align: start;
  text-decoration: none;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #d9dde7;
}

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  margin: 0 -16px 8px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  background: #eceff5;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 600;
}

.chip small {
  font-size: 0.8rem;
  text-transform: capitalize;
}

.chip b {
  font-size: 1.35rem;
  color: var(--text);
}

.chip.is-active {
  background: var(--accent);
  color: #fff;
}

.chip.is-active b {
  color: #fff;
}

.movie-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border-radius: 18px;
  padding: 10px;
  text-decoration: none;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.movie-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.time-pill {
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  padding: 10px 12px;
  min-width: 76px;
  text-align: center;
}

.status,
.error {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.error {
  color: var(--warn);
}

.hero-poster {
  position: relative;
  margin: 12px 0 18px;
}

.hero-poster img {
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.close-btn svg {
  width: 18px;
  height: 18px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eceff5;
  border-radius: 999px;
  padding: 4px;
  margin: 18px 0;
}

.tabs button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  min-height: 48px;
  font-weight: 700;
  color: var(--muted);
}

.tabs button.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(45, 75, 240, 0.28);
}

.times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-btn {
  min-width: 104px;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.time-btn.is-selected {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent);
}

.time-btn.is-past,
.time-btn:disabled {
  background: #e6e9f0;
  color: #7b8393;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.meta-line {
  margin: 4px 0;
  color: var(--muted);
}

.story {
  margin-top: 8px;
}

.cast {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cast-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 148px;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 16px;
  margin-top: 10px;
  scrollbar-width: none;
}

.cast-grid::-webkit-scrollbar {
  display: none;
}

.cast-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cast-card img,
.cast-card__placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #eceff5;
}

.cast-card__placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--muted);
}

.cast-card__name,
.cast-card .muted {
  margin: 0;
  padding: 0 10px;
}

.cast-card__name {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.cast-card .muted {
  padding-bottom: 12px;
  font-size: 0.85rem;
}

.trailers {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.trailer-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  color: #fff;
}

.trailer-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.9;
}

.trailer-card__play {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.trailer-card__play::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--accent);
}

.trailer-card__name {
  display: block;
  padding: 10px 12px 12px;
  font-weight: 600;
}

.trailer-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.trailer-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reviews {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.review-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.review-card p {
  margin: 8px 0 0;
}

.note {
  margin-top: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.price-grid {
  display: grid;
  gap: 12px;
}

.price-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.price-card strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.prose {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.prose p {
  margin: 0 0 12px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 260px;
  background: #dfe3ec;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  width: 100%;
}

.btn--ghost {
  background: #eceff5;
  color: var(--text);
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  order: 3;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 12px 16px 8px;
}

@media (min-width: 768px) {
  body {
    display: block;
    height: auto;
    overflow: visible;
    padding-bottom: 24px;
    font-size: 1.05rem;
  }

  #site-header,
  .page,
  .site-footer,
  #site-nav {
    order: unset;
  }

  .page {
    overflow: visible;
  }

  #site-nav {
    position: sticky;
    top: 0;
    bottom: auto;
    z-index: 11;
    margin: calc(-1 * var(--header)) auto 0;
    padding-bottom: 0;
    height: var(--header);
    max-width: 1120px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .site-nav {
    position: static;
    display: flex;
    gap: 6px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    pointer-events: none;
  }

  .site-nav__link {
    pointer-events: auto;
    flex-direction: row;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 12px;
    min-height: 0;
    border-radius: 999px;
  }

  .site-nav__link svg {
    width: 18px;
    height: 18px;
  }

  .site-nav__link.is-active,
  .site-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .brand img {
    height: 40px;
  }

  .carousel {
    grid-auto-columns: 220px;
    margin: 0;
    padding: 6px 2px 18px;
  }

  .chips {
    margin: 0 0 8px;
    padding: 4px 0 12px;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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