/*
 * 선수 분석 머리 부분(헤더·한눈에 보기·프로필)입니다. 팬그래프 선수 페이지 모양을 따릅니다.
 * 설계: docs/superpowers/specs/2026-10-04-player-analytics-fangraphs-header-design.md
 *
 * style.css 의 옛 .header-bar-*·.player-card·.stats-card 규칙은 건드리지 않습니다.
 * 이 파일은 새 클래스(pa-hdr-*, pa-card*, pa-ql*, pa-prof*)만 씁니다.
 */

/* ---------- 헤더 ---------- */
.player-header-bar.pa-hdr { align-items: stretch; min-height: 0; padding: 0; }
.pa-hdr-photo { flex-shrink: 0; width: 84px; min-height: 96px; overflow: hidden; }
.pa-hdr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-hdr-info { flex: 1 1 auto; min-width: 0; padding: 0.75rem 1.1rem; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; }
.pa-hdr-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.6rem; }
.pa-hdr-name { font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.pa-hdr-num { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.pa-hdr-team { font-size: 1rem; color: var(--text-secondary); display: inline-flex; align-items: center; }
.pa-hdr-data { display: flex; flex-wrap: wrap; gap: 0.1rem 1.25rem; font-size: 0.92rem; color: var(--text-primary); }
.pa-hdr-age { white-space: nowrap; }
.pa-hdr-dob { font-size: 0.85rem; color: var(--text-secondary); }
.pa-hdr-pos { flex-shrink: 0; align-self: center; margin: 0 1.25rem; padding: 0.4rem 0.9rem; font-size: 1rem; font-weight: 800; color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 8px; white-space: nowrap; }
.theme-applied .pa-hdr-name { color: #fff !important; }
.theme-applied .pa-hdr-num,
.theme-applied .pa-hdr-team,
.theme-applied .pa-hdr-data { color: rgba(255, 255, 255, 0.85) !important; }
.theme-applied .pa-hdr-dob { color: rgba(255, 255, 255, 0.7) !important; }
.theme-applied .pa-hdr-pos { color: #fff !important; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
@media (max-width: 640px) {
    .pa-hdr-photo { width: 64px; min-height: 84px; }
    .pa-hdr-info { padding: 0.6rem 0.75rem; }
    .pa-hdr-name { font-size: 1.3rem; }
    .pa-hdr-data { font-size: 0.85rem; gap: 0.1rem 0.8rem; }
    .pa-hdr-pos { margin: 0 0.6rem; padding: 0.3rem 0.55rem; font-size: 0.85rem; }
    .pa-card .pa-ql { font-size: 0.8rem; }
    .pa-card .pa-ql th, .pa-card .pa-ql td { padding: 0.3rem 0.25rem; }
    .pa-card .pa-card-body { padding: 0.5rem; }
}

/* ---------- 카드(팬그래프 module card) ---------- */
.pa-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pa-card.hidden { display: none; }
.pa-card--ql { grid-column: span 2; }
/* 1군 투수는 무브먼트 카드까지 3칸입니다. 한눈에 보기 을 1칸으로 줄입니다. */
@media (min-width: 1281px) { .player-details-grid.pa-3col > .pa-card--ql { grid-column: span 1; } }
/* 두 카드 높이는 같습니다(그리드 stretch). 프로필 줄은 촘촘히 두고, 남는 높이는
   아래 시즌 타일이 채웁니다(evan 결정). */
.pa-card--profile .pa-card-body { display: flex; flex-direction: column; }
.pa-tiles { flex: 1 1 auto; display: flex; flex-direction: column; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.pa-tiles-title { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.5rem; }
.pa-tiles-grid { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(4.5rem, 1fr); gap: 0.5rem; }
.pa-tile { display: flex; flex-direction: column; justify-content: center; padding: 0.6rem 0.8rem; border-radius: 8px; background: var(--bg-secondary); border: 1px solid var(--border-color); }
.pa-tile-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.pa-tile-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pa-card-tabs { display: flex; border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); }
.pa-card-tab { padding: 0.55rem 1rem; font-size: 0.9rem; font-weight: 700; color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -1px; }
.pa-card-body { flex: 1 1 auto; padding: 0.5rem 0.75rem 0.75rem; overflow-x: auto; }
/* style.css 의 #player-card { height: 100%; overflow: hidden } 을 이 카드 안에서만 풉니다. */
#player-card.pa-card-body { height: auto; overflow: visible; }
@media (max-width: 1024px) {
    .pa-card--ql, .pa-card--profile, .pa-card--move { grid-column: 1 / -1; }
}

/* ---------- 한눈에 보기 표 ---------- */
.pa-ql-wrap { overflow-x: auto; }
.pa-ql { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.pa-ql th, .pa-ql td { padding: 0.3rem 0.6rem; text-align: right; border-bottom: 1px solid var(--border-color); white-space: nowrap; color: var(--text-primary); }
.pa-ql thead th { font-weight: 700; border-bottom: 2px solid var(--border-color); }
.pa-ql .pa-ql-label { text-align: left; font-weight: 600; color: var(--text-secondary); }
.pa-ql .pa-ql-career { font-weight: 700; background: rgba(59, 130, 246, 0.08); }
.pa-ql tbody tr:last-child td { border-bottom: 0; }
.pa-card-body .futures-stat-head { margin-bottom: 0.4rem; }

/* ---------- 프로필 ---------- */
.pa-prof { margin: 0; }
.pa-prof-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem; padding: 0.45rem 0.1rem; border-bottom: 1px solid var(--border-color); font-size: 0.88rem; }
.pa-prof-row:last-child { border-bottom: 0; }
.pa-prof dt { color: var(--text-secondary); font-weight: 600; }
.pa-prof dd { margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }

/* ---------- 무브먼트(Savant Movement Profile 참고) ---------- */
.pa-card--move .pa-card-tabs { align-items: center; justify-content: space-between; padding-right: 0.5rem; position: relative; }
.pa-move-season { font: inherit; font-size: 0.85rem; padding: 0.2rem 1.8rem 0.2rem 0.5rem; border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--bg-card); color: var(--text-primary); }
.pa-mv-svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; overflow: visible; }  /* 범례가 그림 오른쪽 끝을 살짝 넘어도 보이게 */
.pa-mv-bg { fill: var(--bg-secondary); }
.pa-mv-ring { fill: none; stroke: var(--text-muted); stroke-width: 0.8; opacity: 0.55; }
.pa-mv-ring--minor { stroke-dasharray: 3 3; }
.pa-mv-axis { stroke: var(--text-muted); stroke-width: 0.8; opacity: 0.55; }
.pa-mv-tick { fill: var(--text-muted); font-size: 11px; }
.pa-mv-dir { fill: var(--text-secondary); font-size: 15px; font-weight: 700; }
.pa-mv-pt { opacity: 0.35; }
.pa-mv-avg { stroke: var(--bg-card); stroke-width: 2.5; }
.pa-mv-legend { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.pa-mv-legend th, .pa-mv-legend td { padding: 0.15rem 0.35rem; text-align: right; border-bottom: 1px solid var(--border-color); white-space: nowrap; color: var(--text-primary); }
.pa-mv-legend th { font-weight: 600; color: var(--text-secondary); }
.pa-mv-legend th:first-child, .pa-mv-legend td:first-child { text-align: left; }
.pa-mv-legend tbody tr:last-child td { border-bottom: 0; }
.pa-mv-dot { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-radius: 50%; vertical-align: middle; }
.pa-mv-empty { padding: 1rem 0; font-size: 0.85rem; color: var(--text-secondary); text-align: center; }
/* 1025~1280px: 무브먼트 카드는 아래 줄 전폭입니다. 그림은 그대로, 표는 너무 늘지 않게 합니다. */
@media (min-width: 1025px) and (max-width: 1280px) { .player-details-grid.pa-3col > .pa-card--move { grid-column: 1 / -1; } .pa-card--move .pa-mv-legend { max-width: 560px; margin: 1.25rem auto 0; } }
@media (max-width: 480px) { .pa-mv-legend { font-size: 0.74rem; } .pa-mv-legend th, .pa-mv-legend td { padding: 0.25rem 0.2rem; } .pa-mv-dot { margin-right: 0.2rem; } }

/* ---------- 2차: 툴팁·구종 구사율 ---------- */
.pa-card-tabs-left { display: inline-flex; align-items: center; }
.pa-help { position: static; margin-left: 0.35rem; width: 1.15rem; height: 1.15rem; padding: 0; border: 1px solid var(--border-color); border-radius: 50%; background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: 0.72rem; font-weight: 700; line-height: 1; cursor: help; }
.pa-help::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 0.5rem; right: 0.5rem; z-index: 20; padding: 0.5rem 0.6rem; border-radius: 8px; background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); font-size: 0.82rem; font-weight: 400; line-height: 1.45; text-align: left; white-space: pre-line; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.12s; }
.pa-help:not(.dismissed):hover::after, .pa-help:not(.dismissed):focus-visible::after, .pa-help.open:not(.dismissed)::after { opacity: 1; visibility: visible; }
.pa-usage { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.pa-usage-title { margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); }
.pa-usage-head, .pa-usage-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 5rem minmax(0, 1fr) 3rem; align-items: center; gap: 0.35rem; }
.pa-usage-head { margin-bottom: 0.25rem; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.pa-usage-head span:first-child { text-align: right; }
.pa-usage-head span:nth-child(3) { text-align: center; }
.pa-usage-row { padding: 0.4rem 0; font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.pa-usage-pct:first-child { text-align: right; }
.pa-usage-name { text-align: center; white-space: nowrap; cursor: help; }
.pa-usage-name b { font-weight: 700; color: var(--text-secondary); font-size: 0.75rem; }
.pa-usage-code { display: inline-flex; align-items: center; justify-content: center; min-width: 1.55rem; height: 1.55rem; padding: 0 0.2rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; line-height: 1; vertical-align: middle; letter-spacing: 0.02em; }  /* 구종 색 동그라미(evan) */
.pa-usage-bar { display: flex; height: 0.95rem; box-sizing: border-box; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 999px; overflow: hidden;
  background-image: linear-gradient(to right, transparent calc(25% - 0.5px), var(--border-color) calc(25% - 0.5px), var(--border-color) calc(25% + 0.5px), transparent calc(25% + 0.5px)),
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--border-color) calc(50% - 0.5px), var(--border-color) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to right, transparent calc(75% - 0.5px), var(--border-color) calc(75% - 0.5px), var(--border-color) calc(75% + 0.5px), transparent calc(75% + 0.5px)); }
.pa-usage-bar--l { justify-content: flex-end; }
.pa-usage-bar i { display: block; height: 100%; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pa-mv-view { display: flex; justify-content: flex-end; padding: 0.5rem 0.75rem 0; }
.pa-mv-view-btn { padding: 0.2rem 0.6rem; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.pa-mv-view-btn:first-child { border-radius: 6px 0 0 6px; }
.pa-mv-view-btn:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.pa-mv-view-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.pa-mv-lg { stroke-width: 2.5; opacity: 1; }
.pa-mv-hatch-bg { fill: var(--bg-card); opacity: 0.85; }
.pa-mv-hatch-line { stroke: var(--text-secondary); stroke-width: 1.2; }

/* 구종 가치(7칸) */
.pa-usage-grid--rv .pa-usage-head, .pa-usage-grid--rv .pa-usage-row { grid-template-columns: 2.7rem minmax(0, 1fr) 2rem 4.75rem 2rem minmax(0, 1fr) 2.7rem; }
.pa-usage-grid--rv .pa-usage-head span:nth-child(3), .pa-usage-grid--rv .pa-usage-head span:nth-child(4), .pa-usage-grid--rv .pa-usage-head span:nth-child(5) { text-align: center; }
.pa-usage-grid--rv .pa-usage-head span:nth-child(1) { grid-column: 1 / 3; text-align: left; white-space: nowrap; }
.pa-usage-grid--rv .pa-usage-head span:nth-child(2), .pa-usage-grid--rv .pa-usage-head span:nth-child(6) { display: none; }
.pa-usage-grid--rv .pa-usage-head span:nth-child(7) { grid-column: 6 / 8; text-align: right; white-space: nowrap; }
.pa-rv { text-align: center; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 4px; color: var(--text-muted); }
.pa-rv--pos { color: #b91c1c; background: rgba(220, 38, 38, 0.10); }
.pa-rv--neg { color: #1d4ed8; background: rgba(37, 99, 235, 0.10); }
[data-theme="dark"] .pa-rv--pos { color: #fca5a5; background: rgba(248, 113, 113, 0.16); }
[data-theme="dark"] .pa-rv--neg { color: #93c5fd; background: rgba(96, 165, 250, 0.16); }
.pa-rv-h { cursor: help; text-decoration: underline dotted; }
.pa-usage-grid--dense .pa-usage-row { padding: 0.2rem 0; }
.pa-usage-grid--dense .pa-usage-bar { height: 0.75rem; }

/* 휴대폰: 무브먼트 제목을 줄여 한 줄에 두고, 툴팁은 시점 단추 줄 아래로 내립니다. */
@media (max-width: 640px) {
    .pa-hide-sm { display: none; }
    .pa-card--move .pa-help::after { top: calc(100% + 2.9rem); }
}

.pa-mv-key { fill: var(--text-secondary); font-size: 13px; font-weight: 600; }
.pa-mv-key-own { fill: var(--text-muted); stroke: var(--bg-card); stroke-width: 2; }
.pa-mv-key-lg { stroke: var(--text-secondary); stroke-width: 2; }

/* 백분위 색: 그해 30이닝 이상 투수 중 상위 10% 빨강, 하위 10% 파랑(5% 안쪽은 더 진함) */
.pa-pct--top1 { background: rgba(220, 38, 38, 0.16); }
.pa-pct--top2 { background: rgba(220, 38, 38, 0.32); }
.pa-pct--bot1 { background: rgba(37, 99, 235, 0.16); }
.pa-pct--bot2 { background: rgba(37, 99, 235, 0.32); }
.pa-pct-note { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--text-secondary); }

/* 휴대폰에서는 가치 칸 때문에 막대가 점처럼 줄어듭니다. 막대를 숨기고 숫자만 둡니다(좌타 % | 가치 | 구종 | 가치 | 우타 %). */
@media (max-width: 640px) {
    .pa-usage-grid--rv .pa-usage-head, .pa-usage-grid--rv .pa-usage-row { grid-template-columns: 3.2rem 2.2rem minmax(0, 1fr) 2.2rem 3.2rem; }
    .pa-usage-grid--rv .pa-usage-bar { display: none; }
    .pa-usage-grid--rv .pa-usage-head span:nth-child(1), .pa-usage-grid--rv .pa-usage-head span:nth-child(7) { grid-column: auto; }
}

/* ---------- 투구 분포(Savant Pitch Distribution 참고) ---------- */
#pitch-arsenal-section .section-header-flex { flex-wrap: wrap; gap: 0.6rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }  /* 아래 카드들과 나누는 선(evan) */
.pa-ars-controls { flex-wrap: wrap; justify-content: flex-end; }
.pa-ars-note { margin: -0.5rem 0 0.75rem; padding: 0 0.5rem; font-size: 0.8rem; color: var(--text-secondary); }  /* 고른 공 수 안내 */
#pitch-arsenal-section .pitch-arsenal-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.pa-ars-card { min-width: 0; padding: 0.75rem; text-align: center; }
.pa-ars-card:hover { transform: none; }
.pa-ars-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); text-align: left; margin-bottom: 0.4rem; }
.pa-ars-title span { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); }
.pa-ars-svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.pa-ars-zone { fill: var(--text-muted); fill-opacity: 0.22; stroke: var(--text-muted); stroke-opacity: 0.5; stroke-width: 1; }
.pa-ars-plate { fill: var(--text-muted); fill-opacity: 0.14; stroke: var(--text-muted); stroke-opacity: 0.45; stroke-width: 1; }
.pa-ars-pt { fill-opacity: 0.5; }
.pa-ars-pt--edge { stroke: var(--text-secondary); stroke-width: 1; }
.pa-ars-pt--over { fill-opacity: 0.55; stroke: var(--bg-card); stroke-width: 0.4; }  /* 등고선 + 공: 작은 점 */
.mode-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pa-ars-empty { padding: 1rem 0.5rem; margin: 0; }
@media (max-width: 640px) {
  #pitch-arsenal-section .pitch-arsenal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .pa-ars-card { padding: 0.5rem; }
  .pa-ars-title { font-size: 0.9rem; }
}
@media (max-width: 360px) { #pitch-arsenal-section .pitch-arsenal-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 시즌별 구종 추이(Savant Pitch % by Season 참고) ---------- */
.pa-tr-chart { padding: 0 0.5rem 0.5rem; }
.pa-tr-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pa-tr-grid { stroke: var(--border-color); stroke-width: 1; }
.pa-tr-zero { stroke: var(--text-muted); }
.pa-tr-tick { fill: var(--text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.pa-tr-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pa-tr-pt { stroke: var(--bg-card); stroke-width: 1.5; cursor: help; }
.pa-tr-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-secondary); }
.pa-tr-key { display: inline-flex; align-items: center; gap: 0.35rem; }
.pa-tr-key i { width: 0.7rem; height: 0.7rem; border-radius: 999px; display: inline-block; }
#pa-trend-section .section-header-flex, #pa-rv-section .section-header-flex, #pa-pd-section .section-header-flex, #pa-prv-section .section-header-flex { flex-wrap: wrap; gap: 0.6rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }  /* Arsenal 과 같은 제목 줄 */
#pa-trend-section .card-title, #pa-rv-section .card-title, #pa-pd-section .card-title, #pa-prv-section .card-title { white-space: nowrap; }

/* 구종별 시즌 표(Savant detailedPitches 참고): 가로로 넘치면 표만 밀림 */
.pa-tr-table { padding: 0 0.5rem 0.75rem; }
.pa-tb-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 8px; margin-top: 0.75rem; }
.pa-tb { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-tb th, .pa-tb td { padding: 0.35rem 0.55rem; text-align: right; border-bottom: 1px solid var(--border-color); }
.pa-tb th { position: sticky; top: 0; background: var(--bg-tertiary); color: var(--text-secondary); font-weight: 600; cursor: help; }
.pa-tb th:nth-child(-n+2), .pa-tb td:nth-child(-n+2) { text-align: left; }
.pa-tb tr.pa-tb-first td { border-top: 2px solid var(--border-color); }
.pa-tb tbody tr:last-child td { border-bottom: 0; }
.pa-tb-type::before { content: ''; display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-radius: 999px; background: var(--c); vertical-align: middle; }
.pa-tb .pa-tb-on { background: rgba(37, 99, 235, 0.08); font-weight: 700; color: var(--text-primary); }
.pa-tb th.pa-tb-on { background: rgba(37, 99, 235, 0.16); }
.pa-tb-more { margin-top: 0.5rem; padding: 0.3rem 0.7rem; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: 0.8rem; cursor: pointer; }
.pa-tb-more:hover { color: var(--text-primary); }
/* 가로로 밀어도 시즌·구종은 왼쪽에 고정(Savant 처럼) */
.pa-tb th:nth-child(1), .pa-tb td:nth-child(1) { position: sticky; left: 0; z-index: 1; box-sizing: border-box; width: 3.6rem; min-width: 3.6rem; background: var(--bg-secondary); }
.pa-tb th:nth-child(2), .pa-tb td:nth-child(2) { position: sticky; left: 3.6rem; z-index: 1; background: var(--bg-secondary); box-shadow: 1px 0 0 var(--border-color); }
.pa-tb th:nth-child(1), .pa-tb th:nth-child(2) { z-index: 2; background: var(--bg-tertiary); }
/* 구종별 Run Value 표: 가치 칸은 구사율 가치처럼 +빨강·−파랑, 표 안에선 오른쪽 맞춤·표 글자 크기 */
.pa-tb td.pa-rv { text-align: right; font-size: inherit; border-radius: 0; }
#pa-rv-section .pa-ars-note, #pa-pd-section .pa-ars-note, #pa-prv-section .pa-ars-note { margin: 0.75rem 0 0; }
/* Plate Discipline 표: 둘째 칸(Pitches)은 숫자라 고정·왼쪽 맞춤을 풂 */
.pa-pdt th:nth-child(2), .pa-pdt td:nth-child(2) { position: static; box-shadow: none; text-align: right; }
.pa-tb tr.pa-tb-total td { border-top: 2px solid var(--border-color); font-weight: 700; background: var(--bg-tertiary); }
.pa-tb tr.pa-tb-league td { color: var(--text-secondary); background: var(--bg-secondary); font-weight: 600; }
/* Pitching Run Value 표: 둘째 칸(PA)은 숫자라 고정·왼쪽 맞춤을 풂 */
.pa-prvt th:nth-child(2), .pa-prvt td:nth-child(2) { position: static; box-shadow: none; text-align: right; }
