.basketbal-page {
  width: 100%;
  max-width: none;
  padding: 32px 0 64px;
  color: var(--text);
}

.basketbal-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
  gap: 24px;
  align-items: start;
}

.basketbal-main,
.basketbal-sidebar {
  min-width: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.basketbal-main {
  padding: clamp(20px, 3vw, 36px);
}

.basketbal-heading {
  margin-bottom: 28px;
}

.basketbal-heading h1 {
  margin: 0 0 8px;
}

.basketbal-heading p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.basketbal-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.basketbal-list-head,
.basketbal-match {
  display: grid;
  grid-template-columns: minmax(86px, .9fr) minmax(115px, 1.45fr) minmax(75px, .8fr) minmax(0, 2.8fr) minmax(80px, .9fr);
  align-items: center;
  gap: 12px;
}

.basketbal-list-head {
  padding: 0 16px 10px;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.basketbal-match {
  min-height: 76px;
  padding: 14px 16px;
  transition: background-color .15s ease;
}

.basketbal-match:nth-child(even) {
  background: rgba(127, 127, 127, .07);
}

.basketbal-match:hover {
  background: rgba(255, 122, 0, .1);
}

.basketbal-match > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.basketbal-category {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 122, 0, .14);
  color: #b75100;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme="dark"] .basketbal-category {
  color: #ffad61;
}

.basketbal-match-competition {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.basketbal-match-competition small,
.basketbal-match-teams small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-size: .73rem;
  font-weight: 400;
  line-height: 1.35;
}

.basketbal-match-time {
  color: var(--text-muted);
  font-size: .86rem;
}

.basketbal-match-teams {
  font-size: .94rem;
  line-height: 1.4;
}

.basketbal-match-teams strong {
  color: var(--text);
  font-weight: 750;
}

.basketbal-separator {
  color: var(--text-muted);
  padding-inline: 3px;
}

.basketbal-match-score {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.basketbal-match-score strong {
  color: var(--text);
}

.basketbal-match-score span {
  color: var(--text-muted);
}

.basketbal-empty {
  padding: 28px;
  border-radius: var(--radius-sm);
  background: rgba(127, 127, 127, .07);
}

.basketbal-empty p {
  margin-bottom: 10px;
}

.basketbal-empty a {
  color: var(--primary);
  font-weight: 700;
}

.basketbal-sidebar {
  padding: 20px;
}

.basketbal-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.basketbal-calendar-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  text-align: center;
}

.basketbal-calendar-heading a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
}

.basketbal-calendar-heading a:hover {
  background: rgba(127, 127, 127, .12);
}

.basketbal-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.basketbal-calendar-weekday,
.basketbal-calendar-day,
.basketbal-calendar-blank {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  font-size: .85rem;
}

.basketbal-calendar-weekday {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
}

.basketbal-calendar-day {
  position: relative;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.basketbal-calendar-day:hover {
  background: rgba(255, 122, 0, .14);
  color: var(--text);
  text-decoration: none;
}

.basketbal-calendar-day.is-today {
  outline: 1px solid var(--primary);
  outline-offset: -2px;
}

.basketbal-calendar-day.is-selected,
.basketbal-calendar-day.is-selected:hover {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.basketbal-calendar-day.has-match::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff7a00;
}

.basketbal-calendar-day.is-selected.has-match::after {
  background: #fff;
}

.basketbal-calendar-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: .76rem;
}

.basketbal-calendar-legend span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7a00;
}

@media (max-width: 1180px) {
  .basketbal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .basketbal-sidebar {
    order: -1;
    width: min(100%, 420px);
  }
}

@media (max-width: 760px) {
  .basketbal-page {
    padding-block: 16px 40px;
  }

  .basketbal-layout {
    gap: 16px;
  }

  .basketbal-sidebar {
    width: 100%;
  }

  .basketbal-list-head {
    display: none;
  }

  .basketbal-match {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "category time"
      "competition competition"
      "teams teams"
      "score score";
    align-items: start;
    gap: 8px 10px;
    min-height: 0;
  }

  .basketbal-match-category { grid-area: category; }
  .basketbal-match-competition { grid-area: competition; }
  .basketbal-match-competition small { display: inline; margin-left: 5px; }
  .basketbal-match-competition small::before { content: '· '; }
  .basketbal-match-time { grid-area: time; text-align: right; }
  .basketbal-match-teams { grid-area: teams; }
  .basketbal-match-score { grid-area: score; text-align: left; }
}

.basketbal-match-competition a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.basketbal-match-competition a:hover {
  color: var(--basketball);
  text-decoration: underline;
}

.basketbal-competition-page .basketbal-heading {
  margin-bottom: 32px;
}

.basketbal-competition-page .basketbal-kicker {
  color: var(--basketball);
}

.basketbal-competition-teams small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 400;
  line-height: 1.35;
}

.basketbal-competition-list {
  display: grid;
}

.basketbal-round {
  margin: 28px 0 8px;
  font-size: 1.65rem;
}

.basketbal-round:first-child {
  margin-top: 0;
}

.basketbal-competition-match {
  display: grid;
  grid-template-columns: minmax(90px, .85fr) minmax(70px, .7fr) minmax(0, 2.8fr) minmax(70px, .7fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  scroll-margin-top: 24px;
}

.basketbal-competition-match:nth-of-type(odd) {
  background: rgba(127, 127, 127, .1);
}

.basketbal-competition-match time,
.basketbal-competition-time {
  color: var(--text-muted);
  font-style: italic;
}

.basketbal-competition-teams {
  min-width: 0;
  overflow-wrap: anywhere;
}

.basketbal-competition-teams strong {
  font-weight: 750;
}

.basketbal-competition-score {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.basketbal-competition-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.basketbal-side-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.basketbal-side-card h2 {
  margin: 0;
  padding: 14px 20px;
  background: var(--basketball);
  color: #fff;
  font-size: 1.55rem;
}

.basketbal-side-links {
  display: grid;
  padding: 12px 0;
}

.basketbal-side-links a {
  display: block;
  padding: 9px 20px;
  color: var(--text);
  text-decoration: none;
}

.basketbal-side-links a:hover,
.basketbal-side-links a[aria-current="page"] {
  color: var(--basketball);
  background: rgba(248, 81, 19, .1);
}

.basketbal-side-links small {
  display: block;
  color: var(--text-muted);
}

.basketbal-standings-scroll {
  overflow-x: auto;
}

.basketbal-standings {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
}

.basketbal-standings th,
.basketbal-standings td {
  padding: 12px 10px;
  text-align: center;
  white-space: nowrap;
}

.basketbal-standings th:nth-child(2),
.basketbal-standings td:nth-child(2) {
  text-align: left;
}

.basketbal-standings thead {
  background: rgba(248, 81, 19, .16);
}

.basketbal-standings tbody tr:nth-child(odd) {
  background: rgba(127, 127, 127, .1);
}

.basketbal-standings tbody th {
  font-weight: 650;
}

.basketbal-standings-legend {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: .8rem;
}

@media (max-width: 1180px) {
  .basketbal-competition-sidebar {
    order: -1;
  }

  .basketbal-competition-sidebar .basketbal-side-card:last-child .basketbal-side-links {
    max-height: 240px;
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .basketbal-competition-match {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "date time"
      "teams score";
    gap: 4px 12px;
  }

  .basketbal-competition-match time { grid-area: date; }
  .basketbal-competition-time { grid-area: time; text-align: right; }
  .basketbal-competition-teams { grid-area: teams; }
  .basketbal-competition-score { grid-area: score; }
}