/* ===== NexAmuse Language Switcher (bottom-left, WordPress-style) ===== */
#langSwitcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#langSwitcher .ls-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 28, 48, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
#langSwitcher .ls-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(30, 42, 72, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
#langSwitcher .ls-toggle .ls-caret {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 8px;
  opacity: 0.75;
}
#langSwitcher .ls-menu {
  position: absolute;
  left: 0;
  bottom: 62px;
  width: 196px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(18, 25, 43, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  transform-origin: bottom left;
  animation: lsPop .16s ease;
}
#langSwitcher .ls-menu[hidden] { display: none; }
@keyframes lsPop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#langSwitcher .ls-title {
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #8b94ad;
  padding: 6px 10px 8px;
}
#langSwitcher .ls-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: #d8deec;
  font-size: 14px;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: background .14s ease, color .14s ease;
}
#langSwitcher .ls-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
#langSwitcher .ls-item .ls-flag { font-size: 18px; line-height: 1; }
#langSwitcher .ls-item .ls-check { margin-left: auto; color: #c9a227; font-weight: 700; opacity: 0; }
#langSwitcher .ls-item.active { background: rgba(201, 162, 39, 0.14); color: #f5d06e; }
#langSwitcher .ls-item.active .ls-check { opacity: 1; }
@media (max-width: 600px) {
  #langSwitcher .ls-menu { width: 168px; }
}
