/* =============== 音乐播放器模块 =============== */
#audio-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 280px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 172, 254, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 100; /* 提高层级 */
  opacity: 0.9;
  transition: all 0.4s ease;
  display: block; /* 确保默认显示 */
}

/* 确保背景容器不拦截事件 */
.background-container {
  pointer-events: none; /* 允许事件穿透 */
}

#audio-container:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.now-playing {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.now-playing img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    margin-right: 15px;
    object-fit: cover;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.audio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-controls button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.audio-controls button:hover {
    color: #4facfe;
    transform: scale(1.2);
}