* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #f5f7fa;
    color: #111827;
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.brand {
    font-weight: 800;
    letter-spacing: .04em;
}

.brand span {
    font-weight: 400;
}

.site-header nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
}

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

.hero,
.match-hero {
    padding: 72px 0 46px;
}

.hero h1,
.match-hero h1 {
    margin: 6px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: -.04em;
    line-height: 1;
}

.match-hero h1 span {
    color: #9ca3af;
    font-weight: 400;
}

.hero p {
    max-width: 650px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    color: #6b7280;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 4px 0 0;
}

.match-list {
    border-top: 1px solid #dfe3e8;
}

.match-row {
    display: grid;
    grid-template-columns: 70px 1fr auto 30px;
    gap: 20px;
    align-items: center;
    padding: 20px 4px;
    border-bottom: 1px solid #dfe3e8;
}

.match-row:hover {
    background: #ffffff;
}

.match-time {
    font-weight: 700;
}

.league {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 4px;
}

.teams {
    display: flex;
    gap: 9px;
}

.teams span {
    color: #9ca3af;
}

.market-mini {
    display: flex;
    gap: 8px;
}

.market-mini span {
    min-width: 52px;
    padding: 7px;
    text-align: center;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 7px;
    font-variant-numeric: tabular-nums;
}

.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 60px;
}

.panel {
    padding: 28px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.panel h2 {
    margin: 7px 0 22px;
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.odds-grid div {
    padding: 16px;
    background: #f7f8fa;
    border-radius: 10px;
}

.odds-grid span {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.odds-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 8px;
    text-align: right;
    border-bottom: 1px solid #edf0f3;
}

th:first-child,
td:first-child {
    text-align: left;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f3;
}

.muted,
.kickoff,
.back {
    color: #6b7280;
}

.back {
    display: inline-block;
    margin-top: 30px;
    font-size: 14px;
}

.site-footer {
    margin-top: 60px;
    padding: 35px;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 760px) {

    .site-header {
        padding: 0 20px;
    }

    .site-header nav {
        display: none;
    }

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

    .market-mini,
    .arrow {
        display: none;
    }

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

    .teams {
        flex-direction: column;
        gap: 2px;
    }
}


/* =========================================================
   PERFORMANCE COMPARISON BARS
   ========================================================= */

.performance-bars {
    display: grid;
    gap: 14px;
    margin: 24px 0 28px;
}

.performance-indicator {
    padding: 18px 20px;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    background: #f8fafc;
}

.performance-indicator-overall {
    background: #f3f6f9;
}

.performance-indicator-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.performance-indicator-header strong {
    font-size: 1rem;
    font-weight: 700;
    color: #17202a;
}

.performance-indicator-header span {
    font-size: 0.82rem;
    color: #69737d;
    text-align: right;
}

.performance-team-labels {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #414b55;
}

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

.performance-track {
    position: relative;
    height: 10px;
    margin: 0 7px;
    border-radius: 999px;
    background:
        linear-gradient(
            to right,
            #dfe5eb 0%,
            #dfe5eb 49.7%,
            #cfd6dd 49.7%,
            #cfd6dd 50.3%,
            #e8ecef 50.3%,
            #e8ecef 100%
        );
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.performance-center {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: 50%;
    width: 1px;
    background: #8d969f;
    transform: translateX(-50%);
}

.performance-marker {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 24px;
    border: 3px solid #ffffff;
    border-radius: 8px;
    background: #202a33;
    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    transition: left 0.35s ease;
}

.performance-explanation {
    margin: 11px 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #59636d;
}

@media (max-width: 700px) {

    .performance-indicator {
        padding: 16px;
    }

    .performance-indicator-header {
        display: block;
    }

    .performance-indicator-header span {
        display: block;
        margin-top: 3px;
        text-align: left;
    }

    .performance-team-labels {
        font-size: 0.75rem;
    }

}

/* =========================================================
   COMPACT PERFORMANCE DETAILS
   ========================================================= */

.performance-compact-stats {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.performance-stat-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 6px;
    border-top: 1px solid #e5e9ed;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #69737d;
}

.performance-stat-line strong {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: #3d4650;
}

.performance-stat-line span {
    text-align: right;
}

.performance-data-note {
    margin-top: 8px;
    font-size: 0.74rem;
}


/* Make the three visual indicators more compact */

.performance-bars {
    gap: 9px;
    margin: 16px 0 12px;
}

.performance-indicator {
    padding: 12px 16px;
}

.performance-indicator-header {
    margin-bottom: 8px;
}

.performance-team-labels {
    margin-bottom: 5px;
    font-size: 0.76rem;
}

.performance-track {
    height: 8px;
}

.performance-marker {
    width: 14px;
    height: 20px;
}

.performance-explanation {
    margin-top: 7px;
    font-size: 0.80rem;
    line-height: 1.35;
}

@media (max-width: 700px) {

    .performance-stat-line {
        display: block;
    }

    .performance-stat-line span {
        display: block;
        margin-top: 2px;
        text-align: left;
    }

}

/* =========================================================
   INLINE PERFORMANCE VALUES
   ========================================================= */

.performance-inline-values {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 7px;
    font-size: 0.76rem;
    line-height: 1.3;
    color: #626c76;
}

.performance-inline-values span {
    width: 48%;
}

.performance-inline-values span:last-child {
    text-align: right;
}

@media (max-width: 700px) {

    .performance-inline-values {
        gap: 12px;
        font-size: 0.70rem;
    }

}
