/* Поиск игроков с подсказками */
.player-search {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

/* Лупа внутри поля вместо кнопки "Найти" */
.player-search .ps-input {
    padding-left: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f949a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: .85rem center;
    background-size: 1rem 1rem;
}

.player-search .ps-region {
    flex: 0 0 auto;
    width: auto;
    text-transform: uppercase;
}

.player-search .ps-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1040; /* выше снега (1035), ниже модалок и меню-шторки */
    max-height: min(60vh, 420px);
    overflow-y: auto;
    margin: 0;
    padding: .25rem;
    list-style: none;
    text-align: left;
    background: #212529;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .5rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .5);
}

.player-search .ps-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem .75rem;
    border-radius: .375rem;
    color: var(--bs-body-color);
    text-decoration: none;
}

.player-search .ps-item.active,
.player-search .ps-item:hover {
    background: rgba(238, 130, 238, .14);
    color: #fff;
}

.player-search .ps-nick {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-search .ps-nick mark {
    padding: 0;
    background: none;
    color: #ee82ee;
    font-weight: 700;
}

.player-search .ps-wn8 {
    flex: none;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.player-search .ps-message {
    padding: .5rem .75rem;
    color: var(--bs-secondary-color);
}

.player-search .ps-message.ps-error {
    color: #ec4647;
}
