/* Coach profiles share the player profile's hero and quiet card treatment. */
#coach-profile.profile-refresh {
    --profile-ink: #192b43;
    --profile-muted: #526176;
    --profile-line: #e1e7ef;
    --profile-tint: color-mix(in srgb, var(--primary-color) 7%, white);
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0;
    gap: var(--home-gap, 20px) !important;
}

#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] {
    height: auto !important;
    min-height: 220px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 18px;
    overflow: hidden !important;
    background: color-mix(in srgb, var(--primary-color) 55%, #000);
}
#coach-profile.profile-refresh [data-testid="banner-bg"] { display: none; }
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .hero-content {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 26px !important;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-header {
    display: grid !important;
    grid-template-columns: clamp(145px, 20vw, 225px) minmax(0, 1fr);
    gap: 24px !important;
    height: auto !important;
    min-height: 220px !important;
    align-items: end !important;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-header.coach-no-image {
    grid-template-columns: minmax(0, 1fr);
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-image-container {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 220px !important;
    max-width: none !important;
    max-height: none !important;
    align-self: end !important;
    margin: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-image-container[hidden] {
    display: none !important;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-main-image {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: bottom;
    display: block !important;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-info-header {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    min-width: 0;
    min-height: 220px;
    width: 100% !important;
    padding: 26px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    text-align: left !important;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-title-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding-right: 100px;
    min-width: 0;
    box-sizing: border-box;
}
#coach-profile.profile-refresh .coach-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-width: 0;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-name {
    font-size: clamp(1.55rem, 2.6vw, 2.1rem) !important;
    line-height: 1.16 !important;
    text-align: left !important;
    letter-spacing: -.035em;
    color: #fff;
    text-shadow: none;
    white-space: normal;
    overflow-wrap: anywhere;
    margin: 0 !important;
}
#coach-profile.profile-refresh .coach-name-row > .meta-item {
    display: inline-flex;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--profile-ink);
    line-height: 1.5;
    font-size: .81rem;
}
#coach-profile.profile-refresh .coach-name-row .team-link {
    color: var(--profile-ink) !important;
    font-size: inherit;
    font-weight: 600;
    white-space: normal;
    text-decoration: none;
}
#coach-profile.profile-refresh .coach-name-row .team-link:hover { text-decoration: underline; }
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-meta-info {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    overflow: visible !important;
    white-space: normal !important;
    margin: 0 !important;
    opacity: 1;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-meta-info .meta-item {
    color: #fff;
    font-size: .82rem !important;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .quick-stats {
    display: flex !important;
    flex-wrap: wrap;
    gap: 26px !important;
    margin: 4px 0 14px !important;
    padding: 0 !important;
    align-self: flex-start !important;
}
#coach-profile.profile-refresh .quick-stats .stat-item { display: flex; flex-direction: column-reverse; text-align: left; }
#coach-profile.profile-refresh .quick-stats .stat-value { font-size: 1.45rem !important; line-height: 1.2; text-shadow: none; margin: 0; }
#coach-profile.profile-refresh .quick-stats .stat-label { font-size: .68rem !important; letter-spacing: .055em; line-height: 1.4; margin: 3px 0 0; opacity: 1; }

#coach-profile.profile-refresh [data-testid="tabs-menu"] {
    width: 100%;
    position: relative;
    margin: auto 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0;
    overflow: hidden !important;
}
#coach-profile.profile-refresh [data-testid="tabs-menu"]::before,
#coach-profile.profile-refresh .profile-nav::before { content: none !important; }
#coach-profile.profile-refresh .profile-nav {
    display: flex !important;
    align-items: stretch !important;
    gap: 2px !important;
    min-height: 46px !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #ffffff80 transparent;
}
#coach-profile.profile-refresh .profile-nav .nav-tab {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    min-height: 46px !important;
    padding: 12px 15px !important;
    border: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    color: #fff !important;
    background: transparent !important;
    font-size: .84rem !important;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: none !important;
    text-overflow: clip;
    overflow: visible;
    transform: none !important;
}
#coach-profile.profile-refresh .profile-nav .nav-tab:hover { background: #00000018 !important; }
#coach-profile.profile-refresh .profile-nav .nav-tab.active { color: var(--profile-ink) !important; background: #fff !important; }
#coach-profile.profile-refresh .profile-nav .nav-tab::after { content: none !important; }
#coach-profile.profile-refresh .profile-tab-mobile { display: none; }
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] [data-testid="bookmark-btn"],
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .share-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    top: 10px !important;
}
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] [data-testid="bookmark-btn"] { right: 10px !important; }
#coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .share-btn { right: 54px !important; }
#coach-profile.profile-refresh :is(button, a, summary, select, input):focus-visible { outline: 3px solid #2975c5 !important; outline-offset: 3px; }
#coach-profile.profile-refresh .hero-section :is(button, a):focus-visible { outline: 2px solid #fff !important; outline-offset: -4px; }
#coach-profile.profile-refresh .hero-section .nav-tab.active:focus-visible,
#coach-profile.profile-refresh .hero-section .coach-name-row a:focus-visible { outline-color: var(--profile-ink) !important; }

#coach-profile.profile-refresh .tab-content {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}
#coach-profile.profile-refresh .overview-grid,
#coach-profile.profile-refresh #overview .overview-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    padding: 0;
    gap: var(--home-gap, 20px);
    margin: 0 !important;
}
#coach-profile.profile-refresh .content-card,
#coach-profile.profile-refresh .tab-content .content-card:last-of-type,
#coach-profile.profile-refresh #overview .overview-grid > .content-card {
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 !important;
    padding: 24px;
    border: 1px solid var(--profile-line);
    border-radius: 16px;
    box-shadow: 0 2px 7px #192b4305;
}
#coach-profile.profile-refresh .content-card:hover { transform: none; box-shadow: 0 2px 7px #192b4305; }
#coach-profile.profile-refresh .content-card::before { content: none !important; }
#coach-profile.profile-refresh .content-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 15px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--profile-line);
    background: transparent;
}
#coach-profile.profile-refresh .content-card .card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.018em; color: var(--profile-ink); gap: 10px; line-height: 1.35; }
#coach-profile.profile-refresh .content-card .card-icon { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; color: var(--profile-ink); background: var(--profile-tint); font-size: .87rem; }
#coach-profile.profile-refresh #overview .bio-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 18px; }
#coach-profile.profile-refresh .bio-item { min-width: 0; }
#coach-profile.profile-refresh .bio-label { font-size: .77rem; line-height: 1.5; color: var(--profile-muted); }
#coach-profile.profile-refresh .bio-value { font-size: .95rem; line-height: 1.5; color: var(--profile-ink); overflow-wrap: anywhere; }
#coach-profile.profile-refresh .accolades-container { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
#coach-profile.profile-refresh .accolade-badge { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--profile-line); border-radius: 10px; background: #fff; color: var(--profile-ink); font-size: .85rem; font-weight: 600; text-decoration: none; box-shadow: none; white-space: normal; }
#coach-profile.profile-refresh .accolade-badge:hover { border-color: var(--profile-ink); background: var(--profile-tint); transform: none; }
#coach-profile.profile-refresh .empty-state { color: var(--profile-muted); font-size: .9rem; line-height: 1.6; }
#coach-profile.profile-refresh .view-all-container { display: flex; align-items: center; justify-content: flex-end !important; gap: 12px; border-top: 1px solid var(--profile-line); margin-top: 16px; padding-top: 12px; }
#coach-profile.profile-refresh .profile-text-action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--profile-line); border-radius: 10px; background: #fff; color: var(--profile-ink); font: inherit; font-size: .85rem; font-weight: 650; text-decoration: none; cursor: pointer; box-shadow: none; }
#coach-profile.profile-refresh .profile-text-action:hover { border-color: var(--profile-ink); background: #f4f7fb; transform: none; }
#coach-profile.profile-refresh .stats-table-scroll-wrap { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
#coach-profile.profile-refresh .filters-grid { gap: 14px; margin-bottom: 18px; }
#coach-profile.profile-refresh .filter-group { min-width: 0; }
#coach-profile.profile-refresh :is(.filter-select, .profile-filter-button) { min-height: 44px; }

@media (max-width: 820px) {
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] { min-height: 0 !important; background: color-mix(in srgb, var(--primary-color) 55%, #000); }
    #coach-profile.profile-refresh [data-testid="banner-bg"] { display: none; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .share-btn { left: 10px !important; right: auto !important; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] [data-testid="bookmark-btn"] { left: 54px !important; right: auto !important; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .hero-content { padding: 0 12px !important; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-header { grid-template-columns: 100px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 14px !important; min-height: 0 !important; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-image-container { grid-column: 1; grid-row: 1; height: 152px !important; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-info-header { display: contents !important; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-title-row { grid-column: 2; grid-row: 1; align-self: center; padding: 24px 0 18px; min-width: 0; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .coach-no-image .player-title-row { grid-column: 1; padding: 66px 8px 22px; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-name { font-size: 1.5rem !important; white-space: normal !important; overflow-wrap: anywhere; }
    #coach-profile.profile-refresh .coach-name-row { gap: 8px; }
    #coach-profile.profile-refresh .coach-name-row > .meta-item { font-size: .73rem; padding: 5px 9px; }
    #coach-profile.profile-refresh .coach-name-row .profile-team-full { display: none; }
    #coach-profile.profile-refresh .coach-name-row .team-link::after { content: attr(data-mobile-label); }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .quick-stats { display: none !important; }
    #coach-profile.profile-refresh [data-testid="tabs-menu"] { grid-column: 1 / -1; grid-row: 2; width: calc(100% + 24px); margin: 0 -12px !important; overflow: visible !important; }
    #coach-profile.profile-refresh .profile-nav { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible !important; gap: 0 !important; background: color-mix(in srgb, var(--primary-color) 45%, #000) !important; }
    #coach-profile.profile-refresh .profile-nav .nav-tab { width: 100% !important; min-width: 0 !important; padding: 12px 4px !important; font-size: .8rem !important; }
    #coach-profile.profile-refresh .profile-tab-full { display: none; }
    #coach-profile.profile-refresh .profile-tab-mobile { display: inline; }
    #coach-profile.profile-refresh .content-card,
    #coach-profile.profile-refresh #overview .overview-grid > .content-card { padding: 18px 16px !important; }
    #coach-profile.profile-refresh .content-card .card-title { font-size: .98rem; }
    #coach-profile.profile-refresh #overview .bio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    #coach-profile.profile-refresh .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #coach-profile.profile-refresh .filters-actions { flex-wrap: wrap; }
}
@media (max-width: 400px) {
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-header { grid-template-columns: 86px minmax(0, 1fr); gap: 0 12px !important; }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-header.coach-no-image { grid-template-columns: minmax(0, 1fr); }
    #coach-profile.profile-refresh .hero-section[data-testid="hero-banner"] .player-name { font-size: 1.28rem !important; }
    #coach-profile.profile-refresh .view-all-container .profile-text-action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    #coach-profile.profile-refresh *, #coach-profile.profile-refresh *::before, #coach-profile.profile-refresh *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
