/* SCOREBOOK_LIVESCORE_DATA_LOADER_STABILIZER_CSS_V16_3_1 */

.sb-live-main-dashboard-v163 [data-live-list] {
  display: block;
  width: 100%;
  min-width: 0;
}

.sb-v163-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  padding: 18px 22px;
  border: 1px solid #d6e2eb;
  border-radius: 12px;
  background:
    radial-gradient(circle at 78% 20%, rgba(12, 130, 199, .11), transparent 32%),
    linear-gradient(135deg, #ffffff, #f5f9fc);
  box-shadow: 0 7px 22px rgba(17, 52, 77, .055);
}

.sb-v163-dashboard-head small {
  display: block;
  margin-bottom: 5px;
  color: #1580bd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.sb-v163-dashboard-head h2 {
  margin: 0;
  color: #073f6d;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.sb-v163-dashboard-head p {
  margin: 7px 0 0;
  color: #718899;
  font-size: 12px;
}

.sb-v163-live-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #d9e7ef;
  border-radius: 999px;
  color: #537083;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.sb-v163-live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21bd7c;
  box-shadow: 0 0 0 5px rgba(33, 189, 124, .12);
}

.sb-v163-sport-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.sb-v163-sport-card,
.sb-v163-full-board,
.sb-v163-league {
  --sb-v163-accent: #0875b6;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #d5e1e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 50, 75, .055);
}

.sb-v163-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, #073d69, #0a5c90);
}

.sb-v163-card-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  letter-spacing: -.03em;
}

.sb-v163-card-head h2 span {
  font-size: 18px;
}

.sb-v163-card-head > div {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #cfebfb;
}

.sb-v163-card-head > div b {
  color: #fff;
  font-size: 14px;
}

.sb-v163-card-head > div small {
  font-size: 9px;
}

.sb-v163-sport-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  border-bottom: 1px solid #dfe8ee;
  background: #fbfdfe;
  scrollbar-width: none;
}

.sb-v163-sport-tabs::-webkit-scrollbar {
  display: none;
}

.sb-v163-sport-tabs span {
  position: relative;
  flex: 1 0 auto;
  min-width: 54px;
  padding: 10px 8px 9px;
  color: #60798c;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.sb-v163-sport-tabs span.active {
  color: #073f6d;
  font-weight: 900;
}

.sb-v163-sport-tabs span.active::after {
  content: '';
  position: absolute;
  right: 9px;
  bottom: -1px;
  left: 9px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sb-v163-accent, #0875b6);
}

.sb-v163-feature {
  padding: 12px 12px 10px;
  background: #fff;
}

.sb-v163-feature-meta {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #718899;
  font-size: 9px;
  white-space: nowrap;
}

.sb-v163-feature-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-v163-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sb-v163-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.sb-v163-team-away {
  justify-content: flex-end;
  text-align: right;
}

.sb-v163-team b {
  overflow: hidden;
  color: #143d5c;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-v163-team-mark {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid #d9e3e9;
  border-radius: 50%;
  color: #0b5a8e;
  background: #f3f7fa;
  font-size: 10px;
  font-weight: 900;
}

.sb-v163-team-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sb-v163-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 74px;
}

.sb-v163-score-center small {
  max-width: 110px;
  margin-bottom: 3px;
  overflow: hidden;
  color: #e5384e;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-v163-score-center strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #073f6d;
  font-size: 25px;
  line-height: 1;
}

.sb-v163-score-center strong i,
.sb-v163-score-center strong em {
  font-style: normal;
}

.sb-v163-score-center strong em {
  color: #94a9b7;
  font-size: 14px;
}

.sb-v163-surface {
  position: relative;
  min-height: 120px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 7px;
  background: #eff5f8;
}

.sb-v163-surface-lines,
.sb-v163-surface-lines::before,
.sb-v163-surface-lines::after {
  position: absolute;
  content: '';
  box-sizing: border-box;
}

.sb-v163-surface-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 7px 10px;
  border-radius: 6px;
  color: #fff;
  background: rgba(3, 39, 64, .72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* Soccer pitch */
.sb-v163-surface-pitch {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 34px, rgba(0,0,0,.025) 34px 68px),
    linear-gradient(#278a46, #1d733c);
}
.sb-v163-surface-pitch .sb-v163-surface-lines {
  inset: 10px;
  border: 1px solid rgba(255,255,255,.72);
}
.sb-v163-surface-pitch .sb-v163-surface-lines::before {
  top: 0; bottom: 0; left: 50%; border-left: 1px solid rgba(255,255,255,.72);
}
.sb-v163-surface-pitch .sb-v163-surface-lines::after {
  top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%,-50%);
  border: 1px solid rgba(255,255,255,.72); border-radius: 50%;
}

/* Baseball diamond */
.sb-v163-surface-diamond {
  background: linear-gradient(150deg, #eaf3e6 0 38%, #b9814e 38% 62%, #eaf3e6 62%);
}
.sb-v163-surface-diamond .sb-v163-surface-lines {
  top: 50%; left: 50%; width: 66px; height: 66px;
  transform: translate(-50%, -43%) rotate(45deg);
  border: 2px solid #fff; background: rgba(79, 153, 79, .82);
}
.sb-v163-surface-diamond .sb-v163-surface-lines::before {
  inset: 17px; border: 1px solid rgba(255,255,255,.9);
}

/* Basketball court */
.sb-v163-surface-court {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1px, transparent 1px 28px),
    linear-gradient(#d5a85b, #c99547);
}
.sb-v163-surface-court .sb-v163-surface-lines {
  inset: 9px; border: 1px solid rgba(255,255,255,.8);
}
.sb-v163-surface-court .sb-v163-surface-lines::before {
  top: 0; bottom: 0; left: 50%; border-left: 1px solid rgba(255,255,255,.8);
}
.sb-v163-surface-court .sb-v163-surface-lines::after {
  top: 50%; left: 50%; width: 36px; height: 36px; transform: translate(-50%,-50%);
  border: 1px solid rgba(255,255,255,.8); border-radius: 50%;
}

/* Hockey rink */
.sb-v163-surface-rink {
  border: 1px solid #c7dce8;
  border-radius: 46px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(24,110,179,.55) 31% 32%, transparent 32% 68%, rgba(24,110,179,.55) 68% 69%, transparent 69%),
    linear-gradient(90deg, transparent 49.6%, rgba(214,52,73,.65) 49.6% 50.4%, transparent 50.4%),
    #f4fbff;
}
.sb-v163-surface-rink .sb-v163-surface-lines::before,
.sb-v163-surface-rink .sb-v163-surface-lines::after {
  top: 50%; width: 28px; height: 28px; transform: translateY(-50%);
  border: 1px solid rgba(214,52,73,.38); border-radius: 50%;
}
.sb-v163-surface-rink .sb-v163-surface-lines::before { left: 22%; }
.sb-v163-surface-rink .sb-v163-surface-lines::after { right: 22%; }

/* Tennis court */
.sb-v163-surface-tennis {
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.9) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(#879f4d, #6f8938);
}
.sb-v163-surface-tennis .sb-v163-surface-lines {
  inset: 12px 24px; border: 1px solid rgba(255,255,255,.85);
}
.sb-v163-surface-tennis .sb-v163-surface-lines::before {
  top: 50%; right: 0; left: 0; border-top: 1px solid rgba(255,255,255,.85);
}

/* American football field */
.sb-v163-surface-gridiron {
  background:
    repeating-linear-gradient(90deg, transparent 0 9%, rgba(255,255,255,.38) 9% 9.4%, transparent 9.4% 10%),
    linear-gradient(#347b3f, #286c34);
}
.sb-v163-surface-gridiron .sb-v163-surface-lines {
  inset: 8px; border: 1px solid rgba(255,255,255,.78);
}
.sb-v163-surface-gridiron .sb-v163-surface-lines::after {
  top: 0; bottom: 0; left: 50%; border-left: 2px solid rgba(255,255,255,.72);
}

.sb-v163-period-scroll {
  overflow-x: auto;
  border-top: 1px solid #e1e9ee;
  scrollbar-width: thin;
}

.sb-v163-period-table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9px;
}

.sb-v163-period-table th,
.sb-v163-period-table td {
  padding: 7px 4px;
  border-right: 1px solid #e3eaef;
  border-bottom: 1px solid #e3eaef;
  color: #395a70;
  text-align: center;
  white-space: nowrap;
}

.sb-v163-period-table th:first-child {
  width: 98px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.sb-v163-period-table thead th {
  color: #49687d;
  background: #f0f5f8;
  font-weight: 900;
}

.sb-v163-period-table .total {
  color: #fff;
  background: #073f6d;
  font-weight: 900;
}

.sb-v163-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 12px 12px;
  border-top: 1px solid #e3ebf0;
  background: #fbfdfe;
}

.sb-v163-metric {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 8px 9px;
  border: 1px solid #e1e9ef;
  border-radius: 7px;
  background: #fff;
}

.sb-v163-metric span {
  overflow: hidden;
  color: #0a6ca6;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-v163-metric span:nth-of-type(2) {
  color: #d53950;
  text-align: right;
}

.sb-v163-metric b {
  color: #667f91;
  font-size: 8px;
  white-space: nowrap;
}

.sb-v163-metric-bar {
  display: flex;
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}

.sb-v163-metric-bar i:first-child { background: #1482c1; }
.sb-v163-metric-bar i:last-child { background: #df3f55; }

.sb-v163-card-rows,
.sb-v163-league-games {
  display: block;
}

.sb-v163-game-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border-top: 1px solid #e4ebf0;
  color: #234861;
  background: #fff;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}

.sb-v163-game-row:hover,
.sb-v163-game-row:focus-visible {
  z-index: 1;
  background: #f5faff;
  box-shadow: inset 3px 0 0 var(--sb-v163-accent, #0875b6);
  outline: 0;
}

.sb-v163-row-status {
  padding: 7px 5px;
  text-align: center;
}

.sb-v163-row-status b {
  display: block;
  overflow: hidden;
  color: #0b6a9f;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-v163-game-row.is-live .sb-v163-row-status b {
  color: #ed384f;
}

.sb-v163-row-status small {
  display: block;
  margin-top: 2px;
  color: #8aa0af;
  font-size: 8px;
}

.sb-v163-row-team {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 7px 4px;
}

.sb-v163-row-team.away {
  justify-content: flex-end;
  text-align: right;
}

.sb-v163-row-team .sb-v163-team-mark {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  font-size: 8px;
}

.sb-v163-row-team span:not(.sb-v163-team-mark) {
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-v163-row-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #073f6d;
  white-space: nowrap;
}

.sb-v163-row-score strong {
  font-size: 13px;
}

.sb-v163-row-score i {
  color: #91a8b7;
  font-style: normal;
}

.sb-v163-row-meta {
  min-width: 0;
  padding: 5px 7px;
}

.sb-v163-row-meta span,
.sb-v163-row-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-v163-row-meta span {
  color: #72899a;
  font-size: 9px;
  font-weight: 800;
}

.sb-v163-row-meta small {
  margin-top: 2px;
  color: #9aacb8;
  font-size: 8px;
}

.sb-v163-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 39px;
  min-height: 30px;
  margin-right: 7px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #05689f;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.sb-v163-view i {
  font-size: 13px;
  font-style: normal;
  line-height: 1;
}

.sb-v163-sport-more {
  width: 100%;
  padding: 10px;
  border: 0;
  border-top: 1px solid #dde7ed;
  color: #0a5786;
  background: #f4f8fb;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.sb-v163-sport-more:hover {
  background: #eaf4fa;
}

.sb-v163-empty-card,
.sb-v163-empty-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 208px;
  margin: 0;
  padding: 24px;
  color: #7c92a2;
  text-align: center;
  background: linear-gradient(135deg, #fbfdfe, #f3f7fa);
}

.sb-v163-empty-card span {
  font-size: 29px;
  filter: grayscale(.35);
  opacity: .55;
}

.sb-v163-empty-card b {
  margin-top: 8px;
  color: #3b607a;
}

.sb-v163-empty-card p,
.sb-v163-empty-list {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.55;
}

/* Full sport view */
.sb-v163-dashboard-head.is-sport {
  border-top: 4px solid var(--sb-v163-accent, #0875b6);
}

.sb-v163-full-board {
  margin-bottom: 14px;
}

.sb-v163-full-feature {
  display: grid;
  grid-template-columns: minmax(340px, 1.1fr) minmax(300px, .9fr);
  align-items: stretch;
}

.sb-v163-full-feature > .sb-v163-feature {
  border-right: 1px solid #dfe8ed;
}

.sb-v163-full-feature .sb-v163-surface {
  min-height: 210px;
}

.sb-v163-full-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: #fbfdfe;
}

.sb-v163-full-detail:empty {
  display: none;
}

.sb-v163-full-detail .sb-v163-period-scroll {
  border-top: 0;
}

.sb-v163-league-list {
  display: grid;
  gap: 12px;
}

.sb-v163-league > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid #dce6ec;
  background: #f8fbfd;
}

.sb-v163-league > header h3 {
  overflow: hidden;
  margin: 0;
  color: #173f5c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-v163-league > header span {
  color: #8196a5;
  font-size: 9px;
}

.sb-v163-league .sb-v163-game-row {
  grid-template-columns: 72px minmax(0, 1fr) 72px minmax(0, 1fr) minmax(110px, .4fr) auto;
  min-height: 62px;
}

.sb-v163-league .sb-v163-row-team span:not(.sb-v163-team-mark) {
  font-size: 11px;
}

.sb-v163-league .sb-v163-row-score strong {
  font-size: 17px;
}

/* Keep V14 lazy status out of the six-card overview, while selected sport keeps it. */
.sb-live-dashboard-grid-v163 [data-live-infinite-status] {
  display: none !important;
}

/* Hide old V16.1 row-only accents when the main renderer owns the list. */
[data-dashboard-renderer="16.3.0"] .sb-v161-list-row {
  box-shadow: none;
}

@media (max-width: 1120px) {
  .sb-v163-sport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sb-v163-full-feature {
    grid-template-columns: 1fr;
  }
  .sb-v163-full-feature > .sb-v163-feature {
    border-right: 0;
    border-bottom: 1px solid #dfe8ed;
  }
}

@media (max-width: 760px) {
  .sb-v163-dashboard-head {
    align-items: flex-start;
    padding: 15px;
  }
  .sb-v163-dashboard-head h2 {
    font-size: 20px;
  }
  .sb-v163-dashboard-head p {
    display: none;
  }
  .sb-v163-live-pill {
    padding: 7px 9px;
    font-size: 9px;
  }
  .sb-v163-sport-grid {
    grid-template-columns: 1fr;
  }
  .sb-v163-scoreline {
    grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  }
  .sb-v163-team b {
    font-size: 10px;
  }
  .sb-v163-surface {
    min-height: 104px;
  }
  .sb-v163-game-row,
  .sb-v163-league .sb-v163-game-row {
    grid-template-columns: 58px minmax(0, 1fr) 54px minmax(0, 1fr) auto;
  }
  .sb-v163-row-meta {
    display: none;
  }
  .sb-v163-view span {
    display: none;
  }
  .sb-v163-view {
    min-width: 30px;
    width: 30px;
    padding: 0;
  }
  .sb-v163-metrics {
    grid-template-columns: 1fr;
  }
  .sb-v163-full-feature .sb-v163-surface {
    min-height: 160px;
  }
}

@media (max-width: 440px) {
  .sb-v163-card-head {
    min-height: 44px;
  }
  .sb-v163-feature {
    padding: 10px 8px 8px;
  }
  .sb-v163-team-mark {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
  .sb-v163-score-center strong {
    font-size: 21px;
  }
  .sb-v163-game-row,
  .sb-v163-league .sb-v163-game-row {
    grid-template-columns: 51px minmax(0, 1fr) 48px minmax(0, 1fr) 34px;
  }
  .sb-v163-row-team .sb-v163-team-mark {
    display: none;
  }
}


/* V16.3 forced ownership and loading state */
.sb-live-main-dashboard-controller-v163 [data-live-list] {
  min-height: 240px;
}

.sb-live-v163-loading [data-live-list] {
  opacity: .74;
  transition: opacity .15s ease;
}

.sb-v163-more-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 6px;
}

.sb-v163-load-more {
  min-width: 180px;
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #075487;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sb-v163-load-more:hover { background: #063f68; }

@media (max-width: 1020px) {
  .sb-v163-sport-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .sb-v163-sport-grid { grid-template-columns: minmax(0, 1fr); }
  .sb-v163-dashboard-head { padding: 16px; }
  .sb-v163-scoreline { grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); }
  .sb-v163-game-row { grid-template-columns: 64px minmax(0, 1fr) 60px minmax(0, 1fr) 48px; }
  .sb-v163-row-meta { display: none; }
}


/* V16.3.1 refreshes in the background without hiding or dimming current data. */
.sb-live-main-dashboard-controller-v1631.sb-live-v1631-refreshing [data-live-list] {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.sb-live-main-dashboard-controller-v1631.sb-live-v1631-refreshing .sb-v163-live-pill::after {
  content: '';
  width: 10px;
  height: 10px;
  margin-left: 2px;
  border: 2px solid #d8e6ee;
  border-top-color: #1590c8;
  border-radius: 50%;
  animation: sb-v1631-spin .75s linear infinite;
}

@keyframes sb-v1631-spin {
  to { transform: rotate(360deg); }
}
