/* ── Sport page layout ── */
.sport-page { padding: 0 0 72px; }

/* ── Banner ── */
.sport-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.banner-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.banner-logo svg { width: 64px; height: 64px; }

.banner-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.1;
}

.banner-sub {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Games list ── */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.games-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: .9rem;
}

/* ── Game row card ── */
.game-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color .2s, box-shadow .2s;
}

.game-row:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

/* Date block */
.game-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 6px;
  min-width: 60px;
}

.date-month {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--primary);
}

.date-day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.date-year {
  font-size: .62rem;
  color: var(--muted);
  margin-top: 1px;
}

/* Game info */
.game-info { min-width: 0; }

.game-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-venue {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-venue-icon { margin-right: 3px; }

/* Platform prices */
.game-prices {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 170px;
}

.game-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  gap: 10px;
}

.gp-platform {
  font-weight: 600;
  width: 90px;
  flex-shrink: 0;
}

.gp-price {
  font-weight: 800;
  text-align: right;
}

.gp-badge {
  font-size: .6rem;
  font-weight: 800;
  background: var(--green);
  color: #fff;
  padding: 1px 5px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* See Tickets button */
.see-tickets-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
}
.see-tickets-btn:hover { background: var(--primary-dark); }
.see-tickets-btn:active { transform: scale(.97); }

/* ── Browse picker ── */
.browse-picker {
  padding: 32px 0 12px;
}

.browse-prompt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: .01em;
}

.browse-categories {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.browse-cat-btn {
  flex: 1;
  min-width: 150px;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  text-align: center;
}

.browse-cat-btn:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.bcat-emoji       { font-size: 2.2rem; line-height: 1; }
.bcat-emoji.white { filter: brightness(0) invert(1); }
.bcat-label { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.bcat-desc  { font-size: .78rem; color: var(--muted); line-height: 1.4; }


/* ── Browse nav bar (Back + label) ── */
.browse-nav-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.browse-back-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
  white-space: nowrap;
}
.browse-back-btn:hover { border-color: var(--primary); color: var(--primary); }

.browse-nav-label {
  font-size: .9rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Options grids ── */
.opt-grid {
  display: grid;
  gap: 10px;
  padding-bottom: 40px;
}

.week-opt-grid  { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.team-opt-grid  { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.venue-opt-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.group-opt-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Team names stacked on group tiles */
.group-team-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 5px 0 6px;
}

.group-team-name {
  font-size: .73rem;
  color: var(--text);
  line-height: 1.4;
}

.opt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s, background .15s, transform .12s;
}

.opt-card:hover {
  border-color: var(--primary);
  background: rgba(22,163,74,.05);
  transform: translateY(-1px);
}

.opt-main  { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.opt-sub   { font-size: .75rem; color: var(--muted); }
.opt-count { font-size: .72rem; color: var(--primary); font-weight: 600; margin-top: 3px; }

/* Week badge on game title */
.week-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: .62rem;
  font-weight: 700;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .3px;
  vertical-align: middle;
}

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 20px 80px;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  opacity: .55;
}

.empty-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.empty-sub {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 340px;
}

.empty-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-weight: 600;
}
.empty-link-btn:hover { color: var(--primary-dark); }

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .25s, transform .25s, background .18s;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover  { background: var(--primary-dark); }
.back-to-top:active { transform: scale(.93); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .game-row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
  }
  .game-prices {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-width: unset;
  }
  .see-tickets-btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .banner-title         { font-size: 1.5rem; }
  .game-title           { font-size: .95rem; }
  .browse-cat-btn       { min-width: 100%; max-width: 100%; }
  .browse-categories    { flex-direction: column; }
  .week-opt-grid        { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .team-opt-grid        { grid-template-columns: 1fr; }
  .venue-opt-grid       { grid-template-columns: 1fr; }
  .group-opt-grid       { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .back-to-top          { bottom: 18px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
}
