/* エピソード一覧（Figma「03 エピソード一覧｜PC」83:3463）。
   寸法は 1440px 幅の設計の値。860px 以下の割り付けは、設計が PC だけのため Claude が決めた */

.eps {
  --eps-side: max(var(--gutter), calc((100% - 1120px) / 2));  /* 1440px で左右 160 */
  --eps-ink: #2b2a26;        /* 見出しの文字（Figma の直値） */
  --eps-muted: #737069;      /* EPISODES のラベル（Figma の直値） */
  --eps-gray: #595a58;       /* 文字/グレー */
}

/* ---------- 一覧（83:3512） ---------- */
.eps-list { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding: 78px var(--eps-side) 102px; }
.eps-label { font: 500 13px/1.85 var(--sans); letter-spacing: .02em; color: var(--eps-muted); }
.eps-title { font: 400 40px/1.65 var(--ud-pmincho); letter-spacing: .02em; color: var(--eps-ink); }

/* 本編一覧｜4列・最大3行（123:3032）。列の間 24、行の間 32 */
.eps-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; width: 100%; }

/* 一覧用エピソードカード（123:3025）：幅 262、高さ 336 */
.eps-card { min-width: 0; }
.eps-card-link { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 336px; color: inherit; text-decoration: none; }
.eps-card-thumb { display: block; width: 100%; aspect-ratio: 262 / 147.375; border-radius: 4px; overflow: hidden; background: var(--gray-bg); }
.eps-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.eps-card-text { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.eps-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; height: 72px; overflow: hidden; font: 400 17px/24px var(--ud-pmincho); color: var(--sumi); word-break: auto-phrase; line-break: strict; }
.eps-card-guest { display: block; height: 36px; overflow: hidden; font: 400 13px/18px var(--sans); color: var(--eps-gray); white-space: nowrap; text-overflow: ellipsis; }
.eps-card-btn { display: inline-flex; align-items: center; justify-content: center; width: 112px; height: 44px; border: 1px solid var(--olive); border-radius: 4px; background: var(--olive); font: 500 14px/normal var(--sans); color: var(--white); transition: background-color .2s, color .2s; }
.eps-card-link:hover .eps-card-btn, .eps-card-link:focus-visible .eps-card-btn { background: var(--white); color: var(--olive); }
.eps-card-link:hover .eps-card-thumb img { transform: scale(1.03); }

/* ページネーション｜13件以上で表示（123:3047） */
.eps-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; padding-top: 14px; }
.eps-pager-item { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 44px; padding: 0 15px; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); font: 500 14px/normal var(--sans); color: var(--eps-gray); text-decoration: none; transition: background-color .2s, color .2s; }
a.eps-pager-item:hover { border-color: var(--olive); color: var(--olive); }
.eps-pager-item.current { border-color: var(--olive); background: var(--olive); color: var(--white); }
.eps-pager-item.dots { border-color: transparent; background: none; }
.eps-pager-item.is-disabled { opacity: .45; }

/* ---------- 中くらいの幅：3 列 ---------- */
@media (max-width: 1100px) {
  .eps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- スマートフォン（Claude の割り付け） ---------- */
@media (max-width: 860px) {
  .eps-list { gap: 20px; padding-top: 48px; padding-bottom: 64px; }
  .eps-title { font-size: 30px; }
  .eps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .eps-card-link { height: auto; }
}
@media (max-width: 560px) {
  .eps-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .eps-card-title { height: auto; max-height: 72px; }
  .eps-card-guest { height: auto; }
}
