.basketball-app {
  --bb-page-bg: #dfe0e5;
  --bb-surface: #ffffff;
  --bb-text: #171717;
  --bb-muted: #666a73;
  --bb-line: #c8cad1;
  --bb-line-soft: #d9ddeb;
  --bb-blue: #006dff;
  --bb-green: #00ad58;
  --bb-red: #ef1f36;
  --bb-orange: #c15500;
  --bb-orange-light: #ce6100;
  --bb-warning-bg: #fff1cf;
  --bb-warning-text: #744b00;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--bb-text);
  background: var(--bb-page-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.basketball-app *,
.basketball-app *::before,
.basketball-app *::after {
  box-sizing: border-box;
}

.basketball-app [hidden] {
  display: none !important;
}

.basketball-app a {
  color: inherit;
}

.basketball-app button {
  font: inherit;
}

.bb-shell {
  width: min(1008px, calc(100% - 32px));
  margin-inline: auto;
}

.bb-skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 7px 10px;
  color: #fff;
  background: #16233a;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.bb-skip-link:focus {
  transform: translateY(0);
}

.bb-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #8d8f95;
  background: var(--bb-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.bb-header__primary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d4d4d4;
}

.bb-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.bb-brand__mascot {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(214, 160, 54, 0.65);
  border-radius: 50%;
  background: #151515;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.bb-brand__sport {
  padding-right: 12px;
  border-right: 1px solid #d4d4d4;
  font-size: 16px;
  line-height: 1;
}

.bb-brand__bookmaker {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 3px;
  color: #fff;
  background: var(--bb-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bb-language {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.bb-language__link {
  display: inline-flex;
  min-width: 37px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid transparent;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.bb-language__link:hover,
.bb-language__link.is-active {
  border-bottom-color: var(--bb-green);
}

.bb-surface-nav {
  background: #fff;
}

.bb-surface-nav__inner {
  display: flex;
  min-height: 32px;
  align-items: stretch;
  gap: 12px;
}

.bb-surface-nav__link {
  display: inline-flex;
  min-width: 66px;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.bb-surface-nav__link:hover,
.bb-surface-nav__link.is-active {
  border-bottom-color: var(--bb-blue);
}

.bb-surface-nav__link.is-disabled {
  border-bottom-color: transparent;
  color: #9a9da3;
  cursor: not-allowed;
  pointer-events: none;
}

.bb-main {
  position: relative;
  min-height: calc(100vh - 85px);
  padding: 0 0 52px;
}

.bb-main--event {
  padding-top: 9px;
}

.bb-preview-banner,
.bb-stale-banner,
.bb-alert {
  width: min(864px, calc(100% - 24px));
  margin: 8px auto;
  padding: 6px 10px;
  border: 1px solid #e5c875;
  color: var(--bb-warning-text);
  background: var(--bb-warning-bg);
  font-size: 11px;
  text-align: center;
}

.bb-preview-banner {
  position: absolute;
  z-index: 6;
  top: -26px;
  right: max(8px, calc((100vw - 1008px) / 2));
  width: auto;
  max-width: 220px;
  margin: 0;
  padding: 3px 8px;
  border-color: #9cc7ee;
  color: #194e78;
  background: #e7f4ff;
  font-size: 9px;
  font-weight: 700;
}

.bb-stale-banner {
  position: absolute;
  z-index: 6;
  top: -26px;
  left: max(154px, calc((100vw - 1008px) / 2 + 170px));
  width: auto;
  max-width: 310px;
  margin: 0;
  padding: 3px 8px;
  font-size: 9px;
}

.bb-list-wrap {
  width: min(864px, 100%);
  margin: 0 auto;
}

.bb-list-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.bb-live-status,
.bb-list-count {
  margin: 0;
}

.bb-live-status.is-error {
  color: #a4212e;
  font-weight: 700;
}

.bb-list-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #afb1b7;
  border-top: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.bb-list-body {
  min-width: 100%;
}

.bb-list-row {
  display: grid;
  grid-template-columns: 98px 304px minmax(150px, 1fr) 62px minmax(150px, 1fr);
  min-height: 30px;
  align-items: center;
  border-bottom: 1px solid var(--bb-line);
  color: #242424;
  background: #fff;
  font-size: 10px;
  text-decoration: none;
}

.basketball-app[data-bb-view="prematch-list"] .bb-list-row {
  grid-template-columns: 98px 270px minmax(140px, 1fr) 62px minmax(140px, 1fr) 92px;
}

.bb-list-row.is-removed {
  color: #686d75;
  background: #eef0f2;
}

.bb-list-row.is-removed:hover {
  background: #e3e6e9;
}

.bb-list-row:last-child {
  border-bottom: 0;
}

.bb-list-row:hover {
  background: #f1f5fb;
}

.bb-list-row > span {
  min-width: 0;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-list-row__leading,
.bb-list-row__center {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bb-list-row__league {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bb-country-flag {
  width: 20px;
  height: 15px;
  flex: 0 0 20px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  object-fit: cover;
}

.bb-country-flag--international {
  border: 0;
  padding: 1px;
  object-fit: contain;
  opacity: 0.68;
}

.bb-list-row__league-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-list-row__center {
  color: #202020;
  font-weight: 700;
}

.bb-list-row__team--home {
  text-align: right;
}

.bb-list-row__team--locked {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.bb-list-row__lock {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  opacity: 0.7;
}

.bb-list-row__team--away {
  text-align: left;
}

.bb-list-row__status {
  color: #686d75;
  font-weight: 700;
  text-align: center;
}

.bb-empty-state {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--bb-muted);
  background: #fff;
  font-size: 11px;
  text-align: center;
}

.bb-detail-tools {
  position: absolute;
  z-index: 3;
  top: 5px;
  left: 10px;
  width: auto;
  margin: 0;
}

.bb-back-link {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  color: #2d507a;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.bb-back-link:hover {
  text-decoration: underline;
}

.bb-match-header {
  width: min(864px, calc(100% - 24px));
  margin: 5px auto 0;
  text-align: center;
}

.bb-match-header__context {
  display: flex;
  min-height: 24px;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.bb-match-header__league {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.bb-archive-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  background: #666b73;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.bb-match-header__country {
  display: inline-flex;
  width: 20px;
  height: 15px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
}

.bb-match-header__live {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: var(--bb-red);
  font-size: 13px;
  font-weight: 700;
}

.bb-match-header__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 22px;
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.bb-match-header__teams > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-match-header__teams > span:first-child {
  text-align: right;
}

.bb-match-header__teams > span:last-child {
  text-align: left;
}

.bb-match-header__teams strong {
  color: #202020;
  font-variant-numeric: tabular-nums;
}

.bb-removal-banner {
  display: flex;
  width: min(760px, calc(100% - 40px));
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0;
  padding: 9px 12px;
  border: 1px solid #c9cdd2;
  border-radius: 4px;
  color: #565b63;
  background: #eef0f2;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.bb-removal-banner img {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: 0.72;
}

.bb-removal-banner__kickoff {
  padding-left: 8px;
  border-left: 1px solid #c9cdd2;
  white-space: nowrap;
}

.bb-tabs {
  display: flex;
  width: max-content;
  margin: 30px auto 4px;
  overflow: hidden;
  border: 1px solid #d7d9df;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bb-tab {
  display: inline-flex;
  min-width: 52px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 9px;
  border: 0;
  color: #222;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bb-tab + .bb-tab {
  border-left: 1px solid #d7d9df;
}

.bb-tab.is-active {
  background: #ffd18d;
}

.bb-tab:disabled {
  opacity: 1;
}

.bb-tab.is-locked {
  color: #737780;
  background: #e9eaed;
  cursor: not-allowed;
}

.bb-tab__lock {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  opacity: 0.62;
}

.bb-period-caption {
  min-height: 17px;
  margin: 0 auto 12px;
  color: #777b84;
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}

.bb-main--event > .bb-live-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.bb-market-scope {
  width: 100%;
}

.bb-market-layout {
  display: grid;
  width: min(1368px, calc(100vw - 72px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0 auto;
}

.bb-market-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #9f826e;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.26);
}

.bb-market-table {
  width: 100%;
  min-width: 390px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #2b2b2b;
  background: #fff;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.basketball-app[data-bb-view="prematch-event"] .bb-market-table {
  min-width: 320px;
}

.bb-market-table caption {
  height: 26px;
  padding: 5px 6px 4px;
  color: #fff;
  background: #c15500;
  caption-side: top;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.basketball-app.is-removed .bb-market-table caption::before,
.basketball-app.is-archived .bb-market-table caption::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: url("../vendor/heroicons/2.2.0/16/solid/lock-closed.svg") center / contain no-repeat;
  mask: url("../vendor/heroicons/2.2.0/16/solid/lock-closed.svg") center / contain no-repeat;
}

.basketball-app.is-removed .bb-market-table td,
.basketball-app.is-archived .bb-market-table td {
  background-color: #f4f5f6;
}

.basketball-app.is-removed .bb-market-table tbody tr:nth-child(even) td,
.basketball-app.is-archived .bb-market-table tbody tr:nth-child(even) td {
  background-color: #eef0f2;
}

.bb-market-table thead {
  color: #fff;
  background: var(--bb-orange-light);
}

.bb-market-table th {
  height: 24px;
  padding: 3px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 400;
  white-space: nowrap;
}

.bb-market-table th:first-child,
.bb-market-table td:first-child {
  width: 26%;
}

.bb-market-table th:nth-child(2),
.bb-market-table td:nth-child(2) {
  width: 14%;
}

.bb-market-table th:last-child,
.bb-market-table td:last-child {
  width: 20%;
}

.bb-market-table tbody tr {
  height: 25px;
}

.bb-market-table td {
  overflow: hidden;
  padding: 3px 4px;
  border-right: 1px solid #eceef4;
  border-bottom: 1px solid var(--bb-line-soft);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-market-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.bb-market-table__value {
  font-weight: 500;
}

.bb-market-table__alg1 {
  width: 14%;
  font-weight: 500;
}

.bb-market-table th[data-bb-alg2-column],
.bb-market-table__alg2 {
  width: 22%;
  font-weight: 500;
}

.bb-market-table td.bb-market-table__alg2--bracket {
  border-right: 2px solid #d94d4d;
}

.bb-market-table__alg2--trigger {
  border-left: 2px solid #fff;
  border-radius: 11px 0 0 11px;
}

.bb-market-table__value--unavailable {
  color: #7a7f89;
  background: #f0f1f3 !important;
}

.bb-market-table__value--suspended {
  color: #8a4b00;
  background: #fff0d8 !important;
}

.bb-market-table__value--closed {
  color: #9c1c24;
  background: #ffe3e5 !important;
  text-decoration: line-through;
}

.bb-market-table__empty {
  height: 52px;
  color: var(--bb-muted);
  white-space: normal !important;
}

.bb-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.basketball-app :focus-visible {
  outline: 3px solid #4aa4ff;
  outline-offset: 2px;
}

.basketball-app [aria-busy="true"] {
  cursor: progress;
}

@media (max-width: 760px) {
  .basketball-app {
    overflow-x: hidden;
  }

  .bb-shell {
    width: calc(100% - 16px);
  }

  .bb-header__primary {
    min-height: 46px;
  }

  .bb-brand {
    gap: 7px;
  }

  .bb-brand__mascot {
    width: 34px;
    height: 34px;
  }

  .bb-brand__sport {
    padding-right: 0;
    border-right: 0;
    font-size: 14px;
  }

  .bb-brand__bookmaker {
    display: none;
  }

  .bb-language__link {
    min-width: 32px;
  }

  .bb-surface-nav__inner {
    min-height: 32px;
  }

  .bb-preview-banner,
  .bb-stale-banner,
  .bb-removal-banner,
  .bb-alert,
  .bb-match-header {
    width: calc(100% - 16px);
  }

  .bb-preview-banner,
  .bb-stale-banner {
    position: static;
    width: calc(100% - 16px);
    max-width: none;
    margin: 4px auto 0;
  }

  .bb-detail-tools {
    position: static;
    width: calc(100% - 16px);
    margin: 4px auto 0;
  }

  .bb-match-header__context {
    display: block;
    min-height: 0;
  }

  .bb-match-header__live {
    display: flex;
    margin-top: 2px;
  }

  .bb-list-wrap {
    width: 100%;
  }

  .bb-list-body {
    min-width: 864px;
  }

  .bb-list-meta {
    min-width: 0;
  }

  .bb-list-table {
    border-right: 0;
    border-left: 0;
  }

  .bb-match-header__league {
    font-size: 15px;
  }

  .bb-match-header__teams {
    gap: 8px;
    font-size: 14px;
  }

  .bb-match-header__teams > span {
    white-space: normal;
  }

  .bb-tabs {
    margin-top: 18px;
  }

  .bb-tab {
    min-width: 44px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .bb-market-layout {
    display: block;
    width: 100%;
  }

  .bb-market-table-wrap {
    width: 100%;
    margin-bottom: 18px;
    border-right: 0;
    border-left: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  }

  .bb-market-table {
    min-width: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .basketball-app *,
  .basketball-app *::before,
  .basketball-app *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
