/* ════════════════════════════════════════
   Discography — 3Dメリーゴーランド・カルーセル
   背景ロゴを中心に、ジャケットが奥行きをもって一周する
════════════════════════════════════════ */

.s-disco {
  padding: 50px 0 260px;
  overflow: hidden;
}

/* ステージ（カルーセルの舞台） */
.disco-stage {
  position: relative;
  width: 100%;
  height: 46vh;
  min-height: 400px;
  margin-top: -70px; /* DISCOGRAPHYラベルとの間隔を詰める（上部の空きを吸収） */
  touch-action: pan-y;
  user-select: none;
}

.disco-ring {
  position: absolute;
  inset: 0;
}

/* 各ジャケット */
.disco-card {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 230px;
  cursor: pointer;
  will-change: transform, opacity;
  /* transform / z-index / opacity は JS が毎フレーム設定 */
}

.disco-cover-img,
.disco-card .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

/* ジャケット未提供のプレースホルダー */
.disco-card .ph {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--border);
}
.disco-card .ph span {
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.disco-card .ph small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* キャプション（先頭のみ表示） */
.disco-card .cap {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
/* 通常モードでは日付は隠す（裏世界カタログでのみ表示） */
.disco-card .cap-d { display: none; }
.disco-card.is-front .cap {
  opacity: 1;
}
.disco-card.is-front .disco-cover-img,
.disco-card.is-front .ph {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6);
}

/* 先頭ジャケ押下＝選択中：少し拡大＋縁が光る */
.disco-card.is-selected .disco-cover-img,
.disco-card.is-selected .ph {
  transform: scale(1.08);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.6),
    0 0 40px 8px rgba(255, 255, 255, 0.28);
}

/* ════ プレイヤーパネル（先頭ジャケ押下で出現） ════ */
.disco-panel {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.45s ease, margin 0.5s var(--ease-out);
}
.disco-panel.is-open {
  max-height: 680px;
  opacity: 1;
  margin-top: 12px;
  padding-bottom: 72px; /* ボトムのpill-navとの被り防止（PC） */
}

.dp-head {
  text-align: center;
  margin-bottom: 18px;
}
.dp-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
/* タイトルに付随する feat. クレジット（控えめ・リンク付き） */
.rel-feat a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dp-title .rel-feat {
  display: block;
  margin-top: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.cap-t .rel-feat { font-size: 0.82em; opacity: 0.72; }
.dp-meta {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dp-credits {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.6;
}
.dp-credits a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 228, 222, 0.18);
  transition: color 0.2s, border-color 0.2s;
}
.dp-credits a:hover {
  color: var(--text);
  border-color: rgba(232, 228, 222, 0.5);
}

/* 再生バー（UIのみ・音源は後で） */
.dp-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dp-play {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: background 0.2s, transform 0.15s;
}
.dp-play:hover { background: rgba(255, 255, 255, 0.12); }
.dp-play:active { transform: scale(0.94); }
.dp-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.dp-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 999px;
  transition: width 0.12s linear; /* JSの再生位置更新をなめらかに（実尺ベース） */
}
.dp-time {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* EP トラックリスト */
.dp-tracks {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.dp-tracks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.dp-tracks li span { color: rgba(232, 228, 222, 0.4); width: 18px; }
.dp-tracks li.is-playing { color: var(--text); }

/* EP 各トラックの再生ボタン */
.dp-track-play {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
  transition: background 0.2s, transform 0.15s;
}
.dp-track-play:hover { background: rgba(255, 255, 255, 0.12); }
.dp-track-play:active { transform: scale(0.92); }
.dp-track-play[disabled] { opacity: 0.3; cursor: default; }

/* サブスクリンク（Apple Music / Spotify を横並び・均等幅、中身は左寄せ） */
.dp-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 16px;
}
.dp-links a {
  flex: 1; /* 2つで行いっぱいに均等割り（右の余白をなくす） */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.dp-links a:hover { background: rgba(255, 255, 255, 0.06); }
.dp-links img { width: 16px; height: auto; }

@media (max-width: 600px) {
  .s-disco { padding: 22px 0 120px; }
  .s-disco .sec-label { margin-bottom: 14px; }
  .disco-card { width: 172px; top: 56%; }
  .disco-stage { height: 46vh; min-height: 340px; margin-top: -65px; }
  /* プレイヤー展開時、ボトムのpill-navと被らないようクリアランス確保 */
  .disco-panel { padding-bottom: 0; }
  .disco-panel.is-open { padding-bottom: 96px; }

  /* サブスクリンクの位置を New Release(.stream-list) と揃える */
  .dp-links a {
    gap: 8px;
    padding: 11px 12px;
    border-radius: 10px;
  }
  .dp-links img { width: 18px; }
}
