/* ==========================================================
   همایون — نمای موبایل صفحه اصلی (افتخارات، آمار، مربیان، مسابقات، اخبار، بازیکنان)
   فقط روی صفحه‌های تا ۷۶۸ پیکسل اعمال می‌شود. ریلز همایون دست‌نخورده است.
   ========================================================== */
.mfx-dots{display:none}
@media (max-width:768px){

/* ---------- تیتر بخش‌ها ---------- */
html body :is(.stats,.homepage-honors,.homepage-coaches,.homepage-matches,.homepage-live,.homepage-gallery,.homepage-news,.homepage-players) .section-header{text-align:center;margin-bottom:1.4rem}
html body :is(.stats,.homepage-honors,.homepage-coaches,.homepage-matches,.homepage-live,.homepage-gallery,.homepage-news,.homepage-players) .section-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.38rem 1rem;border-radius:999px;border:1px solid rgba(232,195,90,.5);background:rgba(232,195,90,.1);font-size:.74rem;font-weight:700;letter-spacing:.05em;box-shadow:0 0 22px rgba(232,195,90,.12)}
html body :is(.homepage-honors,.homepage-coaches,.homepage-matches,.homepage-live,.homepage-gallery,.homepage-news,.homepage-players) .section-header h2{font-size:clamp(1.45rem,6.6vw,1.95rem);line-height:1.45;margin:.8rem 0 .4rem}
html body :is(.homepage-honors,.homepage-coaches,.homepage-matches,.homepage-live,.homepage-gallery,.homepage-news,.homepage-players) .section-header h2::after{content:"";display:block;width:74px;height:3px;margin:.7rem auto 0;border-radius:3px;background:linear-gradient(90deg,transparent,#e8c35a 30%,#e8c35a 70%,transparent)}
html body :is(.homepage-honors,.homepage-coaches,.homepage-matches,.homepage-live,.homepage-gallery,.homepage-news,.homepage-players) .section-header p{font-size:.92rem;max-width:32ch;margin:.5rem auto 0;line-height:1.9}

/* ---------- ریل کشویی مشترک (با snap) ---------- */
html body .mfx-rail{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;gap:.9rem!important;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;
  margin-inline:calc(50% - 50vw)!important;padding:.7rem calc((100vw - var(--mfx-w,78vw))/2) 1.3rem!important;width:auto!important;max-width:none!important}
html body .mfx-rail::-webkit-scrollbar{display:none}
html body .mfx-rail>*{flex:0 0 var(--mfx-w,78vw)!important;width:var(--mfx-w,78vw)!important;max-width:var(--mfx-w,78vw)!important;margin:0!important;scroll-snap-align:center;scroll-snap-stop:always;scale:.93;opacity:.78;transition:scale .45s cubic-bezier(.2,.8,.2,1),opacity .45s,box-shadow .45s}
html body .mfx-rail>.is-active,html body .mfx-rail>:only-child{scale:1;opacity:1}
html body .mfx-rail>.locked-hint,html body .mfx-rail>.fp-empty,html body .mfx-rail>p{scale:1;opacity:1;align-self:center;text-align:center}
.mfx-dots{display:flex;justify-content:center;align-items:center;gap:.45rem;direction:ltr;margin:-.2rem 0 .3rem;min-height:10px}
.mfx-dots i{width:7px;height:7px;border-radius:50%;background:rgba(200,150,40,.38);cursor:pointer;transition:.35s}
.mfx-dots i.on{width:26px;border-radius:7px;background:linear-gradient(90deg,#8b1a2b,#e8c35a)}
.mfx-dots .mfx-num{font-size:.8rem;font-weight:700;color:#c8962a;letter-spacing:.04em}

/* ---------- ظهور نرم هنگام اسکرول ---------- */
html.mfx-ready .mfx-reveal{opacity:0;transform:translateY(26px);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.8,.2,1)}
html.mfx-ready .mfx-reveal.mfx-in{opacity:1;transform:none}

/* ---------- آمار «همایون در یک نگاه» ---------- */
html body .stats #statsGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.8rem!important}
html body .stats .stat-card:not(:has(.stat-photo)){position:relative;overflow:hidden;text-align:right;padding:1.1rem 1rem 1rem!important;border-radius:22px!important;min-height:132px;
  background:linear-gradient(155deg,#661222 0%,#220b12 68%,#140709 100%)!important;border:1px solid rgba(232,195,90,.32)!important;box-shadow:0 18px 36px -16px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.1)!important;backdrop-filter:none}
html body .stats .stat-card:not(:has(.stat-photo))::before{content:"";position:absolute;width:120px;height:120px;left:-40px;bottom:-50px;border-radius:50%;background:radial-gradient(circle,rgba(232,195,90,.28),transparent 68%);pointer-events:none}
html body .stats .stat-card:not(:has(.stat-photo)) i{position:absolute;left:.85rem;top:.85rem;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;margin:0!important;font-size:1rem!important;color:#f0d060!important;background:rgba(232,195,90,.14);border:1px solid rgba(232,195,90,.3)}
html body .stats .stat-card:not(:has(.stat-photo)) h3{position:relative;margin:2.1rem 0 .15rem!important;font-size:2.3rem!important;line-height:1.1;font-weight:800;background:linear-gradient(180deg,#fff4c9,#e2b440);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important}
html body .stats .stat-card:not(:has(.stat-photo)) p{position:relative;margin:0!important;color:#ecdcd8!important;font-size:.84rem!important}

/* ---------- افتخارات ---------- */
html body .homepage-honors .honors-grid::before,html body .homepage-honors .honors-grid::after,html body .homepage-honors .honor-card::after{display:none!important;content:none!important}
html body .homepage-honors .honors-grid{--mfx-w:78vw}
html body .homepage-honors .honor-card{grid-column:auto!important;position:relative;display:flex!important;flex-direction:column;justify-content:flex-end;overflow:hidden;min-height:350px!important;padding:1.3rem!important;text-align:right;border-radius:28px!important;
  background:linear-gradient(160deg,#7a1428 0%,#2a0b12 58%,#120709 100%)!important;border:1px solid rgba(232,195,90,.4)!important;box-shadow:0 24px 46px -18px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.12)!important}
html body .homepage-honors .honor-card::before{content:""!important;position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.04) 22%,rgba(12,4,6,.95) 100%)!important}
html body .homepage-honors .honor-card .honor-photo{position:absolute!important;inset:0;width:100%!important;height:100%!important;margin:0!important;border-radius:0!important;opacity:1!important;object-fit:cover}
html body .homepage-honors .honor-card .honor-icon{position:absolute;top:1.6rem;left:50%;translate:-50% 0;z-index:2;width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,rgba(232,195,90,.38),rgba(232,195,90,.06) 72%);border:1px solid rgba(232,195,90,.55);box-shadow:0 0 46px rgba(232,195,90,.38)}
html body .homepage-honors .honor-card .honor-icon i{margin:0!important;font-size:2.6rem!important;color:#f3d46a!important}
html body .homepage-honors .honor-card .honor-year{position:absolute!important;top:1rem;right:1rem;z-index:3;margin:0!important;padding:.34rem .9rem;border-radius:999px;font-size:.82rem;font-weight:900;color:#2a1706!important;background:linear-gradient(135deg,#f8dc83,#c8962a)!important;box-shadow:0 8px 20px rgba(0,0,0,.4)}
html body .homepage-honors .honor-card h3{position:relative;z-index:3;margin:0 0 .4rem!important;font-size:1.28rem;line-height:1.55;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.6)}
html body .homepage-honors .honor-card p{position:relative;z-index:3;margin:0!important;font-size:.9rem;line-height:1.8;color:#eadfdb!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- مربیان ---------- */
html body .homepage-coaches .coaches-grid{--mfx-w:76vw;perspective:none}
html body .homepage-coaches .mfx-rail>.cx-card{border-radius:28px!important;animation:none!important;opacity:.78}
html body .homepage-coaches .mfx-rail>.cx-card.is-active{opacity:1;box-shadow:0 26px 50px -18px rgba(0,0,0,.9),0 0 0 1.5px rgba(240,208,96,.85),0 0 40px rgba(212,175,55,.25)}
html body .homepage-coaches .mfx-rail>.home-coaches-more{display:grid;place-items:center;aspect-ratio:auto}

/* ---------- مسابقات (اسکوربرد) ---------- */
html body .homepage-matches .matches-home-grid{--mfx-w:82vw}
html body .homepage-matches .match-card{position:relative;overflow:hidden;padding:1.3rem 1rem 1.1rem!important;border-radius:28px!important;color:#fff;
  background:radial-gradient(120% 80% at 50% 0%,rgba(232,195,90,.2),transparent 58%),linear-gradient(160deg,#52101d,#150709)!important;border:1px solid rgba(232,195,90,.38)!important;box-shadow:0 24px 46px -18px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.1)!important}
html body .homepage-matches .match-card::before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 1px,transparent 1px 38px)}
html body .homepage-matches .match-card>*{position:relative}
html body .homepage-matches .match-card .match-logos{display:flex;align-items:center;justify-content:center;gap:.9rem;margin-bottom:.7rem}
html body .homepage-matches .match-card .match-logos :is(img,i){width:66px;height:66px;border-radius:50%;object-fit:cover;display:grid;place-items:center;padding:5px;font-size:1.7rem;color:#f0d060;background:rgba(255,255,255,.08);border:2px solid rgba(232,195,90,.55);box-shadow:0 0 26px rgba(232,195,90,.2)}
html body .homepage-matches .match-card .match-logos span{font-weight:900;font-size:.78rem;letter-spacing:.14em;color:#e8c35a!important}
html body .homepage-matches .match-card div[style]{color:#f6ece8!important}
html body .homepage-matches .match-card div[style*="var(--gold)"]{color:#f0d060!important}
html body .homepage-matches .match-card .match-live-score{display:flex;align-items:center;justify-content:center;gap:.6rem;direction:ltr;margin:.55rem 0 .2rem}
html body .homepage-matches .match-card .team-score{min-width:58px;padding:.15rem .5rem;border-radius:16px;text-align:center;line-height:1.35;font-size:2.3rem;font-weight:800;color:#fff!important;background:rgba(0,0,0,.42);border:1px solid rgba(232,195,90,.4);box-shadow:inset 0 0 18px rgba(232,195,90,.1)}
html body .homepage-matches .match-card .score-sep{font-size:1.8rem;color:#e8c35a!important}
html body .homepage-matches .match-card .match-countdown{width:max-content;max-width:100%;margin:.55rem auto 0;padding:.3rem .8rem;border-radius:999px;font-size:.82rem;font-weight:700;color:#f0d060!important;background:rgba(232,195,90,.12);border:1px solid rgba(232,195,90,.4);direction:ltr}
html body .homepage-matches .match-card :is(.sc-date,.sc-place,.match-live-note,.match-goals-line){color:#e6d6d3!important}
html body .homepage-matches .match-card .sc-date{margin-top:.5rem;font-weight:700}

/* ---------- اخبار ---------- */
html body .homepage-news .news-grid{--mfx-w:80vw}
html body .homepage-news a.news-card{display:flex!important;flex-direction:column;grid-column:auto!important;grid-row:auto!important;min-height:0!important;height:auto!important;overflow:hidden;border-radius:28px!important;text-decoration:none;
  background:linear-gradient(170deg,#2c0f17,#130809)!important;border:1px solid rgba(232,195,90,.32)!important;box-shadow:0 24px 46px -20px rgba(0,0,0,.85)!important}
html body .homepage-news a.news-card .news-img{position:relative;width:100%!important;height:190px!important;min-height:0!important;overflow:hidden;display:block}
html body .homepage-news a.news-card .news-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(19,8,9,.96));pointer-events:none}
html body .homepage-news a.news-card .news-img img{width:100%;height:100%;object-fit:cover}
html body .homepage-news a.news-card .news-img i{width:100%;height:100%;display:grid;place-items:center;font-size:3.2rem;color:#f0d060}
html body .homepage-news a.news-card .news-body{position:relative;z-index:2;display:flex;flex-direction:column;gap:.5rem;padding:0 1.1rem 1.2rem!important;margin-top:-1.3rem;background:none!important}
html body .homepage-news a.news-card .news-date{order:1;align-self:flex-start;padding:.28rem .75rem;border-radius:999px;font-size:.74rem;font-weight:700;color:#f0d060!important;background:rgba(232,195,90,.14);border:1px solid rgba(232,195,90,.4)}
html body .homepage-news a.news-card h3{order:2;margin:0!important;font-size:1.1rem;line-height:1.7;color:#fff!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .homepage-news a.news-card .news-excerpt{order:3;margin:0!important;font-size:.86rem;line-height:1.85;color:#dccfcb!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html body .homepage-news a.news-card .news-read{order:4;align-self:flex-start;margin-top:.2rem;display:inline-flex;align-items:center;gap:.4rem;padding:.42rem .95rem;border-radius:999px;font-size:.82rem;font-weight:700;color:#2a1706!important;background:linear-gradient(135deg,#f8dc83,#c8962a)}
html body .homepage-news a.news-card .news-more{display:none!important}

/* ---------- بازیکنان برجسته ---------- */
html body .homepage-players .featured-search{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;padding:.85rem;margin-bottom:1rem;border-radius:22px;background:rgba(232,195,90,.07);border:1px solid rgba(232,195,90,.25)}
html body .homepage-players .featured-search .fp-field:not(.fp-field-sm){grid-column:1/-1}
html body .homepage-players .players-grid{--mfx-w:66vw}
html body .homepage-players .player-card{position:relative;display:block!important;overflow:hidden;padding:0!important;aspect-ratio:3/4.1;border-radius:28px!important;grid-column:auto!important;
  background:linear-gradient(160deg,#6b0f1a,#150709)!important;border:1px solid rgba(232,195,90,.4)!important;box-shadow:0 24px 46px -18px rgba(0,0,0,.85)!important}
html body .homepage-players .player-card::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,transparent 30%,transparent 46%,rgba(12,4,6,.96) 100%)}
html body .homepage-players .player-card .player-photo{position:absolute!important;inset:0;width:100%!important;height:100%!important;margin:0!important;border-radius:0!important}
html body .homepage-players .player-card .player-photo img{width:100%;height:100%;object-fit:cover;object-position:top center}
html body .homepage-players .player-card .player-photo i:not([style*="none"]){position:absolute;inset:0;display:grid!important;place-items:center;font-size:4.6rem;color:rgba(232,195,90,.35)}
html body .homepage-players .player-card .player-number{position:absolute;top:.9rem;right:.9rem;z-index:3;min-width:46px;height:46px;padding:0 .3rem;border-radius:50%;display:grid;place-items:center;font-size:1.05rem;font-weight:900;color:#2a1706!important;background:linear-gradient(135deg,#f8dc83,#c8962a)!important;box-shadow:0 8px 20px rgba(0,0,0,.45)}
html body .homepage-players .player-card .player-info{position:absolute!important;inset:auto 0 0 0;z-index:3;padding:1.1rem 1.1rem 1.2rem!important;text-align:right;background:none!important}
html body .homepage-players .player-card .player-info h3{margin:0 0 .45rem!important;font-size:1.2rem;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.6)}
html body .homepage-players .player-card .player-position{display:inline-block;margin:0 0 .25rem 4px!important;padding:.22rem .7rem;border-radius:999px;font-size:.74rem;color:#fff!important;background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(6px)}
html body .homepage-players .player-card .player-meta{margin-top:.2rem;font-size:.82rem;color:#dccfcb!important}
html body .homepage-players .player-card .player-profile-link{margin-top:.6rem!important;padding:.45rem .95rem;border-radius:999px;color:#f0d060!important;background:rgba(232,195,90,.14);border:1px solid rgba(232,195,90,.5)}

/* ---------- دکمه‌های «مشاهده همه» ---------- */
html body :is(.homepage-news,.homepage-players,.homepage-gallery) .text-center :is(.btn,.hg-all){min-width:210px;justify-content:center;border-radius:999px}

.mfx-dots{display:flex}
}

@media (prefers-reduced-motion:reduce){
  html.mfx-ready .mfx-reveal{opacity:1;transform:none;transition:none}
  html body .mfx-rail>*{transition:none}
}
