:root {
  --bg: #f6f8fb;
  --card: #fff;
  --muted: #6b7280;
  --text: #0b0d10;
  --accent: #22c55e;
  --accent-2: #3b82f6;
  --danger: #ef4444;
  --line: #00000014;
  --ring: 0 0 0 1px #0000000a 0 6px 24px #00000014
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  background: transparent
}


body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  padding-top: 35px;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  background: transparent
}

body.loading main,
body.loading header {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none
}

main {
  padding-bottom: 80px
}

.pcard {
  transform-origin: center center
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(/bg.jpg) center / 50% auto repeat;
  opacity: .1
}

.wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  flex: 1
}

#matchCard,
.card {
  width: 100%;
  max-width: 100%
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 35px;
  padding: 0;
  line-height: 0;
  background: #2b2c2d
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  line-height: 0;
  background: #2b2c2d
}

.league-info {
  display: flex;
  align-items: center;
  gap: 6px
}

.league-logo {
  height: 28px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  display: none
}

.league-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: .3px
}

.profile-btn {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer
}

.profile-btn img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 10px
}

.header-logo {
  display: block;
  height: 35px;
  width: auto;
  margin: 0;
  padding: 0
}

.backlink img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(1);
  margin-right: 7px
}

.hh2 {
  font-size: 14px;
  color: #111827;
  margin: 0 0 5px
}

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0;
  background: #2b2c2d;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px)
}

.navitem {
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  transition: color .2s ease
}

.navitem.active {
  color: #69be28;
  font-weight: 600
}

.navitem.active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #024;
  transform: skewX(-20deg);
  transition: transform .2s ease, background .2s ease
}

.navitem.active:hover::before {
  background: #69be28;
  transform: skewX(-20deg) scale(1.03)
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px
}

.brand h1 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .2px
}

.card {
  margin: 0;
  background: var(--card);
  box-shadow: var(--ring)
}

#matchCard {
  position: relative;
  overflow: hidden
}

#matchCard .content {
  position: relative;
  z-index: 2
}

#matchCard .matchbg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .25s ease
}

#matchCard .matchbg.ready {
  opacity: .2
}

#matchCard .matchbg .half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  filter: saturate(115%) contrast(105%) brightness(.98)
}

#matchCard .matchbg .half.left {
  left: 0
}

#matchCard .matchbg .half.right {
  right: 0
}

#matchCard .matchbg .badge {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  bottom: -10px;
  background-repeat: no-repeat;
  background-position: center 28%;
  background-size: 50%;
  opacity: .12;
  filter: grayscale(15%) contrast(115%)
}

#matchCard .matchbg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background: linear-gradient(to bottom, #0000 0%, #0000001a 100%)
}

#matchCard>.matchbg+* {
  position: relative;
  z-index: 1
}

.row-center {
  text-align: center
}

.row-3col,
.row-3col-center {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px
}

.row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px
}

.leaguename {
  font-weight: 700;
  font-size: 12px
}

.vsep {
  font-weight: 700;
  color: var(--muted)
}

.result {
  font-weight: 800;
  font-size: 24px
}

.pbp-made-teamlogo {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  object-fit: contain;
  z-index: 5;
  opacity: .95
}

.pbp-made-teambadge {
  position: absolute;
  top: -20%;
  left: -22%;
  width: 150%;
  height: 150%;
  transform: skewX(20deg);
  object-fit: cover;
  object-position: center;
  display: block
}

.pbp-time-inline-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: auto;
  min-width: 28px;
  font-size: 12px;
  z-index: 6;
  padding-top: 20%;
  line-height: 1;
  padding-left: 17px;
  opacity: .9;
  color: #747679
}

.pbp-made-teambadge-mini {
  position: absolute;
  top: -20%;
  left: -17%;
  width: 140%;
  height: 140%;
  transform: skewX(20deg);
  object-fit: cover;
  object-position: center;
  display: block
}

.pbp-badgewrap-mini {
  position: relative;
  width: 23.8px;
  height: 18.2px;
  overflow: hidden;
  background: #111;
  border: 2px solid #d4af37;
  transform: skewX(-20deg);
  margin-left: 0;
  flex: 0 0 auto;
  pointer-events: none;
  z-index: 6
}

.pbp-badgewrap-mini-sub {
  position: relative;
  width: 34px;
  height: 26px;
  overflow: hidden;
  background: #111;
  border: 2px solid #d4af37;
  transform: skewX(-20deg);
  margin-left: 46%;
  margin-bottom: 12%;
  flex: 0 0 auto;
  pointer-events: none;
  z-index: 6;
  margin-left: 46%;
  margin-bottom: 9px
}

.topbar-inner,
.card .content {
  padding: 0
}

.topbar-left,
.brand {
  display: flex;
  align-items: center;
  gap: 10px
}

@media (min-width: 1024px) {
  .pbp-section {
    padding: 0;
    max-width: 700px
  }

  .pbp-sub-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 9%
  }

  .pbp-badgewrap-mini {
    margin-left: 5%
  }

  .pbp-badgewrap-mini-sub {
    margin-left: 34%;
    width: 34px;
    height: 26px
  }

  .pbp-made-badgewrap {
    position: absolute;
    left: 8px;
    bottom: 6px;
    width: 34px;
    height: 26px;
    overflow: hidden;
    transform: skewX(-20deg);
    z-index: 4;
    pointer-events: none;
    margin-left: 0;
    border: 2px solid transparent;
    background: linear-gradient(#111, #111) padding-box, linear-gradient(135deg, #fff3b0 0%, #d4af37 22%, #b8860b 50%, #d4af37 78%, #fff3b0 100%) border-box
  }

  .pbp-made-bar {
    z-index: 3;
    width: 18%;
    clip-path: polygon(0% 0%, 100% 0%, 69% 100%, 0% 100%)
  }

  .pbp-made-bar-mini {
    width: 12.3%;
    z-index: 3;
    clip-path: polygon(0% 0%, 100% 0%, 79% 100%, 0% 100%)
  }

  .pbp-line {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%
  }

  .pbp-made-photo {
    margin-left: 21%
  }
}

@media (min-width: 720px) {
  .pbp-made-photo {
    margin-left: 21%
  }

  .pbp-section {
    padding: 0;
    max-width: 700px
  }

  .pbp-sub-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 9%
  }

  .pbp-badgewrap-mini {
    margin-left: 5%
  }

  .pbp-badgewrap-mini-sub {
    margin-left: 34%;
    width: 34px;
    height: 26px
  }

  .pbp-made-badgewrap {
    position: absolute;
    left: 8px;
    bottom: 6px;
    width: 34px;
    height: 26px;
    overflow: hidden;
    transform: skewX(-20deg);
    z-index: 4;
    pointer-events: none;
    margin-left: 0;
    border: 2px solid transparent;
    background: linear-gradient(#111, #111) padding-box, linear-gradient(135deg, #fff3b0 0%, #d4af37 22%, #b8860b 50%, #d4af37 78%, #fff3b0 100%) border-box
  }

  .pbp-made-bar {
    z-index: 3;
    width: 18%;
    clip-path: polygon(0% 0%, 100% 0%, 69% 100%, 0% 100%)
  }

  .pbp-made-bar-mini {
    width: 12.3%;
    z-index: 3;
    clip-path: polygon(0% 0%, 100% 0%, 79% 100%, 0% 100%)
  }

  .pbp-who-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 50%
  }

  .pbp-line {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%
  }
}

.pbp-made-bar-mini {
  z-index: 3;
  width: 14.6%;
  clip-path: polygon(0% 0%, 100% 0%, 52% 100%, 0% 100%)
}

.pbp-made-badgewrap {
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 34px;
  height: 26px;
  overflow: hidden;
  transform: skewX(-20deg);
  z-index: 4;
  pointer-events: none;
  margin-left: 1%;
  border: 2px solid transparent;
  background: linear-gradient(#111, #111) padding-box, linear-gradient(135deg, #fff3b0 0%, #d4af37 22%, #b8860b 50%, #d4af37 78%, #fff3b0 100%) border-box
}

.pbp-made-badgewrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #00000073 0%,
      /* darker lower-left */
      #00000040 30%, #0000001a 55%, #ffffff26 80%, #ffffff40 100%
      /* lighter upper-right */
    );
  pointer-events: none
}

.teamlogo,
.team-badge {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle
}

.team-badge.left {
  margin-right: 6px
}

.team-badge.right {
  margin-left: 6px
}

.teamname {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%
}

.teamname2 {
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.scoreboard {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  padding: 12px
}

.sb-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center
}

.sb-team {
  display: flex;
  align-items: center;
  gap: 8px
}

.sb-team.left {
  justify-content: flex-start
}

.sb-team.right {
  justify-content: flex-end
}

.sb-abbr {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .5px
}

.sb-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block
}

.sb-center {
  justify-self: center;
  min-width: 150px;
  padding: 8px 14px;
  text-align: center;
  background: #fff;
  border: 1px solid #00000029;
  border-radius: 8px
}

.sb-period {
  font-weight: 800;
  font-size: 11px;
  color: #0000008c;
  letter-spacing: .6px
}

.sb-clock {
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  margin-top: 2px
}

.sb-mid {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 1px auto 1px minmax(0, 1fr) 18px;
  align-items: center;
  column-gap: 10px
}

.sb-mid>* {
  min-width: 0
}

.sb-score {
  font-weight: 900;
  font-size: 54px;
  line-height: 1;
  margin: 0;
  padding: 0
}

.sb-score.left {
  justify-self: start;
  text-align: left
}

.sb-score.right {
  justify-self: end;
  text-align: right
}

.sb-dots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center
}

.sb-dots.left {
  justify-self: start
}

.sb-dots.right {
  justify-self: end
}

.sb-vline {
  width: 1px;
  height: 64px;
  background: #0000001f;
  justify-self: center
}

.sb-mid-center {
  justify-self: center;
  min-width: 140px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center
}

.sb-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00000024
}

.sb-dot.on.green {
  background: #22c55e
}

.sb-dot.on.red {
  background: #ef4444
}

.sb-lines {
  display: grid;
  gap: 4px;
  padding-top: 2px
}

.sb-line {
  font-size: 11px;
  color: #000000b3;
  text-align: center;
  white-space: nowrap
}

.sb-meta {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #0000001a;
  font-size: 11px;
  color: #000000a6;
  text-align: center
}

.sb-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  line-height: 1.35
}

.sb-meta-sep {
  margin: 0 6px;
  color: #00000040
}

.rheads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 10px 8px
}

.rhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #0000000f;
  border-radius: 10px;
  background: #fff
}

.rhead h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700
}

.rgrid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0 10px 50px
}

.rline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%
}

.playercell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #0000000f;
  border-radius: 10px;
  background: #f8fafc;
  color: inherit;
  transition: background .2s ease, transform .15s ease
}

.playercell:hover {
  background: #eef2ff;
  transform: translateY(-1px)
}

.playercell:active {
  background: #e0e7ff;
  transform: scale(.98)
}

.playercell .pos {
  min-width: 30px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #0000001f;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: #fff
}

.playercell .pname {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.meta {
  font-size: 12px;
  color: var(--muted)
}

.teamcell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px
}

.teamcell-left {
  justify-content: flex-start;
  text-align: left
}

.teamcell-right {
  justify-content: flex-end;
  text-align: right
}

.teamcell .tname {
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #94a3b8;
  border-top-color: transparent;
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.tabs {
  display: flex;
  justify-content: stretch;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  z-index: 1
}

.tab {
  flex: 1;
  position: relative;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 12px;
  color: #fff;
  background: #888;
  border-radius: 0;
  z-index: 1;
  transition: filter .18s ease, background .18s ease, color .18s ease
}

.tab.t1 {
  background: var(--tab1-bg, #1e3a8a)
}

.tab.t2 {
  margin-left: -14px;
  z-index: 2;
  --seam: #00000073;
  background: linear-gradient(135deg, transparent 0 48%, var(--seam) 48% 52%, transparent 52% 100%) left center / 28px 100% no-repeat, var(--tab2-bg, #dc2626)
}

.tab.active {
  filter: brightness(1.15)
}

#teamTabs .tab {
  z-index: 1;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease
}

#teamTabs .tab.active {
  transform: scale(1.03);
  box-shadow: 0 6px 18px #0000001f;
  opacity: 1
}

#teamTabs .tab:not(.active) {
  transform: scale(.98);
  box-shadow: none;
  opacity: .97
}

#teamTabs .tab:active {
  transform: scale(.96)
}

.gmeta {
  font-size: .9rem;
  opacity: .8;
  margin: 0 8px
}

.glist {
  display: flex;
  flex-direction: column;
  gap: 0
}

.pcard {
  background: #0000000a;
  overflow: hidden
}

.phead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  cursor: pointer;
  gap: 0
}

.phead .jersey,
.phead .grade {
  font-weight: 1000;
  min-width: 50px;
  text-align: center;
  font-style: italic;
  font-size: 16px
}

.pcard.open .phead .grade,
.pcard.expanded .phead .grade {
  font-size: 51px;
  padding-top: 17px;
  padding-right: 6px
}

.namechip {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 6px 12px;
  line-height: 1;
  background: var(--name-bg, #2b2c2d);
  color: var(--name-fg, #fff);
  isolation: isolate;
  z-index: 5;
  overflow: visible
}

.namechip .pname {
  position: relative;
  width: 100%;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1
}

.namechip::before,
.namechip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: var(--name-bg, #2b2c2d);
  z-index: -1
}

.namechip::before {
  left: -10px;
  transform: skewX(-18deg)
}

.namechip::after {
  right: -10px;
  transform: skewX(-18deg)
}

.pbody {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height .22s ease, padding .22s ease
}

.pbody.open {
  max-height: 220px;
  padding: 0
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(40px, 48px));
  gap: 8px
}

.stat {
  background: none;
  border-radius: 0;
  padding: 4px;
  text-align: center
}

.stat .label {
  opacity: .7;
  font-size: .8rem
}

.stat .val {
  font-weight: 800;
  font-size: 1.05rem
}

#gradesList.loading {
  position: relative;
  min-height: 120px
}

#gradesList.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border: 3px solid #0000001f;
  border-top-color: #00000080;
  border-radius: 50%;
  animation: sbspin .8s linear infinite
}

@keyframes sbspin {
  to {
    transform: rotate(360deg)
  }
}

.pcard.pre-enter {
  opacity: 0;
  transform: translateX(-24px)
}

.pcard.enter {
  opacity: 1;
  transform: translateX(0);
  transition: transform .38s ease, opacity .38s ease
}

#gradesList,
.pcard,
.pcard .phead,
.pcard .namechip {
  position: relative;
  overflow: visible
}

.pog-badge {
  position: absolute;
  top: -12px;
  left: -10px;
  width: 40px;
  height: 40px;
  pointer-events: none;
  transform-origin: center;
  transform: rotate(-18deg) scale(.2);
  opacity: 0;
  z-index: 6
}

.pog-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

@keyframes pogBadgePop {
  0% {
    transform: rotate(-40deg) scale(.2);
    opacity: 0;
    filter: blur(4px)
  }

  45% {
    transform: rotate(-18deg) scale(1.08);
    opacity: 1;
    filter: blur(0)
  }

  100% {
    transform: rotate(-18deg) scale(1);
    opacity: 1;
    filter: blur(0)
  }
}

.pog-badge.pop {
  animation: pogBadgePop .6s ease forwards
}

.pbp-period-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none
}

.pbp-period-tabs::-webkit-scrollbar {
  display: none
}

.pbp-period-tabs .tab {
  white-space: nowrap
}

.pbp-section {
  padding: 0;
  max-width: 700px
}

.pbp-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px
}

.pbp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent
}

.pbp-logo {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto
}

.pbp-desc {
  font-size: 10px;
  line-height: 1.25;
  opacity: .65
}

.pbp-meta {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  opacity: .7;
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.pbp-score-snap {
  font-weight: 900;
  opacity: .9;
  font-weight: 900;
  font-size: 14px;
  color: #747679
}

.pbp-row-grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #fff
}

.pbp-cell {
  min-width: 0;
  display: flex;
  align-items: center
}

.pbp-row-grid .pbp-card .pbp-card-sub {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0
}

.pbp-time-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: auto;
  min-width: 48px;
  font-size: 12px;
  line-height: 1;
  opacity: .9;
  color: #747679;
  margin-left: -1.5px
}

.pbp-score-inline {
  position: absolute;
  top: 6px;
  right: 8px;
  line-height: 1;
  min-width: 56px;
  text-align: right;
  opacity: .9;
  font-size: 12px;
  color: #747679;
  z-index: 5
}

.pbp-jersey {
  font-weight: 900;
  margin-right: 0
}

.pbp-jersey,
.jersey {
  color: var(--muted)
}

.pbp-name {
  font-weight: 800
}

.pbp-row-grid .pbp-made {
  width: 100%;
  max-width: 100%
}

.pbp-row-grid .pbp-logo {
  width: 22px;
  height: 100%;
  border-radius: 0;
  object-fit: contain
}

.pbp-line {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  height: 100%
}

.pbp-who {
  font-weight: 700;
  font-size: 14px
}

.pbp-who-sub {
  width: 100%;
  font-weight: 800;
  font-size: 11px
}

.pbp-row-grid .pbp-desc {
  font-size: 10px;
  font-weight: 700
}

.pbp-corners {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 2
}

.pbp-timebox {
  align-items: left;
  justify-content: left;
  gap: 3px
}

.pbp-timebox .top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  color: #747679
}

.pbp-timebox .p {
  font-size: 11px;
  opacity: .6;
  margin-top: 3px;
  color: #747679
}

.pbp-timebox .t {
  font-size: 14px;
  margin-top: 3px;
  color: #747679
}

.pbp-timebox .s {
  font-size: 11px;
  opacity: .85;
  line-height: 1;
  margin-top: 3px;
  color: #747679
}

.shot-section {
  padding: 0
}

.shotchart-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--ring);
  background: #ffffff8c
}

.court-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 470
}

.court-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block
}

.shot-marks {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.shot-mark {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 18px;
  text-shadow: 0 1px 0 #ffffffb3;
  user-select: none
}

.pbp-row.t2,
.pbp-cell.left {
  justify-content: flex-start
}

.pbp-row.t1,
.pbp-row.t1 .pbp-meta,
.pbp-cell.right {
  justify-content: flex-end
}

.pbp-card,
.pbp-card-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 78%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 100%
}

.pbp-row.t1 .pbp-card .pbp-card-sub,
.pbp-row-grid.t1 .pbp-card .pbp-card-sub {
  flex-direction: row-reverse;
  text-align: right
}

@media (max-width:420px) {
  .tab {
    font-size: 14px;
    padding: 9px 10px
  }

  .phead {
    gap: 6px;
    padding-left: 0;
    padding-right: 0
  }

  .pbody.open {
    max-height: 260px
  }
}

.pphoto {
  width: 38px;
  height: 26px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center
}

.pphoto-img {
  width: 100%;
  height: 26px;
  object-fit: cover;
  display: block
}

.phead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  cursor: pointer;
  gap: 0;
  height: 26px;
  min-height: 26px;
  overflow: visible
}

#pbpPeriodTabs.pbp-period-tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 0;
  padding: 0;
  overflow: hidden;
  justify-content: stretch
}

#pbpPeriodTabs.pbp-period-tabs .tab {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  background: #2b2c2d;
  color: #fff
}

#shotChart {
  position: relative;
  width: 100%;
  aspect-ratio: 94 / 50;
  overflow: hidden
}

.court-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none
}

#shotMarks {
  position: absolute;
  inset: 0;
  z-index: 1
}

.heat-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(0.2px);
  opacity: .7;
  mix-blend-mode: screen
}

.heat-dot.made {
  background: radial-gradient(circle, #ff0000b3 0%, #ff00004d 45%, #f000 75%)
}

.heat-dot.miss {
  background: radial-gradient(circle, #0078ff99 0%, #0078ff47 45%, #0078ff00 75%)
}

#pbpPeriodTabs.pbp-period-tabs .tab.active {
  background: var(--accent);
  color: #0b0d10;
  filter: none
}

.pbp-who.loading {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 14px
}

.pbp-who.loading::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #00000040;
  border-top-color: #000000a6;
  animation: sbspin .8s linear infinite;
  margin-left: 6px
}

.pbp-made-photo-full {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 69px;
  height: 100%;
  object-fit: cover;
  padding-top: 5px;
  z-index: 8;
  pointer-events: none
}

.pbp-made-photo {
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 46px;
  z-index: 10px;
  margin-left: 14%;
  align-self: flex-start;
  opacity: 0
}

.pbp-made-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  margin-left: 10px;
  margin-left: 185px
}

.pbp-made-name {
  font-weight: 800;
  line-height: 1.1
}

.pbp-made-sub {
  font-size: 12px;
  opacity: .8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 700;
  font-size: 11px;
  opacity: .9;
  line-height: 1.05
}

.pbp-made-pill {
  font-weight: 800;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #b91c1c;
  color: #fff;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex: 0 0 auto;
  line-height: 1;
  margin: 0
}

.pbp-made-score {
  font-weight: 900;
  margin-left: 6px;
  flex: 0 0 auto
}

.pbp-made {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 150px;
  max-width: 100%;
  padding: 8px 0;
  padding-top: 34px;
  border-radius: 5px;
  background: #fff;
  position: relative
}

.pbp-made .pbp-corners {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  pointer-events: none
}

.pbp-row-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px
}

.pbp-row-grid .pbp-card .pbp-card-sub {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  align-items: center
}

.pbp-row-grid .pbp-text,
.pbp-row-grid .pbp-line {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%
}

.pbp-made-bar {
  z-index: 3;
  width: 31%;
  clip-path: polygon(0% 0%, 100% 0%, 47% 100%, 0% 100%)
}

.pbp-subtag {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  margin-left: 0;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .2px
}

.pbp-subtag.in {
  color: #08f26ef2
}

.pbp-subtag.out {
  color: #ff4646f2
}

.pbp-who-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%
}

.pbp-sub-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: none;
  margin-top: 3px;
  margin-bottom: 3px;
  margin-left: 3%
}

.pbp-score-snap strong {
  font-weight: 900
}

.pbp-score-snap {
  font-weight: 500;
  color: #747679
}

.pbp-score-snap .score-hit {
  font-weight: 900;
  color: #000
}

.pbp-made-corners {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20
}

.pbp-made-ast {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-left: 0;
  margin-top: 1px;
  line-height: 1.05;
  opacity: .72
}

.pbp-player-name {
  font-size: 14px;
  font-weight: 800
}

.pbp-made-ast .pbp-player-name {
  font-size: 10px;
  font-weight: 800
}

.pbp-made-mainline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap
}

.pbp-made-main {
  display: inline-block;
  line-height: 1;
  white-space: nowrap
}

.pbp-turnover-line {
  display: flex;
  align-items: center;
  margin-top: 2px;
  font-size: 12px;
  opacity: .65;
  display: flex;
  align-items: center;
  width: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  line-height: 1.1;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  line-height: 1.1
}

.pbp-turnover-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  width: 100%
}

.pbp-turnover-row {
  display: flex;
  align-items: center;
  min-width: 0
}

.pbp-turnover-row-sub {
  font-size: 12px;
  opacity: .7
}

.pbp-turnover-line-sub {
  font-size: 12px;
  opacity: .7;
  margin-top: 2px
}

.pbp-steal-row {
  font-size: 12px;
  opacity: .75;
  font-size: 12px;
  opacity: .8;
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
  font-size: 14px;
  font-weight: 700
}

.pbp-who-turnover {
  font-size: 12px;
  font-weight: 500;
  opacity: .75;
  font-size: 12px;
  font-weight: 500;
  opacity: .78;
  font-size: 12px;
  font-weight: 500;
  opacity: .72;
  font-size: 12px;
  font-weight: 500;
  opacity: .75
}

.pbp-turnover-badgecol .pbp-badgewrap-mini {
  margin-left: 0;
  margin-top: 2px;
  margin-left: 0;
  margin-left: 0 !important
}

.pbp-turnover-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  gap: 1px
}

.pbp-steal-row .pbp-turnover-desc {
  font-size: 11px;
  font-weight: 700;
  opacity: .72
}

.pbp-turnover-line:last-child .pbp-turnover-desc {
  font-size: 11px;
  font-weight: 500;
  opacity: .62
}

.pbp-turnover-line .pbp-jersey {
  font-size: 13px;
  font-weight: 800
}

.pbp-turnover-line:last-child {
  margin-top: -2px
}

.pbp-turnover-badgecol {
  padding-top: 2px;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%
}

.pbp-assist-row {
  font-size: 12px;
  font-weight: 400;
  color: #4b5563;
  margin-top: 2px
}

.pcard {
  transform-origin: center center
}

.pcard .pphoto-img {
  height: 64px
}

.pcard.open .pphoto,
.pcard.expanded .pphoto {
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible
}

.pcard.open .pphoto-img,
.pcard.expanded .pphoto-img {
  height: 104px;
  max-height: none;
  width: auto;
  object-fit: cover;
  object-position: left top;
  display: block;
  overflow: visible
}

.pcard.open .namechip,
.pcard.expanded .namechip {
  visibility: hidden
}

.pcard.open .pstatgrid,
.pcard.expanded .pstatgrid {
  margin-left: 100px
}

.pcard.open,
.pcard.expanded {
  align-items: stretch;
  position: relative
}

.pname-floating {
  position: absolute;
  top: 4px;
  left: 60px;
  z-index: 10;
  background: #2f2f2f;
  color: #fff;
  padding: 4px 14px;
  font-weight: 600;
  font-size: 14px;
  clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%)
}

#selectedPlayerChip {
  display: none;
  margin: 0;
  padding-left: 120px;
  width: 100%;
  height: 24px;
  background: #2b2c2d;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
  font-size: 15px;
  align-items: center
}

#selectedPlayerChip::before,
#selectedPlayerChip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: #2b2c2d;
  z-index: -1
}

#selectedPlayerChip::before {
  left: -10px;
  transform: skewX(-18deg)
}

#selectedPlayerChip::after {
  right: -10px;
  transform: skewX(-18deg)
}

#gradesList {
  position: relative;
  z-index: 1
}

#gradesList:has(.pcard.open) {
  margin-top: -24px;
  z-index: 10
}

.grades-list:has(.pcard.open) {
  margin-top: -24px
}

.pcard.open .statgrid,
.pcard.expanded .statgrid {
  margin-left: 95px
}

.pcard.open .pgrade,
.pcard.expanded .pgrade {
  display: none
}

.box-section {
  padding-top: 1px;
  margin-left: 10px;
  margin-right: 10px
}

.boxscore-compare {
  display: grid;
  gap: 10px
}

.boxscore-head {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  margin-bottom: 4px
}

.boxscore-team {
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.boxscore-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  background: #17181a;
  padding: 0 12px
}

.boxscore-val {
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  line-height: 1
}

.boxscore-label {
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .8px;
  color: #aeb4bd
}

.pbp-row-grid .pbp-made,
.pcard.open .pbody,
.pcard.expanded .pbody {
  width: 100%;
  max-width: 100%
}

.pbp-made-ast .pbp-jersey,
.pbp-turnover-line .pbp-who {
  font-size: 11px;
  font-weight: 500
}

.boxscore-team.left,
.boxscore-val.left {
  text-align: left
}

.boxscore-team.right,
.boxscore-val.right {
  text-align: right
}

@media (max-width: 640px) {

  .boxscore-head,
  .boxscore-row {
    grid-template-columns: 1fr 92px 1fr
  }

  .boxscore-val {
    font-size: 18px
  }

  .boxscore-label {
    font-size: 11px
  }

  .boxscore-team {
    font-size: 13px
  }
}

.boxscore-compare {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px
}

.vs-row {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.vs-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-weight: 800
}

.vs-left {
  text-align: left;
  font-size: 20px
}

.vs-right {
  text-align: right;
  font-size: 20px
}

.vs-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: #9aa0a8
}

.vs-bar {
  position: relative;
  height: 6px;
  border-radius: 10px;
  background: #1e1f22;
  overflow: hidden;
  display: flex
}

.box-shot-wrap {
  margin-bottom: 0px;
  margin-left: -10px;
  margin-right: -20px;
}

.box-shotchart-wrap {
  width: 100%
}

.box-shotchart {
  position: relative
}

.box-shot-marks {
  position: absolute;
  inset: 0
}

.box-shot-mark {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px #00000059
}

.box-shot-mark.made {
  font-size: 16px
}

.box-shot-mark.miss {
  font-size: 15px;
  color: #ff3b30
}

.vs-left-bar,
.vs-right-bar {
  height: 100%
}

@media (max-width: 640px) {
  .box-shot-mark.made {
    font-size: 14px
  }

  .box-shot-mark,
  .box-shot-mark.miss {
    font-size: 13px
  }
}

.heat-dot {
  opacity: 0;
  transform: translateY(-10px) scale(0.88);
  animation: shotDotDropIn .28s ease-out forwards;
  will-change: opacity, transform
}

@keyframes shotDotDropIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.88)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.boxbar {
  transform-origin: center;
  transform: scaleX(0);
  animation: growFromCenter .6s ease-out forwards
}

@keyframes growFromCenter {
  from {
    transform: scaleX(0)
  }

  to {
    transform: scaleX(1)
  }
}

.vs-bar {
  position: relative;
  overflow: hidden
}

.vs-left-bar,
.vs-right-bar {
  width: 50%;
  animation-duration: .6s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: var(--bar-delay, 0ms);
  will-change: width
}

.vs-left-bar {
  margin-left: auto;
  animation-name: vsLeftBarSettle
}

.vs-right-bar {
  animation-name: vsRightBarSettle
}

@keyframes vsLeftBarSettle {
  from {
    width: 50%
  }

  to {
    width: var(--target)
  }
}

@keyframes vsRightBarSettle {
  from {
    width: 50%
  }

  to {
    width: var(--target)
  }
}

#globalLoader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  background: radial-gradient(circle at center, #444 0%, #1b1b1b 45%, #000 100%);
  pointer-events: all;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease
}

#globalLoader.active {
  opacity: 1;
  visibility: visible
}

#globalLoader.exiting {
  opacity: 0;
  transition: opacity .28s ease
}

#globalLoader .loader-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 180px;
  text-align: center
}

#globalLoader .loader {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  perspective: 800px
}

#globalLoader .inner {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 50%
}

#globalLoader .inner.one {
  left: 0;
  top: 0;
  animation: rotate-one 1s linear infinite;
  border-bottom: 3px solid #EFEFFA
}

#globalLoader .inner.two {
  right: 0;
  top: 0;
  animation: rotate-two 1s linear infinite;
  border-right: 3px solid #EFEFFA
}

#globalLoader .inner.three {
  right: 0;
  bottom: 0;
  animation: rotate-three 1s linear infinite;
  border-top: 3px solid #EFEFFA
}

#globalLoader .stat-label {
  letter-spacing: 4px;
  color: #EFEFFA;
  text-transform: uppercase;
  font: 22px/1 "DuneRise", sans-serif
}

#globalLoader .title {
  color: #EFEFFA;
  font: 700 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif
}

#globalLoader .sub {
  color: #efeffad1;
  font: 500 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif
}

@keyframes rotate-one {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg)
  }

  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg)
  }
}

@keyframes rotate-two {
  0% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg)
  }

  100% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg)
  }
}

@keyframes rotate-three {
  0% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg)
  }

  100% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg)
  }
}

#globalLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #3a3a3a 0%, #1f1f1f 45%, #000 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease
}

#globalLoader.active {
  opacity: 1;
  pointer-events: auto
}

.loader-shell {
  text-align: center;
  color: #fff
}

.stat-label {
  margin-top: 18px;
  font-weight: 800;
  letter-spacing: .2em;
  font-size: 14px;
  opacity: .9
}

#globalLoaderSub {
  margin-top: 6px;
  font-size: 12px;
  opacity: .7
}

.loader-logo {
  margin-top: 18px;
  width: 120px;
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 0 8px #ffffff26);
  margin-top: 18px;
  width: 120px;
  height: auto;
  opacity: .9;
}

.box-period-tabs {
  width: 100%;
}