/* My League: this week's matchup deck and the season-odds standings (assets/js/my-team.js). */

.hub-team .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.league-view { display: grid; gap: 14px; margin-bottom: 18px; }
.league-view[hidden] { display: none; }

/* ------------------------------------------------------------ matchup deck */
.lg-deck-card { padding: 16px; min-width: 0; }
.lg-deck-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.lg-deck-top strong { display: block; font-size: 17px; font-weight: 700; }
.lg-deck-top small { color: var(--os-text-faint); font-size: 12.5px; }
.lg-pager { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lg-pager [data-deck-pos] { min-width: 52px; text-align: center; color: var(--os-text-muted); font-size: 13px; }
.lg-nav {
    appearance: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--os-border-strong);
    background: var(--os-bg-deep); color: var(--os-text); font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px;
}
.lg-nav:hover { border-color: var(--os-accent); color: var(--os-accent); }

.lg-deck {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; border-radius: var(--os-r-lg);
}
.lg-deck::-webkit-scrollbar { display: none; }
.lg-deck:focus-visible { outline: 2px solid var(--os-accent); outline-offset: 2px; }

.mu {
    flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 14px;
    background: var(--os-bg-deep); border: 1px solid var(--os-border-soft); border-radius: var(--os-r-lg);
}
.mu.mine { border-color: rgba(94, 227, 154, 0.38); }
@media (min-width: 1000px) { .mu { flex-basis: calc(50% - 6px); } }

.mu-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 10px; }
.mu-solo .mu-head { grid-template-columns: minmax(0, 1fr); }
.mu-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mu-side.right { align-items: flex-end; text-align: right; }
.mu-name { font-size: 15px; font-weight: 750; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-side small { color: var(--os-text-faint); font-size: 12px; }
.mu-side small b { color: var(--os-accent); font-weight: 700; }
.mu-total { font-size: 30px; font-weight: 850; line-height: 1.05; margin-top: 6px; }
.mu-side.won .mu-total { color: var(--os-accent); }
.mu-vs { align-self: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--os-text-faint); }

.mu-odds { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 12px 0 10px; }
/* The left team's share is the green one, its number green too; the favourite is the bolder number. */
.mu-odds strong { font-size: 14px; font-weight: 650; color: var(--os-text-muted); min-width: 38px; }
.mu-odds strong:first-child { color: var(--os-accent); }
.mu-odds strong:last-child { text-align: right; }
.mu-odds strong.ahead { font-weight: 850; }
.mu-odds strong.ahead:last-child { color: var(--os-text); }
.mu-bar { height: 8px; border-radius: 999px; background: var(--os-border-strong); overflow: hidden; }
.mu-bar i { display: block; height: 100%; background: var(--os-accent); }
.mu-odds.final { grid-template-columns: 1fr; text-align: center; }
.mu-odds.final span { font-size: 13px; font-weight: 700; color: var(--os-text-muted); }
.mu-solo .mu-odds { display: none; }

.mu-rows { display: grid; border-top: 1px solid var(--os-border-soft); padding-top: 6px; margin-top: 10px; }
.mu-solo .mu-rows { margin-top: 12px; }
.mu-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 50px 44px 50px minmax(0, 1fr); align-items: center; gap: 6px;
    min-height: 40px; border-bottom: 1px solid var(--os-border-soft);
}
.mu-row:last-child { border-bottom: 0; }
.mu-row.solo { grid-template-columns: minmax(0, 1fr) 60px 44px; }
.mu-p { display: flex; flex-direction: column; min-width: 0; }
.mu-p.right { align-items: flex-end; text-align: right; }
/* The name gives way to the injury tag, never the other way round. */
.mu-p strong { display: flex; align-items: center; gap: 4px; max-width: 100%; font-size: 13.5px; font-weight: 650; }
.mu-p.right strong { justify-content: flex-end; }
.mu-p strong .full, .mu-p strong .short { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-p strong .short { display: none; }
.mu-p strong .inj { flex-shrink: 0; margin-left: 0; }
.mu-p small { font-size: 11.5px; color: var(--os-text-faint); white-space: nowrap; }
.mu-p.empty span { font-size: 13px; color: var(--os-text-faint); }
.mu-v { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.mu-v b { font-size: 15px; font-weight: 750; }
.mu-v small { font-size: 10.5px; color: var(--os-text-faint); white-space: nowrap; }
.mu-v.scored b { color: var(--os-accent-strong); }
.mu-slot { justify-self: center; min-width: 40px; height: 20px; font-size: 10px; padding: 0 4px; }

@media (max-width: 560px) {
    .lg-deck-card, .mu { padding: 12px; }
    .mu-total { font-size: 25px; }
    .mu-row { grid-template-columns: minmax(0, 1fr) 42px 38px 42px minmax(0, 1fr); gap: 4px; }
    .mu-p strong { font-size: 12.5px; }
    .mu-p strong .full { display: none; }
    .mu-p strong .short { display: block; }
    .mu-v b { font-size: 14px; }
    .mu-slot { min-width: 34px; }
}

/* ---------------------------------------------------------------- standings */
.lg-standings { padding: 16px; min-width: 0; }
.lg-table-wrap { overflow-x: auto; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lg-table th {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--os-text-faint);
    text-align: right; padding: 0 6px 8px; white-space: nowrap;
}
.lg-table th:nth-child(2) { text-align: left; width: 100%; }
.lg-table td { padding: 8px 6px; border-top: 1px solid var(--os-border-soft); text-align: right; white-space: nowrap; }
.lg-table .rk { text-align: left; color: var(--os-text-faint); width: 24px; }
.lg-table td.tm { text-align: left; white-space: normal; }
.lg-table tr.you td { background: var(--os-accent-soft); }
.lg-team {
    appearance: none; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0; border: 0; background: none;
    color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.lg-team span { font-weight: 650; overflow-wrap: anywhere; }
.lg-team small { color: var(--os-text-faint); font-size: 12px; }
.lg-team:hover span, .lg-team:focus-visible span { color: var(--os-accent); }
.you-tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--os-accent); margin-left: 4px; }
.lg-table td.ttl { position: relative; min-width: 62px; font-weight: 750; color: var(--os-text); }
.lg-table td.ttl span { position: relative; }
.lg-table td.ttl i { position: absolute; right: 6px; bottom: 4px; height: 3px; max-width: calc(100% - 12px); background: var(--os-accent); border-radius: 2px; opacity: .65; }

@media (max-width: 520px) {
    .lg-standings { padding: 12px; }
    .lg-table { font-size: 13px; }
    .lg-table td, .lg-table th { padding-left: 4px; padding-right: 4px; }
}

/* --------------------------------------------------------- your team header */
.team-view-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.team-view-head h2 { font-size: 20px; font-weight: 800; }
.team-view-head .team-name { color: var(--os-text-muted); font-size: 14px; }
