:root{--navy:#143e69;--blue:#196cb2;--muted:#8b9fbd;--bg:#f5f7fb;--line:#edf2f8;--red:#ff3c64}*{box-sizing:border-box}body{margin:0;background:#eef3f8;color:#111b30;font:14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.app{max-width:480px;min-height:100dvh;margin:auto;background:var(--bg);padding-bottom:calc(85px + env(safe-area-inset-bottom))}h1,h2,h3,p{margin:0}h1{font-size:23px;line-height:1.4;font-weight:750}h2{font-size:17px;font-weight:650}h3{font-size:14px;color:#647894}small,.small{font-size:12px}small,.muted{color:var(--muted)}.muted{font-size:12px}.hero{padding:34px 20px 20px;background:var(--navy);color:white}.hero h1{margin:18px 0 10px}.hero p{font-size:13px;color:#d9e8fb}.hero .back{color:#e2efff}.topline,.row,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.topline{margin-bottom:22px;font-size:13px}.icon{border-radius:13px;background:#ffffff20;color:white;width:36px;height:36px;margin-left:8px;font-size:20px}.tabs{display:flex;background:white;border-bottom:1px solid var(--line)}.tabs>a,.tabs>button{flex:1;text-align:center;padding:15px 0;color:#788ba8;background:white;font-size:13px;border-bottom:2px solid transparent}.tabs .selected{color:var(--blue);border-bottom-color:var(--blue)}main{padding:20px 16px}.section-heading{margin:2px 0 18px}.section-heading p{margin-top:2px}.section-title{margin:20px 0 12px}.card{display:block;background:white;border-radius:18px;padding:16px;margin-bottom:12px;box-shadow:0 1px 2px #132e5010}.live-card{border-left:4px solid var(--red);box-shadow:0 8px 20px #173b6605}.court{background:#e8f3ff;color:var(--blue);padding:4px 8px;border-radius:6px;font-size:12px;font-weight:600}.red{color:var(--red)!important}.blue{color:var(--blue)}.green{color:#00a77b}.orange{color:#e57700}.pink{color:#ff8a9d}.match-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0;line-height:2}.muted-name{color:#617491}.score-stack{text-align:right;font-weight:700;color:#495b76}.score-stack strong{display:block;font-size:21px;color:var(--blue);letter-spacing:1px}footer{border-top:1px solid var(--line);padding-top:12px;color:var(--muted);font-size:12px;display:flex;justify-content:space-between}footer span{color:var(--blue)}.refresh,.text-button{color:var(--blue);background:white;padding:8px 10px;border-radius:9px;font-size:12px}.text-button{background:transparent}.right{text-align:right}.soft-button{display:block;text-align:center;background:#f0f7fd;color:var(--blue);border-radius:12px;padding:9px;font-size:12px}.badge{display:inline-block;border-radius:6px;padding:4px 8px;font-size:10px;white-space:nowrap}.badge.live{color:var(--red);background:#fff0f4}.hero .badge.live{color:#ffd4df;background:#65436c}.badge.waiting{color:#c06500;background:#fffae9}.badge.done{color:#00a37e;background:#eafcf5}.badge.pending{background:#f1f4f8;color:#637795}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);display:flex;background:#fffffff5;backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:10px 0 calc(12px + env(safe-area-inset-bottom));z-index:10}.bottom a{flex:1;text-align:center;font-size:10px;color:var(--muted)}.bottom span{display:block;font-size:25px;font-weight:300;height:29px;line-height:26px}.bottom .active{color:var(--blue)}.light-header{position:relative;background:white;padding:34px 20px 20px}.back{font-size:12px;color:#617491;display:inline-block;margin-bottom:16px}.light-header h1{margin:14px 0 4px}.chips{display:flex;gap:8px;margin-bottom:16px}.chips button,.chips>span{padding:8px 16px;border-radius:9px;background:white;color:#637795;font-size:12px}.chips .selected{background:var(--blue);color:white}.selects{display:flex;gap:8px;margin-bottom:16px}.selects select{min-width:0;flex:1;background:white;border:0;border-radius:12px;padding:12px;color:#495b76}table{width:100%;border:1px solid var(--line);border-spacing:0;border-radius:12px;overflow:hidden;margin-top:16px;font-size:12px;text-align:center}th{background:#f7f9fb;color:var(--muted);font-size:10px;font-weight:400;padding:10px 6px}td{padding:12px 8px;border-top:1px solid var(--line)}th:first-child,td:first-child{text-align:left;padding-left:15px}td:nth-child(2){text-align:left}td small{display:block;font-size:10px}.table-note{color:var(--muted);font-size:10px;margin-top:12px}.schedule-score{margin-top:16px}.schedule-score strong{font-size:18px}.schedule-score small{margin-left:4px}.hidden{display:none!important}.search{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#f7f9fb;border:1px solid var(--line);border-radius:14px;margin-top:18px}.search>span{font-size:25px;color:var(--muted)}.search input{width:100%;min-width:0;border:0;background:transparent;outline:none;color:#172136}.search button{background:transparent;color:var(--muted);white-space:nowrap;padding:8px}.person{display:flex;align-items:center;gap:12px;padding:18px 16px}.avatar{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#dbeeff;color:var(--blue);font-size:20px;font-weight:700}.avatar.warm{color:#dc8200;background:#fff9e9}.avatar.neutral{background:#f0f4f8;color:#687c98}.person .muted{margin-top:3px;font-size:11px}.chevron{margin-left:auto;color:#c2d1e3;font-size:25px}.tip{display:flex;gap:14px;align-items:center;background:var(--navy);color:white;border-radius:17px;margin-top:24px;padding:20px}.tip>span{font-size:23px;background:#ffffff20;padding:3px 10px;border-radius:12px}.tip p{font-size:12px;color:#d4e6fa;margin-top:2px}.profile{display:flex;gap:14px;align-items:center;margin:6px 0 20px}.profile .avatar{width:64px;height:64px;font-size:27px}.profile h1{margin:0 0 2px;font-size:21px}.stats{display:flex;background:#ffffff20;border-radius:12px;padding:12px 0 10px}.stats>div{flex:1;text-align:center;border-right:1px solid #ffffff25}.stats>div:last-child{border:0}.stats b{font-size:20px;display:block}.stats small{display:block;color:#d9e8fb;font-size:10px;margin-top:6px}.event-chips{margin-top:10px;margin-bottom:20px}.event-chips>span{color:var(--blue);padding:8px 12px}.record>.row+.row{margin-top:14px}.record strong{font-size:20px}.record small{font-size:11px}.record p{margin-bottom:4px}.detail{padding-top:0}.scoreboard{border-radius:0 0 25px 25px;padding:16px 20px 24px;margin-bottom:16px}.versus{display:grid;grid-template-columns:1fr 1fr 1fr;text-align:center;align-items:start;gap:6px}.versus p{margin-top:8px;font-size:13px}.versus strong{display:block;font-size:38px;white-space:nowrap;letter-spacing:2px;color:var(--blue)}.versus small{display:block;margin-top:6px}.live-score{background:#fff3f6;color:var(--red);border-radius:18px;text-align:center;padding:14px;margin-top:24px}.live-score strong{display:block;font-size:50px;letter-spacing:8px;line-height:1.5;font-weight:800}.live-score p{font-size:12px}.live-score small{color:var(--red);font-size:10px}.detail .card{margin-bottom:16px}.detail table td:not(:first-child){text-align:center;font-weight:650}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}.info-grid p{font-size:13px;font-weight:550}.warning{background:#fffae9;color:#c7670b;border-radius:12px;font-size:12px;padding:12px}.empty{text-align:center;padding:32px 10px;color:var(--muted);font-size:13px}.demo{text-align:center;color:var(--muted);font-size:10px;margin:20px 0 0}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#16334eee;color:white;padding:10px 18px;border-radius:12px;font-size:13px;z-index:30;max-width:90%;display:none}#toast.visible{display:block}@media(min-width:600px){.app{box-shadow:0 0 40px #143e690b}}@media(max-width:360px){h1{font-size:21px}.person .muted{font-size:10px}.schedule-score strong{font-size:15px}.record small{font-size:10px}.versus strong{font-size:32px}}

.share-icon{display:inline-flex;align-items:center;justify-content:center}.share-icon svg{width:20px;height:20px}#share-dialog{border:0;border-radius:22px;padding:28px 22px 24px;width:min(340px,calc(100% - 40px));text-align:center;color:#111b30;box-shadow:0 20px 70px #0003}#share-dialog::backdrop{background:#10273c88}#share-dialog h2{font-size:20px;margin-bottom:6px}.share-close{position:absolute;right:12px;top:8px;background:transparent;color:#8b9fbd;font-size:28px;width:36px;height:36px}#share-qr{display:block;margin:16px auto 8px;max-width:100%;height:auto;background:white}#share-url{display:block;overflow-wrap:anywhere;font-size:12px;color:var(--blue);margin:8px 0 12px}
/* Keep the 138px event header pinned at its full height. */
.event-hero{position:sticky;top:0;z-index:9;height:138px;padding:0 20px 20px;display:flex;flex-direction:column;justify-content:flex-end}
.event-hero .topline{position:absolute;right:20px;bottom:22px;margin:0}
.event-hero h1{margin:0 0 10px;padding-right:0;font-size:clamp(18px,5vw,23px)}
.event-hero>p{padding-right:46px}
@media(max-width:360px){.event-hero{padding:0 16px 18px}.event-hero .topline{right:16px;bottom:18px}.event-hero>p{font-size:11px}}

.event-tabs{position:sticky;top:138px;z-index:8}

.event-tabs{height:52px}
.home-refresh-bar{position:sticky;top:190px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--bg)}
.home-refresh-bar+main{padding-top:8px}

.match-format{margin-top:10px}.live-players{display:flex;justify-content:space-between;gap:16px;margin:14px 0 12px;font-size:14px}.live-players>span{flex:1}.live-players>span:last-child{text-align:right}.set-score-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.set-score{flex:1 0 72px;text-align:center;background:#f7f9fc;border-radius:8px;padding:7px 5px}.set-score small{font-size:10px;display:block;white-space:nowrap}.set-score strong{display:block;font-size:15px;color:#52647f;margin-top:3px}.set-score.current{background:#edf6ff}.set-score.current strong{color:var(--blue);font-size:19px}.set-score.current small{color:var(--blue)}.set-table-scroll{overflow-x:auto}.set-table-scroll table{min-width:100%;width:max-content}.set-table-scroll th,.set-table-scroll td{min-width:44px;white-space:nowrap}.set-table-scroll td:first-child{max-width:140px;white-space:normal}
.match-participants{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;margin:14px 0 12px;min-height:44px}.match-participant{min-width:0;display:flex;flex-direction:column;gap:2px}.match-participant-right{text-align:right}.participant-name{color:#111b30;font-size:14px;overflow-wrap:anywhere}.participant-club{color:var(--muted);font-size:11px;line-height:1.3;overflow-wrap:anywhere}.match-set-summary{text-align:center;min-width:62px;white-space:nowrap}.match-set-summary small{display:block;color:var(--muted);font-size:10px;line-height:1.2}.match-set-summary strong{display:block;color:var(--blue);font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.live-card footer>span,.upcoming footer>span{color:var(--muted)}.live-card footer .match-duration,.upcoming footer .match-duration{color:var(--blue);text-align:right;font-variant-numeric:tabular-nums}

/* Compact navigation bar for match details. */
.match-hero{height:70px;padding:0 16px;display:flex;align-items:center}
.match-hero>.row{width:100%}
.match-hero .back{display:inline-flex;align-items:center;gap:6px;min-width:88px;min-height:44px;margin:0;font-size:16px;font-weight:600}
.match-hero .back svg{width:22px;height:22px;flex-shrink:0}

.home-refresh-summary{display:flex;align-items:center;gap:12px;white-space:nowrap}
.home-refresh-bar .refresh{flex-shrink:0}
.waiting-filter{display:flex;align-items:center;gap:12px;margin:0 0 14px;color:#617491;font-size:13px}.waiting-filter select{flex:1;min-width:0;background:white;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:#495b76}.waiting-progress{text-align:center;color:var(--muted);font-size:12px;margin:14px 0 10px}.waiting-more{display:block;width:100%;padding:12px;border-radius:12px;background:#e8f3ff;color:var(--blue);font-weight:600}.waiting-more:disabled{opacity:.6}

.match-hero>.row{position:relative}
.match-hero .match-nav-title{position:absolute;left:50%;transform:translateX(-50%);margin:0;font-size:18px;line-height:44px;white-space:nowrap}


#categories[hidden]{display:none}
#categories{flex-wrap:wrap}

/* Round-by-round knockout schedule, sized for a single mobile column. */
.knockout-heading{margin:4px 0 20px}
.knockout-heading h2{font-size:16px}
.knockout-heading small{font-size:11px}
.knockout-round{position:relative;padding:0 0 22px 20px}
.knockout-round::before{content:"";position:absolute;left:4px;top:12px;bottom:-12px;width:1px;background:#dfe7f0}
.knockout-round:last-child{padding-bottom:0}
.knockout-round:last-child::before{display:none}
.round-heading{position:relative;display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;min-height:24px}
.round-heading::before{content:"";position:absolute;left:-20px;width:9px;height:9px;border:2px solid #8aa6c4;border-radius:50%;background:var(--bg)}
.round-heading h3{color:#495f7c;font-size:13px;font-weight:600}
.round-heading>span{font-size:11px;color:var(--muted)}
.round-matches{background:white;border:1px solid #e8edf4;border-radius:13px;overflow:hidden}
.knockout-match{display:flex;align-items:center;gap:16px;padding:13px 14px}
.knockout-match+.knockout-match{border-top:1px solid var(--line)}
a.knockout-match:active{background:#f8fbff}
a.knockout-match:focus-visible{outline-offset:-3px}
.knockout-players{flex:1;min-width:0}
.knockout-players p{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;line-height:24px;color:#52647f}
.knockout-players p+p{margin-top:4px}
.knockout-players p>span{overflow-wrap:anywhere}
.knockout-players b{font-size:14px;font-variant-numeric:tabular-nums;min-width:16px;text-align:center;font-weight:600}
.knockout-players .match-winner{color:var(--blue);font-weight:600}
.knockout-players .undecided{color:#91a0b5}
.knockout-status{align-self:stretch;flex:0 0 76px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px;border-left:1px solid var(--line);padding-left:12px}
.knockout-status .badge{font-size:10px;padding:3px 7px}
.knockout-status small{font-size:10px;color:#7c91aa}
.knockout-status small span{margin-left:3px}

.round-heading h3 small{font-size:11px;font-weight:400;white-space:nowrap}

.athletes-main .search{margin:0 0 24px;background:white}

.future-stage{font-size:15px;margin:12px 0 8px;line-height:1.6}

/* 团体总比分和子场次，与本场局比分分层显示。 */
.team-summary{margin:12px 0 16px;padding:12px 0 10px;border-bottom:1px solid #edf2f8}
.team-score-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.team-name{font-size:15px;font-weight:650;text-align:center;overflow-wrap:anywhere;line-height:1.5}
.team-score{text-align:center;min-width:76px}
.team-score strong{display:block;color:#196cb2;font-size:28px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.team-score small{display:block;font-size:10px;color:#7c91aa}
.team-match-progress{width:fit-content;max-width:100%;margin:10px auto 0;padding:4px 14px;border-radius:14px;background:#e8f3ff;color:#196cb2;text-align:center;font-size:11px;line-height:1.5}
.team-game-label{display:block;font-size:10px;font-weight:400;color:#7c91aa;text-align:center}
@media(max-width:360px){.team-score-row{gap:8px}.team-name{font-size:13px}.team-score strong{font-size:25px}}
/* Hide a logo left in an already-rendered page until its HTML refreshes. */
.brand-logo{display:none!important}
