/* Список игроков. Тот же тон, что у главной и сигналов: фон, карточки, синий акцент. */

body:has(.players-index),
#content:has(.players-index) {
    background: #f5f6fb;
}

.container-xxl.players-index {
    --ink: #252d6c;
    --blue: #4363f9;
    --muted: rgba(37, 45, 108, 0.55);
    max-width: 1320px;
    padding: 28px 24px 72px;
    color: var(--ink);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.players-index *,
.players-index *::before,
.players-index *::after {
    box-sizing: border-box;
}

.players-index [hidden] {
    display: none !important;
}

.players-index h1,
.players-index h2,
.players-index p {
    margin: 0;
}

.players-index a {
    color: inherit;
    text-decoration: none;
}

.players-index .players-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.players-index h1 {
    max-width: 16em;
    color: var(--ink);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.players-index .players-lead {
    max-width: 40rem;
    margin: 12px 0 0;
    color: rgba(37, 45, 108, 0.68);
    font-size: 18px;
}

.players-index .players-find {
    margin-top: 20px;
}

.players-index .players-find-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.players-index input[type="search"] {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(37, 45, 108, 0.16);
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.players-index input[type="search"]::-webkit-search-decoration,
.players-index input[type="search"]::-webkit-search-cancel-button {
    appearance: none;
    -webkit-appearance: none;
}

.players-index input[type="search"]:focus {
    border-color: var(--blue);
}

.players-index input[type="search"]::placeholder {
    color: rgba(37, 45, 108, 0.45);
}

.players-index .players-abc {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: 16px;
    padding: 8px 0 12px;
    background: #f5f6fb;
}

.players-index .players-abc.is-stuck {
    box-shadow: 0 10px 18px rgba(37, 45, 108, 0.06);
}

.players-index .players-abc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.players-index .players-abc-row a {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.players-index .players-abc-row a:hover {
    background: rgba(67, 99, 249, 0.08);
    color: var(--blue);
}

.players-index .players-abc-row a[aria-current="true"] {
    background: var(--blue);
    color: #fff;
}

.players-index .players-block {
    scroll-margin-top: var(--players-stick, 88px);
    margin-top: 12px;
    padding: 16px 16px 14px;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
}

.players-index .players-result {
    display: none;
}

.players-index.is-search .players-result {
    display: block;
}

.players-index.is-search .players-block[data-letter] {
    display: none;
}

.players-index .players-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.players-index .players-head h2 {
    color: var(--ink);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.players-index .players-status {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
    text-align: right;
}

.players-index .players-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 20px;
}

.players-index .players-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 36px;
    padding: 7px 8px;
    border-radius: 8px;
}

.players-index .players-row:hover {
    background: rgba(67, 99, 249, 0.06);
}

.players-index .players-row:hover .players-name {
    color: var(--blue);
}

.players-index .players-name {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.players-index .players-elo {
    flex: none;
    color: rgba(37, 45, 108, 0.45);
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.players-index button.players-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin: 12px 0 0;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(37, 45, 108, 0.16);
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.players-index button.players-more:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.players-index button.players-more:disabled {
    opacity: 0.65;
    cursor: progress;
}

.players-index .players-empty {
    margin-top: 20px;
    color: var(--muted);
}

.players-index :focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

@media (min-width: 576px) {
    .players-index .players-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .players-index .players-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .players-index .players-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .players-index .players-abc-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .players-index .players-abc-row::-webkit-scrollbar {
        display: none;
    }

    .players-index .players-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .players-index .players-status {
        text-align: left;
    }
}

@media (max-width: 800px) {
    .container-xxl.players-index {
        padding: 20px 16px 48px;
    }

    .players-index h1 {
        font-size: 32px;
    }

    .players-index .players-lead {
        font-size: 16px;
    }
}
