/* 进度条样式 */
.progress-bg {
  background-color: #eee;
}

.dark .progress-bg {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 音乐播放器样式 */
#music-player {
  background-image: url('/about/shenself.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#music-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

#music-player > div {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#play-button {
  position: absolute;
  z-index: 3;
}

.dark #music-player::before {
  background: rgba(0, 0, 0, 0.3);
}

.dark #music-player {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#play-button {
  background: rgba(76, 175, 80, 0.9);
  color: white;
  border: none;
  text-shadow: none;
  position: absolute;
  z-index: 3;
}

#play-button:hover {
  background: rgba(76, 175, 80, 1);
}

.dark #play-button {
  background: rgba(76, 175, 80, 0.8);
}

.dark #play-button:hover {
  background: rgba(76, 175, 80, 0.9);
}

#progress-container {
  cursor: pointer;
}

.dark #progress-container {
  background: rgba(255, 255, 255, 0.1);
}

#lyric-display {
  min-height: 2.5em;
  display: flex;
  align-items: center;
}

/* CC Switch 标签样式 */
.cc-tabs-container {
  width: 100%;
  max-width: 600px;
}

.cc-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  gap: 4px;
  flex-wrap: wrap;
}

.cc-tab {
  padding: 10px 16px;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.cc-tab:hover {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

.cc-tab.cc-active {
  color: #4caf50;
  border-bottom-color: #4caf50;
  font-weight: 500;
}

.cc-tab-content {
  display: none;
  animation: ccFadeIn 0.3s;
}

.cc-tab-content.cc-active {
  display: block;
}

@keyframes ccFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dark .cc-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.dark .cc-tab {
  color: rgba(255, 255, 255, 0.6);
}

.dark .cc-tab:hover {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.dark .cc-tab.cc-active {
  color: #4caf50;
}

/* Loading dots animation */
@keyframes loadingDots {
  0%, 20% {
    content: '.';
  }
  40%, 60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

.loading-dots::after {
  content: '.';
  animation: loadingDots 1.5s infinite;
  display: inline-block;
  width: 1.5em;
  text-align: left;
}
