/* FULBO 2.29 — Navegación por países + posiciones de cupos y descensos */
.league-sidebar-heading{font-size:10px;font-weight:850;letter-spacing:1.55px;color:var(--muted);margin:17px 10px 8px;line-height:1.3}
.league-featured{display:grid;gap:1px;margin-bottom:7px}
.league-featured .league-link{min-height:30px;padding:5px 10px!important;font-size:12px;border-radius:6px}
.league-country-list{min-width:0}
.league-country{border:0;border-bottom:1px solid var(--line2);min-width:0;width:100%;overflow:hidden}
.league-country>summary{display:flex;align-items:center;gap:9px;min-height:39px;padding:8px 10px;cursor:pointer;list-style:none;color:var(--ink);font-weight:800;text-transform:uppercase;letter-spacing:.2px;font-size:11px;user-select:none}
.league-country>summary::-webkit-details-marker{display:none}
.league-country>summary:hover{background:var(--panel2);border-radius:6px}
.league-country>summary>span:nth-child(2){min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.league-country-flag{width:22px;min-width:22px;font-size:16px;display:flex;align-items:center;justify-content:center}
.league-country-flag img{width:23px;height:16px;object-fit:contain}
.league-country-count{font-size:9px;color:var(--muted);font-weight:700;min-width:13px;text-align:right}
.league-country-chevron{height:14px;width:14px;flex:0 0 14px;transition:transform .2s}
.league-country-chevron svg{width:14px;height:14px}
.league-country[open] .league-country-chevron{transform:rotate(180deg)}
.league-country-contents{display:grid;gap:1px;padding:1px 1px 7px 12px}
.league-country-contents .league-link{font-size:11.7px!important;padding:6px 8px!important;min-height:30px!important;border-radius:5px}
.league-country .league-name{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.sidebar .league-flag img.flag-england{width:22px;height:15px;object-fit:contain}
.sidebar-scroll,.sidebar .league-nav,.sidebar .league-country-list{overflow-x:hidden!important}
/* Clasificación: bandas laterales y números resaltados, sin superposiciones */
.standings-table .zoned-rank{display:inline-flex!important;min-width:22px!important;width:auto;height:22px;padding:0 4px;border-radius:5px;font-size:11px;align-items:center;justify-content:center;font-weight:850}
.standings-table tr[class*="zone-"] td:first-child{box-shadow:inset 3px 0 0 var(--zone-hue)}
.standings-table tr.zone-ucl,.standings-table .zone-ucl{--zone-hue:#367fd2}
.standings-table tr.zone-lib,.standings-table .zone-lib{--zone-hue:#20864f}
.standings-table tr.zone-europe,.standings-table .zone-europe{--zone-hue:#3aa59c}
.standings-table tr.zone-south,.standings-table .zone-south{--zone-hue:#369fc6}
.standings-table tr.zone-pre,.standings-table .zone-pre{--zone-hue:#d5a52e}
.standings-table tr.zone-playoff,.standings-table .zone-playoff{--zone-hue:#9575d6}
.standings-table tr.zone-playout,.standings-table .zone-playout{--zone-hue:#d08a34}
.standings-table tr.zone-down,.standings-table .zone-down{--zone-hue:#d94c54}
.standings-table tr.zone-promote,.standings-table .zone-promote{--zone-hue:#2ca58c}
.standings-table tr[class*="zone-"] .zoned-rank{background:var(--zone-hue)!important;color:#fff!important;border:none}
.standings-table tr.zone-down td:first-child{background:rgba(217,76,84,.1)}
.standings-table tr.zone-playout td:first-child{background:rgba(208,138,52,.1)}
.standings-zones-legend{display:flex;align-items:center;gap:5px 13px;flex-wrap:wrap;padding:9px 13px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted);line-height:1.3}
.zone-legend-item{display:inline-flex;align-items:center;gap:5px;white-space:normal}
.zone-legend-square{width:9px;height:9px;border-radius:2px;display:inline-block;background:#6b7280;flex:0 0 9px}
.zone-legend-square.zone-ucl{background:#367fd2}.zone-legend-square.zone-lib{background:#20864f}
.zone-legend-square.zone-europe{background:#3aa59c}.zone-legend-square.zone-south{background:#369fc6}
.zone-legend-square.zone-pre{background:#d5a52e}.zone-legend-square.zone-playoff{background:#9575d6}
.zone-legend-square.zone-playout{background:#d08a34}.zone-legend-square.zone-down{background:#d94c54}
.zone-legend-square.zone-promote{background:#2ca58c}
.standings-table tr[class*="zone-"] td{background:transparent}
.standings-table tr[class*="zone-"]:hover td{background:var(--panel2)}
@media(max-width:760px){
 .standings-zones-legend{gap:5px 9px;padding:8px 6px;font-size:9px}
 .standings-table .zoned-rank{min-width:21px!important;height:21px;font-size:10px}
 .sidebar-scroll .league-country>summary{min-height:40px}
}

/* Contraste suficiente para posiciones sin cupos, especialmente tema claro. */
[data-theme='light'] .main-content .standings-table .table-rank:not(.zoned-rank){background:#e7eeeb!important;color:#365047!important}
[data-theme='dark'] .main-content .standings-table .table-rank:not(.zoned-rank){background:#293844!important;color:#d2e1e5!important}
.main-content .standings-table .table-rank:not(.zoned-rank){font-weight:700}
