/* «مختصر و مفید» page. Brand: paper #F4F1EA, charcoal #0E1620, navy #002B4B, orange #C23700 (light) / #FF7A3D (dark). */

@font-face { font-family: "MVM"; src: url("fonts/IRAN.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MVM"; src: url("fonts/IRAN_SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "MVM"; src: url("fonts/IRANBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "MVM"; src: url("fonts/IRANBlack.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --paper: #F4F1EA;
  --white: #FFFFFF;
  --ink: #0E1620;
  --navy: #002B4B;
  --text: #1B222B;
  --muted: #5C6670;
  --line: #E4DFD3;
  --orange: #C23700;
  --orange-bright: #FF7A3D;
  --radius: 20px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "MVM", "Vazirmatn", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; color: var(--navy); text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 3px; border-radius: 6px; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { font-weight: 900; font-size: 20px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 16px; color: var(--text); white-space: nowrap; }
.nav__links a:hover { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 12px 28px; border-radius: 10px; border: 2px solid var(--orange);
  transition: background .15s, color .15s;
}
.btn:hover { background: #A52F00; border-color: #A52F00; }
.btn--small { padding: 8px 18px; font-size: 14.5px; white-space: nowrap; }
.btn--line { background: transparent; color: var(--orange); }
.btn--line:hover { background: var(--orange); color: var(--white); }

/* ── Hero ── */
.hero { background: var(--paper); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-block: 88px 96px; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 17px; }
.hero h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 900; line-height: 1.25; margin-bottom: 20px; }
.lead { font-size: 19px; line-height: 2; max-width: 34em; }
.hero__label { margin-top: 32px; margin-bottom: 14px; font-weight: 700; color: var(--navy); }
.hero__art img { width: 100%; border-radius: 28px; box-shadow: 0 24px 60px rgba(14, 22, 32, .18); }

/* ── Pills ── */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.6;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 22, 32, .08);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 22, 32, .14); border-color: var(--orange); }
.pill .ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.pill__long { display: inline; }

/* One compact row of app links under an episode. The font follows the card's width so the row never wraps. */
.fav, .ep { container-type: inline-size; }
.pills--row { flex-wrap: nowrap; gap: 6px; }
.pills--row .pill { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; font-size: 13px; gap: 6px; padding: 5px 13px; box-shadow: 0 1px 4px rgba(14, 22, 32, .08); }
.pills--row .pill .ico { width: 15px; height: 15px; }
@container (max-width: 430px) {
  .pill__long { display: none; }
  .pills--row .pill { font-size: clamp(10px, 3.7cqw, 13px); gap: 4px; padding: 5px clamp(5px, 2.2cqw, 12px); }
  .pills--row .pill .ico { width: 13px; height: 13px; }
}

/* Cover with its play button */
.cover { position: relative; }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.play {
  position: absolute; inset-inline-end: 12px; bottom: 12px;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange-bright); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(14, 22, 32, .35);
  transition: transform .15s, background .15s;
}
.play:hover { transform: scale(1.08); }
.play .ico { width: 24px; height: 24px; fill: currentColor; }
.play .ico--stop, .play.is-on .ico--play { display: none; }
.play.is-on .ico--stop { display: block; }
.play.is-on { background: var(--white); }

/* ── Favourites ── */
.favs { background: var(--ink); color: #E8ECF0; padding-block: 104px 112px; text-align: center; }
.favs h2 { color: var(--white); font-size: clamp(32px, 4vw, 48px); font-weight: 900; }
.favs__intro { max-width: 36em; margin: 20px auto 0; color: #B8C0C9; }
.favs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; text-align: start; }
.fav { display: flex; flex-direction: column; }
.fav .cover img { background: #1A2430; }
.fav h3 { color: var(--white); font-size: 22px; font-weight: 700; margin-top: 24px; }
.fav__text { margin-top: 12px; margin-bottom: 22px; font-size: 15.5px; color: #B8C0C9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.fav .pills { margin-top: auto; }
.fav audio { margin-top: 16px; }

/* ── Catalog ── */
.catalog { padding-block: 104px 72px; }
.catalog__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.catalog__aside { position: sticky; top: calc(var(--nav-h) + 48px); }
.catalog__aside h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; }
.catalog__aside p { margin-top: 20px; max-width: 26em; }
.seasons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.seasons a {
  text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 999px; padding: 4px 16px;
}
.seasons a:hover { background: var(--navy); color: var(--white); }
.catalog__mark { width: 120px; margin-top: 48px; transform: rotate(-8deg); }

.ep {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px 32px; align-items: start;
  padding-block: 48px 40px; border-bottom: 3px solid var(--orange-bright);
}
.ep:first-of-type { padding-top: 0; }
.ep__meta { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); font-size: 14.5px; }
.ep__meta > * + *::before { content: "·"; margin-inline: 10px; }
.ep h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; margin-block: 6px 12px; }
.ep__body p + p { margin-top: 10px; }
.ep__body > p:not(.ep__meta) { font-size: 16.5px; }
.ep__pills { grid-column: 1 / -1; }
.ep audio, .fav audio { width: 100%; display: block; }
.ep audio { grid-column: 1 / -1; }
.empty { padding: 32px; background: var(--paper); border-radius: var(--radius); }

/* ── Ask / support ── */
.ask { padding-block: 56px 104px; }
.ask__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ask__box { background: var(--paper); border-radius: var(--radius); padding: 64px 40px; text-align: center; }
.ask__box h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; }
.ask__box h2 span { background: linear-gradient(transparent 58%, rgba(255, 122, 61, .55) 58%); padding-inline: 6px; }
.ask__box p { max-width: 28em; margin: 18px auto 0; }
.ask__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 36px; flex-wrap: wrap; }
.foot__social { display: flex; gap: 10px; }
.foot__social a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--white);
  display: grid; place-items: center; transition: background .15s;
}
.foot__social a:hover { background: var(--navy); }
.foot__social .ico { width: 19px; height: 19px; fill: currentColor; }
.foot__copy { text-align: center; color: var(--muted); font-size: 14px; padding: 20px 24px 36px; border-top: 1px solid var(--line); }

/* ── Legal pages ── */
.legal { max-width: 760px; padding-block: 56px 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; margin-bottom: 20px; }
.legal h2 { font-size: 21px; font-weight: 700; margin-top: 40px; margin-bottom: 8px; }
.legal p { margin-top: 10px; }
.legal a { color: var(--orange); }
.legal mark { background: #FFD84D; padding: 0 6px; border-radius: 4px; }
.legal__draft { background: #FFF3C4; border: 1px solid #E6C200; border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; font-weight: 600; }
.legal__note { color: var(--muted); margin-bottom: 28px; }
.legal__de { direction: ltr; text-align: left; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.7; }
.legal__addr { text-align: right; }
.legal__date { color: var(--muted); margin-top: 48px; font-size: 15px; }
.foot__copy a { color: inherit; }

/* ── Smaller screens ── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__in { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 64px; }
  .hero__art { order: -1; max-width: 360px; }
  .favs { padding-block: 72px; }
  .favs__grid { grid-template-columns: 1fr; gap: 56px; max-width: 460px; margin-inline: auto; }
  .catalog { padding-block: 72px 40px; }
  .catalog__in { grid-template-columns: 1fr; gap: 40px; }
  .catalog__aside { position: static; }
  .catalog__mark { display: none; }
  .ask__grid { grid-template-columns: 1fr; }
  .foot__in { justify-content: center; }
  .foot .nav__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; width: 100%; order: 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .ep { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding-block: 36px 32px; }
  .ep .cover img { border-radius: 14px; }
  .ep .play { width: 34px; height: 34px; inset-inline-end: 6px; bottom: 6px; }
  .ep .play .ico { width: 18px; height: 18px; }
  .ep__body > p:not(.ep__meta) { font-size: 15.5px; }
  .ask__box { padding: 44px 20px; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .btn { transition: none; }
}
