.fantasy-standings-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    max-width: 100%;
}

.fantasy-standings-filter select {
    width: 100%;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid #9badab;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.fantasy-standings-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
    align-items: start;
    gap: clamp(18px, 3vw, 44px);
    margin-top: 24px;
}

.fantasy-standings-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: separate;
    border-spacing: 0 3px;
    font-size: 14px;
    text-align: left;
}

.fantasy-standings-table :is(th, td) {
    padding: 7px 10px;
    vertical-align: middle;
}

.fantasy-standings-table thead {
    background: #edf3ef;
    color: #294b3f;
}

.fantasy-standings-table thead th {
    font-size: 13px;
}

.fantasy-standings-table tbody {
    background: #f7f9f8;
}

.fantasy-standings-table .fantasy-standings-own {
    background: #e9f4ed;
    scroll-margin-top: 85px;
}

.fantasy-standings-table :is(th, td):first-child:not([colspan]) {
    width: 62px;
    text-align: center;
}

.fantasy-standings-table tbody td:nth-child(n+4),
.fantasy-standings-table thead th:nth-child(n+4) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.fantasy-standings-table tbody td[data-standing-points] {
    color: #214b41;
    font-size: 16px;
}

.fantasy-standings-place {
    display: inline-grid;
    place-items: center;
    min-height: 28px;
    min-width: 28px;
    font-weight: 750;
}

.fantasy-standings-leading,
.fantasy-standings-tag {
    border-radius: 5px;
    background: #edf5ef;
    color: #214b41;
}

.fantasy-standings-name,
td.fantasy-standings-manager,
.fantasy-standings-manager-mobile { overflow-wrap: anywhere; }

.fantasy-standings-name {
    display: block;
    font-weight: 750;
}

.fantasy-standings-manager > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: hsl(var(--muted));
}

.fantasy-standings-manager :is(b, img) {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eaf1ee;
    object-fit: cover;
    font-size: 12px;
}

.fantasy-standings-manager-mobile { display: none; }

.fantasy-standings-tag {
    display: inline-block;
    padding: 2px 5px;
    background: #fff;
    font-weight: 600;
}

.fantasy-standings-table .fantasy-standings-empty {
    padding: 16px 10px;
    text-align: left;
}

.fantasy-standings-empty p {
    margin-top: 5px;
    color: hsl(var(--muted));
}

.fantasy-standings-pages,
.fantasy-standings-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fantasy-standings-pages { margin-top: 12px; }
.fantasy-standings-summary p { margin: 0; }

.fantasy-standings-team {
    padding: 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.fantasy-standings-team p,
.fantasy-standings-team h2 + a,
.fantasy-standings-team p + a { margin-top: 8px; }

@media (max-width: 880px) {
    .fantasy-standings-layout { grid-template-columns: minmax(0, 1fr); }
    html:has(.fantasy-standings) { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 580px) {
    .fantasy-standings-layout { margin-top: 16px; }
    .fantasy-standings-table :is(th, td) { padding-inline: 5px; }
    .fantasy-standings-table :is(th, td):first-child:not([colspan]) { width: 46px; }
    .fantasy-standings-table :is(.fantasy-standings-manager, .fantasy-standings-price) { display: none; }
    .fantasy-standings-manager-mobile {
        display: block;
        color: hsl(var(--muted));
        font-size: 11px;
        font-weight: 450;
    }
}
