.lang-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.lang-switcher-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.lang-switcher-item:hover {
  opacity: 0.8;
  background-color: rgba(0, 0, 0, 0.05);
}

.lang-switcher-active {
  opacity: 1;
  background-color: rgba(31, 111, 235, 0.12);
  cursor: default;
}

.lang-switcher-flag {
  font-size: 18px;
  line-height: 1;
}

.lang-switcher-version {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
  color: #52514e;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-switcher-version::after {
  position: absolute;
  right: 10px;
  content: "▾";
  font-size: 10px;
  pointer-events: none;
}

.lang-switcher-version-select {
  max-width: 132px;
  padding: 0 16px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 32px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lang-switcher-version-select:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(31, 111, 235, 0.65);
  outline-offset: 2px;
}

.book-summary, .book-header {
  z-index: 1000;
}
