/* Branch movies — hero overlay + showtimes board (new_design) */

.branch-main--movies {
  flex: 1;
  padding: 0 0 64px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #c5c7cd;
  font-size: 13px;
  letter-spacing: .02em;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--teal-text);
  border-radius: 5px;
  color: var(--teal-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.age-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--teal-text);
  border-radius: 5px;
  background: rgb(8 9 15 / 72%);
  color: var(--teal-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.age-badge.is-meta {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  background: transparent;
  vertical-align: middle;
}

.arabic .age-badge,
.arabic .movie-meta span { font-size: 12px; }

.hero {
  position: relative;
  padding-block: 124px 30px;
  background: radial-gradient(55% 70% at 78% 42%, rgb(0 83 76 / 30%), transparent 72%), var(--night);
}

.hero[hidden] { display: none; }

.hero-availability {
  margin: 0 0 14px;
  color: var(--teal-text);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}

.hero h1 {
  margin: 0;
  overflow: visible;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-synopsis {
  max-width: 56ch;
  margin: 16px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #d2d3d7;
  font-size: 15px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-showtimes {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.hero-showtimes > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hero-showtimes b {
  flex: 0 0 auto;
  min-width: 34px;
  color: var(--teal-text);
  font-size: 12px;
  letter-spacing: .06em;
}

.hero-showtimes-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 22px;
}

.trailer-link,
.detail-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 650;
}

.trailer-link { color: #fff; }

.detail-link { color: #c5c6cc; }

.hero-stage picture,
.hero-backdrop picture,
.hero-film-rail picture { display: contents; }

.hero-art {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 55%), 0 0 0 1px rgb(255 255 255 / 8%);
  animation: heroArt .45s ease;
}

@keyframes heroArt {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hero-carousel { margin-top: 22px; }

.hero-film-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
}

.hero-film-rail::-webkit-scrollbar { display: none; }

.hero-film-rail > button {
  flex: 0 0 96px;
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5c7cd;
  opacity: .62;
  text-align: start;
  scroll-snap-align: start;
  cursor: pointer;
  transition: opacity .2s ease;
  font: inherit;
}

.hero-film-rail > button:hover,
.hero-film-rail > button.active { opacity: 1; color: white; }

.hero-film-rail .rail-img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 686;
  object-fit: cover;
  border-radius: 8px;
  outline: none;
  box-shadow: none;
}

.hero-film-rail b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  padding-bottom: .1em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero--overlay {
  --header-h: 92px;
  --mobile-nav-h: 0px;
  --art-h: min(56vh, calc(100dvh - var(--header-h) - 300px));
  box-sizing: border-box;
  height: auto;
  max-height: none;
  display: block;
  overflow: visible;
  padding-block: var(--header-h) 28px;
  background: var(--night);
}

.hero-backdrop {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  overflow: hidden;
  border-radius: 12px;
}

.hero--overlay .hero-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 761px) {
  .hero-backdrop,
  .hero-backdrop .media-frame {
    aspect-ratio: 3 / 1;
  }

  .hero--overlay .hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--night) 0%, rgb(15 16 19 / 72%) 12%, rgb(15 16 19 / 0%) 36%);
}

.hero-overlay-copy {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

.hero-overlay-copy > * { max-width: 680px; }
.hero--overlay .hero-synopsis { min-height: 0; }

.board { padding-block: 72px 96px; }

.board-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 18px 36px;
}

.board-head h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .96;
  letter-spacing: -.035em;
}

.board-source {
  max-width: 48ch;
  margin: 0;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.5;
}

.movie-toolbar {
  display: grid;
  gap: 14px;
  margin: 30px 0 28px;
}

.date-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.date-tabs button {
  min-width: 86px;
  min-height: 58px;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 10px;
  background: transparent;
  color: white;
  cursor: pointer;
  text-align: center;
  font: inherit;
}

.date-tabs span {
  color: var(--muted-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.date-tabs b { font-size: 15px; }

.date-tabs button.active {
  border-color: var(--teal-text);
  background: var(--coral);
}

.date-tabs button.active span { color: rgb(255 255 255 / 78%); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.format-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-filters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  background: transparent;
  color: #d5d7dc;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
}

.format-filters button.active {
  border-color: var(--teal-text);
  background: var(--coral);
  color: white;
}

.lang-filter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 10px;
}

.lang-filter button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c5c7cd;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.lang-filter button.active {
  background: var(--coral);
  color: white;
}

.result-line {
  margin: 0;
  color: var(--muted-text);
  font-size: 13px;
}

.film-board { display: grid; gap: 14px; }

.film-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.film-row-poster {
  position: relative;
  display: block;
  align-self: start;
  overflow: hidden;
  border-radius: 10px;
}

.film-row-poster img,
.film-row-poster .media-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 686;
  object-fit: cover;
  transition: transform .3s ease, opacity .4s ease;
}

.film-row-poster:hover .media-frame.is-loaded .media-img,
.film-row-poster:hover img { transform: scale(1.03); }

.film-row-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.film-row h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  text-align: start;
}

.film-row h3 a { text-decoration: none; }
.film-row h3 a:hover { color: var(--teal-text); }
.film-row h3 bdi { unicode-bidi: isolate; }

.film-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 8px 0 0;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.45;
}

.film-row-meta__bits {
  flex: 1 1 12ch;
  min-width: 0;
  overflow-wrap: anywhere;
}

.film-row-shows { display: grid; gap: 12px; }

.show-group {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.show-group-label b {
  display: block;
  color: #e6e7ea;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.show-group-label span {
  display: block;
  margin-top: 3px;
  color: var(--muted-text);
  font-size: 12px;
}

.show-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.show-chip {
  min-width: 92px;
  min-height: 50px;
  display: grid;
  place-content: center;
  gap: 1px;
  padding: 4px 12px;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 9px;
  background: transparent;
  color: white;
  cursor: pointer;
  text-align: center;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.show-chip .chip-time {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.show-chip .chip-sub {
  color: var(--muted-text);
  font-size: 11px;
  white-space: nowrap;
}

.show-chip:hover:not(:disabled) {
  border-color: var(--teal-text);
  background: var(--coral);
}

.show-chip:hover:not(:disabled) .chip-sub { color: rgb(255 255 255 / 82%); }
.show-chip.low .chip-sub { color: #e0a458; }
.show-chip.late .chip-sub { color: rgb(160 190 210); }
.show-chip.sold,
.show-chip.past { opacity: .4; cursor: not-allowed; }
.show-chip.past .chip-time,
.show-chip.sold .chip-time { text-decoration: line-through; }

.hero-showtimes .show-chip {
  min-width: 84px;
  min-height: 46px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 8px 0 20px;
  padding: clamp(40px, 8vw, 64px) 24px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgb(61 218 204 / 10%), transparent 70%),
    linear-gradient(180deg, #14171d, #0f1115);
  text-align: center;
}

.empty-state__mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  border-radius: 20px;
  background: rgb(61 218 204 / 12%);
  color: var(--teal-text);
  box-shadow: inset 0 0 0 1px rgb(61 218 204 / 18%);
}

.empty-state h3 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(22px, 4.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
}

.empty-state p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted-text);
  font-size: 15px;
  line-height: 1.5;
}

.empty-state__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--teal, #3ddacc);
  color: #041312;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.empty-state__clear:hover {
  filter: brightness(1.06);
}

.empty-state__clear:active {
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .empty-state {
    padding: 36px 18px 32px;
    border-radius: 16px;
  }

  .empty-state__clear {
    width: 100%;
    max-width: 280px;
  }
}

.card-note {
  margin: 0;
  color: var(--muted-text);
  font-size: 13px;
}

.arabic .hero-availability,
.arabic .date-tabs span,
.arabic .show-group-label b {
  letter-spacing: 0;
  text-transform: none;
}

.arabic .show-chip .chip-time {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: 'Neue Regrade', 'Scene Arabic', Arial, sans-serif;
  font-synthesis: none;
}

.arabic .show-chip .chip-sub,
.arabic .age-badge,
.arabic .movie-meta span {
  direction: inherit;
  unicode-bidi: plaintext;
  font-family: inherit;
  font-synthesis: none;
  letter-spacing: 0;
}

.arabic .show-group-label bdi.latin,
.arabic .age-badge bdi.latin {
  font-family: 'Neue Regrade', 'Scene Arabic', Arial, sans-serif;
}

@media (max-width: 1099px) {
  .hero--overlay { --mobile-nav-h: 68px; }
}

@media (max-width: 767px) {
  .hero--overlay {
    --header-h: 64px;
    --mobile-nav-h: 68px;
    --art-h: calc(100svh - var(--header-h) - var(--mobile-nav-h) - env(safe-area-inset-bottom) - 230px);
    padding-bottom: 16px;
  }

  .hero--overlay .hero-art {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  .hero-overlay-copy { margin-top: -28px; }
  .hero-synopsis { -webkit-line-clamp: 2; }
}

@media (max-width: 760px) {
  .hero--overlay .hero-art {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  .hero-backdrop::after {
    background: linear-gradient(0deg, var(--night) 0%, rgb(15 16 19 / 96%) 12%, rgb(15 16 19 / 0%) 26%);
  }

  .hero h1 {
    font-size: clamp(30px, 8.6vw, 42px);
    line-height: 1.1;
  }

  .hero-synopsis {
    margin-top: 10px;
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .hero-showtimes {
    margin-top: 14px;
  }

  .hero-showtimes > div {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero-showtimes-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-showtimes .show-chip {
    min-width: 0;
    width: 100%;
    padding: 8px 6px;
  }

  .hero-film-rail {
    padding: 2px 2px 12px;
  }

  .hero-film-rail > button { flex-basis: 176px; }

  .hero-film-rail .rail-img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
  }

  .board { padding-block: 52px 72px; }
  .movie-toolbar { margin-top: 22px; }
  .date-tabs button { min-width: 108px; min-height: 54px; padding: 0 12px; }
  .date-tabs span { letter-spacing: 0; font-size: 11px; }
  .show-group-label { text-align: center; }
  .filter-row {
    display: grid;
    gap: 10px;
    justify-content: stretch;
  }

  .format-filters {
    flex-wrap: nowrap;
    margin-inline: -4px;
    padding-inline: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .format-filters::-webkit-scrollbar { display: none; }

  .format-filters button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .lang-filter {
    width: 100%;
    display: flex;
    justify-self: stretch;
  }

  .lang-filter button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .film-row {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: "poster head" "shows shows";
    gap: 14px;
    padding: 14px;
  }

  .film-row-poster { grid-area: poster; }
  .film-row-main { display: contents; }
  .film-row-main > header { grid-area: head; align-self: center; }
  .film-row-main > .film-row-shows { grid-area: shows; }
  .film-row h3 { font-size: 19px; }
  .show-group { grid-template-columns: 1fr; gap: 8px; }
  .show-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .show-chip { min-width: 0; padding: 4px; }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 20px;
  }

  .hero-actions .primary-button {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 750;
  }

  .hero-actions .trailer-link,
  .hero-actions .detail-link {
    width: 100%;
    min-height: 0;
    padding: 2px 0;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
  }

  .hero-actions .trailer-link {
    color: #fff;
  }

  .hero-actions .detail-link {
    margin-top: 2px;
    color: #a8abb3;
    font-size: 15px;
    font-weight: 500;
  }

  .board { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
