@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../assets/fonts/noto-sans-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html {
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  direction: rtl;
  font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

a,
button,
input,
[role="button"] {
  cursor: default !important;
  pointer-events: none !important;
}

.main-nav__list {
  margin-right: 2rem;
  margin-left: 0;
}

.search {
  margin-right: auto;
  margin-left: 0;
}

.search__form--static {
  padding-inline-end: 4.6rem;
}

.search__form--static .search__input {
  direction: rtl;
  padding-right: 1.8rem;
  padding-left: 0.4rem;
}

.hero-slide__content {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

.hero-slide__bg::after {
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(28, 25, 23, 0.55) 38%, rgba(28, 25, 23, 0.1) 70%),
    linear-gradient(to left, rgba(28, 25, 23, 0.9) 0%, rgba(28, 25, 23, 0.35) 45%, transparent 75%);
}

.hero-slide__eyebrow,
.hero-slide__meta,
.hero-slide__actions {
  justify-content: flex-start;
}

.hero-slide__title,
.poster-card__title,
.poster-card__name,
.brand {
  unicode-bidi: isolate;
}

.hero-slide__title {
  letter-spacing: 0;
}

.hero-slide__tag {
  letter-spacing: 0;
  text-transform: none;
}

.hero-arrow--prev {
  right: 1.6rem;
  left: auto;
}

.hero-arrow--next {
  right: auto;
  left: 1.6rem;
}

.carousel__track {
  direction: rtl;
}

.carousel__btn--prev {
  right: -1rem;
  left: auto;
}

.carousel__btn--next {
  right: auto;
  left: -1rem;
}

.section__head {
  text-align: right;
}

.poster-card {
  text-align: right;
}

.poster-card__title {
  letter-spacing: 0;
}

.poster-card__overlay {
  direction: rtl;
}

.poster-card__meta {
  direction: rtl;
}

.site-footer,
.site-footer__about,
.footer-links,
.site-footer__bottom {
  text-align: right;
}

.site-footer__grid {
  direction: rtl;
}

.footer-links a,
.site-footer__heading {
  letter-spacing: 0;
}

.download-bar {
  position: fixed;
  z-index: 1200;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(440px, calc(100% - 24px));
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(16, 13, 11, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.44);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.download-button {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  font-family: "Noto Sans Arabic", "Inter", sans-serif;
}

.download-button.ios {
  color: #17110b;
  background: #fff;
}

.download-button.android {
  color: #17110b;
  background: linear-gradient(180deg, #f6d7a2, #d4923a);
}

.download-icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 24px;
  height: 24px;
}

.download-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.download-copy small {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .main-nav__list {
    align-items: flex-end;
    margin: 0;
  }

  .main-nav__link {
    width: 100%;
    justify-content: flex-start;
  }

  .mobile-search-toggle {
    margin-right: auto;
    margin-left: 0;
  }

  .search {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .search__form,
  .search__form--static {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .hero-slide__inner {
    align-items: flex-end;
  }

  .hero-slide__content {
    text-align: right;
  }

  .download-bar {
    gap: 8px;
    padding: 8px;
  }

  .download-button {
    min-height: 52px;
    gap: 6px;
    padding: 7px 8px;
  }

  .download-icon {
    width: 22px;
    height: 22px;
  }

  .download-icon svg {
    width: 21px;
    height: 21px;
  }

  .download-copy small {
    font-size: 9px;
  }

  .download-copy strong {
    font-size: 13px;
  }
}

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