/* MOVE Coach — Pitch data (pitchdata.js, 2026-10-20): a pitch tracker's CSV paired with the
   team's catches. Light or dark from shell.css's tokens. Loaded after shell.css. */

.pd-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 36px 20px; border: 1.5px dashed var(--line-hi); border-radius: var(--r-card, 16px);
  background: var(--surface); cursor: pointer; margin-bottom: 18px;
}
.pd-drop:hover, .pd-drop.over { border-color: var(--cyan); background: var(--tint-soft); }
.pd-drop:focus-within { outline: 3px solid rgba(0,220,250,.5); outline-offset: 1px; }
.pd-drop .btn { margin-top: 6px; }
.pd-drop-ic {
  width: 44px; height: 44px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: var(--cyan); background: var(--tint-soft);
}
.pd-err { margin-bottom: 14px; }
.pd-pad { padding: 4px 18px 14px; }

.pd-saved { display: flex; flex-direction: column; gap: 10px; }
.pd-imp { padding: 0; overflow: hidden; }
.pd-imp > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.pd-imp > summary::-webkit-details-marker { display: none; }
.pd-imp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-imp-t b { overflow-wrap: anywhere; }
.pd-imp-foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: .5px solid var(--line); }
.pd-types td:first-child { display: flex; align-items: center; gap: 8px; }

.pd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; margin-right: 7px; vertical-align: 1px; }
.pd-types .pd-dot { margin-right: 0; }

.pd-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.pd-file-t { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-file-t b { overflow-wrap: anywhere; }
.pd-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }

.pd-result { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.pd-big { font-size: 17px; color: var(--muted); font-weight: 600; }
.pd-big b { font-family: var(--sf-rounded); font-size: 30px; font-weight: 700; color: var(--text); }
.pd-grow { flex: 1; }
.pd-adjust { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 12px; border-top: .5px solid var(--line); }
.pd-off { font-family: var(--sf-rounded); color: var(--text); }
.pd-nudge { display: inline-flex; gap: 6px; }

.pd-list { padding: 0; overflow: hidden; margin-bottom: 84px; }
.pd-list-h { padding: 12px 14px; border-bottom: .5px solid var(--line); }
.pd-list .table-wrap { max-height: 60vh; overflow: auto; }
.pd-rows th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pd-rows td, .pd-rows th { padding: 8px 14px; }
.pd-rows td { font-variant-numeric: tabular-nums; }
.pd-st { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.pd-extra td { color: var(--muted); }

.pd-foot {
  position: sticky; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--material-thick); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: .5px solid var(--line-hi); border-radius: 16px; padding: 10px 12px 10px 18px; margin-top: -70px;
}
@media (max-width: 760px) { .pd-foot { bottom: 76px; } }

/* A pitch's catch: opens the catch viewer (video / 3D path / both). */
.pd-open { padding: 0; border: 0; background: none; color: var(--cyan); font: inherit; cursor: pointer; text-align: left; }
.pd-open:hover { text-decoration: underline; }

/* Zone chart (pitchzone.js, 2026-10-30): the bullpen from the mound, the legend and a tapped
   pitch's card beside it; stacked on a narrow screen. */
.pd-zone { margin-bottom: 14px; }
.pd-zone-in { padding: 4px 18px 14px; margin: 0; }
.pz { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; }
.pz-fig { margin: 0; flex: 0 1 300px; min-width: 220px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pz-svg { width: 100%; height: auto; display: block; }
.pz-zone { fill: var(--tint-soft); stroke: var(--text); stroke-opacity: .55; stroke-width: 1.5; }
.pz-grid line { stroke: var(--text); stroke-opacity: .18; stroke-width: 1; }
.pz-plate { fill: var(--surface); stroke: var(--text); stroke-opacity: .45; stroke-width: 1.2; }
.pz-miss { opacity: .28; }
.pz-dot { cursor: pointer; outline: none; }
.pz-hit { fill: transparent; }
.pz-dot:hover .pz-ball, .pz-dot:focus-visible .pz-ball { stroke: var(--text); stroke-width: 2; }
.pz-dot.on .pz-ball { stroke: var(--cyan); stroke-width: 3; }
.pz-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pz-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.pz-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.pz-kinds { color: var(--muted); }
.pz-key { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); display: inline-block; flex: none; }
.pz-key.ring { background: none; border: 2px solid var(--muted); width: 10px; height: 10px; box-sizing: border-box; }
.pz-key.faint { opacity: .35; }
.pz-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border: .5px solid var(--line-hi); border-radius: 12px; background: var(--surface); }
.pz-card .mtiles { width: 100%; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.pz-card .mk { white-space: normal; }
.pz-card-h { display: flex; align-items: center; gap: 4px; width: 100%; }
.pz-card-h b { flex: 1; min-width: 0; }
.pz-x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.pz-none { margin: 0 0 14px; }
