/* ────────────────────────────────────────────────────────────────
   Navigation
   ──────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(8,8,10,0.55), rgba(8,8,10,0));
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), height var(--dur) var(--ease);
}

.nav.is-scrolled {
  background: rgba(8, 8, 10, 0.92);
  border-bottom-color: var(--line);
  height: 64px;
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  color: var(--bone);
  text-decoration: none;
  position: relative;
}

/* ────────────────────────────────────────────────────────────────
   WORDMARK — the cinema's typographic logo
   "Browntis"  │  MOVIES
                  SYDNEY · EST. 2026
   ──────────────────────────────────────────────────────────────── */

.wordmark {
  display: inline-grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: 0 14px;
  line-height: 1;
  font-family: var(--font-display);
  transition: opacity var(--dur) var(--ease);
}

.wordmark__primary {
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.025em;
  color: var(--bone);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.wordmark__rule {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.6;
  transition: opacity var(--dur) var(--ease);
}

.wordmark__secondary {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.wordmark__secondary em {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.wordmark__secondary > span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim-2);
  white-space: nowrap;
}

/* Hover state — subtle */
.nav__brand:hover .wordmark__primary { color: var(--gold); }
.nav__brand:hover .wordmark__rule { opacity: 1; }
.nav__brand:hover .wordmark__secondary em { color: var(--bone); }

/* Footer / larger contexts */
.wordmark--lg .wordmark__primary { font-size: 2.1rem; }
.wordmark--lg .wordmark__rule { height: 44px; }
.wordmark--lg .wordmark__secondary em { font-size: 11.5px; }
.wordmark--lg .wordmark__secondary > span { font-size: 9px; }

/* When nav collapses on scroll, tighten the wordmark a touch */
.nav.is-scrolled .wordmark__primary { font-size: 1.5rem; }
.nav.is-scrolled .wordmark__rule { height: 32px; }

/* Mobile — hide the secondary half, keep the italic name only */
@media (max-width: 720px) {
  .wordmark { grid-template-columns: auto; gap: 0; }
  .wordmark__rule,
  .wordmark__secondary { display: none; }
  .wordmark__primary { font-size: 1.5rem; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  position: relative;
  padding: 6px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--bone);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--bone);
}

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-6);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }
  .nav__links.is-open {
    transform: none;
    visibility: visible;
  }
  .nav__link {
    font-size: 14px;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__cta {
    margin-top: var(--s-4);
    justify-content: center;
  }
}

/* ────────────────────────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 15px 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  border-radius: 0;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Arrow icon translates on hover */
.btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  transition: transform var(--dur) var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-0);
}
.btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--ink-0);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(201,169,97,0.45);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--dim);
  padding-inline: 0;
}
.btn--ghost:hover {
  color: var(--gold);
  border-color: transparent;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Light shine sweep across primary buttons on hover */
.btn--gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 600ms var(--ease);
  pointer-events: none;
}
.btn--gold:hover::before { left: 140%; }

/* ────────────────────────────────────────────────────────────────
   Movie card (editorial poster + meta)
   ──────────────────────────────────────────────────────────────── */

.movie-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  isolation: isolate;
  transition: transform var(--dur) var(--ease);
}

.movie-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.movie-card:hover { transform: translateY(-4px); }

.movie-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.movie-card:hover .movie-card__poster {
  border-color: var(--line-strong);
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease), filter var(--dur) var(--ease);
  filter: saturate(0.92) brightness(0.94) contrast(1.02);
  image-rendering: auto;
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.02) contrast(1.04);
}

/* Subtle vignette overlay on poster */
.movie-card__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
  pointer-events: none;
  opacity: 0.9;
  transition: opacity var(--dur) var(--ease);
}
.movie-card:hover .movie-card__poster::after { opacity: 0.5; }

/* Reveal chevron on hover */
.movie-card__poster .chev {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 2;
}
.movie-card__poster .chev svg { width: 14px; height: 14px; stroke-width: 2; }
.movie-card:hover .movie-card__poster .chev { opacity: 1; transform: none; }

.movie-card__rating {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  background: rgba(8, 8, 10, 0.82);
  color: var(--bone);
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.movie-card__body {
  padding: var(--s-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
  justify-content: space-between;
}

.movie-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.18;
  letter-spacing: var(--ls-tight);
  color: var(--bone);
  transition: color var(--dur-fast) var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
  /* Reserve 2 lines of height so short titles still align with long
     titles across the grid. */
  min-height: calc(var(--fs-lg) * 1.18 * 2);
}

.movie-card:hover .movie-card__title {
  color: var(--gold);
}

.movie-card__meta {
  display: flex;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim-2);
  align-items: center;
}

.movie-card__meta-sep {
  width: 2px;
  height: 2px;
  background: var(--dim-2);
  display: inline-block;
}

/* ────────────────────────────────────────────────────────────────
   Showtime chip — ticket-stub feel
   ──────────────────────────────────────────────────────────────── */

.showtime {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, var(--ink-2), var(--ink-1));
  color: var(--bone);
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  min-width: 120px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hairline ticket "perforation" on the left edge */
.showtime::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 3px;
  background: var(--line-strong);
  transition: background var(--dur-fast) var(--ease);
}

.showtime:hover {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, var(--ink-2), var(--ink-1));
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(201,169,97,0.4);
}
.showtime:hover::before { background: var(--gold); }

.showtime__time {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.showtime__meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.showtime:hover .showtime__meta {
  color: var(--bone-2);
}

/* ────────────────────────────────────────────────────────────────
   Tabs (date selector etc.)
   ──────────────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 1px;
}

.tab {
  padding: 16px 22px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  border-right: 1px dashed var(--line);
  cursor: pointer;
  position: relative;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
  background: transparent;
  text-align: left;
}
.tab:last-child { border-right: 0; }

.tab span.day {
  display: block;
  color: inherit;
}
.tab span.date {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  text-transform: none;
  margin-top: 4px;
  color: var(--bone);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--bone); background: rgba(245,241,232,0.015); }

/* Active tab — slight gold underline + bone date */
.tab[aria-selected="true"],
.tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: linear-gradient(180deg, transparent 60%, rgba(201,169,97,0.04));
}
.tab[aria-selected="true"] span.date,
.tab.is-active span.date {
  color: var(--gold);
}
.tab[aria-selected="true"]::after,
.tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
/* Session count badge in the corner of each tab */
.tab__count {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 8.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--dim-2);
  background: var(--ink-3);
  padding: 1px 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tab.is-active .tab__count {
  color: var(--gold);
  border-color: var(--line-gold);
  background: var(--gold-faint);
}
.tab--special .tab__count {
  color: var(--gold);
}
.tab--special::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
  transform: translateX(-50%);
}

/* ────────────────────────────────────────────────────────────────
   Filter pills (Now Showing / Coming Soon / Events)
   ──────────────────────────────────────────────────────────────── */

.pills {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.pill:hover { color: var(--bone); border-color: var(--bone); }
.pill.is-active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* ────────────────────────────────────────────────────────────────
   Form controls
   ──────────────────────────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--dim-2);
}

.field__error {
  font-size: var(--fs-xs);
  color: var(--danger);
}

/* Per-field inline error inserted by booking.js validation */
.field__inline-error {
  font-size: var(--fs-xs);
  color: var(--danger);
  margin-top: 4px;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.field--invalid .input,
.field--invalid .textarea,
.field--invalid .select {
  border-bottom-color: var(--danger);
}
.field--invalid .field__label {
  color: var(--danger);
}

.input,
.textarea,
.select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-size: var(--fs-md);
  color: var(--bone);
  transition: border-color var(--dur-fast) var(--ease);
  font-family: var(--font-body);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--mute);
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

/* Quantity stepper for tickets */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
}
.qty__btn {
  width: 40px;
  height: 40px;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.qty__btn:hover { background: var(--ink-2); color: var(--gold); }
.qty__val {
  min-width: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ────────────────────────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s-8) var(--s-6);
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-0) 100%);
  position: relative;
}
/* Sweep of gold at the very top edge */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.6;
}

.footer__inner {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
}
.footer__brand { grid-column: span 1; }
@media (max-width: 1100px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .footer__inner { grid-template-columns: 1fr; }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.footer__brand p { font-size: var(--fs-sm); color: var(--dim); max-width: 38ch; line-height: 1.65; }

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: var(--s-4);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.footer__col h5::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: var(--fs-sm);
  color: var(--dim);
}
.footer__col a:hover { color: var(--bone); }

.footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mute);
}
.footer__bottom-divider {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  opacity: 0.5;
  transform: rotate(45deg);
}

/* Newsletter form in footer */
.footer__news {
  margin-top: var(--s-3);
  max-width: 360px;
}
.footer__news-label {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-3);
  font-weight: 500;
  gap: 4px;
}
.footer__news-label span {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--dim-2);
  font-weight: 400;
}
.footer__news-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--dur-fast) var(--ease);
}
.footer__news-row:focus-within {
  border-bottom-color: var(--gold);
}
.footer__news-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  padding: var(--s-2) 0;
  outline: none;
}
.footer__news-input::placeholder {
  color: var(--dim-2);
}
.footer__news-btn {
  background: transparent;
  border: 0;
  color: var(--bone);
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  display: inline-flex;
  align-items: center;
}
.footer__news-btn:hover {
  color: var(--gold);
  transform: translateX(2px);
}
.footer__news-msg {
  font-size: 11px;
  font-family: var(--font-body);
  margin-top: 6px;
  min-height: 1.2em;
  color: var(--dim-2);
  letter-spacing: 0;
}
.footer__news-msg.is-ok  { color: var(--success); }
.footer__news-msg.is-err { color: var(--danger);  }

/* ────────────────────────────────────────────────────────────────
   Misc
   ──────────────────────────────────────────────────────────────── */

.icon { width: 16px; height: 16px; stroke-width: 1.6; flex-shrink: 0; }
.icon-lg { width: 22px; height: 22px; }

.callout {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.05), transparent);
  position: relative;
}
/* Gold corner accent — top-left only, subtle */
.callout::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.callout__icon {
  color: var(--gold);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.callout__icon .icon { width: 22px; height: 22px; }
.callout__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.callout p { font-size: var(--fs-sm); margin: 0; line-height: 1.65; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink-2);
  border: 1px solid var(--gold);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  transform: translateY(120%);
  transition: transform var(--dur) var(--ease);
  z-index: 200;
}
.toast.is-on { transform: none; }

/* ────────────────────────────────────────────────────────────────
   Top progress bar — animates on internal navigation.
   ──────────────────────────────────────────────────────────────── */
.top-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1100;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.top-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(201,169,97,0.6), 0 0 2px rgba(201,169,97,0.8);
  transition: width 0.4s cubic-bezier(.22,.61,.36,1);
}
.top-progress.is-loading {
  opacity: 1;
}
.top-progress.is-loading > span {
  /* Animate to 80% gradually, browser will then navigate away. */
  width: 80%;
  transition: width 8s cubic-bezier(.08,.84,.34,1);
}
.top-progress.is-done > span {
  width: 100%;
  transition: width 0.25s ease;
}
.top-progress.is-done {
  opacity: 0;
  transition-delay: 0.2s;
}

/* ────────────────────────────────────────────────────────────────
   Modal — used by trailers & generic dialogs.
   ──────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), visibility 0s linear 0.2s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s var(--ease), visibility 0s linear 0s;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(4px) saturate(85%);
  -webkit-backdrop-filter: blur(4px) saturate(85%);
  cursor: pointer;
}
.modal__panel {
  position: relative;
  max-width: 96vw;
  max-height: 90vh;
  background: var(--ink-1);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal--sm .modal__panel { width: min(440px, 96vw); }
.modal--md .modal__panel { width: min(640px, 96vw); }
.modal--lg .modal__panel { width: min(960px, 96vw); }

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(8,8,10,0.65);
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.modal__close:hover {
  background: var(--ink-3);
  color: var(--gold);
  border-color: var(--gold);
}
.modal__body { overflow: auto; }

.has-modal { overflow: hidden; }

.trailer-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ────────────────────────────────────────────────────────────────
   Favourite heart button — overlays movie cards & posters.
   ──────────────────────────────────────────────────────────────── */
.fav-btn {
  --size: 36px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,10,0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--bone);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.fav-btn svg {
  width: 18px;
  height: 18px;
  transition: fill var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.fav-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: scale(1.05);
}
.fav-btn.is-on {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(201,169,97,0.12);
}
.fav-btn.is-on svg {
  fill: currentColor;
}
.fav-btn.pop svg {
  animation: favPop 0.32s cubic-bezier(.34,1.56,.64,1);
}
@keyframes favPop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Movie card favourite position */
.movie-card { position: relative; }
.movie-card .fav-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  --size: 32px;
}
.movie-card .fav-btn svg { width: 15px; height: 15px; }

/* Movie-row poster favourite */
.movie-row__poster { position: relative; }
.movie-row__poster .fav-btn {
  position: absolute;
  top: 10px; right: 10px;
  --size: 32px;
}
.movie-row__poster .fav-btn svg { width: 15px; height: 15px; }

/* Detail-page favourite — sits in the action group, larger */
.detail-hero .fav-btn {
  --size: 44px;
}

/* ────────────────────────────────────────────────────────────────
   Nav icon buttons (search, fav) inside .nav__links
   ──────────────────────────────────────────────────────────────── */
.nav__icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 10px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  position: relative;
}
.nav__icon-btn:hover {
  color: var(--bone);
  border-color: var(--line);
}
.nav__icon-btn--fav { position: relative; }
.nav__kbd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--dim-2);
  margin-left: 2px;
}
.nav__badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* On mobile, hide the kbd hint */
@media (max-width: 720px) {
  .nav__kbd { display: none; }
  .nav__icon-btn { padding: 8px; }
}

/* ────────────────────────────────────────────────────────────────
   Command palette (⌘K)
   ──────────────────────────────────────────────────────────────── */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh var(--s-4) var(--s-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), visibility 0s linear 0.2s;
}
.cmdk.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s var(--ease), visibility 0s linear 0s;
}
.cmdk__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,7,0.78);
  backdrop-filter: blur(6px) saturate(85%);
  -webkit-backdrop-filter: blur(6px) saturate(85%);
}
.cmdk__panel {
  position: relative;
  width: min(640px, 96vw);
  max-height: 70vh;
  background: var(--ink-1);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transform: translateY(-12px);
  transition: transform 0.22s var(--ease);
}
.cmdk.is-open .cmdk__panel { transform: none; }

.cmdk__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4);
  border-bottom: 1px solid var(--line);
}
.cmdk__search-icon {
  color: var(--gold);
  width: 18px; height: 18px;
}
.cmdk__input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  outline: none;
}
.cmdk__input::placeholder { color: var(--dim-2); }
.cmdk__kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 2px;
}

.cmdk__list {
  overflow: auto;
  padding: 6px;
  flex: 1;
  min-height: 60px;
}

.cmdk__item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: 10px 12px;
  border-radius: 2px;
  text-decoration: none;
  color: var(--bone);
  transition: background var(--dur-fast) var(--ease);
}
.cmdk__item.is-active {
  background: var(--ink-3);
}
.cmdk__icon {
  width: 36px;
  height: 50px;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  flex-shrink: 0;
}
.cmdk__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmdk__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cmdk__title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk__sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk__kind {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.cmdk__empty {
  padding: var(--s-6) var(--s-5);
  text-align: center;
  color: var(--dim);
}
.cmdk__empty .eyebrow { color: var(--gold); margin-bottom: var(--s-3); }
.cmdk__empty strong { color: var(--bone); }

.cmdk__foot {
  display: flex;
  gap: var(--s-4);
  padding: 10px var(--s-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.cmdk__foot kbd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-right: 4px;
  color: var(--dim);
}

@media (max-width: 480px) {
  .cmdk { padding-top: 5vh; }
  .cmdk__foot span:nth-child(2),
  .cmdk__foot span:nth-child(3) { display: none; }
}
