/* ==========================================================================
   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: fills viewport on mobile, centers a mobile-width column on desktop ---- */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 431px) {
  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 */
  }
}

/* ---- 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__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);
}

/* ---- 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: 12px; 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: 112px; height: 128px; flex: none;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__mascot img { width: 100%; height: 100%; object-fit: contain; }

/* ---- 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;
}

/* ---- 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: 6px; margin-top: 9px; flex-wrap: wrap; align-items: center; }

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

/* ---- Bottom nav ---- */
.bottom-nav {
  display: flex; border-top: 3px solid var(--ink); background: var(--cream); flex: none;
}
.bottom-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 14px; background: none; border: none; cursor: pointer;
}
.bottom-nav__item svg { stroke: var(--brown-text); }
.bottom-nav__item span { font-family: var(--font-display); font-size: 15px; color: var(--brown-text); }
.bottom-nav__item--active svg { stroke: var(--tomato); }
.bottom-nav__item--active span { color: var(--tomato); }

/* ---- 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: 431px) {
  .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: 431px) {
  .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); }

.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__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 11px; }
.showtime-cell {
  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__price { 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);
}
.empty-state img { width: 120px; 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; }

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