/* =========================================================
   KOOORA Clone CSS (FULL - Basics Preserved)
   - Keeps ALL your core components (topbar/footer/days/matches/cards/header/tabs/etc.)
   - Removes dangerous duplicates (multiple :root / body / wrap / table rules) by MERGING safely
   - Fixes standings table layout on mobile: horizontal scroll INSIDE .tableWrap only
   ========================================================= */

/* ====== Base Tokens (MERGED from your 3 :root blocks) ====== */
:root{
  --brand:#f6b100;

  /* backgrounds */
  --bg:#f6f7fb;         /* was #fff in first block, but your UI uses the gray bg everywhere */
  --card:#ffffff;

  /* text */
  --text:#111827;
  --muted:#6b7280;

  /* lines */
  --border:#e5e7eb;
  --line:#e5e7eb;

  /* accents */
  --yellow:#fbbf24;
  --green:#16a34a;
  --orange:#f59e0b;

  /* effects */
  --shadow: 0 10px 22px rgba(0,0,0,.06);
  --radius:16px;        /* your first UI block used 16px */
}

*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{
  margin:0;
  background:#d48c00;
  color:#000;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Kufi Arabic","Noto Sans Arabic",sans-serif;
}
a{color:inherit;text-decoration:none}

/* =========================================================
   TOPBAR / FOOTER  (Preserved)
   ========================================================= */
.topbar{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--border)}
.topbar .wrap{max-width:1200px;margin:0 auto;padding:10px 14px;display:flex;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px}
.brand .logo{width:34px;height:34px;border-radius:10px;background:#2d7d00;display:grid;place-items:center;color:#fff;font-weight:900}
.nav{display:flex;flex-wrap:wrap;gap:14px;margin-inline-start:auto}
.nav a{padding:8px 10px;border-radius:10px;color:#fff;font-weight:600;background: #951a00;}
.nav a:hover{background:#f3f4f6}

.container{max-width:1200px;margin:0 auto;padding: 9px;}

.footer{border-top:1px solid var(--border);margin-top:24px;background:#000;color: white;}
.footer .wrap{max-width:100%;/*! margin:0 auto; *//*! padding:16px 14px; */display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;color:var(--muted);font-size:14px}
.footer .links{display:flex;gap:12px;flex-wrap:wrap}

@media (max-width:720px){
  .nav{gap:6px}
  .nav a{padding:7px 10px;}
}

/* =========================================================
   MAIN WRAP (MERGED: keep your 820 layout for pages that use it,
   but allow wide pages too when needed)
   ========================================================= */
.wrap{
  max-width:1120px;              /* wide default */
  /*! margin:0 auto; */
  padding:18px 12px 60px;
}

/* If you use .wrap on the "matches day" page and want tighter width, use .wrap.narrow in HTML */
.wrap.narrow{max-width:820px}

/* =========================================================
   DAYS STRIP (Preserved - this is what disappeared for you)
   ========================================================= */
.head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:10px}
h1{margin:0;font-size:18px;font-weight:900}

.days{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:8px 2px 14px;
  margin:0;
}
.day{
  flex:0 0 auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  min-width:92px;
  text-align:center;
  box-shadow:0 6px 14px rgba(0,0,0,.04);
  cursor:pointer;
  user-select:none;
}
.day strong{display:block;font-size:14px}
.day span{display:block;font-size:12px;color:var(--muted)}
.day.active{background:#fff7db;outline:2px solid rgba(251,191,36,.45);border-color:transparent}

/* =========================================================
   COMP + MATCH LIST (Preserved)
   ========================================================= */
.comp{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);margin:12px 0}
.compHead{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid var(--line);gap:10px}
.compA{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none;color:inherit}
.compLogo{width:26px;height:26px;border-radius:50%;border:1px solid var(--line);object-fit:contain;background:#fff;padding:3px}
.compTxt{min-width:0}
.compName{font-weight:900;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compArea{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.match{
  height:74px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px;
  border-bottom:1px solid #f1f2f6;
  background:#fff;
}
.match:last-child{border-bottom:0}

.side{display:flex;align-items:center;gap:10px;min-width:0}
.team{display:flex;align-items:center;gap:8px;min-width:0;text-decoration:none;color:inherit}
.crest{width:22px;height:22px;border-radius:50%;border:1px solid var(--line);background:#fff;object-fit:contain}
.tname{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}

.mid{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  z-index:2;
}

.scoreA,.scoreB{width:30px;text-align:center;font-weight:900}
.scoreBox{display:flex;align-items:center;gap:6px;background:rgba(251,191,36,.45);padding:6px 10px;border-radius:10px;font-weight:900;min-width:70px;justify-content:center}
.dash{opacity:.5}

.state{flex:0 0 auto;min-width:70px;font-weight:800;font-size:13px;text-align:center}
.state.live{color:var(--green)}
.state.ht{color:var(--orange)}
.state.end{color:var(--muted)}
.state.count{color:var(--green)}

.matchLink{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}

/* Filters */
.filters{display:flex;gap:10px;align-items:center;justify-content:flex-start;margin:10px 0 12px;flex-wrap:wrap}
.fbtn{background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 14px;font-weight:900;cursor:pointer;box-shadow:0 6px 14px rgba(0,0,0,.04)}
.fbtn.active{background:var(--yellow);border-color:transparent}

/* =========================================================
   CARDS / SIDE META (Preserved)
   ========================================================= */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:21px}
.side .card{padding:14px}
.side h3{margin:0 0 8px;font-size:18px}
.side .meta{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.side .meta:first-of-type{border-top:0}
.icon{width:18px;height:18px;opacity:.75}
.sideLink{display:block;padding:8px 0;font-weight:900;color:#111827}
.sideLink:hover{color:#0f172a}

/* =========================================================
   MATCH PAGE HEADER + TABS + CONTENT (Preserved)
   ========================================================= */
.header{padding:16px;overflow:hidden;position:relative}
.header:before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(135deg, rgba(0,0,0,0) 0 40%, rgba(0,0,0,.02) 40% 60%, rgba(0,0,0,0) 60% 100%);
  opacity:.7;pointer-events:none;
}
.hrow{position:relative;display:grid;grid-template-columns:1fr 160px 1fr;align-items:center;gap:10px}
.team.right{justify-content:flex-start}
.team.left{justify-content:flex-end}
.tlogo{width:44px;height:44px;border-radius:999px;background:#fff;border:1px solid var(--line);object-fit:contain}
.center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:62px;}
.status{font-weight:800;color:#a16207;min-height:22px;text-align:center}
.status.live{color:var(--green)}
.score{display:flex;align-items:center;justify-content:center;gap:14px;background:#3ffb249e;border-radius:12px;padding:9px 6px;min-width:127px;font-weight:900;font-size:20px;}
.score .sep{opacity:.6}
.substatus{font-size:13px;color:var(--muted);text-align:center;padding: 8px;}
.compbar{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:10px;padding:8px 12px}
.complogo{width:28px;height:28px;border-radius:999px;border:1px solid var(--line);background:#fff;object-fit:contain}
.compname{font-weight:800;color:#085ce3;}

.tabs{display:flex;gap:18px;padding:12px 16px;border-top:1px solid var(--line);flex-wrap:wrap}
.tab{padding:10px 6px;font-weight:800;color:#374151;position:relative}
.tab.active{color:#111827}
.tab.active:after{content:"";position:absolute;right:0;left:0;bottom:-12px;height:3px;background:#f59e0b;border-radius:999px}

.content{padding:20px 16px 20px;}

/* =========================================================
   Predictions / Events / Lineups / Commentary (Preserved core)
   ========================================================= */
.pred{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
@media(max-width:680px){.pred{grid-template-columns:1fr}}
.predbox{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}
.predtop{display:flex;align-items:center;justify-content:space-between;font-weight:900}
.predbar{height:6px;border-radius:999px;background:#eef2f7;margin-top:8px;overflow:hidden}
.predbar>div{height:100%;background:#111827;opacity:.7;border-radius:999px}

.evlist{display:flex;flex-direction:column;gap:10px}
.ev{display:grid;grid-template-columns:86px 1fr 44px;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff}
.minute{font-weight:900;color:#0f172a;text-align:right}
.evteam{display:flex;align-items:center;justify-content:center}
.evteam img{width:22px;height:22px;border-radius:50%;border:1px solid var(--line);background:#fff;object-fit:contain}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:4px 10px;border-radius:999px;background:#f3f4f6;color:#374151}
.bgoal{background:#ecfdf5;color:#065f46}
.byellow{background:#fffbeb;color:#92400e}
.bred{background:#fef2f2;color:#991b1b}
.bsub{background:#eff6ff;color:#1d4ed8}

.linegrid{display:grid;grid-template-columns:1fr 360px 1fr;gap:12px;align-items:start}
@media (max-width:980px){.linegrid{grid-template-columns:1fr}.pitch{order:1}}
.listbox{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}
.ply{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px dashed #eef2f7}
.ply:last-child{border-bottom:0}
.yc{width:10px;height:14px;border-radius:2px;background:#f59e0b;display:inline-block}
.rc{width:10px;height:14px;border-radius:2px;background:#ef4444;display:inline-block}

.pitch{position:relative;width:100%;aspect-ratio:3/4;border-radius:18px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#137a3c}

/* =========================================================
   TEAM PAGE + DARK MATCH CARDS (Preserved)
   ========================================================= */
.team-box{max-width:1100px;margin:auto}
.team-header{display:flex;align-items:center;gap:15px}
.team-header img{width:90px}

.team-stand-wrap{width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.team-stand{width:100%;min-width:680px;border-collapse:collapse;background:#fff;border-radius:15px}
.team-stand td,.team-stand th{padding:8px;border-bottom:1px solid #ddd}
.team-stand .me{background:#ffe400}

.team-players{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.player{background:#fff;padding:8px;text-align:center;border-radius:6px}

.sec-title{margin:18px 0 10px;font-size:20px;font-weight:800}
.team-matches.kooora-cards{display:flex;flex-direction:column;gap:10px}
.match-card{
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
}
.match-card .side{display:flex;align-items:center;gap:10px;width:40%;min-width:0}
.match-card .side.left{justify-content:flex-start}
.match-card .side.right{justify-content:flex-end;text-align:right}
.match-card .tname{color:#fff;font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.match-card .crest{width:22px;height:22px;object-fit:contain;flex:0 0 auto}
.match-card .mid{
  width:20%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  position:static;transform:none;left:auto;top:auto;
}
.match-card .pill{background:#111;border:1px solid rgba(255,255,255,.12);color:#fff;padding:6px 14px;border-radius:10px;font-weight:900;text-align:center}
.match-card .sub{color:rgba(255,255,255,.70);font-size:12px;font-weight:700}

/* Responsive helper for dark cards */
@media (max-width:520px){
  .match-card{padding:10px}
  .match-card .side{width:42%}
  .match-card .tname{font-size:13px}
  .match-card .mid{min-width:96px}
}

/* =========================================================
   STANDINGS TABLE (FIXED)  ✅  (This is your main issue)
   - No card conversion, just clean table + horizontal scroll
   ========================================================= */
.tableWrap{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}

/* IMPORTANT: keep table readable, do not let other "table{...}" rules break it */
.tableWrap table{
  width:100%;
  border-collapse:collapse;
  min-width:860px;          /* because you have many columns */
  table-layout:fixed;
}

.tableWrap thead th{
  position:sticky;
  top:0;
  background:#fff;
  z-index:2;
  border-bottom:1px solid #eef2f7;
  padding:10px 8px;
  font-size:12px;
  font-weight:1000;
  color:var(--muted);
  white-space:nowrap;
  text-align:center;
}

.tableWrap tbody td{
  border-bottom:1px solid #eef2f7;
  padding:10px 8px;
  font-size:12px;
  font-weight:900;
  color:var(--text);
  white-space:nowrap;
  text-align:center;
  vertical-align:middle;
}

.tableWrap tbody tr:hover{background:#fafafa}

.tableWrap .rk{width:44px;text-align:center}

/* Team cell inside table */
.tableWrap td:nth-child(2),
.tableWrap th:nth-child(2){text-align:right;width:260px}

.teamCell{display:flex;align-items:center;gap:10px;min-width:0}
.teamCell img{width:22px;height:22px;border-radius:999px;border:1px solid var(--line);background:#fff;object-fit:contain;flex:0 0 auto}
.teamCell span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.form{display:flex;gap:4px;align-items:center;justify-content:center}
.f{width:10px;height:10px;border-radius:999px;opacity:.95}
.fw{background:#22c55e}
.fd{background:#9ca3af}
.fl{background:#ef4444}

@media (max-width:820px){
  .tableWrap{border-radius:12px}
  .tableWrap table{min-width:760px}
  .tableWrap thead th{font-size:11px;padding:9px 6px}
  .tableWrap tbody td{font-size:11px;padding:9px 6px}
  .tableWrap td:nth-child(2),
  .tableWrap th:nth-child(2){width:230px}
  .teamCell span{max-width:170px}
}
@media (max-width:520px){
  .tableWrap table{min-width:720px}
  .teamCell span{max-width:140px}
}

/* =========================================================
   SAFETY: prevent old "sticky match-card" from breaking mobile
   ========================================================= */
.match-card{position:relative}

/* =========================================================
   END
   ========================================================= */


    .card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-top: 20px;}
    .cardHead{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line);gap:10px;}
    .cardHead h2{margin:0;font-size:16px;font-weight:1000}
    .pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}
    .pill.active{background:var(--yellow);border-color:transparent}
    .bodyPad{padding:12px 14px;}

    .teamsBar{margin-top:12px;background:#fff;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:28px;position:relative;overflow:hidden}
    .teamsRow{display:flex;gap:14px;overflow:auto;scroll-behavior:smooth;padding:6px 8px}
    .teamsRow::-webkit-scrollbar{height:8px}
    .teamsRow::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:999px}
    .tchip{flex:0 0 auto;min-width:88px;text-align:center}
    .tchip a{display:block}
    .tcrest{width:44px;height:44px;border-radius:999px;border:1px solid var(--line);background:#fff;object-fit:contain;padding:6px;box-shadow:0 6px 16px rgba(0,0,0,.08)}
    .tlabel{margin-top:6px;font-weight:1000;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:92px;color:#0f172a}
    .arrows{position:absolute;inset:0;pointer-events:none}
    .arr{pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);
         width:34px;height:34px;border-radius:999px;background:rgba(255,255,255,.92);
         border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
         box-shadow:0 10px 18px rgba(0,0,0,.10);cursor:pointer}
    .arr svg{width:18px;height:18px;opacity:.8; color: black;}
    .arr.l{left:10px}
    .arr.r{right:10px}

    .dateBlock{margin:10px 0 0;}
    .dateTitle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 8px}
    .dateTitle h3{margin:0;font-size:19px;font-weight:1000;color:#b70000;}
    .matchRow{
      position:relative;
      display:flex;align-items:center;justify-content:space-between;
      padding:12px 12px;border:1px solid #eef2f7;background:#fff;border-radius:14px;
      margin-bottom:10px;
	  height: 98px;
    }
    .side{display:flex;align-items:center;gap:10px;min-width:0}
    .team{display:flex;align-items:center;gap:8px;min-width:0}
    .crest{width:22px;height:22px;border-radius:50%;border:1px solid var(--line);background:#fff;object-fit:contain}
    .tname{font-size:16px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
    .mid{
      position:absolute;left:50%;top:50%;
      transform:translate(-50%,-50%);
      display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;z-index:2;
      min-width:110px;
    }
    .scoreBox{display:flex;align-items:center;gap:6px;background:rgba(63, 244, 12, 0.45);padding:6px 10px;border-radius:10px;font-weight:1000;min-width:76px;justify-content:center}
    .scoreA,.scoreB{width:30px;text-align:center;font-weight:1000}
    .dash{opacity:.55}
    .state{min-width:78px;text-align:center;font-weight:1000;font-size:12px}
    .state.live{color:var(--green)}
    .state.ht{color:var(--orange)}
    .state.end{color:var(--muted)}
    .state.count{color:var(--green)}
    .watch{
      margin-top:2px;
      display:inline-flex;align-items:center;gap:8px;
      font-weight:900;font-size:12px;color:#6b7280;
    }
    .watch .dot{width:6px;height:6px;border-radius:50%;background:#a78bfa;display:inline-block}


    .heroTop{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
    .compInfo{display:flex;align-items:center;gap:12px;min-width:0}
    .compLogo{width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#fff;object-fit:contain;padding:6px}
    .compTxt{min-width:0}
    .compName{font-weight:1000;font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .compArea{margin-top:2px;font-weight:800;color:rgba(255, 0, 0, 0.75);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .hint{position:relative;font-weight:900;font-size:12px;color:rgba(106, 102, 102, 0.8);}


	.pinfo{display:flex;gap:14px;align-items:center;min-width:260px}
.pimg{width:62px;height:62px;border-radius:14px;background:#e5e7eb;border:1px solid var(--line);object-fit:cover}
.pname{font-weight:900;font-size:18px;line-height:1.1;font-weight: bold;}
.psub{margin-top:4px;color:var(--muted);font-weight:800;font-size:13px;display:flex;align-items:center;gap:8px}
.flag{width:18px;height:18px;border-radius:999px;object-fit:cover;border:1px solid var(--line);background:#fff}
.club{display:flex;align-items:center;gap:10px;direction: initial;padding: 20px;}
.club img{width:28px;height:28px;border-radius:999px;border:1px solid var(--line);background:#fff;object-fit:cover}
.tabs{display:flex;gap:18px;padding:12px 18px;border-top:1px solid var(--line)}
.tab{padding:10px 6px;font-weight:900;color:#374151;position:relative}
.tab.active{color:#eeeff0;background: #086f00;border-radius: 10px;}
.tab.active:after{content:"";position:absolute;right:0;left:0;bottom:-12px;height:3px;background:var(--accent);border-radius:999px}
.grid{display:grid;grid-template-columns: 1fr; gap:14px; margin-top:14px}
.infoRow{display:grid;grid-template-columns: repeat(5,1fr);gap:10px;padding:14px}
@media (max-width: 900px){ .infoRow{grid-template-columns: repeat(2,1fr)} }
.info{border:1px solid var(--line);border-radius:14px;padding:10px 12px; background:#fff}
.info .k{color:var(--muted);font-size:12px;font-weight:900}
.info .v{margin-top:6px;font-weight:900}
.filters{display:flex;gap:10px;justify-content:flex-start;align-items:center;padding:10px 14px;flex-wrap:wrap}
select{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;font-weight:800}
.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f3f4f6;color:#374151;font-weight:900;font-size:12px}
.table{width:100%;border-collapse:separate;border-spacing:0 10px;padding:0 14px 16px}
.table th{color:var(--muted);font-size:12px;font-weight:900;text-align:right;padding:0 10px;white-space:nowrap}
.row{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.row td{padding:12px 10px;font-weight:800;vertical-align:middle}
.row td.small{color:var(--muted);font-weight:900;font-size:12px}
.tclub{display:flex;align-items:center;gap:10px;min-width:140px}
.tclub img{width:26px;height:26px;border-radius:999px;border:1px solid var(--line);object-fit:cover;background:#fff}
.sectionTitle{padding:14px 14px 0;font-weight:1000;font-size:18px}
.soft{color:var(--muted);font-weight:800;font-size:12px}
.ico{width:16px;height:16px;display:inline-block;vertical-align:-3px;opacity:.9}
.team-box{max-width:1100px;margin:auto}
.team-header{display:flex;align-items:center;gap:15px;margin: 10px;}
.team-header img{width:90px;background: white;padding: 5px;border-radius: 10px;}


   /* Lineups */
    .linegrid{display:grid; grid-template-columns: 1fr 360px 1fr; gap:12px; align-items:start}
    @media (max-width: 980px){ .linegrid{grid-template-columns:1fr} .pitch{order:1} }
    .listbox{padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff}
    .listbox h4{margin:0 0 10px; font-size:16px; display:flex; align-items:center; justify-content:space-between; gap:10px}
    .h4meta{display:flex;align-items:center;gap:8px;min-width:0}
    .h4meta img{width:20px;height:20px;border-radius:50%;border:1px solid var(--line);background:#fff;object-fit:contain}
    .ply{display:flex; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px dashed #eef2f7}
    .ply:last-child{border-bottom:0}
    .pn{font-weight:700;min-width:0}
    .pn a{font-weight:800}
    .pe{display:flex; gap:6px; align-items:center}
    .yc{width:10px; height:14px; border-radius:2px; background:#f59e0b; display:inline-block}
    .rc{width:10px; height:14px; border-radius:2px; background:#ef4444; display:inline-block}

    .pitch{position:relative; width:100%; aspect-ratio: 3/4; border-radius:18px; overflow:hidden; border:1px solid rgba(0,0,0,.08); background:#137a3c;}
    .pitch:before{
      content:""; position:absolute; inset:0;
      background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.16) 0 62px, rgba(255,255,255,0) 63px),
        linear-gradient(to right, rgba(255,255,255,.25) 0 2px, rgba(255,255,255,0) 2px 100%),
        linear-gradient(to bottom, rgba(255,255,255,.25) 0 2px, rgba(255,255,255,0) 2px 100%);
      opacity:.7;
      pointer-events:none;
    }
    .midline{position:absolute; left:0; right:0; top:50%; height:2px; background:rgba(255,255,255,.3)}
    .pen{position:absolute; left:18%; right:18%; top:0; height:22%; border:2px solid rgba(255,255,255,.35); border-top:0}
    .pen2{position:absolute; left:18%; right:18%; bottom:0; height:22%; border:2px solid rgba(255,255,255,.35); border-bottom:0}
    .pnode{position:absolute; transform:translate(-50%,-50%); width:28px; height:28px; border-radius:999px; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:12px; color:#111827; box-shadow:0 6px 14px rgba(0,0,0,.15)}
    .pnode.a{background:#fff}
    .pnode.b{background:#0f172a; color:#fff}

    /* Commentary */
    .comlist{display:flex;flex-direction:column;gap:10px}
    .comrow{display:grid;grid-template-columns:40px 1fr 74px;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}
    .comlogo{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;overflow:hidden}
    .comlogo img{width:28px;height:28px;object-fit:contain}
    .comrow .minute{justify-self:end;font-weight:900;color:#0f172a}
	/* =================== EVENTS TIMELINE =================== */
.evlist{
  position: relative;
  padding: 6px 0;
}

.evlist::before{
  content:"";
  position:absolute;
  top:8px;
  bottom:8px;
  right: 66px;          /* مكان خط التايم لاين (جنب الدقائق) */
  width:2px;
  background:#e5e7eb;
  border-radius:2px;
}

.ev{
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 34px; /* minute | card | crest */
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

.ev::after{
  content:"";
  position:absolute;
  right: 62px;          /* نقطة التايم لاين */
  width:10px;
  height:10px;
  border-radius:50%;
  background:#fff;
  border:2px solid #cbd5e1;
  top: 50%;
  transform: translateY(-50%);
}

.ev.sep{
  display:block;
  padding: 14px 0;
}
.ev.sep .evtxt{
  text-align:center;
  font-weight:900;
  color:#6b7280;
  border: 1px dashed #e5e7eb;
  background:#fafafa;
}

.minute{
  font-weight: 900;
  color:#111827;
  text-align: center;
  white-space: nowrap;
}

.evtxt{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px 12px;
  line-height: 1.6;
  box-shadow: 0 6px 18px rgba(17,24,39,.06);
}

.evteam img{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border:1px solid #e5e7eb;
}

/* =================== BADGES COLORS =================== */
.evicon{
  width:18px;
  height:18px;
  vertical-align: -3px;
  margin-left: 6px;
}

/* base badge */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid transparent;
  margin-left: 8px;
}

/* GOAL = green */
.bgoal{
  background: rgba(22,163,74,.12);
  color: #16a34a;
  border-color: rgba(22,163,74,.28);
}
.bgoal + .evicon, .bgoal ~ .evicon{ color:#16a34a; }

/* YELLOW CARD */
.byellow{
  background: rgba(245,158,11,.14);
  color: #b45309;
  border-color: rgba(245,158,11,.30);
}

/* RED CARD */
.bred{
  background: rgba(220,38,38,.12);
  color: #dc2626;
  border-color: rgba(220,38,38,.28);
}

/* SUB */
.bsub{
  background: rgba(59,130,246,.12);
  color: #2563eb;
  border-color: rgba(59,130,246,.26);
}

/* nicer player links inside events */
.evtxt a{
  font-weight: 900;
  color: inherit;
  text-decoration: none;
}
.evtxt a:hover{ text-decoration: underline; }



@media (max-width:620px){
  .match{padding:10px}
  .match .side{width:42%}
  .match .tname{font-size:13px;max-width: 142px;}
  .match .mid{min-width:96px}
  
  .scoreBox {

  padding: 5px 0px !important;;

  font-size: 10px;
}
  
  .compName {
  font-weight: 700;
  font-size: 14px;

}
  
  .tname {
  font-size: 16px;
  border-radius: 999px;

  max-width: 170px;
  overflow: hidden;
  font-size: 16px;
}
}




@media (max-width: 720px) {
  .nav a {
    padding: 7px 10px;
  }
}


@media (max-width: 420px) {
  .match .tname {
    font-size: 13px;
    max-width: 70px;
  }
}

