/* Переключатель языка RUS / ENG.
   Файл подключается после style.css, поэтому ваши стили не изменяются. */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    line-height: 1;
}

.login-container .lang-switch {
    margin: 0 auto 16px;
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    width: fit-content;
}

.lang-button {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-button:hover {
    background: rgba(127, 127, 127, 0.25);
}

.lang-button:focus-visible {
    outline: 2px solid #2f80ed;
    outline-offset: 2px;
}

.lang-button.active-lang {
    background: #2f80ed;
    color: #ffffff;
}

.lang-separator {
    opacity: 0.5;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .player-info {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .lang-button {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
}
