/* =========================================================
   روزشمار — timeline.css | نسخه ۲ (بازنویسی تمیز)
   هر کامپوننت یک‌بار | بریک‌پوینت‌ها: 900 و 600
   رنگ‌ها داینامیک: PHP متغیرها را روی .rst-app چاپ می‌کند.
   مودال/لایت‌باکس چون ممکن است به body منتقل شوند، fallback دارند.
   ========================================================= */

/* ---------- 1) پایه ---------- */
.rst-app{
  --rst-bg:#0a0e1a;
  --rst-surface:#151d33;
  --rst-text:#e6edf7;
  --rst-muted:#8ba3c7;
  --rst-line:#2a3a5c;
  --accent:#e2b857;
  --accent2:#a8821a;
  --crimson:#d64545;
  --purple:#9b7ee8;

  direction:rtl;
  font-family:'Vazirmatn',Tahoma,sans-serif;
  color:var(--rst-text);
  line-height:1.8;
  background:var(--rst-bg);
  padding:60px 20px 80px;
  position:relative;
  border-radius:24px;
  margin:24px 0;
  overflow-x:clip;
}
.rst-app *,.rst-app *::before,.rst-app *::after{ box-sizing:border-box }
.rst-app h1,.rst-app h2,.rst-app h3,.rst-app p{ margin:0;padding:0 }
.rst-app ul,.rst-app ol{ list-style:none;margin:0;padding:0 }
.rst-app button{ font-family:inherit;cursor:pointer;border:none;background:none;color:inherit }

/* پس‌زمینه‌ی رنگی */
.rst-app::before{
  content:'';position:absolute;inset:0;z-index:0;
  pointer-events:none;border-radius:inherit;
  background:
    radial-gradient(ellipse at 20% 10%, color-mix(in srgb,var(--accent) 12%,transparent), transparent 50%),
    radial-gradient(ellipse at 80% 80%, color-mix(in srgb,var(--crimson) 10%,transparent), transparent 50%);
}
.rst-app > *{ position:relative;z-index:1 }

/* =========================================================
   2) هیرو
   ========================================================= */
.rst-hero{ text-align:center;padding:40px 20px 30px }

/* شعاع با متغیر — حلقه‌ی چرخان (::after) هم از همین پیروی می‌کند
   و به overflow:hidden نیازی نیست تا حلقه کات نشود */
.rst-hero-icon{
  --r:32px;
  position:relative;
  width:100px;height:100px;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--accent2),var(--accent));
  border-radius:var(--r);
  font-size:3rem;margin-bottom:24px;
  animation:rstFloat 4s ease-in-out infinite,
            rstHeroGlow 3s ease-in-out infinite alternate;
}
.rst-hero-icon::after{
  content:'';position:absolute;inset:-12px;
  border:2px dashed color-mix(in srgb,var(--accent) 40%,transparent);
  border-radius:calc(var(--r) + 12px);
  animation:rstRotate 20s linear infinite;
  pointer-events:none;
}
/* شکل‌ها */
.rst-hero-icon.rst-shape-squircle{ --r:32px }
.rst-hero-icon.rst-shape-round  { --r:50% }
.rst-hero-icon.rst-shape-square { --r:8px }

/* حالت تصویر */
.rst-hero-icon.has-image{
  background:none;
  border:3px solid color-mix(in srgb,var(--accent) 50%,transparent);
  box-shadow:0 0 60px color-mix(in srgb,var(--accent) 40%,transparent),
             0 20px 50px rgba(0,0,0,.4);
}
.rst-hero-icon.has-image img{
  width:100%;height:100%;object-fit:cover;display:block;
  border-radius:calc(var(--r) - 3px); /* شعاع داخلی = بیرونی منهای بوردر */
}

@keyframes rstRotate{ to{ transform:rotate(360deg) } }
@keyframes rstFloat{
  0%,100%{ transform:translateY(0) }
  50%{ transform:translateY(-12px) }
}
@keyframes rstHeroGlow{
  from{ box-shadow:0 0 60px color-mix(in srgb,var(--accent) 40%,transparent), 0 20px 50px rgba(0,0,0,.4) }
  to  { box-shadow:0 0 100px color-mix(in srgb,var(--accent) 70%,transparent), 0 20px 50px rgba(0,0,0,.4) }
}

.rst-hero h1{
  font-size:clamp(1.6rem,4vw,2.6rem);font-weight:900;margin-bottom:14px;
  background:linear-gradient(135deg,var(--rst-text),var(--accent) 50%,var(--rst-text));
  background-size:200% auto;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:rstShine 4s linear infinite;
}
@keyframes rstShine{ to{ background-position:200% center } }
.rst-hero p{ max-width:640px;margin:0 auto;color:var(--rst-muted);font-size:1rem }
.rst-hero p strong{ color:var(--accent) }

.rst-stats{ display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:28px }
.rst-stat{
  display:inline-flex;gap:8px;
  background:color-mix(in srgb,var(--rst-surface) 70%,transparent);
  border:1px solid var(--rst-line);
  padding:10px 18px;border-radius:30px;
  font-size:.85rem;color:var(--rst-muted);
  backdrop-filter:blur(10px);
}
.rst-stat .num{ color:var(--accent);font-weight:800;font-size:1.05rem }

/* =========================================================
   3) فیلترها
   ========================================================= */
.rst-filters{ max-width:1180px;margin:0 auto 40px;padding:0 20px }
.rst-frow{ display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:14px }
.rst-yrow{
  flex-wrap:nowrap;overflow-x:auto;
  justify-content:flex-start;padding-bottom:12px;
  scrollbar-width:thin;
  scroll-snap-type:x proximity;
}
.rst-yrow::-webkit-scrollbar{ height:6px }
.rst-yrow::-webkit-scrollbar-thumb{ background:var(--rst-line);border-radius:10px }
.rst-yrow .rst-chip{ scroll-snap-align:start }

.rst-chip{
  display:inline-flex;gap:7px;
  background:color-mix(in srgb,var(--rst-surface) 70%,transparent);
  border:1.5px solid var(--rst-line);color:var(--rst-text);
  padding:10px 18px;border-radius:30px;
  font-size:.88rem;font-weight:600;white-space:nowrap;
  backdrop-filter:blur(10px);cursor:pointer;
  transition:all .25s;
}
.rst-chip:hover{ border-color:var(--accent);color:var(--accent);transform:translateY(-2px) }
.rst-chip.active{
  background:linear-gradient(135deg,var(--accent2),var(--accent));
  border-color:var(--accent);color:#0a0e1a;font-weight:800;
  box-shadow:0 0 24px color-mix(in srgb,var(--accent) 40%,transparent);
}
.rst-chip .cnt{ font-size:.7rem;background:rgba(0,0,0,.2);padding:1px 8px;border-radius:20px }

/* =========================================================
   4) تایم‌لاین
   ========================================================= */
.rst-wrap{ max-width:1180px;margin:0 auto;padding:20px 20px 60px;position:relative }
.rst-tl{ position:relative;padding:20px 0 }
.rst-tl::before{
  content:'';position:absolute;top:0;bottom:0;
  left:50%;transform:translateX(-50%);
  width:3px;border-radius:3px;
  background:linear-gradient(180deg,
    transparent 0%,
    var(--accent) 3%,
    var(--crimson) 30%,
    var(--accent) 60%,
    var(--purple) 90%,
    transparent 100%);
  box-shadow:0 0 20px color-mix(in srgb,var(--accent) 40%,transparent);
}

.rst-t-item{
  position:relative;width:50%;
  padding:0 45px 44px 0;
  opacity:0;transform:translateY(40px);
  transition:opacity .7s,transform .7s;
}
.rst-t-item.visible{ opacity:1;transform:none }
.rst-t-item:nth-child(even){ margin-right:50%;padding:0 0 44px 45px }

.rst-t-item::before{
  content:'';position:absolute;top:28px;
  width:20px;height:20px;border-radius:50%;
  background:var(--rst-bg);border:4px solid var(--accent);
  box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 12%,transparent);
  z-index:3;transition:transform .3s;
  animation:rstPulseDot 2.5s ease-in-out infinite;
}
@keyframes rstPulseDot{
  0%,100%{ box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 12%,transparent),
                        0 0 24px color-mix(in srgb,var(--accent) 50%,transparent) }
  50%    { box-shadow:0 0 0 12px color-mix(in srgb,var(--accent) 5%,transparent),
                        0 0 32px color-mix(in srgb,var(--accent) 80%,transparent) }
}
.rst-t-item:nth-child(odd)::before{ right:-11px }
.rst-t-item:nth-child(even)::before{ left:-11px }
.rst-t-item:hover::before{ transform:scale(1.35) }

/* =========================================================
   5) کارت
   ========================================================= */
.rst-card{
  width:100%;
  background:linear-gradient(145deg,
    color-mix(in srgb,var(--rst-surface) 85%,transparent),
    color-mix(in srgb,var(--rst-surface) 90%,transparent));
  border:1.5px solid color-mix(in srgb,var(--accent) 12%,transparent);
  backdrop-filter:blur(10px);
  border-radius:18px;padding:22px 24px;
  text-align:right;cursor:pointer;
  position:relative;overflow:hidden;
  font-family:inherit;color:inherit;
  box-shadow:0 8px 30px rgba(0,0,0,.25);
  transition:all .35s;
}
.rst-card::before{
  content:'';position:absolute;top:0;bottom:0;right:0;width:4px;
  background:var(--accent);transition:width .3s;
}
.rst-card:hover{
  transform:translateY(-6px) scale(1.01);
  border-color:color-mix(in srgb,var(--accent) 50%,transparent);
  box-shadow:0 24px 50px rgba(0,0,0,.45),
             0 0 60px color-mix(in srgb,var(--accent) 20%,transparent);
}
.rst-card:hover::before{ width:6px }

.rst-ch{ display:flex;align-items:center;gap:14px;margin-bottom:12px }
.rst-ci{
  width:52px;height:52px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--accent) 10%,transparent);
  border:1.5px solid color-mix(in srgb,var(--accent) 30%,transparent);
  border-radius:16px;font-size:1.5rem;overflow:hidden;
  transition:transform .3s;
}
.rst-card:hover .rst-ci{ transform:rotate(-8deg) scale(1.1) }
.rst-ci.has-img{
  background:none;
  border:2px solid color-mix(in srgb,var(--accent) 50%,transparent);
  padding:0;
  box-shadow:0 4px 14px rgba(0,0,0,.3);
}
.rst-ci.has-img img{
  width:100%;height:100%;object-fit:cover;display:block;
  border-radius:inherit;transition:transform .35s;
}
.rst-card:hover .rst-ci.has-img img{ transform:scale(1.15) }

.rst-cdm{ font-weight:800;color:var(--accent);font-size:1.05rem;line-height:1.3 }
.rst-cds{ font-size:.72rem;color:var(--rst-muted);direction:ltr;margin-top:2px }
.rst-cb{
  margin-right:auto;font-size:.68rem;font-weight:700;
  padding:4px 11px;border-radius:20px;
  background:color-mix(in srgb,var(--accent) 15%,transparent);
  color:var(--accent);white-space:nowrap;flex-shrink:0;
}
.rst-ct{ font-weight:800;font-size:1.05rem;color:var(--rst-text);margin-bottom:8px;line-height:1.6 }
.rst-cd{
  font-size:.85rem;color:var(--rst-muted);line-height:1.9;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.rst-cm{
  display:inline-flex;align-items:center;gap:6px;margin-top:12px;
  font-size:.78rem;font-weight:700;color:var(--accent);transition:gap .25s;
}
.rst-cm::after{ content:'←';transition:transform .25s }
.rst-card:hover .rst-cm{ gap:10px }
.rst-card:hover .rst-cm::after{ transform:translateX(-4px) }
.rst-cmb{ display:flex;gap:6px;margin-top:10px;flex-wrap:wrap }
.rst-mb{
  font-size:.68rem;padding:3px 9px;border-radius:20px;
  background:color-mix(in srgb,var(--accent) 12%,transparent);
  color:var(--accent);font-weight:600;
}

/* =========================================================
   6) مودال — چون ممکن است به body منتقل شود، همه‌ی رنگ‌ها
      fallback دارند. --m* فقط یک میان‌بر برای خوانایی است.
   ========================================================= */
.rst-mo{
  /* میان‌بر: اگر داخل .rst-app باشد رنگ داینامیک می‌گیرد، وگرنه fallback */
  --ma:var(--accent,#e2b857);
  --ma2:var(--accent2,#a8821a);
  --mbg:var(--rst-bg,#0a0e1a);
  --msurface:var(--rst-surface,#151d33);
  --mtext:var(--rst-text,#e6edf7);
  --mmuted:var(--rst-muted,#8ba3c7);
  --mline:var(--rst-line,#2a3a5c);

  position:fixed;inset:0;z-index:99999;
  background:rgba(5,8,15,.85);
  backdrop-filter:blur(12px);
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  direction:rtl;font-family:'Vazirmatn',Tahoma,sans-serif;
  opacity:0;visibility:hidden;
  transition:opacity .3s,visibility .3s;
}
.rst-mo.active{ opacity:1;visibility:visible }

.rst-modal{
  background:linear-gradient(160deg,var(--msurface),var(--mbg));
  border:1.5px solid var(--mline);border-radius:24px;
  max-width:860px;width:100%;max-height:92vh;
  display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 60px 120px rgba(0,0,0,.7);
  transform:scale(.9) translateY(40px);
  transition:transform .4s cubic-bezier(.34,1.56,.64,1);
  position:relative;color:var(--mtext);
}
.rst-mo.active .rst-modal{ transform:none }

.rst-mcl{
  position:absolute;top:16px;left:16px;z-index:5;
  width:44px;height:44px;border-radius:14px;font-size:1.5rem;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);
  color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .25s;
}
.rst-mcl:hover{ background:rgba(214,69,69,.4);transform:rotate(90deg) }

.rst-mh{
  padding:32px 34px 26px;
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--ma) 8%,var(--mbg)),
    var(--mbg));
  border-bottom:1.5px solid var(--mline);
  position:relative;overflow:hidden;
}
.rst-mh::after{
  content:'';position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,transparent,var(--ma),#d64545,var(--ma),transparent);
  background-size:200% auto;
  animation:rstShine 4s linear infinite;
}
.rst-mtop{ display:flex;gap:20px;align-items:flex-start;position:relative;z-index:2 }
.rst-mi{
  width:76px;height:76px;flex-shrink:0;
  background:color-mix(in srgb,var(--ma) 12%,transparent);
  border:2px solid color-mix(in srgb,var(--ma) 35%,transparent);
  border-radius:22px;display:flex;align-items:center;justify-content:center;
  font-size:2.2rem;overflow:hidden;
}
.rst-mi.has-img{ background:none;padding:0 }
.rst-mi.has-img img{ width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit }
.rst-mtt{ flex:1;min-width:0;padding-left:52px } /* فاصله تا دکمه‌ی بستن */
.rst-md{
  display:inline-block;
  background:color-mix(in srgb,var(--ma) 12%,transparent);
  border:1px solid color-mix(in srgb,var(--ma) 25%,transparent);
  color:var(--ma);padding:4px 14px;border-radius:20px;
  font-size:.8rem;font-weight:700;margin-bottom:10px;
}
.rst-mttl{ font-size:1.4rem;font-weight:900;color:var(--mtext);line-height:1.5;margin-bottom:6px }
.rst-mst{ font-size:.88rem;color:var(--mmuted);line-height:1.7 }

/* بدنه با flex پر می‌شود — نه max-height هکی */
.rst-mbody{
  flex:1;min-height:0;
  padding:24px 34px 30px;
  overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;
}
.rst-mbody::-webkit-scrollbar{ width:8px }
.rst-mbody::-webkit-scrollbar-thumb{ background:var(--mline);border-radius:10px }

.rst-sec{ margin-bottom:28px }
.rst-st{
  display:flex;align-items:center;gap:10px;
  font-size:1rem;font-weight:800;color:var(--ma);
  margin-bottom:14px;padding-bottom:10px;
  border-bottom:2px dashed var(--mline);
}
.rst-st .ico{ margin-right:auto;font-size:1.15rem }
.rst-tb{ font-size:.92rem;line-height:2.1;color:var(--mtext);text-align:justify;opacity:.9 }

.rst-el{ display:flex;flex-direction:column;gap:10px }
.rst-el li{
  display:flex;gap:12px;
  padding:13px 16px;border-radius:12px;
  background:color-mix(in srgb,var(--ma) 5%,transparent);
  border:1px solid var(--mline);
  font-size:.88rem;line-height:1.9;color:var(--mtext);opacity:.9;
}
.rst-el li::before{ content:'◆';color:var(--ma);font-size:.7rem;flex-shrink:0;margin-top:7px }

.rst-qb{
  position:relative;
  padding:20px 24px;border-radius:12px;
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--ma) 10%,transparent),
    color-mix(in srgb,var(--ma) 3%,transparent));
  border-right:4px solid var(--ma);
  font-size:.95rem;line-height:2.1;color:var(--ma);font-style:italic;
}
.rst-qb::before{
  content:'❝';position:absolute;top:4px;right:14px;
  font-size:2.5rem;color:var(--ma);opacity:.3;
}
.rst-qa{
  display:block;margin-top:10px;font-size:.82rem;font-weight:700;
  color:var(--ma);font-style:normal;text-align:left;
}

.rst-mg{ display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px }
.rst-mitem{
  position:relative;overflow:hidden;cursor:pointer;
  background:color-mix(in srgb,var(--ma) 5%,transparent);
  border:1.5px solid var(--mline);border-radius:14px;
  transition:all .3s;
}
.rst-mitem:hover{ transform:translateY(-4px);border-color:var(--ma) }
.rst-mitem img{ width:100%;height:130px;object-fit:cover;display:block }
.rst-mthumb{
  height:130px;display:flex;align-items:center;justify-content:center;
  font-size:2.5rem;
  background:linear-gradient(135deg,color-mix(in srgb,var(--ma) 8%,var(--mbg)),var(--mbg));
}
.rst-mb2{
  position:absolute;top:8px;right:8px;
  background:rgba(0,0,0,.75);color:#fff;
  padding:3px 10px;border-radius:20px;
  font-size:.68rem;font-weight:700;
}
.rst-mcap{
  padding:8px 10px;font-size:.74rem;color:var(--mmuted);
  text-align:center;background:rgba(0,0,0,.2);
}

.rst-tags{ display:flex;flex-wrap:wrap;gap:8px }
.rst-tag{
  font-size:.75rem;font-weight:600;padding:5px 13px;border-radius:20px;
  background:color-mix(in srgb,var(--ma) 10%,transparent);
  color:var(--ma);
  border:1px solid color-mix(in srgb,var(--ma) 20%,transparent);
}
.rst-tag:hover{ background:var(--ma);color:#0a0e1a }
.rst-tag::before{ content:'#';opacity:.5;margin-left:3px }

/* قفل اسکرول پشت مودال — با JS: body.classList.toggle('rst-lock', isOpen) */
body.rst-lock{ overflow:hidden }

/* =========================================================
   7) لایت‌باکس
   ========================================================= */
.rst-lb{
  position:fixed;inset:0;z-index:999999;
  background:rgba(0,0,0,.96);
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  opacity:0;visibility:hidden;
  transition:opacity .25s,visibility .25s;
}
.rst-lb.active{ opacity:1;visibility:visible }
.rst-lbs{
  max-width:92vw;max-height:82vh;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.rst-lbi{ max-width:92vw;max-height:82vh;transition:transform .25s;user-select:none }
.rst-lbc{
  position:absolute;top:20px;left:20px;
  width:48px;height:48px;border-radius:14px;font-size:1.6rem;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);
  color:#fff;cursor:pointer;
}
.rst-lbc:hover{ background:rgba(214,69,69,.5) }
.rst-lbt{
  position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
  display:flex;gap:8px;
  background:rgba(255,255,255,.1);padding:8px;border-radius:16px;
}
.rst-lbt button{
  width:44px;height:44px;border-radius:12px;font-size:1.3rem;
  background:transparent;color:#fff;cursor:pointer;
}
.rst-lbt button:hover{ background:rgba(255,255,255,.15) }

/* =========================================================
   8) ریسپانسیو — تبلت و پایین‌تر (900)
   ========================================================= */
@media (max-width:900px){
  .rst-app{ padding:28px 14px 48px;border-radius:16px }

  /* هیرو */
  .rst-hero{ padding:26px 10px 18px }
  .rst-hero-icon{ width:80px;height:80px;font-size:2.2rem }
  .rst-hero h1{ font-size:1.4rem }
  .rst-hero p{ font-size:.9rem }
  .rst-stats{ gap:8px;margin-top:18px }
  .rst-stat{ font-size:.75rem;padding:7px 14px }
  .rst-stat .num{ font-size:.9rem }

  /* فیلترها */
  .rst-filters{ padding:0 14px;margin-bottom:24px }
  .rst-frow{ gap:6px }
  .rst-chip{ font-size:.78rem;padding:7px 12px }

  /* تایم‌لاین — تک‌ستونه، خط سمت راست */
  .rst-wrap{ padding:10px 12px 40px }
  .rst-tl{ padding:10px 0 }
  .rst-tl::before{
    left:auto;right:15px;transform:none;width:2px;
  }
  .rst-t-item,
  .rst-t-item:nth-child(even){
    width:100%;margin-right:0;
    padding:0 44px 26px 0;
  }
  .rst-t-item::before,
  .rst-t-item:nth-child(odd)::before,
  .rst-t-item:nth-child(even)::before{
    right:8px;left:auto;top:24px;
    width:16px;height:16px;border-width:3px;
  }

  /* کارت */
  .rst-card{ padding:18px 18px;border-radius:14px }
  .rst-ci{ width:44px;height:44px;font-size:1.2rem;border-radius:12px }
  .rst-ct{ font-size:.95rem }
  .rst-cd{ font-size:.8rem }

  /* مودال — شیت تمام‌صفحه از پایین */
  .rst-mo{ padding:0;align-items:stretch }
  .rst-modal{
    max-width:100%;width:100%;
    height:100vh;height:100dvh;
    max-height:none;border-radius:0;
    transform:translateY(100%);
  }
  .rst-mo.active .rst-modal{ transform:none }
  .rst-mh{ padding:60px 18px 18px }
  .rst-mcl{ top:12px;left:12px;width:40px;height:40px;font-size:1.2rem }
  .rst-mi{ width:56px;height:56px;font-size:1.6rem;border-radius:16px }
  .rst-mtt{ padding-left:0 }
  .rst-mttl{ font-size:1.1rem;line-height:1.4 }
  .rst-mst{ font-size:.82rem }
  .rst-md{ font-size:.72rem;padding:3px 10px;margin-bottom:8px }
  .rst-mbody{ padding:18px 16px 30px }
  .rst-sec{ margin-bottom:22px }
  .rst-st{ font-size:.9rem;padding-bottom:8px;margin-bottom:12px }
  .rst-tb{ font-size:.85rem;line-height:2 }
  .rst-el li{ font-size:.82rem;padding:11px 12px }
  .rst-qb{ font-size:.85rem;padding:16px 18px }
}

/* =========================================================
   9) موبایل کوچک (600)
   ========================================================= */
@media (max-width:600px){
  .rst-app{ padding:22px 10px 40px }
  .rst-hero-icon{ width:68px;height:68px;font-size:1.8rem }
  .rst-hero h1{ font-size:1.2rem }
  .rst-stat{ font-size:.7rem;padding:6px 12px }
  .rst-chip{ font-size:.74rem;padding:6px 11px }

  .rst-t-item,
  .rst-t-item:nth-child(even){ padding:0 40px 22px 0 }
  .rst-card{ padding:16px 16px }
  .rst-ci{ width:42px;height:42px }

  .rst-mttl{ font-size:1.05rem }
  .rst-mitem img,.rst-mthumb{ height:170px }

  .rst-lbc{ width:42px;height:42px;top:12px;left:12px;font-size:1.2rem }
  .rst-lbt{ bottom:12px;padding:6px }
  .rst-lbt button{ width:40px;height:40px;font-size:1.1rem }
}

/* =========================================================
   10) کاهش حرکت
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .rst-app *,
  .rst-mo *,
  .rst-lb *{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
/* پخش‌کننده روی تامبنیل ویدئو */
.rst-mmedia{ position:relative }
.rst-play{
    position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%);
    width:50px; height:50px; border-radius:50%;
    background:rgba(0,0,0,.55);
    border:1px solid rgba(255,255,255,.4);
    display:grid; place-items:center;
    font-size:1.3rem; color:#fff;
    box-shadow:0 4px 18px rgba(0,0,0,.5);
    pointer-events:none;
    transition:transform .25s, background .25s;
}
.rst-mitem:hover .rst-play{
    transform:translate(-50%,-50%) scale(1.12);
    background:rgba(226,184,87,.75);
    border-color:#e2b857;
}