.results-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.results-page h1 {
    text-align: center;
    color: #004080;
    margin-bottom: 2rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.match-result {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f2f2f2;
}

.teams {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 0.5rem;
    text-align: center;
}

.team img {
    width: 60px;
    height: auto;
    margin-bottom: 0.3rem;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
}

.info {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}

.info_score {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    font-weight: bold;
}

.score-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Generatation NAV back to top */
.generation-nav {
    position: sticky;
    top: 0;
    background: #fff;
    padding: .5rem;
    border-bottom: 1px solid #ccccff;
    z-index: 5;
    display: flex;
    flex-direction: column;  /* stack gen-links and filter */
    align-items: flex-start; /* align everything to the left */
}

.generation-nav .gen-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .1rem;
    margin-top: .1rem;
}
.generation-nav a {
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: .5rem;
    border: 1px solid #ddd;
}
.gen-block { scroll-margin-top: 80px; margin-top: 2rem; }
.back-to-top { margin-top: .5rem; display: inline-block; font-size: .9em; }

.team-filter {
    margin: 0.25rem 0 0 0;
    padding: 0;
    text-align: left;
}
.team-filter select {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.team-filter label {
    font-size: 0.9rem;
    margin-right: 0.25rem;
}
.team-filter .reset-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f8f8;
    cursor: pointer;
}
.team-filter .reset-btn:hover {
    background: #eee;
}
