:root{
  --orange:#f97316; --orange-d:#ea580c; --orange-dd:#c2410c; --tint:#fff4ea; --tint2:#ffe6d1;
  --green:#16a34a; --green-d:#15803d; --gtint:#ecfdf3; --gtint2:#c9f0d8;
  --ink:#1c1917; --muted:#78716c; --bg:#faf7f4; --card:#fff; --line:#ece4dc;
  --font:"Plus Jakarta Sans","Segoe UI",Arial,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--font);background:var(--bg);color:var(--ink);line-height:1.5;font-size:15px}
a{color:inherit}
:focus-visible{outline:2px solid var(--orange-d);outline-offset:2px}
#site-nav{min-height:64px}

/* hero */
.hero{background:linear-gradient(135deg,#fb923c 0%,#f97316 45%,#ea580c 100%);color:#fff;padding:36px 16px 84px}
.hero-in{max-width:1040px;margin:auto}
.hero h1{font-size:34px;font-weight:800;line-height:1.15;letter-spacing:-.8px}
.hero p{font-size:15px;opacity:.92;margin-top:8px;max-width:480px}
.date-pill{display:inline-block;margin-top:14px;background:#ffffff2e;border:1px solid #ffffff55;padding:6px 15px;border-radius:999px;font-size:13px;font-weight:600}
.wrap{max-width:1040px;margin:-52px auto 0;padding:0 16px}

/* toolbar */
.toolbar{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 10px 28px #7c2d1214;margin-bottom:26px;display:grid;gap:12px}
.tool-row{display:flex;gap:10px;flex-wrap:wrap}
.date-nav{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.date-nav button{border:0;background:var(--tint);width:42px;height:44px;font-size:20px;color:var(--orange-dd);cursor:pointer}
.date-nav button:hover{background:var(--tint2)}
.date-nav input{border:0;height:44px;padding:0 12px;font:inherit;font-size:14px;font-weight:500;color:var(--ink);background:#fff}
.search{flex:1;min-width:200px;height:46px;border:1px solid var(--line);border-radius:12px;padding:0 15px;font:inherit;font-size:14px;color:var(--ink);background:#fff}
.search:focus,.date-nav:focus-within{border-color:var(--orange)}
.refresh{height:46px;padding:0 22px;border:0;border-radius:12px;background:var(--orange);color:#fff;font:700 14px var(--font);cursor:pointer}
.refresh:hover{background:var(--orange-d)}
.refresh:disabled{opacity:.6;cursor:wait}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 16px;font:600 13px var(--font);color:var(--muted);cursor:pointer}
.chip:hover{border-color:var(--orange);color:var(--orange-dd)}
.chip.on{background:var(--ink);border-color:var(--ink);color:#fff}

/* league */
.league{margin-bottom:26px}
.league-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.league-head::before{content:"";width:5px;height:22px;border-radius:3px;background:var(--orange)}
.league-logo{width:28px;height:28px;object-fit:contain;flex-shrink:0}
.league-name{font-size:18px;font-weight:700;letter-spacing:-.3px}
.league-count{margin-left:auto;font-size:12.5px;font-weight:600;color:var(--orange-dd);background:var(--tint);padding:3px 11px;border-radius:999px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}

/* match card (compact) */
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.teams{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4px;padding:12px 8px 10px}
.side{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;min-width:0}
.crest{width:32px;height:32px;border-radius:50%;background:var(--tint);border:1px solid var(--tint2);color:var(--orange-dd);display:grid;place-items:center;font-weight:800;font-size:11.5px}
.name{font-size:12.5px;font-weight:600;color:var(--muted);overflow-wrap:anywhere;line-height:1.25}
.name.fav{color:var(--ink);font-weight:800}
.card.plain .name{color:var(--ink);font-weight:700}

/* prediction strip: green by default (same look as BTTS "Yes") */
.tip{display:flex;align-items:center;gap:8px;padding:8px 10px;background:var(--gtint);border-top:1px solid var(--gtint2)}
.badge{min-width:28px;height:28px;padding:0 6px;border-radius:8px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;flex-shrink:0}
.tip-text{font-size:13px;font-weight:700;color:var(--green-d);line-height:1.2}
.tip.yes{background:var(--gtint);border-top-color:var(--gtint2)}
.tip.yes .badge{background:var(--green)}
.tip.yes .tip-text{color:var(--green-d)}
.tip.none{background:#f5f1ed;border-top-color:var(--line)}
.tip.none .badge{background:#cfc5bb}
.tip.none .tip-text{color:var(--muted)}
.tip.no{background:#f5f1ed;border-top-color:var(--line)}
.tip.no .badge{background:#a8a29e}
.tip.no .tip-text{color:#57534e}

.extras{display:flex;flex-wrap:wrap;gap:5px;padding:7px 10px 9px;border-top:1px solid var(--line)}
.extra{font-size:11px;font-weight:600;padding:2px 7px;border-radius:5px;background:var(--bg);color:var(--muted)}

/* states */
.message{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:46px 20px;text-align:center;color:var(--muted)}
.message strong{display:block;color:var(--ink);font-size:17px;margin-bottom:4px}
.message.error{background:#fef3f2;border-color:#f6c9c4}
.message.error strong{color:#b42318}
.spinner{width:32px;height:32px;border:3px solid var(--tint2);border-top-color:var(--orange);border-radius:50%;margin:0 auto 12px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2.4s}}

/* SEO text */
.seo-content{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px;margin-top:40px;font-size:14px;color:var(--muted)}
.seo-content h2{font-size:18px;color:var(--ink);margin-bottom:10px}
.seo-content p{margin-bottom:10px;line-height:1.6}

/* footer */
.footer{background:#1c1917;color:#b5aca4;margin-top:48px;padding:36px 16px 24px;font-size:13px;border-top:4px solid var(--orange)}
.footer-in{max-width:1040px;margin:auto}
.footer .logo-text{color:#fff;font-size:20px;font-weight:800}
.footer .logo-text span{color:var(--orange)}
.footer-desc{margin-top:8px;max-width:520px}
.footer-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin:18px 0;padding:16px 0;border-top:1px solid #34302c;border-bottom:1px solid #34302c;min-height:56px}
.footer-links a{text-decoration:none;color:#e7dfd8}
.footer-links a:hover{color:var(--orange)}
.disc{line-height:1.7;max-width:720px}

/* tablet: 2 cards per row */
@media(max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr)}
}

/* phone: 1 compact card per row */
@media(max-width:600px){
  .hero{padding:26px 16px 78px}
  .hero h1{font-size:27px}
  .grid{grid-template-columns:1fr}
  .date-nav{flex:1}
  .date-nav input{flex:1;min-width:0}
  .search{min-width:100%;order:3}
}