/* StatBroadcast Minisite v1 -- Self-contained stats minisite styles */
/* SEC-style reskin. All rules scoped under .sb-statsite to avoid host page  */
/* conflicts. Brand colors are THEME-DRIVEN: every brand color resolves    */
/* through a CSS variable whose default is the SEC navy/gold palette. A     */
/* conference/school theme CSS loaded separately on the page can override   */
/* any --sb-* variable to recolor the whole minisite.                      */

/* Barlow + Barlow Condensed (mirrors the SEC stats site font load) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;1,600&family=Barlow:wght@400;500;600&display=swap');

.sb-statsite {
  /* ---- Brand (override these in a theme CSS to recolor) ---- */
  --sb-bg: var(--primary-color, #002D62);
  --sb-bg-2: var(--primary-color-lighter, color-mix(in srgb, var(--sb-bg) 82%, #ffffff));
  --sb-color: var(--primary-text-color, #ffffff);
  --sb-accent: var(--secondary-color, #F0A500);
  --sb-accent-2: color-mix(in srgb, var(--sb-accent) 60%, #ffffff);
  /* ---- Neutrals / surfaces ---- */
  --sb-surface: #ffffff;       /* card / table surface                      */
  --sb-page-bg: #F2F5FA;       /* light page background (minisite)          */
  --sb-border: #DDE3ED;
  --sb-row-alt: #FAFBFD;       /* zebra striping                            */
  --sb-row-hover: #EEF3FF;     /* row hover                                 */
  --sb-row-hi: #E8F0FE;        /* sorted-column highlight                   */
  --sb-text: #111827;
  --sb-text-muted: #6B7280;
  /* ---- Play-by-play team accents ---- */
  --sb-away-color: #2563eb;
  --sb-home-color: #dc2626;
  /* ---- Shape / type / elevation ---- */
  --sb-radius: 6px;
  --sb-font-c: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sb-font-b: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sb-shadow: 0 1px 4px color-mix(in srgb, var(--sb-bg) 10%, transparent);
  --sb-shadow-md: 0 4px 20px color-mix(in srgb, var(--sb-bg) 16%, transparent);

  font-family: var(--sb-font-b);
  max-width: 900px;
  margin: 0 auto;
  color: var(--sb-text);
  background: var(--sb-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--sb-shadow);
  line-height: 1.5;
  font-size: 14px;
}

/* ---- Loading / Error ---- */
.sb-statsite .sb-loading,
.sb-statsite .sb-error {
  text-align: center;
  padding: 40px 20px;
  color: var(--sb-text-muted);
  font-size: 15px;
}
.sb-statsite .sb-error {
  color: #c0392b;
}

/* ---- Header (single-game / embed brand header) ---- */
.sb-statsite .sb-header {
  background: linear-gradient(135deg, color-mix(in srgb, var(--sb-bg) 55%, #000000) 0%, var(--sb-bg) 50%, var(--sb-bg-2) 100%);
  color: var(--sb-color);
  padding: 20px 24px 12px;
}
.sb-statsite .sb-header-status {
  text-align: center;
  margin-bottom: 10px;
}
.sb-statsite .sb-status-badge {
  display: inline-block;
  font-family: var(--sb-font-c);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
}
.sb-statsite .sb-status-badge.sb-status-final {
  background: rgba(255,255,255,0.22);
}
.sb-statsite .sb-status-badge.sb-status-live {
  background: #e74c3c;
  animation: sb-pulse 2s ease-in-out infinite;
}
@keyframes sb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.sb-statsite .sb-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.sb-statsite .sb-team {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.sb-statsite .sb-team-away {
  text-align: right;
}
.sb-statsite .sb-team-home {
  text-align: left;
}
.sb-statsite .sb-team-name {
  font-family: var(--sb-font-c);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-statsite .sb-team-record {
  font-family: var(--sb-font-c);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.sb-statsite .sb-team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 4px;
}
.sb-statsite .sb-score-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sb-statsite .sb-score-value {
  font-family: var(--sb-font-c);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  min-width: 36px;
  text-align: center;
}
.sb-statsite .sb-score-divider {
  font-family: var(--sb-font-c);
  font-size: 22px;
  opacity: 0.4;
  font-weight: 700;
}
.sb-statsite .sb-venue-info {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 8px;
  line-height: 1.4;
}

/* ---- Linescore ---- */
.sb-statsite .sb-linescore-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px 12px;
}
.sb-statsite .sb-linescore {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 340px;
  table-layout: auto;
}
.sb-statsite .sb-linescore th,
.sb-statsite .sb-linescore td {
  padding: 5px 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}
.sb-statsite .sb-linescore th {
  font-family: var(--sb-font-c);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  font-size: 11px;
}
.sb-statsite .sb-linescore .sb-ls-team {
  text-align: left;
  font-weight: 600;
  min-width: 70px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-statsite .sb-linescore .sb-ls-total {
  font-family: var(--sb-font-c);
  font-weight: 800;
  font-size: 14px;
  background: rgba(255,255,255,0.10);
}

/* =====================================================================
   MINISITE CHROME (full-page minisite). New SEC-aligned components the
   renderer/JS can target. All optional.
   ===================================================================== */

/* Page wrapper (light bg, full minisite) */
.sb-statsite.sb-minisite,
.sb-statsite .sb-minisite {
  max-width: none;
  background: var(--sb-page-bg);
  border-radius: 0;
  box-shadow: none;
}

/* Sticky brand header bar (logo + title + selector) */
.sb-statsite .sb-app-header {
  background: linear-gradient(135deg, color-mix(in srgb, var(--sb-bg) 55%, #000000) 0%, var(--sb-bg) 50%, var(--sb-bg-2) 100%);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.sb-statsite .sb-app-header-in {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.sb-statsite .sb-app-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.sb-statsite .sb-app-title {
  font-family: var(--sb-font-c);
  font-size: 22px;
  font-weight: 800;
  color: var(--sb-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sb-statsite .sb-app-sport {
  color: var(--sb-accent);
}

/* Selectors (year / sport / team) */
.sb-statsite .sb-select {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 14px;
  background: var(--sb-surface);
  color: var(--sb-text);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 6px 28px 6px 10px;
  appearance: none;
  -webkit-appearance: none;
  background-image: 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='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}
.sb-statsite .sb-select:focus {
  outline: none;
  border-color: var(--sb-bg-2);
}
/* Selector variant for the dark brand header */
.sb-statsite .sb-select-dark {
  background-color: rgba(255,255,255,.12);
  color: var(--sb-color);
  border-color: rgba(255,255,255,.25);
  background-image: 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='%23fff'/%3E%3C/svg%3E");
}

.sb-statsite .sb-select option,
.sb-statsite .sb-select-dark option {
  color: var(--sb-text);
  background: var(--sb-surface);
}

/* Scope bar (overall / conference tabs) */
.sb-statsite .sb-scope {
  background: var(--sb-surface);
  border-bottom: 1px solid var(--sb-border);
}
.sb-statsite .sb-scope-in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px 0;
  display: flex;
  gap: 4px;
}
.sb-statsite .sb-scope-btn {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--sb-radius) var(--sb-radius) 0 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sb-text-muted);
  cursor: pointer;
  transition: all .15s;
}
.sb-statsite .sb-scope-btn.sb-scope-active {
  background: var(--sb-page-bg);
  border-color: var(--sb-border);
  border-bottom-color: var(--sb-page-bg);
  color: var(--sb-bg);
}
.sb-statsite .sb-scope-btn:hover:not(.sb-scope-active) {
  color: var(--sb-bg);
}

/* ---- Tab Bar (main nav) ---- */
.sb-statsite .sb-tab-bar {
  display: flex;
  border-bottom: 2px solid var(--sb-border);
  background: var(--sb-surface);
}
.sb-statsite .sb-tab {
  flex: 1;
  text-align: center;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--sb-text-muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--sb-font-b);
  white-space: nowrap;
}
.sb-statsite .sb-tab:hover:not(.sb-tab-active) {
  color: var(--sb-bg);
  background: #f8f9fc;
}
.sb-statsite .sb-tab.sb-tab-active {
  color: var(--sb-bg);
  border-bottom-color: var(--sb-bg);
  font-weight: 600;
}
.sb-statsite .sb-tab-content {
  display: none;
}
.sb-statsite .sb-tab-content.sb-tab-visible {
  display: block;
}

/* Sub-nav (secondary tab row) */
.sb-statsite .sb-subnav {
  background: var(--sb-surface);
  border-bottom: 1px solid var(--sb-border);
  display: none;
}
.sb-statsite .sb-subnav.sb-subnav-visible {
  display: block;
}
.sb-statsite .sb-subnav-in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 24px 0;
  display: flex;
  gap: 2px;
}
.sb-statsite .sb-subnav-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px 9px;
  border: none;
  background: transparent;
  color: var(--sb-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--sb-font-b);
}
.sb-statsite .sb-subnav-tab.sb-subnav-active {
  color: var(--sb-bg-2);
  border-bottom-color: var(--sb-bg-2);
  font-weight: 600;
}
.sb-statsite .sb-subnav-tab:hover:not(.sb-subnav-active) {
  color: var(--sb-bg-2);
}

/* Content area */
.sb-statsite .sb-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

/* Toolbar (search + result count + export buttons) */
.sb-statsite .sb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}
.sb-statsite .sb-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sb-statsite .sb-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-statsite .sb-search {
  font-family: var(--sb-font-b);
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: var(--sb-surface);
  color: var(--sb-text);
  width: 220px;
  max-width: 100%;
  transition: border-color .15s;
}
.sb-statsite .sb-search:focus {
  outline: none;
  border-color: var(--sb-bg-2);
}
.sb-statsite .sb-result-count {
  font-size: 12px;
  color: var(--sb-text-muted);
}
.sb-statsite .sb-export-btn {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--sb-radius);
  border: 1px solid var(--sb-border);
  background: var(--sb-surface);
  color: var(--sb-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sb-statsite .sb-export-btn:hover {
  border-color: var(--sb-bg);
  color: var(--sb-bg);
  background: color-mix(in srgb, var(--sb-bg) 6%, #ffffff);
}
.sb-statsite .sb-export-btn.sb-export-pdf:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: #fff5f5;
}
.sb-statsite .sb-export-btn svg {
  width: 13px;
  height: 13px;
}

/* =====================================================================
   PAGINATION (full-page minisite single-table views only). Rendered
   below a paginated table. Navy/gold via the shared --sb-* vars so a
   conference/school theme recolors it automatically. Small tables get
   no pager bar at all.
   ===================================================================== */
.sb-statsite .sb-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
}
.sb-statsite .sb-pager-info {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-text-muted);
}
.sb-statsite .sb-pager-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-statsite .sb-pager-btn {
  font-family: var(--sb-font-c);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--sb-radius);
  border: 1px solid var(--sb-bg);
  background: var(--sb-bg);
  color: var(--sb-color);
  cursor: pointer;
  transition: all .15s;
}
.sb-statsite .sb-pager-btn:hover:not(:disabled) {
  background: var(--sb-bg-2);
  border-color: var(--sb-bg-2);
}
.sb-statsite .sb-pager-btn:disabled {
  background: var(--sb-surface);
  color: var(--sb-text-muted);
  border-color: var(--sb-border);
  cursor: default;
  opacity: 0.7;
}
.sb-statsite .sb-pager-page {
  font-family: var(--sb-font-c);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sb-bg);
  min-width: 90px;
  text-align: center;
}
.sb-statsite .sb-pager-size {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-statsite .sb-pager-size-label {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sb-text-muted);
}
.sb-statsite .sb-pager-select {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
}

/* =====================================================================
   TABLES
   ===================================================================== */
.sb-statsite .sb-section {
  padding: 0;
}
/* Navy bar section title (card header style, e.g. PBP period / leaders) */
.sb-statsite .sb-section-title {
  font-family: var(--sb-font-c);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: var(--sb-bg);
  color: var(--sb-color);
  margin: 0;
}
/* Inline uppercase title with gold underline (SEC .sec-title) */
.sb-statsite .sb-sec-title {
  font-family: var(--sb-font-c);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sb-bg);
  border-bottom: 2px solid var(--sb-accent);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.sb-statsite .sb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--sb-radius);
  box-shadow: 0 0 0 1px var(--sb-border), var(--sb-shadow);
  background: var(--sb-surface);
}
.sb-statsite .sb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.sb-statsite .sb-table thead {
  background: var(--sb-bg);
}
.sb-statsite .sb-table th {
  background: var(--sb-bg);
  color: var(--sb-color);
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  text-align: right;
  border-right: 1px solid rgba(255,255,255,.07);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  transition: background 0.1s;
}
.sb-statsite .sb-table th:hover {
  background: var(--sb-bg-2);
}
.sb-statsite .sb-table th.sb-col-wide {
  text-align: left;
  min-width: 120px;
}
.sb-statsite .sb-table th.sb-col-string {
  text-align: left;
}
/* Sort indicators -- gold arrows (SEC look) */
.sb-statsite .sb-table th.sb-sort-asc,
.sb-statsite .sb-table th.sb-sort-desc {
  background: var(--sb-bg-2);
}
.sb-statsite .sb-table th.sb-sort-asc::after,
.sb-statsite .sb-table th.sb-sort-desc::after {
  display: inline-block;
  margin-left: 5px;
  font-size: 10px;
  vertical-align: middle;
  color: var(--sb-accent);
}
.sb-statsite .sb-table th.sb-sort-asc::after {
  content: "\25B2";
}
.sb-statsite .sb-table th.sb-sort-desc::after {
  content: "\25BC";
}

.sb-statsite .sb-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid var(--sb-border);
  white-space: nowrap;
}
.sb-statsite .sb-table td.sb-col-wide,
.sb-statsite .sb-table td.sb-col-string {
  text-align: left;
}
/* Sorted-column cell highlight */
.sb-statsite .sb-table td.sb-col-sorted {
  background: var(--sb-row-hi);
}
.sb-statsite .sb-table tbody tr {
  transition: background 0.1s;
}
.sb-statsite .sb-table tbody tr:nth-child(even) {
  background: var(--sb-row-alt);
}
.sb-statsite .sb-table tbody tr:hover {
  background: var(--sb-row-hover);
}
.sb-statsite .sb-table tbody tr:last-child td {
  border-bottom: none;
}
.sb-statsite .sb-table tfoot td {
  font-family: var(--sb-font-c);
  font-weight: 700;
  border-top: 2px solid var(--sb-border);
  border-bottom: none;
  background: #f5f7fb;
}

/* Circular rank badge */
.sb-statsite .sb-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-family: var(--sb-font-c);
  font-size: 10px;
  font-weight: 700;
  background: color-mix(in srgb, var(--sb-bg) 7%, #ffffff);
  color: var(--sb-bg);
}

/* Generic surface card (leaders / results / panels) */
.sb-statsite .sb-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  overflow: hidden;
}

.sb-statsite .sb-table tbody tr.sb-row-game {
  cursor: pointer;
}
.sb-statsite .sb-game-link {
  color: var(--sb-bg-2);
  font-weight: 600;
  text-decoration: none;
}
.sb-statsite .sb-game-link:hover,
.sb-statsite .sb-table tbody tr.sb-row-game:hover .sb-game-link {
  text-decoration: underline;
}
.sb-statsite .sb-game-link:focus-visible,
.sb-statsite .sb-game-back:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}
.sb-statsite .sb-game-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sb-statsite .sb-game-back {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--sb-radius);
  border: 1px solid var(--sb-border);
  background: var(--sb-surface);
  color: var(--sb-bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .15s;
}
.sb-statsite .sb-game-back::before {
  content: "\2190";
}
.sb-statsite .sb-game-back:hover {
  border-color: var(--sb-bg);
  background: var(--sb-row-hover);
}
.sb-statsite .sb-game {
  max-width: 100%;
}
.sb-statsite .sb-game .sb-section {
  margin-bottom: 12px;
}

/* =====================================================================
   TEAM-LOGO CHIP (round logo + name; opens team detail)
   ===================================================================== */
.sb-statsite .sb-t-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px 2px 3px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: inherit;
  vertical-align: middle;
}
.sb-statsite .sb-t-chip:hover {
  background: color-mix(in srgb, var(--sb-bg) 7%, transparent);
  color: var(--sb-bg);
}
.sb-statsite .sb-t-chip:hover .sb-t-chip-arr {
  opacity: 1;
  transform: translate(1px,-1px);
}
.sb-statsite .sb-t-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.sb-statsite .sb-t-chip-name {
  white-space: nowrap;
}
.sb-statsite .sb-t-chip-abbr {
  white-space: nowrap;
  display: none;
}
.sb-statsite .sb-t-chip-arr {
  width: 10px;
  height: 10px;
  opacity: .35;
  transition: all .15s;
  flex-shrink: 0;
  margin-left: 1px;
  vertical-align: middle;
}

/* ---- Summaries ---- */
.sb-statsite .sb-summaries {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
}
.sb-statsite .sb-summary-group {
  margin-bottom: 6px;
}
.sb-statsite .sb-summary-team {
  font-family: var(--sb-font-c);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-bg);
  margin-bottom: 2px;
}
.sb-statsite .sb-summary-item {
  color: var(--sb-text);
}
.sb-statsite .sb-summary-label {
  font-weight: 600;
}

/* ---- Glossary panel ---- */
.sb-statsite .sb-glossary {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  padding: 14px 18px;
}
.sb-statsite .sb-glossary-title {
  font-family: var(--sb-font-c);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sb-bg);
  border-bottom: 2px solid var(--sb-accent);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.sb-statsite .sb-glossary-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--sb-border);
}
.sb-statsite .sb-glossary-item:last-child {
  border-bottom: none;
}
.sb-statsite .sb-glossary-term {
  font-family: var(--sb-font-c);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-bg);
  flex-shrink: 0;
  min-width: 60px;
}
.sb-statsite .sb-glossary-def {
  color: var(--sb-text-muted);
}

/* ---- Play-by-Play ---- */
.sb-statsite .sb-pbp {
  max-height: 600px;
  overflow-y: auto;
}
.sb-statsite .sb-pbp-period {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--sb-bg);
  color: var(--sb-color);
  font-family: var(--sb-font-c);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
}
.sb-statsite .sb-pbp-play {
  padding: 8px 16px;
  border-bottom: 1px solid #f0f2f8;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.1s;
}
.sb-statsite .sb-pbp-play:hover {
  background: var(--sb-row-hover);
}
.sb-statsite .sb-pbp-play.sb-pbp-team-away {
  border-left: 3px solid var(--sb-away-color);
}
.sb-statsite .sb-pbp-play.sb-pbp-team-home {
  border-left: 3px solid var(--sb-home-color);
}
.sb-statsite .sb-pbp-play.sb-pbp-summary {
  font-style: italic;
  font-size: 12px;
  color: var(--sb-text-muted);
  background: #fafbfd;
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: transparent;
}
.sb-statsite .sb-pbp-desc {
  flex: 1;
}
.sb-statsite .sb-pbp-outs {
  font-family: var(--sb-font-c);
  font-size: 11px;
  font-weight: 600;
  color: var(--sb-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Footer / Branding ---- */
.sb-statsite .sb-footer {
  text-align: center;
  padding: 8px 16px;
  font-size: 11px;
  color: var(--sb-text-muted);
  border-top: 1px solid var(--sb-border);
  background: #fafbfd;
}
.sb-statsite .sb-footer a {
  color: var(--sb-text-muted);
  text-decoration: none;
}
.sb-statsite .sb-footer a:hover {
  text-decoration: underline;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  /* Swap team-chip full names for short codes on tablet widths */
  .sb-statsite .sb-t-chip-name { display: none; }
  .sb-statsite .sb-t-chip-abbr { display: inline; }
}

@media (max-width: 600px) {
  .sb-statsite {
    font-size: 13px;
    border-radius: 0;
  }
  .sb-statsite .sb-header {
    padding: 14px 12px 8px;
  }
  .sb-statsite .sb-app-header { padding: 0 12px; }
  .sb-statsite .sb-app-header-in { height: 48px; }
  .sb-statsite .sb-scope-in,
  .sb-statsite .sb-subnav-in { padding-left: 12px; padding-right: 12px; }
  .sb-statsite .sb-content { padding: 12px; }
  .sb-statsite .sb-team-name {
    font-size: 15px;
  }
  .sb-statsite .sb-score-value {
    font-size: 30px;
  }
  .sb-statsite .sb-linescore-wrap {
    margin: 0 -12px;
    padding: 0 12px 8px;
  }
  .sb-statsite .sb-linescore {
    font-size: 11px;
  }
  .sb-statsite .sb-table {
    font-size: 12px;
  }
  .sb-statsite .sb-table th,
  .sb-statsite .sb-table td {
    padding: 6px 8px;
  }
  .sb-statsite .sb-pbp-play {
    padding: 6px 10px;
    font-size: 12px;
  }
  .sb-statsite .sb-section-title {
    font-size: 13px;
    padding: 8px 12px;
  }
  /* Main-nav / sub-nav become horizontally scrollable on phones */
  .sb-statsite .sb-tab-bar,
  .sb-statsite .sb-subnav-in {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
  }
  .sb-statsite .sb-tab-bar::-webkit-scrollbar,
  .sb-statsite .sb-subnav-in::-webkit-scrollbar { display: none; }
  .sb-statsite .sb-search { width: 100%; }
}

.sb-statsite .sb-team-back {
  background: var(--sb-surface);
  border-bottom: 1px solid var(--sb-border);
}
.sb-statsite .sb-team-back-in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 24px;
}
.sb-statsite .sb-team-back-btn {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  max-width: 100%;
  padding: 6px 13px;
  border-radius: var(--sb-radius);
  border: 1px solid var(--sb-border);
  background: var(--sb-surface);
  color: var(--sb-bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .15s;
}
.sb-statsite .sb-team-back-btn::before {
  content: "\2190";
}
.sb-statsite .sb-team-back-btn:hover {
  border-color: var(--sb-bg);
  background: var(--sb-row-hover);
}
.sb-statsite .sb-team-back-btn:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}
.sb-statsite .sb-pbp-time {
  font-family: var(--sb-font-c);
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 44px;
}
@media (max-width: 600px) {
  .sb-statsite .sb-team-back-in { padding-left: 12px; padding-right: 12px; }
}
.sb-statsite .sb-min {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.sb-statsite .sb-min-label {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sb-text-muted);
}
.sb-statsite .sb-min-col {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
}
.sb-statsite .sb-min-value {
  font-family: var(--sb-font-b);
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: var(--sb-surface);
  color: var(--sb-text);
  width: 64px;
  box-sizing: border-box;
}
.sb-statsite .sb-min-value:focus {
  outline: none;
  border-color: var(--sb-bg-2);
}
.sb-statsite .sb-min-active .sb-min-value {
  border-color: var(--sb-bg);
}
.sb-statsite .sb-min-status {
  font-size: 12px;
  color: var(--sb-text);
  font-weight: 600;
}
.sb-statsite .sb-min-status:empty {
  display: none;
}
.sb-statsite .sb-min-clear {
  font-family: var(--sb-font-c);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--sb-radius);
  border: 1px solid var(--sb-border);
  background: var(--sb-surface);
  color: var(--sb-text-muted);
  cursor: pointer;
}
.sb-statsite .sb-min-clear:hover {
  border-color: var(--sb-bg);
  background: var(--sb-row-hover);
}
.sb-statsite .sb-min-col:focus-visible,
.sb-statsite .sb-min-value:focus-visible,
.sb-statsite .sb-min-clear:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .sb-statsite .sb-min { width: 100%; }
}
.sb-statsite .sb-player-link {
  color: var(--sb-bg-2);
  font-weight: 600;
  text-decoration: none;
}
.sb-statsite .sb-player-link:hover {
  text-decoration: underline;
}
.sb-statsite .sb-player-link:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}
.sb-statsite .sb-player-view {
  max-width: 100%;
  min-width: 0;
}
.sb-statsite .sb-player-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-left: 4px solid var(--sb-accent);
}
.sb-statsite .sb-player-name {
  font-family: var(--sb-font-c);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--sb-bg);
  min-width: 0;
  overflow-wrap: anywhere;
}
.sb-statsite .sb-player-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  font-family: var(--sb-font-c);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-text-muted);
}
.sb-statsite .sb-player-meta .sb-t-chip {
  cursor: default;
  color: var(--sb-text);
  text-transform: none;
  letter-spacing: 0;
}
.sb-statsite .sb-player-meta .sb-t-chip-arr {
  display: none;
}
.sb-statsite .sb-player-block {
  margin-bottom: 22px;
  min-width: 0;
}
.sb-statsite .sb-player-block .sb-pager {
  margin-top: 10px;
}
.sb-statsite .sb-table tbody tr.sb-player-row-season td {
  color: var(--sb-text-muted);
}
.sb-statsite .sb-table tbody tr.sb-player-row-total td {
  font-weight: 700;
}
.sb-statsite .sb-table tbody tr.sb-player-row-current {
  background: var(--sb-row-hi);
}
.sb-statsite .sb-table tbody tr.sb-player-row-current td {
  font-weight: 700;
  color: var(--sb-text);
}
.sb-statsite .sb-table tbody tr.sb-player-row-current td:first-child {
  box-shadow: inset 4px 0 0 var(--sb-accent);
}
.sb-statsite .sb-player-league-mark {
  margin-left: 3px;
  font-weight: 700;
  color: var(--sb-bg-2);
}
.sb-statsite .sb-player-legend {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sb-text-muted);
}
.sb-statsite .sb-player-note {
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--sb-text-muted);
  background: var(--sb-surface);
  border: 1px dashed var(--sb-border);
  border-radius: var(--sb-radius);
}
.sb-statsite .sb-pbp-play.sb-pbp-made .sb-pbp-desc {
  font-weight: 700;
}
.sb-statsite .sb-pbp-play.sb-pbp-timeout,
.sb-statsite .sb-pbp-play.sb-pbp-comment {
  font-style: italic;
  color: var(--sb-text-muted);
  background: var(--sb-row-alt);
}
.sb-statsite .sb-pbp-score {
  font-family: var(--sb-font-c);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  color: var(--sb-text);
}
.sb-statsite .sb-pbp-margin {
  display: inline-block;
  min-width: 30px;
  margin-left: 8px;
  font-weight: 600;
  color: var(--sb-text-muted);
}
@media (max-width: 600px) {
  .sb-statsite .sb-player-head { padding: 12px; }
  .sb-statsite .sb-player-name { font-size: 22px; }
  .sb-statsite .sb-pbp-margin { min-width: 24px; margin-left: 5px; }
}
