/* =========================
   EVENT HUB TAB BAR (2027 sport pages)
   Sticks under the navbar (68px desktop, 55px phones). Tabs scroll sideways on phones.
========================= */
.hub-nav {
  position: sticky;
  top: 68px;
  z-index: 900;
  background: #151a1f;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hub-nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.hub-nav-label {
  flex: 0 0 auto;
  color: #f7f5f2;
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
}

.hub-nav-tabs {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hub-nav-tabs::-webkit-scrollbar {
  display: none;
}

.hub-nav-tabs li {
  flex: 0 0 auto;
}

.hub-tab {
  display: block;
  padding: 15px 14px 13px;
  border-bottom: 3px solid transparent;
  color: #b9b6b1;
  font: 700 12px "Sofia Sans", sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.hub-tab:hover {
  color: #fff;
}

.hub-tab.is-active {
  color: #fff;
  border-bottom-color: #bb080b;
}

/* =========================
   TEAM CRESTS (draw + bracket): team colour square with initials
========================= */
.crest {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  color: #fff;
  font: 800 17px/1 "Sofia Sans", sans-serif;
  letter-spacing: .5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.crest--sm {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 11px;
}

.crest--red { background: #bb080b; }
.crest--blue { background: #1d4ed8; }
.crest--green { background: #15803d; }
.crest--yellow { background: #ca8a04; color: #151a1f; }
.crest--black { background: #111; }
.crest--white { background: #e5e5e5; color: #151a1f; }
.crest--purple { background: #7c3aed; }
.crest--orange { background: #ea580c; }
.crest--tbd { background: #2d3033; color: #77736e; }

/* Uploaded team logo: shown whole on a white tile (no cropping). */
.crest--logo {
  overflow: hidden;
  padding: 4px;
  background: #fff;
}

.crest--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.crest--lg {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  font-size: 26px;
}

@media (max-width: 768px) {
  .hub-nav {
    top: 55px;
  }

  .hub-nav-inner {
    padding: 0 0 0 16px;
    gap: 10px;
  }

  .hub-nav-label {
    font-size: 18px;
  }

  .hub-tab {
    padding: 13px 11px 11px;
    font-size: 11px;
  }
}

/* Staff-only "Control" tab */
.hub-tab--staff {
  color: #ff6b6e;
}

.crest--xs {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 9px;
}
