.standings-hub {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}
.standings-hub h1 { font-size: 28px; margin-bottom: 24px; }

.league-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.league-card {
    background: var(--vd-white);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(27,42,94,0.08);
    border: 1px solid #eee;
    padding: 24px 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.league-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(27,42,94,0.14);
}
.league-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}
.league-card .league-name {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 15px;
    color: var(--vd-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.league-card .league-sport {
    font-family: var(--font-narrow);
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
/* Espacio de patrocinio arriba de las tarjetas de liga */
.standings-sponsor-banner {
    max-width: 1000px;
    margin: 0 auto 24px;
    text-align: center;
}
.standings-sponsor-banner img {
    max-width: 100%;
    border-radius: 8px;
}

/* ---- Vista de detalle de una liga ---- */
.standings-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}
.standings-back {
    display: inline-block;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--vd-navy);
    text-decoration: none;
    margin-bottom: 16px;
}
.standings-back:hover { color: var(--vd-red); }

.standings-league-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.standings-league-header img { width: 48px; height: 48px; object-fit: contain; }
.standings-league-header h1 { font-size: 24px; margin: 0; }

.standings-season-select-wrap { margin-bottom: 20px; }
.standings-season-select {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 9px 14px;
    border: 1px solid #dcdde3;
    border-radius: 6px;
    background: white;
    color: var(--vd-ink);
    min-width: 220px;
}

.standings-group { margin-bottom: 28px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(27,42,94,0.08); }
.standings-group-title {
    background: var(--vd-navy);
    color: white;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
}
.standings-table { width: 100%; border-collapse: collapse; background: white; }
.standings-table thead th {
    background: #f2f3f5;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
    text-align: center;
    padding: 10px 8px;
    border-bottom: 1px solid #e8e9ec;
}
.standings-table thead th:nth-child(2) { text-align: left; }
.standings-table td {
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
    border-bottom: 1px solid #f2f3f5;
}
.standings-table tr:last-child td { border-bottom: none; }
.standings-table .st-pos { font-weight: 700; color: var(--vd-navy); width: 30px; white-space: nowrap; }
.st-round-trend { display: inline-flex; align-items: center; gap: 1px; font-size: 10px; font-weight: 700; margin-left: 4px; vertical-align: middle; }
.st-round-trend--up { color: #1a9c4a; }
.st-round-trend--down { color: #d63333; }
.standings-table .st-team {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-condensed);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}
.standings-table .st-team img { width: 26px; height: 26px; object-fit: contain; }
.standings-table .st-points { font-weight: 800; color: var(--vd-navy); }
.hidden { display: none !important; }

@media (max-width: 600px) {
    .standings-table { font-size: 11px; }
    .standings-table td, .standings-table thead th { padding: 8px 4px; }
    .standings-table .st-team img { width: 20px; height: 20px; }
}

/* ---- Vista Wild Card (lideres + comodin con corte) ---- */
.standings-wildcard-note {
    padding: 10px 16px;
    background: #f7f8fa;
    color: #777;
    font-size: 12px;
}
.standings-wildcard-subtitle {
    padding: 10px 16px 6px;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vd-navy);
    border-top: 1px solid #e8e9ec;
}
.st-group-tag {
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: none;
    font-size: 10px;
    color: #999;
    margin-left: 6px;
}
.wc-cutoff-after td {
    border-bottom: 2px dashed var(--vd-red);
}

/* ---- Pestañas de standings (Tabla / Wild Card, etc.) ---- */
.standings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e9ec;
}
.standings-tab {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    color: #888;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.standings-tab:hover { color: var(--vd-navy); }
.standings-tab.active {
    color: var(--vd-navy);
    border-bottom-color: var(--vd-red);
}

/* ---- Liguilla (bracket proyectado) ---- */
.bracket-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 20px 16px 28px;
}
.bracket-col {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bracket-col-title {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vd-navy);
    border-bottom: 2px solid var(--vd-red);
    padding-bottom: 6px;
}
.bracket-match-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 4px;
    padding-left: 2px;
}
.bracket-match-box {
    background: var(--vd-white);
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(27,42,94,0.06);
}
.bracket-team {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}
.bracket-team:first-child {
    border-bottom: 1px solid #eee;
}
.bracket-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.bracket-seed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--vd-navy);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}
.bracket-seed--tbd {
    background: #ccc;
}
.bracket-team-name {
    font-size: 13px;
    font-weight: 700;
    color: #222;
}
.bracket-team--tbd .bracket-team-name {
    font-style: italic;
    font-weight: 500;
    color: #999;
}


/* ---- Indicador de partido en vivo dentro de standings ---- */
.st-row-live {
    background: #f3fbf5;
}
.st-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #1a9e4c;
    color: #fff;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    vertical-align: middle;
}
.st-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: st-live-pulse 1.4s infinite;
}
@keyframes st-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.st-trend {
    display: inline-flex;
    font-size: 9px;
    line-height: 1;
}
.st-trend--up { color: #baf5cd; }
.st-trend--down { color: #ffc9c9; }
.st-trend--same { color: #d8f0e0; }

@media (max-width: 600px) {
    .st-live-badge { font-size: 9px; padding: 2px 6px; margin-left: 4px; }
}


/* ---- Selector de jornada (tabla historica) ---- */
.standings-round-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.standings-round-select-wrap label {
    color: #666;
}
