/* TOP BAR */
.topbar {
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
}

.topbar .back-btn {
    position: static;
    top: auto;
    left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.topbar .back-btn:hover {
    color: white;
    background: none;
    border: none;
}

.topbar-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-left: auto;
}

.topbar-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.1em;
    letter-spacing: 1px;
    color: #cc0000;
}



.classification-container {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 30px;
    padding: 30px;
}

.standings-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
}

.standings-scroll:focus-within {
    outline: 2px solid rgba(204, 0, 0, 0.35);
    outline-offset: 6px;
    border-radius: 16px;
}

.group-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    color: #cc0000;
    margin: 30px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(204, 0, 0, 0.3);
}

.group-title:first-child {
    margin-top: 0;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
    min-width: 640px;
}

.standings-table thead {
    background: linear-gradient(135deg, #cc0000 0%, #8b0000 100%);
}

.standings-table th {
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
}

.standings-table th.position {
    width: 50px;
    text-align: center;
}

.standings-table th.team-name {
    text-align: left;
}

.standings-table th.stat {
    width: 60px;
    text-align: center;
}

.standing-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.standing-row:hover {
    background: rgba(204, 0, 0, 0.08);
}

.standing-row:last-child {
    border-bottom: none;
}

.standings-table td {
    padding: 16px 12px;
    color: rgba(255, 255, 255, 0.9);
}

.standings-table td.position {
    text-align: center;
    font-weight: 700;
    color: #cc0000;
    width: 50px;
}

.standings-table td.team-name {
    font-weight: 600;
    color: #ffffff;
    text-align: left;
}

.standings-table td.stat {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    width: 60px;
}

.standings-table td.points {
    font-weight: 700;
}

.standings-table td.saldo {
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
}

.standings-table td.saldo.positivo {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.standings-table td.saldo.negativo {
    color: #cc0000;
    background: rgba(204, 0, 0, 0.1);
}

/* Medal highlights */
.standing-row.gold {
    background: rgba(212, 175, 55, 0.08);
}

.standing-row.silver {
    background: rgba(192, 192, 192, 0.08);
}

.standing-row.bronze {
    background: rgba(205, 127, 50, 0.08);
}

@media (max-width: 768px) {
    .back-btn {
        top: 20px;
        left: 20px;
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .topbar {
        padding: 12px 16px;
        gap: 12px;
    }

    .topbar-logo {
        width: 44px;
        height: 44px;
    }

    .topbar-title {
        font-size: 1em;
        letter-spacing: 0.6px;
    }

    .header {
        padding: 30px 20px;
    }

    .classification-container {
        padding: 20px;
        border-radius: 16px;
    }

    .standings-table {
        font-size: 0.85em;
        min-width: 600px;
    }

    .standings-table th,
    .standings-table td {
        padding: 12px 8px;
    }

    .standings-table th.stat,
    .standings-table td.stat {
        width: 50px;
        font-size: 0.9em;
    }

    .standings-table th.position,
    .standings-table td.position {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .classification-container {
        padding: 16px;
    }

    .standings-table {
        min-width: 520px;
        font-size: 0.82em;
    }

    /* Mantém o essencial visível no celular */
    .col-jogos,
    .col-derrotas,
    .col-saldo {
        display: none;
    }
}
