:root {
  --navy: #07356b;
  --navy-dark: #05254b;
  --blue: #0a62b8;
  --cyan: #18a7c7;
  --red: #e5484d;
  --ink: #17243a;
  --muted: #66758a;
  --line: #dce3ec;
  --surface: #ffffff;
  --page: #f3f6fa;
  --amber: #db8500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: white;
  background: rgba(5, 37, 75, .97);
  box-shadow: 0 2px 12px rgba(0, 20, 50, .2);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { margin-top: 2px; font-size: 9px; letter-spacing: .2em; opacity: .7; }
nav { align-self: stretch; display: flex; }
nav a {
  min-width: 92px;
  display: grid;
  place-items: center;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 700;
  opacity: .78;
}
nav a:hover, nav a.active { border-color: #49d0e4; opacity: 1; }
.view-mode-link { display: none; }
.force-desktop .view-mode-link { display: grid; color: #9fe7f1; }
.menu-button { display: none; border: 0; background: none; }

main { min-height: 100vh; }
.score-hero {
  min-height: 300px;
  padding: 54px max(24px, calc((100vw - 1140px) / 2));
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 60px;
  color: white;
  background:
    radial-gradient(circle at 80% 35%, rgba(41, 179, 208, .28), transparent 28%),
    linear-gradient(115deg, var(--navy-dark), var(--navy) 60%, #064b83);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}
.hero-copy h1 { margin: 0; font-size: clamp(32px, 4vw, 51px); line-height: 1.2; }
.hero-copy > p:last-child { margin: 20px 0 0; color: #c7d7e9; font-size: 14px; }
.season-card {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.season-card div { text-align: center; border-right: 1px solid rgba(255,255,255,.14); }
.season-card div:nth-child(4) { border: 0; }
.season-card span { display: block; color: #b9cce2; font-size: 11px; }
.season-card strong { display: block; margin-top: 5px; font-size: 30px; }
.season-card p { grid-column: 1 / -1; margin: 22px 0 0; font-size: 12px; text-align: center; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #4be0aa; }

.ticker {
  min-height: 52px;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  display: flex;
  align-items: center;
  gap: 20px;
  color: #22314a;
  background: white;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ticker-label { align-self: stretch; padding: 0 18px; display: grid; place-items: center; color: white; background: var(--red); font-weight: 900; font-size: 10px; }
.ticker div { display: flex; align-items: center; gap: 11px; }
.ticker b { font-size: 18px; }
.ticker .dash { color: #9aa7b8; }

.page-intro { padding: 48px max(24px, calc((100vw - 1140px) / 2)) 34px; color: white; background: linear-gradient(118deg, var(--navy-dark), var(--navy) 62%, #0a62b8); }
.page-intro h1 { margin: 5px 0 8px; font-size: clamp(30px, 5vw, 46px); }
.page-intro > p:last-child { max-width: 720px; margin: 0; color: #c6d8eb; font-size: 13px; line-height: 1.8; }
.page-grid {
  max-width: 1180px;
  margin: 34px auto 70px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.home-page-grid { margin-top: 26px; }
.home-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-navigation-card { min-height: 210px; padding: 28px; position: relative; overflow: hidden; border-radius: 14px; color: white; box-shadow: 0 8px 26px rgba(5,37,75,.16); transition: transform .18s, box-shadow .18s; }
.home-navigation-card::after { content: ""; width: 180px; height: 180px; position: absolute; right: -58px; bottom: -78px; border: 32px solid rgba(255,255,255,.09); border-radius: 50%; }
.home-navigation-card.games-card { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.home-navigation-card.players-card { background: linear-gradient(135deg, #0c6c64, #18a7a0); }
.home-navigation-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(5,37,75,.22); }
.home-navigation-card span { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.home-navigation-card strong { margin-top: 12px; display: block; font-size: 25px; }
.home-navigation-card p { max-width: 390px; margin: 12px 0 24px; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.7; }
.home-navigation-card b { font-size: 12px; }
.main-column, .side-column { display: flex; flex-direction: column; gap: 24px; }
.section-block, .side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(31, 54, 86, .05);
}
.section-block { padding: 26px; }
.side-card { padding: 22px; }
.section-heading, .side-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading { margin-bottom: 21px; }
.section-heading h2, .side-card h2 { margin: 0; color: var(--navy-dark); font-size: 21px; }
.detail-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
.detail-heading-copy { min-width: 0; }
.detail-heading-copy h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-nav-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #bdd0e3; border-radius: 50%; color: var(--blue); background: #f5faff; cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s, transform .15s; }
.game-nav-button:hover:not(:disabled) { border-color: var(--blue); background: #e7f3ff; transform: translateY(-1px); }
.game-nav-button:focus-visible { outline: 3px solid rgba(10, 98, 184, .22); outline-offset: 2px; }
.game-nav-button:disabled { border-color: var(--line); color: #b4becb; background: #f5f6f8; cursor: default; }
.select-wrap { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
select { padding: 8px 30px 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; }

.game-list { display: grid; gap: 10px; }
.game-list { gap: 20px; }
.month-result-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.month-result-list { padding: 14px; display: grid; gap: 10px; }
.month-calendar-heading { min-height: 58px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; color: white; background: linear-gradient(115deg, var(--navy-dark), var(--blue)); }
.calendar-month-title { margin-right: auto; display: flex; align-items: baseline; gap: 10px; }
.month-calendar-heading strong { font-size: 24px; }
.month-calendar-heading span { color: #d5e8fb; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.month-calendar-heading > span { margin: 0 10px; padding: 5px 9px; border-radius: 20px; color: white; background: rgba(255,255,255,.15); }
.month-nav-button { width: 38px; height: 38px; flex: 0 0 38px; margin-right: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(255,255,255,.1); cursor: pointer; transition: background .15s, transform .15s; }
.month-nav-button:last-child { margin: 0 0 0 2px; }
.month-nav-button:hover:not(:disabled) { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.month-nav-button:disabled { color: rgba(255,255,255,.35); border-color: rgba(255,255,255,.15); cursor: default; }
.month-nav-button:focus-visible { outline: 3px solid rgba(255,255,255,.35); outline-offset: 2px; }
.game-row {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 84px 1fr auto 26px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: inherit;
  background: white;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: .18s ease;
}
.game-row:hover, .game-row.selected { border-color: #79a8d6; box-shadow: 0 4px 14px rgba(8, 68, 124, .1); transform: translateY(-1px); }
.game-date { padding: 14px; display: grid; place-items: center; color: var(--muted); background: #f7f9fc; font-size: 12px; font-weight: 700; text-align: center; }
.game-date strong { display: block; color: var(--navy); font-size: 19px; }
.game-teams { padding: 13px 18px; }
.game-teams span { display: block; color: var(--muted); font-size: 11px; }
.game-teams strong { display: block; margin-top: 4px; font-size: 15px; }
.game-score { min-width: 154px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.game-score > b { min-width: 58px; font-size: 22px; font-weight: 900; }
.game-score > b.win { color: #d52f3a; }
.game-score > b.loss { color: #536176; }
.game-score > b.draw { color: var(--amber); }
.result-mark { min-width: 48px; padding: 6px 8px; display: grid; place-items: center; border-radius: 5px; color: white; font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.result-mark.win { background: #d93642; }
.result-mark.loss { background: #59687d; }
.result-mark.draw { background: var(--amber); }
.chevron { display: grid; place-items: center; color: #9aa7b8; font-size: 22px; }

.status-badge { padding: 6px 9px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.status-badge.confirmed { color: #08704b; background: #e6f7f0; }
.status-badge.partial { color: #9b5f00; background: #fff3d9; }
.scoreboard { overflow-x: auto; }
.scoreboard table { min-width: 630px; }
.scoreboard th:first-child, .scoreboard td:first-child { width: 210px; text-align: left; }
.scoreboard .own-team td { color: var(--navy); font-weight: 900; }
.detail-meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-meta span { padding: 7px 9px; border-radius: 5px; color: var(--muted); background: #f3f6fa; font-size: 11px; }
.detail-note { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--amber); color: #735018; background: #fff9eb; font-size: 12px; line-height: 1.7; }
.detail-subtitle { margin: 25px 0 12px; color: var(--navy-dark); font-size: 15px; }
.play-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.play-list li { padding: 13px 4px; display: grid; grid-template-columns: 58px 1fr; gap: 12px; border-bottom: 1px solid #e9edf2; }
.play-inning { color: var(--blue); font-size: 11px; font-weight: 900; }
.play-list strong { display: block; font-size: 13px; }
.play-list p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.empty-play { padding: 20px; border: 1px dashed #cbd5e1; border-radius: 8px; color: var(--muted); background: #fafbfd; font-size: 12px; text-align: center; }
.video-panel { margin-top: 18px; padding: 16px; border: 1px solid #cfe0f1; border-radius: 9px; background: #f5faff; }
.video-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-panel-heading strong, .video-panel-heading span { display: block; }
.video-panel-heading strong { color: var(--navy); font-size: 14px; }
.video-panel-heading span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.video-panel-heading a { color: var(--blue); font-size: 12px; font-weight: 800; }
.video-embed { width: 100%; margin-top: 14px; overflow: hidden; border-radius: 8px; background: #071b31; aspect-ratio: 16 / 9; }
.video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.inning-video-links { margin-top: 13px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.inning-video-links div { padding: 10px; display: flex; align-items: center; gap: 9px; border-radius: 7px; background: white; }
.inning-video-links strong { margin-right: auto; color: var(--navy); font-size: 12px; }
.inning-video-links a { padding: 5px 8px; border-radius: 5px; color: white; background: var(--blue); font-size: 10px; font-weight: 800; }
.inning-video-links span { color: var(--muted); font-size: 10px; }
.video-panel > p { margin: 11px 0 0; color: var(--muted); font-size: 10px; }
.scorecard-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.scorecard-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.scorecard-panel-heading strong { color: var(--navy); font-size: 14px; }
.scorecard-panel-heading span { color: var(--muted); font-size: 10px; }
.scorecard-gallery { margin-top: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scorecard-item { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: white; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.scorecard-item:hover { border-color: #79a8d6; box-shadow: 0 5px 16px rgba(8, 68, 124, .12); }
.scorecard-item img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; object-position: top left; background: #eef2f6; }
.scorecard-item > span { padding: 10px 11px; display: block; font-size: 12px; font-weight: 800; }
.scorecard-item small { margin-top: 2px; display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.unknown-cell { color: #9aa7b8; background: #fafbfd; }
.stats-table { min-width: 1520px; }
.stats-table th:first-child { position: sticky; left: 0; z-index: 2; background: #f4f7fa; }
.stats-table td:first-child { position: sticky; left: 0; z-index: 1; background: white; }
.sort-button { width: 100%; min-width: max-content; padding: 2px 14px 2px 0; position: relative; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: inherit; font-weight: 800; text-align: center; }
.sort-button::after { content: "↕"; position: absolute; right: 0; color: #a5b0bf; font-size: 10px; }
.sort-button.active { color: var(--blue); }
.sort-button.active::after { content: "▼"; color: var(--blue); }
th[aria-sort="ascending"] .sort-button.active::after { content: "▲"; }
.sort-button:hover { color: var(--blue); }
.sort-button:focus-visible { border-radius: 3px; outline: 3px solid rgba(10, 98, 184, .2); outline-offset: 2px; }
.stats-table tbody tr { transition: background-color .15s ease; }
.stats-table tbody tr:hover,
.stats-table tbody tr:focus-within { background: #eaf4ff; }
.stats-table tbody tr:hover td,
.stats-table tbody tr:focus-within td { border-bottom-color: #b9d8f5; }
.stats-table tbody tr:hover td:first-child,
.stats-table tbody tr:focus-within td:first-child { background: #eaf4ff; }
.stat-pending { color: #9aa7b8; font-weight: 500; }
.stat-confirmed { color: var(--navy); font-weight: 900; }
.player-link { padding: 0; border: 0; color: var(--blue); background: none; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.player-number-badge { min-width: 48px; padding: 8px 12px; border-radius: 20px; color: white; background: var(--navy); font-weight: 900; text-align: center; }
.player-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.player-summary div { padding: 14px 8px; border-radius: 8px; background: #f3f6fa; text-align: center; }
.player-summary span { display: block; color: var(--muted); font-size: 11px; }
.player-summary strong { display: block; margin-top: 4px; color: var(--navy); font-size: 22px; }
.highlight-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.highlight-list li { padding: 13px 4px; display: grid; grid-template-columns: 72px 1fr; gap: 12px; border-bottom: 1px solid #e9edf2; }
.highlight-list li > span { color: var(--red); font-size: 12px; font-weight: 900; }
.highlight-list strong { font-size: 13px; }
.highlight-list p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.player-game-list { display: grid; gap: 8px; }
.player-game-log { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.player-game-log summary { padding: 13px 14px; display: grid; grid-template-columns: minmax(180px, 1fr) repeat(3, auto); align-items: center; gap: 18px; cursor: pointer; background: #f8fafc; font-size: 12px; }
.player-game-log summary::marker { color: var(--blue); }
.player-game-log summary strong, .player-game-log summary small { display: block; }
.player-game-log summary small { margin-top: 3px; color: var(--muted); }
.appearance-list { padding: 5px 14px 12px; }
.appearance-list > div { padding: 10px 4px; display: grid; grid-template-columns: 105px 130px 1fr; gap: 12px; border-bottom: 1px solid #edf0f4; font-size: 12px; }
.appearance-list > div:last-child { border-bottom: 0; }
.appearance-list span { color: var(--muted); }
.appearance-list p { margin: 0; color: var(--muted); }

.notice { margin-bottom: 16px; padding: 12px 14px; display: flex; gap: 10px; border-radius: 8px; color: #465a73; background: #edf5fb; font-size: 12px; }
.notice span { flex: 0 0 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 900; }
.notice p { margin: 1px 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 12px; color: var(--muted); background: #f4f7fa; border-bottom: 1px solid var(--line); font-size: 11px; text-align: center; }
td { padding: 12px; border-bottom: 1px solid #e9edf2; text-align: center; }
td:first-child { text-align: left; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

.progress-ring {
  width: 132px;
  height: 132px;
  margin: 24px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) calc(var(--progress) * 1%), #e8edf3 0);
  position: relative;
}
.progress-ring::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: white; }
.progress-ring div { position: relative; z-index: 1; text-align: center; }
.progress-ring strong { display: block; color: var(--navy); font-size: 32px; }
.progress-ring span { color: var(--muted); font-size: 11px; }
.muted { color: var(--muted); font-size: 12px; text-align: center; }
.side-heading span { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--red); font-size: 11px; font-weight: 900; }
.review-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.review-card li { padding: 13px 0; border-top: 1px solid #e9edf2; }
.review-card li strong { display: block; color: var(--navy); font-size: 12px; }
.review-card li span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.legend-card dl { margin: 14px 0 0; }
.legend-card dl div { padding: 10px 0; display: flex; justify-content: space-between; border-top: 1px solid #e9edf2; font-size: 11px; }
.legend-card dt { font-weight: 800; }
.legend-card dd { margin: 0; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; }
.dot.confirmed { background: #24aa77; }
.dot.partial { background: #e9a023; }

footer { padding: 28px 20px; color: #afbed1; background: var(--navy-dark); text-align: center; }
footer p { margin: 0 0 5px; color: white; font-weight: 800; }

@media (max-width: 850px) {
  .score-hero { grid-template-columns: 1fr; gap: 32px; }
  .page-grid { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: 1fr 1fr; }
  .review-card { grid-row: span 2; }
}

@media (max-width: 650px) {
  .header-inner { height: 60px; padding: 0 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .menu-button { width: 38px; height: 38px; padding: 8px; display: grid; align-content: center; gap: 5px; }
  .menu-button span { height: 2px; background: white; }
  nav { position: absolute; top: 60px; left: 0; right: 0; display: none; padding: 8px 16px 16px; background: var(--navy-dark); }
  nav.open { display: grid; }
  nav a { min-height: 44px; display: flex; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  nav .view-mode-link { display: flex; color: #9fe7f1; }
  .score-hero { min-height: auto; padding: 40px 20px; }
  .page-intro { padding: 25px 16px 21px; }
  .page-intro h1 { margin: 3px 0 5px; font-size: 27px; }
  .page-intro > p:last-child { font-size: 12px; line-height: 1.55; }
  .home-navigation { grid-template-columns: 1fr; }
  .home-navigation-card { min-height: 180px; padding: 23px; }
  .hero-copy h1 { font-size: 34px; }
  .season-card { padding: 18px 10px; }
  .season-card strong { font-size: 24px; }
  .ticker { padding: 0; gap: 10px; overflow: hidden; }
  .ticker-label { padding: 0 10px; }
  .ticker div { white-space: nowrap; font-size: 11px; }
  .ticker div span:nth-of-type(1), .ticker div span:last-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .page-grid { margin: 12px auto 38px; padding: 0 8px; gap: 14px; }
  .main-column { gap: 14px; }
  .section-block { padding: 15px 10px; border-radius: 9px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading h2, .side-card h2 { font-size: 18px; }
  .calendar-grid { min-width: 660px; }
  .calendar-day { min-height: 84px; }
  .detail-heading { grid-template-columns: auto minmax(0, 1fr) auto; }
  .detail-heading .status-badge { display: none; }
  .game-nav-button { width: 40px; height: 40px; }
  .game-row { grid-template-columns: 65px 1fr 120px 18px; }
  .game-date { padding: 10px 6px; }
  .game-teams { padding: 11px 10px; }
  .game-score { min-width: 0; gap: 6px; }
  .game-score > b { min-width: 48px; font-size: 18px; }
  .result-mark { min-width: 39px; padding: 5px 6px; font-size: 10px; }
  .side-column { display: flex; }
  .player-summary { grid-template-columns: repeat(3, 1fr); }
  .player-game-log summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .appearance-list > div { grid-template-columns: 1fr; gap: 4px; }
  .inning-video-links { grid-template-columns: 1fr; }
  .video-panel-heading { align-items: flex-start; }
  .scorecard-panel-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .scorecard-gallery { grid-template-columns: 1fr; }
  .scoreboard { margin: 0 -10px; padding: 0 10px 5px; }
  .scoreboard table { min-width: 0; table-layout: fixed; font-size: 11px; }
  .scoreboard th:first-child, .scoreboard td:first-child {
    width: 118px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .scoreboard th, .scoreboard td { padding: 9px 3px; }
  .detail-meta { margin-top: 12px; gap: 5px; }
  .detail-meta span { padding: 6px 7px; font-size: 10px; }
  .play-list li { padding: 11px 2px; grid-template-columns: 48px 1fr; gap: 8px; }
  .video-panel, .scorecard-panel { padding: 11px; }

  /* スマホでは横長の成績表を、選手ごとの読みやすいカードにする */
  #players .table-scroll { overflow: visible; }
  .stats-table { min-width: 0; display: block; }
  .stats-table thead { display: block; margin-bottom: 10px; }
  .stats-table thead tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .stats-table thead th { display: none; padding: 0; border: 0; }
  .stats-table thead th:nth-child(1),
  .stats-table thead th:nth-child(7),
  .stats-table thead th:nth-child(6),
  .stats-table thead th:nth-child(14) { display: block; position: static; background: none; }
  .stats-table .sort-button {
    padding: 8px 17px 8px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f4f7fa;
    font-size: 10px;
  }
  .stats-table tbody { display: grid; gap: 10px; }
  .stats-table tbody tr {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 5px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
  }
  .stats-table tbody td {
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 0;
    text-align: center;
    font-size: 13px;
  }
  .stats-table tbody td::before {
    content: attr(data-label);
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
  }
  .stats-table tbody td:first-child {
    grid-column: span 3;
    position: static;
    align-items: flex-start;
    background: transparent;
    text-align: left;
  }
  .stats-table tbody td:nth-child(2) { align-items: flex-end; }
  .stats-table tbody td:nth-child(8),
  .stats-table tbody td:nth-child(9),
  .stats-table tbody td:nth-child(10),
  .stats-table tbody td:nth-child(11),
  .stats-table tbody td:nth-child(12),
  .stats-table tbody td:nth-child(15),
  .stats-table tbody td:nth-child(16),
  .stats-table tbody td:nth-child(17) { display: none; }
  .player-link { font-size: 16px; }
}

@media (max-width: 480px) {
  .month-result-list { padding: 9px; }
  .month-calendar-heading { padding: 9px 10px; }
  .calendar-month-title span, .month-calendar-heading > span { display: none; }
  .month-nav-button { width: 34px; height: 34px; flex-basis: 34px; margin-right: 8px; }
  .game-row { grid-template-columns: 49px minmax(0, 1fr) 76px 11px; }
  .game-date { padding: 9px 4px; }
  .game-date strong { font-size: 17px; }
  .game-teams { min-width: 0; padding: 10px 7px; }
  .game-teams strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .game-teams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  .game-score { min-width: 0; padding-right: 0; flex-direction: column; gap: 2px; }
  .game-score > b { min-width: 0; font-size: 16px; }
  .result-mark { min-width: 36px; padding: 3px 5px; font-size: 9px; }
  .detail-heading-copy h2 { font-size: 15px; }
  .game-nav-button { width: 34px; height: 34px; font-size: 12px; }
  .scoreboard { overflow: hidden; }
  .scoreboard table { font-size: 10px; }
  .scoreboard th:first-child, .scoreboard td:first-child { width: 96px; }
  .scoreboard th, .scoreboard td { padding: 8px 2px; }
  .player-summary { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .player-summary div { padding: 11px 5px; }
  .player-summary strong { font-size: 19px; }
}
