/* 固定位置の音楽プレイヤーのスタイル */
#fixedPlayer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fde9e9;
  padding: 15px 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
  border-top: 2px solid #ff6e7c;
}

#fixedPlayer .player-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

#fixedPlayer .track-info {
  flex: 1;
  margin-right: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "メイリオ", sans-serif;
}

#fixedPlayer .controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 音量コントロール用のコンテナ */
#fixedPlayer .volume-container {
  display: flex;
  align-items: center;
  gap: 2px;
}

#fixedPlayer .volume-container span.speaker-icon {
  display: flex;
  align-items: center;
  margin-top: -2px;
  font-size: 1.1rem;
  cursor: default;
}

#fixedPlayer button {
  background-color: #ff6e7c;
  border: none;
  color: white;
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
  font-family: "メイリオ", sans-serif;
}

#fixedPlayer button:hover {
  background-color: #ff8c97;
}

#fixedPlayerVolumeController {
  width: 160px;
}

/* フッターが隠れないよう padding を増やす */
#siteBox.player-active {
  padding-bottom: 4rem;
}

/* メニューボタンの一部が押せなくならないよう padding を増やす */
#right.player-active {
  padding-bottom: 4rem;
}

/* スマホサイズ向けの設定 */
@media (max-width: 768px) {
  #fixedPlayer {
    padding: 5px;
  }

  #fixedPlayer .player-content {
    flex-direction: column;
    align-items: flex-start;
  }

  #fixedPlayer .track-info {
    margin-right: 0;
    margin-bottom: 5px;
    width: 100%;
  }

  #fixedPlayer .controls {
    width: 100%;
    justify-content: space-between;
  }

  #fixedPlayerVolumeController {
    width: 120px;
  }

  /* プレイヤー出現時にはメニューボタンを上に動かす */
  #menuButton.player-active {
    bottom: 5rem;
    transition: bottom 0.3s ease;
  }
}
