/* Animetrics — ダークテーマ（2026-08-08 採用デザイン反映版。根拠= output/animetrics-design-concepts/2026-08-08/selected-direction/ + audit） */
@font-face {
  font-family: "DSEG7";
  src: url("../fonts/DSEG7Classic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DSEG7";
  src: url("../fonts/DSEG7Classic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0E14;
  --panel: #12161F;
  --panel-hover: #1A1F2C;
  --line: #232936;
  --ink: #E5E7EB;
  --muted: #8B93A7;
  --accent: #A78BFA;
  --accent-dim: rgba(167, 139, 250, 0.14);
  --up: #4ADE80;
  --down: #F87171;
  --gold: #F4C95D;
  --silver: #C4CBD6;
  --bronze: #C98258;
  /* Apple/Google流のシステムフォント構成（Webフォント不使用。7セグのDSEGのみ例外） */
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: radial-gradient(rgba(167, 139, 250, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.72;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 話題度指数は上位だけ発光。それ以外は本文色。 */
.t95 { color: #FFD84D; }
.t90 { color: #B58CFF; }
.t80, .t70, .t60, .tlow { color: var(--ink); }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; flex-shrink: 0; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); }
.brand-text { font-size: 1.35rem; font-weight: 900; letter-spacing: 0.03em; line-height: 1.2; }
.brand-sub { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; }
.header-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.last-updated { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.last-updated .num { font-size: 0.78rem; }
.nav { display: flex; gap: 18px; font-size: 0.92rem; }
.nav a { color: var(--ink); font-weight: 700; }
.nav a:hover { color: var(--accent); text-decoration: none; }

main.container { padding-top: 20px; padding-bottom: 64px; }

/* hero */
.hero { position: relative; padding: 14px 0 20px; isolation: isolate; }
.hero-art { position: absolute; z-index: -1; right: -20px; top: -34px; width: 62%; height: 260px; pointer-events: none; overflow: hidden; }
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 23%, #000 100%), linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 23%, #000 100%), linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.hero-content { position: relative; z-index: 1; max-width: 58%; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.issue-badge { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 5px; padding: 2px 10px; letter-spacing: 0.04em; }
.hero-week { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.hero h1 { position: relative; font-size: 1.95rem; font-weight: 900; line-height: 1.3; margin: 0 0 8px; letter-spacing: 0.01em; }
.lead { position: relative; color: var(--muted); margin-top: 0; max-width: 540px; }
.hero-highlight { position: relative; margin: 10px 0 0; padding: 9px 14px; background: rgba(18, 22, 31, 0.94); border: 1px solid var(--line); border-left: 3px solid var(--accent); font-size: 0.92rem; max-width: 540px; }
.hero-highlight-label { display: inline-block; color: var(--accent); font-weight: 700; font-size: 0.78rem; margin-right: 10px; letter-spacing: 0.05em; }
.sp-only { display: none; }

h1 { font-size: 1.7rem; font-weight: 900; line-height: 1.4; }
h2 { font-size: 1.2rem; font-weight: 900; margin-top: 2.4em; letter-spacing: 0.02em; }
h2::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; margin-right: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head .more { font-size: 0.9rem; font-weight: 700; }
.muted { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.footnote { color: var(--muted); font-size: 0.82rem; }

/* 話題度の凡例 */
.tv-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 8px; font-size: 0.76rem; color: var(--muted); }
.tv-legend > span { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-weight: 700; }
.tv-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* 熱量（炎。個数=段階、名称は読み上げ用のみ） */
.heat { display: inline-flex; align-items: center; gap: 1px; }
.flame { fill: currentColor; stroke: none; display: inline-block; }
.heat-quiet .flame { fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.55; }

/* 週次認証バッジ */
.cert { display: inline-block; font-size: 0.68rem; font-weight: 700; line-height: 1; border-radius: 5px; padding: 4px 8px; letter-spacing: 0.04em; vertical-align: 2px; }
.cert-boiling-pick { background: var(--accent); color: #26215C; }
.cert-surge { background: rgba(74, 222, 128, 0.16); border: 1px solid rgba(74, 222, 128, 0.4); color: var(--up); }
p.cert { display: inline-block; margin: 8px 0 0; font-size: 0.78rem; padding: 5px 10px; }

/* top3（金銀銅カード） */
.top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.top3-card-shell { min-width: 0; border-radius: 12px; }
.top3-card-shell.rank-1 { box-shadow: 0 0 22px rgba(244, 201, 93, 0.16); }
.top3-card-shell.rank-2 { box-shadow: 0 0 22px rgba(196, 203, 214, 0.14); }
.top3-card-shell.rank-3 { box-shadow: 0 0 22px rgba(201, 130, 88, 0.15); }
.top3-card { position: relative; display: block; min-width: 0; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); color: var(--ink); transition: border-color 0.15s ease; }
.top3-card:hover { text-decoration: none; }
.top3-card img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.top3-rank { position: absolute; top: 10px; left: 10px; font-size: 1.7rem; font-weight: 700; line-height: 1; color: #fff; background: rgba(11, 14, 20, 0.82); border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; }
.top3-card.rank-1 { border-color: var(--gold); }
.top3-card.rank-1 .top3-rank { color: var(--gold); border-color: var(--gold); }
.top3-card.rank-2 { border-color: var(--silver); }
.top3-card.rank-2 .top3-rank { color: var(--silver); border-color: var(--silver); }
.top3-card.rank-3 { border-color: var(--bronze); }
.top3-card.rank-3 .top3-rank { color: var(--bronze); border-color: var(--bronze); }
.top3-body { display: block; min-width: 0; padding: 12px 14px 14px; }
.top3-body .cert { margin-bottom: 6px; }
.top3-title { display: block; font-weight: 700; font-size: 0.95rem; line-height: 1.5; }
.top3-title-en { display: block; min-width: 0; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; line-height: 1.4; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top3-score { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; }
.top3-score .num { font-family: "DSEG7", var(--font-mono); font-size: 1.4rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.04em; text-shadow: 0 0 8px color-mix(in srgb, currentColor 35%, transparent); }
.top3-score-label { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.05em; }
.top3-score .heat { align-self: center; }
.top3-sub { display: block; min-width: 0; margin-top: 6px; font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ランキング表（列見出し+行） */
.rank-table { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); background: var(--panel); }
.rank-head, .rank-row { display: grid; grid-template-columns: 2.4em 46px minmax(0, 1fr) 3.4em 6.4em 5.8em 3.9em; gap: 12px; align-items: center; }
.rank-head span { white-space: nowrap; }
.rank-head { padding: 8px 16px 8px 12px; border-left: 4px solid transparent; border-bottom: 1px solid var(--line); font-size: 0.7rem; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; }
.rh-title { grid-column: 2 / 4; }
.rh-score, .rh-reg, .rh-tv { text-align: right; }
.rh-score { grid-column: 4; }
.rh-reg { grid-column: 5; }
.rh-tv { grid-column: 6; }
.rh-chg { grid-column: 7; text-align: center; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li + li { border-top: 1px solid var(--line); }
.rank-row { padding: 10px 16px 10px 12px; color: var(--ink); border-left: 4px solid transparent; transition: background 0.12s ease; }
.rank-row:hover { text-decoration: none; background: var(--panel-hover); }
.rank-row.flag-riser { border-left-color: var(--up); }
.rank-row.flag-faller { border-left-color: var(--down); }
.rank-row.flag-new_entry { border-left-color: var(--accent); }
.rr-rank { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.rr-cover { width: 46px; height: 65px; object-fit: cover; border-radius: 5px; display: block; }
.rr-main { min-width: 0; }
.rr-title { display: block; font-weight: 700; line-height: 1.5; }
.rank-row:hover .rr-title { color: var(--accent); }
.rr-score { text-align: right; font-size: 0.88rem; color: var(--ink); }
.rr-reg { text-align: right; font-size: 0.82rem; color: var(--muted); }
.rr-tv { text-align: right; font-family: var(--font-mono); font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; text-shadow: 0 0 8px color-mix(in srgb, currentColor 35%, transparent); }
.rr-badge { text-align: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; border: 1px solid currentColor; border-radius: 5px; padding: 3px 0; background: transparent; }
.rr-badge.new_entry { color: var(--accent); border-color: rgba(167, 139, 250, 0.45); }
.rr-badge.riser { color: var(--up); border-color: rgba(74, 222, 128, 0.4); }
.rr-badge.faller { color: var(--down); border-color: rgba(248, 113, 113, 0.4); }
.rr-badge.steady, .rr-badge.no_prev { color: var(--muted); border-color: rgba(139, 147, 167, 0.35); }

/* tables (記事内Markdown表・日次データ) */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
thead th { font-size: 0.76rem; color: var(--muted); font-weight: 700; letter-spacing: 0.05em; border-bottom: 2px solid var(--muted); }
td.num, th.num { text-align: right; }
tbody tr:hover { background: var(--panel-hover); }
.table-scroll { overflow-x: auto; }
.prose table { display: block; overflow-x: auto; }

/* スコアチップ（記事・旧UI互換） */
.score-chip { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; line-height: 1; border-radius: 4px; padding: 3px 5px; }
.score-chip.hi { background: var(--accent); color: #26215C; }
.score-chip.mid { background: #2A3040; color: #C7CDD9; }
.score-chip.low { background: rgba(248, 113, 113, 0.18); color: #F0999B; }
.metric-value.score-hi { color: var(--accent); }
.metric-value.score-low { color: var(--down); }

/* バックナンバー（カード） */
.issue-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.issue-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); color: var(--ink); transition: border-color 0.15s ease; }
.issue-card:hover { text-decoration: none; border-color: var(--accent); }
.issue-card-no { font-weight: 700; font-size: 0.95rem; }
.issue-card time { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); }
.issue-card-title { font-size: 0.72rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.issue-card.c0 .issue-card-no { color: #5EEAD4; }
.issue-card.c0 { border-color: rgba(94, 234, 212, 0.35); }
.issue-card.c1 .issue-card-no { color: #A78BFA; }
.issue-card.c1 { border-color: rgba(167, 139, 250, 0.35); }
.issue-card.c2 .issue-card-no { color: #FBBF24; }
.issue-card.c2 { border-color: rgba(251, 191, 36, 0.35); }
.issue-card.c3 .issue-card-no { color: #F9A8D4; }
.issue-card.c3 { border-color: rgba(249, 168, 212, 0.35); }
.issue-card.c4 .issue-card-no { color: #86EFAC; }
.issue-card.c4 { border-color: rgba(134, 239, 172, 0.35); }
.issue-card.c5 .issue-card-no { color: #93C5FD; }
.issue-card.c5 { border-color: rgba(147, 197, 253, 0.35); }
.issue-card-all { align-items: center; justify-content: center; font-weight: 700; color: var(--accent); }

/* issue list (週次レポート一覧ページ) */
.issue-list { list-style: none; padding: 0; margin: 18px 0 0; }
.issue-list li { border-bottom: 1px solid var(--line); }
.issue-list li.empty { padding: 14px 0; color: var(--muted); }
.issue-list a { display: flex; align-items: center; gap: 16px; padding: 14px 6px; color: var(--ink); }
.issue-list a:hover { text-decoration: none; background: var(--panel-hover); }
.issue-list a:hover .article-title { color: var(--accent); }
.issue-chip { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; color: #0B0E14; }
.issue-chip.c0 { background: #5EEAD4; }
.issue-chip.c1 { background: #A78BFA; }
.issue-chip.c2 { background: #FBBF24; }
.issue-chip.c3 { background: #F9A8D4; }
.issue-chip.c4 { background: #86EFAC; }
.issue-chip.c5 { background: #93C5FD; }
.issue-body { min-width: 0; }
.article-title { display: block; font-weight: 700; line-height: 1.55; }
.issue-list time { display: block; color: var(--muted); font-size: 0.8rem; }
.issue-desc { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* prose (markdown) */
.prose { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 30px 32px; }
.article-header { border-bottom: 1px solid var(--line); margin-bottom: 22px; padding-bottom: 14px; }
.article-badges { display: flex; gap: 8px; margin: 0 0 10px; }
.cat-badge { font-size: 0.72rem; font-weight: 700; color: var(--ink); background: var(--line); border-radius: 5px; padding: 2px 10px; letter-spacing: 0.05em; }
.article-header h1 { margin: 0 0 6px; font-size: 1.45rem; }
.article-header time { color: var(--muted); font-size: 0.85rem; }
.prose h2 { margin-top: 1.9em; font-size: 1.12rem; }
.prose a { font-weight: 500; }
.prose table a { color: var(--ink); font-weight: 700; }
.prose table a:hover { color: var(--accent); }
.article-nav { margin-top: 24px; font-size: 0.92rem; }

/* anime page */
.anime-header { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 8px; }
.anime-header .cover { border-radius: 10px; flex-shrink: 0; border: 1px solid var(--line); }
.anime-header h1 { margin: 4px 0 2px; }
.rank-badge { display: inline-block; background: var(--accent-dim); color: var(--accent); border-radius: 6px; padding: 3px 12px; font-size: 0.88rem; }
.rank-badge strong { font-size: 1.05rem; font-family: var(--font-mono); }

.metric-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; }
.metric-label { font-size: 0.73rem; color: var(--muted); letter-spacing: 0.05em; }
.metric-value { font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono); font-variant-numeric: tabular-nums; line-height: 1.35; }
.metric-sub { font-size: 0.73rem; color: var(--muted); }

/* sparkline chart */
.spark-wrap { color: var(--accent); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px 10px; }
.sparkline { display: block; width: 100%; max-width: 640px; height: auto; }
.spark-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.spark-tick { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; stroke: none; }
.spark-dot { fill: var(--accent); stroke: none; }
.spark-label { fill: var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 700; stroke: none; }

.ext-links ul { list-style: none; padding: 0; display: flex; gap: 16px; }
.ext-links a { font-weight: 700; }

/* anime grid */
.anime-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 18px; margin-top: 22px; }
.anime-grid a { display: block; color: var(--ink); }
.cover-wrap { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: border-color 0.15s ease; }
.anime-grid a:hover .cover-wrap { border-color: var(--accent); }
.cover-wrap img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.cover-rank { position: absolute; top: 8px; left: 8px; font-size: 0.85rem; font-weight: 700; line-height: 1; color: #fff; background: rgba(11, 14, 20, 0.82); border-radius: 6px; padding: 5px 8px; }
.cover-score { position: absolute; bottom: 8px; right: 8px; font-size: 0.8rem; font-weight: 700; line-height: 1; color: var(--accent); background: rgba(11, 14, 20, 0.85); border-radius: 6px; padding: 4px 7px; }
.card-title { display: block; font-size: 0.85rem; font-weight: 700; line-height: 1.5; margin-top: 8px; }
.anime-grid a:hover { text-decoration: none; }
.anime-grid a:hover .card-title { color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 36px; background: var(--bg); }
.site-footer p { color: var(--muted); font-size: 0.82rem; margin: 4px 0; }

@media (max-width: 900px) {
  .hero-art { display: none; }
  .hero { min-height: 0; padding: 28px 0 16px; }
  .hero-content { max-width: none; }
}

@media (max-width: 800px) {
  /* 中間幅: 登録者列だけを視覚非表示にし、読み上げ順には残す。 */
  .rank-head, .rank-row { grid-template-columns: 2.2em 42px minmax(0, 1fr) 3.2em 4.8em 3.7em; gap: 9px; }
  .rh-reg { display: none; }
  .rh-score { grid-column: 4; }
  .rh-tv { grid-column: 5; }
  .rh-chg { grid-column: 6; }
  .rr-reg {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .rr-cover { width: 42px; height: 60px; }
}

@media (max-width: 640px) {
  /* ヘッダー: ブランド1段 + ナビと最終更新を1段に収める */
  .header-inner { padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .header-right { width: 100%; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; }
  .brand-text { font-size: 1.15rem; }
  .brand-sub { font-size: 0.64rem; }
  .nav { gap: 12px; font-size: 0.82rem; white-space: nowrap; }
  .last-updated { font-size: 0.62rem; white-space: nowrap; }
  .last-updated .num { font-size: 0.66rem; }
  main.container { padding-top: 12px; }
  .hero { padding: 8px 0 14px; }
  .hero-meta { gap: 8px; margin-bottom: 6px; }
  .hero-week { font-size: 0.74rem; }
  .hero h1 { font-size: 1.45rem; }
  .hero-highlight { font-size: 0.86rem; padding: 8px 12px; }
  .sp-only { display: inline; }
  /* top3: 1位を全幅、2・3位を2列 */
  .top3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .top3-card-shell.rank-1 { grid-column: 1 / -1; }
  .top3-card.rank-1 img { aspect-ratio: 16 / 10; object-position: top; }
  .top3-rank { font-size: 1.2rem; padding: 5px 10px; top: 6px; left: 6px; }
  .top3-body { padding: 8px 10px 10px; }
  .top3-title { font-size: 0.82rem; }
  .top3-score .num { font-size: 1.25rem; }
  .top3-sub { font-size: 0.66rem; }
  /* ランキング: 評価・登録者を省略、見出し行は非表示 */
  .rank-head { display: none; }
  .rank-head, .rank-row { grid-template-columns: 1.6em 40px minmax(0, 1fr) 4.6em 3.4em; gap: 8px; }
  .rank-row { padding: 10px 10px 10px 8px; }
  .rr-score {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .rr-cover { width: 40px; height: 57px; }
  .rr-rank { font-size: 1.05rem; }
  .rr-tv { font-size: 1rem; grid-column: 4; }
  .rr-badge { grid-column: 5; font-size: 0.72rem; }
  .anime-header { gap: 14px; }
  .anime-header .cover { width: 104px; }
  .prose { padding: 22px 18px; }
  th, td { padding: 8px 6px; font-size: 0.85rem; }
}
