html[lang="en"] {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] textarea {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  font-family: "Inter", "Vazirmatn", sans-serif;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 196, 0, .12);
  color: var(--gold);
}

html[lang="en"] nav .brand {
  margin: 0;
  flex-shrink: 0;
}

html[lang="en"] .page-head,
html[lang="en"] .ep-body,
html[lang="en"] .ep-info,
html[lang="en"] .about-copy,
html[lang="en"] .series-jump-copy,
html[lang="en"] .foot-col,
html[lang="en"] .foot-brand,
html[lang="en"] .newsletter,
html[lang="en"] .article-prose,
html[lang="en"] .gp-hero {
  text-align: left;
}

html[lang="en"] .cine-content {
  inset: auto;
  justify-self: start;
}

html[lang="en"] .cine-hero {
  grid-template-areas: "content thumb";
}

html[lang="en"] .cine-hero .shade {
  background: linear-gradient(90deg, rgba(5, 6, 10, .98) 0%, rgba(5, 6, 10, .82) 42%, rgba(5, 6, 10, .22) 72%, transparent 100%);
}

html[lang="en"] .hero-thumb {
  inset: auto;
}

html[lang="en"] .about-intro,
html[lang="en"] .about-intro > * {
  direction: ltr;
  text-align: left;
}

html[lang="en"] .ep-hero > *,
html[lang="en"] .gp-hero > *,
html[lang="en"] .foot-grid > *,
html[lang="en"] .about-band > * {
  min-width: 0;
}

html[lang="en"] .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

html[lang="en"] .contact-grid > div {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

html[lang="en"] .contact-grid .btn {
  max-width: 100%;
  margin-top: 18px;
  overflow-wrap: anywhere;
}

html[lang="en"] .rail-head {
  flex-wrap: wrap;
}

html[lang="en"] .rail-controls {
  margin-left: 0;
}

html[lang="en"] .rail-head > a,
html[lang="en"] .home-series-head > a,
html[lang="en"] .home-latest-head > a {
  margin-left: auto;
  margin-right: 0;
}

html[lang="en"] .guest-mini,
html[lang="en"] .ep-meta,
html[lang="en"] .breadcrumb,
html[lang="en"] .guest-profile-role {
  direction: ltr;
  text-align: left;
}

.language-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 196, 0, .24);
  border-radius: 12px;
  background: rgba(255, 196, 0, .06);
  color: #cbd1df;
  font-size: .86rem;
  line-height: 1.65;
}

.original-title {
  margin-top: 7px;
  color: #eef1f7;
  font-family: "Vazirmatn", sans-serif;
}

.guest-card-en {
  padding: 28px 20px;
  text-align: center;
}

.guest-card-en .guest-avatar {
  width: 142px;
  height: 142px;
  margin: 0 auto 18px;
  font-size: 2.2rem;
}

.guest-card-en h3 {
  min-height: 0;
  margin-bottom: 7px;
}

.guest-role-en {
  min-height: 2.7em;
  color: var(--muted);
  font-size: .84rem;
}

.guest-count-en {
  margin-top: 8px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
}

html[lang="en"] .topic-chips {
  justify-content: flex-start;
}

html[lang="en"] .ep-audio-hero .a-side { min-width: 0; }
html[lang="en"] .ep-audio-hero .player-card { direction: ltr; margin-top: 20px; }
html[lang="en"] .ep-audio-hero .original-title { text-align: right; margin-bottom: 18px; }
html[lang="en"] .audio-language { color: var(--muted); font-size: .85rem; }
html[lang="en"] .audio-platforms { margin: 0 0 28px; }
html[lang="en"] .audio-comment { text-align: start; }

/* The standalone Series page nests the home-series component inside a
   container that already owns the page gutters. Avoid applying the fluid
   viewport gutter twice, which collapses the grid on ultra-wide screens. */
html[lang="en"] .page-wrap > .container > .home-series {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 0;
}

html[lang="en"] .guest-biography { max-width: 46rem; color: #c7cddd; }
html[lang="en"] .guest-biography p { margin: 18px 0; line-height: 1.85; }
html[lang="en"] .futek-card { direction: ltr; text-align: left; }
html[lang="en"] .host-link-card small { text-align: left; }

/* Persian profile and editorial styles deliberately justify long RTL copy.
   Reset those declarations on English pages so every prose block has a
   natural ragged-right edge and its final line does not jump to the right. */
html[lang="en"] .arash-profile .about-copy p,
html[lang="en"] .host-bio p,
html[lang="en"] .article-prose p,
html[lang="en"] .guest-biography p,
html[lang="en"] .ep-info .desc,
html[lang="en"] .page-head p,
html[lang="en"] .studio-showcase-intro {
  direction: ltr;
  text-align: left;
  text-align-last: auto;
  text-justify: auto;
}

@media (max-width: 1000px) {
  .lang-switch {
    order: 4;
  }

  html[lang="en"] nav .brand {
    order: 0;
    margin: 0 auto 0 0;
  }

  html[lang="en"] .menu-btn {
    order: 5;
    margin: 0;
  }

  html[lang="en"] .nav-support {
    order: 3;
  }

  html[lang="en"] .nav-youtube-brand {
    order: 2;
  }

  html[lang="en"] nav > a,
  html[lang="en"] nav > button {
    flex-shrink: 0;
  }

  html[lang="en"] .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html[lang="en"] .page-wrap > .container > .home-series .home-series-head,
  html[lang="en"] .page-wrap > .container > .home-series .home-series-grid {
    padding-inline: 0;
  }

  html[lang="en"] .page-wrap > .container > .home-series .home-series-grid {
    scroll-padding-inline: 0;
  }

  html[lang="en"] .guest-index-grid .ep-card {
    text-align: left !important;
  }

  html[lang="en"] .cine-hero {
    grid-template-areas: "thumb" "content";
  }

  html[lang="en"] .cine-hero .shade {
    background: linear-gradient(0deg, var(--bg) 2%, rgba(7,13,28,.78) 62%, rgba(7,13,28,.94) 100%);
  }

  html[lang="en"] .home-series-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  html[lang="en"] .home-series-head > a {
    margin-left: 0;
  }

  html[lang="en"] .cine-hero .cine-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-switch {
    min-width: 38px;
    padding: 0 9px;
  }
}

@media (max-width: 380px) {
  html[lang="en"] nav { gap: 6px; padding-inline: 12px; }
  html[lang="en"] nav .brand img { width: 82px; }
  html[lang="en"] .nav-support { padding-inline: 7px; font-size: .72rem; }
  html[lang="en"] .nav-youtube-brand { width: 36px; flex-basis: 36px; }
  html[lang="en"] .lang-switch { min-width: 34px; padding-inline: 7px; }
  html[lang="en"] .cine-hero .cine-cta { grid-template-columns: 1fr; }
}
