/* ===== الاسطورة | Livehd7 — التصميم الثاني (نمط الصفوف) ===== */
*,::after,::before{box-sizing:border-box}
*{margin:0;padding:0;outline:0;list-style:none}
:root{
  --main_color:#0052cc;
  --font_type:"Noto Kufi Arabic";
  --font_size:16px;
  --body_bg:#eceef2;
  --header_bg:#fff;
  --header_color:#222;
  --logo_bd:#0052cc;
  --logo_color:#fff;
  --yrsdaybg:#104783;
  --todaybg:#0052cc;
  --tomorobg:#0041cc;
  --footer_bd:#fff;
  --footer_color:#222;
  --footer_border:#ddd;
  --cop_bd:#eceef2;
  --cop_color:#222;
  --bk-hd-bg:#eceef2;
  --bk-ttl-bg:#273340;
  --btn-bg:#273340;
  --match-bg:#eceef2;
  --Gray1:#eceef2;
  --Gray2:#ddd;
  --Gray3:#d8dbe1;
  --LightColor:#fff;
  --DarkColor:#273340;
  --bk-shadow:rgba(0,0,0,0.3);
  --rounded:8px;
  --pad:12px;
}
.Night{
  --body_bg:#1c2733;--header_bg:#263545;--Gray2:#2b3b4d;--Gray3:#1c2733;
  --logo_color:#fff;--footer_border:#1c2733;--Gray1:#1c2733;--LightColor:#263545;
  --footer_bd:#263545;--cop_bd:#1c2733;--DarkColor:#1c2733;--bk-hd-bg:#121a23;--match-bg:#1c2733;
}
html,body{scroll-behavior:smooth}
body{font-family:var(--font_type),"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.7;background:var(--body_bg);color:var(--cop_color);font-size:var(--font_size);font-weight:500;transition:background .3s,color .3s}
.Night,.Night a{color:#e7ecf3}
a{color:inherit;text-decoration:none}
a:hover{color:var(--main_color);transition:.4s ease}
img{font-size:0;max-width:100%}
strong{font-weight:700}
.container{max-width:1024px;margin:0 auto;padding:0 var(--pad)}
.d-none{display:none}
.screen-reader{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.d-fx{display:flex}
.fx-cen{display:flex;align-items:center}
.fx-wrap{display:flex;flex-wrap:wrap}
.grow-1{flex-grow:1}
.gap-5{gap:5px}.gap-10{gap:10px}.gap-20{gap:20px}

/* ===== Buttons ===== */
.aya-btn{position:relative;background:var(--btn-bg);padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--rounded);color:#fff;font-size:15px;text-align:center;cursor:pointer}
a.aya-btn:hover{opacity:.85;color:#fff}

/* ===== Header ===== */
#AYaHeader{position:relative;margin-bottom:15px}
#AYaHeader .HdrInner{width:100%;background:var(--header_bg);box-shadow:0 0 4px var(--bk-shadow)}
#AYaHeader .HdrInner>.container{min-height:85px}
.AYaLogo{background:var(--logo_bd);border-radius:var(--rounded);max-width:210px;padding:6px 14px}
.AYaLogo>a{display:flex;flex-direction:column;justify-content:center}
.AYaLogo span{display:block;text-align:center;color:var(--logo_color);line-height:1.25}
.AYaLogo .SiteName{font-size:28px;font-weight:800}
.AYaLogo .SiteUrl{font-size:15px;opacity:.95;letter-spacing:1px}
.AYaMainNav{flex:1}
.MainMenu li>a{padding:8px;display:block;white-space:nowrap;font-size:17px;color:var(--header_color);font-weight:600}
.Night .MainMenu li>a{color:#e7ecf3}
.MainMenu li a:hover{color:var(--main_color)}
.hed-btn{height:38px;width:38px;background:var(--DarkColor);display:inline-flex;cursor:pointer;justify-content:center;align-items:center;border-radius:var(--rounded);border:0}
.hed-btn .icon{width:22px;height:22px;color:#fff}
html:not(.Night) .sun,.Night .mon{display:none}

/* ===== Blocks ===== */
.AY_Block{margin-bottom:20px;box-shadow:0 0 4px var(--bk-shadow);background:var(--LightColor);overflow:hidden;border-radius:var(--rounded)}
.AYb_Head{padding:12px;border-bottom:1px solid var(--Gray2);background:var(--bk-hd-bg);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.AYb_Head h1,.AYb_Head h2{font-size:16px}
.AYb_Head .aya-btn{--btn-bg:var(--main_color)}

/* ===== Date tabs ===== */
.tmz-name{display:flex;height:22px;overflow:hidden;padding:2px 5px 0;justify-content:flex-end}
.tmz-name span{font-size:11px;padding:3px 9px;background:var(--bk-hd-bg);border-radius:6px 6px 0 0;box-shadow:0 0 4px rgba(0,0,0,.18)}
.AY-Dtab{display:flex;gap:5px}
.AY-Dtab li a{--btn-bg:var(--DarkColor)}
.AY-Dtab li.today a,.AY-Dtab li a.active{--btn-bg:var(--todaybg)}
.AY-Dtab li.yesterday a{--btn-bg:var(--yrsdaybg)}
.AY-Dtab li.tomorrow a{--btn-bg:var(--tomorobg)}

/* ===== League filter ===== */
.league-filter{display:flex;flex-wrap:wrap;gap:6px;padding:12px 12px 0}
.league-btn{background:var(--Gray1);border:1px solid var(--Gray2);color:var(--cop_color);padding:5px 11px;border-radius:20px;font-size:13px;cursor:pointer;font-family:inherit;font-weight:600;transition:.25s}
.Night .league-btn{color:#e7ecf3}
.league-btn:hover{border-color:var(--main_color);color:var(--main_color)}
.league-btn.active{background:var(--main_color);border-color:var(--main_color);color:#fff}

/* ===== Matches list (rows) ===== */
.albaflex{display:flex;flex-direction:column;padding:12px}
.albaflex .live{order:1}.albaflex .comming-soon{order:2}.albaflex .not-started{order:3}.albaflex .gools{order:3}.albaflex .finished{order:4}
.AY_Match{overflow:hidden;text-align:center;background:var(--match-bg);margin-bottom:12px;position:relative;border-radius:var(--rounded);--stat-bg:#263545;transition:transform .15s,box-shadow .15s}
.AY_Match:hover{transform:translateY(-2px);box-shadow:0 4px 14px rgba(0,0,0,.14)}
.AY_Match.live{box-shadow:0 0 0 2px #d00000 inset}
.AY_Inner{display:flex;align-items:center}
.AY_Inner>div{flex:0 0 auto;width:33.3333%}
.MT_Team{display:flex;align-items:center;flex:1}
.MT_Team.TM2{flex-direction:row-reverse}
.TM_Logo{width:50%}
.TM_Logo img{margin:10px auto;display:flex;width:66px;height:66px;object-fit:contain}
.TM_Name{margin:8px auto;font-weight:700;font-size:15px}
.logo-placeholder{width:66px;height:66px;border-radius:50%;background:var(--main_color);color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;margin:10px auto}
.MT_Data{margin:12px auto;display:flex;flex-direction:column;align-items:center}
.MT_Time{font-size:17px;font-weight:700}
.MT_Result{font-size:22px;display:inline-flex;gap:6px;justify-content:center;align-items:center;font-weight:800}
.MT_Stat{font-size:13px;margin:6px auto 0;min-width:64px;color:#fff;background:var(--stat-bg);padding:4px 10px;border-radius:var(--rounded);display:inline-flex;align-items:center;justify-content:center}
@keyframes blinker{50%{opacity:.55}}
.AY_Match.live{--stat-bg:#d00000}
.AY_Match.live .MT_Stat{animation:blinker 1s ease-in-out infinite}
.AY_Match.finished{--stat-bg:#474747}
.AY_Match.comming-soon{--stat-bg:#0039a6}
.AY_Match.not-started{--stat-bg:#263545}
.MT_Info{border-top:1px solid var(--Gray2);width:100%}
.MT_Info ul{display:flex;align-items:center}
.MT_Info li{flex:1;font-size:13px;padding:6px 5px}
.MT_Info li span{display:inline-block}
.MT_Info li.tv::before{content:"📺 "}
.MT_Info li.com::before{content:"🎙️ "}
.MT_Info li.lg::before{content:"🏆 "}
a.match-card-link{display:block;color:inherit}
.no-data__msg,.matches-loading,.no-matches{min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#777;width:100%}
.Night .no-data__msg,.Night .matches-loading,.Night .no-matches{color:#9fb0c2}
.loading-spinner{width:42px;height:42px;border:4px solid var(--Gray2);border-top-color:var(--main_color);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.no-matches-icon{font-size:38px}

/* ===== Generic cards grid (competitors + worldcup) ===== */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;padding:12px}
.info-card{background:var(--match-bg);border-radius:var(--rounded);padding:14px;border:1px solid var(--Gray2);position:relative;overflow:hidden}
.info-card::before{content:"";position:absolute;top:0;right:0;width:4px;height:100%;background:var(--main_color)}
.info-card h3{font-size:16px;margin-bottom:6px;color:var(--main_color);font-weight:800}
.Night .info-card h3{color:#5b9bff}
.info-card p{font-size:13.5px;line-height:1.8;color:var(--cop_color)}
.Night .info-card p{color:#cdd8e4}
.info-card .badge{display:inline-block;font-size:11px;background:var(--main_color);color:#fff;border-radius:12px;padding:2px 9px;margin-bottom:8px}
.wc-card::before{background:#0a8f3c}
.wc-card h3{color:#0a8f3c}
.Night .wc-card h3{color:#34d36e}
.wc-card .badge{background:#0a8f3c}

/* ===== Description / SEO ===== */
.description{padding:0}
.description .inner{padding:16px}
.description h2{font-size:19px;margin-bottom:8px;color:var(--main_color)}
.Night .description h2{color:#5b9bff}
.description h3{font-size:16px;margin:14px 0 4px}
.description p{font-size:14.5px;line-height:1.9;margin-bottom:6px}

/* ===== Internal links grid ===== */
.pages-section{padding:0}
.pages-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;padding:16px}
.page-link{display:block;background:var(--match-bg);border:1px solid var(--Gray2);border-radius:var(--rounded);padding:9px 11px;font-size:13.5px;font-weight:600;text-align:center;transition:.25s}
.page-link:hover{background:var(--main_color);color:#fff;border-color:var(--main_color)}
.page-link[aria-current="page"]{background:var(--main_color);color:#fff;border-color:var(--main_color)}

/* ===== Page content (about/contact/dmca) ===== */
.page-content{padding:18px}
.page-content h1{font-size:22px;margin-bottom:10px;color:var(--main_color)}
.page-content h2{font-size:17px;margin:14px 0 4px}
.page-content p{font-size:14.5px;line-height:1.9;margin-bottom:8px}
.page-content a{color:var(--main_color);text-decoration:underline}

/* ===== Footer ===== */
#AYaFooter{margin-top:15px;width:100%;box-shadow:0 0 4px var(--bk-shadow)}
.FW-Area{background:var(--footer_bd);width:100%}
.FWidget{width:25%;padding:20px 12px}
.FWidget.no-items{padding:0}
.FW-Title{margin-bottom:10px;position:relative}
.FW-Title::before{background:var(--main_color);content:"";height:3px;position:absolute;width:23px;bottom:-1.5px}
.FW-Title .title{border-bottom:1px solid var(--footer_border);padding-bottom:8px;font-weight:700;font-size:16px;display:inline-block}
.FW-Area li a{color:var(--footer_color);display:block;font-size:14px;line-height:33px}
.Night .FW-Area li a{color:#cdd8e4}
.FW-Area li a:hover{color:var(--main_color)}
.AYa-SiteInfo .SnfoInner{background:var(--cop_bd);color:var(--cop_color);padding:18px 0}
.AYa-SiteInfo .SnfoInner .container{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.AYa-SiteInfo ul{display:flex;flex-wrap:wrap;gap:4px 14px}
.AYa-SiteInfo li a{font-size:13px}
.cp-text{font-size:13px}

/* ===== Mobile nav ===== */
.SiteOverlay{position:fixed;inset:0;z-index:50;opacity:0;visibility:hidden;transition:.2s;background:rgba(0,0,0,.8)}
html.OpenMenu .SiteOverlay{visibility:visible;opacity:1}
html.OpenMenu,html.OpenMenu>body{overflow:hidden}
.CloseNave{display:none}

@media(min-width:1001px){
  .AYaLogo{margin:8px 0}
  .hed-btn.op,.CloseNave{display:none!important}
  .AYaMainNav{display:flex;align-items:center}
  .MainMenu{flex:1;display:flex;flex-wrap:wrap}
}
@media(max-width:1000px){
  .AYaLogo{margin:8px auto}
  .AYaMainNav{position:fixed;top:0;right:-300px;width:280px;height:100%;z-index:99;padding:60px 15px 15px;background:var(--LightColor);box-shadow:0 1px 6px rgba(32,33,36,.4);transition:right .5s;overflow-y:auto}
  html.OpenMenu .AYaMainNav{right:0}
  .MainMenu li{width:100%;margin-bottom:12px}
  .MainMenu li a{background:var(--DarkColor);color:#fff;padding:8px 12px;border-radius:var(--rounded)}
  .CloseNave{display:block;position:absolute;top:16px;left:16px;width:26px;height:26px;cursor:pointer}
  .CloseNave::before,.CloseNave::after{content:"";position:absolute;top:12px;left:0;width:26px;height:3px;background:var(--header_color)}
  .Night .CloseNave::before,.Night .CloseNave::after{background:#e7ecf3}
  .CloseNave::before{transform:rotate(45deg)}
  .CloseNave::after{transform:rotate(-45deg)}
}
@media(max-width:560px){
  :root{--pad:8px}
  .AYaLogo .SiteName{font-size:23px}
  .TM_Logo img,.logo-placeholder{width:52px;height:52px}
  .MT_Team{flex-direction:column!important}
  .MT_Team.TM2{flex-direction:column!important}
  .TM_Logo{width:100%}
  .TM_Name{font-size:13px}
  .MT_Info li.com{display:none}
  .MT_Info li{font-size:12px;padding:5px 3px}
  .FWidget{width:50%}
}
@media(max-width:420px){.FWidget{width:100%}}
