/* 归巢全局播放器 - 底部固定播放栏 */
#guichao-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, #0d0d1a 0%, #0a0a14 100%);
  border-top: 1px solid rgba(201,167,255,0.15);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
}
#guichao-player-bar.hidden {
  transform: translateY(100%);
}

/* 封面缩略图 */
#guichao-player-bar .gp-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4f6df5, #c9a7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 12px;
  overflow: hidden;
}
#guichao-player-bar .gp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#guichao-player-bar .gp-cover.playing {
  animation: gp-cover-pulse 2s ease-in-out infinite;
}
@keyframes gp-cover-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(201,167,255,0.3); }
  50% { box-shadow: 0 0 20px rgba(201,167,255,0.6); }
}

/* 歌曲信息 */
#guichao-player-bar .gp-info {
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}
#guichao-player-bar .gp-title {
  font-size: 14px;
  color: #e8e0ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
#guichao-player-bar .gp-artist {
  font-size: 11px;
  color: #8a7fb0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 控制按钮 */
#guichao-player-bar .gp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#guichao-player-bar .gp-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: #c9a7ff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
#guichao-player-bar .gp-btn:hover {
  background: rgba(201,167,255,0.2);
  color: #fff;
}
#guichao-player-bar .gp-btn-play {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #4f6df5, #7c5cfc);
  color: #fff;
  font-size: 18px;
}
#guichao-player-bar .gp-btn-play:hover {
  background: linear-gradient(135deg, #6b8aff, #9b7dff);
}

/* 进度条 */
#guichao-player-bar .gp-progress-wrap {
  flex: 1;
  max-width: 300px;
  margin: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#guichao-player-bar .gp-time {
  font-size: 10px;
  color: #5a5080;
  min-width: 35px;
  text-align: center;
  flex-shrink: 0;
}
#guichao-player-bar .gp-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
#guichao-player-bar .gp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f6df5, #c9a7ff);
  border-radius: 2px;
  transition: width 0.3s linear;
}
#guichao-player-bar .gp-progress:hover {
  height: 6px;
}

/* 音量 */
#guichao-player-bar .gp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
#guichao-player-bar .gp-volume {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
#guichao-player-bar .gp-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9a7ff;
  cursor: pointer;
}

/* 播放列表弹出层 */
#guichao-player-bar .gp-playlist-popup {
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 320px;
  max-height: 400px;
  background: #0d0d1a;
  border: 1px solid rgba(201,167,255,0.2);
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  display: none;
  z-index: 99998;
}
#guichao-player-bar .gp-playlist-popup.show {
  display: block;
}
#guichao-player-bar .gp-playlist-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
#guichao-player-bar .gp-playlist-item:hover {
  background: rgba(201,167,255,0.08);
}
#guichao-player-bar .gp-playlist-item.active {
  background: rgba(201,167,255,0.14);
  color: #c9a7ff;
}
#guichao-player-bar .gp-playlist-item .pl-title {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#guichao-player-bar .gp-playlist-item .pl-artist {
  font-size: 11px;
  color: #5a5080;
}

/* 响应式 */
@media (max-width: 768px) {
  #guichao-player-bar .gp-progress-wrap {
    display: none;
  }
  #guichao-player-bar .gp-volume-wrap {
    display: none;
  }
  #guichao-player-bar {
    padding: 0 10px;
  }
}

/* 页面底部留白，防止被播放栏遮挡 */
body.gp-active {
  padding-bottom: 72px;
}
