/* =========================================================
   FOOTBALL LEAGUES
   Premium League Directory / Data Table
   ========================================================= */

.leagues-page {
    min-height: 100vh;
    background: #f5f7fb;
}

.leagues-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 18%, rgba(37, 124, 235, .30), transparent 30%), radial-gradient(ellipse at 78% 82%, rgba(22, 196, 143, .25), transparent 35%), linear-gradient(135deg, #06172d 0%, #082b4b 52%, #063b46 100%);
    color: #fff;
}

.leagues-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
}

.leagues-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -170px;
    bottom: -210px;
    border-radius: 50%;
    background: rgba(23, 105, 213, .10);
}

.leagues-hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 0px 52px;
    position: relative;
    z-index: 1;
}

.leagues-hero h1 {
    margin: 18px 0 14px;
    max-width: 760px;
    font-size: clamp(36px, 5vw, 48px);
    line-height: 1.05;
    font-weight: bold;
    font-family: 'yt_bold';
}

.leagues-hero h1 strong {
    display: block;
    color: #39d89c;
}

.leagues-hero p {
    max-width: 700px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   DIRECTORY STATS
   Uses the same quick-stats component as the other pages.
   Only the icon order is adjusted for Countries / Leagues.
   ========================================================= */

.leagues-directory-stats {
    width: min(1160px, calc(100% - 24px)) !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* In this page the third item is Countries and fourth is Leagues. */
.leagues-directory-stats>div:nth-child(3)::before {
    content: "◎" !important;
    font-size: 25px !important;
    color: #7d8997 !important;
}

.leagues-directory-stats>div:nth-child(4)::before {
    content: "♜" !important;
    font-size: 20px !important;
    color: #7d8997 !important;
}

/* =========================================================
   CONTENT / TOOLBAR
   ========================================================= */

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

.leagues-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.leagues-toolbar-kicker {
    display: block;
    margin-bottom: 5px;
    color: #1769d5;
    font-size: 14px;
    font-weight: 100;
    letter-spacing: .16em;
}

.leagues-toolbar h2 {
    margin: 0;
    color: #071b33;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.leagues-search {
    width: 355px;
    height: 45px;

    display: flex;
    align-items: center;
    gap: 9px;

    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    padding: 0 13px;

    box-shadow: 0 7px 22px rgba(7, 27, 51, .045);
}

.leagues-search span {
    color: #7d8795;
    font-size: 21px;
    line-height: 1;
}

.leagues-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #071b33;
    font-size: 12px;
}

.leagues-search input::placeholder {
    color: #a0a8b3;
}


/* =========================================================
   FILTERS
   ========================================================= */

.leagues-filters {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
}

.league-filter {
    appearance: none;
    border: 1px solid #dfe5ed;
    background: #fff;
    color: #687483;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 100;
    cursor: pointer;
    transition: .18s ease;
}

.league-filter:hover {
    border-color: #1769d5;
    color: #1769d5;
}

.league-filter.active {
    background: #1769d5;
    border-color: #1769d5;
    color: #fff;
}


/* =========================================================
   TABLE
   ========================================================= */

.leagues-table-shell {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 15px;
    box-shadow: 0 10px 32px rgba(7, 27, 51, .06);
}

.leagues-table-head {
    display: grid;
    grid-template-columns:
        minmax(170px, 1.05fr) minmax(300px, 2.3fr) 90px 100px 90px 105px;

    align-items: center;

    min-height: 47px;
    padding: 0 18px;

    background: #071b33;
    color: rgba(255, 255, 255, .62);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}

.leagues-th-number {
    text-align: right;
}

.leagues-th-action {
    text-align: right;
}


/* COUNTRY GROUP */

.league-country-group {
    border-bottom: 1px solid #e8ecf1;
}

.league-country-group:last-child {
    border-bottom: 0;
}

.league-country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-height: 50px;
    padding: 0 18px;

    background: #f7f9fc;
    border-bottom: 1px solid #e9edf2;
}

.league-country-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.league-country-name img {
    flex: 0 0 auto;
    object-fit: contain;
}

.league-country-name strong {
    color: #071b33;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.league-country-name span {
    color: #9aa3af;
    font-size: 9px;
    font-weight: 700;
}

.league-country-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}

.league-country-summary span {
    color: #8a94a2;
    font-size: 9px;
    font-weight: 700;
}

.league-country-summary b {
    color: #1769d5;
    font-weight: 900;
}


/* LEAGUE ROW */

.league-data-row {
    display: grid;
    grid-template-columns:
        minmax(170px, 1.05fr) minmax(300px, 2.3fr) 90px 100px 90px 105px;

    align-items: center;

    min-height: 58px;
    padding: 0 18px;

    color: inherit;
    text-decoration: none;

    background: #fff;
    border-bottom: 1px solid #f0f2f5;

    transition:
        background .16s ease,
        box-shadow .16s ease;
}

.league-data-row:last-child {
    border-bottom: 0;
}

.league-data-row:hover {
    background: #f8fbff;
    box-shadow: inset 3px 0 0 #1769d5;
    text-decoration: none;
}

.league-data-name {
    min-width: 0;
}

.league-data-name strong {
    display: block;
    overflow: hidden;
    color: #172536;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.league-data-number {
    text-align: right;
}

.league-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 31px;
    height: 25px;
    padding: 0 7px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 900;
}

.league-badge-today {
    color: #1769d5;
    background: #edf5ff;
}

.league-badge-tomorrow {
    color: #59677a;
    background: #f0f3f7;
}

.league-total-number {
    color: #071b33;
    font-size: 14px;
    font-weight: 900;
}

.league-data-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    color: #1769d5;
}

.league-data-action span {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.league-data-action b {
    font-size: 16px;
    font-weight: 900;
}


/* =========================================================
   EMPTY
   ========================================================= */

.leagues-empty {
    margin-top: 15px;
    padding: 34px 20px;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 13px;
    text-align: center;
    color: #7c8795;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .leagues-table-head,
    .league-data-row {
        grid-template-columns:
            minmax(135px, 1fr) minmax(220px, 2fr) 75px 85px 75px 85px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .leagues-hero-inner {
        width: calc(100% - 24px);
        padding: 20px 0 30px;
    }

    .leagues-hero p {
        font-size: 13px;
    }

    .leagues-container {
        width: calc(100% - 24px);
        margin-top: 20px;
    }

    .leagues-toolbar {
        display: block;
    }

    .leagues-toolbar h2 {
        font-size: 23px;
    }

    .leagues-search {
        width: 100%;
        margin-top: 14px;
    }

    .leagues-filters {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .league-filter {
        flex: 0 0 auto;
    }

    .leagues-table-shell {
        border-radius: 13px;
    }

    .leagues-table-head {
        display: grid;
        grid-template-columns: minmax(150px, 1fr) 65px 78px 65px 72px;
        padding: 0 12px;
        font-size: 7px;
    }

    .leagues-th-country {
        display: none;
    }

    .leagues-th-league {
        grid-column: 1;
    }

    .league-country-row {
        min-height: 46px;
        padding: 0 12px;
    }

    .league-country-summary {
        gap: 8px;
    }

    .league-country-summary span {
        font-size: 7px;
    }

    .league-country-summary span:nth-child(2) {
        display: none;
    }

    .league-data-row {
        grid-template-columns: minmax(150px, 1fr) 65px 78px 65px 72px;
        min-height: 56px;
        padding: 0 12px;
    }

    .league-data-country {
        display: none;
    }

    .league-data-name {
        grid-column: 1;
    }

    .league-data-name strong {
        font-size: 11px;
    }

    .league-badge {
        min-width: 26px;
        height: 23px;
        padding: 0 5px;
        font-size: 10px;
    }

    .league-total-number {
        font-size: 12px;
    }

    .league-data-action span {
        display: none;
    }

    .league-data-action b {
        font-size: 15px;
    }

}


@media (max-width: 480px) {

    .leagues-table-head {
        grid-template-columns: minmax(120px, 1fr) 50px 60px 55px 48px;
        padding: 0 9px;
    }

    .league-country-row {
        padding: 0 9px;
    }

    .league-country-summary span:first-child {
        display: none;
    }

    .league-data-row {
        grid-template-columns: minmax(120px, 1fr) 50px 60px 55px 48px;
        padding: 0 9px;
    }

    .league-data-name strong {
        font-size: 14px;
    }

    .league-badge {
        min-width: 23px;
        height: 22px;
        font-size: 9px;
    }

    .league-data-action b {
        font-size: 14px;
    }

}




/* =========================================================
   STANDARD HERO EYEBROW
   ========================================================= */

.leagues-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #b9d3e8;
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.leagues-eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28dba8;
    box-shadow: 0 0 0 5px rgba(40, 219, 168, .12);
}