.th-h1 { font-family: Archivo, sans-serif; font-weight: 800; font-size: 42px;
line-height: 1.05; letter-spacing: -.035em; color: #fff; margin: 0 0 14px; }
.th-lead { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.62);
margin: 0 0 28px; max-width: 620px; }
.th-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.th-search-box { flex: 1 1 380px; min-width: 0; position: relative; z-index: 30;
scroll-margin-top: 76px; }
.th-search-wrap { min-width: 0; position: relative;
display: flex; align-items: center; }
.th-sg { position: absolute; top: calc(100% + 8px); left: 0; right: 0;
background: #fff; color: #0B1117; border-radius: 16px; overflow: hidden auto;
box-shadow: 0 18px 48px rgba(11,17,23,.28), 0 0 0 1px rgba(11,17,23,.06);
max-height: var(--sg-max, 470px); overscroll-behavior: contain; }
.th-sg[hidden], .th-sg-opt[hidden], .th-sg-all[hidden], .th-sg-none[hidden] { display: none; }
.th-sg-list { padding: 6px 0; }
.th-sg-opt { display: flex; align-items: center; gap: 12px; min-height: 48px;
padding: 8px 16px; color: #0B1117; text-decoration: none; cursor: pointer; }
.th-sg-opt:hover, .th-sg-all:hover { background: #F6F8F2; }
.th-sg-opt.is-active, .th-sg-all.is-active { background: #EAF2DA; }
.th-sg-crest { width: 28px; height: 28px; border-radius: 99px; flex-shrink: 0;
box-shadow: inset 0 0 0 1px rgba(11,17,23,.08); overflow: hidden; display: block; }
.th-sg-txt { min-width: 0; display: block; }
.th-sg-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.25;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-sg-league { display: block; font-size: 12px; color: #5C6557; margin-top: 2px; }
.th-sg-all { display: block; min-height: 48px; line-height: 20px;
padding: 14px 16px; margin-top: 4px; border-top: 1px solid #EDF0E8;
font-size: 14px; font-weight: 600; color: #0B1117; cursor: pointer; }
.th-sg-all b { font-family: 'JetBrains Mono', monospace; }
.th-sg-none { margin: 0; padding: 18px 16px; font-size: 14px; line-height: 1.5; color: #5C6557; }
.page-body:has(#th-list.is-searching) .th-widgets { display: none; }
#th-list { scroll-margin-top: 80px; }
.th-search-icon { position: absolute; left: 18px; width: 15px; height: 15px;
display: block; pointer-events: none; }
.th-search-icon i { position: absolute; top: 0; left: 0; width: 11px; height: 11px;
border: 2px solid rgba(255,255,255,.5); border-radius: 99px; display: block; }
.th-search-icon b { position: absolute; bottom: 0; right: 0; width: 6px; height: 2px;
background: rgba(255,255,255,.5); display: block;
transform: rotate(45deg); transform-origin: right center; }
.th-search { width: 100%; font-family: inherit; background: rgba(255,255,255,.07);
border: 1px solid rgba(255,255,255,.14); border-radius: 13px;
padding: 16px 18px 16px 46px; font-size: 16px; font-weight: 500; color: #fff;
outline: none; }
.th-search::placeholder { color: rgba(255,255,255,.5); }
.th-search:focus { border-color: rgba(185,241,74,.6); background: rgba(255,255,255,.1); }
.th-select { flex: 0 1 260px; min-width: 0; font-family: inherit;
background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
border-radius: 13px; padding: 16px 18px; font-size: 15px; font-weight: 600;
color: #fff; outline: none; cursor: pointer; }
.th-select option { color: #0B1117; }
.th-reset { font-family: inherit; background: none;
border: 1px solid rgba(255,255,255,.2); border-radius: 13px; padding: 16px 20px;
font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; white-space: nowrap; }
.th-reset:hover { border-color: rgba(255,255,255,.45); }
.th-reset { display: none; }
.th-note { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 14px; }
.th-note > span { display: none; }
.plural > span { display: none; }
.plural[data-form="one"] > [data-form="one"],
.plural[data-form="few"] > [data-form="few"],
.plural[data-form="many"] > [data-form="many"] { display: inline; }
.th-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px; }
.th-widgets > section { background: #fff; border-radius: 24px; padding: 28px 30px;
min-width: 0; }
.th-h3 { font-family: Archivo, sans-serif; font-weight: 700; font-size: 20px;
letter-spacing: -.02em; margin: 0 0 4px; }
.th-wsub { font-size: 13px; color: #5C6557; margin: 0 0 18px; }
.th-wlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.th-wrow { display: flex; align-items: center; gap: 11px; padding: 10px 0;
border-bottom: 1px solid #F2F4EE; color: #0B1117; }
.th-wrow:hover { color: #4F7A16; }
.th-wpos { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #5C6557;
width: 13px; flex-shrink: 0; }
.th-wcrest { width: 26px; height: 26px; border-radius: 99px; flex-shrink: 0;
display: block; box-shadow: inset 0 0 0 1px rgba(11,17,23,.12); }
.th-wname { font-size: 14px; font-weight: 600; display: block;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-wleague { font-size: 11px; color: #5C6557; display: block; margin-top: 2px; }
.th-wval { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700;
margin-left: auto; flex-shrink: 0; }
.th-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.th-group { background: #fff; border-radius: 24px; padding: 28px 32px 14px; }
.th-group.is-hidden { display: none; }
.th-group-head { display: flex; align-items: center; justify-content: space-between;
gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.th-group-id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.th-flag { width: 30px; height: 20px; border-radius: 4px; display: block;
flex-shrink: 0; background-repeat: no-repeat; }
.th-h2 { font-family: Archivo, sans-serif; font-weight: 700; font-size: 22px;
letter-spacing: -.025em; margin: 0 0 3px; }
.th-group-sub { font-size: 13px; color: #5C6557; }
.th-group-link { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.th-cols { display: grid; grid-template-columns: minmax(0, 2fr) 150px 150px 110px;
gap: 16px; align-items: center; }
.th-head { padding: 0 4px 10px; border-bottom: 1px solid #E7EAE2;
font-size: 12px; font-weight: 600; color: #5C6557; }
.th-row { padding: 13px 4px; border-top: 1px solid #F0F2EC; color: #0B1117; background: #fff; }
.th-row:hover { background: #FBFCF9; }
.th-team { display: flex; align-items: center; gap: 11px; min-width: 0; }
.th-crest { width: 26px; height: 26px; border-radius: 99px; flex-shrink: 0;
display: block; box-shadow: inset 0 0 0 1px rgba(11,17,23,.12); }
.th-name { font-size: 15px; font-weight: 600;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.th-num { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700;
width: 34px; text-align: right; flex-shrink: 0; }
.th-num.plain { font-weight: 400; }
.th-num.accent { color: #3F6A0F; }
.th-track { display: block; width: 80px; height: 6px; border-radius: 99px;
background: #EDF0E8; flex-shrink: 0; }
.th-bar { display: block; height: 6px; border-radius: 99px; background: #C4E08A; }
.th-bar.accent { background: #8FC72C; }
.th-bar.grey { background: #A9B0A1; }
.th-cards { font-family: 'JetBrains Mono', monospace; font-size: 15px; text-align: right; }
.th-cell-label { font-size: 11px; color: #5C6557; margin-bottom: 3px; }
.th-more { display: block; width: 100%; margin: 14px 0; border: 1px solid #DDE2D6;
border-radius: 12px; padding: 13px 18px; font-size: 14px; font-weight: 700;
color: #0B1117; text-align: center; cursor: pointer; }
.th-more:hover { border-color: #0B1117; background: #FBFCF9; }
.th-more > span { display: none; }
.th-more > .th-more-open { display: inline; }
.th-row.is-extra { display: none; }
.th-open:checked ~ .th-body .th-row.is-extra { display: grid; }
.th-open:checked ~ .th-body .th-more > .th-more-open { display: none; }
.th-open:checked ~ .th-body .th-more > .th-more-close { display: inline; }
.th-open:checked ~ .th-body .th-more { font-weight: 600; color: #5C6557; }
#th-list[data-searching] .th-row.is-extra { display: grid; }
#th-list[data-searching] .th-more { display: none; }
.th-row.is-hidden { display: none !important; }
.th-empty { background: #fff; border-radius: 24px; padding: 60px 32px; text-align: center;
display: none; }
#th-list.is-empty .th-empty { display: block; }
#th-list.is-empty .th-groups { display: none; }
.th-empty-icon { width: 52px; height: 52px; border-radius: 16px; background: #F1F4EC;
margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.th-empty-icon span { width: 19px; height: 19px; display: block; position: relative; }
.th-empty-icon i { position: absolute; top: 0; left: 0; width: 14px; height: 14px;
border: 2px solid #6B7566; border-radius: 99px; display: block; }
.th-empty-icon b { position: absolute; bottom: 1px; right: 0; width: 7px; height: 2px;
background: #6B7566; display: block; transform: rotate(45deg); transform-origin: right center; }
.th-empty-title { font-family: Archivo, sans-serif; font-weight: 700; font-size: 22px;
letter-spacing: -.025em; margin-bottom: 10px; }
.th-empty-title > span { display: none; }
.th-empty p { font-size: 15px; line-height: 1.55; color: #5C6557;
margin: 0 auto 24px; max-width: 420px; }
.th-empty-btn { font-family: inherit; background: #0B1117; border: 0; border-radius: 12px;
padding: 14px 24px; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; }
.th-empty-btn:hover { background: #1B2530; }
#th-head:not(.is-searching) .th-note-all,
#th-head.is-searching:not(.is-empty) .th-note-found,
#th-head.is-searching.is-empty .th-note-none { display: inline; }
#th-head.is-filtered .th-reset { display: block; }
#th-list.is-searching .th-empty-search,
#th-list:not(.is-searching) .th-empty-league { display: inline; }
#th-list.is-empty .th-empty-btn { display: block; }
@media (max-width: 768px) {
.th-top { padding: calc(76px + env(safe-area-inset-top)) 18px 24px !important; }
.th-h1 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 10px; }
.th-lead { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.th-controls { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
.th-search { min-height: 50px; padding: 15px 16px 15px 44px; }
.th-search-icon { left: 16px; }
.th-select { min-height: 50px; padding: 14px 16px; }
.th-reset { min-height: 44px; padding: 12px 16px; font-size: 14px; }
.th-note { font-size: 13px; margin-top: 12px; }
.page-body { padding: 14px 14px 0 !important; gap: 14px !important; }
.page-body > section { border-radius: 18px !important; padding: 18px 16px !important; }
.th-h2 { font-size: 18px !important; letter-spacing: -.02em; }
.th-h3 { font-size: 18px !important; }
.th-wsub { font-size: 12px; margin-bottom: 12px; }
.th-widgets { grid-template-columns: 1fr !important; gap: 0 !important;
background: #fff; border-radius: 18px; overflow: hidden; }
.th-widgets > section { border-radius: 0 !important; padding: 18px 16px !important; }
.th-widgets > section + section { border-top: 1px solid #EDF0E8; }
.th-wcrest { width: 24px; height: 24px; }
.th-wval { font-size: 14px; }
.th-groups { gap: 14px; }
.th-group { border-radius: 18px !important; padding: 18px 16px !important; }
.th-group-head { margin-bottom: 14px; gap: 11px; }
.th-group-id { gap: 11px; }
.th-flag { width: 26px; height: 18px; }
.th-group-sub { font-size: 12px; }
.th-group-link { display: none; }
.th-scroll { overflow: visible !important; padding-bottom: 0 !important; }
.th-table { min-width: 0 !important; }
.th-head { display: none !important; }
.th-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
grid-template-areas: "team team team" "taken conceded cards" !important;
gap: 10px 8px !important; padding: 12px 0 !important;
border-top: 0; border-bottom: 1px solid #F2F4EE; }
.th-team { grid-area: team; gap: 9px; }
.th-cell.taken { grid-area: taken; }
.th-cell.conceded { grid-area: conceded; }
.th-cell.cards { grid-area: cards; }
.th-cell { display: block; }
.th-crest { width: 24px; height: 24px; }
.th-name { font-size: 14px; }
.th-track { display: none; }
.th-num { width: auto; display: block; text-align: left; font-size: 15px; }
.th-cards { display: block; text-align: left; font-size: 15px; }
.th-more { margin: 12px 0 0; min-height: 46px; padding: 13px 16px; }
.th-empty { border-radius: 18px !important; padding: 44px 20px !important; }
.th-empty-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; }
.th-empty-title { font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
.th-empty p { font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.th-empty-btn { width: 100%; min-height: 48px; }
}
