*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;background:#f6f4ef;color:#1d2420;line-height:1.5}
header{background:#14397a;color:#fff;padding:20px 16px;text-align:center}
header h1{margin:0;font-size:28px}header p{margin:4px 0 0;opacity:.8}
.tabs{display:flex;gap:8px;justify-content:center;padding:12px;background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:5}
button{font:inherit;cursor:pointer}
.tabs button,.chips button{border:1px solid #ccd;background:#fff;border-radius:20px;padding:8px 16px}
.tabs button.on,.chips button.on{background:#1f4fa3;color:#fff;border-color:#1f4fa3}
main{max-width:760px;margin:0 auto;padding:12px 16px 40px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
h2{font-size:20px;margin:24px 0 8px}h3{font-size:16px;margin:14px 0 4px}
.match,.story{background:#fff;border-radius:14px;padding:14px;margin:10px 0;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.league{color:#667;font-size:13px}
.teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:10px 0}
.team{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-weight:600}
.team img,.team .ph{width:40px;height:40px;object-fit:contain}.team .ph{border-radius:50%;background:#e5e5e5}
.score{font-size:22px;font-weight:700;min-width:72px;text-align:center}
.status{text-align:center;color:#556;font-size:14px}.live{color:#b3261e;font-weight:700}
.more{display:block;margin:8px auto 0;border:0;background:none;color:#1f4fa3;text-decoration:underline}
.details{margin-top:8px;border-top:1px solid #eee;padding-top:8px}
.lineups{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:600px){.lineups{grid-template-columns:1fr 1fr}}
ol{list-style:none;margin:0;padding:0}ol li{padding:2px 0}
.sub{color:#667;font-size:13px}
table{width:100%;border-collapse:collapse}td{padding:4px 0;border-bottom:1px solid #f0f0f0}td:last-child{text-align:left;direction:ltr;font-weight:600}
a{color:#1f4fa3}
.note,footer{color:#667;font-size:13px;text-align:center}footer{padding:20px 16px 40px}
.story h3{margin:0 0 4px}.story p{margin:2px 0}

.match{cursor:default}a.more{display:block;margin-top:10px;text-align:center;padding:10px;border-radius:10px;background:#14397a;color:#fff;text-decoration:none;font-weight:700;font-size:14px}
.back{display:inline-block;margin:6px 0 12px;color:#14397a;font-weight:700;text-decoration:none}
.hero{background:linear-gradient(160deg,#14397a,#1a4590);color:#fff;border-radius:16px;padding:18px 12px;margin-bottom:14px;text-align:center}
.hero .league,.hero .status{color:#d6efe3}.hero .score.big{font-size:30px;font-weight:800}.hero img{width:56px;height:56px}
.card{background:#fff;border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 1px 4px rgba(0,0,0,.08)}.card h3{margin:0 0 10px;font-size:16px;color:#14397a;border-bottom:2px solid #e3efe9;padding-bottom:6px}
.bar{margin:10px 0}.bl{display:flex;justify-content:space-between;font-size:14px}.track{display:flex;height:8px;border-radius:4px;overflow:hidden;background:#eee;margin-top:4px;direction:ltr}.track i{background:#1a4590}.track u{background:#f07a1a;text-decoration:none}
.tbl{width:100%;border-collapse:collapse;font-size:14px}.tbl th{color:#666;font-weight:600;text-align:right;padding:6px 4px}.tbl td{padding:7px 4px;border-top:1px solid #eee}.tbl tr.hl td{background:#fff6dc;font-weight:700}
[hidden]{display:none!important}

.pt{position:relative}.tn{display:block;font-weight:700;font-size:13px;padding:4px 8px;color:#14397a}.tn.h{margin-top:6px}
.pitch{position:relative;background:repeating-linear-gradient(#2e8b57 0 56px,#2a8050 56px 112px);border:3px solid #fff;border-radius:12px;padding:10px 4px;display:flex;flex-direction:column;justify-content:space-around;gap:6px;min-height:760px;direction:ltr;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.pitch .mid{position:absolute;left:0;right:0;top:50%;border-top:2px solid rgba(255,255,255,.7)}.pitch .ctr{position:absolute;left:50%;top:50%;width:90px;height:90px;margin:-45px 0 0 -45px;border:2px solid rgba(255,255,255,.7);border-radius:50%}
.ln{display:flex;justify-content:space-around;align-items:flex-start;position:relative;z-index:1}
.pl{width:20%;min-width:56px;text-align:center;color:#fff;font-size:11px;line-height:1.2}.pl span{display:block;margin-top:2px;text-shadow:0 1px 2px rgba(0,0,0,.7);font-weight:600;word-break:break-word}
.ph2{position:relative;width:44px;height:44px;border-radius:50%;margin:0 auto;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;color:#fff;border:2px solid #fff;overflow:hidden}
.pl.hm .ph2{background:#14397a}.pl.aw .ph2{background:#b4531a}.ph2 img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.subchips{flex-basis:100%;display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;padding-top:10px;border-top:1px dashed #ccd}.subchips button{border:1px solid #ccd;background:#fff;border-radius:20px;padding:6px 12px;font-size:13px}.subchips button.on{background:#f07a1a;color:#fff;border-color:#f07a1a}

.hb{margin-top:8px;display:flex;gap:8px;justify-content:center}.hb button{background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:16px;padding:5px 12px;font-size:13px;font-family:inherit}
.toast{position:fixed;top:10px;left:10px;right:10px;z-index:20;background:#f07a1a;color:#fff;padding:12px;border-radius:12px;font-weight:700;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.3)}.toast[hidden]{display:none}
.fav{background:none;border:0;font-size:18px;padding:0 4px;cursor:pointer;color:#f07a1a}
.league a{color:inherit;text-decoration:underline}.share{display:inline-block;margin-top:10px;background:#25d366;color:#fff;text-decoration:none;font-weight:700;padding:8px 16px;border-radius:20px}
.hero h2{margin:0}
body.dark{background:#10161a;color:#e6ece9}body.dark .match,body.dark .card,body.dark .story,body.dark .tabs{background:#182026;color:#e6ece9;box-shadow:none;border-color:#2a343b}body.dark .chips button,body.dark .tabs button{background:#182026;color:#e6ece9;border-color:#33414a}body.dark .chips button.on,body.dark .tabs button.on{background:#1f4fa3;color:#fff}body.dark .sub,body.dark .note,body.dark .status{color:#9db0a8}body.dark td,body.dark th{border-color:#2a343b}body.dark .tbl tr.hl td{background:#3a3418}body.dark h2,body.dark h3,body.dark .back,body.dark a{color:#7fd3ad}body.dark a.more,body.dark a.share{color:#fff}
body.dark .hero h2,body.dark .hero a,body.dark .hero .league a{color:#fff}

.hb select{background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:16px;padding:5px 8px;font-size:13px;font-family:inherit}.hb select option{color:#000}
.sl{width:22px;height:22px;object-fit:contain;vertical-align:middle}
html[dir=ltr] .tbl th,html[dir=ltr] .tbl td{text-align:left}html[dir=ltr] .tbl td:last-child,html[dir=ltr] .tbl th:last-child{text-align:right}

.mt th,.mt td{text-align:start}.mt td:last-child{direction:inherit;text-align:start;font-weight:400}.mt td:nth-child(1){white-space:nowrap;color:#667;font-size:12px}
.rs{display:inline-block;min-width:44px;text-align:center;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:700;color:#fff}.rs.w{background:#1f4fa3}.rs.l{background:#b3261e}.rs.d{background:#8a8f98}
html[dir=ltr] .mt th,html[dir=ltr] .mt td,html[dir=ltr] .mt td:last-child{text-align:left}

.nsel{width:100%;padding:10px;border-radius:10px;border:1px solid #ccd;font:inherit;margin:8px 0 12px;background:#fff;color:inherit}body.dark .nsel{background:#182026;border-color:#33414a}.story .sub{margin:0 0 4px}

.tabs{overflow-x:auto;white-space:nowrap}.tabs button{flex:0 0 auto}
.pks{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.pk{flex:1 1 90px;padding:8px 6px;border-radius:10px;border:1px solid #ccd;background:#fff;color:inherit;font:inherit;font-size:13px;cursor:pointer}.pk.on{background:#1f4fa3;color:#fff;border-color:#1f4fa3}body.dark .pk{background:#182026;border-color:#33414a}body.dark .pk.on{background:#1f4fa3}
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:10px}.tcard{display:block;background:#fff;border-radius:12px;padding:16px 10px;text-align:center;font-weight:700;text-decoration:none;color:#14397a;box-shadow:0 1px 4px rgba(0,0,0,.1)}body.dark .tcard{background:#182026;color:#e6ece9}
.tabs{justify-content:safe center}

.bell{background:none;border:0;font-size:18px;padding:0 6px;cursor:pointer;display:block;margin:2px auto 0}.bell.on{filter:drop-shadow(0 0 3px #e8b030)}

.pl{position:relative}.pl .rt{position:absolute;top:-4px;left:calc(50% - 34px);background:#0d213d;color:#fff;border:1px solid #fff;border-radius:8px;font:700 10px/1 system-ui;padding:2px 4px;font-style:normal}.pl .mk{position:absolute;right:calc(50% - 36px);font-style:normal;font-size:12px;line-height:1}.pl .mk:nth-of-type(2){top:-4px}.pl .mk:nth-of-type(3){top:9px}.pl .mk:nth-of-type(4){top:22px}.pl .mk:nth-of-type(5){top:35px}
.rtnote{font-size:11px;opacity:.7;margin:6px 0}
.tv{font-size:11px;opacity:.75;margin:4px 0}
