/* DLFars Cinema v3.9 — mobile featured-banner title & fixed action row.
   Presentation only. Loaded LAST after v38, never touches rows, Ajax, Setex,
   subscriptions or the stored custom backdrop/tint settings. */
@media (max-width:700px) {
  /* Give the background/title a taller canvas than the previous 1.58:1 ratio.
     Proportional heights avoid hardcoding one height for all devices. */
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature,
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature:has(.dlf-v27-featureinner) {
    aspect-ratio:1.50 / 1!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  /* Absolute overlay doesn't participate in layout: image remains behind it. */
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature.dlf-ci-v35-mobile-ready > .dlf-ci-v35-mobile {
    position:absolute!important;
    inset:0!important;
    z-index:20!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    align-items:end!important;
    justify-items:start!important;
    gap:14px!important;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:24% 16px 17px!important;
    direction:rtl!important;
    text-align:right!important;
    overflow:hidden!important;
  }
  /* Reserve enough vertical room for a multi-line Persian title.
     Title grows upward; the action bar stays pinned to the same bottom inset. */
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature .dlf-ci-v35-mobile > h3 {
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:4!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:3.9em!important;
    max-height:6.8em!important;
    height:auto!important;
    align-self:end!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    color:#fff5e7!important;
    font:850 clamp(16px,4.3vw,20px)/1.62 Vazirmatn,Vazir,Tahoma,sans-serif!important;
    text-align:right!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-shadow:0 2px 13px rgba(0,0,0,.82)!important;
  }
  /* The two original links are used; no duplicate or new actions. */
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature .dlf-ci-v35-mobile-actions {
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:column!important;
    align-items:stretch!important;
    justify-content:start!important;
    align-self:end!important;
    justify-self:start!important;
    gap:9px!important;
    direction:rtl!important;
    width:min(100%,308px)!important;
    max-width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
  }
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature .dlf-ci-v35-mobile-actions > a {
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:7px 10px!important;
    border-radius:11px!important;
    font:750 12px/1.4 Vazirmatn,Vazir,Tahoma,sans-serif!important;
    white-space:nowrap!important;
    text-align:center!important;
    touch-action:manipulation;
  }
  /* In rare title-only banners, a sole link should not leave a blank button. */
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature .dlf-ci-v35-mobile-actions:has(> a:only-child) {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media (max-width:480px) {
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature,
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature:has(.dlf-v27-featureinner) {
    aspect-ratio:1.10 / 1!important;
  }
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature.dlf-ci-v35-mobile-ready > .dlf-ci-v35-mobile {
    gap:12px!important;
    padding:25% 13px 14px!important;
  }
}
@media (max-width:360px) {
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature .dlf-ci-v35-mobile > h3 {
    font-size:15px!important;
    line-height:1.55!important;
  }
  #mainindeximtes.dlf-ci-v30.dlf-ci-v31.dlf-ci-v34.dlf-ci-v35 .rowpost.dlf-ci-feature .dlf-ci-v35-mobile-actions {
    width:100%!important;
    gap:7px!important;
  }
}
