@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@keyframes bbProg {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.bb-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 2544px;
  margin: 96px auto 0;
  padding: 0 0.75rem 8px;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
  color: #f2f0ec;
  font-family: iranyekan, Vazirmatn, sans-serif;
}

.bb-hero *,
.bb-hero *::before,
.bb-hero *::after {
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .bb-hero {
    margin-top: 120px;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1024px) {
  .bb-hero {
    margin-top: 128px;
  }

  body:has(.windows-app-banner:not(.hidden)) .bb-hero {
    margin-top: 180px;
  }
}

body.admin-bar .bb-hero {
  margin-top: 128px;
}

@media (min-width: 1024px) {
  body.admin-bar .bb-hero {
    margin-top: 160px;
  }

  body.admin-bar:has(.windows-app-banner:not(.hidden)) .bb-hero {
    margin-top: 164px;
  }
}

.bb-hero__stage {
  position: relative;
  height: 480px;
  border-radius: 22px;
  overflow: hidden;
  background: #16161a;
  touch-action: pan-y;
}

.bb-hero__slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

.bb-hero__slide.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.bb-hero__open {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.bb-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.bb-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bb-hero__shade--side {
  display: none;
  background: linear-gradient(to left, rgba(11, 11, 13, 0.92), rgba(11, 11, 13, 0.5) 38%, rgba(11, 11, 13, 0) 65%);
}

.bb-hero__shade--bottom {
  background: linear-gradient(to top, rgba(11, 11, 13, 0.97), rgba(11, 11, 13, 0.7) 30%, rgba(11, 11, 13, 0) 58%);
}

.bb-hero__type-float {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.55);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

.bb-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0 20px 20px;
}

.bb-hero__chips,
.bb-hero__desc,
.bb-hero__detail-long,
.bb-hero__controls,
.bb-hero__count {
  display: none;
}

.bb-hero__en {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  direction: ltr;
  text-align: center;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 0.92;
  text-wrap: balance;
}

.bb-hero__fa {
  max-width: 100%;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #d8d5ce;
}

.bb-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: #c9c6bf;
}

.bb-hero__imdb {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.bb-hero__imdb-mark {
  color: #f5c518;
  font-size: 10px;
  font-weight: 800;
}

.bb-hero__score {
  color: #fff;
  font-weight: 700;
}

.bb-hero__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6b6862;
  flex: none;
}

.bb-hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  pointer-events: auto;
}

.bb-hero__play,
.bb-hero__detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 14px;
  font-size: 14px;
  text-decoration: none;
}

.bb-hero__play {
  background: #f2f0ec;
  color: #0b0b0d;
  font-weight: 700;
}

.bb-hero__play:hover {
  color: #0b0b0d;
  background: #fff;
}

.bb-hero__detail {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f2f0ec;
  font-weight: 500;
}

.bb-hero__detail:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.bb-hero__play svg {
  display: block;
}

.bb-hero__mdots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.bb-hero__mdot,
.bb-hero__dotbtn,
.bb-hero__nav {
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.bb-hero__mdot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  transition: width 0.4s ease;
}

html.dark .bb-hero__mdot {
  background: rgba(255, 255, 255, 0.3);
}

.bb-hero__mdot.is-active {
  width: 28px;
  background: #141417;
}

html.dark .bb-hero__mdot.is-active {
  background: #f2f0ec;
}

@media (min-width: 1024px) {
  .bb-hero__stage {
    height: 520px;
    border-radius: 24px;
  }

  .bb-hero__shade--side {
    display: block;
  }

  .bb-hero__shade--bottom {
    background: linear-gradient(to top, rgba(11, 11, 13, 0.85), rgba(11, 11, 13, 0) 40%);
  }

  .bb-hero__type-float,
  .bb-hero__detail-short,
  .bb-hero__mdots {
    display: none;
  }

  .bb-hero__copy {
    top: 0;
    bottom: 0;
    left: auto;
    width: 520px;
    max-width: 48%;
    padding: 0 56px;
    align-items: flex-start;
    text-align: right;
    justify-content: center;
    gap: 16px;
  }

  .bb-hero__chips {
    display: flex;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
  }

  .bb-hero__chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    white-space: nowrap;
  }

  .bb-hero__chip--line {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .bb-hero__en {
    font-size: 56px;
    text-align: right;
  }

  .bb-hero__fa {
    font-size: 20px;
  }

  .bb-hero__meta {
    justify-content: flex-start;
    gap: 12px;
    font-size: 14px;
  }

  .bb-hero__imdb-mark {
    background: #f5c518;
    color: #000;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .bb-hero__sep {
    width: 4px;
    height: 4px;
  }

  .bb-hero__desc {
    display: -webkit-box;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: #b9b6ae;
    text-wrap: pretty;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bb-hero__actions {
    display: flex;
    width: auto;
    gap: 10px;
    margin-top: 8px;
  }

  .bb-hero__play,
  .bb-hero__detail {
    height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    gap: 10px;
    justify-content: flex-start;
  }

  .bb-hero__detail {
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .bb-hero__detail-long {
    display: inline;
  }

  .bb-hero__controls {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(11, 11, 13, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
  }

  .bb-hero__nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: grid;
    place-items: center;
  }

  .bb-hero__nav:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .bb-hero__dots {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .bb-hero__dotbtn {
    position: relative;
    overflow: hidden;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.4s ease;
  }

  .bb-hero__dotbtn.is-active {
    width: 30px;
    background: rgba(255, 255, 255, 0.22);
  }

  .bb-hero__dotfill {
    position: absolute;
    inset: 0;
    background: #f2f0ec;
    transform-origin: right center;
    transform: scaleX(0);
  }

  .bb-hero__dotbtn.is-active .bb-hero__dotfill {
    animation: bbProg 6s linear forwards;
  }

  .bb-hero.is-paused .bb-hero__dotfill {
    animation-play-state: paused;
  }

  .bb-hero__count {
    position: absolute;
    right: 56px;
    bottom: 30px;
    z-index: 3;
    display: block;
    direction: ltr;
    font-size: 13px;
    color: #9a978f;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }

  .bb-hero__count b {
    color: #fff;
    font-weight: 700;
  }
}

@media (min-width: 1280px) {
  .bb-hero__en {
    font-size: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-hero__slide,
  .bb-hero__dotbtn,
  .bb-hero__mdot {
    transition: none;
  }

  .bb-hero__dotbtn.is-active .bb-hero__dotfill {
    animation: none;
    transform: scaleX(1);
  }
}
