:root {
  --ink: #111619;
  --deep: #071018;
  --gold: #b88a4c;
  --gold2: #dab273;
  --paper: #f4f0e9;
  --paper2: #faf7f1;
  --line: #d8cec0;
  --muted: #756f67;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.8;
}
html[lang="en"] body,
html[lang="en"] button {
  font-family: "Inter", "Segoe UI", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  align-items: center;
  min-height: 82px;
  padding: 0 24px;
  background: rgba(7, 16, 24, 0.97);
  border-bottom: 1px solid rgba(218, 178, 115, 0.18);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand-logo {
  width: 108px;
  height: 64px;
  object-fit: contain;
}
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 24px);
  color: #eee;
  font-size: 12px;
  white-space: nowrap;
}
.desktop-nav a {
  position: relative;
  padding: 30px 0;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--gold2);
}
.desktop-nav a.active:after {
  content: "";
  position: absolute;
  bottom: 20px;
  inset-inline: 0;
  height: 1px;
  background: var(--gold);
}
.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  direction: ltr;
}
.language-switcher {
  position: relative;
}
.language-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 42px;
  border: 1px solid rgba(184, 138, 76, 0.65);
  background: rgba(5, 8, 12, 0.8);
  color: #fff;
  cursor: pointer;
}
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 172px;
  padding: 6px;
  background: #071018;
  border: 1px solid rgba(184, 138, 76, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px);
  transition: 0.2s;
}
.language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.language-option {
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #bbb;
  cursor: pointer;
}
.language-option.active,
.language-option:hover {
  color: var(--gold2);
  background: rgba(184, 138, 76, 0.12);
}
.language-option[data-lang="fa"] {
  direction: rtl;
  text-align: right;
}
.language-option[data-lang="en"] {
  direction: ltr;
  text-align: left;
}
.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
}
.menu-btn span {
  display: block;
  height: 1px;
  margin: 6px;
  background: var(--gold2);
}
.mobile-menu {
  position: fixed;
  top: 76px;
  inset-inline: 0;
  z-index: 45;
  display: grid;
  gap: 14px;
  padding: 22px 28px;
  background: #071018;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: 0.25s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--deep);
}
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.3), rgba(7, 16, 24, 0.94) 75%),
    linear-gradient(0deg, rgba(7, 16, 24, 0.75), transparent);
}
html[dir="ltr"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(7, 16, 24, 0.3), rgba(7, 16, 24, 0.94) 75%),
    linear-gradient(0deg, rgba(7, 16, 24, 0.75), transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 110px 75px;
  color: #fff;
}
.hero-content p,
.intro small,
.featured-copy small,
.section-heading small,
.closing small {
  color: var(--gold2);
  font:
    600 11px/1.5 Inter,
    sans-serif;
  letter-spacing: 1.8px;
}
.hero-content h1 {
  max-width: 760px;
  margin: 8px 0;
  color: var(--gold2);
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 500;
  line-height: 1.2;
}
.hero-content > span {
  display: block;
  max-width: 650px;
  color: #ddd;
  font-size: 15px;
}
.hero-content > a {
  display: inline-block;
  margin-top: 25px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #dfba84, #a97940);
  color: #111;
  font-size: 13px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.65fr;
  align-items: center;
  gap: 55px;
  padding-block: 70px;
  border-bottom: 1px solid var(--line);
}
.intro h2,
.featured-copy h2,
.section-heading h2,
.closing h2 {
  margin: 7px 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.35;
}
.intro > p {
  color: var(--muted);
  font-size: 13px;
}
.intro dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-inline-start: 1px solid var(--line);
}
.intro dl div {
  text-align: center;
  padding: 5px 15px;
}
.intro dl div + div {
  border-inline-start: 1px solid var(--line);
}
.intro dt {
  color: var(--gold);
  font-size: 31px;
}
.intro dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.featured {
  padding: 70px 0;
  background: var(--deep);
  color: #fff;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}
.featured-poster {
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
  min-height: 430px;
}
.featured-poster img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
}
.featured-copy {
  padding: 50px;
}
.featured-copy h2 {
  color: var(--gold2);
}
.featured-copy p {
  color: #bbb;
  font-size: 13px;
}
.outline-button {
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold2);
  cursor: pointer;
}
.archive {
  padding-block: 75px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.section-heading p {
  color: var(--muted);
  font-size: 13px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.filter {
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.filter.active,
.filter:hover {
  background: var(--deep);
  color: var(--gold2);
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.poster-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper2);
  border: 1px solid var(--line);
}
.poster-card > .poster-open {
  position: relative;
  padding: 0;
  border: 0;
  background: #ddd;
  cursor: pointer;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e9e4dc;
  transition: 0.4s;
}
.poster-card button:hover img {
  transform: scale(1.025);
}
.poster-card button span {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: rgba(7, 16, 24, 0.86);
  color: var(--gold2);
  font-size: 11px;
}
.poster-card > div {
  padding: 17px 18px 20px;
}
.poster-card small,
.modal-category {
  color: var(--gold);
  font-size: 11px;
}
.poster-card h3 {
  margin: 5px 0;
  font-size: 17px;
  font-weight: 500;
}
.empty {
  text-align: center;
  color: var(--muted);
}
.closing {
  padding: 65px 0;
  text-align: center;
  background: #e8e0d5;
}
.closing p {
  margin: 0;
  color: var(--muted);
}
footer {
  padding-top: 42px;
  background: var(--deep);
  color: #ddd;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
}
.footer-logo {
  width: min(170px, 100%);
  max-height: 100px;
  object-fit: contain;
  object-position: top right;
}
.footer-grid h4,
.footer-grid strong {
  color: var(--gold2);
}
.footer-grid a {
  display: block;
  font-size: 12px;
}
.footer-grid p {
  color: #aaa;
  font-size: 12px;
}
.copyright {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-block: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font:
    11px Inter,
    sans-serif;
}
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.poster-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}
.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(230px, 330px);
  max-width: 1050px;
  max-height: 92vh;
  overflow: auto;
  background: #0c141a;
  color: #fff;
}
.modal-card img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #000;
}
.modal-card > div {
  align-self: center;
  padding: 30px;
}
.modal-title {
  color: var(--gold2);
  font-size: 27px;
  font-weight: 500;
}
.modal-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  background: #071018;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.modal-open {
  overflow: hidden;
}
@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 30px, 1180px);
  }
  .hero {
    min-height: 500px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .intro dl {
    border-inline-start: 0;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-copy {
    padding: 32px 5px 5px;
  }
  .section-heading {
    display: block;
  }
  .poster-grid {
    grid-template-columns: 1fr;
  }
  .modal-card {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .modal-card img {
    max-height: 72vh;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .language-trigger {
    min-width: 44px;
    width: 44px;
  }
  .language-trigger-label {
    display: none;
  }
  .copyright {
    flex-direction: column;
    gap: 4px;
  }
}