.bt-scoreboard {
  box-sizing: border-box;
  background: #fff;
  color: #101820;
  border: 1px solid #d4d4d4;
  margin: 20px 0;
  min-width: 0;
  font: 14px/1.45 Arial, sans-serif;
}
.bt-scoreboard * { box-sizing: border-box; }
.bt-scoreboard [hidden], .bt-notice:empty { display: none; }
.bt-scoreboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px clamp(12px, 3vw, 32px);
  border-bottom: 1px solid #d4d4d4;
}
.bt-scoreboard-heading h2 { font-size: 14px; margin: 0; color: inherit; }
.bt-scoreboard-heading span, .bt-meta, .bt-subtitle, .bt-overs, .bt-innings { color: #53617a; }
.bt-scoreboard-heading span, .bt-meta { font-size: 14px; }
.bt-current {
  background: #f7f7f7;
  padding: clamp(16px, 3vw, 32px);
  text-align: center;
}
.bt-meta {
  display: flex;
  justify-content: space-between;
  gap: .5rem 1rem;
  text-align: left;
}
.bt-meta > :last-child { text-align: right; }
.bt-status { color: #087a39; font-weight: 700; text-transform: capitalize; }
.bt-matchline {
  display: grid;
  grid-template-columns: 1.2fr 1fr minmax(0, .38fr) 1fr 1.2fr;
  align-items: start;
  gap: 8px;
  margin: 30px auto 14px;
  max-width: 890px;
}
.bt-matchline > * { min-width: 0; overflow-wrap: anywhere; grid-row: 1; }
.bt-side-0 { grid-column: 1; }
.bt-totals-0 { grid-column: 2; }
.bt-innings { grid-column: 3; }
.bt-totals-1 { grid-column: 4; }
.bt-side-1 { grid-column: 5; }
.bt-totals, .bt-innings { padding-top: 12px; }
.bt-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #eee;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.bt-badge img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 3px;
  object-fit: contain;
  background: #eee;
}
.bt-team-name { margin-top: 10px; font-size: 14px; }
.bt-score { font-size: 14px; font-variant-numeric: tabular-nums; }
.bt-overs { margin-bottom: 5px; font-size: 14px; }
.bt-result, .bt-subtitle, .bt-notice { overflow-wrap: anywhere; }
.bt-subtitle { margin-top: 4px; }
.bt-other { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bt-other-card {
  padding: 16px clamp(12px, 2vw, 24px);
  border-top: 1px solid #d4d4d4;
  min-width: 0;
  overflow-wrap: anywhere;
}
.bt-other-card:nth-child(odd) { border-right: 1px solid #d4d4d4; }
.bt-other-row, .bt-row-team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bt-other-row { justify-content: space-between; margin-top: 10px; }
.bt-other-row strong { font-weight: 500; text-align: right; }
.bt-other-row .bt-badge { width: 32px; height: 32px; font-size: 14px; }
.bt-other-result { margin: 10px 0 0; }
.bt-balls { border-top: 1px solid #d4d4d4; padding: 14px clamp(12px, 3vw, 32px); text-align: left; }
.bt-balls h3 { font-size: 14px; margin: 0 0 8px; }
.bt-ball { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid #eee; font-size: 14px; }
.bt-ball-over { min-width: 44px; font-weight: 700; color: #176a37; }
.bt-message { color: #53617a; margin: 0; }
.bt-notice { margin: 0; padding: 8px 12px; color: #674600; background: #fff6df; }

@media (max-width: 600px) {
  .bt-matchline {
    grid-template-columns: 1fr minmax(34px, .3fr) 1fr;
    align-items: start;
    margin: 18px auto;
  }
  .bt-side-1 { grid-column: 3; }
  .bt-totals-0 { grid-column: 1; }
  .bt-innings { grid-column: 2; }
  .bt-totals-1 { grid-column: 3; }
  .bt-totals, .bt-innings { grid-row: 2; padding-top: 0; }
  .bt-badge { width: 44px; height: 44px; font-size: 14px; }
  .bt-other { grid-template-columns: minmax(0, 1fr); }
  .bt-other-card:nth-child(odd) { border-right: 0; }
}

.bt-scoreboard {
  --bt-green: #13d66f;
  --bt-navy: #071521;
  --bt-ink: #142332;
  color: var(--bt-ink);
  font-size: 14px;
}
.bt-scoreboard-heading, .bt-dialog-heading {
  background: var(--bt-navy);
  color: #fff;
  border-top: 3px solid var(--bt-green);
}
.bt-scoreboard-heading span { color: #d7f8e5; }
.bt-scoreboard-heading span, .bt-meta, .bt-overs, .bt-deliveries h3 { font-size: 14px; }
.bt-current { background: #f5fbf8; }
.bt-team-name { font-size: 14px; }
.bt-score { font-size: 14px; }
.bt-current, .bt-other-card { position: relative; }
.bt-open {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.bt-open:focus-visible { outline: 3px solid #087a39; outline-offset: -3px; }
.bt-deliveries h3 { margin: 0 0 8px; }
.bt-other-card .bt-deliveries { margin-top: 12px; }
.bt-circle-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bt-circle-list li { position: relative; z-index: 2; pointer-events: none; }
.bt-delivery {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.bt-delivery-number {
  color: #445666;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.bt-circle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-grid;
  width: clamp(28px, 6.5vw, 48px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #df4b4f 0%, #b8212e 44%, #760c19 80%, #490711 100%);
  box-shadow: inset 0 0 0 1px #8e1422;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 3px #430511;
}
.bt-circle::before, .bt-circle::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  left: 33%;
  width: 50%;
  height: 120%;
  border-left: 1px dashed #ffddd4;
  border-right: 1px dashed #ffddd4;
  border-radius: 50%;
  transform: rotate(34deg);
  opacity: .45;
}
.bt-circle::after { left: 26%; opacity: .23; }
.bt-outcome-W { color: #ffd1d7; }
.bt-outcome-Wd, .bt-outcome-Nb { color: #ffe0a1; }
.bt-outcome-6 { color: #f1dcff; }
.bt-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bt-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: 85vh;
  padding: 0;
  border: 1px solid #c6d8ce;
  border-radius: 8px;
  color: var(--bt-ink);
  background: #fff;
}
.bt-dialog::backdrop { background: rgb(7 21 33 / 65%); }
.bt-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; margin: 0; }
.bt-dialog-heading h2 { color: #fff; font-size: 14px; margin: 0; }
.bt-dialog-heading button { font: inherit; background: var(--bt-green); color: var(--bt-navy); border: 0; padding: 8px 14px; border-radius: 5px; cursor: pointer; }
.bt-dialog-content { padding: 16px; }
.bt-score-detail { margin-top: 16px; overflow-x: auto; }
.bt-innings-detail h3 { margin: 12px 0 8px; font-size: 14px; }
.bt-score-table { width: 100%; min-width: 380px; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.bt-score-table caption { text-align: left; font-weight: 700; }
.bt-score-table th, .bt-score-table td { padding: 6px; border-bottom: 1px solid #d7e6dd; text-align: left; }

.bt-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; border-bottom: 1px solid #c6d8ce; }
.bt-tabs button { font: inherit; padding: 8px 12px; border: 0; border-radius: 4px; background: #eef4f0; color: var(--bt-ink); cursor: pointer; }
.bt-tabs button[aria-selected="true"] { background: var(--bt-navy); color: #fff; }
.bt-other { display: block; overflow-x: auto; }
.bt-match-table { width: 100%; min-width: 350px; border-collapse: collapse; font: inherit; }
.bt-match-table th, .bt-match-table td { padding: 10px 12px; border-bottom: 1px solid #d7e6dd; text-align: left; vertical-align: top; }
.bt-match-table thead { background: #eef4f0; }
.bt-match-table tbody tr { cursor: pointer; }
.bt-match-table tbody tr:hover { background: #f5fbf8; }
.bt-match-table td:first-child { position: relative; }
.bt-match-table .bt-badge { width: 26px; height: 26px; font-size: 14px; }
.bt-match-table .bt-row-team, .bt-table-score { min-height: 32px; }
.bt-match-table .bt-deliveries { margin-top: 8px; }
.bt-tab-empty { padding: 12px; margin: 0; }

.bt-match-details { color: #445666; margin-bottom: 4px; }
.bt-live-players { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.bt-scoreboard .bt-circle-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; align-items: start; }
.bt-circle-list li { flex: 0 0 auto; }

.bt-delivery-row { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.bt-delivery-heading { flex: 0 0 auto; }
.bt-delivery-row .bt-circle-list { min-width: 0; }
