/* NBA home Battle: three real pick cards, separate from the legacy WNBA widget. */
.bbd-battle-widget[data-battle-scope="nba"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "brand" "picks";
  gap: 6px;
  margin: 14px 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #194678;
  border-radius: 20px;
  background: linear-gradient(115deg, #061932, #0a2e59 58%, #111f43);
  box-shadow: 0 14px 34px #07182e25;
}
.bbd-battle-widget[data-battle-scope="nba"]::after { display: none; }
.bbd-battle-widget[data-battle-scope="nba"] > * { min-width: 0; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand {
  grid-area: brand;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "meta cta" "title cta" "tagline cta";
  align-items: center;
  column-gap: 16px;
  row-gap: 3px;
  min-height: 42px;
  padding: 0 3px;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > span {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8bd0ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .085em;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0445f;
  box-shadow: 0 0 0 4px #f0445f28;
}
.bbd-battle-widget[data-battle-scope="nba"] h2 {
  grid-area: title;
  align-self: end;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1;
  letter-spacing: -.045em;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__tagline {
  grid-area: tagline;
  margin: 0;
  color: #bdcfe2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > a {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #0b3769;
  box-shadow: 0 5px 16px #0003;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > a:hover { transform: translateY(-2px); background: #e8f5ff; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > a strong { color: #0876d0; font-size: 19px; }

/* Equal columns and equal-height cards on desktop. */
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-picks {
  grid-area: picks;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-picks[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-picks[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-picks__loading {
  grid-column: 1 / -1;
  padding: 24px 12px;
  color: #d7e8f8;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(80px, 1fr) auto auto;
  min-width: 0;
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b9d4ef;
  border-radius: 16px;
  background: #f3f8ff;
  color: #102c50;
  box-shadow: 0 6px 14px #00112622;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__header {
  position: relative;
  z-index: 2;
  min-height: 46px;
  padding: 5px 10px 4px;
  border-bottom: 1px solid #d7e5f3;
  background: linear-gradient(180deg, #fff, #f4f8fd);
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__header > span {
  display: block;
  margin-bottom: 3px;
  color: #1677c8;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__header h3 {
  margin: 0;
  color: #102c50;
  font-size: clamp(13px, 1.12vw, 16px);
  font-weight: 950;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__watermark {
  position: absolute;
  z-index: -1;
  right: 5px;
  bottom: 24px;
  width: 132px;
  height: 132px;
  object-fit: contain;
  opacity: .09;
  pointer-events: none;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__watermark.is-second { right: auto; left: 5px; opacity: .055; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 2px 8px 4px;
  overflow: hidden;
  background: linear-gradient(110deg, #e7f2ffb8, #ffffffb8 48%, #fff0f0a8);
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__player {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  text-align: center;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__portrait {
  display: block;
  width: min(100%, 102px);
  height: 80px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 5px #07182e38);
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__stage:not(.is-duel) .bbd-battle-pick__portrait { width: min(100%, 112px); height: 84px; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__player b {
  max-width: 100%;
  color: #0d2d54;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__player small { color: #607d9a; font-size: 9px; font-weight: 850; line-height: 1; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__vs {
  align-self: center;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 10px;
  border-radius: 50%;
  background: #0b3769;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 0 3px 9px #07182e30;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__placeholder {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: auto auto 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a70b7, #0a294e);
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__empty { color: #637d98; font-size: 13px; font-weight: 800; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choices {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 8px 5px;
  background: #f3f8ff;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid #b7cde3;
  border-radius: 11px;
  background: #fff;
  color: #123355;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice b { min-width: 0; font-size: 12px; font-weight: 950; line-height: 1.12; overflow-wrap: break-word; word-break: normal; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__percent { flex: 0 0 auto; color: #68819b; font-size: 10px; font-weight: 900; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice:hover { transform: translateY(-1px); border-color: #1677c8; background: #e6f3ff; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice.is-selected { border-color: #147bd0; background: #147bd0; color: #fff; box-shadow: inset 0 0 0 1px #fff4; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice.is-selected .bbd-battle-pick__percent { color: #d5edff; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice:disabled { cursor: default; transform: none; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice:focus-visible,
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > a:focus-visible { outline: 3px solid #e8445c; outline-offset: 2px; }
.bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__state {
  position: relative;
  z-index: 2;
  min-height: 16px;
  margin: 0;
  padding: 0 9px 3px;
  background: #f3f8ff;
  color: #176cb0;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

@media (max-width: 1050px) and (min-width: 641px) {
  .bbd-battle-widget[data-battle-scope="nba"] { padding: 6px; gap: 6px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-picks { gap: 8px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__header { padding-inline: 10px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__header h3 { font-size: 13px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__portrait { height: 80px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice { padding-inline: 7px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice b { font-size: 11px; }
}
/* Keep the three pick cards readable on narrow layouts, even when the page
   sits inside a wide desktop viewport or a scaled in-app browser. */
@media (max-width: 1050px) {
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-picks {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #80b9e8 #ffffff22;
    padding-bottom: 5px;
  }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick,
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-picks[data-count="1"] .bbd-battle-pick,
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-picks[data-count="2"] .bbd-battle-pick {
    flex: 0 0 min(88%, 420px);
    min-width: 285px;
    scroll-snap-align: start;
  }
}
@media (max-width: 640px) {
  .bbd-battle-widget[data-battle-scope="nba"] { gap: 7px; padding: 8px; border-radius: 16px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "meta cta" "title cta" "tagline tagline";
    column-gap: 8px;
    row-gap: 2px;
    min-height: 54px;
  }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > span { font-size: 9px; }
  .bbd-battle-widget[data-battle-scope="nba"] h2 { font-size: 19px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__tagline { font-size: 11px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > a { min-height: 38px; padding: 0 9px; font-size: 10px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick { min-height: 214px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__header { min-height: 58px; padding: 8px 10px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__header h3 { font-size: 15px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__stage { min-height: 96px; padding-block: 1px 3px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__portrait { height: 88px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__stage:not(.is-duel) .bbd-battle-pick__portrait { height: 96px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__player b { font-size: 13px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice { min-height: 48px; padding: 7px 8px; }
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice b { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-widget__brand > a,
  .bbd-battle-widget[data-battle-scope="nba"] .bbd-battle-pick__choice { transition: none; }
}
