.fantasy-players-tournament {
    max-width: 100%;
}

.fantasy-players-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.fantasy-players-search {
    width: min(100%, 460px);
}

.fantasy-players-filter > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fantasy-players-filter :is(input[type=search], select) {
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #9badab;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.fantasy-players-search input { width: 100%; }

.fantasy-players-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fantasy-players-positions [aria-current] {
    background: #eaf3ed;
    border-color: transparent;
    color: #214b41;
}

.fantasy-players .fantasy-players-total {
    margin-block: 12px 6px;
    color: hsl(var(--muted));
    font-size: 14px;
}

.fantasy-players-error:not(:empty) {
    margin-block: 8px;
    color: #912040;
}

.fantasy-players-table :is(th, td):first-child:not([colspan]) {
    width: auto;
    text-align: left;
}

.fantasy-players-table :is(th, td):nth-child(2) {
    text-align: right;
}

.fantasy-players-table td[data-player-points] { color: #214b41; }

.fantasy-players-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: inherit;
    overflow-wrap: anywhere;
}

.fantasy-players-name:hover {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.fantasy-players-name img {
    flex: 0 0 32px;
    border-radius: 5px;
    object-fit: contain;
}

.fantasy-player-club span {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-wrap: anywhere;
}

.fantasy-player-club img { flex: 0 0 18px; object-fit: contain; }
.fantasy-player-mobile-club { display: none; }
.fantasy-player-injury, .fantasy-player-change { display: block; font-size: 12px; }
.fantasy-player-change { color: #214b41; }
.fantasy-player-injury, .fantasy-player-negative { color: #912040; }

@media (max-width: 900px) {
    .fantasy-players-table .fantasy-player-extra { display: none; }
}

@media (max-width: 880px) {
    html:has(.fantasy-players) { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
    .fantasy-players-table .fantasy-player-club { display: none; }
    .fantasy-player-mobile-club { display: block; font-size: 11px; color: hsl(var(--muted)); }
    .fantasy-players-table tr :is(th, td) { padding-inline: 5px; }
    .fantasy-players-positions a { padding-inline: 8px; }
    .fantasy-players-filter > div { width: 100%; justify-content: space-between; }
    .fantasy-players-filter select { min-width: 0; }
}
