.scene-viewpoint-bar {
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 160px);
  padding: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  pointer-events: auto;
  scrollbar-width: none;
  box-sizing: border-box;
}

.scene-viewpoint-bar::-webkit-scrollbar {
  display: none;
}

.scene-viewpoint-bar--editor {
  position: absolute;
  top: 66px;
  left: calc(50% - 90px);
  z-index: 79;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.scene-viewpoint-bar--editor.hide{
  display: none !important;
}

.scene-viewpoint-bar--player {
  position: fixed;
  top: calc(var(--tt-title-side-overlap,0) * -0.1 + var(--tt-title-marquee,0) + 66px);
  left: 50%;
  z-index: 1200;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, .05);
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.scene-viewpoint-bar-item {
  flex: 0 0 auto;
  min-width: 72px;
  height: 32px;
  padding: 0 14px;
  color: #fff;
  font-size: 13px;
  line-height: 30px;
  text-align: center;
  background: none;
  border: none;
  border-radius: 16px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

.scene-viewpoint-bar-item:hover,
.scene-viewpoint-bar-item.is-active {
  color: #fff;
  background: #286efa;
  border-color: #286efa;
}

/* 场景缩略图上的视角数量徽标，与子场景关联图标并列显示。 */
.player-scene-list-icon{
  position: absolute;
  top:6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scene-viewpoint-count {
  /* position: absolute;
  top: 30px;
  left: 6px;
  z-index: 3; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 20px;
  padding: 0 4px;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 5px;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}

.scene-viewpoint-count-icon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-right: 2px;
}

.scene-viewpoint-count-number {
  display: inline-block;
  min-width: 8px;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 768px) {
  .scene-viewpoint-bar {
    top: calc(var(--tt-title-side-overlap,0) * -0.1 + var(--tt-title-marquee,0) + 66px);
    gap: 6px;
    max-width: calc(100vw - 24px);
  }

  .scene-viewpoint-bar-item {
    min-width: 60px;
    height: 28px;
    padding: 0 11px;
    font-size: 12px;
    line-height: 26px;
  }

  .scene-viewpoint-count {
    top: 5px;
    left: 30px;
    min-width: 27px;
    height: 18px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 18px;
    border-radius: 4px;
  }

  .scene-viewpoint-count-icon {
    width: 12px;
    height: 12px;
  }
}
