.event-page h1 {
  font-size: 1.9em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.event-page .section {
  margin-top: 24px;
}
.event-page h2 {
  font-size: 1.35em;
  margin: 0 0 12px;
}
.event-page .segmented-menu {
  margin-bottom: 0;
}
/* Sticky group tabs: jump between groups without covering fixtures */
.group-tabs {
  position: sticky;
  top: 50px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background-color: #fff;
  margin: 0 0 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.group-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.07);
  color: rgba(0, 0, 0, 0.7);
  font-weight: 600;
  font-size: 0.9em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.group-tab:hover {
  background-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.85);
}
.group-tab.active {
  background-color: var(--main-color);
  color: var(--on-primary);
}
.group-heading {
  scroll-margin-top: 110px;
}
.group-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0 0 12px;
}
.group-heading-row .group-heading {
  margin: 0;
}
.group-game-length {
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  white-space: nowrap;
}
.published {
  margin: auto;
}
.published li .scoreinfo {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
}
.published li .scoreinfo span.team {
  height: fit-content;
  font-weight: 500;
  line-height: 1.3;
}
/* Each match sits on its own card, FotMob-style */
ul.fixtures.published li.fix_main {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
ul.fixtures.published li.fix_main:hover {
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}
/* "Game N" labels become section dividers (kept high-contrast for outdoor use) */
ul.fixtures.published h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85em;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.7);
  margin: 18px 0 8px;
}
.published li.pens {
  display: grid !important;
  grid-template-columns: 1fr !important;
  padding: 4px 10px 14px !important;
  margin-top: -4px !important;
  background: transparent !important;
  text-align: center;
  font-size: 0.9em;
  color: rgba(0, 0, 0, 0.6);
}
.published span.pitch {
  display: block;
  font-size: 0.85em !important;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  margin-top: 3px;
}
.published li.fix_main .scoreinfo {
  margin-top: 0 !important;
}
.published .score {
  text-align: center;
  padding: 0;
  min-width: 72px;
  white-space: nowrap;
}
.published .score .val {
  font-weight: 700;
  font-size: 1.3em;
  letter-spacing: 0.5px;
}
/* Live "In Play" indicator */
.published .score .val.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
  color: #d3342f;
}
.published .score .val.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3342f;
  animation: live-pulse 1.2s infinite;
}
@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.published .fixture_winner {
  color: green;
  font-weight: bold;
}
/* Tighter, less cramped layout on narrow screens */
@media only screen and (max-width: 767px) {
  .event-page h1 {
    font-size: 1.65em;
  }
  ul.fixtures.published li.fix_main {
    padding: 14px 14px;
  }
  .published li .scoreinfo {
    column-gap: 12px;
  }
  .published li .scoreinfo span.team {
    font-size: 0.9em;
  }
  .published .score {
    min-width: 56px;
  }
  .published .score .val {
    font-size: 1.1em;
  }
  .published .score .val.live {
    font-size: 0.82em;
  }
  .published span.pitch {
    font-size: 0.78em !important;
  }
}
.key {
  line-height: 18px;
  height: 18px;
}
.key span {
  line-height: 18px;
}
.footer {
  padding-bottom: 80px !important;
}
@keyframes blinking-recent-score {
  0% {
    background-color: yellow;
  }
  50% {
    background-color: rgba(0, 0, 0, 0.1);
  }
  100% {
    background-color: yellow;
  }
}
.recent-score {
  animation: blinking-recent-score 1s infinite;
  background-color: rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}
.recent-score .scoreinfo {
  display: none;
}
.recent-score p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 9s linear infinite;
  font-size: 1.2em;
}
@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}
