.pb-gamelog {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  --pb-gamelog-date: 72px;
  --pb-gamelog-opponent: 84px;
  --pb-gamelog-score: 70px;
  --pb-gamelog-shot-width: 90px;
  --pb-gamelog-stat-width: 53px;
  --pb-gamelog-fp-width: 53px;
}

:is([data-pb-gamelog-view="matches"], [data-pb-gamelog-view="trends"]) > :not(.pb-gamelog) {
  display: none !important;
}

.pb-gamelog__menu {
  --pb-menu-count: 3;
  margin: 0 0 16px;
}

.pb-gamelog [hidden] {
  display: none !important;
}

.pb-gamelog__heading {
  margin-block: 0 16px;
}

.pb-gamelog__league-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pb-gamelog__league-heading .pb-component-heading__logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  inline-size: 46px;
}

.pb-gamelog__league-heading img {
  object-fit: contain;
}

.pb-gamelog .pb-standings__team-city {
  text-transform: none;
}

.pb-gamelog__status {
  margin: 12px 0;
}

.pb-gamelog .pb-gamelog__status.is-summary {
  margin: 4px 0 0;
  color: var(--secondary-semi-dark, #4d6659);
  font-size: 11px;
  line-height: 1.35;
  text-align: end;
}

.pb-gamelog .pb-gamelog__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  margin-bottom: 0;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table {
  --pb-profile-season-w: var(--pb-gamelog-date);
  --pb-profile-team-w: var(--pb-gamelog-opponent);
  --pb-profile-metric-w: var(--pb-gamelog-stat-width);
  min-inline-size: 1110px !important;
}

.pb-gamelog .pb-gamelog__table col { width: var(--pb-gamelog-stat-width); }
.pb-gamelog .pb-gamelog__table col:nth-child(1) { width: var(--pb-gamelog-date); }
.pb-gamelog .pb-gamelog__table col:nth-child(2) { width: var(--pb-gamelog-opponent); }
.pb-gamelog .pb-gamelog__table col:nth-child(3) { width: var(--pb-gamelog-score); }
.pb-gamelog .pb-gamelog__table col.pb-gamelog__points { width: 58px; }
.pb-gamelog .pb-gamelog__table col.pb-gamelog__shooting-column { width: var(--pb-gamelog-shot-width); }
.pb-gamelog .pb-gamelog__table col.pb-gamelog__fp { width: var(--pb-gamelog-fp-width); }

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table :is(thead, tbody) :is(th, td):nth-child(2) {
  inset-inline-start: var(--pb-gamelog-pin-second, var(--pb-gamelog-date));
  text-align: center !important;
  box-shadow: none;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table :is(thead, tbody) :is(th, td):nth-child(3) {
  position: sticky !important;
  inset-inline-start: var(--pb-gamelog-pin-third, calc(var(--pb-gamelog-date) + var(--pb-gamelog-opponent)));
  inline-size: var(--pb-gamelog-score) !important;
  min-inline-size: var(--pb-gamelog-score) !important;
  max-inline-size: var(--pb-gamelog-score) !important;
  box-shadow: var(--pb-profile-pin-shadow);
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table thead th:nth-child(3) { z-index: 6; }
.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table tbody td:nth-child(3) { z-index: 2; }

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table :is(th, td).pb-gamelog__shooting-column {
  inline-size: var(--pb-gamelog-shot-width) !important;
  min-inline-size: var(--pb-gamelog-shot-width) !important;
  max-inline-size: none !important;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table :is(th, td).pb-gamelog__fp {
  inline-size: var(--pb-gamelog-fp-width) !important;
  min-inline-size: var(--pb-gamelog-fp-width) !important;
  max-inline-size: none !important;
}

.pb-gamelog__opponent .pb-standings__team-link {
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.pb-gamelog__opponent {
  overflow: hidden;
}

.pb-gamelog__opponent .pb-standings__logo {
  flex-shrink: 0;
}

.pb-gamelog .pb-gamelog__table .pb-gamelog__score {
  font-weight: 700;
}

.pb-gamelog__result {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.pb-gamelog__score-margin {
  display: inline-block;
  min-inline-size: 26px;
  padding: 2px 4px;
  border-radius: 4px;
  text-align: center;
  font: 600 10px/1.1 Oswald, "Roboto Condensed", sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pb-gamelog__score-margin.is-win {
  background: var(--accent-ultra-light, #ecf2fa);
  color: var(--accent-dark, #1f355f);
}

.pb-gamelog__score-margin.is-loss {
  background: var(--danger-ultra-light, #fce9e9);
  color: var(--danger-semi-dark, #a40e0e);
}

.pb-gamelog .pb-gamelog__table thead th.pb-gamelog__fp {
  color: var(--pb-profile-accent) !important;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table :is(tbody, tfoot) td.pb-gamelog__fp {
  color: var(--danger-semi-dark, #a40e0e) !important;
}

.pb-gamelog .pb-gamelog__table tbody td.pb-gamelog__fp {
  font-weight: 700 !important;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table .pb-gamelog__stat-group-start {
  box-shadow: inset 1px 0 rgba(153, 178, 166, 0.52);
}

.pb-gamelog__shots {
  display: grid;
  grid-template-rows: .8em auto .8em;
  justify-items: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pb-gamelog__shot-count {
  grid-row: 2;
}

.pb-gamelog__percentage {
  grid-row: 3;
  align-self: start;
  color: var(--secondary-semi-dark, #4d6659);
  font-size: min(11px, .75em);
  line-height: 1;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table tfoot tr > td:not(.pb-gamelog__shooting-column, .pb-gamelog__fp) {
  inline-size: auto !important;
  min-inline-size: 0 !important;
  max-inline-size: none !important;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table tfoot tr > td {
  position: static !important;
  inset-inline-start: auto !important;
  box-shadow: none;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table tfoot .pb-gamelog__points {
  text-align: center !important;
}

.pb-gamelog .pb-player-profile-stat-table.pb-gamelog__table .pb-gamelog__average-label {
  inline-size: calc(var(--pb-gamelog-date) + var(--pb-gamelog-opponent) + var(--pb-gamelog-score)) !important;
  min-inline-size: 0 !important;
  max-inline-size: none !important;
  text-align: start !important;
}

.pb-gamelog__average-teams {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.pb-gamelog__average-teams .pb-standings__team-link {
  text-align: start;
}

.pb-gamelog .pb-gamelog__trend-filters .sporto-team-calendar__label,
.pb-gamelog .pb-gamelog__chart-toggle {
  color: var(--secondary, #202a25);
}

.pb-gamelog__trend-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-block: 8px 12px;
}

.pb-gamelog__trend-toolbar .pb-gamelog__status {
  margin: 0;
}


.pb-gamelog__charts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.pb-gamelog__chart-card {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 20px);
  border: 1px solid var(--secondary-light, #dce6df);
  border-radius: var(--radius, 8px);
  background: var(--white, #fff);
  box-shadow: 0 2px 0 var(--secondary-light, #dce6df);
}

.pb-gamelog__game-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  min-height: 44px;
  margin-block-end: 12px;
}

.pb-gamelog .pb-gamelog__chart-card h4 {
  min-width: 0;
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
}

.pb-gamelog .pb-gamelog__game-heading > .pb-gamelog__slider-ui {
  flex: 0 0 auto;
  width: auto;
  background: transparent;
  container-type: normal;
}

.pb-gamelog .pb-gamelog__slider-ui .pb-gamelog__game-controls {
  margin: 0 0 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .pb-gamelog__forward.is-hinted {
    position: relative;
    overflow: hidden;
  }

  .pb-gamelog__forward.is-hinted::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%);
    pointer-events: none;
    content: "";
    animation: pb-site-select-disclosure-sweep 4s ease-in-out 2;
  }
}

.pb-gamelog__chart-content {
  display: grid;
  grid-template-columns: clamp(90px, 9vw, 108px) minmax(0, 1fr);
  align-items: start;
  gap: var(--pb-gamelog-content-gap);
  --pb-gamelog-game-width: clamp(60px, 5.3vw, 69px);
  --pb-gamelog-content-gap: 6px;
  --pb-gamelog-label-height: 60px;
  --pb-gamelog-row-gap: 4px;
  --pb-gamelog-plot-height: 128px;
  --pb-gamelog-mean-y: calc(var(--pb-gamelog-label-height) + var(--pb-gamelog-row-gap) + min(
    var(--pb-gamelog-plot-height) * var(--pb-gamelog-mean-position, 0), var(--pb-gamelog-plot-height) - 1px
  ));
}

.pb-gamelog__chart-summary {
  min-width: 0;
}

.pb-gamelog .pb-gamelog__chart-average {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  min-height: calc(var(--pb-gamelog-label-height) + var(--pb-gamelog-row-gap) + var(--pb-gamelog-plot-height));
  margin: 0;
  padding: 8px 5px;
  border: 0;
  border-radius: var(--radius, 8px);
  background: var(--primary-ultra-light, #edf2e1);
  text-align: center;
  color: var(--primary-ultra-dark, #253019);
}

.pb-gamelog__chart-average .pb-rating-description__metric-label {
  font-size: 11px;
  line-height: 1.12;
}

.pb-gamelog__chart-average .pb-rating-description__metric-value {
  font-size: clamp(21px, 2.5vw, 34px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pb-gamelog__game-rail {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  max-width: 100%;
  scroll-snap-type: inline mandatory;
  overscroll-behavior-inline: contain;
  overflow-x: auto;
  padding-block-end: 5px;
  scrollbar-width: none;
}

.pb-gamelog__game-rail::-webkit-scrollbar { display: none; }

.pb-gamelog__game-rail:focus-visible,
.pb-gamelog__trend-opponent:focus-visible {
  outline: 2px solid var(--action, #f90);
  outline-offset: -2px;
}

.pb-gamelog__game-rail.is-dragging {
  cursor: grabbing;
}


.pb-gamelog__chart-game {
  position: relative;
  display: grid;
  grid-template-rows: var(--pb-gamelog-label-height) var(--pb-gamelog-plot-height) auto auto;
  justify-items: center;
  flex: 0 0 var(--pb-gamelog-game-width);
  min-width: 0;
  gap: var(--pb-gamelog-row-gap);
  scroll-snap-align: start;
  color: var(--secondary, #202a25);
  font-variant-numeric: tabular-nums;
}

.pb-gamelog__chart-content.has-season-average :is(.pb-gamelog__chart-average, .pb-gamelog__chart-game)::before {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  inset-block-start: var(--pb-gamelog-mean-y);
  height: 1px;
  background: var(--secondary, #202a25);
  opacity: .65;
  pointer-events: none;
  content: "";
}

.pb-gamelog__chart-content.has-season-average .pb-gamelog__chart-average::before {
  inset-inline: calc(50% - 9px) calc(-1 * var(--pb-gamelog-content-gap));
}

.pb-gamelog__chart-values {
  display: grid;
  justify-items: center;
  align-content: end;
  align-self: stretch;
  gap: 2px;
  min-width: 0;
  padding-inline: 2px;
  padding-block-end: 5px;
}

.pb-gamelog__chart-value {
  color: var(--primary-ultra-dark, #253019);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.pb-gamelog__chart-attempts {
  color: var(--secondary-semi-dark, #4d6659);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.pb-gamelog__bar-track {
  position: relative;
  overflow: hidden;
  width: min(34px, 68%);
  height: 100%;
  background: var(--primary-ultra-light, #edf2e1);
  border-radius: 5px;
}

.pb-gamelog__bar-track::before {
  position: absolute;
  inset: min(var(--pb-gamelog-zero, 100%), calc(100% - 1px)) 0 auto;
  content: "";
  height: 1px;
  background: var(--secondary-semi-light, #a1aea5);
}

.pb-gamelog__chart-bar {
  position: absolute;
  inset-inline: 0;
  border-radius: 4px;
  background: var(--primary-dark, #485627);
}

.pb-gamelog__chart-bar.is-negative { background: var(--accent-semi-dark, #2a599f); }
.pb-gamelog__chart-bar.is-zero { visibility: hidden; }

.pb-gamelog__chart-card[data-chart="fp"] .pb-gamelog__chart-bar {
  background: var(--accent-semi-dark, #2a599f);
}

.pb-gamelog__chart-game.is-above-average .pb-gamelog__chart-bar {
  background: var(--primary, #9cae62);
}

.pb-gamelog__chart-game.is-above-average .pb-gamelog__chart-bar.is-zero {
  min-height: 2px;
  transform: translateY(-50%);
  visibility: visible;
}

.pb-gamelog__chart-game time {
  font-size: 12px;
  line-height: 1.2;
}

.pb-gamelog__trend-opponent {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--secondary-light, #dce6df);
  border-radius: 5px;
  background: var(--white, #fff);
  cursor: help;
}

.pb-gamelog__trend-opponent img {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .pb-gamelog__charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .pb-gamelog {
    --pb-gamelog-stat-width: clamp(42px, calc((100vw - 724px) / 13), 50px);
    --pb-gamelog-fp-width: 51px;
  }
}

.pb-gamelog__chart-legend {
  display: grid;
  margin-block-start: calc(2 * var(--pb-gamelog-row-gap));
}

.pb-gamelog__chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  padding-inline: 2px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.pb-gamelog__chart-toggle input {
  inline-size: 13px;
  block-size: 13px;
  flex: none;
  margin: 0;
  accent-color: var(--primary-dark, #485627);
}

@media (min-width: 752px) {
  :is(.pb-gamelog__filters, .pb-gamelog__trend-filters),
  :is(.pb-gamelog__filters, .pb-gamelog__trend-filters) > .pb-site-select-drawer__body {
    display: grid;
    grid-template-columns: repeat(var(--pb-gamelog-filter-columns, 3), minmax(0, 1fr));
    gap: 12px;
  }

  .pb-gamelog--multi-competition {
    --pb-gamelog-filter-columns: 4;
  }

  :is(.pb-gamelog__filters, .pb-gamelog__trend-filters) > .pb-site-select-drawer__body {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .pb-gamelog {
    --pb-gamelog-date: 64px;
    --pb-gamelog-opponent: 84px;
    --pb-gamelog-score: 66px;
  }
}

