/* 色は Co-Co デザイントークン（~/.claude/design-tokens/co-co.tokens.json）
   黄色 #FFC30F は面と装飾だけ。文字には使わない */
:root {
  --cream: #FCF5EB; --white: #FFFFFF; --navy: #141C31; --ink: #0E1318;
  --brown: #776452; --brown-light: #9C7A5E; --yellow: #FFC30F; --line: #E5E0D6;
  --focus: #2F5D8A;
  --radius: 14px; --player-h: 84px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--brown);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.75;
  padding-bottom: calc(var(--player-h) + 24px);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* 上のバー */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(252, 245, 235, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; max-width: 880px; margin: 0 auto; padding: 10px 20px; text-decoration: none; }
.brand-art { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.brand-title { color: var(--navy); font-weight: 700; font-size: 15px; }

main { max-width: 880px; margin: 0 auto; padding: 28px 20px 0; outline: none; }
.loading, .error { color: var(--brown); }

/* 番組の見出し */
.show-hero { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: end; margin-bottom: 36px; }
.show-hero .art { width: 220px; height: 220px; border-radius: var(--radius); object-fit: cover; box-shadow: 0 10px 28px rgba(20, 28, 49, .16); }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--brown); letter-spacing: .04em; margin: 0 0 6px; }
.show-hero h1 { color: var(--navy); font-size: 32px; line-height: 1.35; margin: 0 0 8px; }
.tagline { color: var(--ink); font-weight: 700; margin: 0 0 10px; }
.hosts { margin: 0 0 18px; font-size: 14px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--navy); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brown-light); background: transparent; color: var(--navy);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.about { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.about p { margin: 0; }

h2 { color: var(--navy); font-size: 20px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--yellow); }

/* 回の一覧 */
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ep-card {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.ep-card img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.ep-card a.ep-title { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 16px; line-height: 1.5; }
.ep-card a.ep-title:hover { text-decoration: underline; }
.ep-meta { font-size: 13px; color: var(--brown); margin: 2px 0 4px; }
.ep-summary { font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--yellow); border-radius: 999px; padding: 0 8px; margin-right: 6px; vertical-align: 1px; }
.play-circle {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--cream); display: grid; place-items: center;
}
.play-circle svg { width: 22px; height: 22px; fill: currentColor; }

/* 各回のページ */
.back { display: inline-block; font-size: 14px; margin-bottom: 18px; }
.ep-hero { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: end; margin-bottom: 32px; }
.ep-hero .art { width: 240px; height: 240px; border-radius: var(--radius); object-fit: cover; box-shadow: 0 10px 28px rgba(20, 28, 49, .16); }
.ep-hero h1 { color: var(--navy); font-size: 26px; line-height: 1.45; margin: 0 0 8px; }
.section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.section p { margin: 0; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapters li + li { border-top: 1px solid var(--line); }
.chapter {
  width: 100%; display: flex; gap: 14px; align-items: baseline; background: none; border: 0; cursor: pointer;
  padding: 12px 4px; text-align: left; color: var(--ink);
}
.chapter .time { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 700; font-size: 14px; min-width: 3.6em; }
.chapter[aria-current="true"] { background: #FFF6D6; }
.chapter[aria-current="true"] .time::after { content: "　再生中"; font-weight: 400; font-size: 12px; color: var(--brown); }
.guest-name { color: var(--navy); font-weight: 700; font-size: 17px; margin: 0; }
.guest-role { font-size: 14px; margin: 0 0 8px !important; }

.site-footer { max-width: 880px; margin: 48px auto 0; padding: 20px; font-size: 13px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 4px; }

/* 画面下の再生バー */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; min-height: var(--player-h);
  background: var(--navy); color: var(--cream); box-shadow: 0 -6px 20px rgba(20, 28, 49, .2);
}
.player-progress { position: relative; height: 16px; margin-top: -8px; padding: 0 0; }
#seek { width: 100%; margin: 0; height: 16px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
#seek::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--yellow) var(--p, 0%), rgba(252, 245, 235, .28) var(--p, 0%)); }
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); margin-top: -5px; }
#seek::-moz-range-track { height: 4px; background: rgba(252, 245, 235, .28); }
#seek::-moz-range-progress { height: 4px; background: var(--yellow); }
#seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--yellow); }
.player-row { max-width: 880px; margin: 0 auto; padding: 6px 16px 12px; display: flex; align-items: center; gap: 12px; }
.player-meta { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: var(--cream); text-decoration: none; }
.player-meta img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.player-text { min-width: 0; display: flex; flex-direction: column; }
.player-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-time { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .9; }
.player-controls { display: flex; align-items: center; gap: 6px; flex: none; }
.ctl { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.ctl svg { width: 26px; height: 26px; fill: currentColor; }
.ctl text { fill: currentColor; }
.ctl-main { width: 52px; height: 52px; background: var(--cream); color: var(--navy); }
.ctl-main svg { width: 26px; height: 26px; }
.i-pause { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.speed { min-width: 48px; height: 32px; border-radius: 999px; border: 1px solid rgba(252, 245, 235, .6); background: transparent; color: var(--cream); cursor: pointer; font-size: 13px; font-weight: 700; }
.player :focus-visible { outline-color: var(--yellow); }

@media (max-width: 640px) {
  main { padding-top: 20px; }
  .show-hero, .ep-hero { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .show-hero .art, .ep-hero .art { width: 180px; height: 180px; }
  .show-hero h1 { font-size: 26px; }
  .ep-hero h1 { font-size: 22px; }
  .ep-card { grid-template-columns: 60px 1fr auto; gap: 12px; padding: 12px; }
  .ep-card img { width: 60px; height: 60px; }
  .about, .section { padding: 16px 18px; }
  #back15, #fwd30 { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
