body {
    color: white;
    margin: 0;
    font-family: Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}


main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 16px;
    line-height: 1.6;
}

h1{
    color: black;
    text-align: center;
}
p, li, h1, h2, h3,  h4, h5, h6 {
    color: black;
}
main a:link {
    color: blue;
    text-decoration: underline;
}

main a:visited {
    color: purple;
    text-decoration: underline;
}

main a:hover,
main a:focus {
    color: grey;
}



main a:active {
    color: blue;
}

.season-link {
    display: block;
    text-align: center;
    color: black;
    text-decoration: none;
}

.season-link:link,
.season-link:visited,
.season-link:active {
    color: black;
    text-decoration: none;
}

.season-link:hover,
.season-link:focus {
    color: grey;
    text-decoration: none;
}

.Matches {
    margin-top: 20px;
    text-align: center;
}

.match-date {
    font-weight: bold;
    margin-bottom: 6px;
}

.league-card {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    margin: 18px 0 34px;
    overflow: hidden;
}

.league-card-header {
    align-items: center;
    background: linear-gradient(90deg, #07111f, #173a69 70%, #d11972);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
}

.league-card-header p {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.league-card-header span {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    text-transform: uppercase;
}

.league-tabs {
    background-color: #f3f6fa;
    border-bottom: 1px solid #d8dee8;
    display: flex;
    gap: 8px;
    padding: 10px 14px;
}

.league-tab {
    border-radius: 999px;
    color: #273244;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    padding: 8px 12px;
}

.league-tab.active {
    background-color: #07111f;
    color: white;
}

.league-table-wrap {
    overflow-x: auto;
}

.LeagueTable {
    border-collapse: collapse;
    color: #111827;
    min-width: 640px;
    width: 100%;
}

.LeagueTable th,
.LeagueTable td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
}

.LeagueTable thead th {
    background-color: #ffffff;
    color: #4b5563;
    font-size: 12px;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

.LeagueTable thead th:nth-child(2),
.LeagueTable tbody td:nth-child(2) {
    text-align: left;
}

.LeagueTable tbody th,
.LeagueTable tbody td {
    background-color: #ffffff;
    font-size: 15px;
    text-align: center;
}

.LeagueTable tbody tr:hover th,
.LeagueTable tbody tr:hover td {
    background-color: #f4f8ff;
}

.LeagueTable tbody tr:nth-child(6) th,
.LeagueTable tbody tr:nth-child(6) td {
    border-bottom: 3px solid #cbd5e1;
}

.LeagueTable tbody tr:last-child th,
.LeagueTable tbody tr:last-child td {
    border-bottom: 0;
}

.leader-row th[scope="row"] {
    border-left: 4px solid #16a34a;
}

.contender-row th[scope="row"] {
    border-left: 4px solid #d11972;
}

.danger-row th[scope="row"] {
    border-left: 4px solid #dc2626;
}

.club-badge {
    background-color: #07111f;
    border-radius: 4px;
    color: white;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    margin-right: 10px;
    min-width: 34px;
    padding: 6px 5px;
    text-align: center;
}

.league-updated {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 13px;
    margin: 0;
    padding: 10px 14px;
}

.news-card {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
    margin: 18px 0 30px;
    overflow: hidden;
}

.news-card-header {
    align-items: center;
    background: #111827;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
}

.news-card-header p {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.news-card-header span {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    text-transform: uppercase;
}

.news-card-body {
    background-color: #ffffff;
    padding: 16px;
}

.news-feature {
    align-items: flex-start;
    display: flex;
    gap: 18px;
}

.news-thumbnail {
    flex: 0 0 220px;
    margin: 0;
}

.news-thumbnail img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.news-thumbnail figcaption {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 6px;
}

.news-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.NewsDetails {
    align-items: flex-start;
    display: flex;
    gap: 18px;
}

.NewsThumbnail {
    display: block;
    flex: 0 0 220px;
    margin: 0;
}

.NewsThumbnail a {
    display: block;
}

.NewsThumbnail img,
.article-image img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.NewsThumbnail figcaption {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 6px;
}

.NewsSummary {
    flex: 1 1 auto;
    min-width: 0;
}

.NewsID {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.35;
    margin: 0 0 6px;
}

.NewsDetails .news-meta {
    margin: 0 0 10px;
}

.article-image {
    margin: 18px 0;
}

.article-image figcaption {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 6px;
}

.ArticlePage {
    max-width: 980px;
    padding: 0 24px;
}

.ArticleLayout {
    max-width: 820px;
}

.ArticleHeader {
    margin: 46px 0 34px;
}

.ArticleHeader h1 {
    color: #3f4752;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.22;
    margin: 0 0 18px;
    text-align: left;
}

.ArticleStandfirst {
    color: #273244;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 36px;
}

.ArticleByline {
    margin-bottom: 34px;
}

.ArticleByline p {
    color: #273244;
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
}

.ArticleByline strong {
    color: #0057ff;
}

.ArticleDate {
    color: #4b5563;
    font-size: 14px;
    margin: 0;
}

.ArticleHero {
    margin: 0 0 28px;
}

.ArticleHero img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.ArticleHero figcaption {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 8px;
}

.ArticleBody {
    max-width: 720px;
}

.ArticleBody p {
    color: #111827;
    font-size: 18px;
    line-height: 1.65;
}

.news-card-body h2,
.news-card-body h3 {
    margin-top: 0;
}

.news-card-body p:last-child,
.news-card-body ul:last-child {
    margin-bottom: 0;
}

.news-list {
    margin: 0 0 14px;
    padding-left: 20px;
}

.news-meta,
.source-list,
.analysis-note {
    color: #4b5563;
    font-size: 14px;
}

.news-link {
    display: inline-block;
    font-weight: bold;
    margin-top: 2px;
}

.controversy-card {
    background-color: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    margin: 18px 0 30px;
    padding: 16px;
}

.controversy-card p:first-child {
    margin-top: 0;
}

.controversy-card ul {
    margin-bottom: 0;
}

.Menu {
    width: 100%;
    margin: 0;
    background-color: #000000;
    border-collapse: collapse;
}

.Menu tr {
    display: flex;
    justify-content: center;
}

.Menu td {
    padding: 12px 20px;
    text-align: center;
}

.Menu a:link,
.Menu a:visited,
.Menu a:active,
.Footer a:link,
.Footer a:visited,
.Footer a:active {
    color: white;
    text-decoration: none;
}

.Menu a:hover,
.Menu a:focus,
.Footer a:hover,
.Footer a:focus {
    color: grey;
}


#logo {
    display: block;
    margin: 0 auto;
}
.Footer {
    width: 100%;
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 18px 0;
    line-height: 1.5;
}

.Footer a {
    display: inline-block;
    margin-bottom: 8px;
}

.Footer p {
    color: white;
    margin: 0;
}

@media (max-width: 640px) {
    main {
        margin: 14px auto;
        padding: 0 12px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 21px;
    }

    #logo {
        max-height: 260px;
        object-fit: contain;
    }

    .Menu tr {
        flex-wrap: wrap;
    }

    .Menu td {
        padding: 10px 14px;
    }

    .league-card {
        border-radius: 6px;
        margin: 14px 0 26px;
    }

    .league-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 13px 14px;
    }

    .league-card-header p {
        font-size: 17px;
    }

    .league-table-wrap {
        overflow-x: visible;
    }

    .LeagueTable {
        min-width: 0;
    }

    .LeagueTable thead {
        display: none;
    }

    .LeagueTable,
    .LeagueTable tbody,
    .LeagueTable tr,
    .LeagueTable th,
    .LeagueTable td {
        display: block;
        width: 100%;
    }

    .LeagueTable tbody tr {
        display: grid;
        gap: 8px;
        grid-template-columns: 54px repeat(3, minmax(0, 1fr));
        padding: 12px;
    }

    .LeagueTable th,
    .LeagueTable td,
    .LeagueTable tbody tr:nth-child(6) th,
    .LeagueTable tbody tr:nth-child(6) td {
        border-bottom: 0;
    }

    .LeagueTable tbody th[scope="row"] {
        align-items: center;
        background-color: #f8fafc;
        border-left-width: 4px;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        font-size: 18px;
        grid-column: 1;
        grid-row: 1 / span 2;
        justify-content: center;
        padding: 6px 4px;
    }

    .LeagueTable tbody th[scope="row"]::before {
        color: #64748b;
        content: "Pos";
        font-size: 10px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .LeagueTable tbody td:nth-child(2) {
        align-items: center;
        display: flex;
        font-size: 16px;
        font-weight: bold;
        grid-column: 2 / -1;
        grid-row: 1;
        min-width: 0;
        padding: 0;
        white-space: normal;
    }

    .LeagueTable tbody td:nth-child(3),
    .LeagueTable tbody td:nth-child(4),
    .LeagueTable tbody td:nth-child(5) {
        background-color: #f8fafc;
        border-radius: 6px;
        color: #111827;
        font-size: 15px;
        padding: 7px 4px;
        text-align: center;
    }

    .LeagueTable tbody td:nth-child(3)::before,
    .LeagueTable tbody td:nth-child(4)::before,
    .LeagueTable tbody td:nth-child(5)::before {
        color: #64748b;
        display: block;
        font-size: 10px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .LeagueTable tbody td:nth-child(3)::before {
        content: "Pld";
    }

    .LeagueTable tbody td:nth-child(4)::before {
        content: "GD";
    }

    .LeagueTable tbody td:nth-child(5)::before {
        content: "Pts";
    }

    .club-badge {
        flex: 0 0 auto;
    }

    .league-updated {
        font-size: 12px;
        padding: 9px 12px;
    }

    .news-card {
        border-radius: 6px;
        margin: 14px 0 24px;
    }

    .news-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 12px 14px;
    }

    .news-card-header p {
        font-size: 17px;
    }

    .news-card-body {
        padding: 14px;
    }

    .news-feature {
        display: block;
    }

    .news-thumbnail {
        margin-bottom: 14px;
    }

    .NewsDetails {
        display: block;
    }

    .NewsThumbnail {
        margin-bottom: 12px;
    }

    .controversy-card {
        border-radius: 6px;
        margin: 14px 0 24px;
        padding: 14px;
    }

    .ArticlePage {
        padding: 0 16px;
    }

    .ArticleHeader {
        margin: 28px 0 24px;
    }

    .ArticleHeader h1 {
        font-size: 31px;
        line-height: 1.25;
    }

    .ArticleStandfirst {
        font-size: 17px;
        margin-bottom: 28px;
    }

    .ArticleBody p {
        font-size: 16px;
    }
}
