:root{
    --bg:#0F1411; --surface:#18211C; --surface-2:#1F2A24; --border:#28352E;
    --text:#E9EFEB; --muted:#8FA098; --faint:#5E6E66;
    --live:#22C55E; --live-soft:rgba(34,197,94,.14);
    --score:#FBBF24; --danger:#F04848; --warn:#EAB308;
    --shadow:0 1px 0 rgba(255,255,255,.02), 0 8px 24px -12px rgba(0,0,0,.6);
    --radius:14px;
  }
  [data-theme="light"]{
    --bg:#EEF2EF; --surface:#FFFFFF; --surface-2:#F3F6F4; --border:#DCE4DF;
    --text:#132018; --muted:#5A6b62; --faint:#93A199;
    --live:#12A150; --live-soft:rgba(18,161,80,.12);
    --score:#B26A00; --danger:#D22B2B; --warn:#B7791F;
    --shadow:0 1px 2px rgba(0,0,0,.04), 0 10px 24px -14px rgba(0,0,0,.18);
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html,body{scroll-behavior:smooth}
  body{font-family:'Cairo',system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;transition:background .3s,color .3s}
  a{color:inherit;text-decoration:none}
  .wrap{max-width:1080px;margin:0 auto;padding:0 16px}

  /* Header */
  header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}
  .bar{display:flex;align-items:center;gap:14px;height:60px}
  .logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:19px;letter-spacing:-.3px}
  .logo .mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,var(--live),#0e8a42);color:#fff;font-size:18px;box-shadow:0 6px 16px -6px var(--live)}
  .logo b{color:var(--live)}
  .spacer{flex:1}
  .icon-btn{width:38px;height:38px;border-radius:11px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;display:grid;place-items:center;font-size:16px;transition:.2s}
  .icon-btn:hover{background:var(--surface-2);border-color:var(--live)}
  nav.tabs{display:flex;gap:4px;overflow-x:auto;padding:6px 0 10px;scrollbar-width:none}
  nav.tabs::-webkit-scrollbar{display:none}
  .tab{white-space:nowrap;padding:8px 16px;border-radius:999px;font-weight:700;font-size:14px;color:var(--muted);cursor:pointer;border:1px solid transparent;transition:.2s;background:none;display:flex;align-items:center;gap:6px}
  .tab:hover{color:var(--text)}
  .tab.active{background:var(--live-soft);color:var(--live);border-color:color-mix(in srgb,var(--live) 40%,transparent)}
  .tab .cnt{font-size:11px;background:var(--live);color:#04170c;border-radius:999px;padding:0 6px;font-weight:800;min-width:18px;text-align:center}

  /* Sections & headings */
  .view{padding:18px 0}
  .sec-head{display:flex;align-items:center;gap:10px;margin:6px 0 14px}
  .sec-head h2{font-size:17px;font-weight:800}
  .sec-head .line{flex:1;height:1px;background:var(--border)}
  .pulse{position:relative;width:9px;height:9px;border-radius:50%;background:var(--live);flex:none}
  .pulse::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--live);animation:ping 1.6s cubic-bezier(0,0,.2,1) infinite}
  @keyframes ping{0%{transform:scale(1);opacity:.7}70%,100%{transform:scale(3.2);opacity:0}}

  /* Live rail */
  .rail{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
  .rail::-webkit-scrollbar{display:none}
  .live-card{flex:0 0 240px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);position:relative;overflow:hidden;cursor:pointer}
  .live-card:hover{border-color:var(--live)}
  .live-card::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--live)}
  .lc-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
  .minute{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--live)}
  .lg-tag{font-size:11px;color:var(--faint);font-weight:600;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .team-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0}
  .team{display:flex;align-items:center;gap:9px;min-width:0}
  .crest{width:26px;height:26px;border-radius:7px;flex:none;display:grid;place-items:center;font-weight:800;font-size:11px;color:#fff;overflow:hidden}
  .crest img{width:100%;height:100%;object-fit:contain}
  .team .nm{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .goals{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--score);min-width:22px;text-align:center}
  .goals.flash{animation:goalflash .9s ease}
  @keyframes goalflash{0%{transform:scale(1)}30%{transform:scale(1.6);color:var(--live)}100%{transform:scale(1)}}

  /* Date navigator */
  .datenav{display:flex;align-items:center;gap:8px;margin-bottom:14px;flex-wrap:wrap}
  .datenav .nav-a{width:36px;height:36px;border-radius:10px;border:1px solid var(--border);background:var(--surface);display:grid;place-items:center;cursor:pointer;font-size:15px}
  .datenav .nav-a:hover{border-color:var(--live)}
  .quick{display:flex;gap:6px}
  .chip{padding:7px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-weight:700;font-size:13px;cursor:pointer;color:var(--muted)}
  .chip.active{background:var(--live-soft);color:var(--live);border-color:color-mix(in srgb,var(--live) 40%,transparent)}
  .datenav .cur{font-weight:800;font-size:15px;margin-inline-start:auto}
  .datenav input[type=date]{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:10px;padding:6px 10px;font-family:inherit;cursor:pointer}

  /* Fixtures list */
  .league-block{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:14px;box-shadow:var(--shadow)}
  .league-hd{display:flex;align-items:center;gap:10px;padding:12px 15px;background:var(--surface-2);border-bottom:1px solid var(--border)}
  .league-hd .flag{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;font-size:12px;background:var(--bg)}
  .league-hd .lname{font-weight:700;font-size:14px}
  .league-hd .lcountry{font-size:12px;color:var(--muted)}
  .league-hd .go{margin-inline-start:auto;font-size:12px;color:var(--live);font-weight:700}
  .fixture{display:grid;grid-template-columns:52px 1fr auto 1fr;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s}
  .fixture:last-child{border-bottom:none}
  .fixture:hover{background:var(--surface-2)}
  .fx-time{font-size:12px;font-weight:700;color:var(--muted);text-align:center;line-height:1.35}
  .fx-time.live{color:var(--live);display:flex;align-items:center;justify-content:center;gap:5px}
  .fx-time .ft{color:var(--faint)}
  .fx-home{display:flex;align-items:center;gap:9px;justify-content:flex-start}
  .fx-away{display:flex;align-items:center;gap:9px;justify-content:flex-end;flex-direction:row-reverse}
  .fx-home .nm,.fx-away .nm{font-size:14px;font-weight:600}
  .fx-score{font-variant-numeric:tabular-nums;font-weight:800;font-size:16px;background:var(--bg);border:1px solid var(--border);border-radius:9px;padding:3px 10px;min-width:46px;text-align:center}
  .fx-score.upcoming{color:var(--faint);font-weight:600}
  .fx-score.live-sc{color:var(--score);border-color:color-mix(in srgb,var(--live) 45%,transparent)}

  /* Generic cards / tabs */
  .subtabs{display:flex;gap:6px;margin-bottom:14px}
  .subtab{padding:8px 18px;border-radius:10px;border:1px solid var(--border);background:var(--surface);font-weight:700;font-size:14px;cursor:pointer;color:var(--muted)}
  .subtab.active{background:var(--live-soft);color:var(--live);border-color:color-mix(in srgb,var(--live) 40%,transparent)}
  .panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
  .backbar{display:flex;align-items:center;gap:10px;margin-bottom:14px}
  .back{display:flex;align-items:center;gap:6px;padding:7px 14px;border-radius:10px;border:1px solid var(--border);background:var(--surface);cursor:pointer;font-weight:700;font-size:13px}
  .back:hover{border-color:var(--live)}

  /* Standings table */
  .tbl-wrap{overflow-x:auto}
  table.stand{width:100%;border-collapse:collapse;font-size:13px;min-width:560px}
  table.stand th,table.stand td{padding:11px 8px;text-align:center;border-bottom:1px solid var(--border);white-space:nowrap}
  table.stand th{background:var(--surface-2);color:var(--muted);font-weight:700;font-size:12px}
  table.stand td.team-c{text-align:start;font-weight:700}
  table.stand .tc{display:flex;align-items:center;gap:9px}
  table.stand .tc img{width:22px;height:22px;object-fit:contain}
  table.stand .rk{width:26px;height:26px;border-radius:7px;display:inline-grid;place-items:center;font-weight:800;background:var(--bg);font-size:12px}
  table.stand .pts{font-weight:800;color:var(--score)}
  .form{display:flex;gap:3px;justify-content:center}
  .form span{width:16px;height:16px;border-radius:5px;font-size:10px;font-weight:800;display:grid;place-items:center;color:#fff}
  .form .W{background:var(--live)} .form .D{background:var(--faint)} .form .L{background:var(--danger)}

  /* Scorers */
  .scorer{display:grid;grid-template-columns:34px 42px 1fr auto;align-items:center;gap:12px;padding:11px 15px;border-bottom:1px solid var(--border)}
  .scorer:last-child{border-bottom:none}
  .scorer .rk{font-weight:800;color:var(--muted);text-align:center}
  .scorer .ph{width:42px;height:42px;border-radius:50%;object-fit:cover;background:var(--surface-2)}
  .scorer .pn{font-weight:700;font-size:14px}
  .scorer .pt{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
  .scorer .pt img{width:16px;height:16px;object-fit:contain}
  .scorer .gv{font-weight:800;font-size:18px;color:var(--score);text-align:center}
  .scorer .gv small{display:block;font-size:10px;color:var(--faint);font-weight:600}

  /* Match detail */
  .mh{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 16px;margin-bottom:16px}
  .mh .lg{text-align:center;font-size:12px;color:var(--muted);margin-bottom:14px}
  .mh .score-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
  .mh .mt{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0}
  .mh .mt img{width:58px;height:58px;object-fit:contain}
  .mh .mt .nm{font-weight:800;font-size:15px;text-align:center}
  .mh .mid{text-align:center;min-width:90px}
  .mh .sc{font-size:34px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:2px}
  .mh .st{font-size:12px;font-weight:700;margin-top:2px}
  .mh .st.live{color:var(--live)} .mh .st.fin{color:var(--faint)} .mh .st.up{color:var(--muted)}

  .ev{display:grid;grid-template-columns:1fr 54px 1fr;align-items:center;gap:8px;padding:9px 6px;border-bottom:1px dashed var(--border)}
  .ev:last-child{border-bottom:none}
  .ev-side{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0}
  .ev-side.h{justify-content:flex-start}
  .ev-side.a{justify-content:flex-end;flex-direction:row-reverse;text-align:left}
  .ev-side .ico{font-size:15px}
  .ev-side .pl{font-weight:700}
  .ev-side .as{font-size:11px;color:var(--muted)}
  .ev .min{text-align:center;font-weight:800;font-size:12px;color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:2px 0}

  .lu{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .lu .col h4{font-size:14px;margin-bottom:4px;display:flex;align-items:center;gap:8px}
  .lu .fm{font-size:12px;color:var(--live);font-weight:700;margin-bottom:8px}
  .lu .pl-row{display:flex;align-items:center;gap:9px;padding:6px 4px;border-bottom:1px solid var(--border);font-size:13px}
  .lu .num{width:24px;height:24px;border-radius:6px;background:var(--bg);display:grid;place-items:center;font-weight:800;font-size:11px;color:var(--muted);flex:none}
  .lu .subs-t{font-size:12px;color:var(--faint);margin:10px 0 4px;font-weight:700}
  .lu .coach{margin-top:10px;font-size:12px;color:var(--muted)}

  .stat{padding:10px 0;border-bottom:1px solid var(--border)}
  .stat:last-child{border-bottom:none}
  .stat-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:6px}
  .stat-top b{font-weight:800;font-variant-numeric:tabular-nums;min-width:44px}
  .stat-top b:last-child{text-align:left}
  .stat-top span{color:var(--muted);font-weight:600}
  .stat-bar{height:7px;border-radius:5px;overflow:hidden;display:flex;background:var(--surface-2)}
  .stat-bar i{height:100%}
  .stat-bar i.h{background:var(--live)} .stat-bar i.a{background:var(--faint)}

  /* News */
  .news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
  .article{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,border-color .2s;cursor:pointer;color:inherit}
  .article:hover{transform:translateY(-3px);border-color:var(--live)}
  .art-cover{height:150px;position:relative;display:grid;place-items:center;color:#fff;font-size:34px;font-weight:800}
  .art-cat{position:absolute;top:10px;inset-inline-end:10px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px;backdrop-filter:blur(4px)}
  .art-body{padding:14px}
  .art-body h3{font-size:15px;font-weight:700;line-height:1.5;margin-bottom:7px}
  .art-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
  .art-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--faint)}

  /* Leagues hub */
  .lg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
  .lg-card{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;cursor:pointer;box-shadow:var(--shadow);transition:.2s}
  .lg-card:hover{border-color:var(--live);transform:translateY(-2px)}
  .lg-card .lf{width:40px;height:40px;border-radius:10px;background:var(--bg);display:grid;place-items:center;font-size:20px}
  .lg-card .lt{font-weight:800;font-size:15px}
  .lg-card .lc{font-size:12px;color:var(--muted)}

  footer{border-top:1px solid var(--border);margin-top:20px;padding:24px 0;color:var(--muted);font-size:13px;text-align:center}
  footer b{color:var(--live)}
  #apiBanner{background:var(--live-soft);color:var(--live);border:1px solid color-mix(in srgb,var(--live) 40%,transparent);border-radius:12px;padding:11px 15px;margin:14px 0 0;font-size:13px;font-weight:700;text-align:center}
  #apiBanner.err{background:rgba(240,72,72,.12);color:var(--danger);border-color:color-mix(in srgb,var(--danger) 40%,transparent)}
  .updated{font-size:11px;color:var(--faint);text-align:center;padding:8px 0 2px}
  .updated .dotlive{color:var(--live);font-weight:700}
  .empty{padding:30px 16px;text-align:center;color:var(--muted);font-size:14px}
  .skel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);height:74px;margin-bottom:12px;position:relative;overflow:hidden}
  .skel::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--surface-2) 70%,transparent),transparent);animation:sweep 1.2s infinite}
  @keyframes sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}

  /* Toasts */
  #toasts{position:fixed;bottom:20px;inset-inline-start:20px;z-index:100;display:flex;flex-direction:column;gap:10px}
  .toast{background:var(--surface);border:1px solid var(--live);border-inline-start:4px solid var(--live);border-radius:12px;padding:12px 16px;min-width:250px;box-shadow:0 12px 30px -10px rgba(0,0,0,.5);display:flex;align-items:center;gap:12px;animation:toastin .4s cubic-bezier(.2,.8,.2,1)}
  @keyframes toastin{from{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}
  .toast .ball{font-size:22px;animation:spin .8s ease}
  @keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
  .toast .t-txt b{color:var(--live);display:block;font-size:14px}
  .toast .t-txt span{font-size:13px;color:var(--muted)}

  .hidden{display:none !important}
  @media(max-width:640px){
    .fixture{grid-template-columns:46px 1fr auto 1fr;gap:6px;padding:12px 12px}
    .fx-home .nm,.fx-away .nm{font-size:13px}
    .lu{grid-template-columns:1fr}
    .mh .mt img{width:48px;height:48px}
    .mh .sc{font-size:28px}
  }
  @media(prefers-reduced-motion:reduce){*{animation:none !important}}

  /* Footer nav + static pages + cookie bar */
  .fnav{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;margin-bottom:14px}
  .fnav a{color:var(--muted);font-weight:700}
  .fnav a:hover{color:var(--live)}
  .page{padding:22px 20px;line-height:1.9}
  .page h3{font-size:16px;margin:16px 0 6px;color:var(--live)}
  .page p,.page li{font-size:14px}
  .page ul{padding-inline-start:20px;margin:6px 0}
  .page .lead{color:var(--muted);margin-bottom:14px}
  .page .note{margin-top:16px;font-size:12px;color:var(--faint);border-top:1px dashed var(--border);padding-top:12px}
  .page a{color:var(--live);font-weight:700}
  .contact form{display:flex;flex-direction:column;gap:12px;max-width:520px}
  .contact label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:13px}
  .contact input,.contact textarea{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:10px 12px;color:var(--text);font-family:inherit;font-size:14px}
  .contact input:focus,.contact textarea:focus{outline:none;border-color:var(--live)}
  .btn{background:var(--live);color:#04170c;border:none;border-radius:10px;padding:11px 20px;font-weight:800;font-size:14px;cursor:pointer;font-family:inherit;align-self:flex-start}
  .btn.sm{padding:8px 16px}
  .btn:hover{filter:brightness(1.08)}
  .btn:disabled{opacity:.6;cursor:default}
  .fmsg{font-size:13px;font-weight:700;min-height:18px}
  .fmsg.ok{color:var(--live)} .fmsg.err{color:var(--danger)}
  .cookiebar{position:fixed;bottom:0;inset-inline:0;z-index:120;background:var(--surface);border-top:1px solid var(--border);padding:13px 16px;display:flex;align-items:center;gap:14px;justify-content:center;flex-wrap:wrap;box-shadow:0 -8px 24px -12px rgba(0,0,0,.5)}
  .cookiebar span{font-size:13px;color:var(--muted)}
  .cookiebar a{color:var(--live);font-weight:700}

  /* Player stars */
  .stars-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
  .star-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 10px;text-align:center;box-shadow:var(--shadow);transition:.2s}
  .star-card:hover{border-color:var(--live);transform:translateY(-3px)}
  .star-card img{width:84px;height:84px;border-radius:50%;object-fit:cover;background:var(--surface-2);margin-bottom:10px}
  .star-card .sn{font-weight:800;font-size:14px}
  .phead{display:flex;align-items:center;gap:16px;padding:18px 16px;margin-bottom:14px}
  .phead .pph{width:96px;height:96px;border-radius:50%;object-fit:cover;background:var(--surface-2);flex:none}
  .phead .pnm{font-size:22px;font-weight:900;letter-spacing:-.3px}
  .phead .pteam{display:flex;align-items:center;gap:8px;color:var(--muted);font-weight:700;margin-top:4px}
  .phead .pteam img{width:22px;height:22px;object-fit:contain}
  .phead .ppos{background:var(--live-soft);color:var(--live);border-radius:999px;padding:1px 10px;font-size:12px;margin-inline-start:4px}
  .phead .pseason{font-size:12px;color:var(--faint);margin-top:6px}
  .tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
  .tile{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px 8px;text-align:center;box-shadow:var(--shadow)}
  .tile .tv{font-size:22px;font-weight:900;color:var(--score);font-variant-numeric:tabular-nums}
  .tile .tl{font-size:12px;color:var(--muted);margin-top:2px}
  .ctitle{font-size:15px;font-weight:800;margin:18px 0 10px}
  .info-list{padding:6px 16px}
  .info-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--border);font-size:14px}
  .info-row:last-child{border-bottom:none}
  .info-row .ik{color:var(--muted);font-weight:600}
  .info-row .iv{font-weight:700}
  .comp-row{display:flex;align-items:center;gap:10px;padding:11px 15px;border-bottom:1px solid var(--border);font-size:13px}
  .comp-row:last-child{border-bottom:none}
  .comp-row img{width:22px;height:22px;object-fit:contain}
  .comp-row .cnm{font-weight:700}
  .comp-row .cst{margin-inline-start:auto;color:var(--muted)}
  .tr-row{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:10px;padding:11px 15px;border-bottom:1px solid var(--border)}
  .tr-row:last-child{border-bottom:none}
  .tr-year{font-weight:800;color:var(--live);font-size:13px}
  .tr-teams{display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap}
  .tr-teams .tr-arrow{color:var(--faint);margin:0 4px}
  .tr-type{font-size:12px;color:var(--muted);white-space:nowrap}
  .tro-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
  .tro{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;box-shadow:var(--shadow)}
  .tro.win{border-color:color-mix(in srgb,var(--score) 50%,transparent)}
  .tro .tro-t{font-weight:800;font-size:14px}
  .tro .tro-s{font-size:12px;color:var(--muted);margin-top:3px}
  .pnews-item{display:block;padding:12px 15px;border-bottom:1px solid var(--border)}
  .pnews-item:last-child{border-bottom:none}
  .pnews-item:hover{background:var(--surface-2)}
  .pnews-item .pn-t{font-weight:700;font-size:14px;line-height:1.5}
  .pnews-item .pn-m{font-size:12px;color:var(--muted);margin-top:3px}
  @media(max-width:640px){.tiles{grid-template-columns:repeat(2,1fr)}}

  /* Team squad + transfers */
  .squad-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
  .sq-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 8px;text-align:center;box-shadow:var(--shadow)}
  .sq-card img{width:60px;height:60px;border-radius:50%;object-fit:cover;background:var(--surface-2);margin-bottom:8px}
  .sq-card .sq-n{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sq-card .sq-m{font-size:11px;color:var(--muted);margin-top:2px}
  a.tc{color:inherit}
  a.tc:hover{color:var(--live)}
  .tdir{font-size:11px;font-weight:800;border-radius:999px;padding:1px 8px}
  .tdir.in{background:var(--live-soft);color:var(--live)}
  .tdir.out{background:rgba(240,72,72,.12);color:var(--danger)}
  .tr-teams span{font-size:13px}

  /* Blog post */
  .article.nolink{cursor:default}
  .article.nolink:hover{transform:none;border-color:var(--border)}
  .pnews-item.nolink{cursor:default}
  .pnews-item.nolink:hover{background:transparent}
  .post{padding:24px 22px;line-height:2}
  .post-cover{width:100%;max-height:360px;object-fit:cover;border-radius:12px;margin-bottom:18px;display:block}
  .post-h1{font-size:24px;font-weight:900;line-height:1.5;margin-bottom:8px}
  .post-meta{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;margin-bottom:18px;border-bottom:1px solid var(--border);padding-bottom:14px}
  .post-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--faint)}
  .post-body{font-size:15.5px}
  .post-body h2{font-size:18px;font-weight:800;margin:20px 0 8px;color:var(--live)}
  .post-body h3{font-size:16px;font-weight:700;margin:14px 0 6px}
  .post-body p{margin-bottom:12px}
  .post-body ul,.post-body ol{padding-inline-start:22px;margin-bottom:12px}
  .post-body li{margin-bottom:6px}
  .post-body a{color:var(--live);font-weight:700}
  .post-tags{margin-top:18px;display:flex;gap:8px;flex-wrap:wrap}
  .post-tags span{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:4px 12px;font-size:12px;font-weight:700}

  /* ============ Aesthetic polish ============ */
  header{position:sticky}
  header::before{content:"";position:absolute;inset-inline:0;top:0;height:3px;background:linear-gradient(90deg,var(--live),#0e8a42 40%,var(--score));opacity:.9}
  .logo{position:relative}
  h1,h2,h3{letter-spacing:-.2px}
  .sec-head h2{position:relative;padding-inline-start:12px}
  .sec-head h2::before{content:"";position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);width:4px;height:16px;border-radius:3px;background:linear-gradient(var(--live),#0e8a42)}
  .sec-head.sm h2{font-size:15px}
  .see-all{margin-inline-start:auto;font-size:12px;font-weight:800;color:var(--live);white-space:nowrap}
  .see-all:hover{filter:brightness(1.15)}
  .empty.sm{padding:16px 10px;font-size:13px}

  /* ============ Home dashboard ============ */
  .home{padding-top:20px}
  .home-hero{display:grid;grid-template-columns:1.7fr 1fr;gap:16px;margin-bottom:20px}
  .feature-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);cursor:pointer;transition:transform .2s,border-color .2s;color:inherit;min-height:340px}
  .feature-card:hover{transform:translateY(-3px);border-color:var(--live)}
  .feature-card .fc-media{position:relative;flex:1;min-height:210px;background:linear-gradient(135deg,#1560BD,#0e8a42);overflow:hidden}
  .feature-card .fc-media img{width:100%;height:100%;object-fit:cover}
  .feature-card .fc-badge{position:absolute;top:14px;inset-inline-start:14px;background:var(--live);color:#04170c;font-size:12px;font-weight:800;padding:4px 14px;border-radius:999px;box-shadow:0 6px 16px -6px var(--live)}
  .feature-card .fc-body{padding:18px 18px 20px}
  .feature-card .fc-body h2{font-size:21px;font-weight:900;line-height:1.5;margin-bottom:8px}
  .feature-card .fc-body p{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .home-live{padding:16px}
  .home-live .sec-head{margin:0 0 12px}
  .live-mini{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
  .live-mini-row{display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--border);border-radius:11px;padding:9px 11px;font-size:13px;cursor:pointer;transition:border-color .15s}
  .live-mini-row:hover{border-color:var(--live)}
  .live-mini-row .lm-min{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:800;color:var(--live)}
  .live-mini-row .lm-t{display:flex;align-items:center;gap:6px;min-width:0}
  .live-mini-row .lm-t .nm{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
  .live-mini-row .lm-sc{font-weight:900;color:var(--score);font-variant-numeric:tabular-nums;font-size:14px}

  /* Ticker */
  .ticker{display:flex;align-items:stretch;gap:0;background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:22px;box-shadow:var(--shadow)}
  .ticker .tk-label{display:flex;align-items:center;gap:7px;background:linear-gradient(135deg,var(--live),#0e8a42);color:#04170c;font-weight:900;font-size:13px;padding:0 16px;white-space:nowrap;flex:none}
  .ticker .tk-label .pulse{background:#04170c}
  .ticker .tk-label .pulse::after{background:#04170c}
  .tk-track{display:flex;align-items:center;gap:0;white-space:nowrap;overflow:hidden;flex:1;-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
  .tk-track{animation:ticker 40s linear infinite}
  [dir=rtl] .tk-track{animation-direction:reverse}
  .ticker:hover .tk-track{animation-play-state:paused}
  @keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
  .tk-item{display:inline-flex;align-items:center;gap:14px;padding:11px 0;font-size:13px;font-weight:700;color:var(--text)}
  .tk-item:hover{color:var(--live)}
  .tk-item .tk-dot{color:var(--faint);padding:0 14px}

  .home-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:8px}
  .home-cols>section{min-width:0}
  .news-grid.mini{grid-template-columns:1fr 1fr}
  .news-grid.mini .art-cover{height:120px}
  .news-grid.mini .art-body{padding:12px}
  .news-grid.mini .art-body h3{font-size:14px}
  .art-ex{font-size:12.5px;color:var(--muted);margin:2px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6}

  @media(max-width:860px){
    .home-hero{grid-template-columns:1fr}
    .home-cols{grid-template-columns:1fr;gap:20px}
  }
  @media(max-width:560px){
    .news-grid.mini{grid-template-columns:1fr}
    .feature-card .fc-body h2{font-size:18px}
    .ticker .tk-label{padding:0 12px;font-size:12px}
  }