/* =========================
  基本設定
  ========================= */
:root {
 --theme-main: #AC324B;
 --theme-sub: #136DA8;
 --theme-white: #FFFFFF;
 --theme-black: #333333;
 --theme-accent: #AC324B;
}
body {
 margin: 0;
 font-family: sans-serif;
 background-color: var(--theme-white);
 color: var(--theme-black);
 font-size: 16px;
}

/* =========================
  テーマカラー
  ========================= */
/* 貴族テーマ */
body[data-theme="noble"],
body.theme-noble {
--theme-main: #564D6A;
--theme-sub: #39383D;
--theme-white: #1E1E22;
--theme-black: #F2EEE8;
--theme-accent: #564D6A;
}
/* カジュアルライブテーマ */
body[data-theme="casual"],
body.theme-casual {
 --theme-main: #871126;
 --theme-sub: #274730;
 --theme-white: #FFFFFF;
 --theme-black: #102851;
 --theme-accent: #B7802D;
}
body[data-theme="casual"],
body.theme-casual {
background-color: #AF7828;
}

/* =========================
  ヘッダー
  ========================= */
header {
 position: relative;
 padding: 38px 20px 30px;
 text-align: center;
 background-color: var(--theme-black);
 color: var(--theme-white);
 border-bottom: 4px solid var(--theme-main);
}
header h1 {
 margin: 0 0 6px;
 font-family: "Bebas Neue", sans-serif;
 font-size: 80px;
 font-weight: normal;
 letter-spacing: 2px;
}
header h2 {
 margin: 0 0 14px;
 font-size: 21px;
 font-weight: normal;
 letter-spacing: 0.5px;
}
header p {
 margin: 0;
}
.site-description {
color: var(--theme-white);
font-size: 15px;
line-height: 1.6;
}
.site-notice {
margin-top: 6px;
color: var(--theme-white);
font-size: 12px;
line-height: 1.5;
}
/* =========================
  インフォメーションボタン
  ========================= */
#infoButton {
 position: absolute;
 top: 18px;
 right: 18px;
 width: 44px;
 height: 44px;
 padding: 0;
 border: none;
 border-radius: 50%;
 background-color: var(--theme-main);
 color: var(--theme-white);
 font-family: Georgia, "Times New Roman", serif;
 font-size: 25px;
 font-weight: normal;
 font-style: italic;
 line-height: 1;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
 transition: background-color 0.2s ease, transform 0.1s ease;
}
#infoButton:hover {
 background-color: var(--theme-main);
}
#infoButton:active {
 transform: scale(0.94);
}

/* =========================
  メイン
  ========================= */
main {
 max-width: 900px;
 margin: 30px auto;
 padding: 0 15px;
}
section {
 padding: 0;
 margin-bottom: 20px;
}
section > h2:first-child {
 margin: 0;
 padding: 20px;
 background-color: var(--theme-white);
 border-radius: 10px 10px 0 0;
}
section > h2:nth-of-type(2) {
 margin: 0;
 padding: 25px 5px 10px;
 background-color: transparent;
 border: none;
}

/* =========================
  検索・絞り込み
  ========================= */
#searchToggle {
 display: none;
}
.search-area {
 padding: 20px;
 background-color: var(--theme-white);
 border-radius: 0 0 10px 10px;
}
.search-box {
 padding: 18px;
 margin: 15px 0;
 background-color: var(--theme-white);
 border-radius: 8px;
}
.search-box h3 {
 margin-top: 0;
 margin-bottom: 12px;
}
#songSearch {
 box-sizing: border-box;
 width: 100%;
 max-width: 500px;
 padding: 12px;
 font-size: 16px;
 border: 1px solid var(--theme-main);
 border-radius: 6px;
}
#searchButton,
#clearSearchButton {
 margin-top: 10px;
 padding: 11px 24px;
 font-size: 17px;
 border: none;
 border-radius: 7px;
 cursor: pointer;
}
#searchButton {
 min-width: 180px;
 background-color: var(--theme-main);
 color: var(--theme-white);
}
#clearSearchButton {
 min-width: 60px;
 padding: 11px 10px;
 background-color: var(--theme-sub);
 color: var(--theme-white);
}
.search-box label {
 display: inline-block;
 margin: 7px 14px 7px 0;
 cursor: pointer;
 font-size: 17px;
}
.search-box input[type="checkbox"] {
 width: 18px;
 height: 18px;
 vertical-align: middle;
}
#searchResultCount {
 margin: 15px 5px 8px;
 color: var(--theme-black);
 font-size: 15px;
}
#activeSearchConditions {
 display: flex;
 flex-wrap: wrap;
 gap: 5px;
 margin-top: 6px;
}
.active-search-tag {
 display: inline-block;
 padding: 3px 9px;
 font-size: 12px;
 line-height: 1.4;
 border-radius: 10px;
 background-color: var(--theme-sub);
 color: var(--theme-white);
}

/* =========================
  フィルター解除ボタン
  ========================= */
.clear-filter-button {
 display: block;
 margin: 0 0 10px auto;
 padding: 4px 10px;
 border: 1px solid var(--theme-main);
 border-radius: 4px;
 background: transparent;
 color: var(--theme-main);
 font-size: 12px;
 cursor: pointer;
 transition: 0.2s;
}
.clear-filter-button:hover {
 background: var(--theme-main);
 color: var(--theme-white);
}

/* =========================
  曲一覧タブ
  ========================= */
#songTabs {
 display: flex;
 gap: 0;
 margin-top: 15px;
 border-bottom: 2px solid #eeeeee;
}
#songTabs button {
 flex: 1;
 padding: 13px 10px;
 border: none;
 background-color: var(--theme-white);
 color: var(--theme-black);
 font-size: 16px;
 font-weight: bold;
 cursor: pointer;
 transition: background-color 0.15s ease, color 0.15s ease;
}
#songTabs button:first-child {
 border-radius: 8px 0 0 0;
}
#songTabs button:last-child {
 border-radius: 0 8px 0 0;
}
#songTabs button.active {
 background-color: var(--theme-main);
 color: var(--theme-white);
}
#songTabs button:hover {
 background-color: var(--theme-sub);
}
#songTabs button.active:hover {
 background-color: var(--theme-accent);
}

/* =========================
  ページ上のシャッフル再生
  ========================= */
#pageShuffleButton {
 display: block;
 width: 100%;
 margin: 12px 0 20px;
 padding: 14px 20px;
 border: none;
 border-radius: 8px;
 background-color: var(--theme-white);
 color: var(--theme-black);
 font-size: 17px;
 font-weight: bold;
 cursor: pointer;
 transition: background-color 0.15s ease, transform 0.1s ease;
}
#pageShuffleButton:hover {
 background-color: var(--theme-sub);
}
#pageShuffleButton:active {
 transform: scale(0.98);
}
#pageShuffleButton.shuffle-active {
 background-color: var(--theme-main) !important;
 color: var(--theme-white) !important;
}

/* =========================
  曲一覧
  ========================= */
#songList {
 display: flex;
 flex-direction: column;
 gap: 20px;
}
.song {
 margin: 0;
}
.song-card {
 position: relative;
 padding: 20px;
 margin: 0;
 background-color: var(--theme-white);
 border: 1px solid var(--theme-main);
 border-radius: 12px;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.song-card h3 {
 margin-top: 0;
 margin-bottom: 15px;
 font-size: 21px;
}
.song-card p {
 margin: 9px 0;
 font-size: 16px;
 line-height: 1.6;
}

/* =========================
  曲カードのタグ
  ========================= */
.song-tags {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
 margin: 8px 0 10px;
}
.song-tag {
 display: inline-block;
 padding: 4px 10px;
 font-size: 13px;
 line-height: 1.4;
 border-radius: 12px;
 background-color: var(--theme-sub);
 color: var(--theme-white);
}

/* =========================
  曲カードの操作ボタン
  ========================= */
.song-card .play-button,
.song-card .favorite-button {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 height: 38px;
 box-sizing: border-box;
 margin-top: 12px;
 vertical-align: middle;
}
.song-card .play-button {
 flex: 3;
 width: auto;
 min-width: 0;
 margin-right: 8px;
 padding: 11px 22px;
 border: none;
 border-radius: 7px;
 background-color: var(--theme-main);
 color: var(--theme-white);
 font-size: 17px;
 cursor: pointer;
}
.song-card .favorite-button {
 flex: 0 0 50px;
 width: 50px;
 padding: 0;
 border: none;
 border-radius: 6px;
 background-color: var(--theme-white);
 color: var(--theme-black);
 font-size: 22px;
 line-height: 1;
 cursor: pointer;
}
.song-card .favorite-button.is-favorite {
 color: var(--theme-main);
}

/* =========================
  戻るボタン
  ========================= */
#backToSearchButton {
 position: fixed;
 right: 20px;
 bottom: 140px;
 padding: 10px 16px;
 border: none;
 border-radius: 20px;
 cursor: pointer;
 z-index: 1500;
 font-size: 15px;
}

/* =========================
  ミニプレイヤー
  ========================= */
#miniPlayer {
 position: fixed;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 1000;
 display: flex;
 align-items: center;
 box-sizing: border-box;
 padding: 10px 20px;
 background-color: var(--theme-white);
 border-top: 1px solid var(--theme-main);
 box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.12);
 cursor: pointer;
}
#miniPlayerThumbnail {
 flex: 0 0 140px;
 width: 140px;
 aspect-ratio: 16 / 9;
 overflow: hidden;
 border-radius: 6px;
 background-color: var(--theme-sub);
}
#miniPlayerImage {
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
}
#miniPlayerInfo {
 flex: 1;
 min-width: 0;
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-left: 15px;
}
#miniPlayerTitle {
 margin-right: 20px;
 font-size: 18px;
 font-weight: bold;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}
#miniPlayerControls {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-shrink: 0;
}
#miniPlayerControls button {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 52px;
 height: 52px;
 padding: 0;
 border: none;
 border-radius: 50%;
 background-color: var(--theme-white);
 cursor: pointer;
 transition: background-color 0.15s ease, transform 0.1s ease;
}
#miniPlayerControls button:hover {
 background-color: var(--theme-sub);
}
#miniPlayerControls button:active {
 transform: scale(0.95);
}

/* =========================
  ミニプレイヤーの前後・再生アイコン
  ========================= */
#previousButton,
#nextButton,
#playPauseButton {
 position: relative;
}
#previousButton::before {
 content: "";
 position: absolute;
 left: 21px;
 width: 0;
 height: 0;
 border-top: 8px solid transparent;
 border-bottom: 8px solid transparent;
 border-right: 11px solid var(--theme-black);
}
#previousButton::after {
 content: "";
 position: absolute;
 left: 17px;
 width: 3px;
 height: 16px;
 background-color: var(--theme-black);
}
#nextButton::before {
 content: "";
 position: absolute;
 left: 20px;
 width: 0;
 height: 0;
 border-top: 8px solid transparent;
 border-bottom: 8px solid transparent;
 border-left: 11px solid var(--theme-black);
}
#nextButton::after {
 content: "";
 position: absolute;
 left: 32px;
 width: 3px;
 height: 16px;
 background-color: var(--theme-black);
}
#playPauseButton::before {
 content: "";
 position: absolute;
 left: 21px;
 width: 0;
 height: 0;
 border-top: 9px solid transparent;
 border-bottom: 9px solid transparent;
 border-left: 13px solid var(--theme-black);
}
#playPauseButton.playing::before {
 left: 19px;
 width: 4px;
 height: 18px;
 border: none;
 background-color: var(--theme-black);
 box-shadow: 8px 0 0 var(--theme-black);
}

/* =========================
  音楽ポップアップ
  ========================= */
#musicPopup {
 position: fixed;
 inset: 0;
 z-index: 2000;
 display: none;
 align-items: center;
 justify-content: center;
 padding: 20px;
 box-sizing: border-box;
}
#musicPopup.active {
 display: flex;
}
#musicPopupOverlay {
 position: absolute;
 inset: 0;
 background-color: rgba(0, 0, 0, 0.7);
}
#musicPopupContent {
 position: relative;
 z-index: 1;
 width: 100%;
 max-width: 900px;
 max-height: 95vh;
 overflow-y: auto;
 box-sizing: border-box;
 padding: 64px 20px 20px;
 background-color: var(--theme-white);
 border-radius: 12px;
 box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}
#musicPopupClose {
 display: block;
 width: 100%;
 max-width: 300px;
 height: 44px;
 margin: 10px auto 0;
 padding: 0;
 border: none;
 border-radius: 8px;
 background-color: var(--theme-black);
 color: var(--theme-white);
 font-size: 16px;
 line-height: 44px;
 text-align: center;
 cursor: pointer;
}
#musicPopupClose:hover {
 background-color: var(--theme-sub);
}
#musicPopupClose:active {
 transform: scale(0.94);
}

/* =========================
  ポップアップ動画
  ========================= */
#popupVideoContainer {
 width: 100%;
 aspect-ratio: 16 / 9;
 overflow: hidden;
 background-color: #000000;
 border-radius: 8px;
}
#popupVideoContainer iframe {
 display: block;
 width: 100%;
 height: 100%;
 border: none;
}
#popupSongTitle {
 margin-top: 15px;
 font-size: 22px;
 font-weight: bold;
}

/* =========================
  ポップアップ操作ボタン
  ========================= */
#popupControls {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 14px;
 margin-top: 20px;
}
#popupControls button,
#popupLoop,
#popupPrevious,
#popupPlayPause,
#popupNext,
#popupShuffle {
 display: flex;
 align-items: center;
 justify-content: center;
 box-sizing: border-box;
 width: 70px;
 height: 70px;
 padding: 0;
 border: none;
 border-radius: 50%;
 background-color: var(--theme-white);
 color: var(--theme-black);
 font-size: 30px;
 cursor: pointer;
 transition: background-color 0.15s ease, transform 0.1s ease;
}
#popupControls button:hover {
 background-color: var(--theme-sub);
}
#popupControls button:active {
 transform: scale(0.94);
}
#popupControls svg {
 width: 28px;
 height: 28px;
 fill: none;
 stroke: var(--theme-black);
 stroke-width: 3.5;
 stroke-linecap: round;
 stroke-linejoin: round;
}
#popupShuffle svg,
#popupLoop svg {
 width: 34px;
 height: 28px;
}
#popupControls button:nth-child(2) svg,
#popupControls button:nth-child(3) svg,
#popupControls button:nth-child(4) svg {
 fill: var(--theme-black);
 stroke: none;
}
#popupControls .popupPlayIcon {
 display: block;
}
#popupControls .popupPauseIcon {
 display: none;
}

/* =========================
  ポップアップ用CSSアイコン
  ========================= */
/* ループ */
.icon-loop {
 position: relative;
 width: 20px;
 height: 20px;
 border: 3px solid var(--theme-black);
 border-top-color: transparent;
 border-radius: 50%;
}
.icon-loop::after {
 content: "";
 position: absolute;
 right: -4px;
 top: -3px;
 width: 0;
 height: 0;
 border-top: 5px solid transparent;
 border-bottom: 5px solid transparent;
 border-left: 7px solid var(--theme-black);
}
/* 前の曲 */
.icon-previous {
 position: relative;
 width: 0;
 height: 0;
 border-top: 9px solid transparent;
 border-bottom: 9px solid transparent;
 border-right: 12px solid var(--theme-black);
}
.icon-previous::after {
 content: "";
 position: absolute;
 right: 0;
 top: -9px;
 width: 3px;
 height: 18px;
 background-color: var(--theme-black);
 transform: translateX(4px);
}
/* 再生 */
.icon-play {
 width: 0;
 height: 0;
 margin-left: 3px;
 border-top: 10px solid transparent;
 border-bottom: 10px solid transparent;
 border-left: 14px solid var(--theme-black);
}
/* 一時停止 */
.icon-pause {
 display: none;
 width: 5px;
 height: 20px;
 background-color: var(--theme-black);
 box-shadow: 8px 0 0 var(--theme-black);
}
/* 次の曲 */
.icon-next {
 position: relative;
 width: 0;
 height: 0;
 border-top: 9px solid transparent;
 border-bottom: 9px solid transparent;
 border-left: 12px solid var(--theme-black);
}
.icon-next::after {
 content: "";
 position: absolute;
 left: 0;
 top: -9px;
 width: 3px;
 height: 18px;
 background-color: var(--theme-black);
 transform: translateX(-4px);
}
/* シャッフル */
.icon-shuffle {
 position: relative;
 width: 22px;
 height: 18px;
 border-top: 3px solid var(--theme-black);
 border-bottom: 3px solid var(--theme-black);
 transform: skewY(-25deg);
}
.icon-shuffle::after {
 content: "";
 position: absolute;
 right: -2px;
 top: 5px;
 width: 0;
 height: 0;
 border-top: 5px solid transparent;
 border-bottom: 5px solid transparent;
 border-left: 7px solid var(--theme-black);
 transform: skewY(25deg);
}

/* =========================
  ポップアップ状態
  ========================= */
#popupLoop.loop-active,
#popupShuffle.shuffle-active {
 background-color: var(--theme-main) !important;
 color: var(--theme-white) !important;
}

/* =========================
  シークバー
  ========================= */
#popupSeekArea {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-top: 15px;
}
#popupCurrentTime,
#popupDuration {
 flex-shrink: 0;
 width: 42px;
 color: var(--theme-black);
 font-size: 13px;
 text-align: center;
}
#popupSeekBar {
 flex: 1;
 width: 100%;
 height: 6px;
 accent-color: var(--theme-main);
 cursor: pointer;
}
#popupSeekBar::-webkit-slider-thumb {
 width: 16px;
 height: 16px;
 appearance: none;
 -webkit-appearance: none;
 border-radius: 50%;
 background-color: var(--theme-main);
 cursor: pointer;
}
#popupSeekBar::-moz-range-thumb {
 width: 16px;
 height: 16px;
 border: none;
 border-radius: 50%;
 background-color: var(--theme-main);
 cursor: pointer;
}

/* =========================
  ポップアップ下部アクション
  ========================= */
#popupActions {
 display: flex;
 gap: 10px;
 margin-top: 15px;
}
#popupFavorite,
#popupOriginal {
 flex: 1;
 box-sizing: border-box;
 padding: 13px;
 border: 1px solid var(--theme-main);
 border-radius: 7px;
 background-color: var(--theme-white);
 color: var(--theme-black);
 font-size: 16px;
 text-align: center;
 text-decoration: none;
 cursor: pointer;
}
#popupFavorite:hover,
#popupOriginal:hover {
 background-color: var(--theme-sub);
}
#popupFavorite.is-favorite {
 color: var(--theme-main);
 border-color: var(--theme-main);
}

/* =========================
  インフォメーションポップアップ
  ========================= */
#infoPopup {
 position: fixed;
 inset: 0;
 z-index: 10000;
 display: none;
 align-items: center;
 justify-content: center;
 padding: 20px;
 box-sizing: border-box;
}
#infoPopup.active {
 display: flex;
}
#infoPopupOverlay {
 position: absolute;
 inset: 0;
 background-color: rgba(0, 0, 0, 0.7);
}
#infoPopupContent {
 position: relative;
 z-index: 1;
 width: 100%;
 max-width: 700px;
 max-height: 85vh;
 overflow-y: auto;
 box-sizing: border-box;
 padding: 50px 25px 25px;
 background-color: var(--theme-white);
 border-top: 5px solid var(--theme-main);
 border-radius: 12px;
 box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}
#infoPopupClose {
 position: absolute;
 top: 10px;
 right: 10px;
 width: 44px;
 height: 44px;
 padding: 0;
 border: none;
 border-radius: 50%;
 background-color: var(--theme-main);
 color: var(--theme-white);
 font-size: 28px;
 line-height: 44px;
 text-align: center;
 cursor: pointer;
}
#infoPopupClose:hover {
 background-color: var(--theme-accent);
}
#infoPopupCloseBottom {
 width: 44px;
 height: 44px;
 padding: 0;
 border: none;
 border-radius: 50%;
 background-color: var(--theme-main);
 color: var(--theme-white);
 font-size: 28px;
 line-height: 44px;
 cursor: pointer;
}
#infoPopupCloseBottom:hover {
 background-color: var(--theme-accent);
}
#infoPopupContent h2 {
 margin: 0 0 25px;
 color: var(--theme-main);
 font-size: 26px;
}
#infoPopupContent section {
 margin-bottom: 25px;
}
#infoPopupContent section:last-child {
 margin-bottom: 0;
}
#infoPopupContent h3 {
 margin: 40px 0 12px;
 padding-left: 10px;
 border-left: 4px solid var(--theme-main);
 font-size: 19px;
}
#infoPopupContent section > h3:first-child {
 margin-top: 0;
}
#infoPopupContent p {
 margin: 7px 0;
 font-size: 15px;
 line-height: 1.7;
}
#infoPopupContent a {
 color: var(--theme-main);
 font-weight: bold;
 text-decoration: none;
}
#infoPopupContent a:hover {
 text-decoration: underline;
}
.infoPopupBottom {
 margin-top: 30px;
 padding-top: 20px;
 border-top: 1px solid var(--theme-sub);
 text-align: center;
}

/* =========================
  スマートフォン
  ========================= */
@media (max-width: 600px) {
 /* ヘッダー */
 header {
   padding: 25px 15px;
 }
 header h1 {
   font-size: 48px;
 }
 #infoButton {
   top: 10px;
   right: 10px;
   width: 42px;
   height: 42px;
   font-size: 23px;
 }

 /* メイン */
 main {
   margin-top: 20px;
   padding: 0 10px;
 }
 section > h2:first-child {
   padding: 18px 15px;
 }
 section > h2:nth-of-type(2) {
   padding: 25px 5px 10px;
 }

 /* 検索 */
 #searchToggle {
   display: flex;
   width: 100%;
   box-sizing: border-box;
   align-items: center;
   justify-content: space-between;
   padding: 16px 18px;
   margin-bottom: 10px;
   border: 1px solid var(--theme-main);
   border-radius: 8px;
   background-color: var(--theme-white);
   color: var(--theme-black);
   font-size: 17px;
   font-weight: bold;
   cursor: pointer;
 }
 #searchToggleIcon {
   font-size: 22px;
   line-height: 1;
 }
 .search-area {
   display: none;
   padding: 10px 15px;
 }
 .search-area.open {
   display: block;
 }
 .search-box {
   padding: 15px;
 }
 .search-box label {
   display: block;
   margin: 10px 0;
   padding: 4px 0;
 }
 .search-box input[type="checkbox"] {
   width: 20px;
   height: 20px;
 }
 #searchButton,
 #clearSearchButton {
   width: 100%;
 }
 #clearSearchButton {
   min-height: 44px;
 }

 /* タブ */
 #songTabs button {
   min-height: 50px;
   padding: 15px 10px;
   font-size: 17px;
 }

 /* シャッフル */
 #pageShuffleButton {
   min-height: 50px;
   padding: 15px 20px;
   font-size: 17px;
 }

 /* 曲カード */
 .song-card {
   padding: 15px;
 }
 .song-card .play-button {
   flex: 3;
   width: auto;
   min-width: 0;
   min-height: 44px;
   font-size: 17px;
 }
 .song-card .favorite-button {
   flex: 0 0 44px;
   width: 44px;
   height: 44px;
   font-size: 24px;
 }

 /* 戻るボタン */
 #backToSearchButton {
   right: 12px;
   bottom: 115px;
   padding: 9px 14px;
   font-size: 14px;
 }

 /* ミニプレイヤー */
 #miniPlayer {
   min-height: 82px;
   flex-wrap: wrap;
   gap: 10px;
   padding: 10px 12px;
 }
 #miniPlayerThumbnail {
   flex: 0 0 100px;
   width: 100px;
   height: 56px;
 }
 #miniPlayerInfo {
   flex: 1;
   min-width: 0;
   flex-direction: column;
   align-items: stretch;
   justify-content: center;
   margin-left: 10px;
 }
 #miniPlayerTitle {
   flex: 1;
   min-width: 0;
   margin-right: 0;
   margin-bottom: 8px;
   font-size: 17px;
   line-height: 1.4;
   white-space: normal;
   overflow: visible;
   text-overflow: clip;
 }
 #miniPlayerControls {
   justify-content: center;
   gap: 4px;
 }
 #miniPlayerControls button {
   width: 44px;
   height: 44px;
 }

 /* 音楽ポップアップ */
 #musicPopup {
   padding: 10px;
 }
 #musicPopupContent {
   width: 100%;
   max-width: none;
   height: 100vh;
   max-height: 100vh;
   padding: 60px 10px 15px;
   border-radius: 0;
 }
 #popupSongTitle {
   font-size: 20px;
 }
 #popupActions {
   flex-direction: column;
 }
 #popupControls {
   gap: 8px;
 }
 #popupLoop,
 #popupPrevious,
 #popupPlayPause,
 #popupNext,
 #popupShuffle {
   width: 56px;
   height: 56px;
   font-size: 25px;
 }

 /* フィルター解除 */
 .clear-filter-button {
   min-height: 36px;
   padding: 7px 12px;
   font-size: 13px;
 }
}

/* =========================
  タッチ端末では hover を無効化
  ========================= */
@media (hover: none) {
 #infoButton:hover {
   background-color: var(--theme-main);
 }
 #miniPlayerControls button:hover {
   background-color: var(--theme-white);
 }
 #musicPopupClose:hover {
   background-color: var(--theme-black);
 }
 #popupControls button:hover {
   background-color: var(--theme-white);
 }
 #popupFavorite:hover,
 #popupOriginal:hover {
   background-color: var(--theme-white);
 }
 #infoPopupClose:hover,
 #infoPopupCloseBottom:hover {
   background-color: var(--theme-main);
 }
 #infoPopupContent a:hover {
   text-decoration: none;
 }
 #songTabs button:hover {
   background-color: var(--theme-white);
 }
 #songTabs button.active:hover {
   background-color: var(--theme-main);
 }
 #pageShuffleButton:hover {
   background-color: var(--theme-white);
 }
 .clear-filter-button:hover {
   background: transparent;
   color: var(--theme-main);
 }
}
/* =========================
  テーマ・並べ替えセレクト
  ========================= */
#themeSelector,
#sortArea {
display: flex;
align-items: center;
gap: 8px;
}
#themeSelector {
margin: 0 0 15px;
}
#sortArea {
margin: 15px 0;
}
#themeSelector label,
#sortArea label {
color: var(--theme-black);
font-size: 16px;
font-weight: bold;
}
#themeSelect,
#sortSelect {
padding: 9px 34px 9px 12px;
border: 1px solid var(--theme-main);
border-radius: 7px;
background-color: var(--theme-white);
color: var(--theme-black);
font-size: 15px;
font-family: inherit;
cursor: pointer;
}
/* =========================
  検索欄へボタン
  ========================= */
#backToSearchButton {
background-color: var(--theme-main);
color: var(--theme-white);
}
#backToSearchButton:hover {
background-color: var(--theme-sub);
}
@media (hover: none) {
#backToSearchButton:hover {
background-color: var(--theme-main);
}
}
/* =========================
  貴族テーマ：文字・ボタン調整
  ========================= */
/* インフォボタン */
body[data-theme="noble"] #infoButton {
   color: #F2EEE8;
}
/* 曲カードのタグ */
body[data-theme="noble"] .song-tag {
   color: #F2EEE8;
}
/* 曲一覧タブ */
body[data-theme="noble"] #songTabs button {
   color: #F2EEE8;
}
/* 選択中の曲一覧タブ */
body[data-theme="noble"] #songTabs button.active {
   color: #F2EEE8;
}
/* 大きいシャッフル再生ボタン */
body[data-theme="noble"] #pageShuffleButton {
   background-color: #F2EEE8;
   color: var(--theme-main);
}
/* 大きいシャッフル再生ボタン：シャッフルON */
body[data-theme="noble"] #pageShuffleButton.shuffle-active {
   background-color: var(--theme-main);
   color: #F2EEE8;
}
/* 曲カードの再生ボタン */
body[data-theme="noble"] .song-card .play-button {
   color: #F2EEE8;
}
/* 検索欄のクリアボタン */
body[data-theme="noble"] #clearSearchButton {
   color: #F2EEE8;
}
/* 「↑ 検索欄へ」ボタン */
body[data-theme="noble"] #backToSearchButton {
   color: #F2EEE8;
}
/* フィルター「全て解除」ボタン */
body[data-theme="noble"] .clear-filter-button {
   background-color: var(--theme-main);
   color: #F2EEE8;
   border-color: var(--theme-main);
}
body[data-theme="noble"] .clear-filter-button:hover {
   background-color: var(--theme-sub);
   color: #F2EEE8;
}
/* テーマ・並べ替えのセレクト */
body[data-theme="noble"] #themeSelect,
body[data-theme="noble"] #sortSelect {
   appearance: none;
   -webkit-appearance: none;
   -moz-appearance: none;
   padding-right: 32px;
   background-color: #1E1E22;
   color: #F2EEE8;
   border: 1px solid #564D6A;
   background-image:
       linear-gradient(45deg, transparent 50%, #F2EEE8 50%),
       linear-gradient(135deg, #F2EEE8 50%, transparent 50%);
   background-position:
       calc(100% - 15px) 50%,
       calc(100% - 10px) 50%;
   background-size:
       5px 5px,
       5px 5px;
   background-repeat: no-repeat;
}
/* =========================
 ミニプレイヤー下の余白
 ========================= */
body {
   padding-bottom: 180px;
}
@media (max-width: 600px) {
   body {
       padding-bottom: 210px;
   }
}
.site-footer-notice {
   text-align: center;
   margin: 20px 0;
   padding: 0 15px;
}
/* 貴族テーマ：インフォメーションの閉じるボタン */
body[data-theme="noble"] #infoPopupClose,
body[data-theme="noble"] #infoPopupCloseBottom {
   color: #F2EEE8;
}
/* 貴族テーマ：インフォメーション内の文字 */
body[data-theme="noble"] #infoPopupContent h3 {
   color: #F2EEE8;
}
body[data-theme="noble"] #infoPopupContent a {
   color: #F2EEE8;
}
/* 貴族テーマ：インフォメーション見出し */
body[data-theme="noble"] #infoPopupContent h2 {
   color: #F2EEE8;
}
/* 貴族テーマ：お気に入り登録済み */
body[data-theme="noble"] #popupFavorite.is-favorite {
   color: #F2EEE8;
}
/* 貴族テーマ：大きいシャッフル再生ボタンON */
body[data-theme="noble"] #pageShuffleButton.shuffle-active {
   background-color: var(--theme-main) !important;
   color: #F2EEE8 !important;
}
/* 通常テーマ：大きいシャッフル再生ボタンOFF */
body[data-theme="normal"] #pageShuffleButton {
   border: 1px solid #AC324B;
}
/* 通常テーマ：大きいシャッフル再生ボタンON */
body[data-theme="normal"] #pageShuffleButton.shuffle-active {
   background-color: #AC324B !important;
   color: #FFFFFF !important;
   border: 1px solid #AC324B;
}
/* 貴族テーマ：テキスト検索の「検索」ボタン */
body[data-theme="noble"] #searchButton {
   color: #F2EEE8;
}
/* 通常テーマ：大きいシャッフル再生ボタン */
body:not([data-theme]) #pageShuffleButton {
   border: 2px solid #AC324B;
}
/* 貴族テーマ：検索条件タグの文字色 */
body[data-theme="noble"] .active-search-tag {
   color: #F2EEE8;
}
/* =========================
  情報提供のお願い
  ========================= */
#informationRequest {
   margin: 0 0 20px;
   border: 1px solid var(--theme-main);
   border-radius: 10px;
   overflow: hidden;
   background-color: var(--theme-white);
}
#informationRequestToggle {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   box-sizing: border-box;
   padding: 15px 18px;
   border: none;
   background-color: var(--theme-white);
   color: var(--theme-main);
   font-size: 17px;
   font-weight: bold;
   text-align: left;
   cursor: pointer;
}
#informationRequestToggle:hover {
   background-color: var(--theme-sub);
   color: var(--theme-white);
}
#informationRequestIcon {
   margin-left: 10px;
   font-size: 18px;
   line-height: 1;
}
#informationRequestContent {
   display: none;
   padding: 5px 18px 18px;
   border-top: 1px solid var(--theme-main);
   color: var(--theme-black);
   font-size: 15px;
   line-height: 1.7;
}
#informationRequestContent.open {
   display: block;
}
#informationRequestContent p {
   margin: 12px 0;
}
#informationRequestContent p:first-child {
   margin-top: 8px;
}
#informationRequestContent a {
   color: var(--theme-main);
   font-weight: bold;
   text-decoration: none;
}
#informationRequestContent a:hover {
   text-decoration: underline;
}
/* =========================
  情報提供のお願い：貴族テーマ
  ========================= */
body[data-theme="noble"] #informationRequest {
   border-color: #564D6A;
}
body[data-theme="noble"] #informationRequestToggle {
   background-color: #1E1E22;
   color: #F2EEE8;
}
body[data-theme="noble"] #informationRequestToggle:hover {
   background-color: #39383D;
   color: #F2EEE8;
}
body[data-theme="noble"] #informationRequestContent {
   background-color: #1E1E22;
   color: #F2EEE8;
   border-top-color: #564D6A;
}
body[data-theme="noble"] #informationRequestContent a {
   color: #F2EEE8;
}
/* =========================
  情報提供のお願い：タッチ端末
  ========================= */
@media (hover: none) {
   #informationRequestToggle:hover {
       background-color: var(--theme-white);
       color: var(--theme-main);
   }
   body[data-theme="noble"] #informationRequestToggle:hover {
       background-color: #1E1E22;
       color: #F2EEE8;
   }
   #informationRequestContent a:hover {
       text-decoration: none;
   }
}
/* =========================
  情報提供のお願い：スマートフォン
  ========================= */
@media (max-width: 600px) {
   #informationRequest {
       margin-bottom: 15px;
   }
   #informationRequestToggle {
       min-height: 50px;
       padding: 15px;
       font-size: 16px;
   }
   #informationRequestContent {
       padding: 5px 15px 15px;
       font-size: 15px;
   }
}
/* =========================
  通常テーマ：曲一覧タブの赤い枠
  ========================= */
body:not([data-theme]),
body[data-theme="normal"] {
}
body:not([data-theme]) #songTabs button,
body[data-theme="normal"] #songTabs button {
   border: 1px solid #AC324B;
}
/* =========================
  貴族テーマ：曲一覧タブの紫色の枠
  ========================= */
body[data-theme="noble"] #songTabs button {
   border: 1px solid #564D6A;
}
#popupOriginalArtist {
   margin-top: 8px;
}
