/* Flashscore-style group standings */
.gs-standings-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gs-table-block {
    background: #0b1920;
    border-radius: 4px;
    overflow: hidden;
}

.gs-table-scroll {
    overflow-x: auto;
}

.gs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
    min-width: 560px;
}

.gs-th {
    padding: 9px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8ea0ad;
    background: #0f222b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    user-select: none;
}

.gs-th-rank {
    width: 34px;
}

.gs-th-team {
    width: auto;
    text-align: left;
    padding-left: 10px;
}

.gs-th-pts {
    width: 42px;
}

.gs-th-form {
    width: 118px;
}

.gs-td {
    padding: 0 6px;
    height: 38px;
    text-align: center;
    color: #dce6ec;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.gs-row {
    transition: background-color 0.12s ease;
}

.gs-row:hover {
    background-color: rgba(255, 255, 255, 0.07);
    cursor: default;
}

.gs-row:hover .gs-team-name {
    color: #fff;
}

.gs-td-rank {
    width: 34px;
}

.gs-td-team {
    text-align: left;
    padding-left: 10px;
    overflow: hidden;
}

.gs-td-num {
    font-variant-numeric: tabular-nums;
    color: #c5d3dc;
}

.gs-td-pts {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.gs-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gs-team-cell .flag-badge-img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.gs-team-name {
    font-weight: 400;
    color: #eef4f7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 3px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: help;
}

.gs-rank-badge.gs-zone-qual {
    background: #0b60a9;
}

.gs-rank-badge.gs-zone-third {
    background: #008044;
}

.gs-rank-badge.gs-zone-out {
    background: rgba(255, 255, 255, 0.12);
    color: #9fb0bb;
}

.gs-gd-pos {
    color: #59c27a;
}

.gs-gd-neg {
    color: #e55353;
}

.gs-td-form {
    padding-right: 8px;
}

.gs-form-strip {
    display: inline-flex;
    gap: 2px;
    justify-content: flex-end;
    align-items: center;
}

.gs-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    color: #fff;
}

.gs-form-win {
    background: #008044;
}

.gs-form-draw {
    background: #c68400;
}

.gs-form-loss {
    background: #b42a2a;
}

.gs-form-unknown {
    background: rgba(255, 255, 255, 0.1);
    color: #8ea0ad;
}

.gs-tip {
    position: fixed !important;
    z-index: 99999 !important;
    max-width: 280px;
    padding: 8px 11px;
    border-radius: 4px;
    background: #233945;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f7fa;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
    text-align: center;
    white-space: normal;
}

.gs-tip strong {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.gs-tip .gs-tip-date {
    display: block;
    margin-top: 2px;
    color: #8ea0ad;
    font-size: 11px;
    font-weight: 400;
}

.gs-tip.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .gs-table {
        min-width: 520px;
        font-size: 12px;
    }

    .gs-td {
        height: 36px;
    }

    .gs-form-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
}
