/* ============================================
   医局の外で会いましょう — エピソードタブ
   articles/style.css の上に重ねて読む。変数はそちらの :root を使う。
   ============================================ */

/* --- 一覧ヒーロー --- */
.ep-hero {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  padding: 108px 24px 46px;
  text-align: center;
}
.ep-hero .label {
  font-family: var(--font-head); font-size: 12px; letter-spacing: 0.2em;
  color: #7ec8f5; font-weight: 700;
}
.ep-hero h1 {
  font-family: var(--font-head); font-size: clamp(24px, 4vw, 36px);
  color: #fff; font-weight: 900; margin-top: 10px;
}
.ep-hero p { font-size: 13.5px; color: rgba(255,255,255,0.75); margin-top: 12px; }
.ep-count {
  display: inline-block; margin-top: 16px; padding: 5px 14px;
  border-radius: 999px; background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9); font-size: 12px; font-weight: 600;
}

/* --- シーズン節 --- */
.season { margin-bottom: 34px; }
.season > summary { list-style: none; cursor: pointer; }
.season > summary::-webkit-details-marker { display: none; }
.season-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.season > summary .season-head::after {
  content: '▾'; margin-left: auto; color: var(--muted); font-size: 13px;
  transition: transform .2s;
}
.season[open] > summary .season-head::after { transform: rotate(180deg); }
.season-no {
  font-family: var(--font-head); font-weight: 900; font-size: 12px;
  letter-spacing: 0.1em; color: #fff; background: var(--navy);
  padding: 5px 11px; border-radius: 999px; flex-shrink: 0;
}
.season-title { font-family: var(--font-head); font-weight: 800; font-size: 15.5px; color: var(--ink); }
.season-meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.season > summary .season-meta { margin-left: 0; }

/* --- エピソードカード --- */
.ep-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px;
}
@media (max-width: 640px) { .ep-grid { grid-template-columns: 1fr; } }
.ep-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.ep-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ep-card .thumb-wrap { position: relative; display: block; }
.ep-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ep-card .ep-no {
  position: absolute; left: 10px; top: 10px;
  font-family: var(--font-head); font-weight: 900; font-size: 11.5px;
  color: #fff; background: rgba(26,58,92,0.92);
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em;
}
.ep-card .body { padding: 14px 16px 18px; }
.ep-card h3 {
  font-family: var(--font-head); font-size: 14.5px; font-weight: 800;
  line-height: 1.55; color: var(--ink); margin-bottom: 8px;
}
.ep-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.ep-card .date { display: block; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.ep-card.no-article { opacity: .92; }
.ep-card .soon {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700;
  color: var(--orange); background: var(--orange-soft); padding: 3px 9px; border-radius: 999px;
}

/* --- 動画ファサード --- */
.video-facade {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
  cursor: pointer; border: 0; padding: 0; display: block; margin: 6px 0 30px;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-facade .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 52px; border-radius: 13px; background: rgba(217,79,61,0.94);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s, background .18s;
}
.video-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); background: #d94f3d; }
.video-facade .play::before {
  content: ''; border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff; margin-left: 4px;
}
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- 個別ページのヘッダー --- */
.ep-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.ep-badge .season-tag {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px;
}
.ep-badge .ep-tag {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 900;
  color: #fff; background: var(--navy); padding: 4px 11px; border-radius: 999px;
}

/* --- 書籍リンク（アフィリエイト） --- */
.book-cta {
  margin: 26px 0; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.book-cta .pr {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 7px; flex-shrink: 0;
}
.book-cta a {
  font-family: var(--font-head); font-size: 15px; font-weight: 800;
  color: var(--navy); text-decoration: none; line-height: 1.5;
  border-bottom: 2px solid var(--orange);
}
.book-cta a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.book-cta .note {
  width: 100%; font-size: 11.5px; color: var(--muted); line-height: 1.6;
}

/* --- 聴く導線 --- */
.listen {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 34px 0 8px; padding: 20px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid #dbe9f7;
}
.listen .listen-title {
  width: 100%; font-family: var(--font-head); font-weight: 800;
  font-size: 14px; color: var(--navy); margin-bottom: 4px;
}
.listen a {
  flex: 1 1 150px; text-align: center; text-decoration: none;
  padding: 11px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  transition: transform .15s, opacity .15s; border: 0;
}
.listen a:hover { transform: translateY(-1px); opacity: .9; }
.listen a.yt { background: var(--navy); color: #fff; }
.listen a.sp { background: #1db954; color: #fff; }
.listen a.note { background: #fff; color: var(--urgent); border: 2px solid var(--urgent); }

/* --- 前後のエピソード --- */
.ep-nav { display: flex; gap: 12px; margin-top: 30px; }
@media (max-width: 560px) { .ep-nav { flex-direction: column; } }
.ep-nav a {
  flex: 1; text-decoration: none; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.ep-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ep-nav .dir { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.ep-nav .t {
  display: block; font-family: var(--font-head); font-size: 13.5px;
  font-weight: 700; color: var(--navy); line-height: 1.5;
}
.ep-nav a.next { text-align: right; }

/* --- 全話一覧へ戻る --- */
.back-all {
  display: block; text-align: center; margin-top: 22px; padding: 13px;
  border-radius: 999px; background: var(--navy); color: #fff;
  text-decoration: none; font-size: 13.5px; font-weight: 700;
}
