/* BK Sports v51 — league chip row (multi-select, scrollable), setup flow, Redo setup. */
.bkx-chipwrap { position: relative; min-width: 0; flex: 1 1 auto; max-width: 100%; }
html .league-chips.bkx-chiprow {
  display: flex !important; flex-wrap: nowrap !important; gap: 4px !important; overflow-x: auto; overflow-y: hidden;
  grid-template-columns: unset !important; scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  margin: 2px 0 6px !important; padding: 2px 0 !important; background: transparent !important; border: 0 !important;
}
html .league-chips.bkx-chiprow::-webkit-scrollbar { display: none; }
.bkx-chipwrap.fade-r .bkx-chiprow { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); }
.bkx-chipwrap.fade-l .bkx-chiprow { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px); mask-image: linear-gradient(90deg, transparent, #000 22px); }
.bkx-chipwrap.fade-l.fade-r .bkx-chiprow { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 34px), transparent); }
html .league-chips.bkx-chiprow button {
  flex: 0 0 auto; height: 34px !important; padding: 0 15px !important; border-radius: 10px !important;
  font: inherit; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0.05em !important;
  background: transparent !important; color: var(--muted) !important; border: 1px solid transparent !important; box-shadow: none !important;
  scroll-snap-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
html .league-chips.bkx-chiprow button.on {
  background: rgba(143, 166, 188, 0.18) !important; color: #E9EFF5 !important; border-color: rgba(143, 166, 188, 0.38) !important; font-weight: 800 !important;
}
html[data-theme="light"] .league-chips.bkx-chiprow button,
[data-theme="light"] .league-chips.bkx-chiprow button {
  background: #fff !important;
  color: #5C6358 !important;
  border: 1px solid rgba(20,24,16,0.22) !important;
}
html[data-theme="light"] .league-chips.bkx-chiprow button.on,
[data-theme="light"] .league-chips.bkx-chiprow button.on {
  background: #161814 !important;
  color: #F7F7F4 !important;
  border-color: #161814 !important;
  font-weight: 800 !important;
}
.league-chips.bkx-chiprow button:focus-visible { outline: 2px solid #8FA6BC; outline-offset: 2px; }
.bkx-shake { animation: bkxShake .28s ease; }
@keyframes bkxShake { 0%,100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* Setup flow */
.bkx-setup {
  position: absolute; inset: 0; z-index: 85; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
}
.bkx-setup.hidden { display: none; }
.bkx-su-head { display: flex; align-items: center; gap: 10px; padding: max(8px, calc(var(--safe-top, 54px) - 6px)) 16px 10px; }
.bkx-su-head .brand-mark { width: 28px; min-width: 28px; height: 28px; border-radius: 8px; font-size: 11px; display: grid; place-items: center; }
.bkx-su-back { width: 32px; height: 32px; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; padding: 0; border-radius: 8px; cursor: pointer; }
.bkx-su-title { font-size: 14px; font-weight: 800; flex: 1; }
.bkx-su-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.bkx-su-skip { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 800; text-decoration: underline; padding: 6px 2px; cursor: pointer; }
.bkx-su-skip[hidden] { display: none; }
.bkx-su-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 16px 6px; }
.bkx-su-prog i { height: 4px; border-radius: 3px; background: var(--card-2); }
.bkx-su-prog i.on { background: var(--volt-text); }
.bkx-su-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 24px; -webkit-overflow-scrolling: touch; }
.bkx-su-body h2 { font-size: 24px; line-height: 1.2; font-weight: 800; margin: 4px 0 8px; letter-spacing: -0.01em; }
.bkx-su-lead { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.bkx-su-lab { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; margin: 16px 0 8px; text-transform: uppercase; }
.bkx-su-lab span { text-transform: none; font-weight: 600; letter-spacing: 0; }
.bkx-su-note { font-size: 13.5px; color: var(--muted); margin: 10px 0; line-height: 1.45; }
.bkx-su-foot { flex-shrink: 0; padding: 12px 16px max(12px, var(--sab, env(safe-area-inset-bottom, 0px))); }
.bkx-primary {
  width: 100%; height: 50px; border: 0; border-radius: 14px; font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer;
  background: #D8FF3E; color: #15180A;
}
.bkx-primary:disabled { opacity: 0.45; cursor: default; }
.bkx-input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--elev);
  color: var(--text); font: inherit; font-size: 15px; outline: none; -webkit-appearance: none; appearance: none;
}
.bkx-input:focus { border-color: var(--volt-text); }
.bkx-zip { font-size: 22px; font-weight: 800; letter-spacing: 0.12em; height: 54px; }
.bkx-lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bkx-lg-card {
  position: relative; text-align: left; min-height: 84px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
}
.bkx-lg-card b { font-size: 19px; font-weight: 800; letter-spacing: 0.04em; }
.bkx-lg-card small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bkx-lg-card.on { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.bkx-lg-card.on small { color: var(--volt-ink); opacity: 0.85; }
.bkx-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.bkx-lg-card .bkx-check { position: absolute; top: 12px; right: 12px; }
.on > .bkx-check { background: var(--volt-ink); border-color: var(--volt-ink); }
.on > .bkx-check::after { content: ""; width: 8px; height: 5px; border-left: 2px solid var(--volt); border-bottom: 2px solid var(--volt); transform: translateY(-1px) rotate(-45deg); }
.bkx-row.on > .bkx-check { background: var(--volt); border-color: var(--volt); }
.bkx-row.on > .bkx-check::after { border-color: var(--volt-ink); }
.bkx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bkx-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.bkx-chip img { width: 20px; height: 20px; object-fit: contain; }
.bkx-chip.on { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.bkx-chip.small { height: 30px; font-size: 12.5px; }
.bkx-chip em { font-style: normal; font-weight: 800; opacity: 0.8; margin-left: 2px; }
.bkx-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bkx-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; text-align: left; width: 100%; cursor: pointer;
}
.bkx-row.on { border-color: var(--volt-text); }
.bkx-face { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--card-2); flex-shrink: 0; display: grid; place-items: center; }
.bkx-face img { width: 100%; height: 100%; object-fit: cover; }
.bkx-av { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); color: var(--text); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.bkx-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bkx-row-txt b { font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkx-row-txt small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bkx-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.bkx-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--card-2); color: var(--muted); }
.bkx-tag.t-social { background: var(--tag-bsky-bg); color: var(--tag-bsky); }
.bkx-follow {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; flex-shrink: 0;
}
.bkx-follow.on { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.bkx-src { cursor: default; }

/* You're all set card + Redo setup */
.bkx-allset {
  display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--volt-dim); border: 1px solid var(--volt); color: var(--text);
}
.bkx-allset > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bkx-allset b { font-size: 14.5px; font-weight: 800; }
.bkx-allset span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bkx-allset-x { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer; }
.bkx-redo {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; margin: 0 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--elev); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
}

/* v82.13.6: never collapse the league chip row (Saved on Social still hides it). */
#screen-social:not(.is-saved) .bkx-chipwrap,
#screen-home .bkx-chipwrap {
  display: block !important;
  visibility: visible !important;
  min-height: 28px;
}
#screen-social:not(.is-saved) .league-chips.bkx-chiprow,
#screen-home .league-chips.bkx-chiprow {
  display: flex !important;
  visibility: visible !important;
  min-height: 28px;
}

.bkx-setup.bkx-setup-inline {
  position: relative;
  inset: auto;
  z-index: 1;
  min-height: 100%;
  background: var(--bg);
}
.bkx-setup-inline .bkx-su-head { padding-top: 8px; }
.bkx-su-follows-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  padding: 4px 2px 8px;
  cursor: pointer;
  text-align: center;
}
.bkx-su-follows-link[hidden] { display: none; }
.v162-setup-wrap { min-height: 70vh; display: flex; flex-direction: column; }

.bkx-row.bkx-src.has-pay { flex-wrap: wrap; }
.bkx-su-pay {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  padding: 0 4px 2px 44px;
  font-size: 13px;
  color: var(--ink-2, rgba(255,255,255,0.72));
}
.bkx-su-pay .tog {
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,0.14);
  position: relative;
  cursor: pointer;
  padding: 0;
}
.bkx-su-pay .tog i,
.bkx-su-pay .tog::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #fff;
  transition: left 0.16s ease;
}
.bkx-su-pay .tog.on { background: var(--volt, #c8f542); }
.bkx-su-pay .tog.on i,
.bkx-su-pay .tog.on::after { left: 19px; }
[data-theme="light"] .bkx-su-pay { color: rgba(0,0,0,0.62); }
[data-theme="light"] .bkx-su-pay .tog { background: rgba(0,0,0,0.14); }

.bkx-su-zipblock { margin: 0 0 16px; padding: 0; border: 0; }
.bkx-su-zipblock .bkx-zip { height: 48px; font-size: 18px; }
.bkx-su-zipblock .bkx-zip { margin-top: 0; }
