.display-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    max-width: 950px;
    margin: 0 auto 20px;
}

.language-switcher, .theme-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--control-border);
    border-radius: 999px;
    background: var(--control-surface);
    color: var(--control-text);
    box-shadow: var(--control-shadow);
}

.language-switcher {
    gap: 2px;
    padding: 3px;
}

.display-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 44px;
    min-block-size: 44px;
    font: inherit;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.language-switcher button {
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
}

.language-switcher button[aria-pressed="true"] {
    background: var(--control-selected);
    color: var(--control-selected-text);
}

.theme-toggle {
    inline-size: 52px;
    block-size: 52px;
    padding: 0;
}

.control-icon {
    display: block;
    inline-size: 18px;
    block-size: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-icon {
    margin-inline: 8px 2px;
    color: var(--control-accent);
}

.theme-toggle:not([data-theme-mode="light"]) .theme-icon-sun,
.theme-toggle:not([data-theme-mode="dark"]) .theme-icon-moon,
.theme-toggle:not([data-theme-mode="system"]) .theme-icon-system {
    display: none;
}

.display-controls button:focus-visible {
    outline: 2px solid var(--control-accent);
    outline-offset: 2px;
}

@media (hover: hover) {
    .language-switcher button[aria-pressed="false"]:hover,
    .theme-toggle:hover {
        background: var(--control-hover);
        color: var(--control-accent);
    }

    .theme-toggle:hover {
        border-color: var(--control-accent);
    }
}

@media (max-width: 480px) {
    .display-controls { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .display-controls button { transition: none; }
}
