/* ============================================================
   FIXTURE PAGE STYLES
   ============================================================ */

/* PAGE HEADER — back link, title, men/women toggle */
#fixture-header {
  padding: 130px var(--page-gutter) 40px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

.fixture-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid rgba(182, 152, 90, 0.25);
  padding-bottom: 28px;
}

.fixture-header-row h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.88;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* MATCH LIST */
#matches-list {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--page-gutter) 80px;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 28px 0;
  border-bottom: 1px solid rgba(182, 152, 90, 0.12);
}

.match-row:last-child {
  border-bottom: none;
}

.match-row.is-final,
.match-row.is-semifinal {
  min-height: 112px;
}

.match-row.is-score {
  min-height: 87px;
}

.match-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.match-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 3.3px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 360px;
  flex-shrink: 0;
}

.match-team.home {
  justify-content: flex-end;
}

.match-team.away {
  justify-content: flex-start;
}

/* Desktop: Team1 Name -> Team1 Logo -> VS/Score -> Team2 Logo -> Team2 Name */
.match-team.home .team-name {
  order: -1;
}

.team-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--black-3);
  padding: 8px;
  overflow: visible;
  object-position: center center;
}

.team-name {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.48px;
  text-transform: uppercase;
  color: var(--offwhite);
  text-align: center;
  white-space: nowrap;
}

.match-center {
  background: #161515;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px 8px;
}

.match-center.is-vs {
  width: 58px;
}

.match-center.is-score {
  width: 72px;
}

.matches-status {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Skeleton loader */
@keyframes match-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.match-skeleton .skeleton-block {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: match-skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 2px;
}

.match-skeleton .skeleton-label {
  width: 140px;
  height: 12px;
}

.match-skeleton .skeleton-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.match-skeleton .skeleton-name {
  height: 18px;
  width: 120px;
}

.match-skeleton .match-team.home .skeleton-name {
  width: 100px;
}

.match-skeleton .skeleton-center {
  width: 58px;
  height: 48px;
  flex-shrink: 0;
}

.match-center span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 0.85;
  letter-spacing: -0.48px;
  color: var(--grey);
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #fixture-header {
    padding: 120px var(--page-gutter) 30px;
  }
}

@media (max-width: 900px) {
  .fixture-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #matches-list {
    padding: 0 var(--page-gutter) 64px;
  }

  .match-row.is-final,
  .match-row.is-semifinal {
    min-height: 156px;
  }

  .match-row.is-score {
    min-height: 131px;
  }

  .match-inner {
    gap: 24px;
  }

  .match-label {
    gap: 4px;
    font-size: 11px;
    letter-spacing: 2.4px;
    text-align: center;
  }

  .match-teams {
    width: 100%;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .match-team {
    width: 0;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .match-team.home,
  .match-team.away {
    justify-content: center;
    flex-direction: column;
  }

  .match-team.home .team-name {
    order: 0;
  }

  .team-logo {
    width: 40px;
    height: 40px;
  }

  .team-name {
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.2px;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }

  .match-center {
    flex-shrink: 0;
    padding: 10px 4px;
  }

  .match-center.is-vs {
    width: 48px;
  }

  .match-center.is-score {
    width: 60px;
  }

  .match-row .drawer,
  .match-row:hover .drawer,
  .match-row.is-live .drawer,
  .match-row.is-vs .drawer,
  .match-row.is-score .drawer {
    max-height: none;
    opacity: 1;
    margin-top: 14px;
    overflow: visible;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .match-action,
  .match-action--tickets,
  .match-action--highlights,
  .match-action--live {
    width: auto;
    min-width: 82px;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 11px;
  }

  .match-action-label {
    display: inline;
  }

  .match-skeleton .skeleton-logo {
    width: 40px;
    height: 40px;
  }

  .match-skeleton .skeleton-name {
    width: 72px;
    height: 14px;
  }

  .match-skeleton .skeleton-center {
    width: 48px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-skeleton .skeleton-block {
    animation: none;
    background: rgba(255, 255, 255, 0.06);
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
