/* =========================
   STANDINGS CARD
========================= */
.standings-card {
    /* overflow:hidden ELIMINADO — cortaba el dropdown del menú */
    border-radius: 18px;
}

.standings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.standings-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2a40;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.standings-title small {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted, #7a8ab0);
}

/* =========================
   DROPDOWN CATEGORIA (original)
========================= */
.cat-dropdown {
    position: relative;
}

.cat-icon-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    transition: background 0.15s;
}

.cat-icon-btn:hover {
    background: #e2e8f0;
}

.cat-badge {
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    line-height: 1.4;
}

.cat-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 8px;
    min-width: 180px;
    z-index: 100;
    border: 1px solid #e5e7eb;
}

.cat-dropdown-menu.open {
    display: block;
}

.cat-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s;
}

.cat-dropdown-item:hover {
    background: #f1f5f9;
    color: #1a2a40;
}

.cat-dropdown-item.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.cat-item-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    flex-shrink: 0;
}

/* =========================
   LEYENDA
========================= */
.standings-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 4px 0;
    font-size: 10px;
    color: var(--muted, #7a8ab0);
    letter-spacing: .03em;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

/* =========================
   EMPTY STATE
========================= */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 14px;
    font-weight: 500;
}

/* =========================
   VER COMPLETA LINK
========================= */
.ver-completa-link {
    font-size: 13px;
    color: var(--accent, #4f8ef7);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .table-modern thead {
        display: none;
    }

    .table-modern tbody tr {
        display: block;
        margin-bottom: 14px;
        border-radius: 16px;
        padding: 10px;
    }

    .table-modern tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        text-align: right !important;
    }

    .table-modern tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        text-align: left;
    }

    .table-modern tbody tr td:first-child,
    .table-modern tbody tr td:last-child {
        border-radius: 0;
    }
}
 @media (max-width: 360px) {
    .cat-dropdown {
        position: static;
    }

    .cat-dropdown-menu {
        position: fixed;
        right: 16px;
        left: 16px;
        top: auto;
        transform: none;
        width: auto;
        min-width: unset;
    }
}