.lang-switcher {
  position: relative;
  z-index: 120;
  justify-self: end;
  flex: 0 0 auto;
}
.lang-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .5s cubic-bezier(.16,1,.3,1), border-color .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.lang-toggle:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.20); }
.lang-glyph { opacity: .85; font-weight: 800; }
.lang-chevron {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-flex;
  flex: 0 0 12px;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  opacity: .62;
  transform: none;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.lang-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 154px;
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(.98);
  transform-origin: top right;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(9,13,19,.90);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: 0 24px 64px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1), visibility .35s;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  border: 0;
  border-radius: 12px;
  color: #dfe6ee;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover { background: rgba(255,255,255,.07); }
.lang-toggle:focus-visible,
.lang-menu button:focus-visible { outline: 2px solid #8ef0c8; outline-offset: 3px; }
.lang-menu[hidden] { display: none; }
.lang-menu button.active { color: #fff; background: rgba(105,201,255,.12); }
.lang-menu button.active::after { content: '✓'; color: #8ef0c8; font-weight: 800; }
.site-header { grid-template-columns: auto 1fr auto auto auto; }

@media (max-width: 860px) {
  .site-header { grid-template-columns: auto 1fr auto auto auto; }
  .lang-toggle { min-height: 38px; padding: 8px 10px; }
  .lang-toggle [data-lang-current] { display: none; }
  .lang-toggle .lang-chevron { display: none; }
  .lang-menu { width: 146px; }
  .ss-nav, .detail-nav, .p-nav { gap: 10px; }
  .ss-nav .lang-switcher, .detail-nav .lang-switcher, .p-nav .lang-switcher { margin-left: auto; }
}

@media (max-width: 520px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .site-header .header-cta { display: none; }
  .lang-glyph { font-size: 13px; }
  .lang-toggle { width: 38px; height: 38px; min-height: 38px; padding: 0; justify-content: center; }
  .ss-brand span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
