.fide-rankings {
 --rating-green:#047857;--rating-green-soft:#ecfdf5;--rating-red:#b91c1c;--rating-red-soft:#fef2f2;
 --rating-ink:#172333;--rating-muted:#64748b;--rating-border:#dbe3eb;--rating-surface:#f8fafc;--rating-card:#fff;
 --rating-classical:#64748b;--rating-rapid:#60a5fa;--rating-rapid-ink:#2563eb;--rating-rapid-soft:#eff6ff;
 --rating-blitz:#0369a1;--rating-blitz-soft:#f0f9ff;--rating-neutral:#f1f5f9;
 --rating-view-accent:var(--rating-green);
 width:100%;max-width:77.25rem;margin-inline:auto;padding:24px 16px;color:#111827;
}
.fide-rankings[data-mode="official"] {--rating-view-accent:var(--rating-classical);}
.fide-rankings[data-discipline="rapid"] {--rating-view-accent:var(--rating-rapid);}
.fide-rankings[data-discipline="blitz"] {--rating-view-accent:var(--rating-blitz);}
.dark .fide-rankings {
 --rating-ink:#f1f5f9;--rating-muted:#aab8ca;--rating-border:#3b495d;--rating-surface:#253244;--rating-card:#1f2937;
 --rating-neutral:#334155;--rating-green:#6ee7b7;--rating-green-soft:#103f34;--rating-red:#fda4af;--rating-red-soft:#482631;
 --rating-rapid:#93c5fd;--rating-rapid-ink:#93c5fd;--rating-rapid-soft:#1c3453;--rating-blitz:#7dd3fc;--rating-blitz-soft:#16384c;
 --rating-classical:#aab8ca;
 color:#f3f4f6;
}
.fide-ranking-heading h1 {font-size:28px;font-weight:700;line-height:1.25;margin-bottom:8px;}
.fide-ranking-heading p,.fide-ranking-note {font-size:13px;line-height:1.6;color:#64748b;}
.fide-category-links,.fide-filter-tabs {display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.fide-category-links {margin:16px 0;}
.fide-category-links a,.fide-filter-tabs a {display:inline-flex;align-items:center;min-height:40px;padding:7px 14px;border:1px solid #d1d5db;border-radius:7px;font-size:14px;}
.fide-category-links a[aria-current="page"],.fide-filter-tabs a[aria-current="page"] {background:#047857;color:#fff;border-color:#047857;font-weight:600;}
.fide-ranking-controls {display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;margin-bottom:20px;}
.fide-search-filters {display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:18px;}
.fide-search-filters label {display:block;font-size:12px;color:#64748b;margin-bottom:5px;}
.fide-search-filters input,.fide-search-filters select {min-height:44px;border:1px solid #d1d5db;border-radius:6px;padding:9px 10px;font-size:14px;color:#111827;background:white;max-width:100%;}
.fide-search-field {flex:1;min-width:220px;}
.fide-search-field input {width:100%;}
.fide-search-filters button {min-height:44px;border-radius:6px;padding:9px 16px;background:#047857;color:white;font-weight:600;}
.fide-clear {display:inline-flex;align-items:center;min-height:44px;padding:9px;text-decoration:underline;}
.fide-ranking-freshness {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;color:#64748b;max-width:47.5rem;}
.fide-ranking-layout {margin-top:8px;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;}
.fide-ranking-layout .live-ranking-main {width:100%;max-width:47.5rem;}
.fide-ranking-layout .live-ranking-main>.live-table-scroll {width:100%;background:var(--rating-card);border:1px solid var(--rating-border);border-top:3px solid var(--rating-view-accent);border-radius:10px;box-shadow:0 1px 2px #0f172a04;}
.fide-ranking-layout .live-ranking-main>.live-table-scroll>.fide-table {width:100%;table-layout:fixed;}
.fide-pagination {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px 12px;margin:14px 0;font-size:13px;}
.fide-pagination>span {grid-column:1;min-width:0;}
.fide-pagination>div {grid-column:2;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;}
.fide-pagination a,.fide-pagination [aria-current] {min-height:40px;min-width:40px;padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}
.fide-pagination [aria-current] {background:#1f2937;color:white;font-weight:600;}
.fide-ranking-layout .live-ranking-main>.live-table-scroll>.fide-table .live-name {width:auto;min-width:0;}
.fide-table th {background:var(--rating-surface);color:#526175;font-size:11px;font-weight:600;white-space:normal;line-height:1.3;}
.dark .fide-table th {background:var(--rating-surface);color:#cbd5e1;}
.fide-table th,.fide-table td {padding:9px 8px;}
.fide-table th:first-child,.fide-table td.live-rank {width:38px;text-align:center;}
.fide-table .live-rank-change {width:34px;text-align:center;font-size:12px;}
.fide-table th.live-fed,.fide-table td.live-fed {width:46px;text-align:center;padding:4px;vertical-align:middle;}
.fide-table .live-fed-stack {display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1;}
.fide-table .live-fed-stack .f24 {display:block;line-height:0;height:16px;}
.fide-table .live-fed-stack .f24 .flag {display:block;line-height:16px;margin:0 auto;}
.fide-table .live-fed-code {font-size:10px;font-weight:600;letter-spacing:.04em;line-height:1;color:#64748b;text-transform:uppercase;}
.dark .fide-table .live-fed-code {color:#94a3b8;}
.fide-table th.live-rating-heading {width:80px;}
.fide-table th.live-change,.fide-table td.live-change {width:68px;}
.fide-table th.live-change {white-space:nowrap;}
.fide-table .fide-trend-header {width:104px;}
.fide-table .fide-trend-header,.fide-table .fide-trend {text-align:center;vertical-align:middle;}
.fide-table .fide-trend>a {display:inline-flex;align-items:center;justify-content:center;width:88px;height:28px;vertical-align:middle;}
.fide-table .live-sparkline {margin:0;overflow:hidden;}
.fide-table .live-trend-label>span {white-space:nowrap;}
.fide-table .fide-age {width:54px;text-align:center;}
.fide-table .fide-official {width:72px;}
.fide-table .fide-games {width:70px;text-align:center;padding-left:6px;padding-right:6px;}
.fide-table .live-title {display:inline-block;flex-shrink:0;}
.fide-table .live-name a:not(.live-playing) {font-weight:600;}
.fide-table .live-score {font-size:15px;font-weight:700;letter-spacing:-.02em;color:var(--rating-ink);}
.fide-table tbody>tr>td {border-color:#edf1f5;}
.fide-table tbody>tr:hover {background:#f5faf8;}
.dark .fide-table tbody>tr>td {border-color:#334155;}
.dark .fide-table tbody>tr:hover {background:#243b37;}
.fide-table a:hover {text-decoration:underline;}
.fide-rankings .rating-change-badge {display:inline-flex;align-items:center;justify-content:center;min-width:2.6em;padding:3px 6px;border-radius:5px;line-height:1.4;font-size:12px;font-weight:600;white-space:nowrap;background:var(--rating-neutral);}
.fide-rankings .rating-change-badge.live-gain {color:var(--rating-green);background:var(--rating-green-soft);}
.fide-rankings .rating-change-badge.live-loss {color:var(--rating-red);background:var(--rating-red-soft);}
.fide-rankings .rating-change-badge.live-muted {color:var(--rating-muted);background:transparent;font-weight:400;}
.fide-games a {display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:3px 8px;border:1px solid #cce4da;border-radius:6px;background:var(--rating-green-soft);color:var(--rating-green);font-size:12px;font-weight:600;text-decoration:none;}
.fide-games a:hover {text-decoration:none;border-color:#047857;}
.dark .fide-games a {border-color:#285c4b;color:var(--rating-green);}
.fide-ranking-note {margin-top:10px;}
.fide-ranking-empty {padding:24px 12px;font-size:14px;}
.fide-trend-help {position:relative;display:inline-flex;align-items:center;gap:4px;cursor:help;text-align:left;}
.fide-trend-help>[role="tooltip"] {display:none;position:absolute;z-index:5;right:0;top:100%;background:#1f2937;color:white;padding:12px;border-radius:6px;width:230px;white-space:normal;line-height:1.5;text-align:left;}
.fide-trend-help:hover>[role="tooltip"],.fide-trend-help:focus>[role="tooltip"] {display:block;}
#fide-rankings-table {scroll-margin-top:96px;}
.dark .fide-ranking-heading p,.dark .fide-ranking-note,.dark .fide-ranking-freshness,.dark .fide-search-filters label {color:#9ca3af;}
.dark .fide-filter-tabs a,.dark .fide-category-links a,.dark .fide-pagination a,.dark .fide-search-filters input,.dark .fide-search-filters select {border-color:#4b5563;}
.dark .fide-filter-tabs a[aria-current="page"],.dark .fide-category-links a[aria-current="page"] {background:#065f46;border-color:#047857;color:#ecfdf5;}
.dark .fide-pagination [aria-current] {background:#d1d5db;color:#111827;}
.dark .fide-search-filters input,.dark .fide-search-filters select {background:#1f2937;color:#f3f4f6;}
.fide-rankings a:focus-visible,.fide-rankings input:focus-visible,.fide-rankings select:focus-visible,.fide-rankings button:focus-visible {outline:2px solid #059669;outline-offset:3px;}
.fide-rankings[data-discipline="rapid"] .live-score {color:#2563eb;}
.dark .fide-rankings[data-discipline="rapid"] .live-score {color:#93c5fd;}
.fide-table .live-player-line {flex-wrap:nowrap;}
.fide-table .live-player-line>a:not(.live-playing) {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fide-advanced-filters summary {display:flex;align-items:center;min-height:44px;padding:9px 14px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;cursor:pointer;}
.fide-advanced-filters[open] {flex-basis:100%;}
.fide-advanced-body {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;}
.fide-advanced-body label {display:block;}
.fide-advanced-body select {width:100%;}
.dark .fide-advanced-filters summary {border-color:#4b5563;}
.dark .fide-table .live-title {color:#9ca3af;}
.fide-mobile-meta {display:none;}
@media(min-width:1024px) {
 .fide-ranking-layout {grid-template-columns:minmax(0,47.5rem) minmax(18rem,1fr);gap:20px;align-items:start;}
 .fide-ranking-layout .featured-tournaments {max-width:none;}
}
@media(min-width:641px) and (max-width:1180px) {
 .fide-table .fide-official {display:none;}
}
@media(min-width:1100px){.fide-advanced-filters[open] {display:block;flex-basis:auto;}.fide-advanced-filters[open] .fide-advanced-body {display:flex;align-items:flex-end;gap:12px;margin-top:0;}.fide-advanced-body>div {min-width:0;}.fide-advanced-filters[open] summary {display:none;}.fide-advanced-body select {width:auto;}}
@media(max-width:900px){.fide-pagination {grid-template-columns:minmax(0,1fr);justify-items:center;}.fide-pagination>span,.fide-pagination>div {grid-column:1;text-align:center;}}
@media(max-width:640px){
 .fide-rankings {padding:16px 12px;}
 .fide-ranking-heading h1 {font-size:24px;}
 .fide-ranking-controls {gap:12px;}
 .fide-filter-tabs a,.fide-category-links a {padding:8px 11px;}
 .fide-search-field {min-width:100%;}
 .fide-search-filters>div:not(.fide-search-field) {flex:1 1 130px;}
 .fide-search-filters select {width:100%;}
 .fide-ranking-freshness {font-size:11px;}
 .fide-ranking-layout .live-ranking-main>.live-table-scroll>.fide-table {width:100%;min-width:0;table-layout:fixed;font-size:12px;}
 .fide-ranking-layout .live-ranking-main>.live-table-scroll>.fide-table .live-name {width:auto;min-width:0;}
 .fide-table th,.fide-table td {padding:.6rem .35rem;}
 .fide-table th:first-child,.fide-table td.live-rank {width:28px;padding-left:3px;padding-right:3px;}
 .fide-table th.live-rating-heading,.fide-table td.live-score {width:72px;white-space:normal;line-height:1.2;}
 .fide-table th.live-change,.fide-table td.live-change {width:46px;}
 .fide-table .live-fed,.fide-table .fide-trend-header,.fide-table .fide-trend,.fide-table .fide-age,.fide-table .fide-official,.fide-table .fide-games {display:none;}
 .fide-mobile-meta {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:5px;color:#64748b;font-size:10px;}
 .fide-mobile-meta .f24 {display:inline-block;line-height:0;height:16px;}
 .fide-mobile-meta .live-sparkline {width:56px;height:18px;}
 .fide-table .live-title {font-size:9px;margin-right:0;}
 .fide-table .live-player-line {gap:4px;}
 .dark .fide-mobile-meta {color:#9ca3af;}
}
