/* =========================================================================
   SportBaseline — global stylesheet (v3 — full-width, density, sortable)
   ========================================================================= */
:root {
  --bb-bg:        #fafbfc;
  --bb-bg-soft:   #f3f4f6;
  --bb-bg-card:   #ffffff;
  --bb-line:      #e5e7eb;
  --bb-line-2:    #d1d5db;
  --bb-text:      #111827;
  --bb-text-soft: #4b5563;
  --bb-muted:     #6b7280;
  --bb-accent:    #ea580c;
  --bb-accent-2:  #fb923c;
  --bb-accent-3:  #c2410c;
  --bb-success:   #059669;
  --bb-warn:      #d97706;
  --bb-danger:    #dc2626;
  --bb-radius:    10px;
  --bb-shadow:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --bb-shadow-lg: 0 10px 30px rgba(0,0,0,.08);

  --bb-header-h: 60px;
  --bb-pad-x:    24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--bb-text);
  background: var(--bb-bg);
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--bb-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.2; margin: 0 0 .5em; color: #0b1220; font-weight: 800; }

/* container — centered, max ~80% on large screens */
.bb-container { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 var(--bb-pad-x); }
.bb-main      { min-height: 60vh; flex: 1 0 auto; }
.bb-footer    { flex-shrink: 0; }

/* ---------- header ---------- */
.bb-header {
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--bb-line);
  position: sticky; top: 0; z-index: 50;
}
.bb-header__inner {
  width: 100%; max-width: none; margin: 0;
  padding: 0 28px;
  display: flex; align-items: center; gap: 18px;
  height: var(--bb-header-h);
}
.bb-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.55rem; letter-spacing: -0.02em;
  color: var(--bb-text); margin-right: 16px;
}
.bb-logo:hover { text-decoration: none; }
.bb-logo__text { display: inline-flex; align-items: baseline; line-height: 1; }
.bb-logo__sport    { color: #0b1220; font-weight: 800; }
.bb-logo__baseline { color: var(--bb-accent); font-weight: 800; }
.bb-search-wrap, .bb-search { margin-left: auto; }
@media (max-width: 900px) {
  .bb-logo { font-size: 1.3rem; margin-right: 8px; }
  .bb-header__inner { padding: 0 16px; }
}
.bb-logo__mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--bb-accent) 0%, var(--bb-accent-3) 100%);
  color: #fff; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 900; letter-spacing: -0.5px;
  box-shadow: 0 4px 10px rgba(22,163,74,.25);
}
.bb-nav { display: flex; gap: 2px; flex: 1; align-items: center; }
.bb-nav__link, .bb-nav__dropdown button {
  color: var(--bb-text); padding: 7px 12px; border-radius: 6px;
  font-weight: 600; font-size: .88rem; background: transparent;
  border: 0; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.bb-nav__link:hover, .bb-nav__dropdown button:hover { background: var(--bb-bg-soft); text-decoration: none; }
.bb-nav__link.is-active, .bb-nav__dropdown button.is-active { background: transparent; color: var(--bb-text); }

.bb-nav__dropdown { position: relative; }
.bb-nav__menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid var(--bb-line); border-radius: 10px;
  min-width: 210px; padding: 6px; box-shadow: var(--bb-shadow-lg);
  z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .12s, transform .12s, visibility .12s;
}
.bb-nav__dropdown.is-open .bb-nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.bb-nav__menu a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--bb-text); font-size: .86rem; font-weight: 500;
}
.bb-nav__menu a:hover { background: var(--bb-bg-soft); text-decoration: none; color: var(--bb-accent); }

/* mega menu */
.bb-nav__dropdown--mega { position: relative; }
.bb-nav__dropdown--mega .bb-mega {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  transform: translateY(-4px);
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 12px;
  padding: 22px 8px;
  display: grid;
  gap: 0;
  box-shadow: var(--bb-shadow-lg);
  z-index: 100;
  opacity: 0; visibility: hidden;
  transition: opacity .14s, transform .14s, visibility .14s;
}
.bb-nav__dropdown--mega .bb-mega[data-cols="2"] { grid-template-columns: repeat(2, minmax(220px, 260px)); width: 540px; }
.bb-nav__dropdown--mega .bb-mega[data-cols="3"] { grid-template-columns: repeat(3, minmax(220px, 260px)); width: 800px; }
.bb-nav__dropdown--mega .bb-mega[data-cols="4"] { grid-template-columns: repeat(4, minmax(210px, 240px)); width: 1000px; }
.bb-nav__dropdown--mega.is-open .bb-mega {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.bb-mega__col { padding: 0 14px; display: flex; flex-direction: column; }
.bb-mega__col + .bb-mega__col { border-left: 1px solid var(--bb-line); }
.bb-mega__title {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--bb-muted); text-transform: uppercase;
  margin: 0 0 12px 8px;
  font-family: 'Inter', sans-serif;
}
.bb-mega__col a {
  display: block; padding: 8px 8px; border-radius: 6px;
  color: var(--bb-text); font-size: .85rem;
  text-decoration: none;
}
.bb-mega__col a:hover { background: var(--bb-bg-soft); text-decoration: none; }
.bb-mega__col a:hover .bb-mega__name { color: var(--bb-accent); }
.bb-mega__name { display: block; font-weight: 600; line-height: 1.25; }
.bb-mega__desc {
  display: block; font-size: .76rem; color: var(--bb-muted);
  margin-top: 2px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-mega__viewall {
  color: var(--bb-accent) !important; font-weight: 600 !important;
  font-size: .8rem !important; margin-top: auto;
  padding-top: 10px !important; padding-bottom: 4px !important;
}
.bb-mega__viewall:hover { background: transparent !important; text-decoration: underline !important; }

/* smart paginator */
.bb-pager {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
  margin: 24px 0;
}
.bb-pager__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--bb-line); border-radius: 8px;
  background: #fff; color: var(--bb-text);
  font-size: .88rem; font-weight: 600; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.bb-pager__btn:hover {
  background: var(--bb-bg-soft); border-color: var(--bb-line-2);
  text-decoration: none; color: var(--bb-accent);
}
.bb-pager__btn.is-current {
  background: var(--bb-accent); color: #fff; border-color: var(--bb-accent);
  cursor: default;
}
.bb-pager__btn.is-disabled {
  color: var(--bb-muted); background: #f9fafb; cursor: not-allowed;
  border-color: var(--bb-line);
}
.bb-pager__ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 38px; color: var(--bb-muted);
  user-select: none;
}

.bb-hamburger { display: none; background: none; border: 0; cursor: pointer; width: 36px; height: 36px; padding: 8px; flex-direction: column; gap: 4px; }
.bb-hamburger span { display: block; height: 2px; background: var(--bb-text); border-radius: 2px; transition: transform .2s; }
.bb-hamburger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bb-hamburger.is-active span:nth-child(2) { opacity: 0; }
.bb-hamburger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.bb-search-wrap { position: relative; }
.bb-search { display: flex; align-items: center; gap: 6px; }
.bb-search input {
  border: 1px solid var(--bb-line-2); padding: 8px 14px; border-radius: 999px;
  font: inherit; width: 240px; outline: none; background: var(--bb-bg-soft); transition: all .2s;
}
.bb-search input:focus { border-color: var(--bb-accent); background: #fff; box-shadow: 0 0 0 4px rgba(21,128,61,.08); }
.bb-search button,
.bb-search button[type="submit"] {
  width: 38px !important; height: 38px !important;
  padding: 0 !important;
  border: 0 !important; border-radius: 50% !important;
  background: var(--bb-accent) !important; color: #fff !important;
  cursor: pointer; font-size: 1rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(21,128,61,.4);
  transition: transform .12s, filter .15s;
  flex-shrink: 0;
}
.bb-search button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.bb-ac-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: 420px;
  background: #fff; border: 1px solid var(--bb-line); border-radius: 12px;
  box-shadow: var(--bb-shadow-lg); display: none; z-index: 200;
  max-height: 480px; overflow-y: auto;
}
.bb-ac-section { padding: 8px 14px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--bb-muted); background: var(--bb-bg-soft); }
.bb-ac-results a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-top: 1px solid var(--bb-line);
  color: var(--bb-text);
}
.bb-ac-results a:hover { background: var(--bb-bg-soft); text-decoration: none; }
.bb-ac-results img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: #f3f4f6; flex-shrink: 0; }
.bb-ac-results strong { display: block; font-size: .88rem; }
.bb-ac-results span   { display: block; font-size: .74rem; color: var(--bb-muted); }

/* ---------- buttons ---------- */
.bb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; font-weight: 600;
  border: 1px solid var(--bb-line-2); background: #fff; color: var(--bb-text);
  cursor: pointer; font-size: .88rem; transition: all .15s;
}
.bb-btn:hover { background: var(--bb-bg-soft); text-decoration: none; }
.bb-btn--primary {
  background: linear-gradient(135deg, var(--bb-accent) 0%, var(--bb-accent-3) 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(22,163,74,.2);
}
.bb-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22,163,74,.3); }
.bb-btn--ghost { background: transparent; border-color: var(--bb-line); }
.bb-btn--sm { padding: 6px 12px; font-size: .78rem; }

/* ---------- hero (home) ---------- */
.bb-hero {
  position: relative;
  color: #fff;
  padding: 60px 0 50px;
  min-height: calc(80vh - 400px);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.bb-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: url('../img/hero-basketball.webp');
  background-size: cover; background-position: center;
  filter: saturate(1.05) contrast(1.05);
}
.bb-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(3,7,18,.55) 0%, rgba(3,7,18,.4) 45%, rgba(3,7,18,.88) 100%);
}
.bb-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 18px;
  color: #fff; letter-spacing: -1px; font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.bb-hero p  { font-size: 1.15rem; opacity: .9; max-width: 720px; margin: 0 auto 36px; }
.bb-hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 880px; margin: 40px auto 0;
}
.bb-hero__stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.bb-hero__stat strong {
  display: block; font-size: 1.7rem; font-weight: 800; font-family: 'Sora', sans-serif;
  color: #fff;
}
.bb-hero__stat span { font-size: .72rem; opacity: .7; text-transform: uppercase; letter-spacing: 1.5px; }
.bb-hero__search { max-width: 680px; margin: 0 auto; display: flex; gap: 8px; }
.bb-hero__search input {
  flex: 1; padding: 16px 22px; border: 0; border-radius: 999px;
  font: inherit; font-size: 1rem; outline: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.bb-hero__search button {
  padding: 16px 32px; border: 0; border-radius: 999px;
  background: #fff; color: #111827; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
@media (max-width: 700px) {
  .bb-hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- page hero (interior pages) ---------- */
.bb-page-hero {
  background: #fff;
  color: var(--bb-fg);
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--bb-line);
}
.bb-page-hero h1 { color: var(--bb-fg); font-size: 1.85rem; margin: 0 0 4px; letter-spacing: -.5px; font-weight: 800; }
.bb-page-hero p  { color: #111827; font-size: 1.05rem; margin: 0; font-weight: 500; }
.bb-page-hero__meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; font-size: .85rem; color: var(--bb-muted); }
.bb-page-hero__meta strong { color: var(--bb-fg); font-weight: 700; }

/* In-page country / league switcher (sits between breadcrumb and h1 on competition profile). */
.bb-comp-switcher { display: inline-block; position: relative; margin: 8px 0 6px; }
.bb-comp-switcher > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: #f3f4f6; border: 1px solid var(--bb-line); border-radius: 18px;
  font-size: .82rem; font-weight: 600; color: var(--bb-fg); user-select: none;
}
.bb-comp-switcher > summary::-webkit-details-marker { display: none; }
.bb-comp-switcher > summary:hover { background: #e5e7eb; }
.bb-comp-switcher > summary img { height: 14px; width: auto; border-radius: 2px; }
.bb-comp-switcher__count { color: var(--bb-muted); font-weight: 500; font-size: .76rem; }
.bb-comp-switcher__chev { font-size: .7rem; color: var(--bb-muted); transition: transform .15s; }
.bb-comp-switcher[open] > summary .bb-comp-switcher__chev { transform: rotate(180deg); }
.bb-comp-switcher__menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  background: #fff; border: 1px solid var(--bb-line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  min-width: 280px; max-width: 360px; max-height: 60vh; overflow-y: auto; padding: 4px;
}
.bb-comp-switcher__menu a {
  display: flex; flex-direction: column; padding: 8px 12px; border-radius: 6px;
  text-decoration: none; color: var(--bb-fg);
}
.bb-comp-switcher__menu a:hover { background: #f3f4f6; }
.bb-comp-switcher__menu a.is-current { background: #e0f2fe; color: #0c4a6e; }
.bb-comp-switcher__menu a.is-current::after { content: ' ✓'; }
.bb-comp-switcher__name { font-weight: 600; font-size: .88rem; }
.bb-comp-switcher__meta { color: var(--bb-muted); font-size: .72rem; margin-top: 1px; }

/* Inverted variant for hero sections with a dark/gradient background (continent pages). */
.bb-page-hero--dark { color: #fff; border-bottom: 0; }
.bb-page-hero--dark h1 { color: #fff; }
.bb-page-hero--dark p { color: rgba(255, 255, 255, .92); }
.bb-page-hero--dark .bb-breadcrumb { color: rgba(255, 255, 255, .75); }
.bb-page-hero--dark .bb-breadcrumb:hover { color: #fff; }
.bb-page-hero--dark .bb-page-hero__meta { color: rgba(255, 255, 255, .8); }
.bb-page-hero--dark .bb-page-hero__meta strong { color: #fff; }
.bb-breadcrumb {
  color: var(--bb-muted); font-size: .8rem; font-weight: 600;
  display: inline-block; margin-bottom: 10px;
}
.bb-breadcrumb:hover { color: var(--bb-fg); text-decoration: none; }

/* ---------- section ---------- */
.bb-section { padding: 48px 0; }
.bb-section--soft { background: var(--bb-bg-soft); }
.bb-section--narrow { padding: 28px 0 8px; }

/* Wikipedia-sourced intro paragraph at top of competition pages */
.bb-intro {
  max-width: 880px;
  background: #fff;
  border: 1px solid var(--bb-border, #e5e7eb);
  border-left: 3px solid var(--bb-accent, #15803d);
  border-radius: 8px;
  padding: 22px 26px 18px;
}
.bb-intro__title { font-size: 1.15rem; margin: 0 0 10px; color: #111827; }
.bb-intro__body  { font-size: 1rem; line-height: 1.6; color: #1f2937; }
.bb-intro__body p { margin: 0 0 10px; }
.bb-intro__body p:last-child { margin-bottom: 0; }
.bb-intro__body a { color: var(--bb-accent, #15803d); text-decoration: none; }
.bb-intro__body a:hover { text-decoration: underline; }
.bb-intro__source { font-size: .82rem; color: var(--bb-muted, #6b7280); margin: 14px 0 0; }
.bb-intro__source a { color: var(--bb-muted, #6b7280); text-decoration: underline; }
.bb-section__head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.bb-section__head h2 { font-size: 1.55rem; margin: 0; }
.bb-section__head p  { color: var(--bb-muted); margin: 6px 0 0; font-size: .92rem; }
.bb-section__head a  { font-weight: 600; font-size: .88rem; }

/* ---------- card grids ---------- */
.bb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.bb-card {
  background: var(--bb-bg-card);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  padding: 16px;
  box-shadow: var(--bb-shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.bb-card:hover { transform: translateY(-2px); box-shadow: var(--bb-shadow-lg); border-color: var(--bb-line-2); }

.bb-player-card { display: flex; gap: 14px; align-items: center; }
.bb-player-card img {
  width: 60px; height: 60px; object-fit: cover; object-position: center 20%; border-radius: 50%;
  background: var(--bb-bg-soft); border: 2px solid var(--bb-line);
  flex-shrink: 0;
}
.bb-player-card__name { font-weight: 700; font-size: .98rem; margin: 0; color: var(--bb-text); }
.bb-player-card__meta { font-size: .78rem; color: var(--bb-muted); margin-top: 2px; }
.bb-player-card__value { font-weight: 700; font-size: 1rem; color: var(--bb-success); margin-top: 6px; }

.bb-pos {
  display: inline-block; padding: 0;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  background: transparent !important;
}

/* ---------- featured competition cards (big 6) ---------- */
.bb-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .bb-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .bb-feat-grid { grid-template-columns: 1fr; } }
.bb-feat-card {
  display: block; background: #fff; border: 1px solid var(--bb-line);
  border-radius: 12px; overflow: hidden;
  color: inherit; text-decoration: none; transition: all .15s;
}
.bb-feat-card:hover { transform: translateY(-3px); box-shadow: var(--bb-shadow-lg); text-decoration: none; border-color: var(--bb-accent); }
.bb-feat-card__head {
  padding: 14px 18px; background: var(--bb-bg-soft);
  color: var(--bb-text); display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--bb-line);
}
.bb-feat-card__head h3 { color: var(--bb-text); font-size: 1.02rem; margin: 0; font-weight: 700; }
.bb-feat-card__head small { font-size: .7rem; color: var(--bb-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.bb-feat-card__body { padding: 6px 16px 12px; }
.bb-feat-card__row {
  display: grid;
  grid-template-columns: 22px 32px minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--bb-line);
}
.bb-feat-card__row:last-child { border-bottom: 0; }
.bb-feat-card__row > .bb-table__rank {
  font-size: .78rem; color: var(--bb-muted); font-weight: 600; font-variant-numeric: tabular-nums;
}
.bb-feat-card__row img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  background: #f3f4f6; border: 1px solid var(--bb-line);
}
.bb-feat-card__row__id { min-width: 0; }   /* alias if needed */
.bb-feat-card__row strong {
  display: block;
  font-weight: 700; font-size: .88rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-feat-card__row span {
  display: block;
  font-size: .72rem; color: var(--bb-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.bb-feat-card__row b {
  color: var(--bb-success); font-weight: 800; font-size: 1rem;
  font-variant-numeric: tabular-nums; min-width: 28px; text-align: right;
}

/* ---------- DENSE TABLE (FBref-style modern) ---------- */
.bb-table-wrap {
  background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius);
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
}
.bb-table-toolbar {
  display: flex; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--bb-line); background: var(--bb-bg-soft);
  flex-wrap: wrap; align-items: center;
}
.bb-table-toolbar input {
  flex: 1; min-width: 200px; padding: 7px 12px;
  border: 1px solid var(--bb-line-2); border-radius: 6px; font: inherit; font-size: .85rem;
  background: #fff; outline: none;
}
.bb-table-toolbar input:focus { border-color: var(--bb-accent); }

.bb-table {
  width: 100%; border-collapse: collapse; background: #fff;
  font-size: .82rem;
}
.bb-table th, .bb-table td {
  padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--bb-line);
  vertical-align: middle; white-space: nowrap;
}
.bb-table thead th {
  background: linear-gradient(180deg, var(--bb-bg-soft) 0%, #e5e7eb 100%);
  font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .5px; color: var(--bb-text-soft);
  position: sticky; top: 0; z-index: 2; user-select: none;
}
.bb-th-sortable:hover { background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%); cursor: pointer; }
.bb-th-sortable::after { content: '↕'; opacity: .35; margin-left: 4px; font-size: .85em; }
.bb-th-sortable.is-sorted-asc::after  { content: '↑'; opacity: 1; color: var(--bb-accent); }
.bb-th-sortable.is-sorted-desc::after { content: '↓'; opacity: 1; color: var(--bb-accent); }
.bb-table tbody tr:nth-child(odd)  { background: #fafbfc; }
.bb-table tbody tr:nth-child(even) { background: #fff; }
.bb-table tbody tr:hover { background: #f0fdf4; }
.bb-table tbody tr:last-child td { border-bottom: 0; }
/* numeric column alignment is now opt-in via .num (auto-applied by main.js to numeric columns) */
.bb-table__player { display: flex; align-items: center; gap: 8px; }
.bb-table__player img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--bb-bg-soft); flex-shrink: 0; }
.bb-table__rank { color: var(--bb-muted); font-weight: 700; font-variant-numeric: tabular-nums; }

.bb-table-scroll { max-height: 700px; overflow-y: auto; }

/* ---------- player profile ---------- */
.bb-pp-hero {
  background: linear-gradient(135deg, #052e16 0%, #15803d 50%, #14532d 100%);
  color: #fff; padding: 40px 0;
}
.bb-pp-hero__inner {
  display: grid; grid-template-columns: 220px 1fr 260px;
  gap: 32px; align-items: start;
}
.bb-pp-hero__img {
  width: 220px; height: 220px; border-radius: 18px; object-fit: cover;
  border: 4px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.bb-pp-hero h1 { color: #fff; font-size: 2.6rem; margin: 0 0 8px; letter-spacing: -1px; }
.bb-pp-hero__sub { opacity: .9; font-size: 1rem; margin-bottom: 18px; }
.bb-pp-hero__meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; max-width: 720px; }
.bb-pp-hero__meta div span { display: block; font-size: .68rem; opacity: .65; text-transform: uppercase; letter-spacing: 1px; }
.bb-pp-hero__meta div strong { font-size: 1rem; font-weight: 700; }

/* Right-side stack: market value on top, pitch below */
.bb-pp-hero__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bb-pp-hero__value {
  background: linear-gradient(135deg, rgba(22,163,74,.2) 0%, rgba(34,197,94,.2) 100%);
  padding: 20px 24px; border-radius: 14px; text-align: center;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
}
.bb-pp-hero__value span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: .8; }
.bb-pp-hero__value strong {
  font-size: 2rem; font-weight: 800; font-family: 'Sora', sans-serif;
  background: linear-gradient(135deg, #fff 0%, #86efac 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* tabs */
.bb-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--bb-line); margin: 32px 0 24px;
  overflow-x: auto; overflow-y: hidden;
}
.bb-tabs button {
  border: 0; background: transparent; padding: 10px 12px;
  font: inherit; font-weight: 600; color: var(--bb-muted); font-size: .82rem;
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  white-space: nowrap; line-height: 1.2;
}
.bb-tabs button.is-active {
  color: var(--bb-accent); border-bottom-color: var(--bb-accent);
  background: rgba(21, 128, 61, .08);
  border-radius: 4px 4px 0 0;
}
.bb-tabs button:hover { color: var(--bb-text); background: rgba(0,0,0,.03); }
.bb-tabs button.is-active:hover { background: rgba(21, 128, 61, .12); color: var(--bb-accent); }
.bb-tab { display: none; }
.bb-tab.is-active { display: block; }

/* Sidebar variant — left vertical nav, content right.
   Opt-in by wrapping .bb-tabs + tab panels in .bb-tab-layout. */
.bb-tab-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; margin: 28px 0; }
.bb-tab-layout > .bb-tabs {
  display: flex; flex-direction: column; gap: 2px;
  margin: 0; border-bottom: 0; border-right: 2px solid var(--bb-line);
  padding-right: 0;
  position: sticky; top: 80px; max-height: calc(100vh - 100px);
  overflow-x: hidden; overflow-y: auto;
}
.bb-tab-layout > .bb-tabs button {
  text-align: left; padding: 10px 14px;
  border-bottom: 0; border-right: 3px solid transparent;
  margin: 0 -2px 0 0; border-radius: 4px 0 0 4px;
}
.bb-tab-layout > .bb-tabs button:hover { background: var(--bb-bg-alt, #f9fafb); }
.bb-tab-layout > .bb-tabs button.is-active {
  color: var(--bb-accent); border-right-color: var(--bb-accent);
  background: rgba(21, 128, 61, .08); border-bottom-color: transparent;
}
.bb-tab-layout > .bb-tab-content { min-width: 0; }
@media (max-width: 860px) {
  .bb-tab-layout { grid-template-columns: 1fr; gap: 16px; }
  .bb-tab-layout > .bb-tabs {
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    border-right: 0; border-bottom: 2px solid var(--bb-line);
    position: static; max-height: none;
  }
  .bb-tab-layout > .bb-tabs button {
    border-right: 0; border-bottom: 3px solid transparent;
    border-radius: 0; margin: 0 0 -2px 0; padding: 12px 16px; white-space: nowrap;
  }
  .bb-tab-layout > .bb-tabs button.is-active {
    border-right-color: transparent; border-bottom-color: var(--bb-accent);
    background: transparent;
  }
}

/* Player-profile fact cards: uniform 2x2 stat layout */
.bb-fact-card { padding: 18px; display: flex; flex-direction: column; }
.bb-fact-card__title {
  font-size: .9rem; margin: 0 0 12px; color: var(--bb-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.bb-fact-card__grid {
  flex: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.bb-fact-cell {
  text-align: center; background: #f9fafb; padding: 12px 8px;
  border-radius: 6px; min-height: 70px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.bb-fact-cell__num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.bb-fact-cell__lbl { font-size: .7rem; color: var(--bb-muted); line-height: 1.2; }
.bb-fact-card__foot {
  font-size: .72rem; color: var(--bb-muted);
  margin: 10px 0 0; text-align: center;
}
.bb-fact-card__list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bb-fact-twin {
  display: flex; align-items: center; gap: 10px; padding: 6px;
  background: #f9fafb; border-radius: 6px;
  text-decoration: none; color: inherit;
}
.bb-fact-twin:hover { background: #ecfdf5; }
.bb-fact-twin img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.bb-fact-twin__body { flex: 1; min-width: 0; }
.bb-fact-twin__name {
  font-weight: 600; font-size: .86rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-fact-twin__meta {
  font-size: .72rem; color: var(--bb-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-fact-twin__val { font-size: .78rem; color: var(--bb-success); font-weight: 600; }

/* Achievement badges */
.bb-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 0;
}
.bb-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(255,255,255,.10); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(8px);
}
.bb-badge--gold   { background: linear-gradient(135deg, rgba(251,191,36,.25), rgba(251,191,36,.10)); border-color: rgba(251,191,36,.55); }
.bb-badge--silver { background: linear-gradient(135deg, rgba(148,163,184,.25), rgba(148,163,184,.10)); border-color: rgba(148,163,184,.55); }
.bb-badge--bronze { background: linear-gradient(135deg, rgba(180,83,9,.25), rgba(180,83,9,.10)); border-color: rgba(180,83,9,.45); }
.bb-badge--info   { background: rgba(22,163,74,.15); border-color: rgba(22,163,74,.5); }
.bb-badge__icon   { font-size: .92rem; line-height: 1; }

/* Tenure pill (Days at club) */
.bb-tenure {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(16, 185, 129, .15); border: 1px solid rgba(16, 185, 129, .4);
  color: #fff; font-size: .78rem; font-weight: 600;
  margin-top: 12px;
}
.bb-tenure strong { color: #6ee7b7; }
.bb-tenure__sep   { width: 1px; height: 12px; background: rgba(255,255,255,.25); }

/* Pitch widget (lives in hero __side stack) */
.bb-pitch-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 12px;
  display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center;
}
.bb-pitch-card__svg {
  aspect-ratio: 1 / 1.4;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.bb-pitch-card__label {
  font-size: .76rem; color: rgba(255,255,255,.92);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  line-height: 1.3;
}
.bb-pitch-card__label small {
  display: block; font-size: .66rem; font-weight: 500;
  color: rgba(255,255,255,.6); margin-top: 4px; letter-spacing: .04em;
  text-transform: none;
}

/* Goals by competition table */
.bb-comp-split { display: flex; flex-direction: column; gap: 6px; }
.bb-comp-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 14px; align-items: center;
  padding: 8px 12px; background: var(--bb-bg-card);
  border: 1px solid var(--bb-line); border-radius: 8px;
}
.bb-comp-row__name { font-weight: 600; font-size: .88rem; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-comp-row__bar  {
  width: 160px; height: 8px; border-radius: 4px;
  background: var(--bb-bg-soft); position: relative; overflow: hidden;
}
.bb-comp-row__bar--g { background: linear-gradient(90deg, #dc2626 var(--g, 0%), var(--bb-bg-soft) var(--g, 0%)); }
.bb-comp-row__mini { font-size: .78rem; color: var(--bb-muted); min-width: 60px; text-align: right; }
.bb-comp-row__mini strong { color: var(--bb-text); }

/* stats grid */
.bb-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin: 24px 0;
}
.bb-stat-box {
  background: #fff; border: 1px solid var(--bb-line); border-radius: 10px;
  padding: 16px; text-align: center;
}
.bb-stat-box strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--bb-accent); font-family: 'Sora', sans-serif; }
.bb-stat-box span   { font-size: .72rem; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- tool cards ---------- */
.bb-tool-card {
  display: block; background: #fff; border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius); padding: 20px 22px; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
  border-left: 3px solid var(--bb-line);
}
.bb-tool-card:hover { border-left-color: var(--bb-accent); transform: translateX(2px); text-decoration: none; }
.bb-tool-card__icon { display: none; }
.bb-tool-card h3 { font-size: 1.02rem; margin: 0 0 6px; color: var(--bb-text); font-weight: 700; }
.bb-tool-card p  { margin: 0; font-size: .85rem; color: var(--bb-muted); line-height: 1.45; }

/* ---------- compare ---------- */
.bb-compare-form {
  display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 16px;
  align-items: end; background: #fff; padding: 22px; border: 1px solid var(--bb-line);
  border-radius: 16px; margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
}
.bb-compare-form label,
.bb-multi-form label {
  display: block; font-size: .72rem; font-weight: 700; margin-bottom: 8px;
  color: var(--bb-muted); text-transform: uppercase; letter-spacing: .06em;
}
.bb-compare-form input[type=search],
.bb-multi-form input[type=search] {
  width: 100%; height: 46px; padding: 0 18px;
  border: 1.5px solid #d4d4d4; background: #fff; color: var(--bb-fg);
  border-radius: 999px !important; font: inherit; font-size: .95rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.bb-compare-form input[type=search]:focus,
.bb-multi-form input[type=search]:focus {
  border-color: var(--bb-accent);
  box-shadow: 0 0 0 4px rgba(21,128,61,.12);
}
.bb-compare-form input[type=search]::-webkit-search-cancel-button,
.bb-multi-form input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.bb-compare-form .bb-btn,
.bb-multi-form .bb-btn {
  height: 46px !important; border-radius: 999px !important;
  padding: 0 28px !important; font-weight: 700; font-size: .92rem;
  box-shadow: 0 1px 3px rgba(21,128,61,.35);
  transition: transform .12s, filter .15s;
}
.bb-compare-form .bb-btn:hover,
.bb-multi-form .bb-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bb-compare-vs {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: #fff; background: var(--bb-accent);
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: end; margin-bottom: 2px;
  box-shadow: 0 2px 6px rgba(21,128,61,.4);
}
.bb-autocomplete { position: relative; }
.bb-autocomplete .bb-ac-results { position: absolute; left: 0; right: auto; width: 100%; }

.bb-compare-grid {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: start;
}
.bb-compare-card {
  background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius);
  padding: 24px; text-align: center;
}
.bb-compare-card img {
  width: 140px; height: 140px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 16px; border: 4px solid var(--bb-bg-soft);
}
.bb-compare-card h2 { margin: 0 0 10px; font-size: 1.2rem; }
.bb-compare-card h2 a { color: var(--bb-text); }
.bb-compare-table .bb-table th { width: 50%; }

/* ---------- competition leader tiles ---------- */
.bb-leader-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 900px) { .bb-leader-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .bb-leader-grid { grid-template-columns: 1fr; } }
.bb-leader-tile {
  display: block; background: #fff; border: 1px solid var(--bb-line);
  border-radius: 10px; padding: 14px; color: inherit; text-decoration: none;
  transition: border-color .12s, transform .12s;
}
.bb-leader-tile:hover { border-color: var(--bb-accent); transform: translateY(-2px); text-decoration: none; }
.bb-leader-tile__label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--bb-muted); font-weight: 700; margin-bottom: 10px;
}
.bb-leader-tile__inner { display: flex; align-items: center; gap: 12px; }
.bb-leader-tile__inner img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: #f3f4f6; flex-shrink: 0; }
.bb-leader-tile__inner div { flex: 1; min-width: 0; overflow: hidden; }
.bb-leader-tile__inner strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-leader-tile__inner span { display: block; font-size: .76rem; color: var(--bb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-leader-tile__inner b { font-size: 1.5rem; font-weight: 800; font-family: 'Sora', sans-serif; flex-shrink: 0; }

/* ---------- competition card ---------- */
.bb-comp-card { display: flex; gap: 14px; align-items: center; }
.bb-comp-card__badge {
  width: 50px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, var(--bb-accent) 0%, var(--bb-accent-3) 100%);
  color: #fff; font-family: 'Sora', sans-serif; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; flex-shrink: 0; letter-spacing: -.5px;
}

/* ---------- browse list (6 columns separated by dividers) ---------- */
.bb-browse-list {
  list-style: none; margin: 0; padding: 0;
  column-count: 5; column-gap: 0;
  column-rule: 1px solid var(--bb-line);
  background: #fff; border: 1px solid var(--bb-line); border-radius: 10px; overflow: hidden;
}
.bb-browse-list > li { break-inside: avoid; }
.bb-browse-list > li > a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 0 14px; height: 38px;
  color: var(--bb-text); font-size: .88rem;
  border-bottom: 1px solid var(--bb-line);
  transition: background .12s;
}
.bb-browse-list > li > a:hover { background: var(--bb-bg-soft); text-decoration: none; color: var(--bb-accent); }
.bb-browse-list > li > a > span {
  font-weight: 500;
  flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-browse-list > li > a > b {
  font-weight: 600; color: var(--bb-muted); font-size: .8rem;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
@media (max-width: 1100px) { .bb-browse-list { column-count: 3; } }
@media (max-width: 700px)  { .bb-browse-list { column-count: 2; } }
@media (max-width: 500px)  { .bb-browse-list { column-count: 1; } }

/* ---------- footer ---------- */
.bb-footer { background: #052e16; color: #cbd5e1; margin-top: 60px; }
.bb-footer__inner {
  width: 100%; max-width: 1500px; margin: 0 auto; padding: 40px var(--bb-pad-x) 24px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr; gap: 32px;
  align-items: start;
}
.bb-footer h4 { color: #fff; margin: 0 0 10px; font-size: .92rem; }
.bb-footer a { display: block; color: #cbd5e1; padding: 2px 0; font-size: .84rem; }
.bb-footer a:hover { color: #fff; }
.bb-footer__bottom {
  border-top: 1px solid #1f2937; padding: 18px var(--bb-pad-x);
  max-width: 1500px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .78rem; color: #6b7280;
}

/* ---------- finder form ---------- */
.bb-finder {
  background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius);
  padding: 22px; margin-bottom: 28px;
}
.bb-finder__row { display: flex; flex-wrap: wrap; gap: 14px; }
.bb-finder__row > div { flex: 1 1 160px; min-width: 0; }
.bb-finder__row > div.bb-finder__col--wide   { flex: 2 1 230px; }
.bb-finder__row > div.bb-finder__col--narrow { flex: 0 1 90px; }
.bb-finder label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 4px; color: var(--bb-text-soft); }
.bb-finder input, .bb-finder select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--bb-line-2);
  border-radius: 6px; font: inherit; background: #fff;
}
.bb-finder__actions { margin-top: 16px; display: flex; gap: 10px; }

/* pills / badges */
.bb-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--bb-bg-soft); color: var(--bb-text-soft); border: 1px solid var(--bb-line); }
.bb-pill--success { background: #ecfdf5; color: var(--bb-success); border-color: #a7f3d0; }
.bb-pill--warn    { background: #fffbeb; color: var(--bb-warn);    border-color: #fcd34d; }
.bb-pill--active  {
  border: 2px solid currentColor;
  background: color-mix(in srgb, currentColor 14%, #fff);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
  padding: 3px 11px; /* compensate for thicker border so chip height stays put */
}
a.bb-pill:hover { text-decoration: none; transform: translateY(-1px); }

/* responsive */
@media (max-width: 1100px) {
  .bb-nav__link, .bb-nav__dropdown button { padding: 7px 8px; font-size: .82rem; }
  .bb-search input { width: 160px; }
  .bb-ac-results { width: 320px; }
  .bb-footer__inner { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .bb-footer__col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --bb-pad-x: 14px; }
  .bb-hamburger { display: flex; order: 99; }
  .bb-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px; gap: 4px;
    border-bottom: 1px solid var(--bb-line); box-shadow: var(--bb-shadow-lg);
  }
  .bb-nav.is-open { display: flex; }
  .bb-nav__dropdown { width: 100%; }
  .bb-nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 20px; display: none; }
  .bb-nav__dropdown.is-open .bb-nav__menu { display: block; }
  .bb-nav__dropdown--mega .bb-mega {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: none; width: 100% !important; grid-template-columns: 1fr !important;
    box-shadow: none; border: 0; padding: 0 0 0 20px; background: transparent;
  }
  .bb-nav__dropdown--mega.is-open .bb-mega { display: block; }
  .bb-mega__col { padding: 8px 0; }
  .bb-mega__col + .bb-mega__col { border-left: 0; border-top: 1px solid var(--bb-line); }
  .bb-mega__title { margin-left: 0; }
  .bb-mega__desc { white-space: normal; }
  .bb-search input { width: 130px; }
  .bb-pp-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .bb-pp-hero__img { margin: 0 auto; }
  .bb-pp-hero__meta { justify-content: center; }
  .bb-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .bb-compare-form { grid-template-columns: 1fr; }
  .bb-compare-vs   { text-align: center; padding: 8px 0; }
  .bb-compare-grid { grid-template-columns: 1fr; }
  .bb-table { font-size: .78rem; }
  .bb-table th, .bb-table td { padding: 7px 8px; }
}

/* ---------- Knockout bracket ---------- */
.bb-bracket {
  --bk-line: #d2d6dd;
  --bk-gap-x: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--bk-gap-x);
  align-items: stretch;
  overflow-x: auto;
  padding: 4px 2px 8px;
  min-height: 760px; /* gives R16 pairs visible breathing room */
}
.bb-bracket__col {
  display: grid;
  grid-template-rows: auto repeat(16, 1fr);
  min-width: 200px;
  min-height: 0;
}
.bb-bracket__head {
  grid-row: 1;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bb-muted);
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--bb-line);
  margin-bottom: 10px;
  line-height: 1.25;
  min-height: 40px;
}
.bb-bracket__head br { display: block; }
.bb-bracket__col--final .bb-bracket__head { color: #b08800; }
/* Body is just a logical wrapper — pairs flow into the col grid directly. */
.bb-bracket__body { display: contents; }
/* Each stage occupies a different row span so pair midpoints across stages
   align: R16 pair = 4 rows, QF pair = 8 rows, SF pair = 16 rows, Final = 16 rows. */
.bb-bracket__col--last-16        .bb-bracket__pair { grid-row: span 4; }
.bb-bracket__col--quarter-finals .bb-bracket__pair { grid-row: span 8; }
.bb-bracket__col--semi-finals    .bb-bracket__pair { grid-row: span 16; }
.bb-bracket__col--final          .bb-bracket__pair { grid-row: span 16; }
.bb-bracket__pair {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around; /* puts the two ties' midpoints at 25%/75% */
  min-height: 0;
  /* Subtle visual grouping — horizontal padding keeps vertical math intact. */
  background: rgba(48, 76, 138, 0.04);
  border: 1px solid rgba(48, 76, 138, 0.12);
  border-radius: 8px;
  padding: 0 5px;
  box-sizing: border-box;
}
.bb-bracket__pair.is-solo {
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
}
/* Vertical `]` connector between the two ties of a pair, anchored on tie
   midpoints (which are at 25% / 75% of the pair height thanks to space-around). */
.bb-bracket__col:not(.bb-bracket__col--final) .bb-bracket__pair:not(.is-solo)::after {
  content: '';
  position: absolute;
  right: calc(var(--bk-gap-x) / -2);
  top: 25%;
  bottom: 25%;
  width: calc(var(--bk-gap-x) / 2);
  border-top: 1px solid var(--bk-line);
  border-right: 1px solid var(--bk-line);
  border-bottom: 1px solid var(--bk-line);
  pointer-events: none;
}
/* Horizontal feed from pair midpoint (50%) to next col's tie midpoint */
.bb-bracket__col:not(.bb-bracket__col--final) .bb-bracket__pair:not(.is-solo)::before {
  content: '';
  position: absolute;
  right: calc(var(--bk-gap-x) / -1);
  top: 50%;
  width: calc(var(--bk-gap-x) / 2);
  height: 1px;
  background: var(--bk-line);
  pointer-events: none;
}
.bb-bracket__tie {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.bb-bracket__row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 10px;
  font-size: .82rem;
  color: #555;
  border-bottom: 1px solid var(--bb-line);
}
.bb-bracket__legs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.bb-bracket__legs b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 10px;
  text-align: right;
  color: #888;
  font-size: .78rem;
}
.bb-bracket__row.is-winner .bb-bracket__legs b { color: #2a8a44; font-weight: 600; }
.bb-bracket__total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--bb-line);
  border-radius: 4px;
  background: #fafbfc;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  color: #222;
}
.bb-bracket__row.is-winner .bb-bracket__total {
  background: #e9f5ec;
  border-color: #b8dcc2;
  color: #0a7d2c;
}
.bb-bracket__tie.is-upcoming .bb-bracket__total {
  color: #999;
  background: #f5f5f6;
}
.bb-bracket__row:last-child { border-bottom: 0; }
.bb-bracket__row img {
  width: 20px; height: 20px;
  object-fit: contain;
  display: block;
}
.bb-bracket__row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-bracket__row.is-winner {
  background: #f8faf6;
  color: #1a1a1a;
}
.bb-bracket__row.is-winner span { font-weight: 600; }
.bb-bracket__tie.is-upcoming { background: #fafbfc; border-style: dashed; }
.bb-bracket__meta {
  padding: 5px 10px;
  font-size: .68rem;
  color: var(--bb-muted);
  background: #fafafa;
  border-top: 1px dashed var(--bb-line);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .bb-bracket { grid-template-columns: repeat(4, 220px); }
}

/* ---------- Group stage (WC/EM) ---------- */
.bb-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .bb-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .bb-groups { grid-template-columns: 1fr; } }
.bb-group--league { grid-column: 1 / -1; }
.bb-group--league .bb-group__table { font-size: .9rem; }
.bb-group {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 10px;
  overflow: hidden;
}
.bb-group__head {
  padding: 9px 12px;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f6f7f9;
  border-bottom: 1px solid var(--bb-line);
  color: #2a3447;
}
.bb-group__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.bb-group__table th,
.bb-group__table td {
  padding: 6px 7px;
  text-align: right;
  color: #555;
  border-bottom: 1px solid var(--bb-line);
  font-variant-numeric: tabular-nums;
}
.bb-group__table tbody tr:last-child td { border-bottom: 0; }
.bb-group__table th {
  font-size: .68rem;
  font-weight: 700;
  color: var(--bb-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #fafbfc;
}
.bb-group__table { table-layout: fixed; }
.bb-group__pos { width: 24px !important; text-align: center; color: var(--bb-muted); padding-right: 2px !important; padding-left: 4px !important; }
.bb-group__table th, .bb-group__table td { padding: 6px 4px; }
.bb-group__table th:not(:nth-child(1)):not(:nth-child(2)),
.bb-group__table td:not(:nth-child(1)):not(:nth-child(2)) { width: 26px; }
.bb-group__table th.bb-group__team-h { text-align: left; padding-left: 4px; }
.bb-group__team {
  text-align: left !important;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1a1a1a;
  min-width: 0;
  overflow: hidden;
}
.bb-group__team img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.bb-group__team span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0; font-size: .82rem;
}
.bb-group__pts { color: #1a1a1a; }
.bb-group__table tr.is-advance { background: rgba(10, 125, 44, 0.04); }
.bb-group__table tr.is-advance .bb-group__team span { font-weight: 600; }
.bb-group__table tr.is-advance .bb-group__pts strong { color: #0a7d2c; }

/* ---------- Match detail hero ---------- */
.bb-match-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
}
.bb-match-hero__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  opacity: .82;
}
.bb-match-hero__team.is-winner { opacity: 1; }
.bb-match-hero__team img {
  width: 80px; height: 80px;
  object-fit: contain;
  display: block;
}
.bb-match-hero__team h2 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.bb-match-hero__score {
  text-align: center;
  min-width: 140px;
}
.bb-match-hero__main {
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}
.bb-match-hero__pens {
  font-size: .85rem;
  color: #cbd5e1;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.bb-match-hero__status {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .bb-match-hero { grid-template-columns: 1fr; }
  .bb-match-hero__main { font-size: 2.2rem; }
}

/* ---------- Match list (Recent results / Upcoming) ---------- */
.bb-matchlist {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 10px;
  overflow: hidden;
}
.bb-matchlist__item {
  padding: 8px 12px;
  border-bottom: 1px solid var(--bb-line);
  font-size: .85rem;
}
.bb-matchlist__item:last-child { border-bottom: 0; }
.bb-matchlist__date {
  color: var(--bb-muted);
  font-size: .7rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bb-matchlist__teams {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bb-matchlist__team {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #555;
}
.bb-matchlist__team img {
  width: 16px; height: 16px;
  object-fit: contain;
  display: block;
}
.bb-matchlist__team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-matchlist__team b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 14px;
  text-align: right;
  color: #222;
}
.bb-matchlist__team.is-winner { color: #1a1a1a; }
.bb-matchlist__team.is-winner span { font-weight: 600; }
.bb-matchlist__team.is-winner b { color: #0a7d2c; }

/* Single-row schedule layout: date | home | score | away on one line */
.bb-matchrow {
  display: grid;
  grid-template-columns: 130px 1fr 80px 1fr;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--bb-line);
  font-size: .9rem;
  color: #444;
  text-decoration: none;
  background: #fff;
}
.bb-matchrow:first-child { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.bb-matchrow:last-child { border-bottom: 0; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.bb-matchrow:hover { background: #fafbfc; }
.bb-matchrow__date {
  color: var(--bb-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bb-matchrow__home { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-matchrow__away { text-align: left;  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-matchrow__score {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
  white-space: nowrap;
}
.bb-matchrow__home.is-winner,
.bb-matchrow__away.is-winner { color: #0a7d2c; font-weight: 600; }
@media (max-width: 640px) {
  .bb-matchrow { grid-template-columns: 90px 1fr 60px 1fr; gap: 8px; font-size: .82rem; padding: 8px 10px; }
  .bb-matchrow__date { font-size: .66rem; }
}

/* ============ Live now widget ============ */
.bb-live-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: #e11d48;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, .55);
  animation: bb-live-pulse 1.6s ease-out infinite;
}
@keyframes bb-live-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(225, 29, 72, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0    rgba(225, 29, 72, 0); }
}
.bb-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.bb-live-card {
  display: block;
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.bb-live-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, .12);
}
.bb-live-card.is-paused {
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  border-color: #fde68a;
}
.bb-live-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bb-muted);
  margin-bottom: 6px;
}
.bb-live-card__status {
  background: #e11d48;
  color: #fff;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .62rem;
}
.bb-live-card.is-paused .bb-live-card__status {
  background: #d97706;
}
.bb-live-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: .9rem;
}
.bb-live-card__team {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.bb-live-card__row b {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: #111;
  margin-left: 10px;
}

/* ============ Today's matches grid ============ */
.bb-today-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) { .bb-today-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .bb-today-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .bb-today-grid { grid-template-columns: 1fr; } }

/* Global live ticker iframe wrapper */
.bb-livewidget {
  background: #fff; border: 1px solid var(--bb-line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
  margin-bottom: 28px;
}
.bb-livewidget iframe { display: block; width: 100%; border: 0; }

/* Single-match card (replaces grouped-by-league columns) */
.bb-today-card {
  display: block; padding: 12px 14px;
  background: #fff; border: 1px solid var(--bb-line); border-radius: 10px;
  color: var(--bb-fg); text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.bb-today-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border-color: var(--bb-accent);
  text-decoration: none;
}
.bb-today-card.is-live { border-color: #dc2626; box-shadow: 0 0 0 1px rgba(220,38,38,.25); }
.bb-today-card__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid var(--bb-line);
  font-size: .7rem;
}
.bb-today-card__comp {
  color: var(--bb-muted); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0; margin-right: 8px;
}
.bb-today-card__comp:hover { color: var(--bb-accent); }
.bb-today-card__time { color: var(--bb-muted); font-weight: 700; flex-shrink: 0; }
.bb-today-card.is-live .bb-today-card__time { color: #dc2626; }
.bb-today-card__teams { display: flex; flex-direction: column; gap: 4px; }
.bb-today-card__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .9rem; line-height: 1.3;
}
.bb-today-card__row span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0; margin-right: 8px;
}
.bb-today-card__row b { font-weight: 700; color: var(--bb-muted); }
.bb-today-card__row.is-winner span { font-weight: 700; }
.bb-today-card__row.is-winner b { color: var(--bb-fg); }
.bb-today-col h3 {
  font-size: .82rem;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bb-muted);
}
.bb-today-col h3 a {
  color: inherit;
  text-decoration: none;
}
.bb-today-col h3 a:hover { color: var(--bb-accent); }
.bb-matchlist a.bb-matchlist__item {
  display: block;
  color: inherit;
  text-decoration: none;
}
.bb-matchlist a.bb-matchlist__item:hover {
  background: #f9fafb;
}

/* ============ Career timeline ============ */
.bb-timeline {
  position: relative;
  padding-left: 8px;
}
.bb-timeline::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--bb-line);
}
.bb-timeline__row {
  display: grid;
  grid-template-columns: 90px 16px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  position: relative;
}
.bb-timeline__date {
  text-align: right;
  font-size: .8rem;
  color: var(--bb-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: 2px;
}
.bb-timeline__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px #fff;
}
.bb-timeline__body strong {
  font-size: .95rem;
  display: block;
}
.bb-timeline__detail {
  font-size: .82rem;
  color: var(--bb-muted);
  margin-top: 2px;
}

/* ============ Match: form widget ============ */
.bb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) {
  .bb-form-grid { grid-template-columns: 1fr; }
}
.bb-form-side h3 {
  font-size: .95rem;
  margin: 0 0 10px;
}
.bb-form-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.bb-form-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: .75rem;
  color: #fff;
}
.bb-form-pill--w { background: #16a34a; }
.bb-form-pill--d { background: #6b7280; }
.bb-form-pill--l { background: #dc2626; }
.bb-form-list {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 8px;
  overflow: hidden;
}
.bb-form-list__row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: .85rem;
  border-bottom: 1px solid var(--bb-line);
  color: inherit;
  text-decoration: none;
}
.bb-form-list__row:last-child { border-bottom: 0; }
.bb-form-list__row:hover { background: #f9fafb; }
.bb-form-list__date {
  color: var(--bb-muted);
  font-size: .72rem;
  text-transform: uppercase;
}
.bb-form-list__opp {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ Scouting / percentile rows ============ */
.bb-pct-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.bb-pct-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
}
.bb-pct-label strong {
  display: block;
  font-size: .9rem;
}
.bb-pct-label span {
  font-size: .72rem;
  color: var(--bb-muted);
}
.bb-pct-bar {
  position: relative;
  height: 22px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.bb-pct-fill {
  height: 100%;
  transition: width .4s ease;
}
.bb-pct-num {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: .8rem;
  font-weight: 700;
  color: #1a1a1a;
}
@media (max-width: 560px) {
  .bb-pct-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ H2H summary cards ============ */
.bb-h2h-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.bb-h2h-card {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bb-h2h-card__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bb-muted);
}
.bb-h2h-card strong {
  font-size: 1.6rem;
  font-weight: 800;
}

/* ============ Team aggregates tiles ============ */
.bb-agg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.bb-agg-tile {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bb-agg-tile span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bb-muted);
}
.bb-agg-tile strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
}
.bb-agg-tile small {
  font-size: .75rem;
  color: var(--bb-muted);
}

/* ============ Results grid (round-robin matrix) ============ */
.bb-matrix-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.bb-matrix {
  border-collapse: collapse;
  font-size: .78rem;
}
.bb-matrix th, .bb-matrix td {
  padding: 4px 6px;
  text-align: center;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  white-space: nowrap;
}
.bb-matrix thead th {
  background: #f9fafb;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #555;
}
.bb-matrix tbody th {
  background: #f9fafb;
  font-size: .78rem;
  font-weight: 600;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-matrix__self {
  background: #f3f4f6;
  color: #9ca3af;
}
.bb-matrix__empty {
  color: #9ca3af;
}
.bb-matrix__cell a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.bb-matrix__cell.is-win  { background: #dcfce7; color: #14532d; }
.bb-matrix__cell.is-draw { background: #f3f4f6; color: #374151; }
.bb-matrix__cell.is-loss { background: #fee2e2; color: #7f1d1d; }
.bb-matrix__cell:hover { filter: brightness(.95); }

/* =========================================================================
   v4 polish — image quality, denser tables, refined cards, mobile padding
   ========================================================================= */

/* Player & team images — subtle ring + soft shadow, larger thumbs in tables */
.bb-table__player img {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bb-table__player:hover img { transform: scale(1.08); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.bb-table__player strong { font-weight: 600; }

/* Table density: tighter row padding on big leaderboards */
.bb-table th, .bb-table td { padding: 7px 11px; font-size: .85rem; }
.bb-table thead th { padding-top: 9px; padding-bottom: 9px; }

/* Hover row: brand-tinted, not generic blue */
.bb-table tbody tr:hover { background: #f1f5f9; box-shadow: inset 3px 0 0 var(--bb-accent-2); }

/* Numeric columns get tabular-nums always */
.bb-table .num, .bb-table th.num { font-variant-numeric: tabular-nums; text-align: right; }

/* Light page-hero form controls (now matches white hero background) */
.bb-page-hero select,
.bb-page-hero input[type="text"],
.bb-page-hero input[type="search"],
.bb-page-hero input[type="number"] {
  background: #fff;
  color: var(--bb-fg);
  border: 1px solid var(--bb-line);
  padding: 7px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: .88rem;
}
.bb-page-hero select:focus,
.bb-page-hero input:focus { outline: 2px solid var(--bb-accent); outline-offset: 1px; border-color: var(--bb-accent); }

/* Pills in page-hero — light variant */
.bb-page-hero .bb-pill {
  background: var(--bb-bg-soft); color: var(--bb-fg); border-color: var(--bb-line);
  transition: background .15s ease, transform .15s ease;
}
.bb-page-hero .bb-pill:hover { background: var(--bb-accent); color: #fff; border-color: var(--bb-accent); transform: translateY(-1px); text-decoration: none; }

/* Pill on light section */
.bb-section .bb-pill { padding: 5px 12px; font-size: .77rem; transition: background .15s ease; }
.bb-section .bb-pill:hover { background: var(--bb-accent); color: #fff; border-color: var(--bb-accent); text-decoration: none; }

/* ================================================================
   Universal "current view" state for any tab-like nav element.
   Covers pills (.bb-pill--success / --active / is-active / aria-current),
   chips (.bb-chip.is-active), and link buttons elsewhere. Strong contrast
   so the user can see at a glance which tab they're on.
   ================================================================ */
a.bb-pill.is-active,
a.bb-pill.bb-pill--success,
a.bb-pill.bb-pill--active,
a.bb-pill[aria-current="page"],
a.bb-chip.is-active,
a.bb-chip[aria-current="page"],
button.bb-pill.is-active,
button.bb-chip.is-active {
  background: var(--bb-accent) !important;
  color: #fff !important;
  border-color: var(--bb-accent) !important;
  box-shadow: 0 1px 3px rgba(21, 128, 61, .35);
}
a.bb-pill.is-active:hover,
a.bb-pill.bb-pill--success:hover,
a.bb-pill.bb-pill--active:hover,
a.bb-pill[aria-current="page"]:hover,
a.bb-chip.is-active:hover,
a.bb-chip[aria-current="page"]:hover {
  background: var(--bb-accent) !important;
  color: #fff !important;
  transform: none;
  filter: brightness(1.08);
}

/* Sticky tab navigation (records page tabs) refined */
.rb-tab {
  padding: 6px 14px; border-radius: 999px;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
  font-size: .8rem; font-weight: 600;
}
.rb-tab:hover { transform: translateY(-1px); }
.rb-tab.is-active { background: var(--bb-accent); color: #fff !important; border-color: var(--bb-accent); }

/* "Did you know?" hero stripe */
.bb-hero > .bb-container > div[style*="margin-top:24px"] {
  /* legacy inline-style div, see views/home/index.php */
}

/* Section spacing: reduce on lb/* density-first pages */
.bb-section { padding: 36px 0; }

/* Card grid for game hub + viz world-map */
.bb-feat-grid > a { transition: transform .15s ease, box-shadow .15s ease; }
.bb-feat-grid > a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.18); }

/* Buttons in views (form submits) */
button[type="submit"]:not(.rb-tab):not(.bb-hero__search button) {
  cursor: pointer;
  background: var(--bb-accent);
  color: #fff !important;
  border: 1px solid var(--bb-accent);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font: inherit; font-size: .9rem;
  transition: background .15s ease, transform .1s ease;
}
button[type="submit"]:hover { background: #0f5f2e; }

/* Mobile padding */
@media (max-width: 720px) {
  :root { --bb-pad-x: 14px; }
  .bb-page-hero h1 { font-size: 1.55rem; }
  .bb-page-hero { padding: 28px 0 24px; }
  .bb-table th, .bb-table td { padding: 6px 8px; font-size: .78rem; }
  .bb-table__player img { width: 24px; height: 24px; }
  .bb-section { padding: 24px 0; }
}

/* Image error fallback (broken image → placeholder) */
.bb-table__player img[src=""], .bb-feat-card img[src=""] {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

/* Bigger images on hero/featured player cards in viz/career-arc + viz/world-map */
.bb-viz-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* Highlight numeric "value" cells subtly */
.bb-table td strong { color: var(--bb-text); }

/* Sortable header chevron position polish */
.bb-th-sortable { padding-right: 22px; position: relative; }
.bb-th-sortable::after { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

/* Page hero CTA chip row spacing */
.bb-page-hero nav, .bb-page-hero form { gap: 6px; }
.bb-page-hero nav.rb-tabs { gap: 4px; }

/* Tab chips inside page hero (shirt/N, decade/Y, awards filter, AZ index) */
.bb-page-hero .bb-chip,
.bb-page-hero a[href][style*="border-radius:6px"][style*="padding:6px"] {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--bb-line);
  background: #fff;
  color: var(--bb-text) !important;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  transition: all .15s ease;
}
.bb-page-hero a[href][style*="border-radius:6px"][style*="padding:6px"]:hover { background: var(--bb-bg-soft); color: var(--bb-accent) !important; border-color: var(--bb-line-2); }
.bb-page-hero a[href][style*="background:#1f2937"] {
  background: var(--bb-accent-2) !important;
  border-color: var(--bb-accent-2);
  color: #fff !important;
}

/* Empty state polish */
.bb-section p[style*="color:var(--bb-muted)"] { padding: 24px 0; font-size: .95rem; }

/* Proper tab chip class for shirt/decade/awards/league filters */
.bb-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--bb-line);
  background: #fff;
  color: var(--bb-text) !important;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  transition: all .15s ease;
}
.bb-chip:hover { background: var(--bb-bg-soft); color: var(--bb-accent) !important; border-color: var(--bb-line-2); transform: translateY(-1px); text-decoration: none; }
.bb-chip.is-active {
  background: var(--bb-accent-2) !important;
  border-color: var(--bb-accent-2);
  color: #fff !important;
}
.bb-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* Logo-with-name cell — used by teamCell() */
.bb-table img[loading="lazy"][style*="width:18px"] { background: #fff; }

/* Player image hover on cards */
.bb-card { transition: transform .15s ease, box-shadow .15s ease; }
.bb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.12); }

/* "More on this player" cross-link cards */
section .bb-card a:hover { text-decoration: none; }

/* CSV / pill in body sections */
.bb-section .bb-pill[href*="/csv/"] {
  background: #f3f4f6;
  color: #15803d;
  border-color: #d1d5db;
  font-size: .72rem;
  padding: 3px 10px;
}
.bb-section .bb-pill[href*="/csv/"]:hover {
  background: var(--bb-accent);
  color: #fff;
}

/* Polish "Did you know?" stripe on home page */
.bb-hero > .bb-container > div[style*="margin-top:24px"] {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
.bb-hero > .bb-container > div[style*="margin-top:24px"] strong { font-family: 'Sora', sans-serif; }

/* Subtle table caption / sub-info */
.bb-section .bb-container > p[style*="color:#9ca3af;font-size:.9rem"] {
  color: var(--bb-muted) !important;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}


/* ============ A11y: skip-to-content link ============ */
.bb-skip-link{position:absolute;left:8px;top:-40px;background:#15803d;color:#fff;padding:8px 14px;border-radius:6px;text-decoration:none;font-weight:600;z-index:9999;transition:top .15s}
.bb-skip-link:focus{top:8px;outline:2px solid #fbbf24;outline-offset:2px}
/* =========================================================================
   Basketball — Player profile additions (2026-05-21)
   Mirrors football .ff-pp-* hero + section patterns with bb-* prefix.
   ========================================================================= */

/* Hero */
.bb-pp-hero {
  background: linear-gradient(135deg, #1c1917 0%, #3b1e0a 60%, #c2410c 130%);
  color: #fff;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--bb-line);
}
.bb-pp-hero .bb-breadcrumbs { color: rgba(255,255,255,.65); margin-bottom: 14px; }
.bb-pp-hero .bb-breadcrumbs a { color: var(--bb-accent-2); }
.bb-pp-hero .bb-breadcrumbs span { color: rgba(255,255,255,.35); }
.bb-pp-hero h1 { margin: 0 0 6px; font-size: 2.2rem; letter-spacing: -.01em; line-height: 1.1; }
.bb-pp-hero__inner { display: grid; grid-template-columns: 140px 1fr auto; gap: 28px; align-items: start; }
.bb-pp-hero__avatar { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.08); border: 3px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.bb-pp-hero__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.bb-pp-hero__initials { font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: -.02em; }
.bb-pp-hero__main { min-width: 0; }
.bb-pp-hero__sub { font-size: 1rem; color: rgba(255,255,255,.85); margin: 0 0 14px; }
.bb-pp-pos { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 3px 10px; border-radius: 4px; font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
.bb-pp-team-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bb-pp-hero__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px 22px; max-width: 720px; }
.bb-pp-hero__meta > div { display: flex; flex-direction: column; gap: 2px; }
.bb-pp-hero__meta span { color: rgba(255,255,255,.55); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.bb-pp-hero__meta strong { font-size: 1rem; color: #fff; font-weight: 600; }
.bb-pp-hero__side { display: flex; flex-direction: column; gap: 14px; min-width: 180px; }
.bb-pp-statbox { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 14px 16px; text-align: center; }
.bb-pp-statbox > span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.bb-pp-statbox__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.bb-pp-statbox__row > div { display: flex; flex-direction: column; }
.bb-pp-statbox__row strong { font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.1; }
.bb-pp-statbox__row small { font-size: .65rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.bb-pp-statbox__foot { display: block; margin-top: 10px; font-size: .72rem; color: rgba(255,255,255,.6); }
.bb-pp-salary { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 12px 14px; text-align: center; }
.bb-pp-salary span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.bb-pp-salary strong { display: block; font-size: 1.3rem; color: #fbbf24; margin: 4px 0 2px; }
.bb-pp-salary small { display: block; font-size: .7rem; color: rgba(255,255,255,.55); }

/* Card grid (snapshot + rank + highs + draft) */
.bb-card-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.bb-card-grid > .bb-fact-card { flex: 1 1 280px; min-width: 0; }
.bb-card-grid > .bb-fact-card--wide { flex: 1.7 1 420px; }
.bb-card-grid > .bb-fact-card--narrow { flex: 0.65 1 220px; }
.bb-fact-card { background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 8px; padding: 18px; }
.bb-fact-grid { display: grid; gap: 14px; }
.bb-fact-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bb-fact-grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .bb-fact-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.bb-fact-card .bb-fact { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bb-fact-card .bb-fact strong { font-size: 1.6rem; font-weight: 700; color: var(--bb-text); line-height: 1.1; }
.bb-fact-card .bb-fact small { font-size: .72rem; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.bb-card__foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bb-line); font-size: .85rem; color: var(--bb-text-soft); }
.bb-card__foot a { color: var(--bb-accent); }

/* Career highs */
.bb-highs { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
.bb-high { display: flex; flex-direction: column; align-items: center; padding: 10px 8px; background: var(--bb-bg-soft); border-radius: 6px; }
.bb-high__label { font-size: .65rem; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .06em; }
.bb-high__val { font-size: 1.35rem; font-weight: 700; color: var(--bb-accent); line-height: 1.15; margin: 2px 0 4px; }
.bb-high small { font-size: .68rem; color: var(--bb-text-soft); text-align: center; line-height: 1.2; }

/* Draft card */
.bb-draft { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; text-align: center; }
.bb-draft__year { font-size: 2.2rem; font-weight: 700; color: var(--bb-accent); line-height: 1; }
.bb-draft__pick { font-size: .95rem; color: var(--bb-text-soft); }
.bb-draft__pick strong { color: var(--bb-text); }
.bb-draft__team, .bb-draft__col { font-size: .85rem; color: var(--bb-text-soft); }
.bb-draft__team a { color: var(--bb-accent); }

/* Honors grid */
.bb-honors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bb-honor { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 14px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-left: 4px solid var(--bb-muted); border-radius: 6px; }
.bb-honor__count { width: 38px; height: 38px; border-radius: 50%; background: var(--bb-muted); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.bb-honor strong { font-size: .92rem; color: var(--bb-text); display: block; }
.bb-honor__years { font-size: .72rem; color: var(--bb-muted); margin-top: 2px; }
.bb-honor--mvp        { border-left-color: #fbbf24; }
.bb-honor--mvp        .bb-honor__count { background: #fbbf24; color: #1c1917; }
.bb-honor--finals-mvp { border-left-color: #f59e0b; }
.bb-honor--finals-mvp .bb-honor__count { background: #f59e0b; }
.bb-honor--all-nba    { border-left-color: #c2410c; }
.bb-honor--all-nba    .bb-honor__count { background: #c2410c; }
.bb-honor--all-star   { border-left-color: var(--bb-accent); }
.bb-honor--all-star   .bb-honor__count { background: var(--bb-accent); }
.bb-honor--defense    { border-left-color: #1e40af; }
.bb-honor--defense    .bb-honor__count { background: #1e40af; }
.bb-honor--dpoy       { border-left-color: #1e40af; }
.bb-honor--dpoy       .bb-honor__count { background: #1e40af; }
.bb-honor--rookie     { border-left-color: #16a34a; }
.bb-honor--rookie     .bb-honor__count { background: #16a34a; }

/* Career by team */
.bb-team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bb-team-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 8px; text-decoration: none; color: var(--bb-text); transition: border-color .15s, transform .15s; }
.bb-team-card:hover { border-color: var(--bb-accent); transform: translateY(-2px); }
.bb-team-card__logo { width: 42px; height: 42px; object-fit: contain; align-self: flex-start; }
.bb-team-card__name { font-weight: 600; font-size: .98rem; color: var(--bb-text); }
.bb-team-card__period { font-size: .75rem; color: var(--bb-muted); }
.bb-team-card__stats { display: flex; gap: 14px; margin-top: 4px; font-size: .8rem; color: var(--bb-text-soft); }
.bb-team-card__stats strong { color: var(--bb-accent); font-weight: 700; font-size: .9rem; }
.bb-team-card__games { font-size: .75rem; color: var(--bb-muted); margin-top: 4px; }

/* Stats table */
.bb-table-wrap { overflow-x: auto; border: 1px solid var(--bb-line); border-radius: 8px; }
.bb-table--stats { font-size: .82rem; min-width: 900px; }
.bb-table--stats th { background: var(--bb-bg-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bb-text-soft); padding: 8px 10px; border-bottom: 1px solid var(--bb-line); }
.bb-table--stats td { padding: 7px 10px; border-bottom: 1px solid var(--bb-line); }
.bb-table--stats td.num, .bb-table--stats th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bb-table--stats tbody tr:hover { background: #fff7ed; }
.bb-table--stats a { color: var(--bb-accent); }

/* Similar players */
.bb-similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bb-similar { display: flex; flex-direction: column; align-items: center; padding: 14px 10px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 8px; text-decoration: none; color: var(--bb-text); text-align: center; transition: border-color .15s; }
.bb-similar:hover { border-color: var(--bb-accent); }
.bb-similar img, .bb-similar__initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bb-bg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; color: var(--bb-accent); margin-bottom: 10px; }
.bb-similar strong { font-size: .88rem; font-weight: 600; }
.bb-similar small { font-size: .72rem; color: var(--bb-muted); margin-top: 2px; }
.bb-similar__ppg { color: var(--bb-accent); font-weight: 600; margin-top: 4px !important; }

/* Trivia */
.bb-trivia-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bb-trivia { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 6px; text-decoration: none; color: var(--bb-text); }
.bb-trivia:hover { border-color: var(--bb-accent); }
.bb-trivia strong { font-size: .88rem; font-weight: 600; }
.bb-trivia span { font-size: .76rem; color: var(--bb-muted); }

/* Misc */
.bb-source { font-size: .82rem; color: var(--bb-muted); margin-top: 14px; }
.bb-source a { color: var(--bb-accent); }
.bb-prose { font-size: .95rem; line-height: 1.65; color: var(--bb-text-soft); }
.bb-prose p { margin: 0 0 12px; }

/* Responsive hero stack on mobile */
@media (max-width: 760px) {
  .bb-pp-hero__inner { grid-template-columns: 96px 1fr; gap: 14px; }
  .bb-pp-hero__avatar { width: 96px; height: 96px; }
  .bb-pp-hero__side { grid-column: 1 / -1; flex-direction: row; }
  .bb-pp-statbox, .bb-pp-salary { flex: 1; }
  .bb-pp-hero h1 { font-size: 1.6rem; }
}
/* =========================================================================
   Basketball — FULL site CSS additions (2026-05-21)
   Hero, listings, standings, box score, league/MVP/result cards.
   ========================================================================= */

/* ---------- Homepage hero ---------- */
.bb-hero { position: relative; padding: 90px 0 80px; color: #fff; overflow: hidden; }
.bb-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); filter: brightness(.5); z-index: 0; }
.bb-hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(28,25,23,.92) 0%, rgba(194,65,12,.75) 100%); z-index: 1; }
.bb-hero__inner { position: relative; z-index: 2; }
.bb-hero__brand { margin-bottom: 16px; }
.bb-hero__pill { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9); padding: 5px 14px; border-radius: 999px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.bb-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.bb-hero h1 span { background: linear-gradient(120deg, #fb923c, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bb-hero p { font-size: 1.1rem; max-width: 720px; color: rgba(255,255,255,.85); margin: 0 auto 24px; }
.bb-hero__search { display: flex; gap: 0; max-width: 600px; margin: 0 auto 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.bb-hero__search input { flex: 1; border: 0; padding: 14px 22px; font-size: 1rem; outline: none; color: #fff; background: transparent; }
.bb-hero__search input::placeholder { color: rgba(255,255,255,.65); }
.bb-hero__search button { border: 0; background: var(--bb-accent); color: #fff; padding: 0 24px; font-weight: 600; font-size: .95rem; cursor: pointer; }
.bb-hero__search button:hover { background: var(--bb-accent-3); }
.bb-hero__search--page { background: var(--bb-bg-card); border: 1px solid var(--bb-line); margin: 14px 0 0; }
.bb-hero__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.bb-hero__chip { display: inline-flex; align-items: baseline; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: .82rem; text-decoration: none; transition: background .15s; }
.bb-hero__chip:hover { background: rgba(255,255,255,.18); }
.bb-hero__chip strong { font-weight: 700; color: #fbbf24; font-size: .92rem; }

/* ---------- Section head ---------- */
.bb-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.bb-section__head h2 { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--bb-text); }
.bb-link { color: var(--bb-accent); font-size: .9rem; font-weight: 600; text-decoration: none; }
.bb-link:hover { text-decoration: underline; }

/* ---------- Page header (non-hero) ---------- */
.bb-page-header { background: var(--bb-bg-soft); border-bottom: 1px solid var(--bb-line); padding: 36px 0 28px; }
.bb-page-header h1 { margin: 0 0 8px; font-size: 2rem; font-weight: 700; }
.bb-page-header p { margin: 0; color: var(--bb-text-soft); }
.bb-page-header--awards { background: linear-gradient(120deg, #fef3c7 0%, #fee7d4 100%); }

/* ---------- League cards ---------- */
.bb-league-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bb-league-card { display: block; padding: 18px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-left: 4px solid var(--bb-accent); border-radius: 6px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.bb-league-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.bb-league-card__name { font-weight: 600; color: var(--bb-text); font-size: 1rem; }
.bb-league-card__meta { font-size: .82rem; color: var(--bb-text-soft); margin-top: 4px; }
.bb-league-card__founded { font-size: .7rem; color: var(--bb-muted); margin-top: 6px; }

/* ---------- Result grid (game cards) ---------- */
.bb-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bb-result { display: block; padding: 12px 14px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 6px; text-decoration: none; color: inherit; transition: border-color .15s; }
.bb-result:hover { border-color: var(--bb-accent); }
.bb-result__date { font-size: .72rem; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.bb-result__row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: .95rem; color: var(--bb-text-soft); }
.bb-result__row.is-winner { color: var(--bb-text); font-weight: 600; }
.bb-result__row b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }

/* ---------- Leader grid (homepage + league) ---------- */
.bb-leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bb-leader-card { padding: 16px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 8px; }
.bb-leader-card h3 { margin: 0 0 12px; font-size: .82rem; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .06em; }
.bb-leader-card__top { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--bb-line); margin-bottom: 10px; }
.bb-leader-card__top img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.bb-leader-card__initials { width: 56px; height: 56px; border-radius: 50%; background: var(--bb-bg-soft); color: var(--bb-accent); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; }
.bb-leader-card__top strong { display: block; font-size: 1rem; color: var(--bb-text); }
.bb-leader-card__top small { display: block; font-size: .76rem; color: var(--bb-muted); }
.bb-leader-card__val { display: inline-block; margin-top: 4px; padding: 2px 8px; background: var(--bb-accent); color: #fff; border-radius: 4px; font-size: .82rem; font-weight: 700; }
.bb-leader-card__list { list-style: none; padding: 0; margin: 0; }
.bb-leader-card__list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 5px 0; font-size: .88rem; }
.bb-leader-card__rank { color: var(--bb-muted); font-weight: 600; }
.bb-leader-card__list a { color: var(--bb-text); text-decoration: none; }
.bb-leader-card__list a:hover { color: var(--bb-accent); }
.bb-leader-card__row-val { color: var(--bb-text-soft); font-variant-numeric: tabular-nums; }

/* ---------- MVP strip ---------- */
.bb-mvp-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.bb-mvp { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 6px; text-decoration: none; color: inherit; transition: border-color .15s; }
.bb-mvp:hover { border-color: #fbbf24; }
.bb-mvp img, .bb-mvp__initials { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--bb-bg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: var(--bb-accent); }
.bb-mvp__year { display: block; font-size: .7rem; color: #fbbf24; font-weight: 700; letter-spacing: .04em; }
.bb-mvp strong { display: block; font-size: .9rem; color: var(--bb-text); }
.bb-mvp small { display: block; font-size: .72rem; color: var(--bb-muted); }

/* ---------- Champions strip ---------- */
.bb-champion-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.bb-champion { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 6px; text-decoration: none; color: inherit; transition: border-color .15s; }
.bb-champion:hover { border-color: var(--bb-accent); }
.bb-champion img { width: 52px; height: 52px; object-fit: contain; }
.bb-champion__year { display: block; font-size: .7rem; color: var(--bb-accent); font-weight: 700; }
.bb-champion strong { display: block; font-size: .9rem; color: var(--bb-text); }

/* ---------- Team profile hero ---------- */
.bb-tp-hero { color: #fff; padding: 42px 0; border-bottom: 1px solid var(--bb-line); }
.bb-tp-hero__inner { display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: center; }
.bb-tp-hero__logo { width: 130px; height: 130px; object-fit: contain; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.bb-tp-hero__placeholder { width: 130px; height: 130px; border-radius: 12px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.bb-tp-hero h1 { margin: 0 0 6px; font-size: 2.2rem; letter-spacing: -.01em; }
.bb-tp-hero__sub { font-size: 1rem; color: #fff; margin: 0 0 18px; }
.bb-tp-hero__stats { display: flex; gap: 22px; flex-wrap: wrap; }
.bb-tp-hero__stats > div { display: flex; flex-direction: column; }
.bb-tp-hero__stats span { font-size: .68rem; color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.bb-tp-hero__stats strong { font-size: 1.5rem; font-weight: 700; }
.bb-tp-hero__stats small { font-size: .7rem; color: #fff; }
.bb-tp-hero h1 { color: #fff; }
.bb-tp-hero .bb-breadcrumbs { color: #fff; margin-bottom: 14px; font-size: .85rem; }
.bb-tp-hero .bb-breadcrumbs a { color: #fff; }
.bb-tp-hero .bb-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.bb-tp-hero .bb-breadcrumbs span { color: #fff; }

.bb-quick-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.bb-quick-card { display: block; padding: 16px 18px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 8px; text-decoration: none; color: inherit; }
.bb-quick-card__label { display: block; font-size: .7rem; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.bb-quick-card strong { display: block; font-size: 1.1rem; color: var(--bb-text); }
.bb-quick-card small { display: block; font-size: .82rem; color: var(--bb-text-soft); margin-top: 2px; }
a.bb-quick-card:hover { border-color: var(--bb-accent); }

/* ---------- League profile hero ---------- */
.bb-lp-hero { position: relative; padding: 64px 0 50px; color: #fff; overflow: hidden; }
.bb-lp-hero__inner { position: relative; z-index: 2; }
.bb-lp-hero h1 { margin: 0 0 10px; font-size: 2.4rem; letter-spacing: -.01em; color: #fff; }
.bb-lp-hero .bb-breadcrumbs { color: rgba(255,255,255,.65); margin-bottom: 14px; font-size: .85rem; }
.bb-lp-hero .bb-breadcrumbs a { color: var(--bb-accent-2); }
.bb-lp-hero .bb-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.bb-lp-hero .bb-breadcrumbs span { color: rgba(255,255,255,.4); }
.bb-lp-hero__sub { font-size: 1rem; color: rgba(255,255,255,.85); margin: 0 0 14px; }
.bb-lp-hero__desc { max-width: 760px; color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.55; }

/* ---------- League hero stat grid ---------- */
.bb-lp-hero__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.bb-lp-hero__head { min-width: 0; }
.bb-lp-hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bb-lp-stat {
  display: block;
  padding: 14px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  min-height: 92px;
}
.bb-lp-stat:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); }
.bb-lp-stat__label {
  display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.65); margin-bottom: 8px;
}
.bb-lp-stat__big { font-size: 2.4rem; line-height: 1; display: block; font-weight: 700; color: #fff; }
.bb-lp-stat small { display: block; color: rgba(255,255,255,.6); font-size: .78rem; margin-top: 4px; }
.bb-lp-stat__row { display: flex; gap: 12px; align-items: center; }
.bb-lp-stat__row img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2); flex-shrink: 0;
}
.bb-lp-stat__row img.is-logo { object-fit: contain; background: #fff; padding: 4px; }
.bb-lp-stat__row > div { min-width: 0; }
.bb-lp-stat__row strong { display: block; font-size: 1rem; color: #fff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.bb-lp-stat__row small { margin-top: 2px; }
@media (min-width: 900px) {
  .bb-lp-hero__grid { grid-template-columns: 1fr 460px; }
}
@media (max-width: 600px) {
  .bb-lp-hero__stats { grid-template-columns: 1fr; }
  .bb-lp-stat { min-height: auto; }
}

/* ---------- Game profile ---------- */
.bb-gp-hero { padding: 36px 0; background: linear-gradient(135deg, #1c1917 0%, #44403c 100%); color: #fff; }
.bb-gp-hero .bb-breadcrumbs { color: rgba(255,255,255,.6); }
.bb-gp-hero .bb-breadcrumbs a { color: var(--bb-accent-2); }
.bb-gp-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-top: 20px; }
.bb-gp-side { display: flex; flex-direction: column; align-items: center; padding: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; text-decoration: none; color: #fff; transition: background .15s; }
.bb-gp-side:hover { background: rgba(255,255,255,.1); }
.bb-gp-side.is-winner { background: rgba(251,191,36,.12); border-color: #fbbf24; }
.bb-gp-side img { width: 80px; height: 80px; object-fit: contain; }
.bb-gp-side strong { font-size: 1.1rem; margin-top: 6px; }
.bb-gp-score__val { font-size: 3.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-top: 8px; color: #fff; }
.bb-gp-side.is-winner .bb-gp-score__val { color: #fbbf24; }
.bb-gp-middle { text-align: center; color: rgba(255,255,255,.85); }
.bb-gp-middle__date { font-size: .85rem; color: rgba(255,255,255,.65); }
.bb-gp-middle__status { font-size: 1.2rem; font-weight: 700; letter-spacing: .04em; color: #fbbf24; margin: 4px 0; }
.bb-gp-middle__playoff { display: inline-block; font-size: .72rem; background: rgba(255,255,255,.12); padding: 3px 10px; border-radius: 4px; }
.bb-gp-middle__arena, .bb-gp-middle__att { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; }
.bb-gp-middle__arena a { color: rgba(255,255,255,.85); }

.bb-gp-quarters { margin-top: 24px; }
.bb-quarters { width: 100%; border-collapse: collapse; color: #fff; }
.bb-quarters th, .bb-quarters td { padding: 8px 14px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.12); }
.bb-quarters th { background: rgba(255,255,255,.06); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.65); }
.bb-quarters td.num { font-variant-numeric: tabular-nums; }
.bb-quarters td:first-child { text-align: left; }

.bb-table--box th { background: var(--bb-bg-soft); font-size: .7rem; text-transform: uppercase; padding: 8px 8px; }
.bb-table--box td { padding: 7px 8px; font-size: .82rem; }
.bb-table--box tr.is-starter { background: #fff7ed; }
.bb-table--box tr.is-starter td:first-child { border-left: 3px solid var(--bb-accent); }

/* ---------- Standings table ---------- */
.bb-table--standings { font-size: .9rem; }
.bb-table--standings th { background: var(--bb-bg-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--bb-line); color: var(--bb-text-soft); }
.bb-table--standings td { padding: 10px; border-bottom: 1px solid var(--bb-line); }
.bb-table--standings td.num, .bb-table--standings th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bb-standings__team { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bb-text); }
.bb-standings__team img { width: 26px; height: 26px; object-fit: contain; }
.bb-standings__team:hover { color: var(--bb-accent); }

/* ---------- Roster + History + Teams + Players tables ---------- */
.bb-table--roster th, .bb-table--history th, .bb-table--teams th, .bb-table--players th {
  background: var(--bb-bg-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bb-text-soft); padding: 8px 10px; border-bottom: 1px solid var(--bb-line);
}
.bb-table--roster td, .bb-table--history td, .bb-table--teams td, .bb-table--players td { padding: 8px 10px; border-bottom: 1px solid var(--bb-line); font-size: .88rem; }
.bb-table--roster td.num, .bb-table--history td.num, .bb-table--teams td.num, .bb-table--players td.num,
.bb-table--roster th.num, .bb-table--history th.num, .bb-table--teams th.num, .bb-table--players th.num {
  text-align: right; font-variant-numeric: tabular-nums;
}
.bb-table--roster tbody tr:hover, .bb-table--history tbody tr:hover, .bb-table--teams tbody tr:hover, .bb-table--players tbody tr:hover { background: #fff7ed; }
.bb-team-row, .bb-player-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.bb-team-row img, .bb-player-row img { width: 32px; height: 32px; object-fit: cover; object-position: center 20%; border-radius: 50%; }
.bb-team-row__placeholder, .bb-player-row__placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--bb-bg-soft); color: var(--bb-accent); display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; }
.bb-team-row__placeholder { color: #fff; font-size: .7rem; }
.bb-team-row:hover, .bb-player-row:hover { color: var(--bb-accent); }

/* ---------- Filters bar ---------- */
.bb-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bb-filters input[type="search"], .bb-filters select { padding: 9px 12px; border: 1px solid var(--bb-line); border-radius: 6px; font-size: .92rem; background: #fff; }
.bb-filters input[type="search"] { flex: 1; min-width: 220px; }
.bb-filters button { padding: 9px 18px; background: var(--bb-accent); color: #fff; border: 0; border-radius: 6px; font-weight: 600; cursor: pointer; }
.bb-filters button:hover { background: var(--bb-accent-3); }
.bb-checkbox { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--bb-text-soft); padding: 0 8px; }

/* ---------- Pagination ---------- */
.bb-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.bb-page-link { padding: 6px 12px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 6px; text-decoration: none; color: var(--bb-text); font-size: .9rem; min-width: 38px; text-align: center; line-height: 1.2; }
.bb-page-link:hover { border-color: var(--bb-accent); color: var(--bb-accent); }
.bb-page-link.is-current { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; font-weight: 600; cursor: default; }
.bb-page-link.is-current:hover { color: #fff; }
.bb-page-link.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.bb-page-ellipsis { padding: 6px 4px; color: var(--bb-muted); font-size: .9rem; user-select: none; }

/* ---------- Award categories ---------- */
.bb-award-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bb-award-cat { display: block; padding: 16px 18px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-left: 4px solid var(--bb-muted); border-radius: 6px; text-decoration: none; color: inherit; transition: transform .15s; }
.bb-award-cat:hover { transform: translateY(-2px); }
.bb-award-cat strong { display: block; font-size: 1rem; color: var(--bb-text); }
.bb-award-cat small { display: block; font-size: .76rem; color: var(--bb-muted); margin-top: 4px; }
.bb-award-cat--mvp        { border-left-color: #fbbf24; }
.bb-award-cat--finals-mvp { border-left-color: #f59e0b; }
.bb-award-cat--all-nba    { border-left-color: #c2410c; }
.bb-award-cat--defense    { border-left-color: #1e40af; }
.bb-award-cat--dpoy       { border-left-color: #1e40af; }
.bb-award-cat--all-star   { border-left-color: var(--bb-accent); }
.bb-award-cat--rookie     { border-left-color: #16a34a; }

.bb-decorated-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bb-decorated { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 8px; text-decoration: none; color: inherit; }
.bb-decorated:hover { border-color: var(--bb-accent); }
.bb-decorated__rank { position: absolute; }
.bb-decorated img, .bb-decorated__initials { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--bb-bg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; color: var(--bb-accent); margin-bottom: 8px; }
.bb-decorated strong { font-size: .85rem; font-weight: 600; text-align: center; }
.bb-decorated small { font-size: .8rem; color: var(--bb-accent); font-weight: 700; }

/* ---------- Season chips ---------- */
.bb-season-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bb-season-chip { display: inline-block; padding: 6px 12px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 999px; font-size: .82rem; color: var(--bb-text-soft); text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.bb-season-chip:hover { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.bb-season-chip.is-current { background: var(--bb-accent); color: #fff; border-color: var(--bb-accent); font-weight: 600; }

/* ---------- Arena photo ---------- */
.bb-arena-photo { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; }

/* ---------- Page header sub-styles ---------- */
.bb-page-header h1 + p, .bb-page-header > p { color: var(--bb-text-soft); }

/* ---------- Empty state + list ---------- */
.bb-empty { padding: 40px 0; text-align: center; color: var(--bb-muted); font-size: 1rem; }
.bb-list { list-style: none; padding: 0; margin: 0; }
.bb-list li { padding: 8px 0; border-bottom: 1px solid var(--bb-line); }
.bb-list a { color: var(--bb-accent); text-decoration: none; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .bb-tp-hero__inner { grid-template-columns: 80px 1fr; gap: 14px; }
  .bb-tp-hero__logo, .bb-tp-hero__placeholder { width: 80px; height: 80px; }
  .bb-tp-hero h1 { font-size: 1.5rem; }
  .bb-gp-score { grid-template-columns: 1fr; gap: 12px; }
  .bb-gp-score__val { font-size: 2.6rem; }
}

/* ===== Game leaders grid (added 2026-05-22) ===== */
.bb-leader-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 900px) { .bb-leader-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bb-leader-grid { grid-template-columns: 1fr; } }
.bb-leader-card--game { background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 10px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, box-shadow .15s; }
.bb-leader-card--game:hover { border-color: var(--bb-accent); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.bb-leader-card--game .bb-leader-card__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--bb-line); }
.bb-leader-card--game .bb-leader-card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bb-muted); font-weight: 600; }
.bb-leader-card--game .bb-leader-card__val { font-size: 1.5rem; font-weight: 800; color: var(--bb-accent); line-height: 1; padding: 4px 10px; background: rgba(234,88,12,.08); border-radius: 6px; }
.bb-leader-card--game .bb-leader-card__val small { font-size: .65rem; font-weight: 700; color: var(--bb-accent); margin-left: 4px; opacity: .8; }
.bb-leader-card--game .bb-leader-card__player { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bb-text); }
.bb-leader-card--game .bb-leader-card__player:hover .bb-leader-card__name { color: var(--bb-accent); }
.bb-leader-card--game .bb-leader-card__player img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bb-bg-soft); border: 1px solid var(--bb-line); flex-shrink: 0; }
.bb-leader-card--game .bb-leader-card__name { font-weight: 600; font-size: .92rem; line-height: 1.25; color: var(--bb-text); transition: color .15s; }
.bb-leader-card--game .bb-leader-card__team { font-size: .75rem; color: var(--bb-muted); text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.bb-leader-card--game .bb-leader-card__team:hover { color: var(--bb-accent); }

/* ===== Discovery routes (records, leaderboards, on-this-day, birthdays, derbies, decade) ===== */
.bb-page-title { font-size: 28px; font-weight: 700; margin: 12px 0 6px; }
.bb-page-sub { color: var(--bb-muted, #9aa2ad); margin-bottom: 22px; font-size: 15px; }
.bb-empty { padding: 22px; background: var(--bb-card-bg, #1a1d23); border-radius: 8px; color: var(--bb-muted, #9aa2ad); }

/* Records overview grid */
.bb-records-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.bb-record-card { background: var(--bb-card-bg, #1a1d23); border: 1px solid var(--bb-border, #2a2f37); border-radius: 10px; padding: 16px; }
.bb-record-card__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bb-record-card__top h2 { margin: 0; font-size: 17px; }
.bb-record-card__top h2 a { color: var(--bb-text, #e7eaee); text-decoration: none; }
.bb-record-card__top h2 a:hover { color: var(--bb-accent, #ea580c); }
.bb-record-card__unit { font-size: 11px; text-transform: uppercase; color: var(--bb-muted, #9aa2ad); letter-spacing: 0.06em; }
.bb-record-card__list { list-style: none; margin: 0; padding: 0; }
.bb-record-card__list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); gap: 10px; }
.bb-record-card__list li:last-child { border-bottom: none; }
.bb-record-card__rank { font-weight: 700; color: var(--bb-muted, #9aa2ad); font-size: 12px; }
.bb-record-card__name { color: var(--bb-text, #e7eaee); text-decoration: none; font-size: 14px; }
.bb-record-card__name:hover { color: var(--bb-accent, #ea580c); }
.bb-record-card__val { font-weight: 700; color: var(--bb-accent, #ea580c); font-size: 14px; }
.bb-record-card__more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--bb-accent, #ea580c); text-decoration: none; }

/* Leaderboard table */
.bb-lb__player { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.bb-lb__player img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #e5e7eb; flex-shrink: 0; }
.bb-lb__player:hover span { color: var(--bb-accent, #ea580c); }
.bb-lb__player span { font-weight: 600; }

/* On this day grid */
.bb-otd-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 16px; }
@media (max-width: 800px) { .bb-otd-grid { grid-template-columns: 1fr; } }
.bb-otd-col { display: flex; flex-direction: column; gap: 12px; }
.bb-mini-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bb-mini-card { display: flex; align-items: center; gap: 10px; background: var(--bb-card-bg, #1a1d23); border: 1px solid var(--bb-border, #2a2f37); border-radius: 8px; padding: 8px 10px; text-decoration: none; color: inherit; }
.bb-mini-card:hover { border-color: var(--bb-accent, #ea580c); }
.bb-mini-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #2a2f37; }
.bb-mini-card__body { display: flex; flex-direction: column; min-width: 0; }
.bb-mini-card__name { font-weight: 600; font-size: 14px; color: var(--bb-text, #e7eaee); }
.bb-mini-card__meta { font-size: 11px; color: var(--bb-muted, #9aa2ad); }

/* Result list */
.bb-result-list { list-style: none; margin: 0; padding: 0; }
.bb-result-row { margin-bottom: 6px; }
.bb-result-row a { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bb-card-bg, #1a1d23); border: 1px solid var(--bb-border, #2a2f37); border-radius: 8px; text-decoration: none; color: var(--bb-text, #e7eaee); }
.bb-result-row a:hover { border-color: var(--bb-accent, #ea580c); }
.bb-result-row__year { color: var(--bb-muted, #9aa2ad); font-weight: 600; font-size: 13px; }
.bb-result-row__teams { font-size: 14px; }
.bb-result-row__score { font-weight: 700; color: var(--bb-accent, #ea580c); font-size: 14px; }

/* Birthday calendar */
.bb-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bb-cal-month { background: var(--bb-card-bg, #1a1d23); border: 1px solid var(--bb-border, #2a2f37); border-radius: 10px; padding: 14px; }
.bb-cal-month h3 { margin: 0 0 10px; font-size: 14px; color: var(--bb-accent, #ea580c); text-transform: uppercase; letter-spacing: 0.06em; }
.bb-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bb-cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 4px; text-decoration: none; padding: 2px; color: inherit; transition: background 120ms; min-height: 32px; }
.bb-cal-day.has-births { background: rgba(234,88,12,0.10); border: 1px solid rgba(234,88,12,0.20); }
.bb-cal-day.no-births { background: rgba(255,255,255,0.02); }
.bb-cal-day:hover { background: rgba(234,88,12,0.30); }
.bb-cal-day__num { font-size: 12px; font-weight: 600; color: var(--bb-text, #e7eaee); }
.bb-cal-day__cnt { font-size: 9px; color: var(--bb-accent, #ea580c); margin-top: 1px; }

/* Derby */
.bb-derby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.bb-derby-card { background: var(--bb-card-bg, #1a1d23); border: 1px solid var(--bb-border, #2a2f37); border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; }
.bb-derby-card:hover { border-color: var(--bb-accent, #ea580c); }
.bb-derby-card__teams { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.bb-derby-card__team { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.bb-derby-card__team img { width: 32px; height: 32px; object-fit: contain; }
.bb-derby-card__team strong { font-size: 14px; color: var(--bb-text, #e7eaee); }
.bb-derby-card__vs { color: var(--bb-muted, #9aa2ad); font-weight: 700; font-size: 12px; }
.bb-derby-card__meta { font-size: 12px; color: var(--bb-muted, #9aa2ad); }

.bb-derby-hero { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 24px; background: var(--bb-card-bg, #1a1d23); border-radius: 12px; margin: 16px 0 24px; }
.bb-derby-hero__side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bb-derby-hero__side img { width: 80px; height: 80px; object-fit: contain; }
.bb-derby-hero__side strong { font-size: 16px; color: var(--bb-text, #e7eaee); text-align: center; }
.bb-derby-hero__wins { font-size: 22px; font-weight: 800; color: var(--bb-accent, #ea580c); }
.bb-derby-hero__middle { font-size: 13px; color: var(--bb-muted, #9aa2ad); }

/* ===== Batch 2: compare, glossary ===== */

.bb-glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.bb-glossary__row { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.bb-glossary__row dt { margin-bottom: 6px; color: var(--bb-accent, #ea580c); font-size: 15px; }
.bb-glossary__row dt .bb-glossary__name { color: var(--bb-muted, #9aa2ad); font-weight: 400; font-size: 13px; }
.bb-glossary__row dd { margin: 0; color: #374151; font-size: 14px; line-height: 1.5; }

/* Player profile fact-card grid: when only one card renders (low-data players),
   stretch it but cap width so it doesn't look stretched across full container. */
.bb-card-grid > .bb-fact-card:only-child { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; width: 100%; }
.bb-table--stats .bb-muted-link { color: var(--bb-muted); font-size: .82em; }

/* ---------- Compare hub form ---------- */
.bb-compare-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 20px 0 28px; padding: 18px; background: var(--bb-bg-soft); border: 1px solid var(--bb-line); border-radius: 10px; }
.bb-compare-form__field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.bb-compare-form__field label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-muted); }
.bb-compare-form__field input { padding: 10px 12px; border: 1px solid var(--bb-line); border-radius: 6px; font-size: .95rem; background: #fff; }
.bb-compare-form__field input:focus { outline: 2px solid var(--bb-accent); outline-offset: -1px; border-color: var(--bb-accent); }
.bb-compare-form__vs { padding: 0 6px 10px; font-weight: 700; color: var(--bb-muted); align-self: center; }
.bb-btn--primary { padding: 10px 22px; background: var(--bb-accent); color: #fff; border: 0; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: .92rem; }
.bb-btn--primary:hover { filter: brightness(.95); }
.bb-compare-suggested { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.bb-compare-suggested__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--bb-bg-card); border: 1px solid var(--bb-line); border-radius: 8px; text-decoration: none; color: var(--bb-text); font-size: .88rem; transition: border-color .15s, background .15s; }
.bb-compare-suggested__item:hover { border-color: var(--bb-accent); background: #fff; }
.bb-compare-suggested__item span { font-size: .72rem; text-transform: uppercase; color: var(--bb-muted); letter-spacing: .08em; }

/* ---------- Arena hero ---------- */
.bb-arena-hero { position: relative; padding: 80px 0 60px; color: #fff; background-size: cover; background-position: center; background-color: #1c1917; overflow: hidden; }
.bb-arena-hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(28,25,23,.85) 0%, rgba(28,25,23,.55) 100%); z-index: 1; }
.bb-arena-hero__inner { position: relative; z-index: 2; }
.bb-arena-hero h1 { margin: 0 0 8px; color: #fff; font-size: 2.4rem; letter-spacing: -.01em; }
.bb-arena-hero__sub { color: rgba(255,255,255,.85); margin: 0 0 24px; font-size: 1rem; }
.bb-arena-hero .bb-breadcrumbs { color: rgba(255,255,255,.65); margin-bottom: 14px; font-size: .85rem; }
.bb-arena-hero .bb-breadcrumbs a { color: var(--bb-accent-2); }
.bb-arena-hero .bb-breadcrumbs span { color: rgba(255,255,255,.4); }
.bb-arena-hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.bb-arena-stat { display: flex; flex-direction: column; gap: 2px; }
.bb-arena-stat strong { font-size: 1.8rem; line-height: 1; color: #fff; font-weight: 700; }
.bb-arena-stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.65); }

/* ---------- NBA Playoff bracket ---------- */
.bb-bracket {
  --bk-line: #d2d6dd;
  --bk-gap-x: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--bk-gap-x);
  align-items: stretch;
  overflow-x: auto;
  padding: 4px 2px 8px;
  min-height: 760px;
  margin-top: 14px;
}
/* Mirror layout: 7 columns — East R1, East CS, East CF, Finals, West CF, West CS, West R1 */
.bb-bracket--mirror {
  grid-template-columns: 1fr 1fr 1fr 1.15fr 1fr 1fr 1fr;
  --bk-gap-x: 18px;
}
.bb-bracket__col {
  display: grid;
  grid-template-rows: auto repeat(16, 1fr);
  min-width: 170px;
  min-height: 0;
}
.bb-bracket__head {
  grid-row: 1;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bb-muted);
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--bb-line);
  margin-bottom: 10px;
  line-height: 1.25;
  min-height: 40px;
}
.bb-bracket__head br { display: block; }
.bb-bracket__col--f .bb-bracket__head { color: var(--bb-accent); }
.bb-bracket__body { display: contents; }

/* Row spans per column so series midpoints align across stages.
   NBA: R1 has 8 series, CS has 4, CF has 2, F has 1. Pairs (2 series each)
   in R1=4 pairs, CS=2 pairs, CF=1 pair, F=solo. */
.bb-bracket__col--r1 .bb-bracket__pair { grid-row: span 8; }
.bb-bracket__col--cs .bb-bracket__pair { grid-row: span 16; }
.bb-bracket__col--cf .bb-bracket__pair { grid-row: span 16; }
.bb-bracket__col--f  .bb-bracket__pair { grid-row: span 16; }

.bb-bracket__pair {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 0;
  background: rgba(234, 88, 12, 0.04);
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: 8px;
  padding: 0 5px;
  box-sizing: border-box;
}
.bb-bracket__pair.is-solo {
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
}

/* `]` connector right of each pair (except final col) */
.bb-bracket__col:not(.bb-bracket__col--f) .bb-bracket__pair:not(.is-solo)::after {
  content: '';
  position: absolute;
  right: calc(var(--bk-gap-x) / -2);
  top: 25%;
  bottom: 25%;
  width: calc(var(--bk-gap-x) / 2);
  border-top: 1px solid var(--bk-line);
  border-right: 1px solid var(--bk-line);
  border-bottom: 1px solid var(--bk-line);
  pointer-events: none;
}
.bb-bracket__col:not(.bb-bracket__col--f) .bb-bracket__pair:not(.is-solo)::before {
  content: '';
  position: absolute;
  right: calc(var(--bk-gap-x) / -1);
  top: 50%;
  width: calc(var(--bk-gap-x) / 2);
  height: 1px;
  background: var(--bk-line);
  pointer-events: none;
}

.bb-bracket__tie {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.bb-bracket__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: .82rem;
  color: #555;
  border-bottom: 1px solid var(--bb-line);
}
.bb-bracket__row:last-child { border-bottom: 0; }
.bb-bracket__row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.bb-bracket__crest {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bb-bg-soft);
}
.bb-bracket__row a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-bracket__row a:hover { color: var(--bb-accent); }
.bb-bracket__total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--bb-line);
  border-radius: 4px;
  background: #fafbfc;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: .92rem;
  color: #222;
}
.bb-bracket__row.is-winner {
  background: #fff7ed;
}
.bb-bracket__row.is-winner a { font-weight: 700; color: var(--bb-text); }
.bb-bracket__row.is-winner .bb-bracket__total {
  background: rgba(234,88,12,.12);
  border-color: rgba(234,88,12,.4);
  color: var(--bb-accent);
}
.bb-bracket__row.is-loser { opacity: .55; }
.bb-bracket__row.is-loser img { filter: grayscale(.4); }
.bb-bracket__row.is-loser a { color: var(--bb-muted); font-weight: 500; }
.bb-bracket__row.is-loser .bb-bracket__total { color: var(--bb-muted); }

/* Caption below each tie: "OKC WINS 4-0" */
.bb-bracket__caption {
  padding: 5px 10px 6px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bb-text-soft);
  background: #fafbfc;
  text-align: center;
  border-top: 1px solid var(--bb-line);
}
.bb-bracket__caption b { color: var(--bb-accent); font-weight: 800; }
.bb-bracket__caption.is-live { color: #0a7d2c; }
.bb-bracket__caption.is-upcoming { color: var(--bb-muted); }
.bb-bracket__tie.is-upcoming .bb-bracket__total {
  color: #999;
  background: #f5f5f6;
}
.bb-bracket__meta {
  font-size: .7rem;
  color: var(--bb-muted);
  text-align: center;
  padding: 4px 8px 6px;
  background: #fafbfc;
}

/* Mirror layout — West side columns flow right-to-left */
.bb-bracket__col--mirrored .bb-bracket__head { text-align: right; }
.bb-bracket__row--rtl {
  grid-template-columns: auto 1fr 22px;
}
.bb-bracket__row--rtl a { text-align: right; }

/* Mirror connectors — for West side (mirrored cols) the ] points LEFT */
.bb-bracket__col--mirrored:not(.bb-bracket__col--f) .bb-bracket__pair:not(.is-solo)::after {
  content: ;
  position: absolute;
  left: calc(var(--bk-gap-x) / -2);
  right: auto;
  top: 25%;
  bottom: 25%;
  width: calc(var(--bk-gap-x) / 2);
  border-top: 1px solid var(--bk-line);
  border-left: 1px solid var(--bk-line);
  border-right: 0;
  border-bottom: 1px solid var(--bk-line);
}
.bb-bracket__col--mirrored:not(.bb-bracket__col--f) .bb-bracket__pair:not(.is-solo)::before {
  content: ;
  position: absolute;
  left: calc(var(--bk-gap-x) / -1);
  right: auto;
  top: 50%;
  width: calc(var(--bk-gap-x) / 2);
  height: 1px;
  background: var(--bk-line);
}

/* Legend below bracket */
.bb-bracket-legend { display: flex; justify-content: space-between; padding: 6px 8px 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bb-muted); font-weight: 700; }
.bb-bracket-legend__east { color: #1d4ed8; }
.bb-bracket-legend__west { color: #b91c1c; }

/* On mirror layout the Finals column should be visually centered & emphasised */
.bb-bracket--mirror .bb-bracket__col--f .bb-bracket__head { text-align: center; }
.bb-bracket--mirror .bb-bracket__col--f .bb-bracket__pair { padding: 0 8px; }
.bb-bracket--mirror .bb-bracket__col--f .bb-bracket__tie { box-shadow: 0 4px 14px rgba(234,88,12,.18); border-color: rgba(234,88,12,.35); }

/* Responsive: stack mirrored layout vertically on small screens */
@media (max-width: 1100px) {
  .bb-bracket--mirror {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .bb-bracket--mirror .bb-bracket__col--mirrored .bb-bracket__head { text-align: left; }
  .bb-bracket__row--rtl { grid-template-columns: 22px 1fr auto; }
  .bb-bracket__row--rtl a { text-align: left; }
  .bb-bracket__col--mirrored:not(.bb-bracket__col--f) .bb-bracket__pair:not(.is-solo)::after,
  .bb-bracket__col--mirrored:not(.bb-bracket__col--f) .bb-bracket__pair:not(.is-solo)::before { display: none; }
}

@media (max-width: 900px) {
  .bb-bracket { grid-template-columns: 1fr; min-height: 0; }
  .bb-bracket__col { grid-template-rows: auto; }
  .bb-bracket__col--r1 .bb-bracket__pair,
  .bb-bracket__col--cs .bb-bracket__pair,
  .bb-bracket__col--cf .bb-bracket__pair,
  .bb-bracket__col--f .bb-bracket__pair { grid-row: auto; }
  .bb-bracket__pair { margin-bottom: 10px; }
  .bb-bracket__col:not(.bb-bracket__col--f) .bb-bracket__pair:not(.is-solo)::after,
  .bb-bracket__col:not(.bb-bracket__col--f) .bb-bracket__pair:not(.is-solo)::before { display: none; }
}

/* === Bracket TBD placeholder slots === */
.bb-bracket__tie.is-placeholder {
  opacity: .45;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0,0,0,.025) 6px, rgba(0,0,0,.025) 12px);
}
.bb-bracket__tie.is-placeholder .bb-bracket__row { background: transparent; }
.bb-bracket__tie.is-placeholder .bb-bracket__tbd {
  font-style: italic;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: .02em;
}
.bb-bracket__tie.is-placeholder .bb-bracket__crest {
  background: transparent;
  border: 1.5px dashed #d1d5db;
}
.bb-bracket__tie.is-placeholder .bb-bracket__total {
  color: #d1d5db;
}

/* === Team cell with logo (used in /teams listing) === */
.bb-team-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.bb-team-cell:hover strong { color: var(--bb-accent, #ea580c); }
.bb-team-cell__logo {
  width: 28px; height: 28px; border-radius: 4px; object-fit: contain;
  flex-shrink: 0; background: #fff;
}
.bb-team-cell__logo--blank {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3f4f6; color: #9ca3af;
  font-weight: 700; font-size: .75rem; border: 1px solid #e5e7eb;
}

/* === Browse A-Z + Country tiles ============================== */
.bb-az-grid { display:grid; grid-template-columns:repeat(13,1fr); gap:.5rem; margin:1rem 0; }
@media (max-width:760px) { .bb-az-grid { grid-template-columns:repeat(6,1fr); } }
.bb-az-tile { display:flex; flex-direction:column; align-items:center; padding:.7rem .3rem; border:1px solid var(--bb-border); border-radius:8px; background:var(--bb-bg-card); color:var(--bb-text); text-decoration:none; transition:all .15s; }
.bb-az-tile:hover { border-color:var(--bb-accent); transform:translateY(-1px); }
.bb-az-tile.is-empty { opacity:.35; pointer-events:none; }
.bb-az-letter { font-size:1.4rem; font-weight:700; line-height:1; }
.bb-az-count { font-size:.7rem; opacity:.6; margin-top:.2rem; }
.bb-az-strip { display:flex; flex-wrap:wrap; gap:.25rem; margin:1rem 0; }
.bb-az-strip__a { display:inline-block; width:2.2rem; text-align:center; padding:.35rem .25rem; border:1px solid var(--bb-border); border-radius:6px; background:var(--bb-bg-card); color:var(--bb-text); text-decoration:none; font-weight:600; font-size:.9rem; }
.bb-az-strip__a.is-active { background:var(--bb-accent); color:#fff; border-color:var(--bb-accent); }
.bb-az-strip__a.is-empty { opacity:.3; pointer-events:none; }
.bb-az-strip__a:hover { border-color:var(--bb-accent); }

.bb-country-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:.5rem; margin-top:1rem; }
.bb-country-tile { display:flex; justify-content:space-between; align-items:center; padding:.6rem .8rem; border:1px solid var(--bb-border); border-radius:6px; background:var(--bb-bg-card); color:var(--bb-text); text-decoration:none; }
.bb-country-tile:hover { border-color:var(--bb-accent); }
.bb-country-count { font-size:.75rem; opacity:.6; }

/* === Seasons grid ============================================ */
.bb-season-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:.7rem; margin-top:.5rem; }
.bb-season-card { display:flex; flex-direction:column; gap:.3rem; padding:.8rem; border:1px solid var(--bb-border); border-radius:8px; background:var(--bb-bg-card); color:var(--bb-text); text-decoration:none; transition:all .15s; }
.bb-season-card:hover { border-color:var(--bb-accent); transform:translateY(-1px); }
.bb-season-card.is-current { border-color:var(--bb-accent); }
.bb-season-card__label { font-weight:700; font-size:1.05rem; }
.bb-season-card__champ { display:flex; align-items:center; gap:.4rem; font-size:.85rem; opacity:.9; }
.bb-season-card__champ img { width:18px; height:18px; object-fit:contain; }
.bb-season-card__games { font-size:.75rem; opacity:.55; }

/* === Stat leaders grid on season profile ===================== */
.bb-leaders-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:.8rem; margin-top:.5rem; }
.bb-leader-card { padding:.9rem 1rem; border:1px solid var(--bb-border); border-radius:8px; background:var(--bb-bg-card); }
.bb-leader-card h3 { margin:0 0 .6rem; font-size:.95rem; }
.bb-leader-list { list-style-position:inside; padding:0; margin:0; font-size:.9rem; }
.bb-leader-list li { display:flex; justify-content:space-between; padding:.2rem 0; }
.bb-leader-list li a { color:var(--bb-text); text-decoration:none; }
.bb-leader-list li a:hover { color:var(--bb-accent); }
.bb-leader-list .num { font-weight:700; }

.bb-awards-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:.4rem .8rem; }
.bb-award-row { padding:.4rem 0; border-bottom:1px solid var(--bb-border-soft,var(--bb-border)); display:flex; justify-content:space-between; gap:.6rem; }
.bb-award-name { font-weight:600; }
.bb-award-winner a { color:var(--bb-accent); text-decoration:none; }

/* === Mystery player quiz ===================================== */
.bb-quiz { max-width:560px; margin:1.5rem auto; }
.bb-quiz__clues { display:flex; flex-direction:column; gap:.5rem; margin-bottom:1.2rem; }
.bb-quiz__clue { display:flex; justify-content:space-between; padding:.6rem .8rem; border:1px solid var(--bb-border); border-radius:6px; background:var(--bb-bg-card); }
.bb-quiz__clue.is-hidden .bb-quiz__val { opacity:.3; font-style:italic; }
.bb-quiz__clue.is-revealed { border-color:var(--bb-accent); }
.bb-quiz__label { font-weight:600; }
.bb-quiz__form { display:flex; gap:.5rem; }
.bb-quiz__form input { flex:1; padding:.6rem .8rem; border:1px solid var(--bb-border); border-radius:6px; background:var(--bb-bg-card); color:var(--bb-text); font-size:1rem; }
.bb-quiz__result { margin-top:1rem; padding:.6rem; text-align:center; }
.bb-quiz__win { color:#2ea043; font-weight:600; }
.bb-quiz__lose { color:#cf222e; font-weight:600; }
.bb-quiz__loading { text-align:center; opacity:.6; padding:2rem; }
.bb-quiz__win a, .bb-quiz__lose a { color:inherit; }

/* === H2H selector ============================================ */
.bb-h2h-form { display:flex; align-items:flex-end; gap:1rem; padding:1.2rem; border:1px solid var(--bb-border); border-radius:10px; background:var(--bb-bg-card); margin-bottom:1.5rem; flex-wrap:wrap; }
.bb-h2h-side { flex:1; min-width:180px; position:relative; }
.bb-h2h-side label { display:block; font-size:.8rem; font-weight:600; opacity:.7; margin-bottom:.25rem; }
.bb-h2h-side input { width:100%; padding:.55rem .75rem; border:1px solid var(--bb-border); border-radius:6px; background:var(--bb-bg); color:var(--bb-text); font-size:1rem; }
.bb-h2h-vs { font-weight:700; font-size:1.1rem; opacity:.6; padding-bottom:.5rem; }
.bb-h2h-dd { position:absolute; top:100%; left:0; right:0; background:var(--bb-bg-card); border:1px solid var(--bb-border); border-radius:6px; margin-top:.25rem; max-height:240px; overflow-y:auto; z-index:50; }
.bb-h2h-dd a { display:block; padding:.5rem .75rem; color:var(--bb-text); text-decoration:none; border-bottom:1px solid var(--bb-border); }
.bb-h2h-dd a:last-child { border-bottom:none; }
.bb-h2h-dd a:hover { background:var(--bb-bg); }

.bb-h2h-suggest { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:.7rem; }
.bb-h2h-card { display:flex; align-items:center; gap:.5rem; padding:.7rem; border:1px solid var(--bb-border); border-radius:8px; background:var(--bb-bg-card); color:var(--bb-text); text-decoration:none; transition:all .15s; }
.bb-h2h-card:hover { border-color:var(--bb-accent); transform:translateY(-1px); }
.bb-h2h-card__player { display:flex; flex-direction:column; align-items:center; flex:1; text-align:center; font-size:.85rem; }
.bb-h2h-card__player img { width:48px; height:48px; border-radius:50%; object-fit:cover; margin-bottom:.3rem; background:var(--bb-bg); }
.bb-h2h-card__vs { font-size:.7rem; font-weight:700; opacity:.5; }

/* === Browse table ============================================ */
.bb-table--browse { width:100%; margin-top:.5rem; }
.bb-table--browse td, .bb-table--browse th { padding:.4rem .6rem; }
.bb-table--browse tbody tr:hover { background:var(--bb-bg-card); }
.bb-empty { padding:2rem; text-align:center; opacity:.6; }

/* ============================================================
   Unified site hero (2026-05-23)
   Same orange + court look across page headers, player & team profiles.
   ============================================================ */
.bb-page-header,
.bb-pp-hero,
.bb-tp-hero {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0 50px !important;
  color: #fff !important;
  border-bottom: 0 !important;
  background: none !important;
}
.bb-page-header::before,
.bb-pp-hero::before,
.bb-tp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../img/hero-court.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: brightness(.55);
}
.bb-page-header::after,
.bb-pp-hero::after,
.bb-tp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(28,25,23,.92) 0%, rgba(194,65,12,.75) 100%);
}
.bb-page-header h1,
.bb-pp-hero h1,
.bb-tp-hero h1 { color: #fff !important; }
.bb-page-header p,
.bb-page-header__sub,
.bb-pp-hero__sub,
.bb-tp-hero__sub { color: rgba(255,255,255,.85) !important; }
.bb-page-header--awards { background: none !important; }
.bb-page-header .bb-breadcrumbs,
.bb-pp-hero .bb-breadcrumbs,
.bb-tp-hero .bb-breadcrumbs { color: rgba(255,255,255,.7); }
.bb-page-header .bb-breadcrumbs a,
.bb-pp-hero .bb-breadcrumbs a,
.bb-tp-hero .bb-breadcrumbs a { color: #fed7aa; }
.bb-page-header .bb-breadcrumbs span,
.bb-pp-hero .bb-breadcrumbs span,
.bb-tp-hero .bb-breadcrumbs span { color: rgba(255,255,255,.4); }
/* Filterbar / form inside hero stays readable */
.bb-page-header .bb-filters input,
.bb-page-header .bb-filters select,
.bb-page-header .bb-filterbar input,
.bb-page-header .bb-filterbar select { background: rgba(255,255,255,.95); color: #111; }
.bb-page-header .bb-filters label,
.bb-page-header .bb-filterbar label { color: rgba(255,255,255,.85); }

/* ===== Unified pill filter bar =================================
   Single rounded white capsule containing: search + select(s) + toggle
   Filter button stays separate as orange pill on the right.
   Applied via .bb-filters wrapper. Old declarations above are overridden
   by this block (more specific selectors / later in cascade). */

.bb-filters {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  max-width: 820px;
}
.bb-filters__pill {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 280px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 14px 4px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  min-height: 44px;
}
.bb-filters__icon {
  display: inline-flex;
  color: #94a3b8;
  margin-right: 8px;
  flex-shrink: 0;
}
.bb-filters input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: .95rem;
  padding: 10px 0;
  outline: none;
  color: var(--bb-text);
  box-shadow: none;
}
.bb-filters input[type="search"]::placeholder {
  color: #94a3b8;
}
.bb-filters__sep {
  width: 1px;
  align-self: stretch;
  margin: 8px 10px;
  background: var(--bb-line, #e5e7eb);
}
.bb-filters select {
  border: 0;
  background: transparent;
  padding: 10px 6px 10px 0;
  font-size: .9rem;
  cursor: pointer;
  outline: none;
  color: var(--bb-text);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.bb-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--bb-text-soft);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background .15s, color .15s;
  user-select: none;
}
.bb-filters__toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--bb-accent);
}
.bb-filters__toggle:hover { color: var(--bb-text); }
.bb-filters__toggle:has(input:checked) {
  background: rgba(234, 88, 12, 0.10);
  color: var(--bb-accent);
}
.bb-filters__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--bb-accent);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.bb-filters__submit:hover { background: var(--bb-accent-3, #c2410c); }
.bb-filters__submit:active { transform: translateY(1px); }

/* Hero header: filter sits on dark hero; make pill stand out */
.bb-page-header .bb-filters__pill {
  box-shadow: 0 2px 4px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.16);
}

/* Mobile: collapse to stacked but keep pill shapes */
@media (max-width: 640px) {
  .bb-filters { flex-direction: column; gap: 8px; }
  .bb-filters__pill { min-width: 0; width: 100%; flex-wrap: wrap; padding: 8px 14px; }
  .bb-filters__sep { display: none; }
  .bb-filters__submit { width: 100%; }
}

/* ===== Pill filter bar v2 — Filter button merged INSIDE the same capsule =====
   Overrides v1 declarations from earlier in the file. */

.bb-filters {
  display: flex;
  margin-top: 18px;
  max-width: 820px;
}
.bb-filters__pill {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 280px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 4px 4px 18px;   /* tighter right padding so Filter sits flush */
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  min-height: 48px;
  gap: 0;
}
.bb-filters__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 38px;                /* fits inside the 48px-tall pill with 5px breathing room */
  border-radius: 999px;
  background: var(--bb-accent);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  margin-left: 10px;
  flex-shrink: 0;
}
.bb-filters__submit:hover { background: var(--bb-accent-3, #c2410c); }
.bb-filters__submit:active { transform: translateY(1px); }

/* Hero header: filter on dark hero — make pill stand out */
.bb-page-header .bb-filters__pill {
  box-shadow: 0 2px 4px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.16);
}

/* Mobile: stay in pill but allow wrap */
@media (max-width: 640px) {
  .bb-filters__pill { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .bb-filters__sep { display: none; }
  .bb-filters__submit { margin-left: auto; }
}

/* ===== Pill v3 — force capsule on Filter button (override v1 .bb-filters button) ===== */
.bb-filters button.bb-filters__submit,
.bb-filters .bb-filters__submit {
  border-radius: 999px !important;
  padding: 0 22px !important;
  height: 38px !important;
}

/* ===== Pill v4 — chip-style Active toggle (hide native checkbox) ===== */
.bb-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--bb-text) !important;
  font-size: .88rem !important;
  font-weight: 500;
  border: 1px solid var(--bb-line, #d1d5db);
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.bb-filters__toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.bb-filters__toggle::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid #94a3b8;
  background: #fff;
  transition: all .15s;
  flex-shrink: 0;
  display: inline-block;
}
.bb-filters__toggle:has(input:checked) {
  background: var(--bb-accent) !important;
  color: #fff !important;
  border-color: var(--bb-accent);
}
.bb-filters__toggle:has(input:checked)::before {
  background: #fff;
  border-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=none stroke=%23ea580c stroke-width=4 stroke-linecap=round stroke-linejoin=round><polyline points=20 6 9 17 4 12/></svg>");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.bb-filters__toggle:hover { border-color: var(--bb-accent); }

/* ===== Pill v5 — Active only: ONLY checkbox changes, frame/text stay the same ===== */
.bb-filters__toggle:has(input:checked) {
  background: transparent !important;
  color: var(--bb-text) !important;
  border-color: var(--bb-line, #d1d5db) !important;
}
.bb-filters__toggle:has(input:checked)::before {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=none stroke=%23ffffff stroke-width=4 stroke-linecap=round stroke-linejoin=round><polyline points=20 6 9 17 4 12/></svg>");
}

/* ===== Pill v6 — Active only: just a checkmark inside the box, no fill ===== */
.bb-filters__toggle:has(input:checked)::before {
  background: #fff !important;
  border-color: var(--bb-accent) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=none stroke=%23ea580c stroke-width=4 stroke-linecap=round stroke-linejoin=round><polyline points=20 6 9 17 4 12/></svg>") !important;
  background-size: 11px 11px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ===== Pill v7 — Active only: unicode checkmark glyph (no SVG dependency) ===== */
.bb-filters__toggle {
  position: relative;
}
.bb-filters__toggle::before {
  background: #fff !important;
  background-image: none !important;
}
.bb-filters__toggle:has(input:checked)::before {
  background: #fff !important;
  background-image: none !important;
  border-color: var(--bb-accent) !important;
}
.bb-filters__toggle::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--bb-accent);
  border-bottom: 2px solid var(--bb-accent);
  transform: translateY(-65%) rotate(-45deg);
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.bb-filters__toggle:has(input:checked)::after {
  opacity: 1;
}

/* ===== Awards "All winners" table ===== */
.bb-table--awards td:first-child { padding-right: 4px; }
.bb-aw-img {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: var(--bb-bg-soft, #f3f4f6);
  vertical-align: middle;
}
.bb-aw-img--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bb-bg-soft, #f3f4f6);
  color: var(--bb-accent, #ea580c);
  font-weight: 700;
  font-size: .9rem;
}
.bb-table--awards td.num { color: var(--bb-text-soft, #64748b); font-variant-numeric: tabular-nums; }

/* ===== National team medals =====================================*/
.bb-nt-medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.bb-nt-medal-card { background: #fff; border: 1px solid var(--bb-line, #e5e7eb); border-radius: 8px; padding: 12px 16px; }
.bb-nt-medal-card h3 { margin: 0 0 8px; font-size: .92rem; color: var(--bb-text); }
.bb-nt-medal-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bb-medal { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.bb-medal--gold   { background: #fef3c7; color: #92400e; }
.bb-medal--silver { background: #f1f5f9; color: #475569; }
.bb-medal--bronze { background: #fed7aa; color: #9a3412; }
.bb-nt-medal-empty { color: var(--bb-text-soft, #9ca3af); }

/* ===== Medals — remove chip background, plain text only ===== */
.bb-medal {
  background: none !important;
  padding: 0 !important;
  font-weight: 600;
  border-radius: 0 !important;
  display: inline;
}
.bb-medal--gold   { color: #b45309 !important; }
.bb-medal--silver { color: #475569 !important; }
.bb-medal--bronze { color: #9a3412 !important; }

/* Medal summary cards: borderless, no row pill bg */
.bb-nt-medal-card { background: transparent; border: 1px solid var(--bb-line, #e5e7eb); }

/* Force all medals table to full-width with sensible column widths */
.bb-section .bb-table {
  width: 100%;
  table-layout: auto;
}

/* ===== Tables full-width, columns evenly distributed ===== */
.bb-section .bb-table,
.bb-table--awards,
.bb-table--nat {
  width: 100% !important;
  table-layout: auto !important;
}
.bb-section .bb-table th,
.bb-section .bb-table td {
  white-space: normal;
}
/* Distribute Year/Tournament/Place/Medal/Won as columns evenly */
.bb-section .bb-table th:first-child,
.bb-section .bb-table td:first-child { width: 8%; }

/* ===== National team tables: cap width + force even column distribution ===== */
.bb-section .bb-table {
  max-width: 1100px !important;
  margin: 0 !important;
  table-layout: fixed !important;
}
/* Top scorers — distribute # | Player | Position | PPG */
.bb-section .bb-table th:nth-child(1),
.bb-section .bb-table td:nth-child(1) { width: 8% !important; }
.bb-section .bb-table th:nth-child(2),
.bb-section .bb-table td:nth-child(2) { width: 38% !important; }
.bb-section .bb-table th:nth-child(3),
.bb-section .bb-table td:nth-child(3) { width: 22% !important; }
.bb-section .bb-table th:nth-child(4),
.bb-section .bb-table td:nth-child(4) { width: 17% !important; }
.bb-section .bb-table th:nth-child(5),
.bb-section .bb-table td:nth-child(5) { width: 15% !important; }

/* ===== Tables FULL container width, no cap ===== */
.bb-section .bb-table {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* ===== First column (rank / year) flush left ===== */
.bb-section .bb-table th:first-child,
.bb-section .bb-table td:first-child {
  text-align: left !important;
  padding-left: 12px !important;
}
.bb-section .bb-table td:first-child .bb-table__rank {
  display: inline-block;
  text-align: left;
  width: auto;
}
/* ===== Compare — aesthetic refresh 2026-05-24 ===== */
.bb-cmp-title-vs { color: var(--bb-muted); font-weight: 600; font-size: .8em; margin: 0 .25em; }

.bb-cmp-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 14px;
  box-shadow: var(--bb-shadow);
  margin: 16px 0 32px;
}
.bb-cmp-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.bb-cmp-side__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bb-bg-soft);
  border: 3px solid var(--bb-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.bb-cmp-side:hover .bb-cmp-side__photo { border-color: var(--bb-accent); }
.bb-cmp-side__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bb-cmp-side strong {
  font-size: 1.1rem;
  color: var(--bb-text);
  text-align: center;
  font-family: 'Sora','Inter',sans-serif;
  font-weight: 700;
  margin-top: 4px;
}
.bb-cmp-side:hover strong { color: var(--bb-accent); }
.bb-cmp-side__meta {
  font-size: .78rem;
  color: var(--bb-muted);
  text-align: center;
  letter-spacing: .01em;
  line-height: 1.45;
}
.bb-cmp-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bb-accent);
  color: #fff;
  font-family: 'Sora','Inter',sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .05em;
  box-shadow: 0 4px 14px rgba(234,88,12,.28);
}

.bb-cmp-group-title {
  font-family: 'Sora','Inter',sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--bb-muted);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bb-line);
}

.bb-cmp-table {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--bb-shadow);
}
.bb-cmp-row {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--bb-line);
}
.bb-cmp-row:last-child { border-bottom: 0; }
.bb-cmp-row__val {
  font-family: 'Sora','Inter',sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bb-text);
  font-variant-numeric: tabular-nums;
}
.bb-cmp-row__val--left { text-align: right; }
.bb-cmp-row__val--right { text-align: left; }
.bb-cmp-row__val.is-better { color: var(--bb-accent); }
.bb-cmp-row__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bb-cmp-row__label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bb-muted);
}
.bb-cmp-row__bar {
  display: flex;
  width: 100%;
  height: 6px;
  background: var(--bb-bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.bb-cmp-row__bar-left,
.bb-cmp-row__bar-right {
  height: 100%;
  transition: width .25s ease;
}
.bb-cmp-row__bar-left  { background: #fdba74; border-right: 1px solid #fff; }
.bb-cmp-row__bar-right { background: #fdba74; border-left: 1px solid #fff; }
.bb-cmp-row__bar-left.is-better  { background: var(--bb-accent); }
.bb-cmp-row__bar-right.is-better { background: var(--bb-accent); }

.bb-cmp-bio {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--bb-shadow);
}
.bb-cmp-bio__row {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--bb-line);
}
.bb-cmp-bio__row:last-child { border-bottom: 0; }
.bb-cmp-bio__val {
  font-size: .95rem;
  font-weight: 600;
  color: var(--bb-text);
}
.bb-cmp-bio__row .bb-cmp-bio__val:first-child  { text-align: right; }
.bb-cmp-bio__row .bb-cmp-bio__val:last-child   { text-align: left; }
.bb-cmp-bio__label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bb-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .bb-cmp-hero { grid-template-columns: 1fr; gap: 16px; padding: 22px 16px; }
  .bb-cmp-vs { margin: 0 auto; }
  .bb-cmp-row { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .bb-cmp-row__center { grid-column: 1 / -1; order: -1; }
  .bb-cmp-row__val--left  { text-align: left; }
  .bb-cmp-row__val--right { text-align: right; }
  .bb-cmp-bio__row { grid-template-columns: 1fr 1fr; }
  .bb-cmp-bio__label { grid-column: 1 / -1; order: -1; text-align: center; }
  .bb-cmp-bio__row .bb-cmp-bio__val:first-child { text-align: left; }
}
/* ===== /Compare refresh ===== */



.bb-table--teams { table-layout: auto; }
.bb-table--teams th, .bb-table--teams td { white-space: nowrap; padding: 10px 12px; }
.bb-table--teams th:first-child, .bb-table--teams td:first-child { width: 1%; padding-right: 24px; }
.bb-table--teams th:not(:first-child), .bb-table--teams td:not(:first-child) { width: 1%; }
.bb-table--teams th:last-child, .bb-table--teams td:last-child { width: auto; }
/* ===== Transfers table — 2026-05-24 ===== */
.bb-table--transfers { table-layout: fixed; width: 100%; }
.bb-table--transfers col.col-date { width: 12%; }
.bb-table--transfers col.col-from { width: 36%; }
.bb-table--transfers col.col-arr  { width: 4%;  }
.bb-table--transfers col.col-to   { width: 36%; }
.bb-table--transfers col.col-type { width: 12%; }
.bb-table--transfers th.bb-tr-move { text-align: center; }
.bb-table--transfers td.bb-tr-date { width: 110px; color: var(--bb-muted); font-size: .82rem; }
.bb-table--transfers td.bb-tr-from { width: 260px; text-align: right; }
.bb-table--transfers td.bb-tr-arrow {
  width: 28px;
  text-align: center;
  color: var(--bb-muted);
  font-size: 1rem;
  padding-left: 6px;
  padding-right: 6px;
}
.bb-table--transfers td.bb-tr-to { width: 260px; text-align: left; }
.bb-table--transfers td.bb-tr-type {
  width: 140px;
  font-size: .78rem;
  color: var(--bb-muted);
  text-transform: capitalize;
}
.bb-table--transfers td.bb-tr-notes { font-size: .82rem; color: var(--bb-text-soft); white-space: normal; }
.bb-table--transfers a { color: var(--bb-text); font-weight: 600; }
.bb-table--transfers a:hover { color: var(--bb-accent); }
/* ===== /Transfers ===== */

/* Players table — explicit column widths (added 2026-05-24) */
.bb-player-row strong, .bb-team-row strong { white-space: nowrap; }
.bb-table--players { table-layout: fixed; width: 100%; }
.bb-table--players th, .bb-table--players td { padding: 10px 12px; vertical-align: middle; overflow: visible; }
/* 7 cols: Player, Pos, Team, Born, Nationality, Height, PPG */
.bb-table--players th:nth-child(1), .bb-table--players td:nth-child(1) { width: 250px; }
.bb-table--players th:nth-child(2), .bb-table--players td:nth-child(2) { width: 140px; }
.bb-table--players th:nth-child(3), .bb-table--players td:nth-child(3) { width: auto; }
.bb-table--players th:nth-child(4), .bb-table--players td:nth-child(4) { width: 80px; }
.bb-table--players th:nth-child(5), .bb-table--players td:nth-child(5) { width: 120px; }
.bb-table--players th:nth-child(6), .bb-table--players td:nth-child(6) { width: 90px; }
.bb-table--players th:nth-child(7), .bb-table--players td:nth-child(7) { width: 110px; }

/* Teams table — similar treatment */
.bb-table--teams { table-layout: fixed; width: 100%; }
.bb-table--teams th, .bb-table--teams td { padding: 10px 12px; vertical-align: middle; overflow: visible; }
.bb-table--teams th:nth-child(1), .bb-table--teams td:nth-child(1) { width: 260px; }


/* ===== Mega menu right-edge fix 2026-05-24 =====
   The last two mega dropdowns (Awards, Sister sites) sit far right; anchoring
   them with left:0 made them overflow the viewport and produce a 33px
   horizontal scrollbar. Anchor them on the right edge instead. */
.bb-nav .bb-nav__dropdown--mega:nth-last-of-type(-n+2) .bb-mega {
  left: auto;
  right: 0;
}
/* ===== /Mega menu fix ===== */

/* ===== Stats by season — neutralize the generic .bb-section .bb-table fixed-5-col rules
   that were collapsing columns 6-15 to 0px. 2026-05-24 ===== */
.bb-section .bb-table--stats {
  table-layout: auto !important;
  max-width: none !important;
  margin: 0 !important;
}
.bb-section .bb-table--stats th,
.bb-section .bb-table--stats td {
  width: auto !important;
  white-space: nowrap !important;
}
/* ===== /Stats reset ===== */

/* ===== Teams listing — override .bb-section .bb-table fixed-layout + 8% first col (2026-05-24) ===== */
.bb-section .bb-table.bb-table--teams {
  table-layout: auto !important;
  max-width: none !important;
  width: 100% !important;
}
.bb-section .bb-table.bb-table--teams th,
.bb-section .bb-table.bb-table--teams td {
  white-space: nowrap !important;
  width: auto !important;
}
.bb-section .bb-table.bb-table--teams th:first-child,
.bb-section .bb-table.bb-table--teams td:first-child {
  width: 1% !important;
  padding-right: 24px !important;
}
.bb-section .bb-table.bb-table--teams td:last-child {
  width: auto !important;
}
.bb-section .bb-table.bb-table--teams .bb-team-cell strong {
  white-space: nowrap;
}
/* ===== /Teams listing fix ===== */

/* ===== Team profile — empty state for stub clubs 2026-05-24 ===== */
.bb-tp-empty {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: var(--bb-shadow);
  max-width: 720px;
  margin: 8px auto;
}
.bb-tp-empty strong {
  display: block;
  font-family: 'Sora','Inter',sans-serif;
  font-size: 1.1rem;
  color: var(--bb-text);
  margin-bottom: 8px;
}
.bb-tp-empty p {
  color: var(--bb-text-soft);
  margin: 0 0 18px;
  font-size: .92rem;
  line-height: 1.55;
}
.bb-btn--ghost {
  display: inline-block;
  padding: 9px 18px;
  background: var(--bb-bg-soft);
  color: var(--bb-text);
  border: 1px solid var(--bb-line);
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.bb-btn--ghost:hover { background: #fff; border-color: var(--bb-accent); color: var(--bb-accent); text-decoration: none; }
/* ===== /Team empty state ===== */

/* ===== Team profile — historical players table 2026-05-25 ===== */
.bb-section .bb-table--historical {
  table-layout: auto !important;
  max-width: none !important;
  margin: 0 !important;
  width: 100%;
}
.bb-section .bb-table--historical th,
.bb-section .bb-table--historical td {
  width: auto !important;
  white-space: nowrap !important;
}
.bb-table--historical td.num,
.bb-table--historical th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bb-table--historical tbody tr:hover { background: #fff7ed; }
.bb-table--historical a { color: var(--bb-accent); font-weight: 600; }
.bb-table--historical a:hover { text-decoration: underline; }
/* ===== /historical ===== */


/* ===== National teams: keep country names on one line v2 (2026-05-25) ===== */
.bb-section .bb-table.bb-table--nat { table-layout: auto !important; }
.bb-section .bb-table.bb-table--nat th:first-child,
.bb-section .bb-table.bb-table--nat td:first-child {
  white-space: nowrap !important;
  width: 240px !important;
  min-width: 240px !important;
  padding-right: 22px !important;
}
.bb-section .bb-table.bb-table--nat th, .bb-section .bb-table.bb-table--nat td { white-space: nowrap !important; }
/* ===== /national teams nowrap ===== */

/* ===== Arena profile — about + photo (2026-05-25) ===== */
.bb-arena-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.bb-arena-about__photo {
  border: 1px solid var(--bb-line);
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: var(--bb-shadow);
}
.bb-arena-about__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.bb-arena-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.bb-arena-stats .bb-arena-stat { display: flex; flex-direction: column; }
.bb-arena-stats .bb-arena-stat strong { font-size: 1.6rem; font-weight: 700; color: #0f172a; line-height: 1.1; }
.bb-arena-stats .bb-arena-stat span { font-size: .72rem; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
@media (max-width: 820px) {
  .bb-arena-about { grid-template-columns: 1fr; }
  .bb-arena-about__photo { max-width: 480px; }
}

/* ---------- Player silhouette placeholders (when no real photo) ---------- */
.bb-player-row__silhouette { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; flex-shrink: 0; }
.bb-pp-hero__silhouette { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; display: block; }
.bb-similar__silhouette { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; margin-bottom: 10px; }
.bb-leader-card__silhouette { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; }
.bb-mvp__silhouette { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; }
.bb-decorated__silhouette { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; margin-bottom: 8px; }
.bb-aw-img--silh { object-fit: cover; background: #fff; }

/* Pair vertical spans so the midpoints align across stages.
   With 4 QF pairs in column 1, we need 4 grid rows; each subsequent column halves. */
.bb-bracket--euro .bb-bracket__col { min-width: 280px; grid-template-rows: auto repeat(8, 1fr); }
.bb-bracket--euro .bb-bracket__col--r1 .bb-bracket__pair { grid-row: span 2; }
.bb-bracket--euro .bb-bracket__col--cf .bb-bracket__pair { grid-row: span 4; }
.bb-bracket--euro .bb-bracket__col--f  .bb-bracket__pair { grid-row: span 8; }

/* Single-game ties (SF + F) are .is-solo so they get no left/right padding.
   But we still want the connector lines into them from the previous column. */
.bb-bracket--euro .bb-bracket__col:not(.bb-bracket__col--f) .bb-bracket__pair::after {
  content: ''; position: absolute;
  right: calc(var(--bk-gap-x) / -2); top: 25%; bottom: 25%;
  width: calc(var(--bk-gap-x) / 2);
  border-top: 1px solid var(--bk-line);
  border-right: 1px solid var(--bk-line);
  border-bottom: 1px solid var(--bk-line);
  pointer-events: none;
}
.bb-bracket--euro .bb-bracket__col:not(.bb-bracket__col--f) .bb-bracket__pair::before {
  content: ''; position: absolute;
  right: calc(var(--bk-gap-x) / -1); top: 50%;
  width: calc(var(--bk-gap-x) / 2); height: 1px;
  background: var(--bk-line); pointer-events: none;
}
/* QF pairs are NOT .is-solo (they were rendered without pair grouping by my view).
   But SF and F are single-game .is-solo. Connectors apply via :not(.is-solo) on default rule;
   override to also draw connectors from .is-solo in middle col. */
.bb-bracket--euro .bb-bracket__col--cf .bb-bracket__pair.is-solo::after {
  top: 50%; bottom: auto; height: 1px;
  border: 0; border-top: 1px solid var(--bk-line);
}
.bb-bracket--euro .bb-bracket__col--cf .bb-bracket__pair.is-solo::before { display: none; }
.bb-bracket--euro .bb-bracket__pair.is-solo { position: relative; }
.bb-bracket--euro .bb-bracket__pair { position: relative; background: transparent; border: 0; padding: 0; }

/* Row layout — flex so logo + name + score align in one line, name full width */
.bb-bracket--euro .bb-bracket__row {
  display: flex !important; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: .88rem;
}
.bb-bracket--euro .bb-bracket__row > a {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 auto; min-width: 0;
  text-decoration: none; color: inherit; overflow: hidden;
}
.bb-bracket--euro .bb-bracket__row > a img,
.bb-bracket--euro .bb-bracket__row > a .bb-bracket__crest {
  flex-shrink: 0; width: 26px; height: 26px;
}
.bb-bracket--euro .bb-bracket__row > a .bb-bracket__name {
  flex: 1 1 auto; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; color: #0f172a; font-weight: 500;
}
.bb-bracket--euro .bb-bracket__row.is-winner > a .bb-bracket__name { font-weight: 700; }
.bb-bracket--euro .bb-bracket__row > .bb-bracket__total {
  flex: 0 0 auto; min-width: 36px; text-align: right;
  font-size: 1rem; background: transparent !important;
  border: 0 !important; padding: 0 !important;
}
/* ===== Escape hatch (2026-05-25) — opt-out from .bb-section .bb-table fixed layout */
.bb-section .bb-table.bb-table--auto { table-layout: auto !important; max-width: none !important; }
.bb-section .bb-table.bb-table--auto th,
.bb-section .bb-table.bb-table--auto td { width: auto !important; white-space: nowrap !important; }


/* ===== Knockout bracket — tennis layout, basketball colors (2026-05-25) ===== */
.bb-ko {
  --bb-ko-line: #d2d6dd;
  --bb-ko-gap-x: 28px;
  --bb-ko-accent: #ea580c;
  --bb-ko-win-bg: #fff7ed;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--bb-ko-gap-x);
  align-items: stretch;
  overflow-x: auto;
  padding: 4px 2px 8px;
  min-height: 720px;
}
.bb-ko__col {
  display: grid;
  grid-template-rows: auto repeat(16, 1fr);
  min-width: 210px;
  min-height: 0;
}
.bb-ko__head {
  grid-row: 1;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  padding: 6px 4px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 10px;
}
.bb-ko__col--f .bb-ko__head { color: var(--bb-ko-accent); }
.bb-ko__body { display: contents; }

.bb-ko__col--r16 .bb-ko__pair { grid-row: span 4; }
.bb-ko__col--qf  .bb-ko__pair { grid-row: span 8; }
.bb-ko__col--sf  .bb-ko__pair { grid-row: span 16; }
.bb-ko__col--f  .bb-ko__pair { grid-row: span 16; }

.bb-ko__pair {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 0;
  padding: 0 5px;
}
.bb-ko__pair.is-solo { justify-content: center; }

.bb-ko__col:not(.bb-ko__col--f) .bb-ko__pair:not(.is-solo)::after {
  content: '';
  position: absolute;
  right: calc(var(--bb-ko-gap-x) / -2);
  top: 25%;
  bottom: 25%;
  width: calc(var(--bb-ko-gap-x) / 2);
  border-top: 1px solid var(--bb-ko-line);
  border-right: 1px solid var(--bb-ko-line);
  border-bottom: 1px solid var(--bb-ko-line);
  pointer-events: none;
}
.bb-ko__col:not(.bb-ko__col--f) .bb-ko__pair:not(.is-solo)::before {
  content: '';
  position: absolute;
  right: calc(var(--bb-ko-gap-x) / -1);
  top: 50%;
  width: calc(var(--bb-ko-gap-x) / 2);
  height: 1px;
  background: var(--bb-ko-line);
  pointer-events: none;
}

.bb-ko__tie {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bb-ko__tie:hover { border-color: #000; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.bb-ko__tie.is-placeholder { background: #fafbfc; border-style: dashed; }

.bb-ko__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  font-size: .85rem;
  color: #666;
  border-bottom: 1px solid #e5e7eb;
}
.bb-ko__row:last-child { border-bottom: 0; }
.bb-ko__row.is-winner { color: #111; font-weight: 700; background: var(--bb-ko-win-bg); }

.bb-ko__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  overflow: hidden;
}
.bb-ko__logo { width: 22px; height: 22px; flex-shrink: 0; object-fit: contain; }
.bb-ko__logo--ph { background: #f1f5f9; border-radius: 50%; display: inline-block; }

.bb-ko__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-ko__score {
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #888;
  min-width: 22px;
  text-align: right;
}
.bb-ko__score--w { color: var(--bb-ko-accent); font-weight: 800; }

.bb-ko__col--f .bb-ko__tie { border: 1.5px solid var(--bb-ko-accent); box-shadow: 0 2px 8px rgba(234, 88, 12, .18); }

/* Standings tables: never scroll horizontally */
.bb-table-wrap--standings { overflow-x: visible !important; overflow-y: visible !important; }
.bb-table-wrap--standings .bb-table--standings { width: 100% !important; min-width: 0 !important; table-layout: auto !important; }
/* Standings: never wrap cell text (esp. Playoffs column "Lost in R16", "Runner-up") */
.bb-table--standings th,
.bb-table--standings td { white-space: nowrap !important; }
/* Hide empty TBD placeholder ties — keep grid space but no visible card */
.bb-ko__tie.is-placeholder { visibility: hidden; border: 0; background: transparent; box-shadow: none; }
/* R16 column: distribute actual ties evenly (no fixed 8-row grid) */
.bb-ko__col--r16 { display: flex !important; flex-direction: column; }
.bb-ko__col--r16 .bb-ko__head { flex: 0 0 auto; }
.bb-ko__col--r16 .bb-ko__body { display: flex !important; flex-direction: column; flex: 1 1 auto; justify-content: space-around; }
.bb-ko__col--r16 .bb-ko__pair { display: flex; flex-direction: column; justify-content: space-around; flex: 1 1 0; min-height: 0; }


/* Compact brackets — when no R16 / no QF (Final Four or SF + Final only) */
.bb-ko--small {
  min-height: 320px !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}
.bb-ko--no-r16 {
  min-height: 480px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.bb-ko--small .bb-ko__col {
  grid-template-rows: auto repeat(4, 1fr);
}
.bb-ko--small .bb-ko__col--sf .bb-ko__pair { grid-row: span 4; }
.bb-ko--small .bb-ko__col--f  .bb-ko__pair { grid-row: span 4; }
.bb-ko--no-r16 .bb-ko__col { grid-template-rows: auto repeat(8, 1fr); }
.bb-ko--no-r16 .bb-ko__col--qf  .bb-ko__pair { grid-row: span 4; }
.bb-ko--no-r16 .bb-ko__col--sf  .bb-ko__pair { grid-row: span 8; }
.bb-ko--no-r16 .bb-ko__col--f   .bb-ko__pair { grid-row: span 8; }
