/* Список персонажей */
.character-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

/* Карточки */
.character-entry {
    margin-bottom: 0.6rem;
}

.character {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px solid orange;
    border-radius: 10px;
    background-color: #222;
    color: orange;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.character:hover {
    background-color: orange;
    color: #111;
    transform: translateY(-1px);
}

/* Без вики */
.character.no-wiki {
    cursor: default;
    pointer-events: none;
}

.character.no-wiki:hover {
    background-color: #222;
    color: orange;
    transform: none;
}

/* Недоступен */
.character.unavailable {
    background-color: #2a2a2a;
    border-color: #444;
    color: #888;
    text-decoration: line-through;
    font-style: italic;
    cursor: default;
    pointer-events: none;
}

/* Занят/Заблокирован */
.character-list .character.taken,
.character-list .character.blocked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    text-decoration: none;
    font-style: normal;
    cursor: default;
    pointer-events: none;
}

.character-list .character.taken {
    background-color: #2a2a2a;
    border-color: #666;
    color: #bcbcbc;
}

.character-list .character.blocked {
    background-color: #262026;
    border-color: #c00060;
    color: #c7a0b6;
}

.character-list .character.blocked::after {
    content: "";
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: url("/static/images/icons/lock.png") no-repeat center / contain;
    opacity: 0.9;
}

/* Текст/бейджи */
.character-list .character__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-list .badge {
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    white-space: nowrap;
    opacity: 0.9;
}

.character-list .badge--taken {
    color: #d8b44a;
    border-color: rgba(216, 180, 74, 0.6);
    background: rgba(216, 180, 74, 0.08);
}

/* Поиск/сортировка */
#charSearch,
#charSort {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
    font-weight: 500;

    background-color: #111;
    color: orange;
    border: 2px solid orange;
    border-radius: 8px;

    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#charSearch:focus,
#charSort:focus {
    outline: none;
    background-color: #1a1a1a;
    border-color: #ffa500;
    box-shadow: 0 0 0 4px rgba(255, 165, 0, .15);
}