/* Stats-only styles extracted from global stylesheets. Shared homepage styles remain global. */

.bowling-stats-view > .section-heading
{

  margin-bottom: 16px;

}

.bowling-format-tabs
{

  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;

}

.bowling-format-tabs button
{

  padding: 9px 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 700 10px var(--body);
  cursor: pointer;

}

.bowling-format-tabs button.active
{

  color: #07101f;
  background: var(--cyan);
  border-color: var(--cyan);

}

.bowling-breakdown-wrap,
.bowling-innings-wrap
{

  margin: 18px 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;

}

.bowling-stats-view .table-wrap
{

  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;

}

.bowling-stats-view table
{

  min-width: 950px;

}

.bowling-stats-view th,
.bowling-stats-view td
{

  white-space: nowrap;

}

.bowling-stats-view .bowling-wickets-cell
{

  color: var(--cyan);
  font-weight: 800;
  text-align: center;
  background: rgba(124, 229, 242, 0.08);

}

.bowling-stats-view .bowling-best-cell
{

  color: var(--cyan);
  font-weight: 800;

}

.bowling-stats-view .bowling-card-link
{

  color: var(--orange);
  font-weight: 800;

}

:root[data-theme-resolved="light"] .bowling-breakdown-wrap,
:root[data-theme-resolved="light"] .bowling-innings-wrap
{

  background: #fff;
  color: #152235;
  border-color: rgba(18, 35, 55, 0.16);

}

:root[data-theme-resolved="light"] .bowling-format-tabs button
{

  background: #fff;
  color: #34465c;
  border-color: rgba(18, 35, 55, 0.2);

}

:root[data-theme-resolved="light"] .bowling-format-tabs button.active
{

  background: #087e91;
  color: #fff;
  border-color: #087e91;

}

:root[data-theme-resolved="light"] .bowling-stats-view .bowling-wickets-cell
{

  background: #e7f5f7;
  color: #087e91;

}

:root[data-theme-resolved="light"] .bowling-stats-view .bowling-best-cell
{

  color: #087e91;

}

@media (max-width: 760px) {
.bowling-stats-view
{

    padding: 25px 3.5vw !important;
  
}
.bowling-breakdown-wrap,
.bowling-innings-wrap
{

    padding: 9px;
    margin: 12px 0;
  
}
.bowling-format-tabs button
{

    padding: 8px 9px;
    font-size: 9px;
  
}
}

.stats-section .bowling-breakdown-wrap,
.stats-section .bowling-innings-wrap
{

  border-color: var(--line);

}

.stats-section .bowling-stats-view .table-wrap th
{

  background: var(--panel2);
  color: #b9cce6;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 rgba(124, 229, 242, 0.55);

}

.stats-section .bowling-stats-view .table-wrap td
{

  border-bottom: 1px solid var(--line);

}

.stats-section .bowling-stats-view .table-wrap tbody tr:nth-child(even)
{

  background: rgba(124, 229, 242, 0.025);

}

.stats-section .bowling-stats-view .table-wrap tbody tr:hover td
{

  background: rgba(124, 229, 242, 0.065);

}

.stats-section .bowling-stats-view .bowling-wickets-cell,
.stats-section .bowling-stats-view .bowling-best-cell
{

  color: var(--stats-accent);
  background: var(--stats-accent-soft);

}

:root[data-theme-resolved="light"] .stats-section .bowling-breakdown-wrap,
:root[data-theme-resolved="light"] .stats-section .bowling-innings-wrap
{

  background: #fff;

}

:root[data-theme-resolved="light"] .stats-section .bowling-stats-view .table-wrap th
{

  background: #edf3f9;
  color: #34465c;
  box-shadow: inset 0 -2px 0 rgba(8, 126, 145, 0.4);

}

:root[data-theme-resolved="light"]
  .stats-section
  .bowling-stats-view
  .table-wrap
  tbody
  tr:nth-child(even)
{

  background: #f7fafc;

}

:root[data-theme-resolved="light"]
  .stats-section
  .bowling-stats-view
  .table-wrap
  tbody
  tr:hover
  td
{

  background: #eaf5f8;

}

@media (max-width: 600px) {
.stats-section .bowling-stats-view .table-wrap th
{

    padding: 8px 9px;
    font-size: 8px;
  
}
}

.bowling-format-tabs
{

  display: flex;
  flex-wrap: wrap;
  overflow-x: visible;
  overflow-y: visible;
  max-width: 100%;
  white-space: normal;
  align-items: stretch;

}

.bowling-format-tabs button
{

  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;

}

@media (max-width: 600px) {
.bowling-format-tabs
{

    gap: 7px;
    padding: 8px 0 12px;
  
}
.bowling-format-tabs button
{

    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.25;
    min-height: 42px;
  
}
.bowling-format-tabs button[data-bowling-format="T20"]
{

    flex: 1 1 145px;
  
}
}

.bowling-breakdown-wrap,
.bowling-innings-wrap
{

  border-radius: 18px;
  border-color: rgba(169, 194, 229, 0.16);
  background: linear-gradient(145deg, rgba(15, 27, 45, 0.86), rgba(8, 14, 24, 0.82));

}
