/* BK Sports v58 — Players tab list + Social Saved pill. */
#screen-players .pl-row .tap-badge,
#screen-players .pl-row .tap-chev { display: none !important; }

#screen-players .home-head { flex-shrink: 0; padding: 10px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
#screen-players .scroll { padding: 4px 16px calc(var(--tab-h, 88px) + var(--sab, env(safe-area-inset-bottom, 0px)) + 12px); min-height: 0; -webkit-overflow-scrolling: touch; }

.page-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 0;
}
.page-title-row.is-actions { align-items: center; }
.page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}
.page-count {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
}
.title-block { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.title-block .page-count { display: block; }
.title-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.pl-list { padding-top: 2px; }
.pl-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px 11px;
  margin: 0 0 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pl-row:active { transform: scale(0.99); }
.pl-body { flex: 1; min-width: 0; }
.pl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pl-name { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.pl-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.pl-line { margin-top: 6px; font-size: 13px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); line-height: 1.35; }
.pl-line .lab, .pl-next .lab { color: var(--faint, var(--muted)); font-weight: 600; }
.pl-next { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.pl-next.is-live { color: var(--text); }
.pl-next.is-live .lab { color: var(--coral, #e25b4c); }
.pl-row .inj {
  flex-shrink: 0;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(201, 162, 39, 0.18);
  color: #E4C15A;
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
}
html[data-theme="light"] .pl-row .inj {
  background: rgba(160, 120, 20, 0.12);
  color: #8A6510;
}

.pl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 36px 80px;
  gap: 12px;
}
.pl-empty .empty-ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--elev);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--slate, var(--muted));
  margin-bottom: 4px;
}
.pl-empty .empty-ico svg { width: 28px; height: 28px; }
.pl-empty p {
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 550;
  color: var(--muted);
  max-width: 270px;
  margin: 0;
}
.pl-search-entry {
  margin-top: 4px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--bkx-sel-border, var(--line));
  background: var(--bkx-sel-bg, var(--elev));
  color: var(--bkx-sel-ink, var(--text));
  font-size: 13.5px;
  font-weight: 800;
}

/* Saved pill on Social & News */
#bkx-saved-pill,
.saved-pill {
  flex-shrink: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--bkx-off-border, var(--line));
  background: transparent;
  color: var(--bkx-off-ink, var(--muted));
  font-size: 13px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#bkx-saved-pill svg,
.saved-pill svg { width: 15px; height: 15px; display: block; }
#bkx-saved-pill.on,
.saved-pill.on {
  background: var(--bkx-sel-bg);
  color: var(--bkx-sel-ink);
  border-color: var(--bkx-sel-border);
  font-weight: 800;
}
#bkx-saved-pill.on svg,
.saved-pill.on svg { fill: currentColor; }
#bkx-saved-pill.bkx-pulse,
#bkx-saved-pill.bkx-pulse svg,
.tabbar .tab.bkx-pulse svg { animation: bkxPulse .8s ease; }

#screen-social .page-title-row { margin: 4px 0 2px; }
#screen-social.is-saved .fm-row,
#screen-social.is-saved .fm-sub,
#screen-social.is-saved .fresh-wrap,
#screen-social.is-saved .soc-scroll { display: none !important; }
#screen-social .bkx-sv-scroll { display: none; }
#screen-social.is-saved .bkx-sv-scroll,
#screen-social .bkx-sv-scroll:not([hidden]) { display: block; flex: 1; min-height: 0; overflow: auto; }
#screen-social.is-saved .bkx-sv-scroll { display: block; }
#screen-social #soc-saved-search { flex: 1; min-width: 0; }

/* Compact header on the Players tab (same as Social / Home). */
#screen-players .home-row1 { display: flex; align-items: center; gap: 8px; }
#screen-players .home-row1 .brand-mark { width: 28px; min-width: 28px; height: 28px; padding: 0; border-radius: 8px; font-size: 11px; letter-spacing: 0.02em; }
#screen-players .home-row1 .search-pill { flex: 1; min-width: 0; margin: 0; height: 36px; padding: 0 12px; width: auto; border-radius: 10px; }
#screen-players .home-row1 .theme-toggle,
#screen-players .home-row1 .head-settings { width: 36px; height: 36px; flex-shrink: 0; }

/* Saved mode: never show both search pills or both source filters. */
#screen-social.is-saved #soc-search-open,
#screen-social:not(.is-saved) #soc-saved-search,
#screen-social.is-saved #soc-src-type-wrap,
#screen-social:not(.is-saved) #bkx-sv-type-wrap,
#screen-social [hidden] { display: none !important; }

/* v82.18 — Teams & Players tab: 3-way pill, team accordion, no page title */
#screen-players .page-title-row { display: none !important; }
#screen-players.is-lineup .league-chips,
#screen-players.is-lineup .bkx-chipwrap { display: flex !important; }
#screen-players.is-lineup #bkx-pl-count { display: none !important; }
#screen-players.is-lineup #bkx-pl-list,
#screen-players.is-lineup #bkx-tm-list { display: none !important; }
#screen-players.is-teams #bkx-pl-list,
#screen-players.is-teams #bkx-lu-root { display: none !important; }
#screen-players.is-players #bkx-tm-list,
#screen-players.is-players #bkx-lu-root { display: none !important; }
#screen-players:not(.is-lineup):not(.is-teams):not(.is-players) #bkx-lu-root { display: none !important; }

#bkx-pl-mode { display: flex; width: 100%; margin: 0; padding: 2px; gap: 2px; }
#bkx-pl-mode button { flex: 1; min-width: 0; }

.tm-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.tm-hub {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.tm-row {
  display: flex; align-items: center; gap: 0; width: 100%;
  text-align: left; background: transparent; color: var(--text);
  border: 0; padding: 0;
  font: inherit;
}
.tm-main {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  text-align: left; background: transparent; color: inherit;
  border: 0; padding: 10px 0 10px 14px;
  font: inherit;
  cursor: pointer;
}
.tm-caret-btn {
  position: relative;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: flex-end;
  margin: 0;
  padding: 10px 14px 10px 4px;
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}
.tm-caret-btn::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 44px;
}
.tm-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.tm-logo-fb {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--elev); font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
}
.tm-who { min-width: 0; flex: 1; }
.tm-who b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tm-who > span { display: block; margin-top: 2px; font-size: 12px; font-weight: 650; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-who .lab { color: var(--faint, var(--muted)); font-weight: 600; }
.tm-rec { flex-shrink: 0; font-size: 13px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); padding-left: 6px; }
.tm-rec.is-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; }
.tm-rec.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #E85D4C; display: block; }
.tm-caret { width: 12px; height: 12px; color: currentColor; flex-shrink: 0; margin: 0; display: block; position: relative; z-index: 1; pointer-events: none; }
.tm-hub.is-open .tm-caret { transform: rotate(180deg); }
.tm-panel { border-top: 1px solid var(--line); }
.tm-loading, .tm-empty, .tm-empty-card { padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tm-empty-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.tm-empty-card b { display: block; color: var(--text); font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.tm-empty-card span { display: block; margin-bottom: 10px; }
.tm-sec { border-top: 1px solid var(--line); padding: 6px 14px 8px; }
.tm-hub .tm-sec:first-child { border-top: 0; }
.tm-lab {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 4px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.tm-lab i { font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 650; }
.tm-sked { display: flex; flex-direction: column; gap: 2px; }
.tm-sk-row { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 12.5px; font-weight: 650; letter-spacing: -0.01em; }
.tm-sk-opp { flex: 1; min-width: 0; }
.tm-sk-row.is-next .tm-sk-opp { font-weight: 700; }
.tm-sk-when { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }
.tm-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  font-size: 9px; font-weight: 800;
}
.tm-tag.l { background: rgba(255,138,138,0.16); color: var(--loss, #FF8A8A); }
.tm-tag.w { background: rgba(125,255,154,0.16); color: var(--win, #7DFF9A); }
html[data-theme="light"] .tm-tag.l { background: rgba(180,35,24,0.12); color: #B42318; }
html[data-theme="light"] .tm-tag.w { background: rgba(14,122,58,0.12); color: #0E7A3A; }
.tm-tag.next { width: auto; padding: 0 5px; background: var(--elev); color: var(--muted); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }
.tm-stand { width: 100%; border-collapse: collapse; }
.tm-stand td { font-size: 12px; font-weight: 650; text-align: right; padding: 1.5px 0; color: var(--muted); line-height: 1.2; }
.tm-stand td:first-child, .tm-stand td:nth-child(2) { text-align: left; }
.tm-stand td:nth-child(2) { font-weight: 800; color: var(--text); }
.tm-stand td.rk { width: 18px; color: var(--muted); font-weight: 700; }
.tm-stand td.gb { width: 36px; }
.tm-stand tr.you td { color: var(--text); font-weight: 800; padding-left: 6px; padding-right: 6px; }
.tm-stand tr.you { background: rgba(216,255,62,0.08); }
.tm-stand tr.you td:first-child { border-radius: 6px 0 0 6px; }
.tm-stand tr.you td:last-child { border-radius: 0 6px 6px 0; }
html[data-theme="light"] .tm-stand tr.you { background: rgba(47,94,0,0.10); }
.tm-inj-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline;
  padding: 3px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.tm-inj-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.tm-inj-row b { font-weight: 750; letter-spacing: -0.01em; }
.tm-inj-row .pos { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tm-inj-row .st { font-size: 11.5px; font-weight: 800; color: var(--amber, #FFC45A); }
.tm-inj-more { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tm-leads { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.tm-lead { background: var(--elev); border-radius: 10px; padding: 5px 8px 6px; min-width: 0; }
.tm-lead .k { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tm-lead .v { display: block; margin-top: 1px; font-size: 15px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.tm-lead .n { display: block; margin-top: 1px; font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-news { display: flex; flex-direction: column; gap: 5px; }
.tm-news-item { text-align: left; border: 0; background: transparent; color: var(--text); font: inherit; padding: 0; cursor: pointer; }
.tm-news-item b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12.5px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.3; }
.tm-news-item span { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* v82.18 — compact Add rows under Teams / Players lists (plain, no chevron) */
.tm-add, .pl-add {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 6px;
  margin: 2px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tm-add:active, .pl-add:active { color: var(--text); }

/* v82.18.1 — collapsed row never left blank while meta loads */
.tm-who i.tm-skel { font-style: normal; font-weight: 600; color: var(--faint, var(--muted)); }
.tm-rec.tm-skel-rec {
  min-width: 2.25em; height: 0.85em; border-radius: 4px;
  background: var(--elev); align-self: center; opacity: 0.85;
}
