/* Home page Upcoming section (js/home-upcoming.js) */

/* Day heading: "Tomorrow" on the left, how many matches that day on the right */
.hu-day { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hu-day small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 0.85; }

/* League heading, with its own column names when they differ from the list's */
.hu-league { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.hu-league > span { overflow: hidden; text-overflow: ellipsis; }
.hu-league .row-odds span { text-align: center; font-weight: 600; }

/* "Show more" under the list */
.hu-more-wrap { display: grid; justify-items: center; gap: 6px; padding: 14px 16px 18px; }
.hu-more { width: 100%; max-width: 360px; min-height: 44px; color: var(--green); }
.hu-more-wrap small { color: var(--muted); font-size: 0.8rem; }
.theme-dark .hu-more { color: var(--text); }

@media (max-width: 360px) {
  .hu-league { padding-inline: 12px; gap: 6px; }
}

/* Category buttons (js/catpage.js): name and how many matches */
.cat-btn { display: grid; align-content: space-between; gap: 6px; }
.cat-btn small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* The sport list page opened from the category buttons (js/catpage.js) */
#view-cat { min-height: 100vh; padding-bottom: 90px; background: var(--bg); }
.cat-top { grid-template-columns: 44px 1fr auto; gap: 8px; }
.cat-top .dep-back { color: #fff; }
.cat-title {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.cat-title .icon { width: 18px; height: 18px; }
.cat-tools { display: flex; gap: 6px; }

/* Live Betting 17 ... All Live 136 */
.cat-live { display: flex; justify-content: space-between; gap: 10px; margin: 10px 10px 0; }
.cat-live button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--grad-deep, #14306b);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cat-live b {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #c4b5fd;
  font-variant-numeric: tabular-nums;
}

/* Today / League / Odds / Sort */
.cat-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 10px 0; }
.cat-drop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 40px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.cat-drop span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-drop .icon { flex: none; width: 14px; height: 14px; color: var(--muted); }
.cat-drop.on { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); }
.cat-drop.on .icon { color: var(--purple); }
.cat-markets { margin: 10px 10px 0; }
.cat-list { margin: 10px; border-radius: 18px; overflow: hidden; }

/* Monday, 28/09 */
.cat-day {
  padding: 12px 14px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--head-bg, var(--bg));
  border-bottom: 1px solid var(--line);
}
@media (max-width: 360px) {
  .cat-drop { padding: 0 8px; font-size: 0.78rem; }
  .cat-live button { padding: 0 10px; font-size: 0.9rem; }
}
