/* ==========================================================
   v179.9.66 — MOBILE STATS TABLE FIT
   Geometry-only correction for the five-column Baserunning
   and Fielding detail tables. Narrow stat sets now consume the
   full team-card width instead of stopping at mobile intrinsic
   width. Batting / Pitching keep their horizontal-scroll model.
   Theme-neutral: Default, Generic and Wrigley inherit this fit.
   ========================================================== */

/* Keep the split table tied to the full width of its stats card. */
.v163-stats-page .v164-split{
  width:100%!important;
  min-width:0!important;
}
.v163-stats-page .v164-stat-scroll{
  width:100%!important;
  min-width:0!important;
}

/* Baserunning + Fielding each have five stat columns. Those sets fit on
   phone screens, so distribute them evenly through all remaining width.
   Larger Batting / Pitching sets are intentionally untouched and continue
   to use their existing horizontally scrollable fixed/minimum tracks. */
.v163-stats-page .v164-stat-grid[style*="--v163-cols:5"]{
  width:100%!important;
  min-width:100%!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
.v163-stats-page .v164-stat-grid[style*="--v163-cols:5"] .v163-stat-head,
.v163-stats-page .v164-stat-grid[style*="--v163-cols:5"] .v163-stat-cell{
  width:auto!important;
  min-width:0!important;
}

/* Give player/position identity a little more room on phones without
   sacrificing the five numeric columns. This also keeps team-total labels
   and short baseball identities from looking squeezed. */
@media(max-width:430px){
  .v163-stats-page .v164-split{
    grid-template-columns:126px minmax(0,1fr)!important;
  }
  .v163-stats-page .v163-id-row.is-empty b{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.18!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
  }
}
@media(max-width:365px){
  .v163-stats-page .v164-split{
    grid-template-columns:116px minmax(0,1fr)!important;
  }
}
