/* Basketball page: same look as football, different layout (days, not weeks). */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: 18px 0 14px; }
.toolbar .search { flex: 1 1 200px; min-width: 160px; }

.mich-toggle {
  border: 2px solid var(--accent); background: var(--surface); color: var(--accent);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer;
}
.mich-toggle[aria-pressed="true"] { background: var(--accent); color: var(--surface); }

/* ---------- calendar ---------- */

.calendar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 12px 10px; margin-bottom: 22px;
}
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-title { margin: 0 4px; font-size: 1.15rem; flex: 1 1 auto; min-width: 0; }
.date-jump input { font: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }

.strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.day-chip {
  flex: 0 0 auto; width: 70px; scroll-snap-align: center; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 12px; padding: 6px 0 8px; text-align: center; cursor: pointer; display: grid; gap: 1px; position: relative;
}
.day-chip .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.day-chip .num { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.day-chip .cnt { font-size: .66rem; white-space: nowrap; color: var(--muted); }
.day-chip.month-start { margin-left: 10px; }
.day-chip .mon { font-size: .68rem; font-weight: 700; color: var(--accent); }
.day-chip.is-today .num { color: var(--accent); }
.day-chip.is-empty { opacity: .45; }
.day-chip.is-dim { opacity: .35; }
.day-chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); opacity: 1; }
.day-chip[aria-selected="true"] .dow,
.day-chip[aria-selected="true"] .cnt,
.day-chip[aria-selected="true"] .mon,
.day-chip[aria-selected="true"] .num { color: inherit; }
.day-chip .mdot { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--fav); }

/* ---------- game list ---------- */

.slot-title {
  position: sticky; top: 0; z-index: 1; margin: 18px 0 8px; padding: 4px 0; font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg);
}
.day-title { margin: 22px 0 0; font-size: 1.05rem; scroll-margin-top: 12px; }
.day-title.is-picked { color: var(--accent); }

.bgame {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 11px 14px; margin-bottom: 8px;
}
.bgame.game-fav { border-left: 4px solid var(--fav); background: linear-gradient(90deg, var(--fav-soft), var(--surface) 40%); }
.bgame.game-done { opacity: .6; }
.bgame .teams { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bgame .meta { display: block; margin-top: 3px; font-size: .8rem; color: var(--muted); }
.bgame .watch { border-left: 3px solid var(--accent); padding-left: 12px; }
.bgame .chan { display: inline-block; font-weight: 800; letter-spacing: .02em; margin-right: 8px; }
.bgame .watch.watch-none { border-left-color: var(--line); color: var(--muted); }

@media (max-width: 640px) {
  .bgame { grid-template-columns: 1fr; }
  .day-chip { width: 66px; }
}

/* ---------- my players (fantasy) ---------- */

.players { margin: 0 0 14px; }
.players-head { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.player-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.player-search input { width: 100%; }
.player-results {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgb(0 0 0 / 18%);
  max-height: 320px; overflow-y: auto;
}
.player-results li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.player-results li[aria-selected="true"], .player-results li:hover { background: var(--accent-soft); }
.player-results .pmeta { margin-left: auto; font-size: .8rem; color: var(--muted); }
.player-results .none { cursor: default; color: var(--muted); }
.player-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.player-chips:empty { display: none; }
.pchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent); font-size: .9rem;
}
.pchip button { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: inherit; padding: 0 4px; }
.pchip .hurt, .pbadge .hurt { color: var(--live); font-weight: 700; font-size: .75rem; }
.players-hint { margin: 8px 0 0; font-size: .85rem; }
.pbadge { display: inline-block; margin: 6px 6px 0 0; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); font-size: .8rem; font-weight: 600; }
.bgame .roster-line { margin-top: 4px; }
