/* Branch home chrome — header / footer from new_design */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.branch-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: white;
}

.branch-header.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgb(15 16 19 / 94%);
  backdrop-filter: blur(10px);
  transition: background .25s ease, box-shadow .25s ease;
}

.branch-header.scrolled {
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
}

.branch-header.scrolled .header-shell { min-height: 72px; }
.branch-header.scrolled .brand img { width: 140px; }

.branch-header .header-shell {
  min-height: 92px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.branch-header .brand {
  min-width: 96px;
}

.branch-header .brand img {
  width: 148px;
  min-width: 96px;
  height: auto;
  display: block;
}

.branch-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.branch-nav a {
  position: relative;
  padding: 8px 4px;
  text-decoration: none;
  font-family: 'Neue Regrade', 'Scene Arabic', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  color: white;
}

.branch-nav a:hover { color: var(--teal-text); }

.branch-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: #3ddacc;
}

.branch-header .header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Neue Regrade', 'Scene Arabic', 'Helvetica Neue', Arial, sans-serif;
}

.branch-header .header-actions button,
.branch-header .header-actions a {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .01em;
}

.switch-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.switch-pill b { letter-spacing: .06em; }
.switch-pill:hover { border-color: var(--teal-text); }

.branch-footer .footer-brand-link {
  display: inline-block;
  text-decoration: none;
}

.branch-footer .footer-brand-link:hover { opacity: .9; }

.branch-footer .confirm-proceed .thin-arrow {
  width: 18px;
  height: 18px;
  flex: none;
}

.search-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: rgb(8 9 15 / 42%);
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.search-button:hover { border-color: var(--teal-text); }

.account-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 7px;
  background: rgb(8 9 15 / 20%);
  cursor: pointer;
}

.branch-header .language-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
}

.branch-header .language-button[lang="ar"] {
  font-family: 'Scene Arabic', 'Neue Regrade', Arial, sans-serif;
  letter-spacing: 0;
}

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

.branch-home-shell {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-block: 40px;
}

.branch-home-shell h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.035em;
}

/* Footer — matched to new_design/globals.css */
.branch-footer.site-footer {
  padding: 75px 0 25px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  background: #0b0c12;
  font-family: 'Neue Regrade', 'Scene Arabic', 'Helvetica Neue', Arial, sans-serif;
}

.branch-footer button,
.branch-footer a,
.branch-footer span,
.branch-footer strong,
.branch-footer p,
.branch-footer small,
.branch-footer b {
  font-family: inherit;
}

.branch-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 60px;
}

.branch-footer .footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.branch-footer .footer-grid img {
  width: 148px;
  height: auto;
}

.branch-footer .footer-grid p {
  margin: 0;
  color: #989ba4;
  white-space: nowrap;
}

.branch-footer .footer-grid strong {
  margin-bottom: 7px;
  color: var(--teal-text);
  font-size: 12px;
  text-transform: uppercase;
}

.branch-footer .footer-grid a,
.branch-footer .footer-grid button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c1c3c9;
  cursor: pointer;
  text-decoration: none;
}

.branch-footer .footer-grid a:hover { color: var(--teal-text); }

.branch-footer .social-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 14px !important;
}

.branch-footer .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #777a83;
  font-size: 12px;
}

.branch-footer .footer-legal {
  margin: 0;
  color: #6e717a;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.branch-footer .footer-app {
  width: min(100%, 640px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
  padding-inline: 22px 8px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  background: #111318;
}

.branch-footer .footer-app__lead {
  margin: 0;
  color: var(--teal-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.branch-footer .store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.branch-footer .store-badges a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 12px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 10px;
  background: #0b0c12;
  color: white;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.branch-footer .store-badges a:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}

.branch-footer .store-badges svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.branch-footer .store-badges span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}

.branch-footer .store-badges small {
  font-size: 11px;
  color: #b5b8bf;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.branch-footer .store-badges b { font-size: 16px; }

.branch-footer .footer-app .store-badges {
  margin-top: 0;
  flex-wrap: nowrap;
  gap: 8px;
}

.branch-footer .footer-app .store-badges a {
  min-height: 44px;
  padding: 0 14px 0 12px;
  border-color: rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: #0b0c12;
}

.branch-footer .footer-app .store-badges a:hover {
  border-color: var(--teal-text);
  background: rgb(61 218 204 / 8%);
  transform: none;
}

.branch-footer .footer-app .store-badges b { font-size: 13px; }
.branch-footer .footer-app .store-badges small { font-size: 10px; }

.mobile-nav {
  display: none;
  font-family: 'Neue Regrade', 'Scene Arabic', 'Helvetica Neue', Arial, sans-serif;
}

.arabic .branch-nav a,
.arabic .branch-header .header-actions,
.arabic .branch-header .header-actions button,
.arabic .branch-header .header-actions a,
.arabic .branch-footer,
.arabic .branch-footer button,
.arabic .branch-footer a,
.arabic .branch-footer span,
.arabic .branch-footer strong,
.arabic .branch-footer p,
.arabic .branch-footer small,
.arabic .branch-footer b,
.arabic .mobile-nav,
.arabic .mobile-nav a,
.arabic .mobile-nav button {
  font-family: 'Scene Arabic', 'Neue Regrade', Arial, sans-serif;
  letter-spacing: 0;
}

.arabic .branch-footer .footer-grid strong,
.arabic .branch-footer .footer-app__lead {
  letter-spacing: 0;
  text-transform: none;
}

.arabic .branch-footer .store-badges small,
[dir="rtl"] .branch-footer .store-badges small {
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

.arabic .branch-footer .store-badges span,
[dir="rtl"] .branch-footer .store-badges span {
  line-height: 1.5;
  gap: 0;
}

@media (max-width: 1100px) {
  .search-button span { display: none; }
}

@media (max-width: 1099px) {
  .branch-header .header-shell {
    grid-template-columns: minmax(96px, 1fr) auto;
    min-height: 78px;
    gap: 10px;
  }

  .branch-nav { display: none; }

  .branch-header .brand img { width: 120px; }
  .branch-footer .footer-grid img { width: 120px; }

  .branch-main { padding: 104px 0 48px; }

  .branch-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 24px;
    padding-bottom: 75px;
  }

  .branch-footer .footer-grid > div:first-child { grid-column: 1 / -1; }

  .branch-footer .social-links {
    justify-content: center;
  }

  .mobile-nav {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgb(255 255 255 / 12%);
    background: linear-gradient(110deg, rgb(17 17 18 / 98%), rgb(17 19 23 / 98%) 58%, rgb(20 16 21 / 98%));
    color: #96979d;
    box-shadow: 0 -14px 36px rgb(0 0 0 / 34%);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a,
  .mobile-nav button {
    min-width: 0;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    color: #96979d;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    font-synthesis: none;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
  }

  .arabic .mobile-nav a,
  .arabic .mobile-nav button {
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-nav .active { color: #f1f1f1; }
  .mobile-nav .active svg { color: var(--teal-text); }
  .mobile-nav svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: block;
    overflow: visible;
    color: inherit;
  }
  .mobile-nav span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }
}

@media (max-width: 767px) {
  .account-button { display: none; }
}

@media (max-width: 640px) {
  .branch-header .header-shell { min-height: 64px; }
  .branch-header .brand img { width: 108px; }
  .branch-footer .footer-grid img { width: 108px; }
  .switch-pill { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .account-button { display: none; }
  .branch-header .brand img { width: 108px; min-width: 96px; }
  .search-button { min-height: 40px; padding: 0 12px; }
  .branch-main { padding: 88px 0 40px; }
  .branch-home-shell h1 { font-size: clamp(30px, 9vw, 40px); }

  .branch-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 0;
  }

  .branch-footer .footer-grid p { white-space: normal; }

  .branch-footer .footer-app {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    text-align: center;
  }

  .branch-footer .footer-app .store-badges {
    width: 100%;
  }

  .branch-footer .footer-app .store-badges a {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }

  .branch-footer.site-footer {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1100px) {
  .branch-nav { display: flex; }
  .mobile-nav { display: none; }
}

h1, h2, h3 { text-wrap: balance; }

.latin,
bdi.latin {
  font-family: 'Neue Regrade', 'Helvetica Neue', Arial, sans-serif;
  unicode-bidi: isolate;
}

.arabic .store-badges small,
.arabic .age-badge,
.arabic .movie-meta span,
.arabic .show-chip .chip-sub,
.arabic .mobile-nav a,
.arabic .mobile-nav button {
  font-size: 12px;
  font-weight: 600;
  font-synthesis: none;
}

@media (pointer: coarse) {
  .branch-footer a,
  .branch-footer button,
  .text-link,
  .experience-open,
  .detail-link,
  .trailer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Keep breadcrumb text on one baseline; touch target via padding, not a taller box. */
  .crumbs a {
    min-height: 28px;
    padding-block: 8px;
  }
}

@media (max-width: 360px) {
  .branch-header .header-actions { gap: 6px; }
  .branch-header .brand img { width: 92px; min-width: 0; }
  .switch-pill { padding: 0 10px; gap: 6px; }
  .search-button { padding: 0; }
  .branch-header .language-button { padding: 0 9px; }
}

@media (max-width: 760px) {
  .branch-header .switch-pill,
  .branch-header .search-button,
  .branch-header .language-button,
  .branch-header .account-button,
  .hero-actions .trailer-link,
  .hero-actions .detail-link,
  .film-row-main h3 a,
  .faq-list summary,
  .visit-faq summary,
  .contact-grid a,
  .menu-tabs button,
  .filter-chip,
  .date-tabs button,
  .format-filters button,
  .lang-filters button,
  .store-badges a {
    min-height: 44px;
  }

  .hero-actions .trailer-link,
  .hero-actions .detail-link {
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
  }
}

.show-chip .chip-sub,
.age-badge,
.date-tabs span,
.mobile-nav,
.mobile-nav a,
.mobile-nav button {
  font-size: 12px;
}

.scene-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: rgb(15 16 19 / 96%);
  backdrop-filter: blur(10px);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.scene-search-overlay[hidden] { display: none; }

.scene-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.scene-search-bar input {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 10px;
  background: #17191e;
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.scene-search-bar input:focus {
  outline: 0;
  border-color: var(--teal-text);
}

.scene-search-close {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.scene-search-close svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.scene-search-results {
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}

.scene-search-results a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 8px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}

.scene-search-results a:hover,
.scene-search-results a:focus-visible {
  background: rgb(255 255 255 / 8%);
}

.scene-search-results img {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: #222;
}

.scene-search-results b {
  font-size: 16px;
  font-weight: 700;
}

.scene-search-empty {
  margin: 24px 8px;
  color: #96979d;
  font-size: 15px;
}

html[dir="rtl"] summary,
html[dir="rtl"] details p {
  unicode-bidi: plaintext;
}

html[dir="rtl"] details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

html[dir="rtl"] details > summary::-webkit-details-marker {
  display: none;
}

html[dir="rtl"] .faq-list details > summary::before,
html[dir="rtl"] .visit-faq details > summary::before {
  content: "";
  flex: none;
  order: 1;
  margin-inline-start: auto;
  margin-inline-end: 0;
  width: 7px;
  height: 7px;
  border: 0;
  border-left: 2px solid #3ddacc;
  border-bottom: 2px solid #3ddacc;
  background: none;
  font-size: 0;
  transform: rotate(45deg);
}

html[dir="rtl"] .faq-list details[open] > summary::before,
html[dir="rtl"] .visit-faq details[open] > summary::before {
  transform: rotate(-45deg);
}
