/* IR Basketball — public professional profile 1.4 */
:root {
    --ibp-navy: #061b3f;
    --ibp-navy-2: #0b2c5b;
    --ibp-orange: #ff7918;
    --ibp-text: #102342;
    --ibp-muted: #64748b;
    --ibp-line: rgba(8, 31, 67, .10);
    --ibp-surface: rgba(255, 255, 255, .94);
}

.ib-public-profile-show-main {
    background:
        radial-gradient(circle at 85% 6%, rgba(255, 121, 24, .08), transparent 28rem),
        #f2f6fb;
}

.ib-public-profile-show-page.ib-profile-v18-page {
    width: min(100% - 40px, 1240px);
    max-width: 1240px;
    margin-inline: auto;
    padding: 24px 0 80px;
}

.ib-owner-privacy-notice {
    max-width: none;
    margin: 0 0 16px;
}

.ib-profile-v18-back {
    margin: 0 0 14px;
}

.ib-profile-v18-back a {
    min-height: 40px;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease;
}

.ib-profile-v18-back a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 121, 24, .38);
}

.ib-profile-v18-hero {
    min-height: 390px;
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(6, 27, 63, .20);
}

.ib-profile-v18-cover::after {
    background:
        linear-gradient(90deg, rgba(3, 15, 38, .94), rgba(5, 30, 65, .84) 55%, rgba(6, 27, 63, .54)),
        radial-gradient(circle at 84% 12%, rgba(255, 121, 24, .30), transparent 36%);
}

.ib-profile-v18-cover-pattern {
    opacity: .11;
    background-size: 42px 42px;
    animation: ibp-court-drift 16s linear infinite;
}

.ib-profile-v18-identity {
    min-height: 390px;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: end;
    padding: 48px;
}

.ib-profile-v18-avatar-wrap,
.ib-profile-v18-avatar {
    width: 176px;
    height: 176px;
}

.ib-profile-v18-avatar {
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ibp-orange), var(--ibp-navy-2));
}

.ib-profile-v18-role-icon {
    right: auto;
    inset-inline-end: -4px;
    bottom: 4px;
    border-radius: 50%;
}

.ib-profile-v18-title h1 {
    max-width: 760px;
    font-size: clamp(36px, 4.8vw, 60px);
    line-height: 1.35;
}

.ib-profile-v18-title p {
    max-width: 800px;
    margin-top: 8px;
}

.ib-community-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.ib-community-follow-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 800;
}

.ib-community-follow-stat strong {
    color: #fff;
    font-size: 16px;
}

.ib-community-follow-form { margin: 0; }

.ib-community-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ibp-orange);
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(255, 121, 24, .26);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ib-community-follow-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 121, 24, .34);
}

.ib-community-follow-btn.is-following,
.ib-community-follow-btn.is-muted {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: none;
}

.ib-profile-v18-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 22px 0 48px !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    grid-template-areas: "content sidebar" !important;
    gap: 20px !important;
}

.ib-profile-v18-card {
    border-radius: 22px;
    padding: 24px;
    background: var(--ibp-surface);
    border-color: var(--ibp-line);
    box-shadow: 0 16px 42px rgba(6, 27, 63, .07);
}

.ib-profile-v18-card::before { display: none; }

.ib-profile-v18-card h2 {
    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.55;
}

.ib-profile-v18-card.is-summary {
    color: #fff;
    background: linear-gradient(145deg, var(--ibp-navy), #102e5b);
}

.ib-profile-v18-card.is-summary h2,
.ib-profile-v18-card.is-summary .ib-profile-v18-card-kicker {
    color: #fff;
}

.ib-profile-v18-card.is-summary .ib-profile-v18-mini-stats div {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .13);
}

.ib-profile-v18-card.is-summary .ib-profile-v18-mini-stats strong { color: #fff; }
.ib-profile-v18-card.is-summary .ib-profile-v18-mini-stats span { color: rgba(255, 255, 255, .66); }

.ib-profile-v18-mini-stats,
.ib-community-side-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ib-community-side-stats div {
    padding: 14px;
    border-radius: 16px;
    background: #f6f8fb;
    border: 1px solid var(--ibp-line);
}

.ib-community-side-stats strong,
.ib-community-side-stats span { display: block; }
.ib-community-side-stats strong { color: var(--ibp-navy); font-size: 22px; }
.ib-community-side-stats span { color: var(--ibp-muted); font-size: 12px; font-weight: 800; }

.ib-profile-v18-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ib-profile-v18-stat {
    min-height: 112px;
    border-radius: 18px;
    padding: 15px;
}

.ib-profile-v18-text-list article,
.ib-profile-v18-relation-group {
    border-radius: 18px;
}

.ib-profile-v18-relation-group a {
    transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.ib-profile-v18-relation-group a:hover {
    color: #d95c00;
    border-color: rgba(255, 121, 24, .34);
    transform: translateY(-1px);
}

.ib-profile-public-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.ib-profile-public-gallery a,
.ib-profile-public-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    object-fit: cover;
}

.ib-profile-public-gallery img { transition: transform .25s ease; }
.ib-profile-public-gallery a:hover img { transform: scale(1.025); }

.ib-profile-public-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ib-profile-public-links a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--ibp-navy);
    color: #fff;
    text-decoration: none;
}

.ib-profile-public-video video {
    width: 100%;
    max-height: 520px;
    margin-top: 18px;
    border-radius: 18px;
    background: var(--ibp-navy);
}

.ib-public-contact-card {
    margin: 18px 0;
    padding: 18px;
    border-radius: 18px;
    background: #f7f9fc;
    border: 1px solid var(--ibp-line);
    box-shadow: none;
}

.ib-public-contact-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ib-public-contact-links a {
    padding: 13px;
    border-radius: 14px;
    background: #fff;
}

.ib-public-profile-show-page > .mt-5 {
    margin-top: 22px !important;
    padding: 24px;
    border: 1px solid var(--ibp-line);
    border-radius: 22px;
    background: #fff;
}

@keyframes ibp-court-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(42px, 42px, 0); }
}

@media (max-width: 1024px) {
    .ib-profile-v18-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas: "sidebar" "content" !important;
    }

    .ib-profile-v18-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ib-profile-v18-side > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .ib-public-profile-show-page.ib-profile-v18-page {
        width: min(100% - 24px, 680px);
        padding-top: 12px;
    }

    .ib-profile-v18-back {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .ib-profile-v18-back a { white-space: nowrap; }

    .ib-profile-v18-hero {
        min-height: 0;
        border-radius: 24px;
    }

    .ib-profile-v18-identity {
        min-height: 0;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 34px 18px 28px;
    }

    .ib-profile-v18-avatar-wrap,
    .ib-profile-v18-avatar {
        width: 118px !important;
        height: 118px !important;
    }

    .ib-profile-v18-title h1 { font-size: 30px; }
    .ib-profile-v18-pills,
    .ib-community-profile-actions { justify-content: center; }

    .ib-community-follow-stat { order: 2; }
    .ib-community-follow-form,
    .ib-community-follow-btn { width: 100%; }

    .ib-profile-v18-side { grid-template-columns: 1fr; }
    .ib-profile-v18-stat-grid,
    .ib-profile-v18-text-list,
    .ib-profile-v18-relations { grid-template-columns: 1fr; }
    .ib-profile-public-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ib-public-contact-links { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .ib-profile-v18-card { padding: 18px; }
    .ib-profile-v18-mini-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ib-profile-v18-cover-pattern { animation: none; }
    .ib-community-follow-btn,
    .ib-profile-public-gallery img,
    .ib-profile-v18-relation-group a { transition: none; }
}

/* =========================================================
   IR Basketball — Public profile detail / Phase 6
   Full-bleed identity hero with a compact professional body.
   ========================================================= */
.ib-profile-detail-phase6 {
    overflow: visible;
}

.ib-profile-detail-phase6 .ib-profile-v18-back {
    position: relative;
    z-index: 4;
    margin-block: 14px;
}

.ib-profile-detail-phase6 .ib-profile-detail-hero {
    width: 100vw;
    max-width: none;
    min-height: 310px;
    margin-inline: calc(50% - 50vw);
    border-inline: 0;
    border-radius: 0;
    box-shadow: 0 22px 58px rgba(6, 27, 63, .18);
}

.ib-profile-detail-phase6 .ib-profile-v18-cover::after {
    background:
        linear-gradient(90deg, rgba(3, 15, 38, .92), rgba(5, 30, 65, .80) 55%, rgba(6, 27, 63, .52)),
        radial-gradient(circle at 84% 12%, rgba(255, 121, 24, .26), transparent 34%);
}

.ib-profile-detail-phase6 .ib-profile-v18-identity {
    width: min(100% - 40px, 1240px);
    min-height: 310px;
    margin-inline: auto;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 26px;
    padding: 34px 0;
}

.ib-profile-detail-phase6 .ib-profile-v18-avatar-wrap,
.ib-profile-detail-phase6 .ib-profile-v18-avatar {
    width: 148px;
    height: 148px;
}

.ib-profile-detail-phase6 .ib-profile-v18-avatar {
    border-width: 4px;
}

.ib-profile-detail-phase6 .ib-profile-v18-role-icon {
    width: 48px;
    height: 48px;
    font-size: 21px;
    border-width: 3px;
}

.ib-profile-detail-phase6 .ib-profile-v18-title h1 {
    max-width: 780px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.35;
}

.ib-profile-detail-phase6 .ib-profile-v18-title p {
    margin-top: 5px;
    font-size: 15px;
}

.ib-profile-detail-phase6 .ib-profile-v18-pills {
    margin-bottom: 10px;
}

.ib-profile-detail-phase6 .ib-community-profile-actions {
    margin-top: 14px;
}

.ib-profile-detail-phase6 .ib-profile-v18-grid {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 18px !important;
    margin: 20px 0 42px !important;
}

.ib-profile-detail-phase6 .ib-profile-v18-side,
.ib-profile-detail-phase6 .ib-profile-v18-content {
    gap: 14px;
}

@media (min-width: 1025px) {
    .ib-profile-detail-phase6 .ib-profile-v18-side {
        position: sticky;
        top: 84px;
    }
}

.ib-profile-detail-phase6 .ib-profile-v18-card {
    padding: 21px;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(6, 27, 63, .065);
}

.ib-profile-detail-phase6 .ib-profile-v18-card-kicker {
    margin-bottom: 8px;
}

.ib-profile-detail-phase6 .ib-profile-v18-card h2 {
    margin-bottom: 12px;
    font-size: clamp(20px, 2.15vw, 27px);
}

.ib-profile-detail-phase6 .ib-profile-v18-card p,
.ib-profile-detail-phase6 .ib-profile-v18-lead {
    margin-bottom: 0;
    line-height: 2.05;
}

.ib-profile-detail-phase6 .ib-profile-v18-card.is-summary h2,
.ib-profile-detail-phase6 .is-public-trust-card h2,
.ib-profile-detail-phase6 .ib-community-side-card h2 {
    font-size: 20px;
    line-height: 1.65;
}

.ib-profile-detail-phase6 .ib-profile-v18-mini-stats,
.ib-profile-detail-phase6 .ib-community-side-stats {
    gap: 8px;
}

.ib-profile-detail-phase6 .ib-profile-v18-mini-stats div,
.ib-profile-detail-phase6 .ib-community-side-stats div {
    padding: 11px;
    border-radius: 14px;
}

.ib-profile-detail-phase6 .ib-profile-v18-mini-stats strong,
.ib-profile-detail-phase6 .ib-community-side-stats strong {
    font-size: 17px;
}

.ib-profile-detail-phase6 .ib-profile-v18-stat-grid {
    gap: 10px;
}

.ib-profile-detail-phase6 .ib-profile-v18-stat {
    min-height: 102px;
    padding: 13px;
    border-radius: 15px;
}

.ib-profile-detail-phase6 .ib-profile-v18-text-list {
    gap: 10px;
}

.ib-profile-detail-phase6 .ib-profile-v18-text-list article,
.ib-profile-detail-phase6 .ib-profile-v18-relation-group {
    padding: 15px;
    border-radius: 15px;
}

.ib-profile-detail-phase6 > .ib-section-sponsor-card {
    width: 100%;
    max-width: none;
    margin-block: 16px 22px;
}

.ib-profile-detail-phase6 .ib-profile-related-honors {
    margin-top: 20px !important;
    padding: 21px;
    border: 1px solid var(--ibp-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(6, 27, 63, .06);
}

.ib-profile-detail-phase6 .ib-profile-related-honors article {
    box-shadow: none !important;
    border-color: var(--ibp-line) !important;
}

@media (max-width: 1024px) {
    .ib-profile-detail-phase6 .ib-profile-v18-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "sidebar"
            "content" !important;
        width: 100% !important;
    }
}

@media (max-width: 760px) {
    .ib-profile-detail-phase6 .ib-profile-detail-hero {
        min-height: 0;
    }

    .ib-profile-detail-phase6 .ib-profile-v18-identity {
        width: min(100% - 28px, 680px);
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 30px 0 26px;
    }

    .ib-profile-detail-phase6 .ib-profile-v18-avatar-wrap,
    .ib-profile-detail-phase6 .ib-profile-v18-avatar {
        width: 112px !important;
        height: 112px !important;
    }

    .ib-profile-detail-phase6 .ib-profile-v18-title h1 {
        font-size: 29px;
    }

    .ib-profile-detail-phase6 .ib-profile-v18-card {
        padding: 17px;
        border-radius: 18px;
    }

    .ib-profile-detail-phase6 .ib-profile-v18-stat-grid {
        grid-template-columns: 1fr;
    }
}
