.player-autocomplete {
    position: relative;
}

.player-autocomplete-list {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 5000;
    max-height: 340px;
    overflow-y: auto;
    background: #111b35;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.player-autocomplete-list.active {
    display: block;
}

.player-autocomplete-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 0;
    background: transparent;
    color: white;
    text-align: left;
}

.player-autocomplete-item:last-child {
    border-bottom: 0;
}

.player-autocomplete-item:hover {
    background: rgba(59, 130, 246, 0.18);
    opacity: 1;
}

.player-autocomplete-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.player-autocomplete-meta {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.3;
}

.player-autocomplete-empty {
    padding: 13px;
    color: #94a3b8;
    font-size: 0.82rem;
}
/* =========================================================
   PLAYER SEARCH PRO V2
   ========================================================= */

.player-search-status {
    min-height: 18px;
    margin-top: 5px;
    font-size: 0.75rem;
    line-height: 1.25;
}

.player-search-status.found {
    color: #f59e0b;
}

.player-search-status.new {
    color: #60a5fa;
}

.player-search-status.selected {
    color: #10b981;
}

.player-autocomplete-section-title {
    padding: 9px 13px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.player-autocomplete-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.player-autocomplete-item.active {
    background: rgba(59, 130, 246, 0.22);
    box-shadow: inset 3px 0 0 #3b82f6;
}

.player-autocomplete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    color: #f59e0b;
}

.player-autocomplete-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.player-search-highlight {
    padding: 0;
    background: rgba(245, 158, 11, 0.28);
    color: #fbbf24;
    border-radius: 2px;
}

.player-autocomplete-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-autocomplete-empty strong {
    color: #e2e8f0;
}

.player-autocomplete-empty span {
    color: #94a3b8;
}
/* Фото и защита от повторного выбора игрока */

.player-autocomplete-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    border: 1px solid #475569;
}

.player-avatar-placeholder,
.player-recent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.player-autocomplete-item.disabled {
    cursor: not-allowed;
    opacity: 0.48;
    background: rgba(255, 255, 255, 0.025);
}

.player-autocomplete-item.disabled:hover {
    opacity: 0.48;
    background: rgba(255, 255, 255, 0.025);
}

.player-autocomplete-disabled-label {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.13);
    color: #f87171;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.player-search-status.duplicate {
    color: #f87171;
}
