/* --- Reseteo básico y Fuente --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0d1117; /* Fondo oscuro principal */
    color: #c9d1d9; /* Color de texto principal (claro) */
    margin: 0;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* --- Contenedor de la Tabla --- */
.container {
    background-color: #161b22; /* Fondo de la "tarjeta" */
    border: 1px solid #30363d; /* Borde sutil */
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
    padding: 25px 30px;
}

h1 {
    color: #ffffff;
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* --- Estilo de la Tabla --- */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1em;
}

/* --- Encabezado de la Tabla (THEAD) --- */
.standings-table thead th {
    background-color: #161b22; /* Mismo fondo que la tarjeta */
    color: #8b949e; /* Color de texto de encabezado (gris) */
    padding: 12px 15px;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #30363d; /* Separador del cuerpo */
    text-align: right; /* Alineación por defecto: derecha */
}

/* 'Posición' y 'Equipo' alineados diferente */
.standings-table thead th:first-child { /* Posición */
    text-align: center;
}
.standings-table thead th:nth-child(2) { /* Equipo */
    text-align: left;
}

/* --- Cuerpo de la Tabla (TBODY) --- */
.standings-table tbody td {
    padding: 14px 15px;
    border-bottom: 1px solid #21262d; /* Línea separadora de fila */
    text-align: right; /* Alineación por defecto: derecha */
    vertical-align: middle;
}

/* 'Posición' centrado y en negrita */
.standings-table tbody td:first-child {
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    width: 50px;
}

/* 'Equipo' a la izquierda y en negrita */
.standings-table tbody td:nth-child(2) {
    text-align: left;
    font-weight: 600;
    color: #ffffff;
}

/* Columna de 'Puntos' más gruesa */
.standings-table tbody td:nth-child(3) {
    font-weight: 700;
    color: #ffffff;
}

/* Efecto hover en filas */
.standings-table tbody tr:hover {
    background-color: #21262d; /* Color de fondo al pasar el ratón */
}

/* --- Resaltado de Filas (como en la imagen) --- */
.standings-table tr.row-top-1 td {
    font-weight: 700;
}

/* Nota al pie */
.note {
    margin-top: 25px;
    font-size: 0.9em;
    color: #8b949e;
    text-align: center;
}

/* --- Sección de Duelos (CÓDIGO NUEVO) --- */
.duelos-container {
    margin-top: 40px;
    border-top: 2px solid #30363d; /* Separador */
    padding-top: 25px;
}

.duelos-container h2 {
    color: #ffffff;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
}

.duelos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.duelos-list li {
    background-color: #21262d; /* Fondo de la fila del duelo */
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
}

.duelos-list .team-left {
    text-align: left;
    flex: 1;
    color: #ffffff;
}

.duelos-list .team-right {
    text-align: right;
    flex: 1;
    color: #ffffff;
}

.duelos-list .vs-separator {
    color: #8b949e; /* Gris para el "VS" */
    font-size: 0.9em;
    font-weight: 700;
    margin: 0 15px;
}