.football-sport-content:not([hidden]) { display: contents; }
.football-sport-content[hidden], .basketball-board[hidden] { display: none !important; }
.sport-switch { display: flex; gap: 4px; padding: 4px; width: fit-content; border: 1px solid #dfe7e2; border-radius: 6px; background: #fff; }
.sport-switch button { min-width: 84px; min-height: 38px; padding: 0 18px; border: 0; border-radius: 4px; background: transparent; color: #61716b; font-size: 13px; font-weight: 600; cursor: pointer; }
.sport-switch button.active { background: #263f38; color: #fff; }
.basketball-board { min-width: 0; color: #1e3129; }
.basketball-heading { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.basketball-heading h2 { margin: 0; color: #21362e; font-size: 24px; line-height: 1.3; }
.basketball-heading p { margin: 4px 0 0; color: #6e7e75; font-size: 12px; }
.basketball-heading > div { min-width: 0; }
.basketball-date { flex: 0 0 158px; min-width: 0; }
.basketball-date .date-field { width: 100%; min-width: 0; max-width: 100%; }
.basketball-toolbar { border: 1px solid #dfe7e2; border-bottom: 0; border-radius: 6px 6px 0 0; background: #fff; }
.basketball-markets { display: flex; border-bottom: 1px solid #e5ece8; }
.basketball-markets button { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 8px 4px; border: 0; border-bottom: 2px solid transparent; background: #fff; color: #5e7066; font-size: 13px; font-weight: 600; cursor: pointer; }
.basketball-markets button.active { color: #a3313e; border-bottom-color: #ad3542; }
.basketball-tools { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f8faf9; }
.basketball-search { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 360px; flex: 1 1 auto; padding: 0 10px; border: 1px solid #dce6df; border-radius: 5px; background: #fff; color: #73837a; }
.basketball-search input { min-width: 0; width: 100%; min-height: 36px; border: 0; outline: 0; background: transparent; color: #263a30; font: inherit; font-size: 12px; }
.basketball-search:focus-within { outline: 3px solid #cc7881; outline-offset: 2px; }
.basketball-tools .btn { min-height: 38px; padding-inline: 16px; }
.basketball-summary { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 1px solid #dfe7e2; border-bottom: 0; background: #f7faf8; color: #5e7065; font-size: 11px; }
.basketball-summary span:first-child { color: #263d31; font-weight: 700; }
.basketball-notice { padding: 10px 14px; border: 1px solid #edd7ad; background: #fff8e9; color: #785519; font-size: 12px; line-height: 1.5; }
.basketball-notice[hidden] { display: none; }
.basketball-list { border: 1px solid #dfe7e2; background: #fff; }
.basketball-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px; border-bottom: 1px solid #e6ece8; }
.basketball-row:last-child { border-bottom: 0; }
.basketball-number { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 5px; border-radius: 4px; background: #f2f6f3; text-align: center; }
.basketball-number strong { color: #a3313e; font-size: 13px; font-weight: 700; }
.basketball-number time { color: #718077; font-size: 11px; font-variant-numeric: tabular-nums; }
.basketball-main { min-width: 0; }
.basketball-league { color: #6d8074; font-size: 11px; font-weight: 600; }
.basketball-teams { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 6px; margin: 4px 0 10px; }
.basketball-teams > span:not(.basketball-vs) { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; }
.basketball-teams small { color: #87958b; font-size: 10px; white-space: nowrap; }
.basketball-teams strong { color: #20352a; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; text-align: center; }
.basketball-vs { color: #9aa9a0; font-size: 10px; text-align: center; }
.basketball-market-line { display: grid; grid-template-columns: minmax(90px, .8fr) repeat(2, minmax(0, 1fr)); min-height: 48px; overflow: hidden; border: 1px solid #dce7df; border-radius: 4px; background: #fbfdfb; }
.basketball-line-label { display: grid; place-items: center; padding: 6px; border-right: 1px solid #e3ebe5; color: #64796c; font-size: 11px; text-align: center; }
.basketball-price { display: grid; place-content: center; gap: 2px; min-width: 0; text-align: center; }
.basketball-price + .basketball-price { border-left: 1px solid #e3ebe5; }
.basketball-price small { color: #ad3542; font-size: 10px; }
.basketball-price strong { color: #294133; font-size: 15px; font-variant-numeric: tabular-nums; }
.basketball-market-status { display: block; margin-top: 5px; color: #75877c; font-size: 10px; }
.basketball-no-odds { padding: 12px; border: 1px solid #e3eae5; border-radius: 4px; background: #f8faf9; color: #77887f; font-size: 12px; text-align: center; }
.basketball-margin { overflow: hidden; border: 1px solid #dce7df; border-radius: 4px; background: #fff; }
.basketball-margin summary { display: flex; justify-content: space-between; gap: 8px; min-height: 40px; align-items: center; padding: 0 10px; color: #52695c; font-size: 12px; cursor: pointer; list-style: none; }
.basketball-margin summary::-webkit-details-marker { display: none; }
.basketball-margin summary span { color: #a3313e; font-size: 11px; }
.basketball-margin summary span::after { content: "  +"; }
.basketball-margin[open] summary span::after { content: "  −"; }
.basketball-margin-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid #e3ebe5; }
.basketball-margin-grid span { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 48px; padding: 4px 1px; border-right: 1px solid #e3ebe5; border-bottom: 1px solid #e3ebe5; }
.basketball-margin-grid span:nth-child(6n) { border-right: 0; }
.basketball-margin-grid small { color: #a3313e; font-size: 10px; overflow-wrap: anywhere; text-align: center; }
.basketball-margin-grid strong { color: #294133; font-size: 12px; font-variant-numeric: tabular-nums; }
.basketball-empty { padding: 30px 16px; color: #718078; font-size: 13px; text-align: center; }
.basketball-source { padding: 12px 2px; color: #718078; font-size: 11px; line-height: 1.5; }
.basketball-source a { color: #8d303b; text-decoration: underline; }

@media (max-width: 760px) {
  .sport-switch { width: 100%; border: 0; border-bottom: 1px solid #e2e9e4; border-radius: 0; padding: 4px 10px; }
  .sport-switch button { min-width: 74px; min-height: 34px; }
  .basketball-heading { min-height: 52px; padding: 6px 12px; background: #fff; }
  .basketball-heading h2 { font-size: 18px; }
  .basketball-heading p { margin-top: 2px; font-size: 10px; }
  .basketball-date .date-field { min-height: 36px; }
  .basketball-toolbar { border-right: 0; border-left: 0; border-radius: 0; }
  .basketball-markets button { min-height: 42px; font-size: 12px; }
  .basketball-tools { padding: 8px 10px; }
  .basketball-summary { padding: 8px 10px; border-right: 0; border-left: 0; }
  .basketball-list { border-right: 0; border-left: 0; }
  .basketball-row { grid-template-columns: 68px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .basketball-number { gap: 5px; padding: 9px 3px; }
  .basketball-number strong { font-size: 12px; white-space: nowrap; }
  .basketball-number time { font-size: 10px; line-height: 1.3; }
  .basketball-teams { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 3px; margin-bottom: 8px; }
  .basketball-teams > span:not(.basketball-vs) { display: grid; gap: 2px; }
  .basketball-teams strong { font-size: 14px; }
  .basketball-market-line { grid-template-columns: minmax(72px, .9fr) repeat(2, minmax(0, 1fr)); min-height: 42px; }
  .basketball-line-label { font-size: 10px; }
  .basketball-price strong { font-size: 13px; }
  .basketball-margin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .basketball-margin-grid span:nth-child(3n) { border-right: 0; }
  .basketball-source { padding: 12px; }
}
@media (max-width: 360px) {
  .basketball-row { grid-template-columns: 60px minmax(0, 1fr); gap: 6px; padding-inline: 7px; }
  .basketball-teams strong { font-size: 13px; }
}
