.besstats {
  --bes-accent: #e0007a;
  --bes-accent-alt: #1ea7e1;
  --bes-bg: #030405;
  --bes-panel: #101114;
  --bes-border: #6b6f78;
  --bes-text: #ffffff;
  --bes-muted: #777b82;
  --bes-page-surface:
    radial-gradient(circle at 12% 0%, rgba(224, 0, 122, 0.28), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(30, 167, 225, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #171116 0%, #08090b 42%, #130914 100%);
  color: var(--bes-text);
  font-family: Arial, Helvetica, sans-serif;
  max-width: 100%;
  width: 100%;
}

.besstats,
.besstats * {
  box-sizing: border-box;
}

.besstats img,
.besstats canvas,
.besstats iframe,
.besstats video {
  max-width: 100%;
}

.besstats-empty {
  background: #101114;
  border: 1px solid rgba(224, 0, 122, 0.45);
  color: #ffffff;
  padding: 18px;
}

.besstats-character-stats {
  background: var(--bes-page-surface);
  padding: clamp(32px, 5vw, 72px) clamp(18px, 4vw, 48px);
}

.besstats-pickrates-page {
  background: var(--bes-page-surface);
  padding: clamp(24px, 4vw, 56px);
}

.besstats-pickrates-page .besstats-character-stats {
  background: transparent;
  padding: clamp(28px, 5vw, 64px) 0;
}

.besstats-pickrate-banner,
.besstats-pickrate-header,
.besstats-pickrate-tabs,
.besstats-pickrate-years,
.besstats-pickrate-periods,
.besstats-pickrate-how {
  max-width: var(--bes-content-max, 1500px);
  margin-left: auto;
  margin-right: auto;
}

.besstats-pickrate-banner {
  border-bottom: 3px solid var(--bes-accent);
  margin-bottom: 24px;
}

.besstats-pickrate-banner img {
  display: block;
  height: auto;
  width: 100%;
}

.besstats-pickrate-header {
  margin-bottom: 22px;
  text-transform: uppercase;
}

.besstats-pickrate-header h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0 0 8px;
}

.besstats-pickrate-header h2 {
  color: var(--bes-accent);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.besstats-pickrate-tabs,
.besstats-pickrate-years,
.besstats-pickrate-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.besstats-pickrate-tabs span,
.besstats-pickrate-tabs a,
.besstats-pickrate-years span,
.besstats-pickrate-years a,
.besstats-pickrate-periods button {
  background: #e5e5e5;
  border: 0;
  color: #050506;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-width: 170px;
  padding: 10px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.besstats-pickrate-years {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 28px;
}

.besstats-pickrate-years span,
.besstats-pickrate-years a,
.besstats-pickrate-periods button {
  min-width: 120px;
}

.besstats-pickrate-tabs .is-active,
.besstats-pickrate-years .is-active,
.besstats-pickrate-periods .is-active {
  background: var(--bes-accent);
  color: #ffffff;
}

.besstats-pickrate-periods {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(5, 5, 6, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--bes-accent);
  margin-bottom: 28px;
  padding: 12px;
}

.besstats-pickrate-periods button:hover,
.besstats-pickrate-periods button:focus-visible {
  background: var(--bes-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.besstats-pickrate-history-set[hidden],
.besstats-month[hidden] {
  display: none !important;
}

.besstats-pickrate-history-label {
  color: #9fd3ff;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.besstats-pickrate-period-empty {
  margin-top: 8px;
}

.besstats-pickrate-history {
  max-width: var(--bes-content-max, 1500px);
  margin: 28px auto 10px;
}

.besstats-pickrate-history h2 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.besstats-pickrate-history-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.besstats-pickrate-history-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #101114;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--bes-accent);
  padding: 16px;
}

.besstats-pickrate-rank {
  color: var(--bes-accent);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}

.besstats-pickrate-history-card h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.besstats-pickrate-history-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.besstats-pickrate-history-card dl div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.besstats-pickrate-history-card dt {
  color: #8e95a0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.besstats-pickrate-history-card dd {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  text-align: right;
}

.besstats-pickrate-how {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 24px;
  padding-top: clamp(28px, 5vw, 64px);
}

.besstats-pickrate-how h2 {
  color: #ffffff;
  font-size: clamp(34px, 4.5vw, 68px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.besstats-pickrate-how p,
.besstats-pickrate-how blockquote,
.besstats-pickrate-how cite {
  color: #ffffff;
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  max-width: 980px;
}

.besstats-pickrate-how blockquote {
  border-left: 4px solid var(--bes-accent);
  margin: 20px 0;
  padding-left: 18px;
}

.besstats-pickrate-how cite {
  color: var(--bes-accent);
  font-style: normal;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.besstats-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 72px) clamp(28px, 7vw, 96px);
  max-width: 1360px;
  margin: 0 auto;
}

.besstats-month-title {
  color: #ffffff;
  font-size: clamp(34px, 4.4vw, 68px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0 0 28px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(224, 0, 122, 0.22);
}

.besstats-chart-wrap {
  height: 310px;
  position: relative;
}

.besstats-month-data {
  border-collapse: collapse;
  color: #ffffff;
  font-size: 13px;
  margin-top: 16px;
  width: 100%;
}

.besstats-month-data th,
.besstats-month-data td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  text-align: right;
}

.besstats-month-data th:first-child,
.besstats-month-data td:first-child {
  text-align: left;
}

.besstats-month-data th {
  color: var(--bes-accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.besstats-month-data td {
  color: #ffffff;
  font-weight: 700;
}

.besstats-month-empty {
  margin-top: 14px;
}

.besstats-player-hall {
  background: var(--bes-page-surface);
  padding: clamp(24px, 4vw, 48px);
}

.besstats-hall-table {
  display: grid;
  gap: 6px;
  max-width: var(--bes-content-max, 1500px);
  margin: 0 auto;
}

.besstats-hall-head,
.besstats-hall-row {
  display: grid;
  grid-template-columns: 1fr 2.1fr 1.25fr 1.45fr 0.8fr 1.35fr;
  align-items: center;
}

.besstats-hall-head {
  background: rgba(16, 17, 20, 0.9);
  border: 2px solid var(--bes-border);
  color: #ffd200;
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  padding: 14px 22px;
  text-transform: uppercase;
}

.besstats-hall-row {
  min-height: 96px;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.98), rgba(16, 17, 20, 0.82) 62%, rgba(16, 17, 20, 0.34)),
    var(--bes-row-image, none) right center / auto 130% no-repeat,
    #101114;
  border: 2px solid var(--bes-border);
  color: #ffffff;
  gap: 14px;
  padding: 14px 22px;
}

.besstats-week,
.besstats-player strong,
.besstats-hall-row span {
  font-size: clamp(18px, 2vw, 30px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 0 8px rgba(224, 0, 122, 0.42),
    0 0 10px rgba(255, 210, 0, 0.24);
}

.besstats-week {
  color: #ffd200;
  text-transform: uppercase;
}

.besstats-player {
  display: grid;
  gap: 2px;
}

.besstats-player small {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.besstats-player strong {
  color: #ffd200;
  line-height: 1;
  text-transform: uppercase;
}

.besstats-clip {
  align-items: center;
  background: #ffffff;
  color: #050506;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
  padding: 0 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.besstats-clip:hover,
.besstats-clip:focus {
  background: var(--bes-accent);
  color: #ffffff;
}

@media (max-width: 900px) {
  .besstats-chart-grid {
    grid-template-columns: 1fr;
  }

  .besstats-chart-wrap {
    height: 280px;
  }

  .besstats-hall-head {
    display: none;
  }

  .besstats-hall-row {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 18px;
  }

  .besstats-hall-row span {
    font-size: 20px;
  }
}

.besstats-match-schedule {
  background:
    radial-gradient(circle at 8% 50%, rgba(224, 0, 122, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    #160812;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  padding: 14px;
}

.besstats-match-schedule-view-cards,
.besstats-match-schedule-view-full {
  padding: clamp(20px, 4vw, 42px);
}

.besstats-schedule-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px 12px;
}

.besstats-match-schedule-view-cards .besstats-schedule-head,
.besstats-match-schedule-view-full .besstats-schedule-head,
.besstats-match-schedule-view-cards .besstats-schedule-scroll,
.besstats-match-schedule-view-full .besstats-schedule-scroll,
.besstats-match-schedule-view-full .besstats-schedule-event-list {
  margin-inline: auto;
  max-width: var(--bes-content-max, 1500px);
}

.besstats-schedule-head strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.besstats-schedule-head h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  text-transform: uppercase;
}

.besstats-schedule-head span {
  color: #aeb3bb;
  font-size: 12px;
  font-weight: 700;
}

.besstats-schedule-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--bes-accent) rgba(255, 255, 255, 0.08);
}

.besstats-match-schedule-view-cards .besstats-schedule-scroll,
.besstats-match-schedule-view-full .besstats-schedule-scroll {
  display: grid;
  gap: 20px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.besstats-schedule-day {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  min-width: max-content;
  padding-left: 14px;
}

.besstats-match-schedule-view-cards .besstats-schedule-day,
.besstats-match-schedule-view-full .besstats-schedule-day {
  border-left: 0;
  min-width: 0;
  padding-left: 0;
}

.besstats-schedule-day:first-child {
  border-left: 0;
  padding-left: 0;
}

.besstats-schedule-day h3 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.besstats-match-schedule-view-full .besstats-schedule-day h3,
.besstats-match-schedule-view-cards .besstats-schedule-day h3 {
  border-left: 4px solid var(--bes-accent, #e0007a);
  color: #ffd200;
  font-size: clamp(18px, 2vw, 26px);
  padding-left: 12px;
  text-shadow: 0 0 12px rgba(224, 0, 122, 0.5);
}

.besstats-schedule-cards {
  display: flex;
  gap: 10px;
}

.besstats-match-schedule-view-cards .besstats-schedule-cards,
.besstats-match-schedule-view-full .besstats-schedule-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.besstats-schedule-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(32, 13, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(224, 0, 122, 0.09);
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 8px;
  width: 180px;
}

.besstats-match-schedule-view-cards .besstats-schedule-card,
.besstats-match-schedule-view-full .besstats-schedule-card {
  min-height: 118px;
  padding: 12px;
  width: auto;
}

.besstats-match-schedule-view-full .besstats-schedule-card {
  gap: 9px;
  min-height: 132px;
}

.besstats-schedule-day,
.besstats-schedule-card {
  scroll-snap-align: start;
}

.besstats-schedule-card-top,
.besstats-schedule-card footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.besstats-schedule-card-top span,
.besstats-schedule-card footer {
  color: #8e95a0;
  font-size: 10px;
  font-weight: 800;
}

.besstats-schedule-card-top strong {
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.besstats-schedule-entrant {
  align-items: center;
  background: rgba(10, 5, 10, 0.42);
  border-radius: 3px;
  display: grid;
  gap: 6px;
  grid-template-columns: 20px 1fr 18px;
  min-height: 24px;
  padding: 3px 5px;
}

.besstats-schedule-entrant span:nth-child(2) {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.besstats-schedule-entrant strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.besstats-entrant-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--bes-accent), var(--bes-accent-alt, #1ea7e1));
  border-radius: 3px;
  color: #ffffff;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.besstats-schedule-card footer {
  margin-top: 2px;
}

.besstats-schedule-event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.besstats-schedule-event-list span,
.besstats-schedule-event-list a {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.besstats-schedule-event-list .is-active {
  background: var(--bes-accent, #e0007a);
  border-color: #ffd200;
}

@media (max-width: 700px) {
  .besstats-schedule-head {
    align-items: flex-start;
    display: grid;
  }

  .besstats-schedule-card {
    width: 168px;
  }

  .besstats-match-schedule-view-cards .besstats-schedule-card,
  .besstats-match-schedule-view-full .besstats-schedule-card {
    width: auto;
  }
}

.besstats-champions-page {
  background: var(--bes-page-surface);
  padding: clamp(20px, 4vw, 48px);
}

.besstats-champions-banner {
  border-bottom: 3px solid var(--bes-accent);
  margin: 0 auto 22px;
  max-width: var(--bes-content-max, 1500px);
}

.besstats-champions-banner img,
.besstats-champions-sponsor img {
  display: block;
  height: auto;
  width: 100%;
}

.besstats-champion-tabs,
.besstats-champion-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 18px;
  max-width: var(--bes-content-max, 1500px);
}

.besstats-champion-tabs span,
.besstats-champion-tabs a,
.besstats-champion-pages span,
.besstats-champion-pages a {
  background: #e5e5e5;
  color: #050506;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-width: 92px;
  padding: 9px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.besstats-champion-pages span,
.besstats-champion-pages a {
  min-width: 44px;
  padding-inline: 14px;
}

.besstats-champion-tabs .is-active,
.besstats-champion-pages .is-active {
  background: var(--bes-accent);
  color: #ffffff;
}

.besstats-champion-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px auto 24px;
  max-width: var(--bes-content-max, 1500px);
}

.besstats-champion-card {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025) 46%, rgba(224, 0, 122, 0.11)),
    #111114;
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 92px;
  overflow: hidden;
  position: relative;
}

.besstats-champion-card-image img {
  display: block;
  height: auto;
  width: 100%;
}

.besstats-champion-card-built {
  min-height: 92px;
  position: relative;
}

.besstats-champion-art {
  bottom: 0;
  opacity: 0.82;
  position: absolute;
  right: 0;
  top: 0;
  width: min(30%, 360px);
}

.besstats-champion-art img {
  height: 100%;
  object-fit: cover;
  object-position: center right;
  width: 100%;
}

.besstats-champion-card-content {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.98), rgba(5, 5, 6, 0.92) 50%, rgba(5, 5, 6, 0.7) 76%, rgba(5, 5, 6, 0.42));
  display: grid;
  gap: clamp(10px, 1.6vw, 22px);
  grid-template-columns: minmax(78px, 0.48fr) minmax(220px, 1.35fr) minmax(130px, 0.8fr) minmax(250px, 1.45fr) minmax(90px, 0.6fr);
  min-height: 92px;
  padding: 16px 20px;
  position: relative;
  z-index: 1;
}

.besstats-champion-week span,
.besstats-champion-player small {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.besstats-champion-player small {
  color: #cfd6de;
  display: block;
  margin-bottom: 2px;
}

.besstats-champion-player {
  min-width: 0;
}

.besstats-champion-card-content h3,
.besstats-champion-player h3 {
  color: #ffd200;
  font-size: clamp(22px, 2.2vw, 36px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(224, 0, 122, 0.6);
}

.besstats-champion-character {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.besstats-champion-character strong,
.besstats-champion-character em {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.besstats-champion-character em {
  color: #aeb7c2;
  font-size: 12px;
  font-style: normal;
}

.besstats-champion-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  margin: 0;
}

.besstats-champion-stats div {
  border-left: 2px solid rgba(224, 0, 122, 0.9);
  display: grid;
  gap: 3px;
  padding-left: 12px;
}

.besstats-champion-stats dt {
  color: #9fb8cc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.besstats-champion-stats dd {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  margin: 0;
}

.besstats-champion-clip {
  background: var(--bes-accent);
  color: #ffffff;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.besstats-champion-row-action {
  justify-self: end;
  position: relative;
}

.besstats-champion-clip.is-disabled {
  background: rgba(255, 255, 255, 0.12);
  color: #aeb7c2;
}

.besstats-clip-preview {
  background: #050506;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56);
  display: grid;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  width: min(360px, 82vw);
  z-index: 20;
}

.besstats-clip-preview::after {
  background: var(--bes-accent);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.besstats-clip-preview.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.besstats-clip-preview iframe,
.besstats-clip-preview video {
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 0;
  display: block;
  height: auto;
  width: 100%;
}

.besstats-clip-preview-fallback {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  padding: 18px;
  text-align: center;
  text-transform: uppercase;
}

.besstats-champions-sponsor,
.besstats-champion-videos {
  margin: 28px auto 0;
  max-width: var(--bes-content-max, 1500px);
}

.besstats-champions-sponsor + .besstats-champion-pages {
  margin-top: 22px;
}

.besstats-champion-videos h2 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.besstats-champion-video-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.besstats-champion-video {
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: grid;
  overflow: hidden;
  text-decoration: none;
}

.besstats-champion-video img {
  display: block;
  height: 150px;
  object-fit: cover;
  width: 100%;
}

.besstats-champion-video span {
  font-size: 14px;
  font-weight: 900;
  padding: 12px;
  text-transform: uppercase;
}

.besstats-archive-page {
  background: var(--bes-page-surface);
  color: #ffffff;
  padding: clamp(24px, 5vw, 56px);
}

.besstats-archive-header,
.besstats-archive-grid {
  margin-inline: auto;
  max-width: var(--bes-content-max, 1500px);
}

.besstats-archive-header h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.besstats-archive-header p {
  color: #9fb8cc;
  font-size: 14px;
  font-weight: 900;
  margin: -14px 0 28px;
  text-transform: uppercase;
}

.besstats-archive-grid {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

.besstats-archive-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 48%, rgba(224, 0, 122, 0.16)),
    #111114;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(145px, 0.45fr) minmax(0, 1fr);
  gap: 0;
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.besstats-month,
.besstats-archive-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.besstats-archive-card::before {
  background: var(--bes-accent, #e0007a);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.besstats-archive-card-media {
  background:
    radial-gradient(circle at 50% 36%, rgba(224, 0, 122, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(5, 5, 6, 0.94)),
    #08090b;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.besstats-archive-card-media::after {
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.08), transparent 22%, transparent 78%, rgba(5, 5, 6, 0.22));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.besstats-archive-card.has-image .besstats-archive-card-media::after {
  background: none;
}

.besstats-archive-card-media img {
  display: block;
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center;
  transform: none;
  width: calc(100% - 24px);
}

.besstats-archive-card.has-no-image .besstats-archive-card-media {
  min-height: 100%;
}

.besstats-archive-card-media span {
  color: #ffd200;
  font-size: clamp(30px, 4vw, 56px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  padding: 18px;
  position: relative;
  text-align: center;
  text-shadow: 0 0 12px rgba(224, 0, 122, 0.65);
  text-transform: uppercase;
  z-index: 1;
}

.besstats-archive-card-body {
  align-content: center;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.besstats-archive-card-header {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.besstats-archive-card-header h2 {
  color: #ffd200;
  font-size: clamp(22px, 2vw, 32px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(224, 0, 122, 0.6);
}

.besstats-archive-card-header > span {
  background: rgba(224, 0, 122, 0.18);
  border: 1px solid rgba(224, 0, 122, 0.55);
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 8px;
  text-transform: uppercase;
}

.besstats-archive-group {
  background: rgba(5, 5, 6, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 3px 0 0 rgba(224, 0, 122, 0.85);
  padding: 14px;
}

.besstats-archive-group h3 {
  align-items: center;
  color: #ffffff;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  justify-content: space-between;
  letter-spacing: 0;
  margin: 0 0 11px;
  text-transform: uppercase;
}

.besstats-archive-group h3 span {
  color: #9fd3ff;
}

.besstats-archive-group h3 small {
  background: rgba(224, 0, 122, 0.34);
  border: 1px solid rgba(224, 0, 122, 0.62);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  min-width: 26px;
  padding: 4px 7px;
  text-align: center;
}

.besstats-archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.besstats-archive-links a {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(224, 224, 224, 0.96));
  border-left: 3px solid var(--bes-accent, #e0007a);
  color: #050506;
  font-size: 13px;
  font-weight: 900;
  min-width: 82px;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.besstats-archive-links a:hover,
.besstats-archive-links a:focus-visible {
  background: var(--bes-accent, #e0007a);
  color: #ffffff;
  transform: translateY(-1px);
}

.besstats-events-page,
.besstats-event-single {
  background: var(--bes-page-surface);
  color: #ffffff;
  padding: clamp(24px, 5vw, 56px);
}

.besstats-events-header,
.besstats-events-grid,
.besstats-event-single > * {
  margin-inline: auto;
  max-width: var(--bes-content-max, 1500px);
}

.besstats-events-header {
  margin-bottom: clamp(22px, 3vw, 36px);
}

.besstats-events-header h1 {
  color: #ffffff;
  font-size: clamp(36px, 5.5vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.besstats-events-header p {
  color: #a9c9e0;
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.besstats-events-grid {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.besstats-events-view-medium .besstats-events-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.besstats-events-view-strip .besstats-events-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--bes-accent) rgba(255, 255, 255, 0.08);
}

.besstats-event-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 52%, rgba(224, 0, 122, 0.16)),
    #111114;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  overflow: hidden;
  position: relative;
}

.besstats-event-card-medium {
  min-height: 100%;
}

.besstats-event-card-strip {
  flex: 0 0 min(88vw, 390px);
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 156px;
  scroll-snap-align: start;
}

.besstats-event-card-no-media {
  grid-template-columns: 1fr;
}

.besstats-event-card::before {
  background: var(--bes-accent, #e0007a);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.besstats-event-card-media {
  aspect-ratio: 16 / 8.5;
  background:
    radial-gradient(circle at 50% 40%, rgba(224, 0, 122, 0.18), transparent 45%),
    linear-gradient(135deg, #15171c, #060607);
  color: #ffd200;
  display: grid;
  font-size: clamp(26px, 4vw, 48px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  overflow: hidden;
  place-items: center;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(224, 0, 122, 0.65);
  text-transform: uppercase;
}

.besstats-event-card-medium .besstats-event-card-media {
  aspect-ratio: 16 / 7.5;
}

.besstats-event-card-strip .besstats-event-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.besstats-event-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.besstats-event-card-body {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2vw, 24px);
}

.besstats-event-card-medium .besstats-event-card-body {
  gap: 9px;
  padding: 16px;
}

.besstats-event-card-strip .besstats-event-card-body {
  align-content: center;
  gap: 8px;
  padding: 14px;
}

.besstats-event-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.besstats-event-meta span {
  background: rgba(224, 0, 122, 0.18);
  border: 1px solid rgba(224, 0, 122, 0.48);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.besstats-event-card-strip .besstats-event-meta span,
.besstats-event-card-medium .besstats-event-meta span {
  font-size: 10px;
  padding: 5px 7px;
}

.besstats-event-card h2 {
  color: #ffd200;
  font-size: clamp(24px, 2.6vw, 38px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  text-shadow: 0 0 12px rgba(224, 0, 122, 0.58);
  text-transform: uppercase;
}

.besstats-event-card-medium h2 {
  font-size: clamp(20px, 2vw, 28px);
}

.besstats-event-card-strip h2 {
  font-size: clamp(18px, 2vw, 24px);
}

.besstats-event-card h2 a {
  color: inherit;
  text-decoration: none;
}

.besstats-event-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.besstats-event-card .besstats-event-location {
  color: #bfe2ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.besstats-event-card-strip .besstats-event-location,
.besstats-event-card-strip .besstats-event-excerpt {
  display: none;
}

.besstats-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.besstats-event-actions a,
.besstats-event-register {
  background: #f4f4f4;
  border-left: 3px solid var(--bes-accent, #e0007a);
  color: #030303;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 12px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.besstats-event-actions a.is-primary,
.besstats-event-register {
  background: var(--bes-accent, #e0007a);
  border-color: #ffd200;
  color: #ffffff;
}

.besstats-event-card-medium .besstats-event-actions a,
.besstats-event-card-strip .besstats-event-actions a {
  font-size: 11px;
  min-height: 36px;
  padding: 9px 11px;
}

.besstats-event-card-strip .besstats-event-actions a:not(.is-primary) {
  display: none;
}

.besstats-event-hero {
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 18px;
  max-height: min(62vh, 620px);
  overflow: hidden;
}

.besstats-event-hero img {
  display: block;
  height: 100%;
  max-height: min(62vh, 620px);
  object-fit: cover;
  width: 100%;
}

.besstats-event-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(224, 0, 122, 0.14)),
    #111114;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.besstats-event-games {
  color: #bfe2ff;
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .besstats-champion-tabs span,
  .besstats-champion-tabs a {
    flex: 1 1 160px;
  }

  .besstats-champion-card-content {
    align-items: start;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
  }

  .besstats-champion-art {
    opacity: 0.28;
    width: 72%;
  }

  .besstats-champion-player h3 {
    white-space: normal;
  }

  .besstats-champion-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .besstats-champion-row-action {
    justify-self: stretch;
  }

  .besstats-clip-preview {
    left: 0;
    right: auto;
    width: min(320px, 86vw);
  }

  .besstats-archive-grid {
    grid-template-columns: 1fr;
  }

  .besstats-archive-card-header {
    grid-template-columns: 1fr;
  }

  .besstats-archive-card-header > span {
    justify-self: start;
  }

  .besstats-archive-card-media {
    aspect-ratio: 4 / 5;
    min-height: clamp(320px, 86vw, 520px);
  }
}

@media (max-width: 1100px) {
  .besstats-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .besstats-champion-card-content {
    grid-template-columns: minmax(72px, 0.55fr) minmax(180px, 1.25fr) minmax(120px, 0.85fr);
  }

  .besstats-champion-stats {
    grid-column: 2 / span 2;
  }

  .besstats-champion-row-action {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .besstats-character-stats,
  .besstats-pickrates-page,
  .besstats-player-hall,
  .besstats-champions-page,
  .besstats-archive-page,
  .besstats-events-page,
  .besstats-event-single {
    padding: clamp(18px, 5vw, 34px);
  }

  .besstats-pickrates-page .besstats-character-stats {
    padding: clamp(22px, 6vw, 42px) 0;
  }

  .besstats-pickrate-tabs span,
  .besstats-pickrate-tabs a,
  .besstats-pickrate-years span,
  .besstats-pickrate-years a,
  .besstats-pickrate-periods button,
  .besstats-champion-tabs span,
  .besstats-champion-tabs a {
    flex: 1 1 180px;
    min-width: 0;
  }

  .besstats-pickrate-years span,
  .besstats-pickrate-years a,
  .besstats-pickrate-periods button,
  .besstats-champion-pages span,
  .besstats-champion-pages a {
    flex: 0 1 auto;
    min-width: 54px;
  }

  .besstats-pickrate-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .besstats-month {
    min-width: 0;
  }

  .besstats-month-data {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .besstats-hall-row {
    background:
      linear-gradient(90deg, rgba(16, 17, 20, 0.98), rgba(16, 17, 20, 0.9) 64%, rgba(16, 17, 20, 0.58)),
      var(--bes-row-image, none) right center / auto 118% no-repeat,
      #101114;
  }

  .besstats-schedule-scroll {
    gap: 12px;
    margin-inline: -4px;
    padding-inline: 4px;
  }
}

@media (max-width: 700px) {
  .besstats {
    overflow-wrap: anywhere;
  }

  .besstats-pickrate-header h1,
  .besstats-archive-header h1,
  .besstats-events-header h1 {
    font-size: clamp(32px, 12vw, 48px);
    line-height: 0.95;
  }

  .besstats-pickrate-header h2 {
    font-size: clamp(20px, 7vw, 30px);
  }

  .besstats-pickrate-history h2,
  .besstats-pickrate-how h2,
  .besstats-champion-videos h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .besstats-pickrate-history-grid,
  .besstats-champion-video-grid {
    grid-template-columns: 1fr;
  }

  .besstats-month-title {
    font-size: clamp(30px, 11vw, 44px);
    margin-bottom: 18px;
  }

  .besstats-chart-wrap {
    height: 240px;
  }

  .besstats-month-data th,
  .besstats-month-data td {
    padding: 7px 9px;
  }

  .besstats-champion-card {
    min-height: 0;
  }

  .besstats-champion-card-built {
    min-height: 0;
  }

  .besstats-champion-card-content {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .besstats-champion-stats {
    grid-column: auto;
  }

  .besstats-champion-row-action {
    grid-column: auto;
    justify-self: stretch;
  }

  .besstats-champion-clip {
    min-height: 42px;
    width: 100%;
  }

  .besstats-archive-grid {
    grid-template-columns: 1fr;
  }

  .besstats-events-grid {
    grid-template-columns: 1fr;
  }

  .besstats-events-view-strip .besstats-events-grid {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
  }

  .besstats-event-card-strip {
    flex-basis: auto;
    grid-template-columns: 1fr;
  }

  .besstats-event-card-strip .besstats-event-card-media {
    aspect-ratio: 16 / 8;
    min-height: 0;
  }

  .besstats-archive-card {
    grid-template-columns: 1fr;
  }

  .besstats-archive-card-media {
    aspect-ratio: 4 / 5;
    min-height: clamp(320px, 86vw, 520px);
  }

  .besstats-archive-card-body {
    gap: 16px;
    padding: 18px;
  }

  .besstats-archive-card-header h2 {
    font-size: clamp(26px, 10vw, 36px);
  }

  .besstats-archive-group {
    padding: 14px;
  }

  .besstats-archive-links a {
    flex: 1 1 108px;
    min-width: 0;
    padding: 11px 12px;
  }

  .besstats-schedule-head strong {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .besstats-character-stats,
  .besstats-pickrates-page,
  .besstats-player-hall,
  .besstats-champions-page,
  .besstats-archive-page,
  .besstats-events-page,
  .besstats-event-single {
    padding: 16px;
  }

  .besstats-pickrate-tabs,
  .besstats-pickrate-years,
  .besstats-pickrate-periods,
  .besstats-champion-tabs,
  .besstats-champion-pages {
    gap: 8px;
  }

  .besstats-pickrate-tabs span,
  .besstats-pickrate-tabs a,
  .besstats-pickrate-periods button,
  .besstats-champion-tabs span,
  .besstats-champion-tabs a {
    flex-basis: 100%;
    padding-inline: 12px;
  }

  .besstats-chart-wrap {
    height: 220px;
  }

  .besstats-hall-row {
    background:
      linear-gradient(90deg, rgba(16, 17, 20, 0.99), rgba(16, 17, 20, 0.92)),
      var(--bes-row-image, none) right center / auto 112% no-repeat,
      #101114;
  }

  .besstats-hall-row span,
  .besstats-week,
  .besstats-player strong {
    font-size: 18px;
  }

  .besstats-archive-card-media {
    aspect-ratio: 4 / 5;
    min-height: min(112vw, 520px);
  }

  .besstats-archive-card.has-no-image .besstats-archive-card-media {
    aspect-ratio: 16 / 7;
    min-height: 116px;
  }

  .besstats-archive-header p {
    margin-bottom: 22px;
  }

  .besstats-event-actions a,
  .besstats-event-register {
    width: 100%;
  }

  .besstats-schedule-card {
    width: 78vw;
  }

  .besstats-match-schedule-view-cards .besstats-schedule-card,
  .besstats-match-schedule-view-full .besstats-schedule-card {
    width: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .besstats-clip-preview {
    display: none;
  }
}
