/* Audio Controls Styles */
.audio-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20000;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 25px;
  transition: opacity 0.3s ease;
}

.audio-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes rotate {
  /* 动画起始状态 */
  0% {
      transform: rotate(0deg); /* 旋转角度为0度 */
  }
  /* 动画结束状态 */
  100% {
      transform: rotate(360deg); /* 旋转角度为360度（一圈） */
  }
}

.audio-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  animation: rotate 10s linear infinite;
  opacity: 0.5; /* 初始状态为半透明，表示未激活 */
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.audio-btn.active {
  background: rgba(107, 162, 224, 0.6);
  opacity: 1; /* 激活状态为完全不透明 */
}

.audio-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.audio-btn.disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .audio-controls {
    top: 10px;
    right: 10px;
    padding: 8px;
    gap: 8px;
  }
  
  .audio-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* Show audio controls during opening screen with reduced opacity */
body.opening-active .audio-controls {
  opacity: 0.8;
}