.language-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(31, 41, 55, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.4rem 1.2rem rgba(15, 23, 42, 0.16);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial,
    sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.language-switcher a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: #334155;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
  outline: none;
}

.language-switcher a.is-active {
  background: #2563eb;
  color: #fff;
  font-weight: 650;
}

@media (max-width: 640px) {
  .language-switcher {
    top: 0.55rem;
    right: 0.55rem;
    font-size: 0.82rem;
  }

  .language-switcher a {
    min-height: 1.8rem;
    padding: 0 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher a {
    transition: none;
  }
}
