* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eef3fb;
    color: #071733;
}

.top-nav {
    height: 90px;
    background: #005b96;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 45px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
}

nav button {
    background: transparent;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: 700;
    margin-left: 25px;
    cursor: pointer;
}

nav button:hover {
    color: #ffcc00;
}

.match-strip {
    background: #eef3fb;
    padding: 35px 30px;
    display: flex;
    gap: 25px;
    overflow-x: auto;
    justify-content: center;
}

.match-pill {
    min-width: 150px;
    height: 150px;
    background: white;
    color: #071733;
    border-radius: 50%;
    border: 6px solid #005b96;
    outline: 4px solid #ef2b55;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hero {
    width: 95%;
    margin: 25px auto;
    min-height: 330px;
    background:
        linear-gradient(90deg, #005b96 0%, #005b96 48%, rgba(0,91,150,0.75) 100%),
        url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1400&q=80");
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    padding: 60px;
    border-radius: 4px;
}

.hero h1 {
    font-size: 58px;
    margin: 10px 0;
}

.hero p {
    font-size: 22px;
    max-width: 650px;
}

.tag {
    font-weight: 800;
    color: #ffcc00;
}

.compare-box {
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    text-align: center;
    background: white;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.compare-box h2 {
    color: #005b96;
}

input {
    padding: 14px 18px;
    margin: 8px;
    border-radius: 30px;
    border: 2px solid #d5dfeb;
    width: 220px;
    outline: none;
}

input:focus {
    border-color: #005b96;
}

.compare-box button {
    padding: 14px 25px;
    border: none;
    border-radius: 30px;
    background: #ef2b55;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.compare-box button:hover {
    background: #005b96;
}

#output {
    width: 90%;
    max-width: 1100px;
    margin: 35px auto;
}

#output h2 {
    color: #005b96;
    text-align: center;
    font-size: 32px;
}

.cards {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 18px;
    width: 250px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-top: 6px solid #ef2b55;
}

.card h3 {
    color: #005b96;
    font-size: 24px;
}

.card p {
    font-size: 19px;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    color: #071733;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0,0,0,0.16);
}

th {
    background: #005b96;
    color: white;
    padding: 16px;
    text-transform: uppercase;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e5eaf0;
    text-align: center;
    font-weight: 600;
}

tr:hover {
    background: #f4f8fd;
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .hero {
        padding: 30px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .match-strip {
        justify-content: flex-start;
    }

    input {
        width: 90%;
    }
}

.featured-match {
    width: 95%;
    margin: 25px auto;
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-content span {
    color: #ef2b55;
    font-weight: bold;
    text-transform: uppercase;
}

.featured-content h2 {
    color: #005b96;
    margin: 10px 0;
}

footer {
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    background: #005b96;
    color: white;
}

.chart-card {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, #041c32, #064663, #04293a);
    box-shadow: 0 0 20px rgba(0,229,255,0.3);
    height: 500px;
    display: none;
}

.radar-card {
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, #041c32, #064663, #04293a);
    box-shadow: 0 0 20px rgba(255,204,0,0.25);
    height: 480px;
    display: none;
}

.summary-cards {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.summary-card {
    background: white;
    color: #071733;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-top: 6px solid #ef2b55;
}

.summary-card h3 {
    color: #005b96;
    font-size: 30px;
    margin: 10px 0;
}

.dynamic-matches {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
}

.dynamic-matches h2 {
    color: #005b96;
    text-align: center;
    font-size: 32px;
}

.match-cards {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
    justify-content: center;
}

.match-card {
    min-width: 160px;
    max-width: 160px;

    background: linear-gradient(
        135deg,
        #ffffff,
        #f7f9fc
    );

    border-radius: 20px;

    padding: 15px;

    text-align: center;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.10);

    border-top: 4px solid #005b96;

    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 30px rgba(0,0,0,0.15);
}

.match-card h3 {
    font-size: 14px;
    color: #005b96;
    margin-bottom: 10px;
}

.match-card p {
    font-size: 26px;
    font-weight: 900;
    color: #ef2b55;
    margin: 8px 0;
}

.match-card span {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.match-year {
    font-size: 12px;
    color: #005b96;
    font-weight: bold;
    margin-bottom: 8px;
}

.score {
    font-size: 32px;
    font-weight: 900;
    color: #ef2b55;
    margin: 12px 0;
}

.score span {
    color: #888;
}

.teams {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

/* Final polish */
section {
    scroll-margin-top: 100px;
}

button {
    transition: 0.3s ease;
}

.match-strip::-webkit-scrollbar,
.match-cards::-webkit-scrollbar {
    height: 8px;
}

.match-strip::-webkit-scrollbar-thumb,
.match-cards::-webkit-scrollbar-thumb {
    background: #005b96;
    border-radius: 20px;
}

.summary-card:hover,
.card:hover,
.featured-match:hover {
    transform: translateY(-4px);
    transition: 0.3s ease;
}

@media (max-width: 900px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .match-cards {
        justify-content: flex-start;
    }
}

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

    .logo {
        font-size: 22px;
    }

    nav button {
        font-size: 14px;
        margin-left: 8px;
    }

    .chart-card,
    .radar-card {
        height: 380px;
    }
}