/* ==========================================================
   همایون — نمای موبایل صفحه اصلی (نسخه ۲): هر بخش یک چیدمان متفاوت
   فقط تا ۷۶۸px — ریلز همایون دست‌نخورده است.
   ========================================================== */
.mh-dock,.mh-ticker,.mh-sheet,.mh-sheet-bg{display:none}
@media (max-width:768px){
html body.homepage{padding-bottom:84px}
html body.homepage .hero-wave{display:none}

/* ---------- هدر شیشه‌ای ---------- */
html body.homepage .header{background:rgba(15,10,11,.72)!important;backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border-bottom:1px solid rgba(232,195,90,.25);box-shadow:0 10px 30px -14px rgba(0,0,0,.8)}

/* ---------- هیرو ---------- */
html body.homepage .hero{min-height:calc(100svh - 64px);display:flex;align-items:center;overflow:hidden}
html body.homepage .hero::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(70% 45% at 50% 18%,rgba(232,195,90,.2),transparent 70%),linear-gradient(180deg,rgba(20,4,8,.55),rgba(20,4,8,.15) 40%,rgba(15,10,11,.92))}
html body.homepage .hero::after{inset:auto;width:420px;height:420px;left:50%;top:6%;translate:-50% 0;border-radius:50%;animation:mhSpin 38s linear infinite;border:1px dashed rgba(232,195,90,.28);box-shadow:0 0 0 40px rgba(232,195,90,.03),0 0 80px rgba(232,195,90,.1) inset}
@keyframes mhSpin{to{rotate:360deg}}
html body.homepage .hero-content{padding:1.5rem 1.1rem 4.5rem!important;width:100%}
html body.homepage .hero-emblem{width:92px;height:92px;position:relative}
html body.homepage .hero-emblem::after{content:"";position:absolute;inset:-12px;border-radius:50%;border:1.5px solid rgba(232,195,90,.5);animation:mhPulse 2.6s ease-out infinite}
@keyframes mhPulse{from{transform:scale(.9);opacity:.9}to{transform:scale(1.35);opacity:0}}
html body.homepage .hero-title{font-size:clamp(1.55rem,7.4vw,2.1rem)!important;line-height:1.45;letter-spacing:0}
html body.homepage .hero-title span{display:block;font-size:clamp(2.7rem,15vw,3.7rem);line-height:1.15;background:linear-gradient(180deg,#fff6cf,#e8b93f 60%,#b8861b);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;filter:drop-shadow(0 6px 22px rgba(232,195,90,.35))}
html body.homepage .hero-desc{font-size:1rem!important;line-height:1.9;margin-bottom:1rem}
html body.homepage .hero-trust{gap:.4rem;margin-bottom:1.4rem}
html body.homepage .hero-trust span{backdrop-filter:blur(8px);background:rgba(255,255,255,.08)}
html body.homepage .hero-buttons{display:flex;flex-direction:column;gap:.7rem;max-width:340px;margin-inline:auto}
html body.homepage .hero-buttons .btn{width:100%;justify-content:center;padding:.95rem 1rem;border-radius:16px;font-size:1rem;font-weight:800}
html body.homepage .hero-buttons .btn-primary{background:linear-gradient(135deg,#f8dc83,#c8962a)!important;color:#2a1706!important;border:0;box-shadow:0 14px 30px -10px rgba(232,195,90,.6),inset 0 1px 0 rgba(255,255,255,.5)}
html body.homepage .hero-buttons .btn-outline{background:rgba(255,255,255,.07);backdrop-filter:blur(10px);border:1px solid rgba(232,195,90,.5);color:#f6e7a8}

/* ---------- نوار متحرک ---------- */
.mh-ticker{display:block;position:relative;z-index:5;overflow:hidden;margin-top:-1px;padding:.7rem 0;background:linear-gradient(90deg,#6b0f1a,#8b1a2b,#6b0f1a);border-block:1px solid rgba(232,195,90,.45);direction:ltr}
.mh-ticker-track{display:flex;width:max-content;animation:mhMarq 26s linear infinite}
.mh-ticker span{flex:none;padding:0 1.4rem;font-weight:800;font-size:.9rem;color:#f6e7a8;white-space:nowrap;display:flex;align-items:center;gap:1.4rem}
.mh-ticker span::after{content:"\f1e3";font-family:"Font Awesome 6 Free";font-weight:900;font-size:.8rem;color:#e8c35a}
@keyframes mhMarq{to{transform:translateX(-50%)}}

/* ---------- آمار: بنتو ---------- */
html body .stats{margin-top:0!important;padding-top:2.2rem}
html body .stats #statsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body .stats #statsGrid .stat-card:first-child{grid-column:1/-1;min-height:120px!important;display:flex!important;align-items:center;gap:1rem;padding:1.2rem 1.3rem!important;background:linear-gradient(120deg,#8b1a2b,#3a0e18 55%,#1a0a0e)!important}
html body .stats #statsGrid .stat-card:first-child i{position:static!important;flex:none;width:62px!important;height:62px!important;font-size:1.7rem!important;border-radius:20px!important}
html body .stats #statsGrid .stat-card:first-child h3{margin:0!important;font-size:3rem!important}
html body .stats #statsGrid .stat-card:first-child p{margin-top:.1rem!important;font-size:1rem!important}
html body .stats #statsGrid .stat-card:nth-child(3){transform:translateY(14px)}
html body .stats #statsGrid .stat-card:nth-child(2),html body .stats #statsGrid .stat-card:nth-child(4){}
html body .stats #statsGrid{padding-bottom:1rem}

/* ---------- افتخارات: موزاییک (۱ بزرگ + ۲ کوچک) ---------- */
html body .homepage-honors .honors-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.8rem!important;overflow:visible!important}
html body .homepage-honors .honor-card{min-height:210px!important;border-radius:24px!important;padding:1rem!important}
html body .homepage-honors .honor-card:nth-child(3n+1){grid-column:1/-1!important;min-height:320px!important}
html body .homepage-honors .honor-card:nth-child(3n+1) h3{font-size:1.4rem}
html body .homepage-honors .honor-card:nth-child(3n+2) .honor-icon,html body .homepage-honors .honor-card:nth-child(3n) .honor-icon{width:64px;height:64px;top:1rem}
html body .homepage-honors .honor-card:nth-child(3n+2) .honor-icon i,html body .homepage-honors .honor-card:nth-child(3n) .honor-icon i{font-size:1.5rem!important}
html body .homepage-honors .honor-card:nth-child(3n+2) h3,html body .homepage-honors .honor-card:nth-child(3n) h3{font-size:1rem}
html body .homepage-honors .honor-card:nth-child(3n+2) p,html body .homepage-honors .honor-card:nth-child(3n) p{display:none}
html body .homepage-honors .honor-card:nth-child(3n){translate:0 0}

/* ---------- مربیان و مسابقات: ریل کشویی (مشترک) ---------- */

/* ---------- گالری: الگوی موزاییکی منظم (هر ۵ کارت یک الگو) ---------- */
html body .homepage-gallery .hg-bento,html body .homepage-gallery .hg-bento[data-count]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:172px!important;grid-auto-flow:row dense!important;gap:.75rem!important}
html body .homepage-gallery .hg-bento .hg-card{aspect-ratio:auto!important;min-height:0!important;height:auto!important;grid-column:auto!important;grid-row:auto!important;border-radius:24px!important;padding:.55rem!important}
html body .homepage-gallery .hg-bento .hg-card:hover{transform:none}
html body .homepage-gallery .hg-bento .hg-card:nth-child(5n+1){grid-column:1/-1!important;grid-row:span 2!important}
html body .homepage-gallery .hg-bento .hg-card:nth-child(5n+2){grid-row:span 2!important}
html body .homepage-gallery .hg-bento .hg-card:nth-child(5n){grid-column:1/-1!important}
html body .homepage-gallery .hg-bento .hg-card:nth-child(5n+2):last-child{grid-column:1/-1!important;grid-row:span 1!important}
html body .homepage-gallery .hg-bento .hg-card:nth-child(5n+3):last-child{grid-row:span 2!important}
html body .homepage-gallery .hg-bento[data-count="1"] .hg-card{grid-row:span 2!important}
html body .homepage-gallery .hg-bento[data-count="2"] .hg-card{grid-column:1/-1!important;grid-row:span 1!important}
html body .homepage-gallery .hg-bento[data-count="3"] .hg-card:nth-child(n+2){grid-row:span 2!important}
html body .homepage-gallery .hg-card .hg-num{font-size:1.5rem;top:.7rem;left:.9rem}
html body .homepage-gallery .hg-card .hg-icon{width:36px;height:36px;border-radius:12px;font-size:.9rem;top:.7rem;right:.7rem}
html body .homepage-gallery .hg-card .hg-info{padding:.6rem .75rem .65rem!important;border-radius:18px}
html body .homepage-gallery .hg-card .hg-info .hg-name{font-size:.95rem!important;padding-bottom:.4rem;line-height:1.5}
html body .homepage-gallery .hg-card .hg-eyebrow{display:none}
html body .homepage-gallery .hg-card .hg-more{display:none}
html body .homepage-gallery .hg-card .hg-count{font-size:.7rem;padding:.12rem .55rem}
html body .homepage-gallery .hg-card:nth-child(5n+1) .hg-info{padding:.85rem 1rem .9rem!important}
html body .homepage-gallery .hg-card:nth-child(5n+1) .hg-info .hg-name{font-size:1.3rem!important}
html body .homepage-gallery .hg-card:nth-child(5n+1) .hg-eyebrow{display:block}
html body .homepage-gallery .hg-card:nth-child(5n+1) .hg-more,html body .homepage-gallery .hg-card:nth-child(5n) .hg-more{display:inline-flex}
html body .homepage-gallery .hg-card:nth-child(5n) .hg-info .hg-name{font-size:1.05rem!important}

/* ---------- اخبار: خبر ویژه + لیست فشرده ---------- */
html body .homepage-news .news-grid{display:flex!important;flex-direction:column;gap:.8rem!important;overflow:visible!important}
html body .homepage-news a.news-card:first-child{min-height:0!important}
html body .homepage-news a.news-card:first-child .news-img{height:240px!important}
html body .homepage-news a.news-card:first-child h3{font-size:1.25rem}
html body .homepage-news a.news-card:not(:first-child){flex-direction:row!important;align-items:stretch;border-radius:22px!important}
html body .homepage-news a.news-card:not(:first-child) .news-img{width:112px!important;height:auto!important;min-height:132px!important;flex:none}
html body .homepage-news a.news-card:not(:first-child) .news-img::after{background:linear-gradient(270deg,rgba(19,8,9,.9),transparent 70%)}
html body .homepage-news a.news-card:not(:first-child) .news-body{margin:0!important;padding:.9rem 1rem!important;justify-content:center;flex:1;min-width:0}
html body .homepage-news a.news-card:not(:first-child) h3{font-size:.98rem}
html body .homepage-news a.news-card:not(:first-child) .news-excerpt,html body .homepage-news a.news-card:not(:first-child) .news-read{display:none!important}

/* ---------- بازیکنان برجسته: شبکه ۲ ستونه پلکانی ---------- */
html body .homepage-players .players-grid.fp-showcase{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.8rem!important;overflow:visible!important;margin:0!important;padding:0 0 1.5rem!important;perspective:none}
html body .homepage-players .fpc{flex:none;width:auto}
html body .homepage-players .fpc:nth-child(even){transform:translateY(26px)}
html body .homepage-players .fpc-frame{aspect-ratio:3/4.3;border-radius:22px}
html body .homepage-players .fpc-ghost{font-size:5.5rem}
html body .homepage-players .fpc-num{font-size:1.5rem}
html body .homepage-players .fpc-pos{font-size:.62rem;padding:.25rem .55rem}
html body .homepage-players .fpc-bottom{padding:2.4rem .6rem .8rem}
html body .homepage-players .fpc-bottom h3{font-size:.95rem}
html body .homepage-players .fpc-meta{margin:.4rem 0 0}
html body .homepage-players .fpc-meta span:nth-child(n+2),html body .homepage-players .fpc-cta{display:none}
html body .homepage-players .fpc:first-child{grid-column:1/-1;transform:none}
html body .homepage-players .fpc:first-child .fpc-frame{aspect-ratio:16/11}
html body .homepage-players .fpc:first-child .fpc-bottom h3{font-size:1.3rem}
html body .homepage-players .fpc:first-child .fpc-cta{display:inline-flex}
html body .homepage-players .fpc:nth-child(2){transform:none}
html body .homepage-players .fpc:nth-child(3){transform:translateY(26px)}
html body .homepage-players .fpc:nth-child(odd):not(:first-child){transform:none}

/* ---------- دعوت به عضویت ---------- */
html body .cta .cta-box{position:relative;overflow:hidden;padding:2rem 1.3rem;border-radius:30px;border:1px solid rgba(232,195,90,.5);background:radial-gradient(90% 70% at 50% 0,rgba(232,195,90,.25),transparent 70%),linear-gradient(160deg,#7a1428,#240a10);box-shadow:0 26px 50px -20px rgba(0,0,0,.9)}
html body .cta .cta-box h2{font-size:1.4rem;line-height:1.7}
html body .cta .cta-actions{display:flex;flex-direction:column;gap:.7rem}
html body .cta .cta-actions .btn{width:100%;justify-content:center;border-radius:16px}

/* ---------- دکمهٔ شناور پایین (Dock) ---------- */
.mh-dock{display:flex;position:fixed;z-index:90;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));justify-content:space-around;padding:.55rem .4rem;border-radius:24px;background:rgba(20,10,13,.82);backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5);border:1px solid rgba(232,195,90,.4);box-shadow:0 18px 40px -10px rgba(0,0,0,.9);transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.mh-dock.hide{transform:translateY(140%)}
.mh-dock a{flex:1;display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.35rem 0;font-size:.68rem;font-weight:700;color:#e8dcd6;text-decoration:none}
.mh-dock a{position:relative;border-radius:16px;transition:background .3s,color .3s;-webkit-tap-highlight-color:transparent}
.mh-dock a i{font-size:1.15rem;color:#e8c35a;transition:transform .3s}
.mh-dock a:active i{transform:scale(.85)}
.mh-dock a.on:not(.main){color:#fff;background:rgba(232,195,90,.16)}
.mh-dock a.on:not(.main) i{transform:translateY(-2px)}
.mh-dock a.on:not(.main)::after{content:"";position:absolute;bottom:2px;width:16px;height:3px;border-radius:3px;background:linear-gradient(90deg,#f8dc83,#c8962a)}
.mh-dock a.main{flex:none;width:58px;height:58px;margin-top:-26px;justify-content:center;border-radius:50%;color:#2a1706;background:linear-gradient(135deg,#f8dc83,#c8962a);box-shadow:0 12px 26px -6px rgba(232,195,90,.7),0 0 0 5px rgba(20,10,13,.9)}
.mh-dock a.main i{color:#2a1706;font-size:1.3rem}
}
@media (max-width:768px){
.mh-sheet-bg{display:block;position:fixed;inset:0;z-index:99;background:rgba(0,0,0,.6);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .3s}
.mh-sheet{display:block;position:fixed;z-index:100;left:0;right:0;bottom:0;padding:1.1rem 1.1rem max(1.3rem,env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:linear-gradient(170deg,#3a0e18,#150709);border-top:1px solid rgba(232,195,90,.5);box-shadow:0 -20px 50px rgba(0,0,0,.8);transform:translateY(105%);transition:transform .4s cubic-bezier(.2,.8,.2,1);direction:rtl}
.mh-sheet.open{transform:none}.mh-sheet-bg.open{opacity:1;pointer-events:auto}
.mh-sheet::before{content:"";display:block;width:44px;height:4px;border-radius:4px;background:rgba(255,255,255,.25);margin:0 auto .9rem}
.mh-sheet h4{margin:0 0 .8rem;text-align:center;color:#f6e7a8;font-size:1.05rem}
.mh-sheet a{display:flex;align-items:center;gap:.8rem;padding:.8rem .9rem;margin-bottom:.55rem;border-radius:16px;color:#fff;text-decoration:none;background:rgba(255,255,255,.06);border:1px solid rgba(232,195,90,.25);font-weight:700}
.mh-sheet a i{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:none;color:#2a1706;background:linear-gradient(135deg,#f8dc83,#c8962a)}
.mh-sheet a small{display:block;font-weight:400;color:#cdbdb8;font-size:.78rem}
.mh-sheet p{margin:.3rem 0 0;text-align:center;font-size:.78rem;color:#cdbdb8;line-height:1.8}
}
@media (prefers-reduced-motion:reduce){.mh-ticker-track,html body.homepage .hero::after,html body.homepage .hero-emblem::after{animation:none}}
