:root {
    --green: #18a957;
    --green-dark: #0d7b3f;
    --navy: #071d3a;
    --navy-soft: #12345f;
    --white: #ffffff;
    --off-white: #f5f9f7;
    --line: #dbe7e1;
    --muted: #5d6f7a;
    --shadow: 0 18px 45px rgba(7, 29, 58, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navy);
    background:
        radial-gradient(circle at top left, rgba(24, 169, 87, 0.18), transparent 34rem),
        linear-gradient(180deg, #edf8f1 0%, var(--off-white) 42%, #ffffff 100%);
    line-height: 1.5;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--navy);
    color: var(--white);
    border-bottom: 5px solid var(--green);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
}

.logo-ball {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    font-size: 0.9rem;
    letter-spacing: 0;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14);
}

.logo-text {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.subtitle {
    margin: 0;
    color: #d9f5e5;
    font-size: 1rem;
    text-align: right;
}

.page-content {
    padding: 42px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--green-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4.7rem);
    color: var(--navy);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.hero-copy {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.countdown-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    color: var(--white);
    box-shadow: var(--shadow);
}

.countdown-section .eyebrow {
    color: #98f0bd;
}

.countdown-section h2 {
    color: var(--white);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    gap: 10px;
}

.countdown-item {
    display: grid;
    place-items: center;
    min-height: 86px;
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.countdown-item strong {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1;
}

.countdown-item span {
    margin-top: 8px;
    color: #d9f5e5;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.matches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.match-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(219, 231, 225, 0.8);
    box-shadow: var(--shadow);
}

.match-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--green), var(--navy-soft));
}

.match-time {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--green-dark);
    font-weight: 800;
    font-size: 0.94rem;
}

.match-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.team {
    min-width: 0;
    font-weight: 800;
    font-size: 1.06rem;
    overflow-wrap: anywhere;
}

.team:last-child {
    text-align: right;
}

.score {
    display: grid;
    place-items: center;
    height: 44px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 1.35rem;
}

.standings-section {
    margin-bottom: 30px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(7, 29, 58, 0.18);
}

.slider-button:hover,
.slider-button:focus-visible {
    background: var(--green-dark);
}

.groups-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 18px;
}

.group-panel {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--navy);
    color: var(--white);
    font-size: 0.86rem;
    text-transform: uppercase;
}

td:first-child,
th:first-child {
    width: 96px;
    text-align: center;
    font-weight: 800;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #f1fbf5;
}

.ad-banner {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f7fbf9;
    padding: 16px;
    overflow: hidden;
}

.ad-banner a {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ad-banner img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border: 0;
    border-radius: 10px;
}

@media (max-width: 860px) {
    .header-content,
    .hero {
        grid-template-columns: 1fr;
    }

    .header-content {
        display: grid;
        justify-items: start;
    }

    .subtitle {
        text-align: left;
    }

    .matches {
        grid-template-columns: 1fr;
    }

    .countdown-section {
        grid-template-columns: 1fr;
    }

    .countdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .section-heading {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .logo-ball {
        width: 42px;
        height: 42px;
        font-size: 0.78rem;
    }

    .logo-text {
        font-size: 1.22rem;
    }

    .page-content {
        padding-top: 28px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .countdown-section {
        padding: 18px 14px;
        gap: 16px;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .countdown-item {
        min-height: 78px;
    }

    .match-card {
        padding: 20px 16px;
        min-height: 150px;
    }

    .match-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .team,
    .team:last-child {
        text-align: center;
    }

    .score {
        width: 48px;
        margin: 0 auto;
    }

    .section-heading {
        display: grid;
    }

    .slider-button {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    th,
    td {
        padding: 13px 12px;
    }

    table {
        min-width: 620px;
    }

    .ad-banner {
        padding: 10px;
        min-height: 90px;
        border-radius: 14px;
    }
}
