/* サウンドテスト画面 */--fg
.screen-soundTest {
  position: relative; /* 画面内で相対的に配置 */
}

/* バツボタン */
.close-btn {
  position: absolute;
  top: 10px; /* 上から10px */
  right: 20px; /* 右から10px */
  font-size: 4.3vw;


  text-shadow: #3A79C7 1px 1px 1px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  background-color: #9fb0bd33 ;
}

:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --acc: #61dafb;
  --fg: #e8eef2;
  --muted: #9fb0bd;
  --btn: #1b222a;
  --btnActive: #233041;
  --border: #233245;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  /*height: 100%;*/
  /*margin: 0;*/
  /*background: var(--bg);*/
  /*color: var(--fg);*/
  /*font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;*/
}

/* スクロールバー全体 */
::-webkit-scrollbar {
  width: 8px; /* 横のスクロールバーの幅 */
  height: 8px; /* 縦のスクロールバーの高さ */
}

/* スクロールバーのつまみ部分 */
::-webkit-scrollbar-thumb {
  background-color: #4A90E2; /* 背景色（UIに合わせた色を設定） */
  border-radius: 4px; /* 丸みを持たせる */
  border: 2px solid #2A56A1; /* スクロールバーの枠線（背景とのコントラスト） */
}

/* スクロールバーのつまみ部分にホバーしたとき */
::-webkit-scrollbar-thumb:hover {
  background-color: #3A79C7; /* ホバー時に少し色を変更 */
}

/* スクロールバーのトラック部分 */
::-webkit-scrollbar-track {
  background-color: #222222; /* トラック部分の色（背景色に合わせる） */
  border-radius: 4px; /* 丸みを持たせる */
}

/* スクロールバーのトラック部分にホバーしたとき */
::-webkit-scrollbar-track:hover {
  background-color: #333333; /* ホバー時に色を変更 */
}


.screen-soundTest {
  background: var(--bg);
  min-height: 100%;
  height: 100%; /* コンテンツの高さを確保 */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  overflow-y: auto;  /* 縦方向のスクロールを有効にする */
}

#soundTest-header {
  text-align: center;
  min-height: 0vh; /* 最小高さを設定 */
  /*border: #3A79C7 solid 2px;
  box-sizing: border-box; /* ボーダーを含めた高さの計算 */
}
/*
header h1 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--muted);
  font-weight: 0;
}*/
.card {

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.cover {
  width: 75%;
  aspect-ratio: 3/4;
  border-radius: 10px;
  background: #0f141a;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
}
.meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}
.title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--acc);
}
.artist {
  font-size: 0.9rem;
  color: var(--muted);
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 2px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
}
/* track */
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: #0f1821;
  border-radius: 999px;
  border: 1px solid var(--border);
}
input[type="range"]::-moz-range-track {
  height: 8px;
  background: #0f1821;
  border-radius: 999px;
  border: 1px solid var(--border);
}
/* thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--acc);
  margin-top: -7px;
  border: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--acc);
  border: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.time {
  display: flex;
  justify-content: space-between;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.9rem;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 2px;
}
.btn {
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--btn);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 6vw;
  line-height: 1;
  min-height: 54px;
}
.btn:active {
  background: var(--btnActive);
}
.btn[data-active="true"] {
  outline: 2px solid var(--acc);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.row label {
  font-size: 0.95rem;
  color: var(--muted);
  width: 4em;
}
.row .grow {
  flex: 1;
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 30vh;
  overflow: auto;
  padding-right: 2px;
  margin-top: 4px;
}
.track {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.track .index {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f1821;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.track .info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.track .name {
  font-weight: 600;
  color: var(--acc);
}
.track .sub {
  font-size: 0.85rem;
  color: var(--muted);
}
.track[data-current="true"] {
  outline: 2px solid var(--acc);
}
.hint {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 6px;
}
