@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --bg-primary: #000000;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --line-secondary: rgba(255, 255, 255, 0.1);
  --surface-elevated: rgba(255, 255, 255, 0.08);
  --accent: #fe2c55;
  --page-width: 100%;
  --content-max: 343px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.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;
}

.page {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: calc(44px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 8px 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.header-btn--ghost {
  opacity: 0.9;
}

.header-btn[hidden] {
  visibility: hidden;
  display: flex;
}

.content {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.video-block {
  padding: 16px 16px 0;
}

.video-replay-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  text-align: center;
}

.video-replay-card[hidden] {
  display: none;
}

.video-replay-card__text {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: #fff;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  aspect-ratio: 343 / 221;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.trailer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.video-unmute {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}

.video-unmute.is-hidden {
  display: none;
}

.video-unmute__icon {
  display: block;
}

.video-unmute.is-muted .video-unmute__icon--on {
  display: none;
}

.video-unmute.is-unmuted .video-unmute__icon--muted {
  display: none;
}

.movie-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 16px;
  gap: 8px;
  background: var(--line-secondary);
  border-radius: 0;
  text-align: center;
}

.movie-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 18px;
  color: var(--text-secondary);
}

.meta-sep {
  margin: 0;
  color: var(--text-secondary);
}

.lead-form-section {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px 16px 0;
}

.lead-form-head h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}

.lead-form-hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-secondary);
}

.combo {
  position: relative;
}

.field-input {
  display: block;
  width: 100%;
  padding: 14px 40px 14px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-elevated)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='rgba(255,255,255,0.55)' stroke-width='2'/%3E%3Cpath d='M16 16l4 4' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.field-input:disabled {
  cursor: not-allowed;
}

.field-input:disabled::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.combo__list {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  margin: 4px 0 0;
  padding: 4px 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1c1c1e;
}

.combo__list[hidden] {
  display: none;
}

.combo__option {
  padding: 10px 12px;
  font-size: 15px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.combo__option strong {
  font-weight: 700;
  color: #fff;
}

.combo__option:hover,
.combo__option.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.combo__empty {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.field-input:focus-visible,
.theater-card:focus-visible,
.date-tab:focus-visible,
.buy-tickets-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.field--date {
  margin-left: -16px;
  margin-right: -16px;
}

.ticket-date {
  position: relative;
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: #000;
}

.ticket-date__inner {
  display: flex;
  flex: 1;
  min-width: 0;
  width: 100%;
  gap: 0;
  padding: 0 8px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ticket-date__inner::-webkit-scrollbar {
  display: none;
}

.date-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 52px;
  padding: 10px 8px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.date-tab .date-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.75);
}

.date-tab .day-text {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.34);
}

.date-tab.is-active {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.date-tab.is-active .date-text {
  color: rgba(255, 255, 255, 0.9);
}

.form-error {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: #ff6b7a;
}

.results {
  margin-top: 20px;
}

.results-summary {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.theater-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.theater-card {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--surface-elevated);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theater-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.theater-card.is-selected {
  border-color: var(--accent);
  background: rgba(254, 44, 85, 0.12);
}

.buy-tickets-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.buy-tickets-btn[hidden] {
  display: none;
}

.buy-tickets-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tickets-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: var(--text-secondary);
}

.theater-list li + li {
  margin-top: 8px;
}

.showtimes {
  padding: 12px 0 8px;
}

.showtimes[hidden] {
  display: none;
}

.showtimes__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-secondary);
}

.showtimes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.showtime {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.showtime:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.45);
}

.showtime.is-selected {
  border-color: var(--accent);
  background: rgba(254, 44, 85, 0.16);
}

.showtime:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.showtime__time {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.showtime__format {
  margin-top: 2px;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-secondary);
}

.showtimes__empty {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.showtime:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.theater-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.theater-card__meta {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.theater-card__address {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
}

@media (min-width: 376px) {
  :root {
    --page-width: 375px;
  }

  body {
    background: #0a0a0a;
  }

  .page {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}
