/* MHSC Accueil v2 — look Elite Prospects, scoped .mh2 */

body.mh2-page .site-content {
    background: #f3f6f9;
}

.mh2 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    --navy: #071525;
    --navy-2: #0c1e32;
    --navy-3: #132a45;
    --navy-4: #1a3a5c;
    --red: #c8102e;
    --blue: #1d6fbf;
    --blue-h: #155a9c;
    --text: #152033;
    --muted: #5c6d80;
    --line: #d7e0ea;
    --bg: #f3f6f9;
    --white: #ffffff;
    --max: 1200px;
    --radius: 2px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.mh2 *,
.mh2 *::before,
.mh2 *::after {
    box-sizing: border-box;
}

.mh2 a {
    color: var(--blue);
    text-decoration: none;
}

.mh2 a:hover {
    color: var(--blue-h);
    text-decoration: underline;
}

.mh2-wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hero ---------- */
.mh2-hero {
    background: var(--navy);
    color: #fff;
    padding: 48px 0 40px;
    border-top: 3px solid var(--red);
    border-bottom: 1px solid #0a2744;
}

.mh2-hero h1 {
    margin: 0 0 24px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    max-width: 820px;
}

.mh2-hero p.mh2-lead {
    margin: 0 0 26px;
    font-size: 16px;
    color: #9db4c9;
    max-width: 640px;
    font-weight: 400;
}

.mh2 form.mh2-search,
.mh2-search {
    position: relative !important;
    display: block !important;
    max-width: 720px;
    width: 100%;
}

.mh2-search input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 52px !important;
    border: 1px solid #2a4a6b !important;
    background: #fff !important;
    color: var(--text) !important;
    font-size: 16px !important;
    padding: 0 58px 0 18px !important;
    border-radius: var(--radius) !important;
    outline: none !important;
    font-family: inherit !important;
    box-shadow: none !important;
    line-height: 52px !important;
}

.mh2-search input::placeholder {
    color: #8a9aab;
}

.mh2-search input:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(29, 111, 191, 0.25) !important;
}

.mh2-search .mh2-search-btn,
.mh2-search button[type="submit"] {
    all: unset;
    box-sizing: border-box !important;
    position: absolute !important;
    right: 6px !important;
    top: 6px !important;
    width: 40px !important;
    height: 40px !important;
    background: #0c1e32 !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    z-index: 2;
}

.mh2-search .mh2-search-btn:hover,
.mh2-search button[type="submit"]:hover {
    background: var(--red) !important;
}

.mh2-search .mh2-search-btn svg,
.mh2-search button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: #ffffff !important;
    fill: none !important;
}

.mh2-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #7e93a8;
}

.mh2-hint a {
    color: #c5d7ea;
    text-decoration: underline;
}

/* ---------- Featured Teams Grid / Logos (replaces old counter) ---------- */
.mh2-featured-teams {
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    width: 100%;
    text-align: left;
}

.mh2-featured-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8da4b8;
    margin-bottom: 15px;
}

.mh2-featured-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.mh2-featured-grid::-webkit-scrollbar {
    height: 4px;
}

.mh2-featured-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.mh2-featured-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    width: 190px;
}

.mh2-featured-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mh2-featured-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
}

.mh2-featured-card-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.25;
}

.mh2-featured-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh2-featured-cat {
    font-size: 11px;
    font-weight: 500;
    color: #8da4b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- League bar ---------- */
.mh2-leaguebar {
    background: var(--navy-3);
    overflow: hidden;
}

.mh2-leaguebar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.mh2-leaguebar a {
    flex: 0 0 auto;
    color: #c9d8e6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 2px;
    white-space: nowrap;
}

.mh2-leaguebar a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.mh2-leaguebar a.is-all {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Ads ---------- */
.mh2-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mh2-ad-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa8b6;
    margin-bottom: 8px;
}

.mh2-ad a,
.mh2-ad img {
    display: block;
    max-width: 100%;
}

.mh2-ad img {
    height: auto;
}

.mh2-ad--leaderboard {
    padding: 18px 20px 6px;
}

.mh2-ad--leaderboard .mh2-ad-box {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
}

.mh2-ad--box .mh2-ad-box {
    width: 100%;
    min-height: 250px;
}

.mh2-ad-box {
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mh2-ad-empty {
    width: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #8b9aab;
    background: repeating-linear-gradient(
        -45deg,
        #f7f9fb,
        #f7f9fb 8px,
        #eef2f6 8px,
        #eef2f6 16px
    );
    border: 1px dashed #c5d0dc;
    font-size: 12px;
    text-align: center;
    padding: 16px;
}

.mh2-ad-empty strong {
    color: #5c6d80;
    font-size: 13px;
}

/* ---------- Layout ---------- */
.mh2-body {
    padding: 28px 0 48px;
}

.mh2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.mh2-section {
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 20px;
}

.mh2-section-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.mh2-section-h h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mh2-section-h a {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.mh2-section-b {
    padding: 16px;
}

/* Explore pillars */
.mh2-explore {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mh2-pillar {
    border: 1px solid var(--line);
    padding: 14px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.mh2-pillar:hover {
    border-color: #9db5cc;
    background: #f7fbff;
}

.mh2-pillar-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.mh2-pillar-h strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mh2-pillar-icon {
    flex: none;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.mh2-pillar p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.mh2-pillar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.mh2-pillar-links li {
    margin: 0;
}

.mh2-pillar-links a {
    display: block;
    padding: 7px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
}

.mh2-pillar-links li:last-child a {
    border-bottom: 0;
}

.mh2-pillar-links a::after {
    content: " →";
    color: var(--muted);
}

.mh2-pillar-links a:hover {
    text-decoration: underline;
}

/* Leaders table */
.mh2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.mh2-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c8e;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.mh2-table th.num,
.mh2-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mh2-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
}

.mh2-table tr:last-child td {
    border-bottom: 0;
}

.mh2-table tbody tr:hover td {
    background: #f5f8fb;
}

.mh2-table .rk {
    width: 28px;
    color: #8a9aab;
    font-weight: 800;
    font-style: italic;
}

.mh2-table .rk-1 { color: #b8860b; }
.mh2-table .rk-2 { color: #7a8794; }
.mh2-table .rk-3 { color: #a36a3a; }

.mh2-player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mh2-player img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: #f3f6f9;
    border: 1px solid #e6edf4;
    flex-shrink: 0;
}

.mh2-player-txt {
    display: block;
    min-width: 0;
}

.mh2-player a {
    display: block;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh2-player a:hover {
    color: var(--blue);
}

.mh2-player-team {
    display: none;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh2-muted {
    color: var(--muted);
    font-size: 12px;
}

.mh2-lock {
    color: #c5d0dc;
    font-size: 12px;
    cursor: pointer;
}

.mh2-lock:hover {
    color: var(--blue);
}

.mh2-cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--navy-4);
    background: #e8eef5;
    padding: 2px 7px;
}

.mh2-table-wrap {
    overflow-x: auto;
}

/* Browse */
.mh2-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mh2-pills a {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}

.mh2-pills a:hover {
    border-color: var(--blue);
    color: var(--blue);
    text-decoration: none;
}

.mh2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mh2-browse {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.mh2-split h3,
.mh2-browse h3 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Leagues */
.mh2-leagues {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mh2-league {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.mh2-league-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 3px;
}

.mh2-league-txt {
    min-width: 0;
    flex: 1;
}

.mh2-league:hover {
    border-color: var(--blue);
    background: #f7fbff;
    color: var(--text);
    text-decoration: none;
}

.mh2-league strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
}

.mh2-league span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
}

/* Flags: small rectangles so the full design stays readable */
.mh2-title-flag,
.mh2-prov-flag {
    display: inline-block;
    width: 28px;
    height: 18px;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
    flex-shrink: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    vertical-align: middle;
}

.mh2-title-flag {
    width: 30px;
    height: 20px;
}

.mh2-pill-with-flag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mh2-pills a img {
    display: block;
}

.mh2-league-meta {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px;
}

.mh2-league-meta span {
    display: inline !important;
}

/* Sidebar */
.mh2-aside .mh2-section {
    margin-bottom: 16px;
}

.mh2-aside .mh2-ad {
    margin-bottom: 16px;
}

.mh2-cta {
    background: var(--navy-2);
    color: #fff;
    border: 0;
    padding: 20px 18px;
    margin-bottom: 16px;
}

.mh2-cta h2 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
}

.mh2-cta p {
    margin: 0 0 14px;
    color: #9db4c9;
    font-size: 13px;
}

.mh2-cta a.mh2-cta-btn {
    display: block;
    text-align: center;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 11px 12px;
}

.mh2-cta a.mh2-cta-btn:hover {
    background: #a50d25;
    color: #fff;
}

.mh2-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mh2-links li {
    border-bottom: 1px solid #eef2f6;
}

.mh2-links li:last-child {
    border-bottom: 0;
}

.mh2-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.mh2-links a:hover {
    color: var(--blue);
}

.mh2-links em {
    font-style: normal;
    color: #9aa8b6;
    font-size: 16px;
    font-weight: 400;
}

.mh2-note {
    padding: 20px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* Modal auth */
.mh2-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 21, 37, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mh2-modal.is-on {
    display: flex;
}

.mh2-modal-box {
    background: #fff;
    width: 100%;
    max-width: 360px;
    padding: 24px;
    text-align: center;
}

.mh2-modal-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.mh2-modal-box p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.mh2-modal-box .mh2-cta-btn {
    display: block;
    margin-bottom: 8px;
    background: var(--navy-2);
    color: #fff;
    text-decoration: none;
    padding: 11px;
    font-weight: 700;
}

.mh2-modal-box .mh2-ghost {
    display: block;
    background: #f3f6f9;
    color: var(--text);
    text-decoration: none;
    padding: 11px;
    font-weight: 700;
}

.mh2-modal-box button {
    margin-top: 12px;
    background: none;
    border: 0;
    color: #9aa8b6;
    cursor: pointer;
    font-size: 12px;
}

.mh2 ul,
.mh2 ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mh2 h1,
.mh2 h2,
.mh2 h3,
.mh2 p {
    margin-top: 0;
}

.mh2 .mh2-hero h1 {
    color: #ffffff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    max-width: 820px !important;
    width: auto !important;
    margin-bottom: 24px !important;
}

@media (max-width: 960px) {
    .mh2-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mh2-aside {
        order: 2;
    }

    .mh2-explore {
        grid-template-columns: 1fr 1fr;
    }

    .mh2-split {
        grid-template-columns: 1fr;
    }

    .mh2-browse,
    .mh2-leagues {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .mh2-wrap {
        padding: 0 14px;
    }

    .mh2-hero {
        padding: 24px 0 20px;
    }

    .mh2 .mh2-hero h1 {
        font-size: 22px !important;
        max-width: none !important;
    }

    .mh2-hero p.mh2-lead {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .mh2-search input[type="text"] {
        font-size: 16px !important;
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 52px 0 14px !important;
    }

    .mh2-search .mh2-search-btn,
    .mh2-search button[type="submit"] {
        width: 36px !important;
        height: 36px !important;
        top: 6px !important;
        right: 6px !important;
    }


    .mh2-leaguebar-inner {
        padding: 8px 14px;
        -webkit-overflow-scrolling: touch;
    }

    .mh2-leaguebar a {
        padding: 8px 10px;
        font-size: 11px;
    }

    .mh2-body {
        padding: 16px 0 32px;
    }

    .mh2-explore {
        grid-template-columns: 1fr;
    }

    .mh2-browse,
    .mh2-leagues {
        grid-template-columns: 1fr;
    }

    .mh2-section-h {
        padding: 10px 12px;
    }

    .mh2-section-b {
        padding: 12px;
    }

    .mh2-table th,
    .mh2-table td {
        padding: 8px 6px;
        font-size: 13px;
    }

    .mh2-pills a {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .mh2 .mh2-hero h1 {
        font-size: 20px !important;
    }

    .mh2-stat b {
        font-size: 17px;
    }

    .mh2-stat span {
        font-size: 8.5px;
    }

    .mh2-section-h {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .mh2-table td.mh2-hide-xs,
    .mh2-table th.mh2-hide-xs {
        display: none;
    }

    .mh2-player-team {
        display: block;
    }
}
