@charset "UTF-8";
/* ============================================================
   archive-audio.css 
   ============================================================ */

/* リスト */
.audio-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 行 */
.audio {
  display: grid;
  grid-template-columns: auto 1fr auto; /* 再生 / 本文 / DL */
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.6rem;
}
.audio:hover {
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

/* 左：再生ボタン */
.audio__play .audio__btn-play {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 12px;
  line-height: 1;
}
.audio__play .audio__btn-play:hover {
  background: #f7f7fb;
}
.audio__play .audio__btn-play:focus-visible {
  outline: 3px solid rgba(107, 77, 207, 0.22);
  outline-offset: 2px;
}

/* 本文：タイトル＋メタ */
.audio__body {
  min-width: 0;
}
.audio__title {
  display: inline-block;
  max-width: 100%;
  color: var(--color-text);
  font-weight: bold;
  text-decoration: none;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.audio__title:hover {
  color: var(--color-accent-solid, #5a2bcf);
  text-decoration: underline;
}

.audio__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: var(--size-xxs);
}
.audio__badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef1f7;
  border: 1px solid var(--color-border);
  color: #475467;
  font-size: 11px;
}
.audio__time {
  white-space: nowrap;
}
.audio__creator {
  white-space: nowrap;
}
.audio__tags {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右：ダウンロード */
.audio__actions {
  white-space: nowrap;
}
.audio__btn-dl {
  min-width: 132px;
  height: 36px;
  line-height: 36px;
  padding: 0.8rem 2.4rem;
  border-radius: 9999px;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* 空行 */
.audio--empty {
  text-align: center;
  color: #666;
  padding: 1.2rem;
}

/* 「もっと見る」 */
.loadmore_wrap {
  display: flex;
  justify-content: center;
  margin: 1.6rem 0;
}

/* 長さフィルターで非表示になった行 */
.audio-row.is-length-hidden {
  display: none !important;
}

/* ============================================================
   ダブルレンジスライダー（長さフィルター）
   黒ベース、つまみが線の上下中央に来るよう調整
   ============================================================ */

/* コンテナ */
.panel[data-kind="audio"] .filters_range {
  width: 100%;
}

/* トラック全体 */
.panel[data-kind="audio"] .filters_range__track {
  position: relative;
  padding: 1.2rem 0 0.8rem;
  height: 32px; /* thumb を掴みやすくするための全体高さ */
}

/* ベースライン（未選択部分） */
.panel[data-kind="audio"] .filters_range__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--color-muted);          /* グレー寄りの黒 */
  border-radius: 999px;
}

/* 選択中の範囲バー（JS で left/right を更新） */
.panel[data-kind="audio"] .filters_range__bar {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--color-bl);          /* ベースより少し濃い黒 */
  pointer-events: none;
}

/* 2 本の range 入力を重ねる */
.panel[data-kind="audio"] .filters_range__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  pointer-events: none; /* thumb 以外はクリックさせない */
  -webkit-appearance: none;
  appearance: none;
}

/* WebKit トラックを透明にしてベースラインと干渉させない */
.panel[data-kind="audio"] .filters_range__input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 999px;
}

/* Firefox トラックも同様に透明に */
.panel[data-kind="audio"] .filters_range__input::-moz-range-track {
  height: 4px;
  background: transparent;
  border-radius: 999px;
}

/* つまみ（WebKit系） */
.panel[data-kind="audio"] .filters_range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;          /* つまみだけ掴めるように */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;              /* 中抜きしない黒い丸 */
  border: 2px solid #111;
  cursor: pointer;
  position: relative;
  z-index: 2;
  /* トラック中央に重ねるためのオフセット：
     (track高4px - thumb高16px)/2 = -6px */
  margin-top: -6px;
}

/* つまみ（Firefox） */
.panel[data-kind="audio"] .filters_range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #111;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* ラベル（mm:ss 表示） */
.panel[data-kind="audio"] .filters_range__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: var(--size-xxs);
  color: var(--color-muted);
}

/* =========================
   Breakpoints (min-width)
   ========================= */
@media (min-width: 768px) {
  .audio {
    gap: 1rem;
    padding: 1rem 1.4rem;
  }
  .audio__meta {
    font-size: var(--size-xxs);
  }
}

@media (min-width: 992px) {
  /* PCはタイトルを1行省略に */
  .audio__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .audio__btn-dl {
    min-width: 146px;
  }
}
