
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f5f7;
    color: #222;
}

header {
    background: #18212b;
    color: white;
    padding: 42px 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

h1 {
    margin: 0;
    font-size: 38px;
}

.tagline {
    margin: 4px 0 0;
    font-size: 15px;
    font-style: italic;
    opacity: .65;
}

header p {
    margin: 8px 0 0;
    font-size: 18px;
    opacity: .8;
}

.hero {
    background: white;
    margin-top: 30px;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.hero h2 {
    margin-top: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

nav {
    margin-top: 18px;
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a,
nav span {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

nav a:hover {
    text-decoration: underline;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.season-card {
    display: block;
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    color: #18212b;
    text-decoration: none;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

.season-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
}

.season-card strong {
    display: block;
    font-size: 32px;
}

.season-card span {
    display: block;
    margin-top: 8px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 700px) {
    .season-grid {
        grid-template-columns: 1fr;
    }
}

.championship {
    background: white;
    margin-top: 25px;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.championship h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.champion-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
}

.champion-grid > div {
    padding: 15px 18px;
    border-left: 4px solid #d9dde2;
}

.champion-grid > div:first-child {
    border-left-color: #c9a227;
}

.place {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.champion-grid strong {
    display: block;
    font-size: 19px;
}

@media (max-width: 700px) {
    .champion-grid {
        grid-template-columns: 1fr;
    }
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

th,
td {
    padding: 12px 22px;
    text-align: left;
    vertical-align: top;
}

th {
    font-weight: 700;
    border-bottom: 2px solid #d9dde2;
}

td {
    border-bottom: 1px solid #e5e8eb;
}

th:first-child,
td:first-child {
    width: 30%;
    overflow-wrap: anywhere;
}

th:nth-child(2),
td:nth-child(2) {
    width: 22%;
    overflow-wrap: anywhere;
}

.owner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.owner-card {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.owner-card a {
    color: #18212b;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.owner-card a:hover {
    text-decoration: underline;
}

.former {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

.section {
    background: white;
    margin-top: 30px;
    padding: 30px;
    border-radius: 12px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.card h3 {
    margin-top: 0;
}

.card strong {
    display: block;
    font-size: 36px;
    margin: 10px 0;
}

.recent {
    background: white;
    margin-top: 30px;
    padding: 30px;
    border-radius: 12px;
}

.season-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.season {
    background: #e9edf2;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    color: #18212b;
    text-decoration: none;
}

.season:hover {
    background: #dde3ea;
}


.home-logo {
    margin-top: 28px;
    text-align: center;
}

.home-logo img {
    display: block;
    width: 520px;
    height: 370px;
    object-fit: contain;
    margin: 0 auto;
}

.home-logo div {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #777;
}

@media (max-width: 700px) {
    .home-logo img {
        width: 90%;
        max-width: 460px;
        height: 320px;
    }
}

.logo-season {
    background: white;
    margin-top: 30px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.logo-season h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 26px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.logo-card {
    width: 500px;
    text-align: center;
}

.logo-card img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #f7f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 12px;
}

.logo-card h3 {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

@media (max-width: 700px) {
    .logo-card {
        width: 100%;
    }

    .logo-card img {
        height: 300px;
    }
}

footer {
    margin-top: 50px;
    padding: 30px 20px;
    background: #18212b;
    color: white;
    text-align: center;
}

@media (max-width: 700px) {
    .cards {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 30px;
    }
}

.rivalry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.rivalry-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.rivalry-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 20px;
}

.rivalry-card h3 span {
    color: #888;
    font-weight: 400;
    margin: 0 5px;
}

.rivalry-games {
    color: #777;
    margin-top: 0;
    font-size: 14px;
}

.rivalry-records {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.rivalry-owner {
    padding: 15px;
    background: #f4f5f7;
    border-radius: 8px;
}

.rivalry-owner strong {
    display: block;
    font-size: 16px;
}

.rivalry-owner span {
    display: block;
    margin-top: 7px;
    font-size: 24px;
    font-weight: 700;
}

.rivalry-owner small {
    display: block;
    margin-top: 4px;
    color: #777;
}

.rivalry-result {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e5e8eb;
    font-size: 14px;
}

.rivalry-result.tied {
    color: #777;
}

@media (max-width: 700px) {
    .rivalry-grid {
        grid-template-columns: 1fr;
    }

    .rivalry-records {
        grid-template-columns: 1fr;
    }
}


/* Keep player names readable on narrow screens */
.player-game-table td:nth-child(2),
.player-game-table th:nth-child(2) {
    overflow-wrap: normal;
    word-break: normal;
}

/* Mobile table fixes */
.player-game-table th:first-child,
.player-game-table td:first-child {
    width: auto;
    min-width: 58px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.biggest-wins-table th:first-child,
.biggest-wins-table td:first-child {
    width: auto;
    min-width: 58px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.biggest-wins-table th:nth-child(2),
.biggest-wins-table td:nth-child(2),
.biggest-wins-table th:nth-child(4),
.biggest-wins-table td:nth-child(4) {
    width: auto;
    min-width: 150px;
    overflow-wrap: normal;
    word-break: normal;
}

/* Record-book polish */

.card h3 a {
    color: #18212b;
    text-decoration: none;
    font-size: 20px;
}

.card h3 a:hover {
    text-decoration: underline;
}

table tbody tr {
    transition: background .12s ease;
}

table tbody tr:hover {
    background: #f7f8fa;
}

.record-note {
    margin-top: 18px;
    color: #777;
    font-size: 14px;
}

.back {
    display: inline-block;
    margin-bottom: 15px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.back:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .section {
        overflow-x: auto;
    }

    .section table {
        min-width: 680px;
    }

    nav {
        flex-wrap: wrap;
        gap: 14px 20px;
    }
}

