/* ============================================================================
   COACH ATHLETE LISTS (Discover Athletes, Favorites) · Nov 9, 2026
   Builds on rk-favlist.css (the athlete Favorites look). Scope: .fav-root.cl-root
   White surfaces, black primary buttons, Rekrut blue as an accent only.
   Every button and control is at least 44px tall; text meets 4.5:1.
   ============================================================================ */

.fav-root.cl-root{
    --top:        #0b6b43;  --top-soft:  #e3f5ec;  --top-ring:  #12a15f;
    --poss:       #8a4a06;  --poss-soft: #fbf0e1;  --poss-ring: #e08a12;
    --reach:      #4a4a55;  --reach-soft:#efeff3;  --reach-ring:#a3a3ad;
    --accent-text:#0a6f86;
    max-width: 1320px;
}
body.rk-dark .fav-root.cl-root{
    --top:#5fd39b; --top-soft:rgba(18,161,95,.18);
    --poss:#f2b25c; --poss-soft:rgba(224,138,18,.18);
    --reach:#c7c7cc; --reach-soft:rgba(255,255,255,.08);
    --accent-text:#5ad8f7;
}

/* Contrast and tap-size adjustments to the shared styles, coach pages only */
.cl-root .fv-eyebrow{ color: var(--accent-text);}
.cl-root .fv-chip{ min-height: 44px;}
.cl-root .fv-chip .count{ background: var(--sunken); color: var(--ink);}
.cl-root .fv-chip.is-active .count{ background: rgba(255,255,255,.18); color: #fff;}
.cl-root .fv-sort{ min-height: 44px;}
.cl-root .fv-btn{ width: 44px; height: 44px; border-radius: 12px;}
.cl-root .fv-btn svg{ width: 17px; height: 17px;}
.cl-root .fv-pager-btn{ width: 44px; height: 44px;}
.cl-root .fv-pager-select{ min-height: 44px;}
.cl-root .fv-dist-unit{ color: var(--mute);}
.cl-root .fv-kpi-sub{ font-size: 12.5px; color: var(--mute); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.cl-root button:focus-visible, .cl-root select:focus-visible, .cl-root input:focus-visible, .cl-root a:focus-visible{
    outline: 3px solid var(--accent-ring); outline-offset: 2px;
}

/* ── HEADER (Discover) ── */
.cl-root .cl-head{ display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap;}
.cl-root .cl-head-id{ display: flex; align-items: center; gap: 16px; min-width: 0;}
.cl-root .cl-logo{
    width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
    background: var(--card); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px;
}
.cl-root .cl-logo img{ width: 100%; height: 100%; object-fit: contain;}
.cl-root .cl-logo span{ font-size: 20px; font-weight: 800; color: var(--mute);}
.cl-root .cl-head .fv-h1{ margin: 0 0 4px;}
.cl-root .cl-school{ font-size: 14.5px; color: var(--mute); font-weight: 600;}
.cl-root .cl-head-actions{ display: flex; gap: 10px; flex-wrap: wrap;}
.cl-root .cl-btn{
    min-height: 44px; padding: 0 18px;
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: var(--pill); border: 1px solid var(--line-2);
    background: var(--card); color: var(--ink);
    font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
    box-shadow: var(--shadow-sm); white-space: nowrap;
    transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.cl-root .cl-btn svg{ width: 16px; height: 16px;}
.cl-root .cl-btn:hover{ border-color: var(--ink);}
.cl-root .cl-btn.primary{ background: var(--ink); border-color: var(--ink); color: #fff;}
body.rk-dark .cl-root .cl-btn.primary{ background: #f5f5f7; border-color: #f5f5f7; color: #0a0a10;}
.cl-root .cl-btn.primary:hover{ opacity: .92;}

.cl-root .cl-kpi5{ grid-template-columns: repeat(5, 1fr);}

/* ── NOT SCORED YET (no Recruiting Preferences saved) ── */
.cl-root .cl-banner{
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 18px; padding: 16px 20px;
    background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.cl-root .cl-banner p{ margin: 0; font-size: 15px; font-weight: 650; color: var(--ink); line-height: 1.4;}
.cl-root .cl-fit-num.none{ color: var(--mute); font-weight: 650;}
.cl-root .cl-ring.none{ --ring-c: var(--line-2);}
.cl-root .cl-ring.none b{ color: var(--mute);}

/* ── TOOLBAR ── */
.cl-root .cl-toolbar{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;}
.cl-root .cl-search{
    flex: 1 1 260px; min-width: 220px; min-height: 44px;
    display: flex; align-items: center; gap: 10px;
    padding: 0 16px; border-radius: var(--pill);
    border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm);
}
.cl-root .cl-search svg{ width: 17px; height: 17px; color: var(--mute); flex-shrink: 0;}
.cl-root .cl-search input{
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
    font: inherit; font-size: 14px; color: var(--ink);
}
.cl-root .cl-search input::placeholder{ color: var(--mute);}
.cl-root .cl-search:focus-within{ border-color: var(--accent-ring); box-shadow: 0 0 0 4px var(--accent-soft);}
.cl-root .cl-pills{ display: flex; gap: 8px; flex-wrap: wrap;}
.cl-root .cl-switch{
    display: inline-flex; padding: 0; gap: 2px; border-radius: var(--pill);
    background: var(--sunken); border: 1px solid var(--line);
}
.cl-root .cl-switch button{
    min-height: 44px; min-width: 72px; padding: 0 16px;
    border: 0; border-radius: var(--pill); background: transparent;
    font: inherit; font-size: 13px; font-weight: 650; color: var(--mute); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.cl-root .cl-switch button svg{ width: 15px; height: 15px;}
.cl-root .cl-switch button.is-active{ background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm);}

/* ── LIST (TABLE) ── */
.cl-root .cl-table{ container-type: inline-size;}
.cl-root .cl-grid{
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 104px 58px 150px 220px 76px 142px;
    gap: 12px; align-items: center;
}
.cl-root .cl-thead{
    padding: 6px 20px 4px; border-bottom: 1px solid var(--line);
    font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.cl-root .cl-sort{
    appearance: none; border: 0; background: transparent; padding: 0; margin: 0;
    min-height: 44px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
    cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.cl-root .cl-sort:hover, .cl-root .cl-sort.is-on{ color: var(--ink);}
.cl-root .cl-sort .arr{ font-size: 10px; opacity: .9;}
.cl-root .cl-dims-head{ display: grid; grid-template-columns: repeat(5, 1fr); text-align: center;}
.cl-root .cl-dims-head .cl-sort{ justify-content: center; width: 100%;}
.cl-root .cl-c{ text-align: center; justify-self: center;}
.cl-root .cl-r{ text-align: right; justify-self: end;}

.cl-root .cl-row{
    padding: 12px 20px; min-height: 68px;
    border-bottom: 1px solid var(--line);
    transition: background-color .15s var(--ease);
}
.cl-root .cl-row:last-child{ border-bottom: 0;}
.cl-root .cl-row:hover{ background: var(--soft);}

.cl-root .cl-who{ display: flex; align-items: center; gap: 12px; min-width: 0;}
.cl-root .cl-ph{
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: #ececf1; color: #4a4a55;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; letter-spacing: .02em;
}
body.rk-dark .cl-root .cl-ph{ background: #3a3a3c; color: #d1d1d6;}
.cl-root .cl-ph img{ width: 100%; height: 100%; object-fit: cover; display: block;}
.cl-root .cl-who-text{ min-width: 0;}
.cl-root .cl-name{
    font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cl-root .cl-meta{
    font-size: 12.5px; color: var(--mute); line-height: 1.35; margin-top: 2px;
    display: flex; flex-wrap: wrap; column-gap: 6px;
}
.cl-root .cl-meta .dot{ color: var(--mute);}
.cl-root .cl-meta .cl-video-inline{ display: none;}

.cl-root .cl-dist{ display: flex; flex-direction: column; align-items: center; gap: 4px;}
.cl-root .cl-dist-num{ font-size: 15px; font-weight: 700; color: var(--ink); font-feature-settings: "tnum"; white-space: nowrap;}
.cl-root .cl-dist-num.none{ color: var(--mute); font-weight: 600;}
.cl-root .cl-instate{
    font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 8px; border-radius: var(--pill); background: var(--top-soft); color: var(--top); white-space: nowrap;
}
.cl-root .cl-gpa{ font-size: 15px; font-weight: 650; color: var(--ink); font-feature-settings: "tnum";}
.cl-root .cl-gpa.none{ color: var(--mute);}

.cl-root .cl-fit{ display: flex; align-items: center; gap: 10px;}
.cl-root .cl-fit-num{ font-size: 20px; font-weight: 760; color: var(--ink); letter-spacing: -.02em; min-width: 30px; text-align: right; font-feature-settings: "tnum";}
.cl-root .cl-tier{
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 4px 10px; border-radius: var(--pill);
    font-size: 11.5px; font-weight: 750; letter-spacing: -.005em;
}
.cl-root .cl-tier.top{ background: var(--top-soft); color: var(--top);}
.cl-root .cl-tier.possible{ background: var(--poss-soft); color: var(--poss);}
.cl-root .cl-tier.reach{ background: var(--reach-soft); color: var(--reach);}

.cl-root .cl-dims{ display: grid; grid-template-columns: repeat(5, 1fr); text-align: center;}
.cl-root .cl-dims span{ font-size: 13.5px; font-weight: 650; color: var(--text); font-feature-settings: "tnum"; cursor: default;}
.cl-root .cl-legend{
    padding: 12px 20px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.cl-root .cl-legend b{ color: var(--ink); font-weight: 750; margin-right: 3px;}

.cl-root .cl-film{
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    padding: 4px 10px; border-radius: var(--pill);
    background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700;
}
body.rk-dark .cl-root .cl-film{ background: #f5f5f7; color: #0a0a10;}
.cl-root .cl-film svg{ width: 10px; height: 10px;}
.cl-root .cl-film-none{ font-size: 12.5px; color: var(--mute); font-weight: 600;}

.cl-root .cl-acts{ display: flex; align-items: center; gap: 8px; justify-content: flex-end;}
.cl-root .cl-star.is-on{ color: var(--accent); border-color: var(--accent-ring);}
.cl-root .cl-star.is-on svg{ fill: var(--accent);}
.cl-root .cl-view{
    min-height: 44px; padding: 0 18px; border-radius: var(--pill);
    border: 1px solid var(--ink); background: var(--ink); color: #fff;
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: opacity .15s var(--ease);
}
body.rk-dark .cl-root .cl-view{ background: #f5f5f7; border-color: #f5f5f7; color: #0a0a10;}
.cl-root .cl-view:hover{ opacity: .9;}

.cl-root .cl-empty{ padding: 48px 20px; text-align: center; color: var(--mute); font-size: 14.5px;}
.cl-root .cl-empty b{ display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px;}

/* Narrower list (a laptop with the side menu): Film folds into the name line. */
@container (max-width: 1040px){
    .cl-root .cl-grid{ grid-template-columns: minmax(210px, 1fr) 96px 52px 140px 200px 142px;}
    .cl-root .cl-col-film{ display: none !important;}
    .cl-root .cl-meta .cl-video-inline{ display: inline-flex;}
}
@container (max-width: 880px){
    .cl-root .cl-grid{ grid-template-columns: minmax(200px, 1fr) 90px 52px 140px 142px;}
    .cl-root .cl-col-dims{ display: none !important;}
}

/* ── CARDS ── */
.cl-root .cl-cards{
    container-type: inline-size;
}
.cl-root .cl-cards-grid{
    display: grid; gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@container (max-width: 940px){ .cl-root .cl-cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr));} }
@container (max-width: 520px){ .cl-root .cl-cards-grid{ grid-template-columns: 1fr;} }

.cl-root .cl-card{
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
}
.cl-root .cl-card-media{ position: relative; aspect-ratio: 16 / 9; background: #ececf1; }
body.rk-dark .cl-root .cl-card-media{ background: #3a3a3c;}
.cl-root .cl-card-media img{
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.cl-root .cl-card-initials{
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800; color: #6b6b78; letter-spacing: .02em;
}
.cl-root .cl-card-video{
    position: absolute; top: 10px; left: 10px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: var(--pill);
    background: rgba(10,10,16,.78); color: #fff; font-size: 11.5px; font-weight: 700;
}
.cl-root .cl-card-video svg{ width: 10px; height: 10px;}
.cl-root .cl-ring{
    position: absolute; right: 12px; bottom: -26px;
    width: 56px; height: 56px; border-radius: 50%;
    background: conic-gradient(var(--ring-c) calc(var(--p) * 1%), var(--sunken) 0);
    box-shadow: 0 4px 14px rgba(10,10,16,.16);
    display: flex; align-items: center; justify-content: center;
}
.cl-root .cl-ring::before{ content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card);}
.cl-root .cl-ring b{ position: relative; font-size: 17px; font-weight: 800; color: var(--ink); font-feature-settings: "tnum";}
.cl-root .cl-ring.top{ --ring-c: var(--top-ring);}
.cl-root .cl-ring.possible{ --ring-c: var(--poss-ring);}
.cl-root .cl-ring.reach{ --ring-c: var(--reach-ring);}

.cl-root .cl-card-body{ padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1;}
.cl-root .cl-card-body .cl-tier{ align-self: flex-start;}
.cl-root .cl-card-name{ font-size: 16px; font-weight: 750; color: var(--ink); letter-spacing: -.012em; line-height: 1.25; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 56px;}
.cl-root .cl-card-line{ font-size: 12.5px; color: var(--mute); line-height: 1.4;}
.cl-root .cl-card-line .cl-instate{ margin-left: 4px;}
.cl-root .cl-card-dims{
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
    margin: 6px 0 4px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    text-align: center;
}
.cl-root .cl-card-dims small{ display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--mute);}
.cl-root .cl-card-dims span{ font-size: 14px; font-weight: 700; color: var(--ink); font-feature-settings: "tnum";}
.cl-root .cl-card-acts{ display: flex; gap: 8px; margin-top: auto; padding-top: 6px;}
.cl-root .cl-card-acts .cl-view{ flex: 1;}

/* ── LIST ↔ CARDS ── */
.cl-root.cl-view-list .cl-cards{ display: none;}
.cl-root.cl-view-cards .cl-table{ display: none;}
/* Phones: the compact cards, whatever the switch says. */
@media (max-width: 768px){
    .cl-root.cl-view-list .cl-table{ display: none;}
    .cl-root.cl-view-list .cl-cards{ display: block;}
    .cl-root .cl-switch{ display: none;}
    .cl-root .cl-kpi5{ grid-template-columns: repeat(2, 1fr);}
    .cl-root .cl-kpi5 .fv-kpi-tile:first-child{ grid-column: 1 / -1;}
    .cl-root .cl-head-actions{ width: 100%;}
    .cl-root .cl-head-actions .cl-btn{ flex: 1; justify-content: center;}
}
@media (max-width: 1100px) and (min-width: 769px){
    /* Five tiles: one wide, then two by two, so no empty cell. */
    .cl-root .cl-kpi5{ grid-template-columns: repeat(2, 1fr);}
    .cl-root .cl-kpi5 .fv-kpi-tile:first-child{ grid-column: 1 / -1;}
}

/* ── FAVORITES (mirrors the athlete page's row) ── */
.cl-root.cl-fav .fv-colhead, .cl-root.cl-fav .fv-row{ grid-template-columns: 60px 56px minmax(0, 1fr) 150px 220px 160px;}
.cl-root.cl-fav .fv-crest{ border-radius: 50%; padding: 0; width: 52px; height: 52px; background: #ececf1;}
body.rk-dark .cl-root.cl-fav .fv-crest{ background: #3a3a3c;}
.cl-root.cl-fav .fv-crest img{ object-fit: cover;}
.cl-root.cl-fav .fv-crest-initials{ color: #4a4a55;}
.cl-root.cl-fav .fv-school-name{ white-space: nowrap;}
.cl-root.cl-fav .fv-dist-num.empty{ color: var(--mute);}
.cl-root.cl-fav .fv-dist-pill.close{ color: var(--top); background: var(--top-soft);}
.cl-root.cl-fav .fv-dist-pill.close .pin{ background: var(--top);}
.cl-root.cl-fav .fv-dist-pill.mid{ color: var(--poss); background: var(--poss-soft);}
.cl-root.cl-fav .fv-dist-pill.mid .pin{ background: var(--poss);}
@media (max-width: 1100px){
    .cl-root.cl-fav .fv-colhead, .cl-root.cl-fav .fv-row{ grid-template-columns: 44px 52px minmax(0, 1fr);}
}

/* Favorites: Export CSV, the small secondary button next to the sort */
.cl-root.cl-fav .cl-export{ font-size: 13px; padding: 0 16px;}
.cl-root.cl-fav .fv-fit-num.cl-none{ color: var(--mute); font-weight: 650;}
@media (max-width: 600px){ .cl-root.cl-fav .cl-export{ flex: 1; justify-content: center;} }

/* ── VIDEO: the pill (list) and badge (cards) open the player ──
   The button is the 44px tap area; the pill inside keeps its look. */
.cl-root .cl-play{
    appearance: none; border: 0; background: transparent; padding: 0 4px; margin: 0;
    min-height: 44px; min-width: 44px; cursor: pointer; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
}
.cl-root .cl-play:hover .cl-film, .cl-root .cl-play:hover .cl-card-video{ opacity: .85;}
.cl-root .cl-meta .cl-play.cl-video-inline{ margin: -10px 0; padding: 0;}
.cl-root .cl-card-play{ position: absolute; top: 2px; left: 2px; padding: 0 8px;}
.cl-root .cl-card-play .cl-card-video{ position: static;}

/* ── VIDEO PLAYER (Shared/CoachVideoPlayer.razor) ── */
.cl-root .cl-vp-backdrop{
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(8,8,12,.84);
    display: flex; align-items: center; justify-content: center;
    padding: 76px 24px 24px;
    animation: clVpIn .18s var(--ease);
}
.cl-root .cl-vp{
    position: relative; width: min(960px, 100%);
    border-radius: 20px; background: var(--card);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.cl-root .cl-vp-frame{
    position: relative; aspect-ratio: 16 / 9; background: #000;
    border-radius: 20px 20px 0 0; overflow: hidden;
}
.cl-root .cl-vp-frame iframe, .cl-root .cl-vp-frame video{
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000;
}
.cl-root .cl-vp-msg{
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 24px; text-align: center; color: #f5f5f7; font-size: 14px; line-height: 1.5;
}
.cl-root .cl-vp-msg b{ font-size: 17px; font-weight: 750;}
.cl-root .cl-vp-msg span{ color: #c7c7cc; max-width: 420px;}
.cl-root .cl-vp-close{
    position: absolute; top: -56px; right: 0;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cl-root .cl-vp-close svg{ width: 20px; height: 20px;}
.cl-root .cl-vp-close:hover{ background: rgba(255,255,255,.22);}
.cl-root .cl-vp-close:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px;}
.cl-root .cl-vp-info{
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px; border-top: 1px solid var(--line);
}
.cl-root .cl-vp-who{ min-width: 0;}
.cl-root .cl-vp-name{ font-size: 17px; font-weight: 750; color: var(--ink); letter-spacing: -.012em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.cl-root .cl-vp-meta{ font-size: 13px; color: var(--mute); margin-top: 2px;}
.cl-root .cl-vp-profile{ flex-shrink: 0; padding: 0 22px;}
@keyframes clVpIn{ from{ opacity: 0;} to{ opacity: 1;} }
@media (max-width: 600px){
    .cl-root .cl-vp-backdrop{ padding: 72px 12px 12px; align-items: flex-start;}
    .cl-root .cl-vp-info{ flex-direction: column; align-items: stretch;}
    .cl-root .cl-vp-profile{ width: 100%;}
}
@media (prefers-reduced-motion: reduce){ .cl-root .cl-vp-backdrop{ animation: none;} }
