* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #15202b;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* NAVIGATION */

.topbar {
    background: #101820;
    color: white;
    border-bottom: 1px solid #28333d;
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #39d98a;
    color: #101820;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
}

.brand-title {
    font-weight: 800;
    font-size: 17px;
}

.brand-subtitle {
    margin-top: 2px;
    color: #93a4b3;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 26px;
}

nav a {
    color: #c7d0d8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

nav a:hover {
    color: white;
}


/* HERO */

.hero {
    background: linear-gradient(
        135deg,
        #101820 0%,
        #17242e 60%,
        #1c3037 100%
    );

    color: white;
    padding: 90px 0 95px;
}

.eyebrow,
.section-label {
    color: #27c67b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

.hero h1 {
    margin: 18px 0;
    max-width: 850px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.hero-description {
    max-width: 650px;
    color: #aebbc5;
    font-size: 18px;
    line-height: 1.6;
}


/* SEARCH */

.search-wrapper {
    position: relative;
    display: flex;
    max-width: 720px;
    margin-top: 36px;
}

.search-wrapper input {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 10px 0 0 10px;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
}

.search-wrapper > button {
    width: 125px;
    border: none;
    border-radius: 0 10px 10px 0;
    background: #39d98a;
    color: #0d171c;
    font-weight: 800;
    cursor: pointer;
}

.search-wrapper > button:hover {
    background: #4be49a;
}

.search-results {
    display: none;
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 430px;
    overflow-y: auto;
    background: white;
    color: #15202b;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.search-results.visible {
    display: block;
}

.search-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f2;
}

.search-item:hover {
    background: #f5f8fa;
}

.search-type {
    min-width: 50px;
    height: 24px;
    padding: 5px 7px;
    border-radius: 5px;
    background: #e9f9f1;
    color: #168653;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.search-name {
    font-size: 14px;
    font-weight: 700;
}

.search-source {
    margin-top: 3px;
    color: #7d8b96;
    font-size: 12px;
}

.search-message {
    padding: 20px;
    color: #6e7b85;
}

.quick-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    color: #8fa0ad;
    font-size: 12px;
}

.quick-search button {
    border: 1px solid #41515d;
    border-radius: 20px;
    background: transparent;
    color: #c7d0d8;
    padding: 6px 11px;
    cursor: pointer;
}

.quick-search button:hover {
    border-color: #39d98a;
    color: white;
}


/* STATS */

.stats-section {
    padding: 70px 0;
    background: white;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: 30px;
    letter-spacing: -.03em;
}

.section-note {
    color: #7d8b96;
    font-size: 13px;
}

.status-badge {
    border-radius: 30px;
    background: #edf0f2;
    padding: 8px 13px;
    color: #7d8b96;
    font-size: 11px;
    font-weight: 800;
}

.status-badge.online {
    background: #e5f8ee;
    color: #14804f;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.stat-card {
    padding: 24px;
    border: 1px solid #e5e9ec;
    border-radius: 12px;
    background: #fafbfc;
}

.stat-label {
    display: block;
    color: #75838e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin: 10px 0 5px;
    font-size: 34px;
    letter-spacing: -.04em;
}

.stat-description {
    color: #8a97a1;
    font-size: 12px;
}


/* CONTENT */

.content-section {
    padding: 75px 0;
}

.content-section.alternate {
    background: white;
}

.prediction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.prediction-card,
.loading-card {
    border: 1px solid #e0e5e8;
    border-radius: 12px;
    background: white;
    padding: 20px;
}

.match-meta {
    display: flex;
    justify-content: space-between;
    color: #77858f;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.match-teams {
    margin: 20px 0;
}

.team-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    font-size: 13px;
}

.team-row strong {
    white-space: nowrap;
}

.probability-bar {
    display: flex;
    height: 7px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf0f2;
}

.probability-bar div:nth-child(1) {
    background: #34495e;
}

.probability-bar div:nth-child(2) {
    background: #aab5bd;
}

.probability-bar div:nth-child(3) {
    background: #39d98a;
}

.prediction-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    color: #7c8993;
    font-size: 10px;
    text-transform: uppercase;
}


/* TABLE */

.table-card {
    overflow-x: auto;
    border: 1px solid #e2e7ea;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    padding: 13px 16px;
    background: #f5f7f8;
    color: #6e7c87;
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 15px 16px;
    border-top: 1px solid #edf0f2;
    font-size: 13px;
}

.rank {
    font-weight: 900;
    font-size: 16px;
}

.confidence {
    display: inline-block;
    border-radius: 20px;
    background: #eef3f5;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
}


/* FOOTER */

footer {
    padding: 40px 0;
    background: #101820;
    color: #a7b4be;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

footer strong {
    color: white;
}

footer p {
    margin: 7px 0 0;
    font-size: 12px;
}

.footer-right {
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prediction-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .container {
        width: calc(100% - 24px);
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

}
/* =========================================================
   CLEAN HOMEPAGE
   ========================================================= */

.brand {
    text-decoration: none;
    color: inherit;
}

.clean-hero {
    padding-top: 105px;
    padding-bottom: 110px;
}

.clean-hero h1 {
    max-width: 900px;
    margin-bottom: 20px;
}

.search-hint {
    margin-top: 13px;
    color: #8294a1;
    font-size: 12px;
}


/* EXPLORE */

.explore-section {
    padding: 75px 0;
    background: #f4f6f8;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.explore-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;

    min-height: 125px;

    padding: 24px;

    border: 1px solid #dfe5e8;
    border-radius: 12px;

    background: white;

    color: #15202b;
    text-decoration: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.explore-card:hover {
    transform: translateY(-2px);

    border-color: #b8c5cc;

    box-shadow:
        0 10px 30px
        rgba(18, 35, 45, .08);
}

.explore-icon {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #e8faf1;
    color: #148453;

    font-weight: 900;
    font-size: 18px;
}

.explore-card h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.explore-card p {
    margin: 0;

    max-width: 330px;

    color: #74838e;

    font-size: 13px;
    line-height: 1.5;
}

.explore-arrow {
    margin-left: auto;

    color: #9aa7b0;

    font-size: 24px;
}


/* SEARCH RESULT ENHANCEMENT */

.search-result-content {
    flex: 1;
}

.search-result-arrow {
    margin-left: auto;

    align-self: center;

    color: #9ba8b1;

    font-size: 18px;
}


/* MOBILE */

@media (max-width: 750px) {

    .explore-grid {
        grid-template-columns: 1fr;
    }

    .clean-hero {
        padding-top: 70px;
        padding-bottom: 75px;
    }

}
/* =========================================================
   RANKINGS PAGE
   ========================================================= */

.page-hero {
    padding: 58px 0 28px;
    background: #f4f6f8;
}

.page-hero h1 {
    margin: 8px 0 10px;
    font-size: 38px;
    line-height: 1.1;
    color: #10202c;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #647582;
    font-size: 15px;
    line-height: 1.6;
}


/* FILTER AREA */

.ranking-controls-section {
    padding: 0 0 34px;
    background: #f4f6f8;
}

.ranking-controls-card {
    display: flex;
    align-items: flex-end;
    gap: 24px;

    padding: 22px 24px;

    background: #ffffff;

    border: 1px solid #dfe5e8;
    border-radius: 12px;

    box-shadow:
        0 4px 18px
        rgba(18, 35, 45, .04);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #657681;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* BOYS / GIRLS */

.gender-buttons {
    display: flex;
    gap: 8px;
}

.gender-button {
    min-width: 100px;

    padding: 11px 18px;

    border: 1px solid #d5dde2;
    border-radius: 8px;

    background: #ffffff;
    color: #354651;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.gender-button:hover {
    border-color: #39d98a;
    transform: translateY(-1px);
}

.gender-button.active {
    background: #10202c;
    border-color: #10202c;
    color: #ffffff;
}


/* AGE GROUP SELECT */

#cohortSelect {
    min-width: 220px;

    height: 42px;

    padding: 0 40px 0 13px;

    border: 1px solid #d5dde2;
    border-radius: 8px;

    background: #ffffff;

    color: #243540;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

#cohortSelect:focus {
    outline: none;
    border-color: #39d98a;

    box-shadow:
        0 0 0 3px
        rgba(57, 217, 138, .12);
}

#cohortSelect:disabled {
    background: #eef2f4;
    color: #9aa7af;
    cursor: not-allowed;
}


/* VIEW RANKINGS BUTTON */

.primary-button {
    height: 42px;

    padding: 0 22px;

    border: 0;
    border-radius: 8px;

    background: #39d98a;
    color: #0e2119;

    font-family: inherit;
    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .15s ease,
        opacity .15s ease;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* RESULTS */

.rankings-results-section {
    min-height: 500px;
    padding: 45px 0 75px;
    background: #ffffff;
}

.ranking-message {
    padding: 40px;

    border: 1px dashed #ccd6dc;
    border-radius: 12px;

    background: #fafbfc;

    color: #74838e;
    text-align: center;
}


/* TABLE */

.ranking-table-card {
    overflow-x: auto;
}

.ranking-table-card table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table-card th {
    padding: 13px 14px;

    background: #f4f7f8;

    color: #647681;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.ranking-table-card td {
    padding: 15px 14px;

    border-top: 1px solid #e7ecef;

    color: #24343f;

    font-size: 12px;

    vertical-align: middle;
}

.ranking-table-card tbody tr {
    transition: background .12s ease;
}

.ranking-table-card tbody tr:hover {
    background: #f8fafb;
}


/* RANK */

.ranking-table-card .rank {
    width: 55px;

    color: #10202c;

    font-size: 15px;
    font-weight: 900;
}


/* TEAM */

.ranking-team-name {
    min-width: 310px;
}

.ranking-team-name strong {
    display: block;

    color: #10202c;

    font-size: 12px;
    line-height: 1.4;
}

.ranking-club-name {
    display: block;

    margin-top: 4px;

    color: #89969e;

    font-size: 10px;
}


/* CONFIDENCE */

.ranking-table-card .confidence {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 999px;

    background: #edf3f5;

    color: #314651;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .03em;
}


/* EXPLANATION */

.ranking-explanation {
    margin-top: 24px;

    padding: 18px 20px;

    border-left: 3px solid #39d98a;

    background: #f7faf9;
}

.ranking-explanation strong {
    color: #263943;
    font-size: 12px;
}

.ranking-explanation p {
    max-width: 850px;

    margin: 6px 0 0;

    color: #75848d;

    font-size: 11px;
    line-height: 1.6;
}


/* FILTER ERROR */

.filter-error {
    color: #a84d4d;
    font-size: 12px;
}


/* =========================================================
   RANKINGS MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .page-hero {
        padding-top: 40px;
    }

    .page-hero h1 {
        font-size: 31px;
    }

    .ranking-controls-card {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .gender-buttons {
        width: 100%;
    }

    .gender-button {
        flex: 1;
    }

    #cohortSelect {
        width: 100%;
        min-width: 0;
    }

    .primary-button {
        width: 100%;
    }

    .ranking-table-card {
        border-radius: 8px;
    }

}
/* =========================================================
   PITCHNEXUS TEAM / CLUB LOGOS
   ========================================================= */

.ranking-team-cell {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 340px;
}


.ranking-logo-wrap {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.ranking-team-logo {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;

    border-radius: 6px;
}


.ranking-team-text {
    min-width: 0;
}


.ranking-team-text .ranking-team-name {
    display: block;

    min-width: 0;

    color: #10202c;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}


.ranking-team-text .ranking-club-name {
    display: block;

    margin-top: 4px;

    color: #89969e;

    font-size: 10px;
    line-height: 1.3;
}


/* FALLBACK CREST */

.ranking-team-logo[src*="default-club.png"] {
    padding: 2px;
}


/* MOBILE */

@media (max-width: 800px) {

    .ranking-team-cell {
        min-width: 285px;
        gap: 10px;
    }


    .ranking-logo-wrap {
        flex-basis: 36px;

        width: 36px;
        height: 36px;
    }


    .ranking-team-logo {
        width: 36px;
        height: 36px;
    }

}
/* =========================================================
   PITCHNEXUS TEAM PROFILE
   Shared site-wide team / match components
   ========================================================= */

.team-profile-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 20px 70px;
}

.team-page-message {
    padding: 80px 20px;
    text-align: center;
    color: #6f7d86;
    font-size: 14px;
}


/* =========================================================
   TEAM HERO
   ========================================================= */

.team-profile-hero {
    display: flex;
    align-items: center;
    gap: 26px;

    padding: 30px 32px;

    background: #ffffff;

    border: 1px solid #e5eaed;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(16, 32, 44, 0.06);
}

.team-profile-logo-wrap {
    flex: 0 0 110px;

    width: 110px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5px;
}

.team-profile-logo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.team-profile-heading {
    min-width: 0;
}

.team-profile-club {
    margin-bottom: 7px;

    color: #16a36a;

    font-size: 13px;
    font-weight: 800;
}

.team-profile-name {
    margin: 0;

    color: #10202c;

    font-size: 30px;
    line-height: 1.18;
    font-weight: 900;
}

.team-profile-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 15px;
}

.team-profile-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 5px 11px;

    background: #f1f5f6;

    border: 1px solid #e6ebed;
    border-radius: 999px;

    color: #5f6d75;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   PROFILE SECTIONS
   ========================================================= */

.team-profile-section {
    margin-top: 38px;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.section-heading-row h2 {
    margin: 3px 0 0;

    color: #10202c;

    font-size: 21px;
    line-height: 1.2;
    font-weight: 900;
}

.section-eyebrow {
    color: #16a36a;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.1em;
}

.section-count {
    color: #89969e;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   PERFORMANCE CARDS
   ========================================================= */

.team-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 12px;
}

.team-stat-card {
    min-width: 0;

    padding: 21px 12px;

    background: #ffffff;

    border: 1px solid #e5eaed;
    border-radius: 12px;

    text-align: center;
}

.team-stat-value {
    color: #10202c;

    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;
}

.team-stat-label {
    margin-top: 7px;

    color: #89969e;

    font-size: 9px;
    line-height: 1.35;
    font-weight: 800;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


/* =========================================================
   TEAM INTELLIGENCE
   ========================================================= */

.team-intelligence-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.team-intelligence-card {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5eaed;
    border-radius: 12px;
}

.team-intelligence-title {
    margin-bottom: 13px;

    color: #10202c;

    font-size: 15px;
    font-weight: 900;
}

.team-intel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    min-height: 39px;

    border-bottom: 1px solid #edf1f3;
}

.team-intel-row:last-child {
    border-bottom: none;
}

.team-intel-label {
    color: #75838c;

    font-size: 12px;
}

.team-intel-value {
    color: #10202c;

    font-size: 12px;
    font-weight: 900;

    text-align: right;
}


/* =========================================================
   MATCH LIST
   ========================================================= */

.team-match-list {
    display: grid;

    gap: 14px;
}

.team-match-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5eaed;
    border-radius: 14px;

    box-shadow: 0 3px 12px rgba(16, 32, 44, 0.025);
}


/* =========================================================
   MATCH HEADER
   ========================================================= */

.match-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 20px;

    background: #fbfcfc;

    border-bottom: 1px solid #edf1f3;
}

.match-card-date {
    color: #10202c;

    font-size: 12px;
    font-weight: 900;
}

.match-card-competition {
    margin-top: 4px;

    color: #89969e;

    font-size: 10px;
}

.match-flight-badge {
    padding: 5px 9px;

    background: #eef4f2;

    border-radius: 999px;

    color: #557168;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   MATCH MAIN
   ========================================================= */

.match-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        110px
        minmax(0, 1fr);

    align-items: center;

    gap: 24px;

    padding: 24px 26px 20px;
}


/* =========================================================
   MATCH TEAM SIDE
   ========================================================= */

.match-team-side {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;

    color: inherit;

    text-decoration: none;
}

.match-team-side:hover .match-team-name {
    color: #16a36a;
}

.match-team-side.away {
    flex-direction: row-reverse;

    text-align: right;
}

.match-team-logo-wrap {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.match-team-logo {
    display: block;

    width: 60px;
    height: 60px;

    object-fit: contain;

    transition: transform 0.15s ease;
}

.match-team-side:hover .match-team-logo {
    transform: scale(1.04);
}

.match-team-copy {
    min-width: 0;
}

.match-team-name {
    color: #10202c;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 900;

    transition: color 0.15s ease;
}

.match-club-name {
    margin-top: 5px;

    color: #89969e;

    font-size: 10px;
    line-height: 1.3;
}


/* =========================================================
   MATCH CENTER
   ========================================================= */

.match-center {
    text-align: center;
}

.match-vs {
    color: #10202c;

    font-size: 18px;
    font-weight: 900;
}

.match-final-score {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #10202c;

    font-size: 27px;
    line-height: 1;
    font-weight: 900;
}

.match-final-score span {
    color: #a1abb1;

    font-size: 17px;
}

.match-status-label {
    margin-top: 7px;

    color: #9aa5ab;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.07em;
}


/* =========================================================
   MATCH LOCATION
   ========================================================= */

.match-location-row {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 20px 17px;

    color: #89969e;

    font-size: 10px;
}

.match-location-icon {
    color: #16a36a;

    font-size: 7px;
}


/* =========================================================
   PREDICTION PANEL
   ========================================================= */

.match-prediction {
    padding: 16px 20px 20px;

    background: #fbfcfc;

    border-top: 1px solid #edf1f3;
}

.prediction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 12px;
}

.prediction-title {
    color: #10202c;

    font-size: 11px;
    font-weight: 900;
}

.prediction-model {
    margin-top: 3px;

    color: #9aa5ab;

    font-size: 8px;
}

.prediction-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: 6px;
}

.prediction-badge {
    padding: 4px 7px;

    background: #eef2f3;

    border-radius: 999px;

    color: #6f7d86;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
}

.prediction-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;
}

.prediction-cell {
    padding: 10px 8px;

    background: #f0f4f5;

    border: 1px solid transparent;
    border-radius: 8px;

    text-align: center;
}

.prediction-cell.prediction-leading {
    background: #eaf7f1;

    border-color: #c8eadb;
}

.prediction-value {
    display: block;

    color: #10202c;

    font-size: 15px;
    font-weight: 900;
}

.prediction-leading .prediction-value {
    color: #11835a;
}

.prediction-side {
    display: block;

    margin-top: 3px;

    color: #89969e;

    font-size: 9px;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.team-empty-state {
    padding: 34px 20px;

    background: #ffffff;

    border: 1px solid #e5eaed;
    border-radius: 12px;

    color: #89969e;

    font-size: 13px;

    text-align: center;
}

.team-grid-full {
    grid-column: 1 / -1;
}


/* =========================================================
   TEAM PROFILE RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .team-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .match-main {
        grid-template-columns:
            minmax(0, 1fr)
            80px
            minmax(0, 1fr);

        gap: 15px;
    }

    .match-team-logo-wrap {
        flex-basis: 52px;

        width: 52px;
        height: 52px;
    }

    .match-team-logo {
        width: 50px;
        height: 50px;
    }
}


@media (max-width: 760px) {

    .team-profile-page {
        padding:
            26px
            16px
            50px;
    }

    .team-profile-hero {
        align-items: flex-start;

        gap: 18px;

        padding: 22px;
    }

    .team-profile-logo-wrap {
        flex-basis: 80px;

        width: 80px;
        height: 80px;
    }

    .team-profile-name {
        font-size: 22px;
    }

    .team-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .team-intelligence-grid {
        grid-template-columns: 1fr;
    }

    .match-card-header {
        padding:
            14px
            15px;
    }

    .match-main {
        grid-template-columns:
            minmax(0, 1fr)
            52px
            minmax(0, 1fr);

        gap: 8px;

        padding:
            20px
            12px
            17px;
    }

    .match-team-side {
        flex-direction: column;

        gap: 8px;

        text-align: center;
    }

    .match-team-side.away {
        flex-direction: column;

        text-align: center;
    }

    .match-team-logo-wrap {
        flex-basis: auto;

        width: 48px;
        height: 48px;
    }

    .match-team-logo {
        width: 46px;
        height: 46px;
    }

    .match-team-name {
        font-size: 11px;
    }

    .match-club-name {
        display: none;
    }

    .match-final-score {
        font-size: 21px;
    }

    .match-vs {
        font-size: 15px;
    }

    .prediction-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .prediction-badges {
        justify-content: flex-start;
    }
}


@media (max-width: 520px) {

    .team-profile-hero {
        flex-direction: column;
    }

    .team-profile-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .section-heading-row {
        align-items: flex-start;
    }

    .team-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .team-stat-value {
        font-size: 21px;
    }

    .match-flight-badge {
        display: none;
    }

    .match-main {
        grid-template-columns:
            minmax(0, 1fr)
            42px
            minmax(0, 1fr);
    }

    .match-team-logo-wrap {
        width: 42px;
        height: 42px;
    }

    .match-team-logo {
        width: 40px;
        height: 40px;
    }

    .match-team-name {
        font-size: 10px;
    }

    .prediction-grid {
        gap: 5px;
    }

    .prediction-value {
        font-size: 13px;
    }
}
/* =========================================================
   PITCHNEXUS OFFICIAL BRAND MARK
   ========================================================= */

.brand-mark {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    overflow: visible;

    font-size: 0;
    line-height: 0;
}

.brand-mark img {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;
}

@media (max-width: 700px) {

    .brand-mark {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .brand-mark img {
        width: 38px;
        height: 38px;
    }
}
/* PitchNexus full logo lockup */
.topbar .brand { flex: 0 1 324px; min-width: 0; }
.topbar .brand-logo { display: block; width: 324px; max-width: 100%; height: auto; }
.topbar .nav { gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.topbar nav { display: flex; flex-shrink: 0; }
@media (max-width: 650px) {
    .topbar .nav { flex-direction: column; gap: 14px; }
    .topbar .brand { flex: none; width: min(290px, 100%); }
    .topbar nav { gap: 26px; justify-content: center; flex-wrap: wrap; }
}

/* Shared PitchNexus footer: all active website pages. */
.pn-footer { margin-top:0; padding:48px 0 22px; background:#101820; border-top:1px solid #283740; color:#b5c3cd; }
.pn-footer-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(150px,.7fr) minmax(0,1.25fr); gap:48px; padding-bottom:34px; }
.pn-footer-brand img { display:block; width:280px; max-width:100%; height:auto; }
.pn-footer .pn-footer-brand p { max-width:350px; margin-top:18px; }
.pn-footer p { margin:0; font-size:13px; line-height:1.75; }
.pn-footer h2 { margin:0 0 15px; color:#f4f7f9; font-size:12px; line-height:1.5; letter-spacing:.1em; text-transform:uppercase; }
.pn-footer .pn-footer-nav { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.pn-footer .pn-footer-nav h2 { margin-bottom:3px; }
.pn-footer a { color:#c5d2db; text-decoration:none; font-size:13px; line-height:1.6; font-weight:400; }
.pn-footer a:hover { color:#39d98a; text-decoration:underline; text-underline-offset:4px; }
.pn-footer a:focus-visible { outline:2px solid #39d98a; outline-offset:5px; border-radius:2px; }
.pn-footer-about p + p { margin-top:12px; }
.pn-footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 24px; padding-top:20px; border-top:1px solid #2a3842; }
.pn-footer-bottom p,.pn-footer-bottom a { color:#9fb0bc; font-size:11px; }
@media(max-width:900px) {
    .pn-footer-grid { grid-template-columns:1fr 1fr; gap:30px; }
    .pn-footer-about { grid-column:1 / -1; max-width:720px; }
}
@media(max-width:560px) {
    .pn-footer { padding-top:32px; }
    .pn-footer-grid { grid-template-columns:minmax(0,1fr); gap:26px; padding-bottom:26px; }
    .pn-footer-about { grid-column:auto; }
    .pn-footer-bottom { flex-direction:column; align-items:flex-start; gap:8px; }
    .pn-footer .pn-footer-nav a { min-height:32px; display:flex; align-items:center; }
}
