/* CSS custom properties */
:root {
  --fshq-primary: #0050a0;
  --fshq-primary-light: #0068cc;
  --fshq-bg: #ffffff;
  --fshq-bg-secondary: #f8fafc;
  --fshq-bg-tertiary: #f1f5f9;
  --fshq-border: #e2e8f0;
  --fshq-border-light: #f1f5f9;
  --fshq-text: #0f172a;
  --fshq-text-secondary: #475569;
  --fshq-text-muted: #94a3b8;
}

/* Reset — box-sizing globally, margin/padding on layout elements only */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.article-prose p, .article-prose h2, .article-prose h3, .article-prose ul, .article-prose ol, .article-prose blockquote, .article-prose figure { margin: revert; }
html, body { max-width: 100vw; overflow-x: hidden; background: var(--fshq-bg); color: var(--fshq-text); }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* Focus styles */
:focus-visible { outline: 2px solid var(--fshq-primary); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* Page header texture */
.page-header-texture {
  background: linear-gradient(180deg, #003d7a 0%, #0050a0 60%, #0060b8 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #d4a017;
}
.page-header-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Sidebar scrollbar (dark background) */
.sidebar-nav-scroll {
  padding-bottom: 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sidebar-nav-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-nav-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* Styled scrollbars */
.styled-scrollbar::-webkit-scrollbar { width: 5px; }
.styled-scrollbar::-webkit-scrollbar-track { background: transparent; }
.styled-scrollbar::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 10px; }
.styled-scrollbar::-webkit-scrollbar-thumb:hover { background: #aeaeb2; }
.styled-scrollbar { scrollbar-width: thin; scrollbar-color: #d1d1d6 transparent; }

/* Draft board horizontal scroll (dark bg) */
.draft-board-scroll::-webkit-scrollbar { height: 6px; }
.draft-board-scroll::-webkit-scrollbar-track { background: transparent; }
.draft-board-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.draft-board-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); }
.draft-board-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-in { animation: slide-in-right 0.2s ease-out; }
.animate-ticker { animation: ticker-scroll linear infinite; }

/* Scrollbar hide */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Article prose — WordPress content styling */
.article-prose { max-width: none; font-size: 16px; }
.article-prose h2 { font-size: 22px !important; font-weight: 700 !important; color: #1d1d1f; letter-spacing: -0.01em; margin-top: 2rem !important; margin-bottom: 0.75rem !important; display: block !important; }
.article-prose h3 { font-size: 18px !important; font-weight: 600 !important; color: #1d1d1f; margin-top: 1.5rem !important; margin-bottom: 0.5rem !important; display: block !important; }
.article-prose p { color: #3a3a3c; line-height: 1.75 !important; margin-bottom: 1rem !important; display: block !important; }
.article-prose li { color: #3a3a3c; line-height: 1.65; }
.article-prose ul, .article-prose ol { padding-left: 1.5rem !important; margin-bottom: 1rem !important; }
.article-prose ul { list-style: disc !important; }
.article-prose ol { list-style: decimal !important; }
.article-prose strong { color: #1d1d1f; font-weight: 600; }
.article-prose blockquote { border-left: 3px solid #0050a0; padding-left: 1rem; color: #6e6e73; font-style: italic; margin: 1.5rem 0 !important; }
.article-prose a { color: #0050a0; font-weight: 500; text-decoration: none; }
.article-prose a:hover { text-decoration: underline; }
.article-prose img { border-radius: 0.75rem; border: 1px solid #e5e5e7; max-width: 100%; height: auto; margin: 1rem 0; }
.article-prose table { font-size: 14px; width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-prose th { background: #f8f8fa; border-bottom: 2px solid #e5e5e7; padding: 0.5rem 0.75rem; text-align: left; font-weight: 600; }
.article-prose td { border-bottom: 1px solid #f0f0f2; padding: 0.5rem 0.75rem; }
.article-prose figure { margin: 1.5rem 0; }
.article-prose figcaption { font-size: 13px; color: #86868b; text-align: center; margin-top: 0.5rem; }
.article-prose iframe { max-width: 100%; border-radius: 0.75rem; }

/* Print styles */
@media print {
  body { background: white; color: black; }
  nav, .no-print, button { display: none !important; }
}

/* Video player (if needed) */
#video-player-container { position: fixed; z-index: 10; right: 10px; bottom: 60px; width: 250px; height: 215px; }

/* ═══════════════════════════════════════════════════════════════════════════
   PITCHER TOOL  (pt- prefixed, self-contained)
   ═══════════════════════════════════════════════════════════════════════════ */

.pitcher-tool {
  --pt-accent: #0050A0;
  --pt-accent-md: #004080;
  --pt-accent-dim: rgba(0,80,160,.10);
  --pt-accent-glow: rgba(0,80,160,.22);
  --pt-accent-lt: rgba(0,80,160,.06);
  --pt-gold: #FFD166;
  --pt-gold-dim: rgba(255,209,102,.18);
  --pt-red: #C62828;
  --pt-red-dim: #FFEBEE;
  --pt-green: #16A34A;
  --pt-green-dim: rgba(22,163,74,.10);
  --pt-bg: #F8F9FA;
  --pt-bg3: #F1F3F5;
  --pt-surface: #FFFFFF;
  --pt-bdr: #E2E5EA;
  --pt-bdr-lt: #EEF0F2;
  --pt-txt: #111827;
  --pt-txt2: #4B5563;
  --pt-muted: #6B7280;
  --pt-muted-lt: #D1D5DB;
  --pt-radius-xs: 4px;
  --pt-radius-sm: 8px;
  --pt-radius: 10px;
  --pt-radius-lg: 14px;
  --pt-shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --pt-shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --pt-shadow: 0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --pt-shadow-lg: 0 12px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  --pt-col-day: 62px;
  --pt-col-stat: 44px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pt-txt);
}

/* Buttons */
.pt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 32px; border-radius: var(--pt-radius-sm); border: 1px solid transparent; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; letter-spacing: .01em; }
.pt-btn:disabled { opacity: .4; cursor: not-allowed; }
.pt-btn-ghost { background: var(--pt-surface); border-color: var(--pt-bdr); color: var(--pt-txt2); }
.pt-btn-ghost:hover:not(:disabled) { background: var(--pt-bg3); color: var(--pt-txt); }
.pt-btn-primary { background: var(--pt-accent); border-color: var(--pt-accent); color: #fff; box-shadow: var(--pt-shadow-xs); }
.pt-btn-primary:hover:not(:disabled) { background: var(--pt-accent-md); }
.pt-btn-sm { height: 28px; padding: 0 10px; font-size: .75rem; }

/* Control bar */
.pt-control-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pt-bdr); margin-bottom: 0; }
.pt-control-left, .pt-control-right { display: flex; align-items: center; gap: 10px; }
.pt-control-left { flex-shrink: 0; }
.pt-control-right { flex-shrink: 1; min-width: 0; }

/* Mode toggle */
.pt-mode-toggle { display: flex; align-items: center; flex-shrink: 0; }
.pt-mode-btn { height: 28px; padding: 0 12px; border: 1px solid var(--pt-bdr); background: transparent; color: var(--pt-txt2); font-size: .75rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; line-height: 1; }
.pt-mode-btn:first-child { border-radius: 6px 0 0 6px; border-right: none; }
.pt-mode-btn:last-child { border-radius: 0 6px 6px 0; }
.pt-mode-btn:hover { color: var(--pt-txt); background: var(--pt-bg3); }
.pt-mode-btn.active { background: var(--pt-accent); color: #fff; border-color: var(--pt-accent); }

/* Week nav */
.pt-week-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pt-week-btn { width: 24px; height: 24px; border: 1px solid var(--pt-bdr); border-radius: var(--pt-radius-xs); background: var(--pt-surface); color: var(--pt-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.pt-week-btn:hover { background: var(--pt-bg3); color: var(--pt-txt); }
.pt-week-btn:disabled { opacity: .3; cursor: not-allowed; }
.pt-week-label-wrap { display: flex; flex-direction: column; align-items: center; min-width: 100px; }
.pt-week-badge { display: inline-block; background: var(--pt-accent); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; line-height: 1.4; }
.pt-week-dates { font-size: .62rem; color: var(--pt-muted); margin-top: 2px; }

/* Platform tabs */
.pt-platform-tabs { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.pt-ptab { padding: 5px 10px; border: none; border-bottom: 2px solid transparent; font-size: .78rem; font-weight: 500; color: var(--pt-muted); background: transparent; cursor: pointer; border-radius: var(--pt-radius-xs) var(--pt-radius-xs) 0 0; transition: color .15s, border-color .15s, background .15s; white-space: nowrap; }
.pt-ptab:hover { color: var(--pt-txt2); background: var(--pt-bg3); }
.pt-ptab.active { color: var(--pt-accent); border-bottom-color: var(--pt-accent); font-weight: 700; background: var(--pt-accent-lt); }

/* Search */
.pt-search-wrap { position: relative; display: flex; align-items: center; }
.pt-search-icon { position: absolute; left: 9px; color: var(--pt-muted); pointer-events: none; }
.pt-search-input { height: 30px; border: 1px solid var(--pt-bdr); border-radius: var(--pt-radius-sm); padding: 0 10px 0 30px; width: 160px; font-size: .8rem; background: var(--pt-surface); color: var(--pt-txt); transition: border-color .15s, box-shadow .15s; }
.pt-search-input::placeholder { color: var(--pt-muted); }
.pt-search-input:focus { outline: none; border-color: var(--pt-accent); box-shadow: 0 0 0 2px var(--pt-accent-dim); width: 200px; }

/* Sort select */
.pt-sort-select { height: 30px; border: 1px solid var(--pt-bdr); border-radius: var(--pt-radius-sm); padding: 0 24px 0 8px; background: var(--pt-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(75%2C85%2C99%2C.55)'/%3E%3C/svg%3E") no-repeat right 7px center; appearance: none; -webkit-appearance: none; font-size: .78rem; color: var(--pt-txt); cursor: pointer; }
.pt-sort-select:focus { outline: 2px solid var(--pt-accent); outline-offset: 1px; }

/* Icon buttons */
.pt-action-icons { display: flex; align-items: center; gap: 4px; }
.pt-btn-icon { position: relative; width: 30px; height: 30px; border: 1px solid var(--pt-bdr); border-radius: var(--pt-radius-xs); background: var(--pt-surface); color: var(--pt-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s; flex-shrink: 0; }
.pt-btn-icon:hover:not(:disabled) { background: var(--pt-bg3); color: var(--pt-txt); }
.pt-btn-icon[aria-pressed="true"] { background: var(--pt-accent-dim); border-color: var(--pt-accent); color: var(--pt-accent); }
.pt-btn-szn-label { font-size: .65rem; font-weight: 700; letter-spacing: .3px; line-height: 1; }
.pt-btn-track { height: 30px; padding: 0 12px; font-size: .78rem; }

/* Season avg sub-line */
.pt-szn-avg { display: none; font-size: .7rem; font-style: italic; color: var(--pt-muted); line-height: 1.1; margin-top: 1px; }
.pt-pitcher-table.pt-show-szn-avg .pt-szn-avg { display: block; }

/* Table card */
.pt-table-card { background: var(--pt-surface); border: 1px solid var(--pt-bdr); border-radius: var(--pt-radius-lg); box-shadow: var(--pt-shadow-sm); margin-top: 0; overflow: hidden; }
.pt-table-scroll { max-height: 75vh; overflow-y: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Pitcher table */
.pt-pitcher-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.pt-pitcher-table thead th { background: #F1F3F5; position: sticky; top: 0; z-index: 10; box-shadow: inset 0 -1px 0 var(--pt-bdr); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pt-muted); padding: 9px 6px; white-space: nowrap; text-align: center; cursor: pointer; user-select: none; transition: color .15s, background .15s; }
.pt-pitcher-table thead th:hover { color: var(--pt-txt2); background: #EEF0F2; }
.pt-pitcher-table thead th.pt-sorted { color: var(--pt-accent); background: #EBF0F8; }
.pt-pitcher-table thead th.pt-sorted::after { content: ' \2191'; font-size: .65rem; }

/* Column widths */
.pt-col-check { width: 32px; text-align: center; }
.pt-col-name { width: 140px; }
.pt-col-team { width: 56px; text-align: center; }
.pt-col-opp { width: 70px; text-align: center; }
.pt-col-day { width: var(--pt-col-day); text-align: center; }
.pt-col-gs { width: 36px; text-align: center; }
.pt-col-pts { width: 60px; text-align: center; }
.pt-col-stat { width: var(--pt-col-stat); text-align: center; }
.pt-col-roster { width: 54px; text-align: center; }
.pt-col-notes { width: 28px; text-align: center; }

/* Team cell */
.pt-team-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pt-team-logo { width: 24px; height: 24px; border-radius: 4px; flex-shrink: 0; }
.pt-team-abbr { font-size: .65rem; font-weight: 700; color: var(--pt-muted); letter-spacing: .04em; line-height: 1; }

/* Body rows */
.pt-pitcher-table tbody tr { border-bottom: 1px solid var(--pt-bdr-lt); transition: background .12s; cursor: default; }
.pt-pitcher-table tbody tr:last-child { border-bottom: none; }
.pt-pitcher-table tbody tr:hover { background: var(--pt-bg3); }
.pt-pitcher-table tbody tr.pt-selected { background: var(--pt-accent-dim); box-shadow: inset 4px 0 0 var(--pt-accent); }
.pt-pitcher-table tbody td { padding: 9px 6px; vertical-align: middle; white-space: nowrap; }

/* Pitcher name cell */
.pt-pitcher-name-cell { display: flex; align-items: center; gap: 8px; }
.pt-pitcher-info { min-width: 0; }
.pt-pitcher-fullname { font-weight: 600; font-size: .86rem; color: var(--pt-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; display: flex; align-items: center; gap: 4px; }

/* Badges */
.pt-badge-2start { display: inline-flex; align-items: center; padding: 1px 6px; background: var(--pt-gold-dim); color: #916A00; border-radius: 5px; font-size: .62rem; font-weight: 700; margin-left: 5px; vertical-align: middle; }
.pt-badge-projected { display: inline-flex; align-items: center; padding: 1px 6px; background: #e0e7f1; color: #546e8a; border-radius: 5px; font-size: .62rem; font-weight: 600; font-style: italic; margin-left: 5px; vertical-align: middle; }

/* Day cells */
.pt-day-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; }
.pt-day-cell--empty { color: var(--pt-muted-lt); font-size: 1.1rem; }
.pt-day-cell--projected { opacity: .65; font-style: italic; }
.pt-proj-label { font-size: .55rem; font-weight: 600; font-style: italic; color: #546e8a; }
.pt-day-opp { font-size: .66rem; font-weight: 700; color: var(--pt-muted); white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; }
.pt-day-opp.pt-home { color: var(--pt-txt2); }
.pt-pts-badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 7px; font-size: .74rem; font-weight: 700; min-width: 42px; background: var(--pt-bg3); color: var(--pt-txt2); }

/* Stat cells */
.pt-stat-cell { font-size: .83rem; text-align: center; font-variant-numeric: tabular-nums; }
.pitcher-tool .stat-good { color: var(--pt-green); font-weight: 700; background: var(--pt-green-dim); padding: 2px 5px; border-radius: 4px; }
.pitcher-tool .stat-avg { color: var(--pt-txt); }
.pitcher-tool .stat-bad { color: var(--pt-red); font-weight: 600; background: var(--pt-red-dim); padding: 2px 5px; border-radius: 4px; }

/* GS pill */
.pt-gs-pill { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 22px; border-radius: 11px; font-size: .8rem; font-weight: 700; }
.pt-gs-2 { background: var(--pt-gold-dim); color: #916A00; }
.pt-gs-1 { background: var(--pt-accent-dim); color: var(--pt-accent); }
.pt-gs-0 { background: var(--pt-bg3); color: var(--pt-muted); }

/* Weekly total */
.pt-pts-total { font-size: .92rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--pt-txt); }

/* Roster % */
.pt-roster-pct { font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--pt-txt2); font-weight: 500; }
.pt-roster-bar { height: 3px; border-radius: 2px; background: var(--pt-bdr-lt); margin-top: 4px; overflow: hidden; }
.pt-roster-bar-fill { height: 100%; border-radius: 2px; background: var(--pt-accent); transition: width .4s ease; }

/* Checkbox & notes */
.pt-row-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--pt-accent); }
.pt-notes-btn { border: none; background: var(--pt-gold-dim); color: #916A00; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--pt-radius-xs); transition: background .15s, color .15s; margin-left: 4px; vertical-align: middle; flex-shrink: 0; }
.pt-notes-btn svg { width: 12px; height: 12px; }
.pt-notes-btn:hover, .pt-notes-btn.active { background: var(--pt-gold); color: #5C4300; }

/* Expandable notes row */
.pt-notes-expand-row { background: #F5CC3A !important; border-bottom: 2px solid #D4A90A !important; }
.pt-notes-expand-row:hover { background: #F5CC3A !important; }
.pt-notes-expand-cell { padding: 12px 20px 12px 52px !important; white-space: normal !important; word-wrap: break-word; }
.pt-notes-expand-content { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; font-weight: 500; color: #1A1A2E; line-height: 1.6; }
.pt-notes-expand-content span { white-space: normal; word-wrap: break-word; }
.pt-notes-expand-content svg { flex-shrink: 0; color: #1A1A2E; margin-top: 2px; }

/* Day header */
.pt-day-header { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pt-day-header-name { font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pt-day-header-date { font-size: .62rem; font-weight: 500; color: var(--pt-muted); }
.pt-day-header-date.pt-today { color: var(--pt-accent); font-weight: 700; }

/* Preseason columns */
.pt-col-day--preseason .pt-day-header, .pt-col-day--preseason .pt-day-cell { opacity: .35; }
.pt-preseason-label { display: block; color: var(--pt-accent); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; line-height: 1; margin-bottom: 2px; }

/* Skeleton */
#pt-skeleton-loader { padding: 14px; }
.pt-skel-row { background: #E5E7EB; border-radius: 8px; animation: pt-sk-pulse 1.6s ease-in-out infinite; }
@keyframes pt-sk-pulse { 0%,100% { opacity: .45; } 50% { opacity: .85; } }

/* Empty state */
.pt-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 72px 20px; color: var(--pt-muted); text-align: center; }
.pt-empty-state svg { color: var(--pt-muted-lt); }
.pt-empty-state p { font-size: .9rem; }

/* Data note */
.pt-data-note { margin-top: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: .7rem; color: var(--pt-muted); }

/* Advanced stat columns */
.pt-pitcher-table .pt-col-adv { display: none; width: var(--pt-col-stat); text-align: center; white-space: nowrap; padding: 6px 8px; font-size: .82rem; }
.pt-pitcher-table.pt-adv-expanded { table-layout: auto; }
.pt-pitcher-table.pt-adv-expanded .pt-col-adv { display: table-cell; }
.pt-pitcher-table.pt-adv-expanded .pt-col-day { width: 56px; min-width: 48px; }

/* Roster badge */
.pt-roster-badge { position: absolute; top: -5px; right: -5px; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pt-accent); color: #fff; font-size: .6rem; font-weight: 700; line-height: 1; }
.pt-roster-badge:empty { display: none; }

/* Track button in rows */
.pt-track-btn { border: none; background: transparent; color: var(--pt-muted-lt); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--pt-radius-xs); transition: background .15s, color .15s; flex-shrink: 0; }
.pt-track-btn:hover { background: var(--pt-accent-dim); color: var(--pt-accent); }
.pt-track-btn.pt-tracked { color: var(--pt-accent); background: var(--pt-accent-lt); }

/* Tracked row */
.pt-pitcher-table tbody tr.pt-tracked-row { background: var(--pt-accent-lt); box-shadow: inset 5px 0 0 var(--pt-accent); }
.pt-pitcher-table tbody tr.pt-tracked-row:hover { background: var(--pt-accent-dim); }

/* ── Track Pitcher Modal ─────────────────────────────────────────────── */
.pt-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); align-items: center; justify-content: center; z-index: 900; padding: 16px; }
.pt-modal-overlay.pt-is-open { display: flex; animation: pt-modal-fade .18s ease; }
@keyframes pt-modal-fade { from { opacity: 0; } to { opacity: 1; } }

.pt-modal-card { background: var(--pt-surface); border: 1px solid var(--pt-bdr); border-top: 3px solid var(--pt-accent); border-radius: var(--pt-radius-lg); box-shadow: var(--pt-shadow-lg); width: 100%; max-width: 480px; display: flex; flex-direction: column; max-height: 90vh; overflow: hidden; animation: pt-modal-slide .2s ease; }
@keyframes pt-modal-slide { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pt-modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--pt-bdr-lt); flex-shrink: 0; }
.pt-modal-title { font-size: 1rem; font-weight: 700; color: var(--pt-txt); line-height: 1.3; margin-bottom: 3px; }
.pt-modal-desc { font-size: .78rem; color: var(--pt-muted); }
.pt-modal-close { border: none; background: transparent; color: var(--pt-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--pt-radius-xs); flex-shrink: 0; transition: background .15s, color .15s; margin-left: 12px; }
.pt-modal-close:hover { background: var(--pt-bg3); color: var(--pt-txt); }
.pt-modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.pt-modal-footer { padding: 14px 22px; border-top: 1px solid var(--pt-bdr-lt); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* Track input */
.pt-field-label { display: block; font-size: .74rem; font-weight: 700; color: var(--pt-accent); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.pt-track-input-wrap { display: flex; align-items: center; gap: 8px; position: relative; }
.pt-track-input-wrap .pt-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); }
.pt-track-text-input { flex: 1; height: 38px; border: 1px solid var(--pt-bdr); border-radius: var(--pt-radius-sm); padding: 0 12px 0 34px; font: inherit; font-size: .84rem; background: var(--pt-surface); color: var(--pt-txt); transition: border-color .15s, box-shadow .15s; }
.pt-track-text-input::placeholder { color: var(--pt-muted); }
.pt-track-text-input:focus { outline: none; border-color: var(--pt-accent); box-shadow: 0 0 0 3px var(--pt-accent-dim); }
.pt-track-text-input.pt-input-error { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); animation: pt-shake .3s ease; }
@keyframes pt-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Suggestions */
.pt-track-suggestions { border: 1px solid var(--pt-bdr); border-radius: var(--pt-radius-sm); background: var(--pt-surface); box-shadow: var(--pt-shadow-sm); margin-top: 4px; max-height: 180px; overflow-y: auto; display: none; list-style: none; }
.pt-track-suggestions:not(:empty) { display: block; }
.pt-track-suggestion-item { padding: 9px 14px; font-size: .84rem; cursor: pointer; transition: background .12s; color: var(--pt-txt); }
.pt-track-suggestion-item:hover { background: var(--pt-accent-dim); color: var(--pt-accent); }
.pt-track-suggestion-item + .pt-track-suggestion-item { border-top: 1px solid var(--pt-bdr-lt); }

/* Tracked list */
.pt-tracked-section { margin-top: 22px; }
.pt-tracked-section-label { font-size: .74rem; font-weight: 700; color: var(--pt-accent); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.pt-roster-count-label { font-size: .7rem; font-weight: 700; background: var(--pt-accent-dim); border: 1px solid var(--pt-accent); color: var(--pt-accent); border-radius: 10px; padding: 0 7px; line-height: 18px; }
.pt-tracked-list { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.pt-tracked-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--pt-bg3); border: 1px solid var(--pt-bdr-lt); border-left: 3px solid var(--pt-accent); border-radius: var(--pt-radius-sm); font-size: .84rem; color: var(--pt-txt); }
.pt-tracked-item:hover { background: var(--pt-accent-lt); }
.pt-tracked-item-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tracked-remove-btn { border: none; background: transparent; color: var(--pt-muted-lt); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--pt-radius-xs); flex-shrink: 0; transition: background .15s, color .15s; }
.pt-tracked-remove-btn:hover { background: var(--pt-red-dim); color: var(--pt-red); }
.pt-tracked-empty { font-size: .82rem; color: var(--pt-muted); text-align: center; padding: 18px 0 6px; }

/* ── Pitcher Tool Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .pt-control-bar { flex-wrap: wrap; }
  .pt-control-left { width: 100%; }
  .pt-control-right { width: 100%; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .pt-search-input { width: 120px; }
  .pt-search-input:focus { width: 140px; }
  .pt-ptab { padding: 5px 8px; font-size: .73rem; }
  .pt-control-bar { gap: 8px; padding: 8px 0; }
  .pt-control-left { gap: 6px; }
  .pt-control-right { gap: 6px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .pt-table-header { padding: 12px 14px; }
  .pt-table-header-title { font-size: .95rem; }
  .pt-table-header-sub { display: none; }
  .pt-table-header-count { font-size: .7rem; padding: 3px 8px; }
  .pt-control-bar { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0; }
  .pt-control-left { width: 100%; flex-wrap: wrap; gap: 6px; justify-content: center; }
  .pt-control-right { width: 100%; gap: 6px; justify-content: center; flex-wrap: nowrap; }
  .pt-mode-btn { height: 26px; padding: 0 10px; font-size: .72rem; }
  .pt-week-nav { gap: 3px; }
  .pt-week-btn { width: 22px; height: 22px; }
  .pt-week-label-wrap { min-width: 70px; }
  .pt-week-badge { font-size: .58rem; padding: 1px 6px; }
  .pt-week-dates { font-size: .56rem; }
  .pt-platform-tabs { gap: 0; }
  .pt-ptab { padding: 4px 7px; font-size: .68rem; }
  .pt-search-wrap { flex: 1; min-width: 0; }
  .pt-search-input { width: 100%; height: 28px; font-size: .75rem; padding-left: 28px; }
  .pt-search-input:focus { width: 100%; }
  .pt-sort-select { height: 28px; font-size: .72rem; padding: 0 20px 0 6px; flex-shrink: 0; }
  .pt-btn-icon { width: 28px; height: 28px; }
  .pt-btn-track { height: 28px; font-size: 0; gap: 0; padding: 0 8px; flex-shrink: 0; }
  .pt-col-name { width: 120px; }
  .pt-col-team { width: 50px; }
  .pt-pitcher-fullname { font-size: .75rem; }
  .pt-team-logo { width: 18px; height: 18px; }
  .pt-team-abbr { font-size: .55rem; }

  /* Sticky check + name */
  .pt-pitcher-table .pt-col-check, .pt-pitcher-table.pt-adv-expanded .pt-col-check { position: sticky !important; left: 0 !important; z-index: 6; padding: 0 4px 0 8px !important; width: 32px !important; min-width: 32px !important; max-width: 32px !important; }
  .pt-pitcher-table .pt-col-name, .pt-pitcher-table.pt-adv-expanded .pt-col-name { position: sticky !important; left: 32px !important; z-index: 6; padding-left: 2px !important; }
  .pt-pitcher-table thead th.pt-col-check, .pt-pitcher-table thead th.pt-col-name { z-index: 12; background: #F1F3F5 !important; }
  .pt-pitcher-table tbody td.pt-col-check, .pt-pitcher-table tbody td.pt-col-name { background: #FFFFFF !important; }
  .pt-pitcher-table tbody tr.pt-selected td.pt-col-check, .pt-pitcher-table tbody tr.pt-selected td.pt-col-name { background: #EBF0F8 !important; }
  .pt-pitcher-table tbody tr.pt-tracked-row td.pt-col-check, .pt-pitcher-table tbody tr.pt-tracked-row td.pt-col-name { background: #FFF8E1 !important; }
  .pt-pitcher-table tbody tr:hover td.pt-col-check, .pt-pitcher-table tbody tr:hover td.pt-col-name { background: #F5F5F5 !important; }
  .pt-pitcher-table .pt-col-name::after { content: ''; position: absolute; top: 0; right: -6px; bottom: 0; width: 6px; background: linear-gradient(to right, rgba(0,0,0,.08), transparent); pointer-events: none; }
}
