:root{--navy:#0c2646;--blue:#1768a2;--gold:#ffc647;--muted:#768498}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f5f7fa;color:var(--navy);font-family:system-ui,-apple-system,'Noto Sans TC',sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}header{max-width:1260px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:24px 32px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy);font-weight:800;font-size:20px}.brand img{width:58px;height:54px;object-fit:contain}.brand small{display:block;font-size:10px;letter-spacing:2px;margin-top:4px}nav{display:flex;gap:28px;align-items:center}nav a{color:var(--navy);text-decoration:none;font-size:14px}button{border:1px solid #d7dfe8;background:white;color:var(--navy);border-radius:9px;padding:10px 16px}nav button{background:var(--navy);color:white;border:0}main{max-width:1200px;margin:auto;padding:0 24px}.hero{background:var(--navy);border-radius:24px;padding:62px 60px;position:relative;display:grid;grid-template-columns:1.2fr 1fr;overflow:hidden;color:white;min-height:440px}.eyebrow{font-size:11px;letter-spacing:3px;font-weight:800;color:var(--blue)}.hero .eyebrow{color:var(--gold)}h1{font-size:clamp(33px,4.1vw,53px);line-height:1.25;letter-spacing:-2px;margin:22px 0}h1 span{color:var(--gold)}.hero p{font-size:15px;line-height:1.9;color:#b3c2d6;margin-bottom:28px}.primary{display:inline-block;border:0;border-radius:9px;background:var(--gold);color:var(--navy);padding:14px 22px;font-weight:800;text-decoration:none;font-size:14px}.hero-art{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column}.hero-art img{width:82%;max-width:320px;z-index:1;filter:drop-shadow(0 15px 22px #0003)}.hero-art span{margin-top:24px;font-size:12px;letter-spacing:5px;color:#c7d5e6;z-index:1}.orbit{position:absolute;width:360px;height:360px;border:1px solid #ffffff15;border-radius:50%}.orbit:before,.orbit:after{content:'';position:absolute;inset:35px;border:1px solid #ffffff15;border-radius:50%}.orbit:after{inset:-40px}.stats{display:flex;padding:30px 22px;gap:65px;border-bottom:1px solid #dce3ea;margin-bottom:45px}.stats div{display:flex;align-items:center;gap:12px}.stats b{font-size:30px}.stats span{color:var(--muted);font-size:13px}.stats .note{margin-left:auto;flex-direction:column;align-items:flex-end;gap:5px;font-weight:800}section#schedule{scroll-margin-top:24px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}h2{font-size:28px;margin:8px 0}.view{background:#e8edf3;padding:4px;border-radius:10px}.view button{border:0;background:transparent}.view button.active{background:white;box-shadow:0 2px 5px #10274215}.filters{display:flex;gap:12px;background:white;padding:20px;border:1px solid #e0e6ec;border-radius:12px}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700;color:#64758b}.filters label{flex:1}.filters .search{flex:1.6}input,select{padding:11px 12px;min-width:0;width:100%;border:1px solid #dbe2ea;border-radius:7px;background:#fff;color:var(--navy);font-size:14px}.data-note{font-size:12px;line-height:1.8;color:var(--muted);margin:14px 0 26px}.date-title{font-size:15px;margin:24px 0 12px;display:flex;gap:10px;align-items:center}.date-title small{font-weight:400;color:var(--muted)}.match{display:grid;grid-template-columns:105px 1fr 155px;align-items:center;gap:20px;padding:24px;background:white;border:1px solid #e2e7ed;border-radius:13px;margin-bottom:12px;transition:box-shadow .2s}.match:hover{box-shadow:0 7px 24px #0c264609}.time{font-size:22px;font-weight:800}.time small{font-size:11px;color:var(--muted);display:block;margin-top:5px;font-weight:500}.tags{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}.tag{font-size:11px;background:#edf4fb;color:#276b9e;border-radius:4px;padding:4px 8px}.tag.gold{background:#fff5d7;color:#84630b}.teams{display:flex;align-items:center;gap:16px;font-size:17px;font-weight:800}.teams em{font-style:normal;font-size:12px;color:#95a3b5}.teams .ours{color:#1768a2}.location{text-align:right;font-size:13px}.location small{display:block;color:var(--muted);margin:5px 0 10px}.location button{font-size:11px;padding:4px 8px;margin-left:4px}.match-note{font-size:12px;color:#8b6506;margin-top:8px}.bottom-tools{display:flex;align-items:center;justify-content:space-between;margin:24px 0;font-size:12px;color:var(--muted)}.bottom-tools button{font-size:12px;padding:8px 10px}.future{margin:55px 0 35px;background:#e8eff7;border-radius:18px;padding:38px;text-align:center}.future>span{font-size:10px;letter-spacing:3px;color:#567898}.future h2{font-size:24px;margin:15px 0}.future p{font-size:14px;line-height:1.8;color:#63788e}.future button{border-color:#b7c8d9;background:transparent}footer{max-width:1200px;margin:auto;display:flex;justify-content:space-between;padding:24px;font-size:11px;color:#8291a3}dialog{border:0;border-radius:16px;padding:28px;max-width:740px;width:calc(100% - 30px);max-height:90vh;color:var(--navy)}dialog::backdrop{background:#07192dbb}.dialog-head{display:flex;align-items:center;justify-content:space-between}.close{font-size:25px;border:0;padding:4px 10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid input,.form-grid select{font-size:16px}#error{color:#bd3030;font-size:13px}.source{width:100%;margin-top:20px}.empty{text-align:center;padding:60px;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:12px 20px;border-radius:10px;display:none;z-index:10}.month-bar{display:flex;align-items:center;justify-content:space-between;margin:24px 0}#grid{display:grid;grid-template-columns:repeat(7,1fr);background:#dce4ed;gap:1px;border:1px solid #dce4ed;border-radius:10px;overflow:hidden}.weekday{background:#edf2f7;text-align:center;padding:12px;font-size:12px}.day{background:white;min-height:110px;padding:10px;font-size:12px}.day.blank{background:#f5f7fa}.day .calendar-match{display:block;text-align:left;padding:6px;font-size:11px;margin-top:6px;width:100%;background:#eef5fc;border:0}.day .calendar-match strong{display:block}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible{outline:3px solid #2e99de;outline-offset:3px}@media(max-width:760px){header{padding:18px}.brand{font-size:16px}.brand img{width:43px;height:43px}.brand small{font-size:8px}nav{gap:10px}nav a{display:none}nav button{font-size:12px;padding:10px}main{padding:0 14px}.hero{padding:32px 26px;grid-template-columns:1fr;min-height:0}.hero-art{position:absolute;right:-50px;bottom:35px;width:190px;opacity:.15}.hero-art span,.orbit{display:none}.hero-art img{width:100%}h1{font-size:36px;position:relative;z-index:2}.hero p{font-size:13px}.stats{padding:24px 6px;gap:24px;margin-bottom:32px}.stats b{font-size:25px}.stats div{flex-direction:column;gap:4px}.stats .note{display:none}.stats span{font-size:11px}h2{font-size:24px}.filters{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:12px}.filters .search{grid-column:1/-1}.match{grid-template-columns:67px 1fr;padding:17px 13px;gap:12px}.time{font-size:18px}.teams{font-size:14px;gap:8px;flex-wrap:wrap}.location{grid-column:2;text-align:left;margin-top:0;font-size:12px}.location small{display:inline;margin-left:8px}.tags{margin-bottom:9px}.bottom-tools{flex-direction:column;align-items:flex-start;gap:12px}.future{padding:25px 16px}.future h2{font-size:20px}footer{flex-direction:column;gap:8px}.form-grid{grid-template-columns:1fr 1fr;gap:12px}dialog{padding:20px}.day{padding:4px;min-height:88px}.day .calendar-match{font-size:9px;padding:4px;overflow-wrap:anywhere}.data-note{font-size:11px}}

[hidden]{display:none!important}.admin-link{border:1px solid #cbd5e1;border-radius:8px;padding:9px 12px}#adminStatus{font-size:13px;color:#1768a2}.form-grid label{display:flex;flex-direction:column;gap:6px}#saveMatch:disabled{opacity:.6;cursor:wait}@media(max-width:760px){nav .admin-link,nav #signOut{display:inline-block;font-size:11px}nav{flex-wrap:wrap;justify-content:flex-end}}

.login-fields{display:grid;gap:18px;margin:24px 0}.login-fields label{display:grid;gap:8px}.login-fields input{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:8px;font-size:16px}#loginDialog,#passwordDialog{max-width:420px}#loginError,#passwordError{color:#bd3030;font-size:13px}nav #adminLogin,nav #signOut,nav #changePassword{font-size:12px;padding:9px 12px}

/* Prominent schedule date headings */
.date-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:28px 0 14px;padding:14px 18px;border-left:6px solid var(--gold);border-radius:10px;background:var(--navy);color:#fff;font-size:24px;font-weight:850;line-height:1.4;letter-spacing:.5px}
.date-title small{font-size:15px;font-weight:700;color:var(--gold)}
@media(max-width:760px){.date-title{font-size:21px;padding:12px 14px;gap:6px 12px}.date-title small{font-size:14px}}

/* Emphasize age groups across list and calendar views. */
.tags .group-badge{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:6px 12px;border:1px solid #e6a913;border-radius:7px;background:var(--gold);color:var(--navy);font-size:15px;font-weight:850;line-height:1.3;box-shadow:0 2px 5px #0c264612}
.day .calendar-group{display:inline-block;padding:2px 4px;border-radius:4px;background:var(--gold);color:var(--navy);font-weight:850}
@media(max-width:760px){.tags .group-badge{font-size:14px;padding:5px 10px}}

/* Clear, compact match metadata */
.location{line-height:1.55}.match-detail{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;margin:2px 0 2px 5px;border-radius:6px;background:#edf3f8;border:1px solid #dce5ef;color:#244766;font-size:12px}.detail-label{font-size:11px;font-weight:700;color:#5a6e83}.match-detail strong{font-weight:750}.location .venue-detail{display:block;margin:8px 0 10px;color:#244766;font-size:13px;font-weight:650}.venue-link{color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.venue-icon{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin:0 3px 2px 2px;border-radius:4px}@media(max-width:760px){.match-detail{margin:2px 5px 2px 0}.location .venue-detail{display:block;margin:7px 0 8px;font-size:12px}.venue-icon{width:23px;height:23px}}

.back-to-top{position:fixed;right:20px;bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:50px;min-height:54px;padding:7px 10px;border:1px solid #ffffff40;border-radius:12px;background:var(--navy);color:white;font-size:12px;font-weight:700;box-shadow:0 4px 14px #0c26462b}.back-to-top>span:first-child{font-size:23px;line-height:1}.back-to-top:hover{background:var(--blue)}@media(max-width:760px){.back-to-top{right:12px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Image saving protection, including dynamically uploaded photos. */
img, picture {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.time .time-match-number{display:block;margin-bottom:8px;font-size:12px;line-height:1.5;font-weight:600;color:var(--blue)}
.time .time-match-number strong{font-weight:800;white-space:nowrap}
@media(max-width:760px){.time .time-match-number{font-size:11px;margin-bottom:6px}}

.next-match{margin:0 0 24px;padding:24px;border:2px solid var(--gold);border-radius:20px;background:#fffaf0;scroll-margin-top:20px}
.next-match-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.next-match-heading h2{margin:5px 0 0;font-size:28px}
.next-match-heading a{color:var(--blue);font-size:13px;font-weight:700;text-decoration:none}
.next-match .date-title{margin-top:14px}
.next-match .match{margin-bottom:0}
.next-match .match+.match{margin-top:12px}
.next-match-empty{margin:18px 0 4px;font-size:14px;color:#64758b}
@media(max-width:760px){.next-match{padding:17px 12px;margin-bottom:18px;border-radius:16px}.next-match-heading{gap:8px}.next-match-heading h2{font-size:24px}.next-match-heading a{font-size:11px}.next-match .match{padding:15px 10px}}

/* Compact next-match summary. */
.next-match{padding:18px 22px}
.next-match-heading{margin-bottom:14px}
.next-match-heading .eyebrow{display:none}
.next-match-heading h2{font-size:22px;margin:0}
.next-match-card{padding:12px 0;border-top:1px solid #eadfc9}
.next-match-card:last-child{padding-bottom:0}
.next-match-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}
.next-match-group{padding:3px 8px;border-radius:5px;font-size:12px;background:var(--navy);color:white;font-weight:800}
.next-match-date{font-weight:700;color:var(--navy)}
.next-match-teams{margin:9px 0;font-size:17px;font-weight:800;line-height:1.6;overflow-wrap:anywhere}
.next-match-teams>span{margin:0 7px;font-size:11px;color:var(--muted)}
.next-match-venue{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;line-height:1.6}
.next-match-pitch{color:#64758b}
@media(max-width:760px){.next-match{padding:16px}.next-match-heading h2{font-size:20px}.next-match-teams{font-size:15px}.next-match-meta{gap:8px;font-size:12px}}

nav{flex-wrap:wrap;justify-content:flex-end;gap:12px}
nav .visitor-login{background:#fff5d7;color:var(--navy)}
nav .visitor-logout{background:transparent;color:var(--muted);padding:7px;font-size:11px}
.visitor-like{font-size:12px;padding:7px 12px;border-radius:20px;background:white;color:var(--blue);border:1px solid #cbdce8;justify-self:start}
.visitor-like[aria-pressed="true"]{background:#fff1f1;color:#b83b52;border-color:#edc6ce}
.match>.visitor-like{grid-column:2}
.next-match-card>.visitor-like{margin-top:9px}
.activity-card>.visitor-like{margin:0 20px 18px}
.visitor-error{color:#bd3030;font-size:13px}
@media(max-width:760px){header{flex-wrap:wrap;gap:12px}nav{gap:8px}nav .visitor-login{font-size:12px;max-width:200px;overflow-wrap:anywhere}.activity-card>.visitor-like{margin-left:14px}}

.visitor-like-names{font-size:12px;line-height:1.7;color:#64758b;margin:6px 0 0;overflow-wrap:anywhere}
.match>.visitor-like-names{grid-column:2/-1;margin-top:-12px}
.activity-card>.visitor-like-names{grid-column:1/-1;margin:0 20px 18px}
@media(max-width:760px){.activity-card>.visitor-like-names{margin-left:14px;margin-right:14px}}

/* Keep sign-in controls aligned with the club title, including on phones. */
header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
header .header-auth{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;max-width:360px}
.header-auth button{font-size:12px;padding:8px 10px}
.header-auth .visitor-login{background:#fff5d7;color:var(--navy);max-width:180px;overflow-wrap:anywhere}
.header-auth .visitor-logout{font-size:11px;color:var(--muted)}
header nav{grid-column:1/-1;justify-self:end}
header nav:has(>button[hidden]):not(:has(>button:not([hidden]))){margin-top:-4px}
.likes-dialog{max-width:440px}
.likes-name-list{margin:18px 0;max-height:50vh;overflow:auto;display:flex;flex-wrap:wrap;gap:8px}
.likes-name-list p{margin:0;padding:8px 12px;background:#edf4fb;border-radius:8px;font-size:14px;overflow-wrap:anywhere}
.likes-error{color:#bd3030;font-size:13px}
@media(max-width:760px){header{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:16px 14px}.brand{font-size:14px;gap:7px}.brand img{width:36px;height:36px}.brand small{letter-spacing:1px;font-size:7px}.header-auth{width:136px;gap:5px!important}.header-auth button{font-size:11px;padding:7px 8px}.header-auth .visitor-login{max-width:136px}header nav{margin:0}.header-auth button[hidden]{display:none}}

.likes-name-list .likes-remove{margin-left:10px;padding:3px 7px;font-size:12px;color:#bd3030;background:white;border:1px solid #eccaca}.likes-clear{margin-left:8px;color:#bd3030;border:1px solid #eccaca;background:white}

.match-note-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.match-note-row .match-note{margin:0;min-width:0;overflow-wrap:anywhere}.match-like-slot{flex-shrink:0;margin-left:auto}.match-like-slot .visitor-like{white-space:nowrap}.match>div:nth-child(2){min-width:0}@media(max-width:760px){.match-note-row{gap:8px}.match-like-slot .visitor-like{padding:6px 9px;font-size:11px}}

.venue-live-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:8px 0 10px}.location .venue-live-row .venue-detail{margin:0;min-width:0;text-align:left}.live-slot{flex-shrink:0}.live-slot button{white-space:nowrap;font-size:12px;padding:6px 9px}@media(max-width:760px){.venue-live-row{justify-content:flex-start;margin:7px 0 8px}}

.hidden-badge{background:#fff2df;color:#8b5411;border:1px solid #eccb92;font-weight:700}

.live-slot button.has-live-links{background:#c62828;color:#fff;border-color:#c62828;font-weight:700}

.pitch-live-row{display:flex;align-items:center;justify-content:flex-end;gap:8px}.pitch-live-row .match-detail{margin:0}@media(max-width:760px){.pitch-live-row{justify-content:flex-start}}

.join-us{margin:42px 0 24px;padding:30px 24px;background:#e8eff7;border-radius:18px;text-align:center}.join-us h2{margin:0 0 8px;font-size:26px}.join-us>p{font-size:14px;color:#63788e;line-height:1.7}.join-cards{display:grid;grid-template-columns:repeat(2,minmax(0,280px));justify-content:center;gap:24px;margin-top:22px}.join-cards a{display:flex;flex-direction:column;align-items:center;padding:14px;background:white;border:1px solid #d7dfe8;border-radius:14px;text-decoration:none;color:var(--navy);transition:transform .2s,box-shadow .2s}.join-cards a:hover{transform:translateY(-3px);box-shadow:0 8px 24px #0c264618}.join-cards img{display:block;width:100%;height:290px;object-fit:contain;background:white;border-radius:6px}.join-cards span{font-weight:700;font-size:14px;margin:14px 0 4px}@media(max-width:600px){.join-us{padding:24px 14px}.join-cards{gap:12px}.join-cards a{padding:8px}.join-cards img{height:180px}.join-cards span{font-size:12px}}@media(max-width:360px){.join-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.join-cards a{padding:6px;min-width:0}.join-cards img{height:auto;aspect-ratio:1 / 1.15}.join-cards span{font-size:11px;overflow-wrap:anywhere}}
/* Compact schedule rows and place match type above the time. */
.match{padding:18px 20px;gap:16px;margin-bottom:10px}.time .match-type{display:table;margin-bottom:5px;font-size:11px;line-height:1.3;font-weight:700;padding:3px 7px}.time .time-match-number{margin-bottom:4px}.tags{margin-bottom:8px}.match-note-row{margin-top:6px}.location .venue-detail{margin:5px 0 6px}
@media(max-width:760px){.match{padding:12px 11px;column-gap:10px;row-gap:5px;margin-bottom:8px;grid-template-columns:67px minmax(0,1fr)}.match .time{align-self:start;font-size:18px;line-height:1.3}.time small{margin-top:3px;line-height:1.4}.time .time-match-number{margin-bottom:3px;font-size:10px;line-height:1.4}.time .match-type{font-size:10px;padding:3px 6px;margin-bottom:4px}.match .tags{gap:4px;margin-bottom:6px}.match .tag{padding:3px 6px;line-height:1.3}.match .tags .group-badge{padding:4px 8px;font-size:13px;min-width:44px}.match .teams{line-height:1.4;gap:6px}.match .match-note-row{margin-top:5px;gap:6px}.match .location{line-height:1.4}.match .location .venue-detail{margin:4px 0}.match .match-detail{padding:2px 6px}.date-title{margin:20px 0 10px;padding:10px 12px}.next-match .match{padding:12px 10px}}
/* Keep the two login actions side by side beside the club heading. */
.brand small.brand-schedule-title{font-size:13px;letter-spacing:1px;margin-top:5px}.auth-login-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.auth-login-row button{white-space:nowrap;flex-shrink:0}.header-auth .auth-login-row .visitor-login{overflow:hidden;text-overflow:ellipsis;max-width:150px}
@media(max-width:760px){.brand small.brand-schedule-title{font-size:11px;letter-spacing:1px}.header-auth{width:auto;max-width:170px}.auth-login-row{gap:5px}.header-auth .auth-login-row button{padding:7px 6px;font-size:11px}.header-auth .auth-login-row .visitor-login{max-width:82px}.header-auth .visitor-logout{margin-left:auto}}

.match-groups{margin:0;border:1px solid #cbd5e1;border-radius:10px;padding:12px;min-width:0;grid-column:1/-1}.match-groups legend{font-weight:700;padding:0 5px}.match-groups small{display:block;margin-top:8px;color:#526077}#matchGroupOptions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}#matchGroupOptions .match-group-choice{display:flex;align-items:center;gap:7px;border:1px solid #a9b6c8;border-radius:8px;padding:8px 12px;cursor:pointer}#matchGroupOptions input{width:18px;height:18px;margin:0}#matchGroupOptions label:has(input:checked){background:#fff3c4;border-color:#a77900;color:#1b2638}

.ongoing-matches{border:1px solid #279b67;background:linear-gradient(120deg,#ecfdf5,#fff)}.ongoing-badge{background:#087745;color:#fff;font-weight:800;white-space:nowrap}.ongoing-event{font-size:13px;margin:8px 0;color:#52635b}.ongoing-matches[hidden]{display:none}

.ongoing-event{display:flex;align-items:center;gap:8px}.ongoing-event>span:first-child{min-width:0;overflow-wrap:anywhere}.ongoing-live-slot[hidden]{display:none}


.ongoing-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ongoing-card-header .next-match-meta{flex:1;min-width:0}.ongoing-timer{flex-shrink:0;text-align:right;color:#087745}.ongoing-timer strong{display:block;font-size:25px;line-height:1.2;font-variant-numeric:tabular-nums}.ongoing-timer small{display:block;font-size:10px}.ongoing-score-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#52635b;margin:6px 0 10px}.ongoing-score-note button{padding:5px 10px;color:#087745;border:1px solid #87c6a8;border-radius:6px;background:#fff;font-weight:700}@media(max-width:480px){.ongoing-card-header{gap:8px}.ongoing-timer strong{font-size:22px}.ongoing-timer small:last-child{max-width:85px}}

.timing-dialog{width:min(560px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:14px;padding:22px}.timing-dialog fieldset{margin:12px 0;padding:12px;border:1px solid #d4dfd8;border-radius:8px;display:grid;gap:10px}.timing-dialog label{display:grid;gap:5px;font-size:13px}.timing-dialog input,.timing-dialog select{width:100%;padding:8px;border:1px solid #bdcfc2;border-radius:6px}.timing-dialog p{font-size:13px;color:#52635b}.timing-actions{display:flex;justify-content:flex-end;gap:10px}.ongoing-timer strong{white-space:nowrap}@media(max-width:480px){.ongoing-timer strong{font-size:20px}}

/* Schedule updates and single-match sharing */
.schedule-updates,.shared-match{margin:24px 0;scroll-margin-top:100px}.updates-disclosure{border:1px solid #e2ad45;border-radius:14px;background:#fffaf0;color:#362a13;overflow:hidden}.updates-disclosure>summary{padding:16px;cursor:pointer;font-weight:800;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.updates-disclosure>summary>span{margin-left:auto;font-size:12px;font-weight:400}.updates-content{padding:0 16px 16px;display:grid;gap:12px}.updates-content>article{background:#fff;border:1px solid #ead9b9;border-radius:10px;padding:14px;min-width:0}.updates-content p{margin:0 0 8px;overflow-wrap:anywhere}.updates-content p>span{display:block;font-size:13px;margin-top:5px}.schedule-change{border:1px solid #edc778;background:#fff7e5;color:#513b12;border-radius:8px;margin:10px 0;max-width:100%;font-size:13px;overflow-wrap:anywhere}.schedule-change summary{cursor:pointer;padding:8px 10px;display:flex;gap:10px;flex-wrap:wrap}.schedule-change summary>span{font-size:12px}.schedule-change ul{margin:0;padding:0 14px 12px 28px}.schedule-change li{margin-top:7px}.schedule-change li b{display:block}.schedule-change del{color:#806d57}.shared-match>h2{margin-bottom:12px}.shared-match:focus{outline:2px solid #cfab54;outline-offset:5px}#matchShareDialog{width:min(600px,calc(100% - 28px));max-height:90dvh;overflow:auto}#matchShareDialog label{display:block;margin:12px 0;font-weight:700}#matchShareDialog textarea,#matchShareDialog input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:12px;border:1px solid #ccc;border-radius:8px;font:inherit;background:#fff;color:#172c24}#matchShareDialog textarea{resize:vertical;font-size:14px;line-height:1.7}.share-actions{display:flex;gap:8px;flex-wrap:wrap}.clear-schedule-update{display:flex;gap:8px;align-items:center;margin:14px 0;font-size:14px}.clear-schedule-update input{width:auto}.clear-schedule-update[hidden]{display:none}
@media(max-width:600px){.share-actions>button{flex:1 1 45%;min-height:44px}.updates-content{padding:0 10px 10px}.schedule-change summary{gap:6px}.shared-match .match{margin-left:0;margin-right:0}}

/* Keep the single-match share control within the existing information row. */
button.match-share,.location button.match-share{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:6px;margin:0;border:0;border-radius:6px;background:transparent;color:#788797;vertical-align:middle;line-height:1;box-shadow:none}
button.match-share:hover{background:#edf2f7;color:var(--blue)}button.match-share svg{pointer-events:none}.pitch-live-row>.match-share,.next-match-venue>.match-share{margin-left:auto}.updates-content>article{position:relative;padding-right:48px}.updates-content>article>.match-share{position:absolute;right:10px;top:10px}

#xinwuLeagueRecords{margin-top:36px;margin-bottom:32px}.record-note{font-size:13px;color:#68756e;margin:12px 0}.record-league,.record-group{border:1px solid #dbe5de;border-radius:12px;background:#fff;margin:10px 0;overflow:hidden}.record-league>summary,.record-group>summary{cursor:pointer;padding:16px;font-weight:700;color:#163f2c}.record-league summary small{float:right;font-weight:400;font-size:12px;color:#65756a}.record-content{padding:0 12px 10px}.record-group>summary{background:#f4f8f4}.record-scroll{overflow-x:auto}.record-scroll table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}.record-scroll th,.record-scroll td{padding:12px 9px;text-align:center;border-bottom:1px solid #e8eee9}.record-scroll td{font-weight:700}.record-group>.record-note{padding:0 12px}@media(max-width:600px){.record-league>summary,.record-group>summary{padding:14px 10px}.record-scroll th,.record-scroll td{padding:10px 7px;font-size:12px}}

/* Compact, wrapping record cards keep every metric visible on phones. */
#xinwuLeagueRecords{min-width:0}.record-league>summary,.record-group>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;line-height:1.5;overflow-wrap:anywhere;list-style:none}.record-league>summary::before,.record-group>summary::before{content:'▸';flex:none;color:#53736a}.record-league[open]>summary::before,.record-group[open]>summary::before{content:'▾'}.record-league summary small{float:none;margin-left:auto;text-align:right}.record-league>summary{background:#edf3fa;color:#173d64}.record-content{padding:4px 14px 14px}.record-group{margin:12px 0 0}.record-group>summary{background:#f3f7f5}.record-team{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 16px 4px;font-size:16px;font-weight:700;color:#173d64}.record-team span{font-size:12px;font-weight:400;color:#687987}.record-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:12px 16px 16px}.record-metric{min-width:0;text-align:center;padding:12px 4px;background:#f0f4f8;border-radius:10px;color:#334d67;border:1px solid #e1e8ef}.record-metric dt{font-size:12px;line-height:1.4;margin-bottom:5px}.record-metric dd{font-size:24px;font-weight:800;line-height:1.2;margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric-win{background:#e9f6ed;color:#21623c;border-color:#cce6d4}.metric-draw{background:#fff5dd;color:#805c12;border-color:#f0dfad}.metric-loss{background:#fceeee;color:#9c3d3d;border-color:#f0d4d4}.metric-points{background:#e6effe;color:#234f91;border-color:#c6d8f3}.metric-goals{background:#edf7f5;color:#22685b}.metric-conceded{background:#fff2e9;color:#8c512e}.metric-difference{background:#f1edfb;color:#654292}@media(max-width:600px){.record-content{padding:2px 8px 10px}.record-league>summary,.record-group>summary{padding:14px 12px}.record-league summary small{font-size:11px}.record-team{padding:14px 10px 2px}.record-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 10px}.record-metric{padding:12px 3px}.record-metric dd{font-size:23px}.record-note{line-height:1.7}.metric-points{grid-column:span 2}}

.record-table-wrap{padding:10px 8px 14px;min-width:0}.record-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:14px;text-align:center}.record-table th,.record-table td{padding:10px 2px;border-bottom:1px solid #e3eaf0;white-space:nowrap}.record-table th{font-size:12px;font-weight:500;color:#627386;background:#f6f8fb}.record-table td{font-size:17px;font-weight:750;font-variant-numeric:tabular-nums;color:#334d67}.record-table .record-cell-team{color:#173d64}.record-table .record-cell-win{background:#e9f6ed;color:#21623c}.record-table .record-cell-draw{background:#fff5dd;color:#805c12}.record-table .record-cell-loss{background:#fceeee;color:#9c3d3d}.record-table .record-cell-points{background:#e6effe;color:#234f91}.record-table .record-cell-goals{color:#22685b}.record-table .record-cell-conceded{color:#8c512e}.record-table .record-cell-difference{color:#654292}@media(max-width:600px){.record-table-wrap{padding:8px 3px 12px}.record-table th{font-size:10px;letter-spacing:-.4px;padding:9px 0}.record-table td{font-size:14px;padding:11px 0}.record-content{padding-left:5px;padding-right:5px}.record-table th:last-child{font-size:9px}}

.brand small.brand-schedule-title{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.brand-domain{font-size:11px;font-weight:500;letter-spacing:0;color:#64758a}@media(max-width:760px){.brand small.brand-schedule-title{gap:6px}.brand-domain{font-size:10px}}

/* Highlight the match number while keeping the schedule compact. */
.time .time-match-number{display:table;max-width:100%;box-sizing:border-box;margin:2px 0 6px;padding:3px 6px;border:1px solid #b8cee9;border-radius:6px;background:#e8f1fc;color:#174b86;font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap}.time .time-match-number strong{font-size:15px;font-weight:800;color:#103c73}@media(max-width:760px){.time .time-match-number{font-size:11px;padding:3px 5px;margin:2px 0 5px}.time .time-match-number strong{font-size:14px}}

.schedule-updated-at{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}

.single-card-share{margin:16px 0;padding:14px;border:1px solid #92b6a4;border-radius:12px}.single-card-share h3{margin:0 0 12px;font-size:16px}.single-card-share canvas{display:block;width:100%;max-width:360px;height:auto;margin:0 auto 14px;border-radius:10px}.single-card-share p{font-size:14px;line-height:1.6}.single-card-share button{min-height:44px}

/* Linked broadcast previews */
#liveLinks{display:grid;gap:14px;margin:16px 0}
.live-preview-row{min-width:0;display:flex;align-items:flex-start;gap:8px}
#liveLinks .live-preview-card{display:block;flex:1;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:inherit}
.live-preview-media{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:#10243c}
.live-preview-media img{display:block;width:100%;height:100%;object-fit:cover}
.live-preview-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:40px;border-radius:12px;background:#d71920;color:white;font-size:22px;box-shadow:0 2px 12px #0006}
.live-preview-title{display:block;padding:10px 12px;font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.live-preview-fallback{background:linear-gradient(135deg,#12334d,#175c64)}
#liveLinks .live-preview-card:focus-visible{outline:3px solid #e73740;outline-offset:3px}

.live-preview-body{flex:1;min-width:0}.live-preview-author{display:block;padding:6px 2px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}

.result-background-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:14px;align-items:end}.result-background-controls[hidden]{display:none}.result-background-controls label{display:grid;gap:6px;min-width:0;font-size:14px}.result-background-controls input{width:100%;min-width:0}.result-background-controls label:has(input[type=range]),.result-background-controls small{grid-column:1/-1}.result-background-controls small{line-height:1.5;font-size:13px}.result-background-controls output{font-variant-numeric:tabular-nums}
