:root{--brand:orange;--main:#333;--content:#666;--tips:#888;--border:#f1f1f1;--follow:#cdcdcd;--red:#e60808;--green:green;--blue:blue}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font:12px/1.5 Arial,Verdana,sans-serif;color:var(--main);background:#fff;-webkit-tap-highlight-color:transparent}
button,input{font:inherit;color:inherit}
button{border:0;background:none;padding:0;cursor:pointer}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button,a,input{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #4086d7;outline-offset:2px}
[hidden]{display:none!important}
#app{max-width:860px;margin:0 auto}
.head-wrapper{display:flex;height:40px;padding-right:36px;position:relative}
.head-item{width:33.3333%;flex:0 0 33.3333%;height:100%;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.head-item:after{content:"";border-right:1px solid #aaa;height:60%;position:absolute;top:52%;right:0;transform:translateY(-50%)}
.brand a{display:flex;height:100%;align-items:center;justify-content:center}
.brand img{height:28px;width:auto}
.header-link{display:flex;align-items:flex-end;white-space:nowrap}
.header-link img{width:30px;height:auto}
.header-link span{font-weight:800;color:var(--content)}
.settings-toggle{position:absolute;right:0;top:0;width:36px;height:40px;display:flex;align-items:center;justify-content:center;color:var(--brand)}
.menu-icon{width:26px;height:26px;background:currentColor;mask:url('assets/source-menu.svg') center/contain no-repeat;-webkit-mask:url('assets/source-menu.svg') center/contain no-repeat}
.banner{width:100%;max-width:640px;margin:0 auto;background:#fff}
.banner a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.banner img{display:block;width:100%;height:auto}
.score-nav{height:30px;display:flex;background:#ddd}
.score-nav a{width:25%;display:flex;align-items:center;justify-content:center}
.score-nav span{display:flex;align-items:center;justify-content:center;width:90%;height:70%}
.score-nav .active span{background:var(--brand);color:white;border-radius:20px}
.notice-wrap{padding:3px 5px;background:var(--border)}
.notice-box{height:24px;border-radius:3px;background:#fff;padding:0 5px;display:flex;align-items:center;overflow:hidden;white-space:nowrap;letter-spacing:.5px}
.notice-prefix{color:#c62563}
.notice-text{color:blue}
.match-list{margin:0;padding:0;list-style:none}
.match-item{border-bottom:3px solid var(--border);position:relative;min-height:49px}
.match-link{display:grid;grid-template-columns:44% 12% 44%;width:100%;min-height:46px;position:relative}
.team-column{min-width:0;padding:2px 0}
.top-line{height:18px;display:flex;align-items:center;min-width:0}
.home .top-line{justify-content:flex-end;padding-left:32px}
.league{display:inline-block;width:64px;flex:0 1 64px;max-width:calc(100% - 42px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:8px;color:#fff;font-size:10px;line-height:16px;height:16px;text-align:center}
.start-time{flex:none;color:var(--content);height:18px;margin-left:4px;font-variant-numeric:tabular-nums}
.team-line{display:flex;align-items:center;height:20px;margin-top:4px;overflow:hidden;font-size:14px;white-space:nowrap}
.home .team-line{justify-content:flex-end}
.team-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank{color:green;flex:none}
.red-card{background:#f01414;color:white;border-radius:3px;height:14px;line-height:12px;font-size:12px;font-weight:bold;padding:1px 2px;margin:0 1px;flex:none}
.match-middle{display:flex;flex-direction:column;min-width:0}
.score-line{height:20px;display:flex;justify-content:center;align-items:center;color:blue;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;line-height:20px}
.score-line.not-live{color:var(--red);font-weight:600}
.score-line .colon{margin:0 1px}
.handicap-line{display:flex;align-items:flex-end;justify-content:center;color:green;line-height:18px}
.receiving{font-size:8px;color:var(--red);margin-right:1px}
.away .top-line{padding-left:3px;padding-right:18px;overflow:hidden;color:#ca0a37;white-space:nowrap}
.away .top-line.with-half{padding-left:0}
.half-score{color:var(--content);font-size:10px;margin-right:8px;flex:none;display:flex;align-items:center}
.half-label{color:var(--main);margin-right:1px}
.match-status{min-width:0;overflow:hidden;text-overflow:ellipsis}
.neutral{color:green;margin-right:2px}
.live-neutral{position:absolute;right:20px;top:5px;color:green;line-height:12px}
.ball-icon{position:absolute;right:6px;top:5px;width:12px;height:12px;color:var(--tips);background:currentColor;mask:url('assets/source-ball.svg') center/contain no-repeat;-webkit-mask:url('assets/source-ball.svg') center/contain no-repeat}
.favorite{position:absolute;left:6px;top:2px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--follow);z-index:1}
.star-icon{width:18px;height:18px;background:currentColor;mask:url('assets/source-star.svg') center/contain no-repeat;-webkit-mask:url('assets/source-star.svg') center/contain no-repeat}
.favorite[aria-pressed="true"]{color:var(--brand)}
.finished-title{height:32px;background:#b7b8b8;color:white;font-size:14px;display:flex;align-items:center;justify-content:center}
.empty-state{margin:0;text-align:center;color:blue;padding:24px 10px}
.footer{border-top:1px solid #eee;padding:8px 0;color:#4d555d;font-size:10px;text-align:center}
.footer p{margin:0}
.footer[data-empty="true"]{position:fixed;left:0;bottom:0;width:100%;background:#fff}
.data-status{padding:3px 8px 0;color:#888}
.data-status a{color:#666;text-decoration:underline;text-underline-offset:2px}
.page-settings{position:fixed;inset:0;background:white;z-index:100;overflow:auto}
.settings-title{height:40px;background:#f8f8f8;display:flex;align-items:center;justify-content:space-between;padding:0 8px}
.settings-title h1{margin:0;font-size:14px;font-weight:400;text-align:center;flex:1}
.back-button{width:36px;height:40px;display:flex;align-items:center;color:#d0d0d0}
.back-button svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.5}
.confirm-button{border:1px solid #d0d0d0;border-radius:5px;padding:5px 13px}
.setting-row{margin:0;padding:0;border:0;border-bottom:1px solid #e1e1e1;height:40px;display:flex;align-items:center;position:relative}
.setting-row legend{position:absolute;left:0;top:0;width:30%;height:40px;display:flex;align-items:center;justify-content:center;font-size:14px;padding:0}
.setting-options{margin-left:30%;width:70%;padding-left:30px;display:flex;align-items:center;font-size:14px}
.setting-options label{display:flex;align-items:center;gap:6px;margin-right:15px;cursor:pointer;white-space:nowrap}
.setting-options input{margin:0;accent-color:#4086d7}
.scroll-top{position:fixed;right:30px;bottom:30px;z-index:4;padding:3px}
.scroll-top img{width:25px;height:25px}
::-webkit-scrollbar{background:#f6f7f8;width:8px;height:11px}
::-webkit-scrollbar-thumb{background:#e9ecef;border-radius:10px}
::-webkit-scrollbar-track{background:#f6f7f8;border-radius:10px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
