body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    padding: 1rem;
}

.header {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

select {
    padding: 8px 12px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.table-wrapper {
    max-width: 1000px;
    margin: auto;
    background: #fff;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th, td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

td.team {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

td.team img {
    width: 22px;
    height: 22px;
}

tr:hover {
    background: #f0f4f8;
}

.position {
    font-weight: bold;
}

@media (max-width: 600px) {
    th, td {
        font-size: 0.85rem;
        padding: 8px;
    }
}

.nav-tabs {
    max-width: 1000px;
    margin: 0 auto 1rem;
    display: flex;
    gap: 8px;
}

.nav-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 600;
    color: #2c3e50;
    background: #eaeef3;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-tabs a:hover {
    background: #dfe5ec;
}

.nav-tabs a.active {
    background: #2c3e50;
    color: #fff;
}

.form {
    display: flex;
    gap: 4px;
    justify-content: center;
    min-width: 120px;
}

.form span {
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.form .W { background: #27ae60; }
.form .D { background: #f39c12; }
.form .L { background: #e74c3c; }

td.col-form,
th.col-form {
    padding: 4px 6px;   /* was 10px 12px */
}

/* Team links in table */
td.team a {
    color: inherit;          /* use normal text colour */
    text-decoration: none;   /* remove underline */
    /*font-weight: 600;        /* optional: match table emphasis */
}

td.team a:hover {
    text-decoration: underline;  /* subtle hover, optional */
}

