:root {
    --p2es-public-bg: #080b14;
    --p2es-public-panel: #151b28;
    --p2es-public-panel-2: #1d2432;
    --p2es-public-border: rgba(151, 165, 190, .24);
    --p2es-public-text: #f8fafc;
    --p2es-public-muted: #aab5c8;
    --p2es-public-purple: #7847f5;
    --p2es-public-lime: #d7ff00;
    --p2es-public-cyan: #25c7db;
}

body.p2es-public-profile {
    background:
        radial-gradient(circle at 14% 10%, rgba(120, 71, 245, .22), transparent 34rem),
        radial-gradient(circle at 86% 25%, rgba(37, 199, 219, .13), transparent 30rem),
        var(--p2es-public-bg);
    color: var(--p2es-public-text);
}

body.p2es-public-profile .header,
body.p2es-public-profile .navbar {
    background: rgba(8, 11, 20, .94) !important;
    border-bottom: 1px solid var(--p2es-public-border);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
    backdrop-filter: blur(18px);
}

body.p2es-public-profile .hero,
body.p2es-public-profile .hero-section-custom {
    position: relative;
    isolation: isolate;
}

body.p2es-public-player .player-club-affiliation {
    color: inherit;
    min-width: 0;
    text-decoration: none;
}

body.p2es-public-player a.player-club-affiliation:hover .team-name,
body.p2es-public-player a.player-club-affiliation:focus-visible .team-name {
    text-decoration: underline;
    text-underline-offset: .2em;
}

body.p2es-public-player a.player-club-affiliation:focus-visible {
    outline: 2px solid var(--p2es-public-lime);
    outline-offset: 5px;
    border-radius: 4px;
}

body.p2es-public-player .figure-skating-hero__chip.player-club-affiliation .team-logo {
    width: 28px;
    margin-right: 8px;
    flex: 0 0 28px;
}

body.p2es-public-player .figure-skating-hero__chip.player-club-affiliation img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

body.p2es-public-profile .hero::after,
body.p2es-public-profile .hero-section-custom::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(120, 71, 245, .11), transparent 42%, rgba(215, 255, 0, .045));
}

body.p2es-public-profile .info-card,
body.p2es-public-profile .profile-container,
body.p2es-public-profile .tab-content > .container,
body.p2es-public-profile .stats-container,
body.p2es-public-profile .stats-section {
    border-color: var(--p2es-public-border) !important;
}

body.p2es-public-profile .donate-btn,
body.p2es-public-profile .join-club-btn,
body.p2es-public-profile .login-btn {
    border-radius: 10px !important;
    letter-spacing: .09em;
    font-weight: 800;
}

body.p2es-public-profile .join-club-btn,
body.p2es-public-profile .login-btn {
    background: linear-gradient(135deg, var(--p2es-public-purple), #5c36d9) !important;
    color: #fff !important;
    border: 1px solid rgba(166, 131, 255, .72) !important;
    box-shadow: 0 12px 24px rgba(92, 54, 217, .25);
}

body.p2es-public-profile .donate-btn {
    background: var(--p2es-public-lime) !important;
    color: #0b1019 !important;
    border: 1px solid var(--p2es-public-lime) !important;
}

/* The legacy sport heroes share these columns. Keep their desktop bio cards
   level, and use the measurements card's existing inset for the whole rail. */
@media (min-width: 992px) {
    body.p2es-public-player .hero {
        --p2es-sport-title-size: clamp(88px, 10.42vw, 150px);
        padding-left: clamp(24px, 3.333vw, 48px);
        padding-right: calc(var(--p2es-sport-title-size) * 1.2 + 88px);
    }

    body.p2es-public-player .hero .soccer-text {
        right: 24px;
        top: 50%;
        bottom: auto;
        font-size: var(--p2es-sport-title-size);
        line-height: 1.2;
        letter-spacing: .013333em;
        writing-mode: vertical-rl;
        white-space: nowrap;
        transform: translateY(-50%) rotate(180deg);
        opacity: .3;
        pointer-events: none;
    }

    body.p2es-public-player .hero .profile-container > .row > .text-lg-start {
        display: flex;
        flex-direction: column;
    }

    body.p2es-public-player .hero .profile-container > .row > .text-lg-start > .row:last-child {
        margin-top: auto;
    }

    body.p2es-public-player .hero .profile-container > .row > .text-lg-start > .donate-btn {
        align-self: flex-start;
    }

    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) {
        display: flex;
        flex-direction: column;
    }

    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row {
        flex: 1;
    }

    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row > .offset-lg-2 {
        margin-top: auto !important;
        padding-top: 3rem;
    }

    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row > .stats-container,
    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row > .team-logos,
    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row > .year-text {
        margin-left: 16.666667%;
    }
}

/* On narrow desktops the inset would clip the rail beyond the viewport. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row > .stats-container,
    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row > .team-logos,
    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row > .year-text,
    body.p2es-public-player .hero .profile-container > .row > .col-xl-3:not(.text-lg-start) > .row > .offset-lg-2 {
        margin-left: 0;
    }
}

.p2es-public-share {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 38px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--p2es-public-border);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(120, 71, 245, .16), transparent 44%),
        rgba(21, 27, 40, .94);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
    text-align: center;
}

.p2es-public-share__eyebrow {
    color: var(--p2es-public-lime);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.p2es-public-share h2 {
    margin: 6px 0 6px;
    color: #fff;
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    font-weight: 800;
}

.p2es-public-share p {
    margin: 0 0 18px;
    color: var(--p2es-public-muted);
}

.p2es-social-share-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.p2es-social-share-actions .social-share-icon {
    --share-brand: #64748b;
    position: relative;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--share-brand) 70%, white 10%);
    background: color-mix(in srgb, var(--share-brand) 22%, #151b28);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--share-brand) 20%, transparent);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.p2es-social-share-actions .social-share-icon:hover,
.p2es-social-share-actions .social-share-icon:focus-visible {
    transform: translateY(-4px) scale(1.04);
    border-color: var(--share-brand);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--share-brand) 34%, transparent);
    outline: none;
}

.p2es-social-share-actions .social-share-icon img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
}

.p2es-social-share-actions [data-platform='facebook'] { --share-brand: #1877f2; }
.p2es-social-share-actions [data-platform='twitter'] { --share-brand: #8b95a5; }
.p2es-social-share-actions [data-platform='linkedin'] { --share-brand: #0a66c2; }
.p2es-social-share-actions [data-platform='instagram'] { --share-brand: #e4405f; }
.p2es-social-share-actions [data-platform='tiktok'] { --share-brand: #25f4ee; }
.p2es-social-share-actions [data-platform='pinterest'] { --share-brand: #e60023; }
.p2es-social-share-actions [data-platform='snapchat'] { --share-brand: #fffc00; }
.p2es-social-share-actions [data-platform='reddit'] { --share-brand: #ff4500; }
.p2es-social-share-actions [data-platform='youtube'] { --share-brand: #ff0000; }
.p2es-social-share-actions [data-platform='whatsapp'] { --share-brand: #25d366; }

.p2es-share-toast {
    min-height: 1.4rem;
    margin-top: 14px;
    color: var(--p2es-public-lime);
    font-size: .86rem;
    font-weight: 700;
}

body.p2es-public-club .club-name-circle .hex-logo-img {
    left: 0 !important;
    top: 0 !important;
    width: min(150px, 72%) !important;
    height: min(150px, 72%) !important;
    padding: 8px !important;
    object-fit: contain !important;
}

body.p2es-public-club .club-name-circle svg {
    top: 0 !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
}

/* Premium public club surface. Player profiles deliberately retain their
   established sport-specific presentation. */
body.p2es-public-club {
    --club-shell: #070b14;
    --club-panel: rgba(16, 24, 40, .92);
    --club-panel-soft: rgba(26, 36, 56, .78);
    --club-line: rgba(148, 163, 184, .22);
    --club-purple: #7c4dff;
    --club-lime: #d7ff00;
    --club-cyan: #25c7db;
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 8%, rgba(37, 199, 219, .13), transparent 28rem),
        radial-gradient(circle at 16% 16%, rgba(124, 77, 255, .2), transparent 34rem),
        #070b14 !important;
    color: #f8fafc;
    font-family: Poppins, Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
}

body.p2es-public-club .main > .d-flex {
    align-items: stretch;
}

body.p2es-public-club .main > .d-flex > div[style] {
    min-width: 0;
}

body.p2es-public-club .profile-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    flex: 0 0 188px;
    width: 188px;
    height: 100vh;
    min-height: 700px;
    padding: 14px 12px;
    border-right: 1px solid var(--club-line);
    background:
        linear-gradient(180deg, rgba(124, 77, 255, .18), transparent 24%),
        rgba(6, 10, 18, .97) !important;
    box-shadow: 20px 0 55px rgba(0, 0, 0, .32);
    overflow: hidden;
}

body.p2es-public-club .sidebar-dropdown {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(166, 131, 255, .4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 77, 255, .95), rgba(76, 43, 180, .72)) !important;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .08em;
    text-align: center;
}

body.p2es-public-club .sidebar-scroll-btn {
    width: 100%;
    height: 34px;
    margin: 8px 0;
    border: 1px solid var(--club-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    color: #cbd5e1;
}

body.p2es-public-club .sidebar-scroll-btn:hover,
body.p2es-public-club .sidebar-scroll-btn:focus-visible {
    border-color: rgba(215, 255, 0, .7);
    color: var(--club-lime);
    outline: none;
}

body.p2es-public-club .sidebar-player-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--club-purple) transparent;
}

body.p2es-public-club .sidebar-card {
    display: block;
    width: min(100%, 132px) !important;
    min-height: 176px;
    margin: 0 auto 10px;
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(124, 77, 255, .08), rgba(5, 9, 16, .92)),
        #0e1523;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.p2es-public-club .sidebar-card:hover,
body.p2es-public-club .sidebar-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(215, 255, 0, .72);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
    outline: none;
}

body.p2es-public-club .sidebar-card-bg {
    opacity: .15;
    filter: saturate(.7) hue-rotate(20deg);
}

body.p2es-public-club .sidebar-card-player {
    inset: 12px 12px 30px !important;
    width: calc(100% - 24px) !important;
    height: calc(100% - 42px) !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: none !important;
}

body.p2es-public-club .sidebar-card-name {
    position: absolute;
    right: 8px;
    bottom: 7px;
    left: 8px;
    z-index: 4;
    overflow: hidden;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.p2es-public-club .header {
    margin: 0 !important;
    border-bottom: 1px solid var(--club-line) !important;
    background: rgba(7, 11, 20, .9) !important;
}

body.p2es-public-club .header .container {
    width: min(100% - 32px, 1560px) !important;
    max-width: 1560px !important;
}

body.p2es-public-club .header .navbar {
    min-height: 82px;
    padding: 10px 0 !important;
}

body.p2es-public-club .sport-nav-logo {
    width: 58px !important;
    height: 58px !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
}

body.p2es-public-club .header .nav-link {
    position: relative;
    color: #cbd5e1 !important;
    font-family: inherit !important;
    font-size: .82rem;
    font-weight: 700 !important;
    letter-spacing: .035em;
}

body.p2es-public-club .header .nav-link:hover,
body.p2es-public-club .header .nav-link:focus-visible {
    color: #fff !important;
}

body.p2es-public-club .hero-section-custom {
    width: min(calc(100% - 36px), 1560px) !important;
    margin: 20px auto 0 !important;
    overflow: hidden;
    border: 1px solid rgba(151, 165, 190, .28);
    border-radius: 28px;
    background:
        linear-gradient(125deg, rgba(124, 77, 255, .14), transparent 38%),
        rgba(10, 16, 29, .88) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

body.p2es-public-club .hero-section-custom::after {
    background:
        linear-gradient(90deg, rgba(7, 12, 22, .24), rgba(7, 12, 22, .72)),
        radial-gradient(circle at 84% 18%, rgba(37, 199, 219, .18), transparent 26rem);
}

body.p2es-public-club .hero-left-content {
    min-height: 660px;
    padding: clamp(38px, 5vw, 76px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, rgba(7, 13, 25, .96), rgba(14, 25, 43, .83)),
        var(--header-bg-img) center/cover no-repeat !important;
}

body.p2es-public-club .weather-location {
    width: max-content;
    padding: 8px 12px;
    border: 1px solid var(--club-line);
    border-radius: 999px;
    background: rgba(24, 25, 28, .72);
    color: #dce5f3;
}

body.p2es-public-club .weather-temp {
    color: #fff;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 800;
}

body.p2es-public-club .weather-desc,
body.p2es-public-club .weather-city {
    font-family: inherit !important;
    font-size: .68rem !important;
}

body.p2es-public-club .club-profile-kicker,
body.p2es-public-club .club-crest-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--club-lime);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.p2es-public-club .club-identity-card {
    position: relative !important;
    display: grid !important;
    width: min(100%, 330px) !important;
    max-width: 330px !important;
    aspect-ratio: 1;
    margin: 0 auto 16px !important;
    padding: 30px !important;
    place-items: center !important;
    overflow: hidden;
    border: 1px solid rgba(151, 165, 190, .28);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(124, 77, 255, .18), transparent 55%),
        rgba(7, 12, 22, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 28px 60px rgba(0, 0, 0, .36);
    transform: none !important;
}

body.p2es-public-club .club-identity-logo-wrap {
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    place-items: center !important;
}

body.p2es-public-club .club-identity-logo {
    position: static !important;
    display: block !important;
    width: min(210px, 76%) !important;
    height: min(210px, 76%) !important;
    margin: auto !important;
    padding: 12px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .42));
    transform: none !important;
}

body.p2es-public-club .club-identity-sport-logo {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 2;
    width: 48px !important;
    height: 48px !important;
    padding: 8px;
    border: 1px solid var(--club-line);
    border-radius: 16px;
    background: rgba(7, 11, 20, .98) !important;
    object-fit: contain;
}

body.p2es-public-club .club-identity-card--mobile {
    width: min(280px, 82vw) !important;
}

body.p2es-public-club .club-profile-kicker i {
    width: 24px;
    height: 2px;
    display: inline-block;
    background: var(--club-lime);
    box-shadow: 0 0 14px rgba(215, 255, 0, .62);
}

body.p2es-public-club .hero-title {
    max-width: 880px;
    margin-bottom: 24px !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: clamp(2.6rem, 5vw, 5.8rem) !important;
    font-weight: 800 !important;
    line-height: .98 !important;
    letter-spacing: -.045em;
    text-wrap: balance;
}

body.p2es-public-club .club-profile-actions {
    width: min(100%, 540px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.p2es-public-club .club-profile-actions .join-club-btn,
body.p2es-public-club .club-profile-actions .donate-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    letter-spacing: .09em;
}

body.p2es-public-club .club-profile-metrics {
    width: min(100%, 540px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
}

body.p2es-public-club .club-profile-metrics > div {
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--club-line);
    border-radius: 14px;
    background: rgba(24, 25, 28, .7);
}

body.p2es-public-club .club-profile-metrics strong,
body.p2es-public-club .club-profile-metrics span {
    display: block;
}

body.p2es-public-club .club-profile-metrics strong {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
}

body.p2es-public-club .club-profile-metrics span {
    margin-top: 5px;
    color: #8fa0b8;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.p2es-public-club .share-profile > span {
    display: block;
    margin-bottom: 10px;
    color: #dce5f3;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.p2es-public-club .share-profile .p2es-social-share-actions {
    justify-content: flex-start;
}

body.p2es-public-club .share-profile .social-share-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
}

body.p2es-public-club .hero-info-cards {
    align-items: stretch !important;
    justify-content: flex-start !important;
}

body.p2es-public-club .info-card {
    flex: 1 1 250px;
    max-width: 390px;
    min-height: 128px;
    padding: 18px 20px !important;
    border: 1px solid var(--club-line) !important;
    border-radius: 18px !important;
    background: rgba(24, 25, 28, .72) !important;
    box-shadow: none !important;
}

body.p2es-public-club .info-card-title {
    color: #fff !important;
    font-family: inherit !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
}

body.p2es-public-club .info-card-desc {
    color: #aab7ca !important;
    font-family: inherit !important;
    font-size: .77rem !important;
    line-height: 1.65 !important;
}

body.p2es-public-club .hero-contact-bar {
    width: fit-content;
    padding: 10px 14px !important;
    border: 1px solid var(--club-line) !important;
    border-radius: 14px !important;
    background: rgba(24, 25, 28, .68) !important;
    color: #cbd5e1 !important;
    font-family: inherit !important;
    font-size: .7rem !important;
}

body.p2es-public-club .hero-right-content {
    min-height: 660px;
    padding: 60px 34px 76px !important;
    overflow: hidden;
    border-left: 1px solid rgba(151, 165, 190, .22);
    background:
        radial-gradient(circle at 50% 38%, rgba(37, 199, 219, .25), transparent 15rem),
        linear-gradient(155deg, rgba(31, 42, 68, .98), rgba(10, 16, 29, .98)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.p2es-public-club .club-crest-eyebrow {
    position: static !important;
    margin: 0 auto 18px !important;
    text-align: center;
}

body.p2es-public-club .hexagon-badge {
    width: min(100%, 330px) !important;
    max-width: 330px !important;
    aspect-ratio: 1;
    padding: 30px;
    border: 1px solid rgba(151, 165, 190, .28);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(124, 77, 255, .18), transparent 55%),
        rgba(7, 12, 22, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 28px 60px rgba(0, 0, 0, .36);
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 auto 16px !important;
    transform: none !important;
}

body.p2es-public-club .club-name-circle {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    transform: none !important;
}

body.p2es-public-club .club-name-circle svg,
body.p2es-public-club .hockey-bg-img {
    display: none !important;
}

body.p2es-public-club .club-name-circle .hex-logo-img {
    width: min(210px, 76%) !important;
    height: min(210px, 76%) !important;
    padding: 12px !important;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .42));
    position: static !important;
    inset: auto !important;
    margin: auto !important;
    transform: none !important;
}

body.p2es-public-club .club-crest-name {
    max-width: 320px;
    margin: 0 auto 8px;
    color: #fff;
    font-family: inherit !important;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.35;
    text-align: center;
}

body.p2es-public-club .sport-corner-logo {
    top: 18px !important;
    right: 18px !important;
    width: 48px !important;
    height: 48px !important;
    transform: none !important;
    padding: 8px;
    border: 1px solid var(--club-line);
    background: rgba(8, 14, 25, .88);
}

body.p2es-public-club .vertical-hockey-text {
    right: -14px !important;
    color: rgba(255, 255, 255, .055) !important;
    font-family: inherit !important;
    font-size: clamp(4rem, 7vw, 7rem) !important;
    font-weight: 900 !important;
    letter-spacing: -.04em !important;
}

body.p2es-public-club .hero-managed-by {
    min-width: 0;
    margin-top: 20px;
    padding: 10px 15px;
    border: 1px solid rgba(215, 255, 0, .32);
    border-radius: 999px;
    background: rgba(215, 255, 0, .07);
    color: var(--club-lime);
    font-family: inherit !important;
    font-size: .65rem !important;
    font-weight: 900 !important;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.p2es-public-club .hero-onboarding-note {
    right: 32px;
    bottom: 22px !important;
    left: 32px;
    max-width: none !important;
    margin: 0 !important;
    color: #8fa0b8 !important;
    font-family: inherit !important;
    font-size: .67rem !important;
}

body.p2es-public-club .tab-content {
    width: min(calc(100% - 36px), 1560px) !important;
    margin: 18px auto 0 !important;
}

body.p2es-public-club .menu-bar {
    width: fit-content !important;
    max-width: 100%;
    gap: 6px !important;
    padding: 7px !important;
    overflow-x: auto;
    border: 1px solid var(--club-line);
    border-radius: 18px !important;
    background: rgba(10, 16, 29, .88) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

body.p2es-public-club .menu-bar .css-tab-label {
    min-height: 42px;
    padding: 9px 15px !important;
    border-radius: 12px !important;
    color: #9ba9bc !important;
    font-family: inherit !important;
    font-size: .7rem !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
}

body.p2es-public-club .menu-bar .css-tab-input:checked + .css-tab-label {
    background: linear-gradient(135deg, var(--club-purple), #5c36d9) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(92, 54, 217, .28);
}

body.p2es-public-club .tab-wrapper,
body.p2es-public-club .club-list-grid-container,
body.p2es-public-club .bio-card,
body.p2es-public-club .coach-card,
body.p2es-public-club .team-card,
body.p2es-public-club .club-player-card {
    border-color: var(--club-line) !important;
    background: var(--club-panel) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28) !important;
}

body.p2es-public-club .news-letter,
body.p2es-public-club .footer {
    border-top: 1px solid var(--club-line);
    background: rgba(7, 11, 20, .96) !important;
}

/* GLM-public-3 / GLM-college-4: the theme's yellow --btn-color on the blue
   --btn-bg SUBSCRIBE button was 2.93:1; dark ink on the same blue is 5.2:1. */
body.p2es-public-profile .news-letter .cta-form .input-group .btn-subscribe,
body.p2es-public-profile .news-letter .cta-form .input-group .btn-subscribe:hover,
body.p2es-public-profile .news-letter .cta-form .input-group .btn-subscribe:focus-visible {
    color: #0b0f13;
}

@media (max-width: 1199.98px) {
    body.p2es-public-club .profile-sidebar {
        flex-basis: 164px;
        width: 164px;
    }

    body.p2es-public-club .hero-left-content {
        padding: 42px !important;
    }

    body.p2es-public-club .hero-title {
        font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    }
}

@media (max-width: 991.98px) {
    body.p2es-public-club .header .container,
    body.p2es-public-club .hero-section-custom,
    body.p2es-public-club .tab-content {
        width: calc(100% - 24px) !important;
    }

    body.p2es-public-club .header .navbar-collapse {
        margin-top: 10px;
        border: 1px solid var(--club-line);
        border-radius: 16px;
        background: rgba(7, 11, 20, .98) !important;
    }

    body.p2es-public-club .mobile-player-rail {
        padding: 16px 0 2px;
        border-bottom: 1px solid var(--club-line);
        background: rgba(7, 12, 22, .72);
    }

    body.p2es-public-club .hero-left-content {
        min-height: 0;
        padding: 38px !important;
    }

    body.p2es-public-club .hero-title {
        font-size: clamp(2.35rem, 9vw, 4.2rem) !important;
    }

    body.p2es-public-club .mobile-hexagon-badge {
        width: min(280px, 82vw) !important;
        margin: 6px auto 24px !important;
    }
}

@media (max-width: 575.98px) {
    body.p2es-public-club .header .container,
    body.p2es-public-club .hero-section-custom,
    body.p2es-public-club .tab-content {
        width: calc(100% - 16px) !important;
    }

    body.p2es-public-club .header .navbar {
        min-height: 68px;
    }

    body.p2es-public-club .sport-nav-logo {
        width: 46px !important;
        height: 46px !important;
    }

    body.p2es-public-club .hero-section-custom {
        margin-top: 10px !important;
        border-radius: 22px;
    }

    body.p2es-public-club .hero-left-content {
        padding: 26px 20px 30px !important;
    }

    body.p2es-public-club .weather-location {
        max-width: 100%;
    }

    body.p2es-public-club .hero-title {
        margin-top: 14px !important;
        font-size: clamp(2.15rem, 12vw, 3.25rem) !important;
    }

    body.p2es-public-club .club-profile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    body.p2es-public-club .club-profile-actions .join-club-btn,
    body.p2es-public-club .club-profile-actions .donate-btn {
        width: 100%;
        min-width: 0;
        padding-inline: 10px !important;
    }

    body.p2es-public-club .club-profile-metrics {
        gap: 7px;
    }

    body.p2es-public-club .club-profile-metrics > div {
        padding: 11px 9px;
    }

    body.p2es-public-club .share-profile .p2es-social-share-actions {
        justify-content: center;
    }

    body.p2es-public-club .hero-info-cards {
        gap: 10px !important;
    }

    body.p2es-public-club .info-card {
        width: 100% !important;
        max-width: none;
        min-height: 0;
    }

    body.p2es-public-club .hero-contact-bar {
        width: 100%;
        align-items: flex-start !important;
    }

    body.p2es-public-club .tab-content {
        padding: 0 !important;
    }

    body.p2es-public-club .menu-bar {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }

    body.p2es-public-club .menu-bar .css-tab-label {
        flex: 0 0 auto;
        width: auto !important;
        white-space: nowrap;
    }
}

/* The legacy sport theme promotes the desktop player sidebar to
   `display:flex !important` below 768px. The premium public club shell uses a
   dedicated horizontal player rail on phones, so the fixed rail must leave
   the layout completely instead of consuming the first 164px of the viewport. */
@media (max-width: 767.98px) {
    body.p2es-public-club {
        width: 100%;
        max-width: 100%;
        overflow-x: clip !important;
    }

    body.p2es-public-club .main,
    body.p2es-public-club .main > .d-flex,
    body.p2es-public-club .main > .d-flex > div[style] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.p2es-public-club .main > .d-flex {
        display: block !important;
    }

    body.p2es-public-club .profile-sidebar {
        display: none !important;
        flex: 0 0 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    body.p2es-public-club .header,
    body.p2es-public-club .header .container,
    body.p2es-public-club .header .navbar,
    body.p2es-public-club .header .container-fluid,
    body.p2es-public-club .hero-section-custom,
    body.p2es-public-club .hero-section-custom .row,
    body.p2es-public-club .hero-left-content,
    body.p2es-public-club .tab-content {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    body.p2es-public-club .header .container-fluid {
        padding-inline: 10px !important;
    }

    body.p2es-public-club .hero-section-custom {
        overflow: hidden;
    }

    body.p2es-public-club .hero-title,
    body.p2es-public-club .weather-location,
    body.p2es-public-club .hero-contact-bar {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.p2es-public-club .club-profile-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        box-sizing: border-box;
    }

    body.p2es-public-club .club-profile-actions > *,
    body.p2es-public-club .club-profile-actions .join-club-btn,
    body.p2es-public-club .club-profile-actions .donate-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding-inline: 8px !important;
        box-sizing: border-box;
    }

    body.p2es-public-club .club-profile-metrics {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        box-sizing: border-box;
    }

    body.p2es-public-club .club-profile-metrics > div {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 10px 4px !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    body.p2es-public-club .club-profile-metrics strong {
        font-size: 1.05rem;
    }

    body.p2es-public-club .club-profile-metrics span {
        font-size: .58rem;
        letter-spacing: .055em;
        overflow-wrap: anywhere;
    }

    body.p2es-public-club .share-profile,
    body.p2es-public-club .share-profile > div,
    body.p2es-public-club .share-profile .p2es-social-share-actions,
    body.p2es-public-club .hero-info-cards,
    body.p2es-public-club .info-card,
    body.p2es-public-club .hero-contact-bar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    body.p2es-public-club .share-profile .p2es-social-share-actions,
    body.p2es-public-club .hero-info-cards,
    body.p2es-public-club .hero-contact-bar {
        flex-wrap: wrap !important;
    }

    body.p2es-public-club .info-card,
    body.p2es-public-club .info-card-title,
    body.p2es-public-club .info-card-desc,
    body.p2es-public-club .hero-contact-bar > * {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }

    body.p2es-public-club .hero-contact-bar > span {
        white-space: normal !important;
        word-break: break-word;
        overflow: visible !important;
    }

    body.p2es-public-club .club-mobile-identity {
        width: 100%;
        max-width: 100%;
    }

    body.p2es-public-club .club-identity-card--mobile {
        margin-inline: auto !important;
    }

    body.p2es-public-club .mobile-player-rail,
    body.p2es-public-club .mobile-player-rail__track {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

.mobile-player-rail {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-player-rail {
        display: block;
        padding: 14px 0 4px;
    }

    .mobile-player-rail__head {
        display: flex;
        justify-content: space-between;
        align-items: end;
        margin: 0 16px 10px;
    }

    .mobile-player-rail__head strong { color: #fff; }
    .mobile-player-rail__head span { color: var(--p2es-public-muted); font-size: .78rem; }

    .mobile-player-rail__track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 0 16px 12px;
        scroll-snap-type: x mandatory;
        scrollbar-color: var(--p2es-public-purple) transparent;
    }

    .mobile-player-rail__card {
        flex: 0 0 118px;
        min-height: 154px;
        padding: 10px;
        border: 1px solid var(--p2es-public-border);
        border-radius: 18px;
        background: var(--p2es-public-panel);
        color: #fff;
        text-decoration: none;
        text-align: center;
        scroll-snap-align: start;
    }

    .mobile-player-rail__card img {
        width: 88px !important;
        height: 104px !important;
        margin: 0 auto 7px;
        object-fit: contain !important;
        object-position: center bottom;
        border-radius: 12px;
    }

    .mobile-player-rail__card span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .75rem;
        font-weight: 800;
    }
}

@media (max-width: 575.98px) {
    .p2es-public-share {
        width: calc(100% - 20px);
        border-radius: 18px;
    }

    .p2es-social-share-actions { gap: 9px; }
    .p2es-social-share-actions .social-share-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
}

/* ---------------------------------------------------------------- R-14 ----
 * The public profile header, and the section links that used to BE the header.
 *
 * The strip these replace carried four in-page anchors and nothing else, so a
 * visitor who landed on a player's page could not reach the rest of the site,
 * and its LOGIN button was static markup with no auth check — a signed-in
 * person was invited to log in again with no way back. Both pages now include
 * one shared header (public/profiles/partials/public-header) carrying the real
 * site navigation and an auth-aware account control.
 */
/*
 * Deliberately NO overrides of #mainmenu here. partials/public/nav-styles ships
 * the navigation's own stylesheet and it is what makes the same menu work on
 * the homepage; restyling it from this file produced a six-row menu 258px tall.
 * If the menu ever looks wrong on a profile, fix it where it is defined.
 */

/* Signed in: the avatar and the way back. */
body.p2es-public-profile .p2es-public-header__account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f4f7fb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body.p2es-public-profile .p2es-public-header__account:hover {
    border-color: #ccff00;
    color: #ccff00;
}

body.p2es-public-profile .p2es-public-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

/* The four in-page links, below the hero where what they jump to is visible. */
body.p2es-public-profile .p2es-profile-sections {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 12, 22, 0.72);
}

body.p2es-public-profile .p2es-profile-sections__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

body.p2es-public-profile .p2es-profile-sections__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    color: rgba(244, 247, 251, 0.82);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
}

body.p2es-public-profile .p2es-profile-sections__link:hover,
body.p2es-public-profile .p2es-profile-sections__link:focus-visible {
    background: rgba(204, 255, 0, 0.14);
    color: #ccff00;
}

@media (max-width: 991.98px) {
    body.p2es-public-profile .p2es-public-header__account-label {
        display: none;
    }

    body.p2es-public-profile .p2es-public-header__account {
        padding: 6px;
    }

    body.p2es-public-profile .p2es-profile-sections__list {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/*
 * The profile pages load their own Bootstrap bundle and a full theme
 * stylesheet, and between them the shared navigation's submenus were laid out
 * IN FLOW rather than as dropdowns — which turned a one-row menu into a 258px
 * six-row block and a 292px-tall header. nav-styles already says
 * flex-wrap: nowrap; what was missing here is the submenu being taken out of
 * the flow. Scoped to this header so nothing else can be affected.
 */
body.p2es-public-profile .p2es-public-header #mainmenu > li > ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 30;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(7, 12, 22, 0.98);
    list-style: none;
}

body.p2es-public-profile .p2es-public-header #mainmenu > li:hover > ul,
body.p2es-public-profile .p2es-public-header #mainmenu > li.submenu-open > ul {
    display: block;
}

body.p2es-public-profile .p2es-public-header #mainmenu > li > ul a {
    display: block;
    padding: 8px 16px;
    color: rgba(244, 247, 251, 0.88);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

body.p2es-public-profile .p2es-public-header #mainmenu > li > ul a:hover {
    color: #ccff00;
}

/* ------------------------------------------------------- CROSS-02 shop ----
 * A club's merchandise on its own public page. The Marketplace does not list
 * club products by design — it feeds the platform cart, and one cart never
 * mixes payees — so without this a published product had no surface a visitor
 * would ever look at.
 */
body.p2es-public-club .club-shop__header {
    margin-bottom: 18px;
}

body.p2es-public-club .club-shop__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}

body.p2es-public-club .club-shop__subtitle,
body.p2es-public-club .club-shop__empty,
body.p2es-public-club .club-shop__more {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
}

body.p2es-public-club .club-shop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

body.p2es-public-club .club-shop__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(151, 165, 190, 0.28);
    border-radius: 18px;
    background: rgba(7, 12, 22, 0.62);
}

body.p2es-public-club .club-shop__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

/* The same lesson as the hero portrait: the slot carries the bounds, so any
   upload lands in the same box instead of setting the card's shape. */
body.p2es-public-club .club-shop__media img {
    display: block;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}

body.p2es-public-club .club-shop__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
}

body.p2es-public-club .club-shop__category {
    color: rgba(148, 163, 184, 0.95);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.p2es-public-club .club-shop__name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

body.p2es-public-club .club-shop__description {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 12.5px;
    line-height: 1.45;
}

body.p2es-public-club .club-shop__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
}

body.p2es-public-club .club-shop__price strong {
    font-size: 18px;
}

body.p2es-public-club .club-shop__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, 0.55);
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.16);
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

body.p2es-public-club .club-shop__cta:hover {
    border-color: #ccff00;
    color: #ccff00;
}

body.p2es-public-club .club-shop__unavailable {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(234, 179, 8, 0.45);
    border-radius: 12px;
    background: rgba(234, 179, 8, 0.12);
    color: rgba(226, 232, 240, 0.86);
    font-size: 11.5px;
    line-height: 1.45;
}

/* Public club pages scroll with the document. A fixed body height is scaled
   by Compact density and otherwise clips the bottom 15% of the viewport. */
body.p2es-public-club {
    height: auto !important;
}

/*
 * Phone pass 2 (owner rule, 2026-10-07): no sideways scrolling - the public
 * profile's mobile rail becomes a wrapping grid of cards on phones.
 */
@media (max-width: 767.98px) {
    .mobile-player-rail__track {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        overflow-x: visible;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        scroll-snap-type: none;
    }
}

/* GLM-public-2: owner rule, 44px phone tap targets on public club and profile pages. */
@media (max-width: 767.98px) {
    body.p2es-public-profile .p2es-profile-sections__link,
    body.p2es-public-profile .news-letter .cta-form .input-group .btn-subscribe {
        min-height: 44px;
    }

    body.p2es-public-profile .club-search-btn {
        width: 44px;
        height: 44px;
        right: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.p2es-public-profile .hero-contact-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}
