/* ==========================================================================
   MovieKaki — "sticker" design system
   3px ink outline + hard 4px/4px/0 offset shadow. No gradients/blur/glass.
   Fonts: Jersey 25 (display only) + Nunito (body). Locked palette below.
   Values sourced 1:1 from design-assets/README.md + movie-kaki-screens.html
   ========================================================================== */

:root {
  /* Core palette — locked, do not introduce new hues */
  --cream: #FFF6E4;
  --white: #FFFFFF;
  --ink: #2A1D15;
  --tomato: #C8392E;
  --gold: #E8B54A;
  --sand: #F3E7D0;
  --sand-deep: #EFE0C6;
  --brown-text: #7A6650;
  --brown-body: #5C4A3A;
  --muted: #A2947F;
  --dashed-1: #A2865F;
  --dashed-2: #C9A97F;
  --dashed-3: #E0CFAF;
  --poster: #3A2A1E;
  --green: #4F7042;
  --heart-tint: #FFE9E6;
  --highlight: #F5DFA7;

  --font-display: 'Jersey 25', 'Courier New', monospace;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  --radius-card: 17px;
  --radius-btn: 15px;
  --radius-tab: 13px;
  --radius-chip: 9px;
  --radius-pill: 99px;
  --radius-icon-btn: 11px;
  --radius-avatar: 13px;
  --radius-phone: 34px;

  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-hard-focus: 4px 4px 0 var(--tomato);
  --shadow-hard-pressed: 2px 2px 0 var(--ink);
  --shadow-outer: 9px 9px 0 var(--ink);

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sand-deep);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- App shell: full-bleed edge-to-edge on real phones, boxed "phone frame"
   preview only on wide/desktop viewports. The breakpoint is intentionally
   higher than the design's 390-430px reference frame — real-world mobile
   browsers (large Android phones, Plus/Max iPhones, accessibility display-zoom)
   commonly report CSS viewport widths well past 430px while still being an
   actual phone in your hand, and the boxed "device" treatment only makes
   sense as a desktop-preview affordance. ---- */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  position: relative;
  /* overflow-x: clip (not "hidden") — clips any stray horizontal overflow
     without establishing a scroll container. "hidden" would force overflow-y
     to auto per the CSS overflow-computation rule, which turns .app-shell
     itself into a scroll container and breaks position:sticky inside
     .home-scroll on mobile (the sticky bar needs the real document scroll
     container, not this one, to pin correctly). */
  overflow-x: clip;
}

@media (min-width: 601px) {
  html, body { background: var(--sand-deep); }
  body {
    padding: 32px 16px;
  }
  .app-shell {
    min-height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    border: 3px solid var(--ink);
    border-radius: var(--radius-phone);
    box-shadow: var(--shadow-outer);
    overflow: hidden; /* keeps bottom nav inside the frame — nav is a flex child, never overflows */
  }
}

/* ---- Home scroll container: everything on the Home screen (both tabs)
   lives inside this single scroller. The sticky bar (search field + tab
   toggle) pins to its top once scrolled past; the logo row, saved-cinemas
   strip and hero scroll away above it like normal content.
   On real mobile viewports .app-shell has no fixed height (min-height:100vh,
   grows with content), so the document itself is the scroll container —
   .home-scroll must NOT also set overflow-y:auto there, or position:sticky
   has no scrollport to stick within and the bar just scrolls away with
   everything else. Only the desktop "phone frame" preview (fixed max-height
   app-shell) needs .home-scroll to be its own internal scroller. ---- */
.home-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (min-width: 601px) {
  .home-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.sticky-bar {
  position: sticky;
  /* Stops just below the frozen top bar (63px: 10px+10px padding + 40px
     button + 3px border) instead of sliding underneath it. */
  top: 63px;
  z-index: 10;
  background: var(--cream);
  flex: none;
}
.controls--sticky { padding-top: 8px; }
.controls--precede-sticky { padding-top: 0; }

/* ---- Header ---- */
.header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 20px 12px;
  flex: none;
}
.header__avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--radius-avatar);
  background: var(--gold);
  border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 19px;
  overflow: hidden;
}
.header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.header__lockup { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.header__logo { font-family: var(--font-display); font-size: 29px; white-space: nowrap; }
.header__logo .accent { color: var(--tomato); }
.header__logo .squirrel { display: inline-block; margin: 0 1px; font-size: .78em; transform: translateY(-1px); }
.header__tagline { font-size: 11px; color: var(--brown-text); font-weight: 700; margin-top: 3px; white-space: nowrap; }
.header__bell {
  margin-left: auto; width: 38px; height: 38px; flex: none;
  border-radius: 12px; background: var(--white); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative;
  cursor: pointer;
}
.header__bell-dot {
  position: absolute; top: -4px; right: -4px; width: 13px; height: 13px;
  border-radius: var(--radius-pill); background: var(--tomato); border: 2.5px solid var(--ink);
}

/* ==========================================================================
   Frozen top bar — the ONLY persistent chrome (replaces the old bottom nav).
   Sticky at all times, not just after scroll. Hamburger opens the menu
   drawer; wordmark is centered; bell stays top-right.
   ========================================================================== */
.top-bar {
  position: sticky; top: 0; z-index: 30; flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
@media (min-width: 601px) {
  .top-bar { border-radius: calc(var(--radius-phone) - 3px) calc(var(--radius-phone) - 3px) 0 0; }
}
.top-bar__btn {
  width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: var(--white); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative;
  cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.top-bar__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.top-bar__spacer { width: 40px; flex: none; }
.top-bar__wordmark {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; white-space: nowrap; gap: 0;
  cursor: pointer; background: none; border: none; padding: 0; color: var(--ink);
}
.top-bar__wordmark .accent { color: var(--tomato); }
.top-bar__wordmark .squirrel { display: inline-block; margin: 0 2px; font-size: .74em; transform: translateY(-2px); }
.top-bar__bell-dot {
  position: absolute; top: -4px; right: -4px; width: 12px; height: 12px;
  border-radius: var(--radius-pill); background: var(--tomato); border: 2.5px solid var(--ink);
}

/* ---- Menu drawer (slide-in from left, reuses the sheet overlay pattern) ---- */
.menu-overlay {
  position: fixed; inset: 0; background: rgba(42, 29, 21, 0.55);
  z-index: 200; display: flex; align-items: stretch; justify-content: flex-start;
}
.menu-drawer {
  width: 82%; max-width: 320px; height: 100%; background: var(--cream);
  border-right: 3px solid var(--ink); box-shadow: 6px 0 0 rgba(42,29,21,0.12);
  display: flex; flex-direction: column;
  transform: translateX(0);
  animation: menu-slide-in .18s ease-out;
}
@keyframes menu-slide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-drawer { animation: none; }
}
.menu-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 14px; border-bottom: 3px solid var(--ink); flex: none;
}
.menu-drawer__logo { font-family: var(--font-display); font-size: 26px; }
.menu-drawer__logo .accent { color: var(--tomato); }
.menu-drawer__logo .squirrel { display: inline-block; margin: 0 1px; font-size: .78em; transform: translateY(-1px); }
.menu-drawer__close {
  width: 34px; height: 34px; border-radius: 10px; background: var(--white);
  border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none;
}
.menu-drawer__nav {
  flex: 1; overflow-y: auto; padding: 10px 12px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.menu-drawer__item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink); padding: 12px 14px;
  font-family: var(--font-display); font-size: 20px; color: var(--ink);
  cursor: pointer; text-align: left; width: 100%;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.menu-drawer__item:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.menu-drawer__item--active { background: var(--ink); color: var(--cream); }
.menu-drawer__item--active .menu-drawer__item-icon svg { stroke: var(--cream); }
.menu-drawer__item-icon { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.menu-drawer__item-icon svg { stroke: var(--ink); }
.menu-drawer__item--active .menu-drawer__item-icon { color: var(--cream); }
.menu-drawer__item-badge {
  margin-left: auto; font-family: var(--font-body); font-size: 10px; font-weight: 900;
  background: var(--gold); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 7px;
  letter-spacing: .03em; color: var(--ink); flex: none;
}
.menu-drawer__footer {
  padding: 12px 20px 18px; border-top: 3px solid var(--ink); background: var(--sand-deep);
  font-size: 11px; color: var(--brown-text); font-weight: 700; text-align: center; flex: none;
}

/* ---- Saved cinemas strip ---- */
.saved-strip { padding: 0 20px 14px; flex: none; }
.saved-strip__label-row {
  display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px;
}
.saved-strip__label { font-family: var(--font-display); font-size: 17px; color: var(--brown-text); letter-spacing: .03em; }
.saved-strip__edit { font-family: var(--font-display); font-size: 16px; color: var(--tomato); background: none; border: none; cursor: pointer; padding: 0; }
.saved-strip__row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.saved-strip__row::-webkit-scrollbar { display: none; }
.chip-cinema {
  display: flex; align-items: center; gap: 6px; flex: none;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-pill);
  padding: 6px 13px 6px 9px; box-shadow: 3px 3px 0 var(--ink);
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
  cursor: pointer; transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.chip-cinema:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.chip-cinema svg { flex: none; }
.chip-add {
  flex: none; background: var(--sand); border: 3px dashed var(--dashed-1); border-radius: var(--radius-pill);
  padding: 6px 13px; font-family: var(--font-display); font-size: 16px; color: var(--brown-text);
  cursor: pointer; white-space: nowrap;
}

/* ---- Hero ---- */
.hero { display: flex; align-items: flex-start; gap: 4px; padding: 2px 20px 14px; flex: none; }
.hero__copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hero__eyebrow { font-family: var(--font-display); font-size: 18px; color: var(--tomato); letter-spacing: .04em; }
.hero__headline { font-family: var(--font-display); font-size: 42px; line-height: .95; margin-top: 2px; }
.hero__sub { font-size: 12.5px; color: var(--brown-text); font-weight: 700; margin-top: 8px; }
.hero__mascot {
  width: 148px; height: 168px; flex: none;
  margin-left: -14px; margin-top: -6px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__mascot img { width: 100%; height: 100%; object-fit: contain; }

/* ---- Spider-Man movie page mascot overlay ---- */
.spider-swing-overlay {
  position: fixed;
  z-index: 40;
  top: clamp(72px, 16vh, 132px);
  left: -28vw;
  width: clamp(112px, 31vw, 164px);
  aspect-ratio: 2 / 3;
  pointer-events: none;
  animation: spider-swing-across 9s ease-in-out infinite;
  will-change: transform;
}
.spider-swing-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(42, 29, 21, .2));
}
@keyframes spider-swing-across {
  0% { transform: translate3d(0, 34px, 0) rotate(-10deg); }
  12% { transform: translate3d(12vw, -10px, 0) rotate(7deg); }
  50% { transform: translate3d(58vw, 18px, 0) rotate(-5deg); }
  86% { transform: translate3d(104vw, -8px, 0) rotate(8deg); }
  100% { transform: translate3d(142vw, 30px, 0) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spider-swing-overlay { animation: none; left: auto; right: 8px; top: 84px; }
}

/* ---- Search field + location CTA ---- */
.controls { padding: 0 20px 10px; display: flex; flex-direction: column; gap: 9px; flex: none; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hard); padding: 12px 14px;
  cursor: pointer; width: 100%; text-align: left;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.search-field:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.search-field__placeholder { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.search-field--focused { box-shadow: var(--shadow-hard-focus); }

.location-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--tomato); color: var(--white);
  border: 3px solid var(--ink); border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hard); padding: 11px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: .02em; white-space: nowrap;
  cursor: pointer; width: 100%;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.location-cta:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.location-cta svg { flex: none; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 8px; padding: 6px 20px 12px; flex: none; }
.tab {
  flex: 1; text-align: center; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-tab); padding: 8px 0; font-family: var(--font-display); font-size: 21px;
  color: var(--brown-text); cursor: pointer;
}
.tab--active { background: var(--ink); color: var(--cream); }

/* ---- Scroll body ---- */
.scroll-body {
  flex: 1; overflow-y: auto; padding: 2px 20px 16px;
  display: flex; flex-direction: column; gap: 11px;
  -webkit-overflow-scrolling: touch;
}
/* Home screen (both tabs): the list flows inside .home-scroll instead of
   being its own inner scroller — .home-scroll is the single scroll region
   so the sticky bar above it can pin correctly. */
.scroll-body.scroll-body--flow {
  flex: none; overflow-y: visible; -webkit-overflow-scrolling: auto;
}

/* ---- Movie card (list) ---- */
.movie-card {
  display: flex; gap: 12px; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-hard); padding: 11px;
  cursor: pointer; text-align: left; width: 100%;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.movie-card:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.poster {
  width: 66px; height: 94px; flex: none; border-radius: 10px; background: var(--poster);
  border: 2.5px solid var(--ink); display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 5px; font-size: 9.5px; font-weight: 800; color: var(--dashed-2);
  overflow: hidden; position: relative;
}
.poster img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; border-radius: inherit; }
.poster--has-image { color: transparent; }
.poster--detail { width: 108px; height: 154px; border-radius: 13px; padding: 8px; align-items: flex-end; font-size: 10px; }
.poster--thumb { width: 28px; height: 40px; border-radius: 6px; }

.movie-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.movie-card__title-row { display: flex; align-items: flex-start; gap: 6px; }
.movie-card__title { font-family: var(--font-display); font-size: 26px; line-height: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-rating {
  font-family: var(--font-display); font-size: 15px; background: var(--gold);
  border: 2.5px solid var(--ink); border-radius: var(--radius-pill); padding: 1px 8px; flex: none;
}
.movie-card__meta { font-size: 11.5px; color: var(--brown-text); font-weight: 700; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pct-tomato { color: var(--tomato); font-weight: 900; }
.pct-green { color: var(--green); font-weight: 900; }
.movie-card__chips { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; align-items: center; }
/* Home shares detail pills; columns wrap beside the poster on narrow screens. */
.movie-card__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); align-items: stretch; }
.movie-card__chips .chip-overflow { grid-column: 1 / -1; }

.chip-time {
  font-family: var(--font-display); font-size: 18px; background: var(--sand);
  border: 2.5px solid var(--ink); border-radius: var(--radius-chip); padding: 3px 8px;
  cursor: pointer; white-space: nowrap;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.chip-time:active { transform: translate(1px, 1px); }
.chip-overflow { font-family: var(--font-display); font-size: 18px; color: var(--brown-text); padding: 3px 2px; }

/* ---- Load more (pagination) ---- */
.load-more {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hard); padding: 11px;
  font-family: var(--font-display); font-size: 18px; color: var(--ink);
  cursor: pointer; width: 100%; margin-top: 2px;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.load-more:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.load-more__count { color: var(--brown-text); font-weight: 700; font-family: var(--font-body); font-size: 12px; margin-left: 6px; }

/* ---- Format badge (ink pill, cream text) — used on Now-showing showtime chips ---- */
.badge-format {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .03em;
  background: var(--ink); color: var(--cream);
  border-radius: 7px; padding: 2px 6px; white-space: nowrap;
}
.chip-time-group { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Saved-cinema strip edit mode ---- */
.chip-cinema { position: relative; }
.chip-cinema__remove {
  display: none; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--tomato); color: var(--white); border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 13px; line-height: 1; cursor: pointer;
  margin-left: 2px;
}
.saved-strip--editing .chip-cinema__remove { display: flex; }

/* ==========================================================================
   Sheet / modal overlay — trailer player, notifications empty-state
   ========================================================================== */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(42, 29, 21, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100; padding: 0;
}
@media (min-width: 601px) {
  .sheet-overlay { align-items: center; }
}
.sheet {
  width: 100%; max-width: 430px; background: var(--cream);
  border: 3px solid var(--ink); border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 0 var(--ink);
  padding: 16px 18px 22px; max-height: 88vh; overflow-y: auto;
}
@media (min-width: 601px) {
  .sheet { border-radius: 20px; box-shadow: var(--shadow-hard); }
}
.sheet__handle {
  width: 44px; height: 5px; border-radius: 99px; background: var(--dashed-3);
  margin: 0 auto 14px;
}
.sheet__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__title { font-family: var(--font-display); font-size: 24px; }
.sheet__close {
  width: 32px; height: 32px; border-radius: 10px; background: var(--white);
  border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none;
}

/* ---- Trailer player ---- */
.trailer-embed {
  width: 100%; aspect-ratio: 16 / 9; background: var(--ink);
  border: 3px solid var(--ink); border-radius: 13px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.trailer-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-embed__poster {
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--cream);
  cursor: pointer; background: none; border: none; width: 100%; height: 100%; justify-content: center;
}
.trailer-embed__play {
  width: 60px; height: 60px; border-radius: 50%; background: var(--tomato);
  border: 3px solid var(--cream); display: flex; align-items: center; justify-content: center;
}
.trailer-controls { display: flex; gap: 8px; margin-top: 12px; }
.trailer-controls .btn-action { font-size: 16px; padding: 9px; }
.trailer-controls .btn-action svg { flex: none; }

.notif-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px 6px; gap: 8px; }
.notif-empty svg { color: var(--muted); }
.notif-empty__title { font-family: var(--font-display); font-size: 20px; }
.notif-empty__body { font-size: 12.5px; font-weight: 700; color: var(--brown-text); max-width: 240px; }

/* ---- Saved tab (screen: filtered Your cinemas + Shortlisted movies) ---- */
.saved-section { padding: 0 20px 16px; flex: none; }
.saved-section__title { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; }
.saved-section + .saved-section { padding-top: 2px; }
.saved-cinema-grid { display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   Screen 2 — Search
   ========================================================================== */
.search-bar-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px 12px; flex: none; }
.search-input-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hard-focus); padding: 12px 14px;
}
.search-input-wrap input {
  border: none; outline: none; background: none; font-family: var(--font-body);
  font-size: 13.5px; font-weight: 800; color: var(--ink); flex: 1; min-width: 0;
  padding: 0;
}
.search-input-wrap input::placeholder { color: var(--muted); font-weight: 700; }
.search-cancel {
  font-family: var(--font-display); font-size: 20px; color: var(--tomato);
  background: none; border: none; cursor: pointer; white-space: nowrap; padding: 0;
}

.search-results { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; overflow-y: auto; }
.result-group { display: flex; flex-direction: column; gap: 7px; }
.result-group__label { font-family: var(--font-display); font-size: 17px; color: var(--brown-text); letter-spacing: .04em; }
.result-row {
  display: flex; align-items: center; gap: 11px; background: var(--white);
  border: 3px solid var(--ink); border-radius: 14px; padding: 10px 13px;
  cursor: pointer; text-align: left; width: 100%;
}
.result-row__icon-pin svg { flex: none; }
.result-row__text { display: flex; flex-direction: column; min-width: 0; }
.result-row__title { font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-row__title mark { background: var(--highlight); color: inherit; padding: 0; }
.result-row__sub { font-size: 11px; color: var(--brown-text); font-weight: 700; }
.result-row__count { margin-left: auto; font-family: var(--font-display); font-size: 17px; color: var(--brown-text); flex: none; white-space: nowrap; }
.result-row__logo { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--gold); border: 2.5px solid var(--ink); }
.result-row__heart {
  margin-left: auto; flex: none; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.location-fallback {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sand); border: 3px dashed var(--dashed-1); border-radius: 14px; padding: 10px;
  font-family: var(--font-display); font-size: 18px; color: var(--brown-text); white-space: nowrap;
  cursor: pointer; width: 100%; margin: 0 0 14px;
}

.search-footer {
  padding: 14px 20px 18px; border-top: 3px solid var(--ink); background: var(--sand-deep);
  display: flex; flex-direction: column; gap: 6px; flex: none;
}
.search-footer__label { font-family: var(--font-display); font-size: 17px; color: var(--brown-text); }
.recent-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.recent-chip {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-pill);
  padding: 4px 11px; font-size: 12px; font-weight: 800; white-space: nowrap;
  cursor: pointer;
}
.search-empty { text-align: center; padding: 40px 12px; color: var(--brown-text); font-weight: 700; font-size: 13px; }

/* ==========================================================================
   Screen 3 — Cinemas nearby
   ========================================================================== */
.cinemas-title { padding: 8px 20px 10px; flex: none; }
.cinemas-title h1 { font-family: var(--font-display); font-size: 34px; margin: 0; font-weight: 400; }
.filter-row { display: flex; align-items: center; gap: 7px; padding: 0 20px 12px; flex: none; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  display: flex; align-items: center; gap: 6px; background: var(--white);
  border: 3px solid var(--ink); border-radius: var(--radius-pill); padding: 5px 12px;
  font-size: 12px; font-weight: 800; white-space: nowrap; flex: none; cursor: pointer;
}
.filter-chip--active { background: var(--gold); }
.filter-chip svg { flex: none; }

.cinema-card {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard); padding: 12px 13px;
}
.cinema-card__top { display: flex; align-items: flex-start; gap: 10px; }
.cinema-card__logo { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--gold); border: 3px solid var(--ink); }
.cinema-card__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cinema-card__name { font-size: 15px; font-weight: 900; }
.cinema-card__addr { font-size: 11.5px; color: var(--brown-text); font-weight: 700; margin-top: 2px; }
.heart-btn {
  width: 34px; height: 34px; flex: none; border-radius: 11px; border: 3px solid var(--ink);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .08s ease-out;
}
.heart-btn--saved { background: var(--heart-tint); }
.heart-btn svg { transition: transform .18s ease-out; }
.heart-btn.heart-pop svg { animation: heart-pop 180ms ease-out; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.cinema-card__meta-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.pill-distance {
  font-family: var(--font-display); font-size: 19px; background: var(--sand);
  border: 2.5px solid var(--ink); border-radius: 8px; padding: 1px 8px; white-space: nowrap; flex: none;
}
.pill-format {
  font-family: var(--font-display); font-size: 17px; background: var(--ink); color: var(--cream);
  border-radius: 8px; padding: 2px 8px; white-space: nowrap; flex: none;
}
.pill-format--outline {
  background: var(--sand); color: var(--brown-text); border: 2.5px solid var(--ink);
}
.cinema-card__count { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--brown-text); white-space: nowrap; }

.cinema-card__showtimes {
  display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 2.5px dashed var(--dashed-3);
  flex-wrap: wrap; align-items: center;
}

/* ==========================================================================
   Screen 4 — Movie detail
   ========================================================================== */
.detail-nav { display: flex; align-items: center; gap: 10px; padding: 8px 18px 10px; flex: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-icon-btn); background: var(--white);
  border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.icon-btn:active { transform: translate(1px, 1px); }
.detail-nav__right { margin-left: auto; display: flex; gap: 8px; }

.detail-hero { display: flex; gap: 13px; padding: 0 18px 12px; flex: none; }
.detail-hero__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.detail-hero__title { font-family: var(--font-display); font-size: 36px; line-height: .95; }
.detail-hero__badges { display: flex; align-items: center; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.badge-rating--lg { font-size: 16px; padding: 1px 9px; }
.detail-hero__genre { font-size: 11.5px; font-weight: 800; color: var(--brown-text); }
.detail-hero__score { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.detail-hero__score-num { font-family: var(--font-display); font-size: 24px; color: var(--tomato); }
.score-track {
  flex: 1; height: 9px; background: #F0E1C4; border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill); overflow: hidden;
}
.score-fill { display: block; height: 100%; background: var(--tomato); }
.detail-hero__synopsis { font-size: 12px; line-height: 1.5; color: var(--brown-body); font-weight: 600; margin-top: 9px; }

.action-pair { display: flex; gap: 9px; padding: 0 18px 12px; flex: none; }
.btn-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-hard);
  padding: 11px; font-family: var(--font-display); font-size: 22px; cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.btn-action:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.btn-action--primary { background: var(--tomato); color: var(--white); }
.btn-action--secondary { background: var(--white); color: var(--ink); }
.btn-action--secondary.is-active { background: var(--heart-tint); }
.btn-action--secondary.is-active svg { fill: var(--tomato); }

.date-strip { display: flex; gap: 8px; padding: 0 18px 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-cell {
  flex: none; width: 64px; text-align: center; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-tab); padding: 7px 0; font-family: var(--font-display); font-size: 17px;
  line-height: 1.15; cursor: pointer;
}
.date-cell--active { background: var(--tomato); color: var(--white); }
.date-cell--dim { color: var(--brown-text); }

/* ---- Sort control: sits beside the date strip, opens the sort bottom sheet ---- */
.date-sort-row { display: flex; align-items: center; gap: 8px; padding: 0 18px 12px; flex: none; }
.date-sort-row .date-strip--inline { padding: 0; flex: 1; min-width: 0; }
.sort-btn {
  flex: none; width: 40px; height: 40px; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-tab); box-shadow: var(--shadow-hard);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.sort-btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.sort-btn--active { background: var(--heart-tint); }

.sort-options { display: flex; flex-direction: column; gap: 8px; }
.sort-option { cursor: pointer; }
.sort-option--active { background: var(--heart-tint); border-color: var(--tomato); }
.sort-option__check { margin-left: auto; flex: none; color: var(--tomato); }
.sort-option--disabled { opacity: .5; cursor: not-allowed; }
.sort-option--disabled .result-row__sub { color: var(--tomato); }

.detail-body { flex: 1; overflow-y: auto; padding: 0 18px 20px; display: flex; flex-direction: column; gap: 11px; }
.showtime-card {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard); padding: 12px 13px;
}
.showtime-card__top { display: flex; align-items: center; gap: 9px; }
.showtime-card__formats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.showtime-card__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.showtime-cell {
  min-width: 0; width: 100%; overflow-wrap: anywhere;
  display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--sand);
  border: 2.5px solid var(--ink); border-radius: 11px; padding: 7px 2px;
  cursor: pointer; text-align: center; transition: transform .08s ease-out;
}
.showtime-cell:active { transform: translate(1px, 1px); }
.showtime-cell__time { font-family: var(--font-display); font-size: 22px; }
.showtime-cell__label { font-size: 10.5px; font-weight: 800; color: var(--brown-text); }
.showtime-cell__occ { font-family: var(--font-display); font-size: 16px; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px; gap: 12px; color: var(--brown-text);
}
/* Was 120px — read as noticeably small next to the coming-soon mascot (132px)
   and the about-page mascot (much larger). Bumped to a real, clearly-bigger
   size; this governs every empty-state sprite (no-food, noshowtimes-sad). */
.empty-state img { width: 176px; height: auto; }
.empty-state__title { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.empty-state__body { font-size: 13px; font-weight: 700; max-width: 260px; }

/* ==========================================================================
   Simple content pages — Events / Promotion / Giveaway / About
   ========================================================================== */
.simple-page { display: flex; flex-direction: column; flex: 1; }
.simple-page__nav { display: flex; align-items: center; gap: 10px; padding: 8px 18px 6px; flex: none; }
.simple-page__title { font-family: var(--font-display); font-size: 34px; padding: 6px 20px 4px; margin: 0; flex: none; }
.simple-page__sub { font-size: 12.5px; color: var(--brown-text); font-weight: 700; padding: 0 20px 14px; margin: 0; flex: none; }
.simple-page__body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---- Show Types tabs (5 tabs, horizontally scrollable — same sticker
   tab look as the Home what's-on/cinemas tabs, but scoped narrower since
   there are 5 instead of 2) ---- */
.show-types-tabs {
  display: flex; gap: 8px; padding: 2px 20px 14px; flex: none;
  overflow-x: auto; scrollbar-width: none;
}
.show-types-tabs::-webkit-scrollbar { display: none; }
.show-types-tab {
  flex: none; text-align: center; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-tab); padding: 8px 16px; font-family: var(--font-display); font-size: 18px;
  color: var(--brown-text); cursor: pointer; white-space: nowrap;
}
.show-types-tab--active { background: var(--ink); color: var(--cream); }

/* ---- Poster grid (Movies tab / "all in clickable posters, with the name
   etc below") — clickable poster tiles, title underneath, same tap-to-open
   behaviour and poster fallback as every movie-card elsewhere. ---- */
.poster-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.poster-grid__item {
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  text-align: left; width: 100%; background: none; border: none; padding: 0;
}
.poster-grid__item .poster--grid {
  width: 100%; height: 0; padding-bottom: 142%; border-radius: 13px;
  box-shadow: var(--shadow-hard-pressed);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.poster-grid__item:active .poster--grid { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.poster-grid__title {
  font-family: var(--font-display); font-size: 18px; line-height: 1.05; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Events list (reuses movie-card layout for consistency) ---- */
.event-card {
  display: flex; gap: 12px; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-hard); padding: 12px;
}
.event-card__badge {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .03em;
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 99px;
  padding: 2px 9px; display: inline-block; margin-bottom: 6px; align-self: flex-start;
}
.event-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.event-card__title { font-family: var(--font-display); font-size: 22px; line-height: 1.05; }
.event-card__meta { font-size: 11.5px; color: var(--brown-text); font-weight: 700; margin-top: 5px; }

/* ---- Coming-soon placeholder (Promotion / Giveaway) ---- */
.coming-soon {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 30px 20px 20px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
}
.coming-soon img { width: 132px; height: auto; }
.coming-soon__eyebrow {
  font-family: var(--font-display); font-size: 17px; color: var(--tomato); letter-spacing: .04em;
}
.coming-soon__title { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.coming-soon__body { font-size: 13px; font-weight: 700; color: var(--brown-body); max-width: 280px; line-height: 1.5; }
.coming-soon__badge {
  font-family: var(--font-display); font-size: 16px; background: var(--sand);
  border: 2.5px dashed var(--dashed-1); border-radius: 99px; padding: 5px 16px; color: var(--brown-text);
}

/* ---- About page ---- */
.about-page__hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 10px 8px 20px;
}
.about-page__mascot { width: 140px; height: auto; }
.about-page__eyebrow { font-family: var(--font-display); font-size: 18px; color: var(--tomato); letter-spacing: .04em; }
.about-page__title { font-family: var(--font-display); font-size: 36px; line-height: .95; }
.about-page__copy {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}
.about-page__copy p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--brown-body); font-weight: 600; }
.about-page__signoff { font-family: var(--font-display); font-size: 20px; color: var(--tomato); text-align: center; margin-top: 4px; }

/* ==========================================================================
   Brand filter — multi-select chip toggles (GV / Shaw / Eagle Wings)
   ========================================================================== */
.brand-filter-row { display: flex; align-items: center; gap: 7px; padding: 0 20px 12px; flex-wrap: wrap; flex: none; }
.brand-filter-row__label { font-size: 11px; font-weight: 800; color: var(--brown-text); margin-right: 2px; white-space: nowrap; }
.brand-chip {
  display: flex; align-items: center; gap: 5px; background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--radius-pill); padding: 5px 12px;
  font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer;
  transition: transform .08s ease-out, background .08s ease-out;
}
.brand-chip:active { transform: translate(1px, 1px); }
.brand-chip--active { background: var(--gold); }
.brand-chip__check { display: none; }
.brand-chip--active .brand-chip__check { display: inline-flex; }

.loading-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; gap: 10px; color: var(--brown-text); flex: 1;
}
.loading-state__spinner {
  width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--sand);
  border-top-color: var(--tomato); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Pressed state helper for generic elements ---- */
.pressable { transition: transform .08s ease-out, box-shadow .08s ease-out; }
.pressable:active { transform: translate(2px, 2px); }

/* ---- Utility ---- */
.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;
}
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
