/* NeochiPickzz 紹介サイト。値は design/tokens.json に合わせる。昼の画面なので、外観はシステムに従う。 */
:root {
  --bg: #12151C; --surface: #1A1F28; --surface-pressed: #242932; --line: #2A303B; --border: #646C7A;
  --text: #C8CDD6; --sub: #808794; --factor: #E0B45A; --result: #9FB7D9;
  --factor-tint: rgba(224, 180, 90, 0.14); --result-tint: rgba(159, 183, 217, 0.14);
  --positive: #7CC4A0; --negative: #E8A0A0; --positive-tint: rgba(124, 196, 160, 0.14); --negative-tint: rgba(232, 160, 160, 0.14);
  --logo: #D9DCEA; --on-accent: #0B0D12;
  --sans: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #E9ECF1; --surface: #F6F7F9; --surface-pressed: #E9EAED; --line: #D3D8E0; --border: #7C8594;
    --text: #1B2029; --sub: #586070; --factor: #7F5A05; --result: #385C8C;
    --factor-tint: rgba(127, 90, 5, 0.10); --result-tint: rgba(56, 92, 140, 0.12);
    --positive: #2C6B4B; --negative: #A13A3A; --positive-tint: rgba(44, 107, 75, 0.12); --negative-tint: rgba(161, 58, 58, 0.12);
    --logo: #171C33; --on-accent: #F6F7F9;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/24px var(--sans); }
a { color: inherit; }
img { display: block; }
p { margin: 0; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right)); }
.cap { color: var(--sub); font-size: 12px; line-height: 18px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.big { font-size: 28px; line-height: 34px; font-weight: 600; }
.fac { color: var(--factor); } .res { color: var(--result); } .muted { color: var(--sub); }
.headline { font-weight: 600; font-size: 17px; }
h1 { font-size: 22px; line-height: 30px; font-weight: 700; margin: 0; }
h2 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 0; }
:focus-visible { outline: 2px solid var(--result); outline-offset: 2px; }

/* ロゴ: 記号 N + eochiPick + z(1) + z(0.28)。濃さは opacity-logo-1〜3 */
/* ヘッダーは固定。スクロールしても、ロゴと「解析について」がいつも見える */
html { scroll-padding-top: 76px; scroll-behavior: smooth; }
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top); background: var(--bg); }
@supports (backdrop-filter: blur(1px)) {
  .top { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 13px; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }
main:focus { outline: none; }
.to-top { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.to-top[hidden] { display: none; }
/* 右下は、応援ボタン(.bmc-fab、高さ36px)が使う。その上に置く */
.to-top { bottom: calc(16px + 36px + 12px + env(safe-area-inset-bottom)); }
@media (max-width: 480px) { .to-top { bottom: calc(16px + 32px + 12px + env(safe-area-inset-bottom)); } }
.to-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.logo { display: inline-flex; align-items: baseline; color: var(--logo); text-decoration: none;
  font: 600 20px/1 var(--sans); letter-spacing: 0.01em; }
.logo-w { display: block; height: 20px; width: auto; }   /* ワードマーク(輪郭の svg)。高さは最小 16px */
.foot .logo-w { height: 16px; }
.mark { width: 40%; height: 40%; color: var(--sub); }
nav a { color: var(--sub); text-decoration: none; font-size: 13px; padding: 12px 0; display: inline-block; }
/* ヘッダーのメニュー: 広い画面はロゴの右に横並び。細い画面は、ロゴの下に1行で並べる(折り返さない) */
.top .wrap { flex-wrap: wrap; column-gap: 24px; }
.top nav { display: flex; gap: 20px; white-space: nowrap; }
@media (max-width: 560px) {
  .top .wrap { min-height: 0; padding-top: 12px; }
  .top nav { flex-basis: 100%; gap: 22px; }
  .top nav a { padding: 8px 0 10px; }
  html { scroll-padding-top: 104px; }
}
nav a:hover { color: var(--text); }

/* 一覧 */
.hero { padding: 48px 0 24px; }
.hero-mark { width: 40px; height: 46px; color: var(--logo); display: block; margin-bottom: 20px; overflow: visible; }
.hero h1 { font-size: 28px; line-height: 38px; }
.lead { margin-top: 8px; color: var(--sub); }
.count { margin-top: 16px; font-size: 13px; color: var(--sub); }
.count b { font-family: var(--mono); color: var(--text); font-size: 15px; }
.filters { display: grid; gap: 12px; padding-bottom: 20px; }
#q { width: 100%; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--line);
  background: transparent; color: var(--sub); font: 500 13px/1 var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--result-tint); border-color: var(--result); color: var(--text); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row a { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 12px 16px 12px 12px;
  background: var(--surface); border-radius: 12px; text-decoration: none; transition: background 120ms; }
.row a:hover { background: var(--surface-pressed); }
.art-wrap { position: relative; flex: none; }
.art { object-fit: cover; background: var(--line); }
.art-s { width: 64px; height: 64px; border-radius: 8px; }
.art-l { width: 120px; height: 120px; border-radius: 12px; flex: none; }
.art-empty { display: grid; place-items: center; }
.art-wrap .badge { position: absolute; top: -5px; right: -7px; }
.row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-title { font-weight: 600; font-size: 16px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.row-sub { color: var(--sub); font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star { flex: none; display: inline-flex; align-items: baseline; gap: 3px; font: 600 16px/1 var(--mono); color: var(--factor); }
.star-glyph { font-family: var(--sans); font-size: 0.72em; font-weight: 400; }
.star.big { font-size: 34px; line-height: 40px; }
.empty { color: var(--sub); text-align: center; padding: 32px 0; }

/* 格付けバッジ: 金属の光沢(アプリの RankBadge と同じ。Z は錫、ZZ は青みの銀、ZZZ は真珠) */
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 10px; border-radius: 9999px;
  font: 700 12px/1 var(--mono); letter-spacing: 0.02em; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35); }
.badge-s { min-height: 16px; padding: 0 5px; font-size: 10px; }
.badge-zzz { color: #1C1638; background: linear-gradient(#8C7FC9, #D9D2FA 22%, #FFFFFF 44%, #BFE3F4 64%, #E7D9FB 82%, #9A8BD8); }
.badge-zz { color: #14202F; background: linear-gradient(#6E86A8, #B9CCE6 25%, #F1F6FD 50%, #A8BEDC 75%, #5F7899); }
.badge-z { color: #1E232C; background: linear-gradient(#5E6673, #9AA2AE 25%, #C3C9D2 50%, #8A929F 75%, #5A616D); }

/* 番組の詳細 */
.back { margin-top: 16px; font-size: 13px; }
.back a { color: var(--sub); text-decoration: none; display: inline-block; padding: 10px 0; }
.detail-head { display: flex; gap: 16px; align-items: center; padding: 8px 0 20px; }
.detail-title { min-width: 0; display: grid; gap: 4px; }
.rank-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duo { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 6px; }
.duo > div { display: grid; gap: 2px; }
.duo p b + span { font-size: 13px; margin-left: 2px; }
.vr { width: 1px; align-self: stretch; background: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 20px 0 4px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 9999px; border: 0;
  background: var(--text); color: var(--bg); font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.sec { padding-top: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.card { background: var(--surface); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 9999px; font-size: 12px; }
.pill b { font: 600 13px/1 var(--mono); }
.pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill-pos { background: var(--positive-tint); color: var(--positive); }
.pill-neg { background: var(--negative-tint); color: var(--negative); }
.pill-flat { background: var(--surface-pressed); color: var(--text); }

/* 観点ごとの根拠 */
.axes-card { background: var(--surface); border-radius: 12px; padding: 0 16px; }
.axis + .axis { border-top: 1px solid var(--line); }
.axis summary, .axis.pending { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none; }
.axis summary::-webkit-details-marker { display: none; }
.axis summary > span:first-child, .axis.pending > span:first-child { flex: 1; }
.axis.pending { cursor: default; }
.axis-v .star { font-size: 18px; }
.chev { width: 12px; height: 12px; fill: none; stroke: var(--sub); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms; }
.axis[open] .chev { transform: rotate(90deg); }
.axis-body { display: grid; gap: 12px; padding-bottom: 16px; font-size: 14px; }
.items, .parts, .moments { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; }
.items li > span:first-child { flex: 1; }
.lv { color: var(--sub); } .lv.on { color: var(--factor); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--factor); }
.parts li { display: grid; grid-template-columns: 7em 1fr 56px 2.4em; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; }
.parts .num.fac { text-align: right; }
.gauge { height: 6px; border-radius: 9999px; background: var(--line); overflow: hidden; }
.gauge span { display: block; height: 100%; background: var(--factor); border-radius: inherit; }
.moments li { font-size: 13px; color: var(--sub); }
.summary { background: var(--bg); border-radius: 8px; padding: 12px; font-size: 13px; line-height: 21px; display: grid; gap: 4px; }
.zone3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 0 8px; }
.zone3 span { padding: 6px 0; text-align: center; font-size: 12px; color: var(--sub); background: var(--line); border-radius: 4px; }
.zone3 span.on { background: var(--factor); color: var(--bg); }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.scale span { display: grid; gap: 4px; padding: 4px 0; justify-items: center; }
.scale span.zone { background: var(--surface-pressed); }
.scale i { width: 100%; height: 8px; border-radius: 2px; background: var(--line); }
.scale b { font: 400 11px/1 var(--mono); color: var(--sub); }
.scale .on i { background: var(--factor); } .scale .on b { color: var(--factor); }

/* 図 */
svg text { font-family: var(--sans); }
.ax { fill: var(--sub); font-size: 10px; } .ax.num, .val.num { font-family: var(--mono); }
.ax.fell { fill: var(--result); }
.val { fill: var(--text); font-size: 10px; }
.grid { stroke: var(--line); stroke-width: 1; }
.area { fill: var(--factor-tint); }
.line { fill: none; stroke: var(--factor); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pt { fill: var(--factor); }
.band { fill: var(--line); opacity: 0.7; }
.tick { stroke: var(--text); stroke-width: 1.5; }
.peak { cursor: pointer; outline: none; }
.peak .hit { fill: transparent; }
.peak .dot { fill: var(--factor); stroke: var(--surface); stroke-width: 2; }
.peak.on .dot { r: 6.5; }
.peak:focus-visible .dot { stroke: var(--result); }
.moment-pick { font-size: 13px; min-height: 22px; }
.moment-pick b { font-family: var(--mono); color: var(--factor); }
.moment-pick span { color: var(--sub); font-size: 12px; }
.chart-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); }
.calm-chart svg, .ear-chart svg, .sleep-axis { width: 100%; display: block; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--sub); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend .grow { margin-left: auto; }
.legend i { display: inline-block; }
.lg-band { width: 14px; height: 8px; border-radius: 2px; background: var(--line); }
.lg-tick { width: 1.5px; height: 8px; background: var(--text); }
.lg-fill, .lg-ring { width: 8px; height: 8px; border-radius: 50%; }
.lg-fill { background: var(--result); } .lg-ring { border: 1.5px solid var(--result); }
.zone-fell { fill: var(--result); opacity: 0.16; } .zone-rest { fill: var(--line); opacity: 0.35; }
.sd { fill: none; stroke: var(--result); stroke-width: 1.5; } .sd.fill { fill: var(--result); stroke: none; }
.bars { display: flex; gap: 6px; align-items: flex-end; position: relative; }
.bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(18px + 4px + var(--avg)); border-top: 1px dashed var(--sub); pointer-events: none; }
.bar { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: center; align-content: end; }
.bar i { width: 100%; border-radius: 3px; background: var(--factor); opacity: 0.5; }
.bar.latest i { opacity: 1; }
.bar i.pend { height: 44px; opacity: 1; background: transparent; border: 1px dashed var(--border); }
.bar .v { font-size: 10px; color: var(--sub); } .bar.latest .v { color: var(--text); }
.bar .num.cap { height: 18px; font-size: 10px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.about { padding-top: 24px; }
.about summary { color: var(--sub); font-size: 13px; cursor: pointer; padding: 8px 0; }
.about .cap { display: grid; gap: 8px; }

/* 解析について */
.prose { padding: 48px 0 8px; }
.prose h2 { margin-top: 32px; }
.prose p, .prose dd { margin-top: 8px; }
.prose dt { font-weight: 600; margin-top: 16px; }
.prose dd { margin-left: 0; color: var(--sub); }
.en { color: var(--sub); font-style: italic; font-size: 14px; }
.prose ol { margin: 8px 0 0 20px; padding: 0; }
.prose li { margin-top: 4px; }
.prose dt .tag { margin-left: 8px; }

/* 法的なページ(プライバシーポリシー): 読みやすさを優先。応援ボタンは、HTML に出さない(site.py の nofab) */
.legal { padding-bottom: 64px; }
.legal .cap { margin-top: 8px; }
.legal .lead { color: var(--text); margin-top: 20px; }
.legal p, .legal li { line-height: 27px; }
.legal h2 { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal .summary { margin-top: 28px; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal .summary h2 { margin: 0; padding: 0; border: 0; font-size: 15px; }
.legal .summary dl { margin: 0; }
.legal .summary dt { margin-top: 14px; font-size: 13px; color: var(--sub); font-weight: 600; }
.legal .summary dd { margin: 2px 0 0; color: var(--text); }
body.nofab .to-top { bottom: calc(16px + env(safe-area-inset-bottom)); }
.tag { display: inline-block; font-size: 11px; font-weight: 400; line-height: 16px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--sub); white-space: nowrap; vertical-align: 1px; }
.tag.study { color: var(--text); }
.ref { font-size: 11px; margin-left: 2px; text-decoration: none; }
.refs { font-size: 12px; line-height: 18px; color: var(--sub); }
.refs a { color: inherit; }

.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 44px; }
.foot .logo { font-size: 16px; }
.foot-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.foot .foot-made { color: var(--sub); font-size: 12px; line-height: 18px; }
.foot p { margin: 4px 0; color: var(--sub); font-size: 12px; line-height: 18px; }

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; line-height: 32px; }
  .art-l { width: 96px; height: 96px; }
  .big { font-size: 24px; } .star.big { font-size: 30px; }
  .parts li { grid-template-columns: 7.6em 1fr 36px 2.2em; gap: 6px; }
}

/* 評点(総合の点。★は使わない)と、格付けの見かた、格付けごとのまとまり */
.score { flex: none; display: inline-flex; align-items: baseline; gap: 5px; font: 600 18px/1 var(--mono); color: var(--factor); }
.score-l { font: 500 11px/1 var(--sans); color: var(--sub); }
.score.big { font-size: 34px; line-height: 40px; } .score.big .score-l { font-size: 12px; }
.guide { margin: 0 0 24px; } .guide a { color: var(--result); }
.grp { margin-top: 28px; }
.grp-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; line-height: 22px; font-weight: 600; }
.grp-head .cap { margin-left: auto; font-weight: 400; }
.grp .list { margin: 0; }
@media (max-width: 640px) { .score.big { font-size: 30px; } }

/* トップ(今夜の1本・ランキングの棚・回・系統)とランキングページ */
.wide .wrap { max-width: 1080px; }
.intro { padding: 36px 0 20px; }
.intro h1 { font-size: 22px; line-height: 30px; }
.tonight { display: flex; gap: 24px; align-items: center; padding: 24px; background: var(--surface); border-radius: 16px; }
.art-xl { width: 168px; height: 168px; border-radius: 14px; flex: none; }
.tn-text { min-width: 0; display: grid; gap: 6px; }
.tn-title { font-size: 22px; line-height: 30px; }
.tn-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tn-line { font-size: 14px; }
.tonight .actions { padding-top: 10px; }
.guide { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.guide ul { display: flex; gap: 8px 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.guide li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.guide > a { margin-left: auto; font-size: 13px; }
.more { color: var(--result); font-size: 13px; text-decoration: none; }
.shelf-row { list-style: none; margin: 12px -20px 0; padding: 0 20px 4px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.shelf-row::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 148px; scroll-snap-align: start; }
.pcard a { display: grid; gap: 6px; text-decoration: none; }
.cv { position: relative; display: block; }
.art-c { width: 100%; aspect-ratio: 1; height: auto; border-radius: 10px; }
.cv .bd { position: absolute; top: 6px; right: 6px; }
.cv .no { position: absolute; left: 6px; bottom: 6px; min-width: 26px; padding: 4px 6px; border-radius: 6px; text-align: center;
  background: rgba(11, 13, 18, 0.78); color: #F6F7F9; font: 700 14px/1 var(--mono); }
.pt-title { font-weight: 600; font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.score-s { font-size: 13px; }
.eps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ep a { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 10px 12px; background: var(--surface); border-radius: 12px; text-decoration: none; }
.ep a:hover { background: var(--surface-pressed); }
.ep .art-s { width: 48px; height: 48px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.tile { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border-radius: 12px; text-decoration: none; }
.tile:hover { background: var(--surface-pressed); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--line); background: transparent; color: var(--sub); font: 600 13px/1 var(--sans); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--result-tint); border-color: var(--result); color: var(--text); }
.selects { display: flex; gap: 8px; flex-wrap: wrap; }
.selects select { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.grid-c { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
.grid-c .pcard { width: auto; }
.grid-c [hidden] { display: none; }
@media (max-width: 720px) {
  .tonight { flex-direction: column; align-items: flex-start; padding: 16px; }
  .art-xl { width: 120px; height: 120px; }
  .eps { grid-template-columns: 1fr; }
}

/* 下層への道: 棚の最後のカード、見出しのリンク、パンくず、フッターの道 */
.more { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.more::after { content: "→"; margin-left: 6px; }
.more-tile { display: grid; place-content: center; justify-items: center; gap: 4px; aspect-ratio: 1; border: 1px dashed var(--border); border-radius: 10px; color: var(--text); }
.more-tile .arrow { font-size: 20px; color: var(--result); }
.pcard-more a:hover .more-tile { background: var(--surface); }
.tn-cover { flex: none; }
.tn-title a { text-decoration: none; } .tn-title a:hover { text-decoration: underline; }
.guide li a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin: 0; padding: 4px 0; }
.guide li a:hover span:last-child { text-decoration: underline; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.crumbs span { color: var(--sub); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 4px 0 12px; }
.foot-nav a { color: var(--sub); font-size: 13px; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.foot-nav a:hover { color: var(--text); }
@media (max-width: 560px) { .foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; } }
.sec > .actions { padding-top: 16px; }
.sec .shelf-row { margin-top: 12px; }
.guide li a { color: var(--text); }

/* 押せるものには、矢印を付ける(行・タイル・格付けの見かた) */
.ep a::after, .tile::after, .guide li a::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: 4px;
  border-top: 1.8px solid var(--sub); border-right: 1.8px solid var(--sub); transform: rotate(45deg); }
.ep a:hover::after, .tile:hover::after, .guide li a:hover::after { border-color: var(--text); }
.tile { position: relative; padding-right: 36px; }
.tile::after { position: absolute; right: 16px; top: 50%; margin-top: -4px; }
.eps-all { grid-template-columns: repeat(2, 1fr); }
.eps-all[hidden], .eps-all [hidden] { display: none; }
@media (max-width: 720px) { .eps-all { grid-template-columns: 1fr; } }
/* 番組ページ: 最新の話・話の一覧 / 話のページ */
.ep-card { display: grid; gap: 6px; background: var(--surface); border-radius: 12px; padding: 14px 16px; text-decoration: none; }
.ep-card:hover { background: var(--surface-pressed); }
.ep-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ep-text { display: grid; gap: 2px; min-width: 0; }
.ep-card b, .ep-name { font-weight: 600; font-size: 15px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.show-eps, .ep-more ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 12px; }
.show-eps li + li, .ep-more li { border-top: 1px solid var(--line); }
.show-eps a, .ep-more a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
  padding: 8px 16px; text-decoration: none; }
.show-eps a:hover, .ep-more a:hover { background: var(--surface-pressed); }
.ep-name { -webkit-line-clamp: 1; font-weight: 500; }
.ep-more { margin-top: 8px; }
.ep-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--sub); font-size: 13px; }
.ep-head { margin-top: 8px; }
.ep-head h1 { margin: 0 0 4px; font-size: 22px; line-height: 30px; }

/* 作った人・応援 */
/* 応援(Buy Me a Coffee): 画面の右下に固定。ページの縦の並びを増やさない */
.bmc-fab { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom)); display: block; line-height: 0;
  border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28); }
.bmc-fab img { height: 36px; width: auto; border-radius: 8px; }
@media (max-width: 480px) { .bmc-fab img { height: 32px; } }
@media print { .bmc-fab { display: none; } }

/* ランキングの対象(番組/話)の切り替え */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 8px 0 12px; background: var(--surface); border-radius: 9999px; }
.seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 18px; border-radius: 9999px;
  color: var(--sub); font: 600 14px/1 var(--sans); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--text); color: var(--bg); }
.seg a:not([aria-current]):hover { color: var(--text); }
