/* v6: pitch type UI enhancement. Uses the existing 2026 leaderboard shell/table classes. */
body.pitch-type-enhanced .leaderboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}
body.pitch-type-enhanced .leaderboard-filter {
  min-width: 138px;
  flex: 0 0 auto;
}
body.pitch-type-enhanced .leaderboard-filter[data-control="columns"] {
  min-width: 210px;
}
body.pitch-type-enhanced .leaderboard-filter[data-control="team"] {
  min-width: 180px;
}
body.pitch-type-enhanced .leaderboard-filter[data-control="rows"] {
  min-width: 128px;
}
body.pitch-type-enhanced .pt-filter-button,
body.pitch-type-enhanced .pt-select {
  appearance: none;
  width: 100%;
  border: 1px solid #d2daea;
  border-radius: 14px;
  background: #fff;
  color: #10264d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 12px 16px;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16,38,77,0.04);
  text-align: left;
}
body.pitch-type-enhanced .pt-filter-button::after {
  content: "▼";
  float: right;
  font-size: 10px;
  color: #5f6d83;
  margin-top: 1px;
}
body.pitch-type-enhanced .pt-filter-button:hover,
body.pitch-type-enhanced .pt-filter-button:focus,
body.pitch-type-enhanced .pt-select:focus {
  outline: none;
  border-color: #4b7ddd;
  box-shadow: 0 0 0 3px rgba(75,125,221,0.16);
}
.pt-floating-menu {
  position: fixed;
  z-index: 2147483000;
  min-width: 230px;
  max-width: min(560px, calc(100vw - 24px));
  max-height: min(460px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid #cbd7eb;
  border-radius: 18px;
  background: #fff;
  color: #17212f;
  box-shadow: 0 24px 60px rgba(16,38,77,0.24);
  padding: 12px;
  box-sizing: border-box;
}
.pt-floating-menu__header {
  display:flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}
.pt-floating-menu__action {
  border: 1px solid rgba(60,104,188,0.28);
  border-radius: 999px;
  background: #fff;
  color: #10264d;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  cursor: pointer;
}
.pt-floating-menu__action:hover { background:#eef4ff; }
.pt-floating-menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px 14px;
}
.pt-floating-menu__row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  min-height: 28px;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 700;
  color: #10264d;
}
.pt-floating-menu__row input { margin-right: 8px; }
.pt-floating-menu__row small { color:#5f6d83; font-weight:800; }
.pt-floating-menu__custom {
  display:flex;
  gap:8px;
  align-items:center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4ebf5;
}
.pt-floating-menu__custom input {
  width: 100%;
  border: 1px solid #d2daea;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  box-sizing:border-box;
}
body.pitch-type-enhanced .leaderboard-table-wrap {
  overflow: auto;
}
body.pitch-type-enhanced .leaderboard-table {
  width: max-content !important;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
body.pitch-type-enhanced .leaderboard-table th,
body.pitch-type-enhanced .leaderboard-table td {
  min-width: 74px;
}
body.pitch-type-enhanced .leaderboard-table th.sticky-player,
body.pitch-type-enhanced .leaderboard-table td.player-cell.sticky-player {
  min-width: 180px;
  width: 180px;
  max-width: 180px;
}
body.pitch-type-enhanced .leaderboard-table td.player-cell.sticky-player,
body.pitch-type-enhanced .leaderboard-table th.sticky-player {
  position: sticky;
  left: 0;
  z-index: 8;
  background: #fff;
  box-shadow: 10px 0 18px rgba(16, 38, 77, 0.08);
}
body.pitch-type-enhanced .leaderboard-table thead th.sticky-player {
  z-index: 12;
  background: #f7f9fd;
}
body.pitch-type-enhanced .leaderboard-table td.is-empty {
  text-align: left;
  color: #5f6d83;
}
@media (max-width: 720px) {
  body.pitch-type-enhanced .leaderboard-filter,
  body.pitch-type-enhanced .leaderboard-filter[data-control="columns"],
  body.pitch-type-enhanced .leaderboard-filter[data-control="team"],
  body.pitch-type-enhanced .leaderboard-filter[data-control="rows"] {
    min-width: min(100%, 280px);
  }
}
