.standings-section {
    margin: 2.5rem 0;
}
.goals-count { font-size: 1.2rem; font-weight: 700; color: var(--primary); font-family: var(--font-display); }

.standings-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.standings-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 600px;
    color: var(--text);
}

.standings-table thead {
    border-bottom: 2px solid var(--primary);
}

.standings-table th {
    text-align: left;
    padding: 0.5rem 0.3rem;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.standings-table td {
    padding: 0.5rem 0.3rem;
    border-bottom: 1px solid var(--card-border);
    vertical-align: middle;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

/* Colunas de posição */
.standings-table .pos {
    font-weight: 700;
    text-align: center;
    width: 30px;
}

/* Zonas de classificação */
.standings-table .pos-1,
.standings-table .pos-2,
.standings-table .pos-3,
.standings-table .pos-4 { color: #00d4ff; }
.standings-table .pos-5,
.standings-table .pos-6 { color: var(--win); }
.standings-table .pos-18,
.standings-table .pos-19,
.standings-table .pos-20 { color: #ff4444; }

/* Time com escudo */
.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.standings-table .team-shield {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.standings-table .team-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Forma recente (bolinhas) */
.form-balls {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.form-ball {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
}

.form-ball.win {
    background: var(--win, #22c55e);
}
.form-ball.draw {
    background: #ffa726;
}
.form-ball.loss {
    background: #f44336;
}

/* Números alinhados */
.standings-table td:nth-child(3),
.standings-table td:nth-child(4),
.standings-table td:nth-child(5),
.standings-table td:nth-child(6),
.standings-table td:nth-child(7),
.standings-table td:nth-child(8),
.standings-table td:nth-child(9),
.standings-table td:nth-child(10) {
    text-align: center;
}

/* Responsivo */
@media (max-width: 768px) {
    .standings-card {
        padding: 1rem 0.5rem;
    }
    .standings-table {
        font-size: 0.75rem;
        min-width: 480px;
    }
    .standings-table .team-shield {
        width: 22px;
        height: 22px;
    }
    .standings-table .team-name {
        font-size: 0.8rem;
    }
    .form-ball {
        width: 18px;
        height: 18px;
        font-size: 0.5rem;
    }
}
 /* ========================================
   TABELA RÁPIDA - ZONAS
   ======================================== */
.pos-g4 { color: #00d4ff; font-weight: 700; }
.pos-g6 { color: var(--win); font-weight: 600; }
.pos-z4 { color: #ff4444; font-weight: 700; }

/* Placeholder para escudo (enquanto não temos a imagem) */
.team-shield-placeholder {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Forma desconhecida */
.form-ball.unknown {
    background: #666;
    color: #fff;
}

.h2h-summary {
    padding: 0.2rem 0;
}
.h2h-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.h2h-stats div {
    font-size: 0.95rem;
}
.h2h-stats strong {
    color: var(--primary);
}
.h2h-recent {
    list-style: none;
    padding: 0;
}
.h2h-recent li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.h2h-recent li strong {
    color: var(--primary);
    font-weight: 700;
}
.h2h-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-left: auto;
}
@media (max-width: 480px) {
    .h2h-stats {
        grid-template-columns: 1fr;
    }
}
