:root {
  --orange: #F97316; --orange-mid: #FA9450; --orange-soft: #FDBA74; --orange-deep: #C2410C;
  --ink: #101828; --ink-2: #1D2939; --ink-3: #344054; --ink-0: #0A101C; --line: #E4E7EC; --page: #F6F7F9;
  --text: #101828; --muted: #667085; --good: #12B76A; --sky: #93C5FD; --mint: #A6E3C5; --r: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.55 "IBM Plex Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* basketballapi.net: /leagues */
/* ---------- header (approved) ---------- */
.hdr { background: var(--ink); color: #fff; position: relative; z-index: 3; }
.hdr .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .w { font: 800 21px/1 "Sora", sans-serif; letter-spacing: -0.035em; }
.brand .w i { font-style: normal; color: var(--orange); }
.brand .w small { font-weight: 600; font-size: .62em; color: #98A2B3; letter-spacing: 0; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--r); color: #D0D5DD; font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { color: #fff; background: var(--ink-2); }
.spacer { flex: 1; }
.right { display: flex; align-items: center; gap: 10px; }
.upsell { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--ink-3); border-radius: var(--r); font-size: 13.5px; color: #D0D5DD; white-space: nowrap; }
.upsell .tag { background: var(--orange); color: var(--ink); font-weight: 600; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r); font: 600 14.5px "IBM Plex Sans", sans-serif; white-space: nowrap; border: 0; cursor: pointer; transition: background .15s, transform .15s; }
.btn.ghost { color: #fff; background: transparent; }
.btn.ghost:hover { background: var(--ink-2); }
.btn.primary { background: var(--orange); color: var(--ink); }
.btn.primary:hover { background: var(--orange-mid); }
.btn.primary:active { transform: translateY(1px); }
.btn:focus-visible, .nav a:focus-visible, .burger:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; }
.burger { display: none; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--ink-3); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }
.short { display: none; }
.strip { background: var(--ink-2); color: #D0D5DD; font-size: 13px; position: relative; z-index: 3; }
.strip .wrap { height: 36px; display: flex; align-items: center; gap: 22px; overflow: hidden; white-space: nowrap; }
.strip .live { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.strip .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
.strip .g { display: inline-flex; gap: 6px; }
.strip .g b { color: #fff; font-weight: 600; }
.strip .g .won { color: var(--orange-soft); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(18, 183, 106, 0); opacity: .6; } 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .5); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* ---------- leagues ---------- */
.lg-hero { background: radial-gradient(900px 360px at 85% 0%, #1B2438 0%, var(--ink) 60%, var(--ink-0) 100%); color: #fff; }
.lg-hero .wrap { padding-top: 44px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.lg-hero h1 { font: 800 44px/1.06 "Sora", sans-serif; letter-spacing: -0.04em; margin: 0 0 12px; }
.lg-hero p { margin: 0; color: #C9D2E3; font-size: 16.5px; max-width: 54ch; }
.lg-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lg-nums div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px 14px 12px; }
.lg-nums b { display: block; font: 700 24px/1.1 "Sora", sans-serif; letter-spacing: -0.03em; }
.lg-nums span { font-size: 12.5px; color: #98A2B3; }

.lg-sec { padding-top: 40px; }
.lg-sec h2 { font: 700 24px/1.25 "Sora", sans-serif; letter-spacing: -0.025em; margin: 0 0 6px; }
.lg-sec > .wrap > p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }
.deep { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.deep button { text-align: left; background: #fff; border: 1px solid #EAECF0; border-radius: 14px; padding: 16px; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.deep button:hover { border-color: var(--orange-soft); box-shadow: 0 6px 20px -12px rgba(16,24,40,.35); }
.deep h3 { margin: 0 0 2px; font: 700 17px/1.3 "Sora", sans-serif; letter-spacing: -0.02em; }
.deep .where { font-size: 13px; color: var(--muted); }
.deep dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 13.5px; }
.deep dt { color: var(--muted); }
.deep dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.tools { position: sticky; top: 64px; z-index: 2; background: rgba(246,247,249,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 34px; }
.tools .wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.search { flex: 1 1 240px; min-width: 0; height: 40px; border: 1px solid #D0D5DD; border-radius: var(--r); padding: 0 12px; font: 15px "IBM Plex Sans", sans-serif; background: #fff; color: var(--text); }
.search:focus { outline: 3px solid var(--orange-soft); outline-offset: 0; border-color: var(--orange); }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #EAECF0; border-radius: 11px; }
.seg button { border: 0; background: transparent; font: 600 13.5px "IBM Plex Sans", sans-serif; color: #475467; padding: 7px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.tog { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #475467; cursor: pointer; user-select: none; }
.tog input { accent-color: var(--orange); width: 16px; height: 16px; margin: 0; }
.seg button:focus-visible, .deep button:focus-visible, .row:focus-visible, .lg-end a:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; }

.list { padding-top: 18px; padding-bottom: 30px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend b { color: var(--ink); }
.ctry { margin-top: 22px; }
.ctry h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font: 700 17px "Sora", sans-serif; letter-spacing: -0.02em; }
.ctry h3 small { font: 500 12.5px "IBM Plex Sans", sans-serif; color: var(--muted); letter-spacing: 0; }
.rows { background: #fff; border: 1px solid #EAECF0; border-radius: 14px; overflow: hidden; }
.head, .row { display: grid; grid-template-columns: minmax(0, 2.2fr) 150px 90px repeat(4, minmax(0, 1fr)); gap: 14px; align-items: center; padding: 11px 16px; }
.head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: #FCFCFD; border-bottom: 1px solid #EAECF0; padding-top: 8px; padding-bottom: 8px; }
.row { width: 100%; border: 0; border-top: 1px solid #F2F4F7; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.head + .row { border-top: 0; }
/* three detail columns while prices are held out of the API */
@media (min-width: 981px) { .np .head, .np .row { grid-template-columns: minmax(0, 2.2fr) 150px 90px repeat(3, minmax(0, 1fr)); } }
.row:hover { background: #FFFAF5; }
.nm { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tag { font: 600 11px "IBM Plex Sans", sans-serif; padding: 1px 7px; border-radius: 999px; background: #F2F4F7; color: #475467; }
.tag.up { background: #ECFDF3; color: #027A48; }
.yrs { font-size: 13.5px; color: #475467; font-variant-numeric: tabular-nums; }
.yrs small { display: block; font-size: 12px; color: var(--muted); }
.gm { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bar { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar i { display: block; height: 6px; border-radius: 3px; background: #EAECF0; overflow: hidden; }
.bar i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--orange); border-radius: 3px; }
.bar.none { color: #C0C5CF; }
.bar b { display: none; font-weight: 600; color: #475467; margin-right: 6px; }
.more { display: none; grid-column: 1 / -1; background: #FCFCFD; border-top: 1px dashed #EAECF0; padding: 14px 16px 16px; font-size: 14px; color: #475467; }
.row[aria-expanded="true"] + .more { display: block; }
.more p { margin: 0 0 10px; }
.more code { display: block; font: 500 13px "IBM Plex Mono", monospace; background: var(--ink); color: #E4E7EC; border-radius: 9px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
.empty { margin: 0; padding: 40px 16px; text-align: center; color: var(--muted); }
.wait { background: #fff; border: 1px solid #EAECF0; border-radius: 14px; padding: 22px; color: #475467; max-width: 640px; margin-top: 30px; }

.lg-end { padding-top: 10px; padding-bottom: 70px; }
.lg-end .box { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 18px; padding: 26px 28px; }
.lg-end h2 { margin: 0 0 4px; font: 700 22px "Sora", sans-serif; letter-spacing: -0.02em; }
.lg-end p { margin: 0; color: #C9D2E3; }
.lg-end .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.lg-end .btn.line { color: #fff; box-shadow: inset 0 0 0 1px #475467; background: transparent; }
.lg-end .btn.line:hover { background: rgba(255,255,255,.07); }

@media (max-width: 980px) {
  .lg-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .head { display: none; }
  .tools { position: static; }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 18px; }
  .nm { grid-column: 1 / -1; }
  .bar b { display: inline; }
}
@media (max-width: 480px) {
  .lg-hero h1 { font-size: 34px; }
  .lg-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { overflow-x: auto; max-width: 100%; }
}

/* the footer: the site's own links and its copyright, nothing from the company */
.foot { background: var(--ink-0); color: #98A2B3; font-size: 14px; }
.foot .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.07); }
.foot .brand { color: #fff; }
.foot-brand p { margin: 14px 0 0; max-width: 34ch; }
.foot h4 { margin: 0 0 12px; font: 600 13px "IBM Plex Sans", sans-serif; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot a:hover { color: #fff; }
.foot a:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; }
.foot-st { display: inline-flex; align-items: center; gap: 7px; }
.foot-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #98A2B3; }
.foot-st[data-state="up"]::before { background: var(--good); }
.foot-st[data-state="degraded"]::before { background: #F79009; }
.foot-st[data-state="down"]::before { background: #F04438; }
.foot-legal { padding-top: 22px; font-size: 13px; }

@media (max-width: 1100px) { .upsell { display: none; } }
@media (max-width: 980px) { .nav, .right .ghost { display: none; } .burger { display: grid; } .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .long { display: none; } .short { display: inline; } .hdr .wrap { gap: 12px; } }
