/* ============================================
   Sub-pages additional styles
   ============================================ */

/* Page container */
.page-wrap{max-width:1300px;margin:0 auto;padding:18px 20px;display:grid;grid-template-columns:1fr 308px;gap:16px;align-items:start}
.page-wrap.full{grid-template-columns:1fr}
.page-main{display:flex;flex-direction:column;gap:16px}
.page-side{display:flex;flex-direction:column;gap:16px}

/* Page header */
.page-hero{background:linear-gradient(135deg,#0f1a14,#101720);border:1px solid var(--border);border-radius:12px;padding:24px 28px;position:relative;overflow:hidden}
.page-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 90% 50%,rgba(192,255,0,.15),transparent 60%);pointer-events:none}
.page-hero h1{color:var(--white);font-family:var(--font-head);font-size:28px;font-weight:800;margin-bottom:6px;letter-spacing:.3px;position:relative;z-index:2}
.page-hero p{color:var(--text-2);font-size:14px;font-weight:400;position:relative;z-index:2}

/* Date picker */
.date-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:var(--bg-2);border:1px solid var(--border);border-radius:12px;padding:12px}
.date-btn{background:#162030;border:1px solid var(--border);color:#cbd5e1;padding:8px 14px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;transition:.15s;letter-spacing:.2px}
.date-btn:hover{border-color:var(--green);color:var(--green)}
.date-btn.on{background:var(--green);color:#0a0e14;border-color:var(--green);font-weight:700}
.date-input{background:#162030;border:1px solid var(--border);color:#cbd5e1;padding:8px 12px;border-radius:6px;font-size:13px;font-family:inherit;margin-left:auto;cursor:pointer;color-scheme:dark}
.refresh-btn{background:var(--green-soft);border:1px solid rgba(192,255,0,.3);color:var(--green);padding:8px 14px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-family:inherit}
.refresh-btn:hover{background:rgba(192,255,0,.18)}

/* League group */
.lg-group{background:var(--bg-2);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.lg-head{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#162030;border-bottom:1px solid var(--border)}
.lg-head img{width:24px;height:24px;border-radius:50%;background:#fff;padding:1px}
.lg-head h3{color:#fff;font-family:var(--font-head);font-size:14px;font-weight:600;letter-spacing:.2px}
.lg-head .country{color:var(--text-3);font-size:11px;margin-left:auto}
.lg-head .count{background:var(--green-soft);color:var(--green);padding:2px 9px;border-radius:12px;font-size:11px;font-weight:600;font-family:var(--font-num)}

/* Match row */
.m-row{display:grid;grid-template-columns:90px 1fr auto auto;gap:14px;padding:13px 16px;border-bottom:1px solid #15202d;align-items:center;transition:.15s;cursor:pointer}
.m-row:hover{background:#161e2a}
.m-row:last-child{border-bottom:none}
.m-time{font-family:var(--font-num);font-weight:600;color:#cbd5e1;font-size:13px;letter-spacing:.3px}
.m-teams{display:flex;flex-direction:column;gap:6px}
.m-team{display:flex;align-items:center;gap:10px;color:var(--text);font-size:13px;font-weight:500}
.m-team img{width:22px;height:22px;flex-shrink:0;border-radius:50%;background:#fff;padding:1px;object-fit:contain}
.m-score{display:flex;flex-direction:column;gap:6px;text-align:center;min-width:32px;font-family:var(--font-num);font-weight:700;color:#fff;font-size:14px}
.m-score .g0{opacity:.7}
.m-action{display:flex;align-items:center;gap:8px}

/* Status pills */
.status-pill{background:#1f2937;color:#9aa5b3;padding:4px 9px;border-radius:4px;font-size:10px;font-weight:600;font-family:var(--font-num);letter-spacing:.5px;white-space:nowrap;display:inline-block}
.status-pill.ft{background:#374151;color:#cbd5e1}
.status-pill.canc{background:#7f1d1d;color:#fecaca}

/* Standings table (full) */
.stand-full{background:var(--bg-2);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.stand-full table{width:100%;border-collapse:collapse}
.stand-full th{background:#162030;color:var(--text-3);font-size:11px;font-weight:500;text-align:left;padding:12px 8px;border-bottom:1px solid var(--border);letter-spacing:.3px}
.stand-full td{padding:12px 8px;border-bottom:1px solid #15202d;font-size:13px;color:var(--text);vertical-align:middle}
.stand-full tr:last-child td{border-bottom:none}
.stand-full tr:hover{background:#161e2a}
.stand-full td:first-child,.stand-full th:first-child{width:50px;text-align:center;font-family:var(--font-num);font-weight:700;padding-left:16px}
.stand-full td.team-name{display:flex;align-items:center;gap:10px;min-width:200px;font-weight:500}
.stand-full td.team-name img{width:24px;height:24px;background:#fff;border-radius:50%;padding:1px}
.stand-full th:nth-child(n+3),.stand-full td:nth-child(n+3){text-align:center;font-family:var(--font-num);width:46px}
.stand-full td:last-child{color:var(--green);font-weight:700}
.rank-cell{position:relative}
.rank-cell.cl::before{content:"";position:absolute;left:0;top:25%;width:3px;height:50%;background:var(--green);border-radius:0 2px 2px 0}
.rank-cell.uel::before{content:"";position:absolute;left:0;top:25%;width:3px;height:50%;background:#3b82f6;border-radius:0 2px 2px 0}
.rank-cell.rel::before{content:"";position:absolute;left:0;top:25%;width:3px;height:50%;background:var(--red);border-radius:0 2px 2px 0}

.legend{display:flex;gap:14px;flex-wrap:wrap;padding:12px 16px;background:#162030;color:var(--text-3);font-size:11px;border-top:1px solid var(--border)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:2px;display:inline-block}

/* League selector */
.league-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;flex-wrap:wrap}
.league-tab{background:#162030;border:1px solid var(--border);color:#cbd5e1;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;font-family:inherit;transition:.15s}
.league-tab:hover{border-color:var(--green);color:var(--green)}
.league-tab.on{background:var(--green);color:#0a0e14;border-color:var(--green);font-weight:700}
.league-tab img{width:18px;height:18px;border-radius:50%;background:#fff;padding:1px}

/* Tips cards */
.tips-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}
.tip-card{background:var(--bg-2);border:1px solid var(--border);border-radius:12px;padding:16px;transition:.15s}
.tip-card:hover{border-color:rgba(192,255,0,.4);transform:translateY(-2px)}
.tip-card .tc-head{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.tip-card .tc-head img{width:20px;height:20px;background:#fff;border-radius:50%;padding:1px}
.tip-card .tc-head .lg-name{flex:1;color:var(--text-2);font-size:12px;font-weight:500}
.tip-card .tc-head .tc-time{color:var(--text-3);font-family:var(--font-num);font-size:12px;font-weight:600}
.tip-card .tc-vs{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.tip-card .tc-team{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.tip-card .tc-team img{width:56px;height:56px;background:#fff;border-radius:50%;padding:4px;object-fit:contain;box-shadow:0 2px 8px rgba(0,0,0,0.4)}
.tip-card .tc-team b{color:#fff;font-size:13px;font-weight:600;font-family:var(--font-head);letter-spacing:.1px}
.tip-card .tc-vs-sep{color:var(--text-3);font-family:var(--font-head);font-size:14px;font-weight:700;letter-spacing:.5px}
.tip-card .tc-pred{background:#162030;border:1px solid var(--border);border-radius:8px;padding:10px 12px}
.tip-card .tc-pred-label{color:var(--text-3);font-size:11px;font-weight:500;margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px;font-family:var(--font-num)}
.tip-card .tc-pred-text{color:var(--green);font-size:14px;font-weight:700;font-family:var(--font-head)}
.tip-card .tc-pred-pct{display:flex;gap:6px;margin-top:8px}
.tip-card .pct-bar{flex:1;height:6px;border-radius:3px;background:#1f2937;overflow:hidden;position:relative}
.tip-card .pct-bar span{position:absolute;left:0;top:0;height:100%;background:var(--green)}
.tip-card .pct-row{display:flex;justify-content:space-between;margin-top:6px;color:var(--text-3);font-size:10px;font-family:var(--font-num)}
.tip-card .tc-pred-text{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tip-card .tc-pick{color:var(--green);font-size:15px;font-weight:800;font-family:var(--font-head);letter-spacing:.2px}
.tip-card .tc-conf{background:rgba(192,255,0,.12);border:1px solid rgba(192,255,0,.3);color:var(--green);padding:2px 8px;border-radius:6px;font-size:12px;font-family:var(--font-num);font-weight:700}
.tip-card .pct-source{margin-top:8px;padding-top:8px;border-top:1px dashed #233040;color:#8a99ad;font-size:10px;font-family:var(--font-num);letter-spacing:.2px;line-height:1.5}
.tip-card .pct-source b{color:#cbd5e1;font-weight:700}

/* News/Articles grid */
.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.news-card{background:var(--bg-2);border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:.15s;cursor:pointer}
.news-card:hover{border-color:rgba(192,255,0,.4);transform:translateY(-2px)}
.news-img{aspect-ratio:16/10;background-size:cover;background-position:center;position:relative}
.news-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,rgba(0,0,0,.6))}
.news-cat{position:absolute;top:10px;left:10px;background:var(--green);color:#0a0e14;padding:4px 10px;border-radius:4px;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;z-index:2}
.news-body{padding:14px}
.news-body h4{color:#fff;font-family:var(--font-head);font-size:14px;font-weight:600;line-height:1.4;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-body p{color:var(--text-3);font-size:12px;line-height:1.5;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-meta{display:flex;justify-content:space-between;color:var(--text-3);font-size:11px;font-family:var(--font-num)}

/* Top scorers */
.scorers-list{display:flex;flex-direction:column}
.scorer{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #15202d;transition:.15s}
.scorer:hover{background:#161e2a}
.scorer:last-child{border-bottom:none}
.scorer .rank{width:28px;height:28px;background:#162030;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-family:var(--font-num);font-weight:700;font-size:13px;flex-shrink:0}
.scorer .rank.top1{background:linear-gradient(135deg,#fbbf24,#d97706);color:#0a0e14}
.scorer .rank.top2{background:linear-gradient(135deg,#cbd5e1,#94a3b8);color:#0a0e14}
.scorer .rank.top3{background:linear-gradient(135deg,#c2410c,#7c2d12);color:#fff}
.scorer-photo{width:42px;height:42px;border-radius:50%;flex-shrink:0;background:#162030;object-fit:cover;border:2px solid var(--border)}
.scorer-info{flex:1;min-width:0}
.scorer-info .name{color:#fff;font-weight:600;font-size:13px;font-family:var(--font-head)}
.scorer-info .team{display:flex;align-items:center;gap:6px;color:var(--text-3);font-size:11px;margin-top:2px}
.scorer-info .team img{width:14px;height:14px;background:#fff;border-radius:50%;padding:1px}
.scorer-goals{color:var(--green);font-family:var(--font-num);font-weight:800;font-size:18px;min-width:36px;text-align:right}
.scorer-goals small{color:var(--text-3);font-size:10px;font-weight:400;font-family:var(--font-body)}

/* Analysis specific */
.match-detail{background:var(--bg-2);border:1px solid var(--border);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:18px}
.md-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--border)}
.md-team{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.md-team img{width:64px;height:64px;background:#fff;border-radius:50%;padding:4px;object-fit:contain}
.md-team b{color:#fff;font-family:var(--font-head);font-size:16px;font-weight:700}
.md-mid{text-align:center;min-width:120px}
.md-mid .md-score{color:#fff;font-family:var(--font-num);font-size:40px;font-weight:800;line-height:1;letter-spacing:1px}
.md-mid .md-time{color:var(--text-3);font-family:var(--font-num);font-size:13px;margin-top:6px;font-weight:600}
.md-mid .md-league{color:var(--green);font-size:11px;margin-top:4px;font-weight:500}

.stat-bar{display:flex;align-items:center;gap:16px;margin:0}
.stat-bar .sv-l,.stat-bar .sv-r{color:#fff;font-family:var(--font-num);font-weight:700;min-width:44px;text-align:center;font-size:14px}
.stat-bar .sv-c{flex:1}
.stat-bar .sv-c .sv-label{text-align:center;color:var(--text-3);font-size:11px;margin-bottom:4px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;font-family:var(--font-num)}
.stat-bar .sv-bars{display:flex;height:8px;background:#1f2937;border-radius:4px;overflow:hidden}
.stat-bar .sv-l-bar{background:var(--green);height:100%;transition:width .5s}
.stat-bar .sv-r-bar{background:#3b82f6;height:100%;transition:width .5s;margin-left:auto}

/* Spinner / Empty */
.loading-state,.empty-state{padding:60px 20px;text-align:center;color:var(--text-3);font-size:14px}
.spinner{width:32px;height:32px;border:3px solid #1f2937;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 16px}
@keyframes spin{to{transform:rotate(360deg)}}

/* Section title */
.sec-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sec-title h2{color:#fff;font-family:var(--font-head);font-size:18px;font-weight:700;letter-spacing:.2px}
.sec-title a{color:var(--green);font-size:12px;font-weight:500}

/* Watch button column */
.watch-mini{background:var(--green);color:#0a0e14;border:none;padding:6px 12px;border-radius:6px;font-size:11px;font-weight:600;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;gap:4px}
.watch-mini:hover{background:var(--green-2)}

@media(max-width:1024px){
  .page-wrap{grid-template-columns:1fr}
  .m-row{grid-template-columns:80px 1fr auto auto;gap:10px}
}
@media(max-width:640px){
  .page-hero{padding:18px 20px}
  .page-hero h1{font-size:22px}
  .m-row{grid-template-columns:auto 1fr auto;gap:8px;padding:10px 12px}
  .m-row .m-action{grid-column:1/-1;justify-content:center;margin-top:4px}
  .news-grid{grid-template-columns:1fr}
  .league-tabs{flex-wrap:nowrap;overflow-x:auto}
}


/* === D-Polish: shared page upgrades === */
.page-hero {
  position: relative;
  margin: 16px 0 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(15,22,32,0.85) 0%, rgba(192,255,0,0.04) 100%);
  border: 1px solid rgba(192,255,0,0.1);
  border-radius: 14px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse at right, rgba(192,255,0,0.08), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.page-hero h1::before {
  content: "";
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #c0ff00, #a3d900);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(192,255,0,0.5);
}
.page-hero p {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 0;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

/* Sponsor — demote to inline + small */
body[data-page="tips"] .ufafox-banner,
body[data-page="predict"] .ufafox-banner,
body[data-page="analysis"] .ufafox-banner,
body[data-page="results"] .ufafox-banner,
body[data-page="fixtures"] .ufafox-banner,
body[data-page="odds"] .ufafox-banner,
body[data-page="standings"] .ufafox-banner,
body[data-page="compare"] .ufafox-banner,
body[data-page="bracket"] .ufafox-banner,
body[data-page="news"] .ufafox-banner,
body[data-page="articles"] .ufafox-banner,
body[data-page="highlights"] .ufafox-banner,
  body[data-page="live"] .ufafox-banner {
  padding: 4px !important;
  display: inline-block;
  border-radius: 10px;
}
body[data-page="tips"] .ufafox-banner img,
body[data-page="predict"] .ufafox-banner img,
body[data-page="analysis"] .ufafox-banner img,
body[data-page="results"] .ufafox-banner img,
body[data-page="fixtures"] .ufafox-banner img,
body[data-page="odds"] .ufafox-banner img,
body[data-page="standings"] .ufafox-banner img,
body[data-page="compare"] .ufafox-banner img,
body[data-page="bracket"] .ufafox-banner img,
body[data-page="news"] .ufafox-banner img,
body[data-page="articles"] .ufafox-banner img,
body[data-page="highlights"] .ufafox-banner img,
  body[data-page="live"] .ufafox-banner img {
  max-height: 80px !important;
  width: auto !important;
  border-radius: 7px;
}

/* Better loading skeleton */
.loading-state {
  padding: 60px 20px;
  text-align: center;
}
.loading-state .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(192,255,0,0.12);
  border-top-color: #c0ff00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
.loading-state p {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 0.4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* League filter chips polish */
.league-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 12px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.league-tabs::-webkit-scrollbar { display: none; }
.league-tab {
  flex-shrink: 0;
  background: rgba(15,22,32,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.league-tab:hover {
  border-color: rgba(192,255,0,0.3);
  color: #cbd5e1;
}
.league-tab.on {
  background: linear-gradient(135deg, rgba(192,255,0,0.18), rgba(192,255,0,0.04));
  border-color: rgba(192,255,0,0.5);
  color: #c0ff00;
  box-shadow: 0 4px 14px rgba(192,255,0,0.12);
}

/* === Premium tip card === */
.tip-card-v2 {
  background: linear-gradient(180deg, rgba(15,22,32,0.85), rgba(10,14,20,0.95));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.tip-card-v2::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(192,255,0,0.6), transparent);
}
.tip-card-v2:hover {
  transform: translateY(-2px);
  border-color: rgba(192,255,0,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.tip-card-v2 .tc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--text-3);
}
.tip-card-v2 .tc-head .league {
  font-weight: 600;
  color: #cbd5e1;
}
.tip-card-v2 .tc-head .time {
  background: rgba(192,255,0,0.1);
  color: #c0ff00;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 700;
}
.tip-card-v2 .tc-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.tip-card-v2 .tc-team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tip-card-v2 .tc-team.away { justify-content: flex-end; }
.tip-card-v2 .tc-team img { width: 52px; height: 52px; object-fit: contain; background:#fff; border-radius:50%; padding:4px; box-shadow:0 2px 8px rgba(0,0,0,0.4); }
.tip-card-v2 .tc-team b { font-size: 13px; color: #fff; font-weight: 600; }
.tip-card-v2 .tc-vs {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  padding: 0 8px;
}
.tip-card-v2 .tc-pred {
  background: rgba(192,255,0,0.06);
  border: 1px solid rgba(192,255,0,0.15);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.tip-card-v2 .tc-pred-label {
  font-size: 10px;
  color: #c0ff00;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-card-v2 .tc-pred-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.tip-card-v2 .tc-prob {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.tip-card-v2 .tc-prob-item {
  flex: 1;
  background: rgba(15,22,32,0.6);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.tip-card-v2 .tc-prob-item .label {
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 3px;
}
.tip-card-v2 .tc-prob-item .pct {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tip-card-v2 .tc-prob-item.home .pct { color: #c0ff00; }
.tip-card-v2 .tc-prob-item.draw .pct { color: #fbbf24; }
.tip-card-v2 .tc-prob-item.away .pct { color: #60a5fa; }

/* === AI Banner widget === */
.ai-widget {
  background: linear-gradient(135deg, #0d1117 0%, #131c28 100%);
  border: 1px solid rgba(192,255,0,0.2);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.ai-widget::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(192,255,0,0.15), transparent 70%);
  pointer-events: none;
}
.ai-widget .ai-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(192,255,0,0.2), rgba(192,255,0,0.05));
  border: 1px solid rgba(192,255,0,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(192,255,0,0.18);
}
.ai-widget .ai-body { flex: 1; }
.ai-widget .ai-body h4 {
  font-size: 14px;
  font-weight: 800;
  color: #c0ff00;
  margin: 0 0 4px;
  letter-spacing: 0.2px;
}
.ai-widget .ai-body p {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}
.ai-widget .ai-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.ai-widget .ai-stats > div {
  font-size: 11px;
  color: var(--text-3);
}
.ai-widget .ai-stats b {
  display: block;
  color: #c0ff00;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .page-hero { padding: 16px 16px; margin: 12px 0 14px; }
  .page-hero h1 { font-size: 18px; }
  .page-hero p { font-size: 11.5px; }
  .ai-widget { padding: 14px 16px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .ai-widget .ai-icon { width: 44px; height: 44px; font-size: 22px; }
  .tip-card-v2 { padding: 14px; }
  .tip-card-v2 .tc-team img { width: 28px; height: 28px; }
  .tip-card-v2 .tc-team b { font-size: 12px; }
}


/* === D-Final: news/articles/compare/bracket polish === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.news-card {
  background: linear-gradient(180deg, rgba(15,22,32,0.85), rgba(10,14,20,0.95));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.news-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(192,255,0,0.5), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192,255,0,0.25);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.news-card:hover::before { opacity: 1; }
.news-card .nc-img {
  aspect-ratio: 16/9;
  background: #0a0e14;
  position: relative;
  overflow: hidden;
}
.news-card .nc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.news-card:hover .nc-img img { transform: scale(1.05); }
.news-card .nc-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: #c0ff00;
  color: #0a0e14;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.news-card .nc-body {
  padding: 12px 14px 14px;
}
.news-card h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.news-card .nc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-3);
}
.news-card .nc-meta .views {
  color: #c0ff00;
  font-weight: 600;
}

/* Compare page picker polish */
.cmp-pickers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; max-width: 800px; margin: 20px auto; }
.cmp-vs { color: var(--text-3); font-size: 24px; font-weight: 800; font-family: var(--font-head); }
.cmp-picker { background: linear-gradient(180deg, rgba(15,22,32,0.85), rgba(10,14,20,0.95)); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 16px; min-height: 100px; display: flex; align-items: center; justify-content: center; position: relative; }
.cmp-picker.empty { border: 2px dashed rgba(192,255,0,0.2); color: var(--text-3); font-size: 13px; cursor: pointer; }
.cmp-picker.empty:hover { border-color: rgba(192,255,0,0.5); color: #c0ff00; }

/* Bracket round head */
.br-round-head {
  color: #c0ff00;
  font-family: var(--font-head);
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  background: rgba(192,255,0,0.06);
  border-radius: 6px;
  display: inline-block;
}
.br-match {
  background: linear-gradient(180deg, rgba(15,22,32,0.85), rgba(10,14,20,0.95));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.br-match:hover {
  border-color: rgba(192,255,0,0.3);
  transform: translateY(-1px);
}
.br-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  color: #cbd5e1;
}
.br-team.winner {
  color: #c0ff00;
  font-weight: 700;
}
.br-team .br-score {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

@media (max-width: 720px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-card .nc-body { padding: 10px 12px 12px; }
  .news-card h4 { font-size: 12px; min-height: 34px; }
  .cmp-pickers { grid-template-columns: 1fr; gap: 8px; }
  .cmp-vs { text-align: center; }
}

/* === MOBILE STANDINGS — hide unimportant columns < 720px === */
@media (max-width: 720px) {
  .stand-full { overflow-x: auto; }
  .stand-full table { min-width: 0; }
  .stand-full th:nth-child(3), .stand-full td:nth-child(3),
  .stand-full th:nth-child(5), .stand-full td:nth-child(5),
  .stand-full th:nth-child(6), .stand-full td:nth-child(6),
  .stand-full th:nth-child(7), .stand-full td:nth-child(7),
  .stand-full th:nth-child(8), .stand-full td:nth-child(8),
  .stand-full th:nth-child(9), .stand-full td:nth-child(9) { display: none; }
  .stand-full td:first-child, .stand-full th:first-child { width: 36px; padding-left: 8px; padding-right: 4px; }
  .stand-full td.team-name { min-width: 0; gap: 6px; font-size: 12px; }
  .stand-full td.team-name img { width: 20px; height: 20px; }
  .stand-full th, .stand-full td { padding: 10px 4px; font-size: 12px; }
  .stand-full th:nth-child(n+3), .stand-full td:nth-child(n+3) { width: auto; min-width: 36px; }
  .legend { flex-wrap: wrap; gap: 6px; font-size: 10px; }
}

/* === MOBILE MATCHES TABLE === */
@media (max-width: 720px) {
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl-wrap table { min-width: 480px; }
}
