/* VR 预览 · 多语言切换（与右上全屏/VR/音乐圆钮统一） */
.vrshow_container_1_min #vr_lang_wrap.vr-lang-wrap {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 0 5px;
  padding: 0;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: auto;
  overflow: visible !important;
  background: transparent !important;
}
.vr-lang-wrap {
  position: absolute;
  right: 10px;
  top: auto;
  z-index: 860;
  pointer-events: auto;
  overflow: visible;
  background: transparent;
}
.vrshow_container_1_min .vr-lang-btn,
.vr-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin: 0; /* 与 skin PNG 左对齐，避免视觉偏右 */
  padding: 0;
  border: none;
  border-radius: 50% !important; /* 始终正圆 */
  background: #7b7f87;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.vr-lang-btn:hover,
.vr-lang-btn.is-open {
  filter: brightness(1.08);
  background: #8a8e96;
}
.vr-lang-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}
.vr-lang-ico svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vr-lang-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 面板：语言按钮下方偏左，避免手机右侧被裁切 */
.vr-lang-panel {
  position: absolute;
  left: auto;
  right: 4px;
  top: calc(100% + 6px);
  transform: none;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 10;
}
.vr-lang-panel[hidden] {
  display: none !important;
}
.vr-lang-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: rgba(92, 97, 106, 0.55);
  color: #fff;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.vr-lang-item b {
  display: none; /* 只显示母语简称，统一宽度 */
}
.vr-lang-item span {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  opacity: 1;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.vr-lang-item:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  background: rgba(92, 97, 106, 0.72);
}
.vr-lang-item.is-on {
  background: rgba(47, 123, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 10px rgba(47, 123, 255, 0.35);
}

/* —— 跟随分组风格：半透明胶囊 / 选中更实一点 —— */
#fullscreenid[data-group-style="blue_pill"] .vr-lang-item {
  background: rgba(47, 123, 255, 0.42);
}
#fullscreenid[data-group-style="blue_pill"] .vr-lang-item:hover {
  background: rgba(47, 123, 255, 0.58);
}
#fullscreenid[data-group-style="blue_pill"] .vr-lang-item.is-on {
  background: rgba(47, 123, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 10px rgba(47, 123, 255, 0.4);
}

#fullscreenid[data-group-style="gov"] .vr-lang-item {
  background: rgba(255, 255, 255, 0.42);
  color: #1f5a38;
}
#fullscreenid[data-group-style="gov"] .vr-lang-item:hover {
  background: rgba(255, 255, 255, 0.58);
}
#fullscreenid[data-group-style="gov"] .vr-lang-item.is-on {
  background: rgba(78, 174, 104, 0.88);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 10px rgba(78, 174, 104, 0.35);
}

#fullscreenid[data-group-style="orange_pill"] .vr-lang-item {
  background: rgba(246, 166, 0, 0.42);
}
#fullscreenid[data-group-style="orange_pill"] .vr-lang-item:hover {
  background: rgba(246, 166, 0, 0.58);
}
#fullscreenid[data-group-style="orange_pill"] .vr-lang-item.is-on {
  background: rgba(246, 166, 0, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 10px rgba(246, 166, 0, 0.4);
}

#fullscreenid[data-group-style="classic"] .vr-lang-item,
#fullscreenid[data-group-style="wheel"] .vr-lang-item {
  background: rgba(92, 97, 106, 0.55);
}
#fullscreenid[data-group-style="classic"] .vr-lang-item:hover,
#fullscreenid[data-group-style="wheel"] .vr-lang-item:hover {
  background: rgba(92, 97, 106, 0.72);
}
#fullscreenid[data-group-style="classic"] .vr-lang-item.is-on,
#fullscreenid[data-group-style="wheel"] .vr-lang-item.is-on {
  background: rgba(61, 126, 245, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 10px rgba(61, 126, 245, 0.4);
}

#fullscreenid[data-group-style="glass_pill"] .vr-lang-item {
  background: rgba(255, 255, 255, 0.18);
}
#fullscreenid[data-group-style="glass_pill"] .vr-lang-item:hover {
  background: rgba(255, 255, 255, 0.28);
}
#fullscreenid[data-group-style="glass_pill"] .vr-lang-item.is-on {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.22);
}

#fullscreenid[data-group-style="tabs"] .vr-lang-item {
  background: rgba(28, 22, 40, 0.55);
  border-radius: 8px;
}
#fullscreenid[data-group-style="tabs"] .vr-lang-item:hover {
  background: rgba(28, 22, 40, 0.72);
}
#fullscreenid[data-group-style="tabs"] .vr-lang-item.is-on {
  background: rgba(255, 138, 31, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 2px 10px rgba(255, 138, 31, 0.35);
}

#fullscreenid[data-group-style="estate"] .vr-lang-item {
  background: rgba(20, 28, 64, 0.55);
  border-radius: 8px;
}
#fullscreenid[data-group-style="estate"] .vr-lang-item:hover {
  background: rgba(20, 28, 64, 0.72);
}
#fullscreenid[data-group-style="estate"] .vr-lang-item.is-on {
  background: rgba(42, 63, 212, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 2px 10px rgba(42, 63, 212, 0.35);
}

#fullscreenid[data-ui-dir="rtl"] .vr-lang-panel {
  left: 4px;
  right: auto;
  transform: none;
  align-items: flex-start;
}
#fullscreenid[data-ui-dir="rtl"] .vr-lang-item {
  text-align: center;
}

/* 主题色仍保持正圆，仅微调底色明度 */
#fullscreenid[data-btn-style="festive"] .vr-lang-btn {
  background: #c45a5a;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.55);
}
#fullscreenid[data-btn-style="fresh"] .vr-lang-btn {
  background: #4a9e86;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
#fullscreenid[data-btn-style="metal"] .vr-lang-btn {
  background: #7b7f87;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
#fullscreenid[data-btn-style="glass"] .vr-lang-btn {
  background: rgba(123, 127, 135, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
#fullscreenid[data-btn-style="linear"] .vr-lang-btn {
  background: #7b7f87;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
  .vrshow_container_1_min #vr_lang_wrap.vr-lang-wrap {
    width: 40px;
    height: 40px;
  }
  .vr-lang-btn {
    width: 35px;
    height: 35px;
  }
  .vr-lang-panel {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
    right: 10px; /* 手机再往左一点，避免贴边裁切 */
  }
  .vr-lang-item {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
    height: 26px;
    padding: 0 6px;
  }
}
