:root { color-scheme: light; --purple: #493e8e; --orange: #ed542f; --ink: #333a44; --muted: #858c96; --line: #e2e5eb; --blue: #2163b7; --red: #d33f40; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f1f3f6; color: var(--ink); font: 13px/1.5 Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, select, input[type="date"], input[type="search"] { border: 1px solid #d8dce4; border-radius: 3px; background: #fff; color: var(--ink); }
button { padding: 5px 11px; }
button:hover:not(:disabled) { border-color: #8e85bb; color: var(--purple); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .table-scroll:focus-visible { outline: 2px solid #9b8aed; outline-offset: 2px; }
input[type="checkbox"] { accent-color: var(--purple); cursor: pointer; }
.site-header { background: var(--purple); color: #fff; }
.header-inner { max-width: 1260px; min-height: 64px; padding: 0 20px; margin: auto; display: flex; align-items: center; gap: 24px; }
.language-control { margin-left: auto; flex-shrink: 0; }
#language-select { padding: 5px 7px; border-color: #ffffff55; background: #ffffff12; color: #fff; font-size: 12px; }
#language-select option { color: var(--ink); background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.brand-icon { color: #ff815c; font-size: 37px; font-style: italic; font-weight: 900; letter-spacing: -6px; margin-right: 5px; }
.brand small { display: block; margin-top: 5px; font-size: 9px; letter-spacing: 2px; font-weight: 400; opacity: .8; }
.main-nav { align-self: stretch; display: flex; }
.main-nav button { border: 0; border-radius: 0; padding: 0 22px; color: #e2dff2; background: transparent; font-size: 15px; }
.main-nav button.active, .main-nav button:hover { color: #fff; background: #6252ad; }
.header-note { margin-left: auto; font-size: 12px; color: #d8d2f2; white-space: nowrap; }
.header-note i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: #8de5ad; border-radius: 50%; }
.page-shell { width: min(100% - 32px, 1220px); margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 15px; height: 58px; color: var(--muted); font-size: 12px; }
.breadcrumb h1 { margin: 0; color: #43464e; font-size: 17px; }
.timezone { margin-left: auto; }
.scoreboard { background: #fff; border: 1px solid #dee2e9; border-radius: 4px; box-shadow: 0 2px 4px #15274804; }
.date-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 12px; border-bottom: 1px solid var(--line); }
.date-controls, .refresh-controls { display: flex; gap: 8px; align-items: center; }
.date-controls > button:first-child, #next-day { width: 27px; padding: 3px; font-size: 18px; line-height: 23px; }
.date-controls input { width: 148px; height: 31px; padding: 4px 7px; font-size: 14px; font-weight: 600; }
#today-button { border-color: #d6cfee; color: var(--purple); background: #f7f5fc; }
#weekday { margin-left: 5px; color: #8c919a; font-size: 12px; }
.refresh-controls { gap: 14px; font-size: 12px; color: #7c838e; }
.refresh-controls label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
#refresh-button { color: var(--purple); padding: 4px 12px; }
.status-tabs { display: flex; align-items: stretch; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.status-tabs button { position: relative; border: 0; border-radius: 0; padding: 14px 17px 13px; background: none; color: #626975; white-space: nowrap; flex-shrink: 0; }
.status-tabs button.active { color: var(--orange); font-weight: 700; }
.status-tabs button.active::after { content: ""; position: absolute; bottom: -1px; left: 15px; right: 15px; height: 3px; background: var(--orange); }
.status-tabs b { margin-left: 4px; font-size: 11px; font-weight: 400; opacity: .8; }
.status-tabs button:last-child { margin-left: auto; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: #db4949; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 16px; background: #fbfbfc; border-bottom: 1px solid var(--line); }
.filter-bar label { display: flex; align-items: center; gap: 7px; color: #7b818b; font-size: 12px; }
.filter-bar select { height: 30px; padding: 0 7px; max-width: 190px; font-size: 12px; }
#country-filter { max-width: 142px; }
#sort { width: 118px; }
.search-box { margin-left: auto; }
.search-box input { height: 30px; width: 185px; padding: 4px 10px; font-size: 12px; }
.search-box input::placeholder { color: #a0a5af; }
.text-button { border-color: transparent; color: var(--blue); background: transparent; }
.selection-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-height: 43px; padding: 7px 16px; color: #858b94; font-size: 12px; }
.selection-bar strong { color: var(--orange); }
.selection-bar button { padding: 3px 8px; font-size: 11px; }
.legend { display: flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11px; }
.legend i { width: 9px; height: 9px; background: #fff0be; border: 1px solid #edd894; }
.legend span { margin-left: 12px; color: #9b9fa7; }
.notice { margin: 0 12px 10px; padding: 8px 10px; border: 1px solid #e3d599; background: #fff9e6; color: #856a25; font-size: 12px; }
.notice.error { color: #a54848; border-color: #ebcaca; background: #fff4f3; }
.table-scroll { max-height: 69vh; overflow: auto; scrollbar-color: #c4c8d1 #f6f7f9; }
.score-table { width: 100%; min-width: 865px; table-layout: fixed; border-spacing: 0; border-collapse: separate; font-variant-numeric: tabular-nums; }
.col-select { width: 32px; }.col-league { width: 127px; }.col-time { width: 65px; }.col-status { width: 68px; }.col-score { width: 75px; }.col-half { width: 63px; }.col-star { width: 43px; }.col-info { width: 48px; }.col-hide { width: 40px; }
.score-table thead { position: sticky; top: 0; z-index: 2; }
.score-table th { height: 33px; padding: 5px 6px; font-size: 12px; font-weight: 400; background: #84959e; color: #fff; border-right: 1px solid #a5b0b7; }
.score-table th:last-child { border-right: 0; }
.score-table td { height: 35px; padding: 4px 7px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #e5e8ee; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-table td:last-child { border-right: 0; }
.score-table tbody tr:nth-child(even) { background: #f5f7fb; }
.score-table tbody tr:hover { background: #eef3fc; }
.score-table .home-cell { text-align: right; padding-right: 14px; }
.score-table .away-cell { text-align: left; padding-left: 14px; }
.score-table td.home-cell, .score-table td.away-cell { color: #353b46; font-size: 13px; }
.score-table td.team-winner { font-weight: 700; }
.score-table td.league-cell { padding: 3px 5px; }
.league-tag { display: block; padding: 4px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 11px; border-radius: 2px; background: #607d8b; }
.league-color-0 { background: #697daf; }.league-color-1 { background: #8f71ae; }.league-color-2 { background: #3f9595; }.league-color-3 { background: #bb804c; }.league-color-4 { background: #618863; }.league-color-5 { background: #a86980; }.league-color-6 { background: #597c9c; }.league-color-7 { background: #797bb0; }
.kickoff { color: #686f7a; font-size: 12px; }
.status-cell { font-size: 11px; color: #9a9ea6; }
.score-table .status-cell { white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
.status-cell.is-live { color: #d23d3d; }
.status-cell.is-finished { color: #747c89; }
.status-cell.is-other { color: #ac7d39; }
.score-cell { color: #1759b3; font-size: 14px; font-weight: 700; letter-spacing: .6px; }
.score-cell.is-live { color: #d63535; }
.score-detail { border: 0; padding: 2px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; }
.half-cell { color: #878d97; font-size: 12px; }
.star-button, .detail-button, .hide-button { border: 0; padding: 2px 3px; background: transparent; line-height: 20px; }
.star-button { font-size: 18px; color: #b2b7c2; }.star-button.is-favorite { color: #e1a128; }
.detail-button { color: #3677b9; font-size: 11px; }.hide-button { color: #b0b4bd; font-size: 17px; }
.score-table tr.score-changed { animation: score-flash 15s ease-out; }
@keyframes score-flash { 0%,25% { background: #fff0b8; } 100% { background: #fffdf4; } }
.score-table td.empty-cell { height: 220px; color: #9197a2; font-size: 13px; white-space: normal; }
.empty-cell button { margin-left: 10px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #d8d9e2; border-top-color: var(--purple); border-radius: 50%; vertical-align: middle; margin-right: 7px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 12px; color: #9298a2; font-size: 12px; border-top: 1px solid var(--line); }
.pagination { display: flex; gap: 12px; align-items: center; }.pagination button { font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0 32px; color: #9a9faa; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); box-shadow: 0 15px 65px #10112833; }
dialog::backdrop { background: #20203777; }.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f7f6fb; }.dialog-header h2 { margin: 0; font-size: 15px; }.dialog-header button { border: 0; background: none; padding: 0 5px; font-size: 24px; color: #9797a5; }
#match-detail { padding: 22px; }.detail-teams { display: flex; justify-content: space-between; align-items: center; gap: 15px; text-align: center; font-size: 14px; }.detail-teams span { flex: 1; }.detail-teams strong { color: var(--blue); font-size: 26px; white-space: nowrap; }
.detail-info { display: grid; grid-template-columns: 80px 1fr; gap: 9px 12px; margin-top: 25px; font-size: 12px; }.detail-info dt { color: #9297a2; }.detail-info dd { margin: 0; overflow-wrap: anywhere; }.detail-source { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #999faa; font-size: 11px; }
@media (max-width: 900px) { .header-inner { gap: 25px; }.main-nav button { padding: 0 16px; }.header-note { display: none; }.filter-bar { gap: 8px; }.search-box { margin-left: 0; }.legend span { display: none; } }
@media (max-width: 620px) {
 .header-inner { padding: 10px 12px 0; gap: 10px; min-height: 58px; flex-wrap: wrap; }.brand { font-size: 17px; gap: 7px; }.brand-icon { font-size: 30px; }.brand small { font-size: 7px; letter-spacing: 1px; }.main-nav { order: 3; flex: 1 0 100%; justify-content: stretch; }.main-nav button { font-size: 12px; padding: 10px; flex: 1; }
 .page-shell { width: calc(100% - 16px); }.breadcrumb { gap: 8px; height: 48px; }.breadcrumb h1 { font-size: 15px; }.breadcrumb > span:not(.timezone) { display: none; }.timezone { font-size: 10px; }
 .date-bar { flex-wrap: wrap; padding: 10px; gap: 10px; }.date-controls { gap: 6px; flex-wrap: wrap; }.refresh-controls { width: 100%; justify-content: flex-end; gap: 10px; font-size: 11px; }#updated-at { margin-right: auto; }#weekday { font-size: 11px; }
 .status-tabs { overflow-x: auto; padding: 0 3px; }.status-tabs button { flex-shrink: 0; padding: 11px 10px; font-size: 12px; }.status-tabs button:last-child { margin-left: 0; }.status-tabs b { font-size: 10px; }
 .filter-bar { padding: 10px; gap: 8px; }.filter-bar select { max-width: 130px; }#country-filter { max-width: 120px; }.search-box { flex: 1; }.search-box input { width: 100%; min-width: 100px; }.filter-bar .text-button { padding: 4px; font-size: 11px; }
 .selection-bar { padding: 8px 10px; gap: 8px; flex-wrap: wrap; font-size: 11px; }.selection-bar button { padding: 2px 5px; }.legend { display: none; }.table-scroll { max-height: 64vh; }.table-footer { padding: 10px; font-size: 10px; }.pagination { gap: 6px; }.pagination button { font-size: 10px; padding: 4px 6px; }.site-footer { display: block; font-size: 10px; }.site-footer span { display: block; margin-bottom: 5px; }
 .score-table { min-width: 100%; }.score-table th { font-size: 11px; white-space: nowrap; }.col-time { width: 38px; }.col-status { width: 46px; }.col-score { width: 42px; }.col-star { width: 30px; }
 .col-select, .col-league, .col-half, .col-info, .col-hide,
 .score-table tr > :nth-child(1):not(.empty-cell), .score-table tr > :nth-child(2), .score-table tr > :nth-child(8), .score-table tr > :nth-child(10), .score-table tr > :nth-child(11) { display: none; }
 .score-table th, .score-table td { padding: 4px 3px; }.score-table .home-cell { padding-right: 4px; }.score-table .away-cell { padding-left: 4px; }.score-table td.home-cell, .score-table td.away-cell { font-size: 11px; }.kickoff, .status-cell { font-size: 10px; }
 #hide-selected, #restore-hidden { display: none; }.selection-bar::after { content: attr(data-mobile-hint); margin-left: auto; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .score-changed, .spinner { animation: none !important; }.score-changed { background: #fff0b8 !important; } }
