.internal-page {
  min-height: 100vh;
  background: #080d16;
}

.matches-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 18%, rgba(213, 17, 35, 0.14), transparent 26rem),
    linear-gradient(180deg, #080d16 0, #0d1420 315px, #f7f9fd 315px, #eef1f7 100%);
}

.matches-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.matches-hero {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  border-bottom: 1px solid rgba(213, 17, 35, 0.42);
  background: #07090d;
}

.matches-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.9), rgba(7, 9, 13, 0.72)),
    url("../images/uploads/sliders/1763709027603-271614278.png") center / cover no-repeat;
  opacity: 0.78;
}

.matches-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.1), #07090d 100%);
}

.matches-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 315px;
  padding: 54px 0;
}

.matches-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 26px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.matches-breadcrumbs a {
  color: #fff;
}

.matches-breadcrumbs strong,
.matches-kicker,
.matches-eyebrow {
  color: var(--red);
}

.matches-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.matches-title-row h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  font-weight: 900;
}

.matches-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
}

.matches-season-chip {
  display: grid;
  gap: 6px;
  min-width: 145px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.matches-season-chip span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.matches-season-chip strong {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.matches-card {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  margin-bottom: 74px;
  border: 1px solid rgba(13, 21, 34, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.matches-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 340px));
  gap: 12px;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  background: #fbfcff;
}

.matches-filters label {
  display: grid;
  gap: 8px;
}

.matches-filters span {
  color: #7d8796;
  font-size: 12px;
  font-weight: 900;
}

.native-match-select {
  display: none;
}

.match-filter-combo {
  position: relative;
}

.match-filter-combo-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.match-filter-combo-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
}

.match-filter-combo-menu {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% + 6px);
  display: none;
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.match-filter-combo.is-open .match-filter-combo-menu {
  display: grid;
}

.match-filter-combo-option {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  color: #111827;
  text-align: start;
  font-weight: 900;
  cursor: pointer;
}

.match-filter-combo-option:hover,
.match-filter-combo-option.is-active {
  background: rgba(213, 17, 35, 0.08);
  color: var(--red);
}

.matches-round-filter {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-weight: 900;
  outline: none;
}

.matches-round-filter:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(213, 17, 35, 0.14);
}

.matches-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

.matches-card h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.matches-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9px;
  background: #f8fafc;
}

.matches-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5b6472;
  font-weight: 900;
  cursor: pointer;
}

.matches-tabs button.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(213, 17, 35, 0.2);
}

.matches-list {
  display: grid;
}

.match-row {
  display: grid;
  grid-template-columns: 58px minmax(150px, 1fr) minmax(260px, 1.25fr) minmax(220px, 1fr) minmax(150px, auto);
  min-height: 122px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.match-row:nth-child(even) {
  background: #f3f6fc;
}

.match-home-away {
  display: grid;
  place-items: center;
  background: #df0b24;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.match-row.is-away .match-home-away {
  background: #254d9a;
}

.match-date,
.match-team,
.match-venue,
.match-action {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 26px;
  border-inline-start: 1px solid rgba(15, 23, 42, 0.1);
}

.match-date strong,
.match-venue strong {
  color: #df0b24;
  font-size: 15px;
  font-weight: 900;
}

.match-date span,
.match-venue span {
  color: #8a93a2;
  font-weight: 800;
}

.match-team {
  grid-template-columns: 58px 1fr;
  align-items: center;
}

.match-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.match-team strong {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.match-action a,
.match-action button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 44px;
  border: 2px solid #1d3d91;
  background: transparent;
  color: #1d3d91;
  font-weight: 900;
}

.match-result-row {
  grid-template-columns: 1fr;
  padding: 20px 26px;
}

.match-result-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.result-team {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.result-team:last-child {
  justify-content: end;
}

.result-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 58px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.match-scorers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.match-scorers strong {
  color: #111827;
}

.fixture-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  margin: 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.fixture-card + .fixture-card {
  margin-top: 0;
}

.fixture-card.is-result {
  grid-template-columns: 1fr;
}

.fixture-side-badge {
  display: grid;
  place-items: center;
  background: #df0b24;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.fixture-card.is-away .fixture-side-badge {
  background: #1d3d91;
}

.fixture-card-inner {
  display: grid;
  gap: 18px;
  padding: 20px 22px;
}

.fixture-card:not(.is-result) .fixture-card-inner {
  gap: 10px;
  padding: 12px 22px 14px;
}

.fixture-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fixture-card:not(.is-result) .fixture-card-head {
  direction: ltr;
  flex-direction: row;
}

.fixture-card:not(.is-result) .fixture-ticket {
  order: 1;
}

.fixture-card:not(.is-result) .fixture-competition {
  order: 2;
  direction: rtl;
}

.fixture-competition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #5b6472;
  font-size: 13px;
  font-weight: 900;
}

.fixture-competition img,
.fixture-competition .match-meta-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.fixture-card:not(.is-result) .fixture-competition {
  gap: 12px;
  color: #111827;
  font-size: 15px;
}

.fixture-card:not(.is-result) .fixture-competition img,
.fixture-card:not(.is-result) .fixture-competition .match-meta-icon {
  width: 85px;
  height: 85px;
}

.fixture-card.is-result .fixture-competition img,
.fixture-card.is-result .fixture-competition .match-meta-icon {
  width: 85px;
  height: 85px;
}

.fixture-competition span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-result-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(213, 17, 35, 0.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

a.fixture-result-label:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.fixture-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(213, 17, 35, 0.22);
}

.fixture-ticket .match-meta-icon {
  width: 18px;
  height: 18px;
}

.fixture-ticket.is-disabled {
  cursor: default;
  opacity: 0.48;
  filter: grayscale(0.25);
}

.fixture-card:not(.is-result) .fixture-ticket {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
}

.fixture-matchup {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 14px;
}

.fixture-card:not(.is-result) .fixture-matchup {
  width: min(780px, 100%);
  max-width: 100%;
  margin-inline: auto;
  column-gap: 110px;
}

.fixture-card:not(.is-result) .fixture-team {
  grid-template-columns: max-content 58px;
  justify-content: end;
  gap: 10px;
  text-align: end;
}

.fixture-card:not(.is-result) .fixture-team .fixture-logo {
  order: 2;
}

.fixture-card:not(.is-result) .fixture-team.is-away {
  grid-template-columns: 58px max-content;
  justify-content: start;
  text-align: start;
}

.fixture-card:not(.is-result) .fixture-team.is-away .fixture-logo {
  order: 0;
}

.fixture-card:not(.is-result) .fixture-team strong {
  font-size: 17px;
  white-space: nowrap;
}

.fixture-card:not(.is-result) .fixture-logo {
  width: 56px;
  height: 56px;
  padding: 6px;
}

.fixture-card:not(.is-result) .fixture-score {
  min-width: 104px;
  min-height: 54px;
  font-size: 30px;
}

.fixture-team {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fixture-team.is-away {
  grid-template-columns: minmax(0, 1fr) 72px;
  text-align: end;
}

.fixture-team.is-away .fixture-logo {
  order: 2;
}

.fixture-team strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.fixture-logo {
  width: 68px;
  height: 68px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.fixture-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 124px;
  min-height: 70px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fixture-score.is-vs {
  color: var(--red);
  background: #fff;
  border: 1px solid rgba(213, 17, 35, 0.18);
  box-shadow: 0 16px 34px rgba(213, 17, 35, 0.1);
}

.fixture-score span {
  color: inherit;
}

.fixture-result-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: start;
  column-gap: 110px;
  row-gap: 22px;
}

.fixture-result-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  align-items: start;
  gap: 14px;
  min-width: 0;
  text-align: end;
}

.fixture-result-team.is-home {
  justify-self: end;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.fixture-result-team.is-home .fixture-logo {
  order: 2;
}

.fixture-result-team.is-away {
  grid-template-columns: 68px minmax(0, 1fr);
  justify-self: start;
  margin-inline-start: 0;
  margin-inline-end: 0;
  text-align: start;
}

.fixture-result-team.is-away .fixture-logo {
  order: 0;
}

.fixture-result-team-body {
  display: grid;
  align-self: start;
  gap: 6px;
  padding-top: 21px;
}

.fixture-result-team-body strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.fixture-team-scorers {
  display: grid;
  gap: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  direction: rtl;
  text-align: right;
}

.fixture-team-scorers span {
  display: block;
}

.fixture-result-center {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.fixture-result-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.fixture-result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fixture-result-meta .match-meta-icon {
  width: 16px;
  height: 16px;
  color: var(--red);
}

.fixture-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fixture-meta-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
}

.fixture-meta-item .match-meta-icon {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  color: var(--red);
}

.fixture-meta-item span {
  color: #7d8796;
  font-size: 11px;
  font-weight: 900;
}

.fixture-meta-item strong {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.fixture-meta-grid.is-compact {
  grid-template-columns: auto auto auto;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.fixture-meta-grid.is-compact .fixture-meta-item {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fixture-meta-grid.is-compact .fixture-meta-item .match-meta-icon {
  grid-row: auto;
  width: 16px;
  height: 16px;
}

.fixture-scorers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.fixture-scorers strong {
  color: #111827;
}

.fixture-scorers span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.matches-empty {
  padding: 34px 26px;
  color: #6b7280;
  font-weight: 900;
  text-align: center;
}

.matches-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 38px 26px;
  color: #6b7280;
  font-weight: 900;
}

.matches-loading span {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(213, 17, 35, 0.16);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: matches-spin 0.8s linear infinite;
}

@keyframes matches-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .matches-title-row,
  .matches-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .matches-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .match-row {
    grid-template-columns: 44px 1fr;
  }

  .match-date,
  .match-team,
  .match-venue,
  .match-action {
    border-inline-start: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 14px;
  }

  .match-result-main {
    grid-template-columns: 1fr;
  }

  .result-team:last-child {
    justify-content: start;
  }

  .fixture-card {
    grid-template-columns: 1fr;
    margin: 14px;
  }

  .fixture-side-badge {
    min-height: 34px;
    writing-mode: horizontal-tb;
  }

  .fixture-card-head,
  .fixture-matchup {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .fixture-card-head {
    flex-direction: column;
  }

  .fixture-card:not(.is-result) .fixture-card-head {
    flex-direction: column;
  }

  .fixture-team,
  .fixture-team.is-away {
    grid-template-columns: 58px 1fr;
    text-align: start;
  }

  .fixture-team.is-away .fixture-logo {
    order: 0;
  }

  .fixture-logo {
    width: 56px;
    height: 56px;
  }

  .fixture-score {
    width: 100%;
  }

  .fixture-result-layout {
    grid-template-columns: 1fr;
  }

  .fixture-result-team,
  .fixture-result-team.is-away {
    grid-template-columns: 58px 1fr;
    justify-self: stretch;
    margin-inline: 0;
    text-align: start;
  }

  .fixture-result-team.is-away .fixture-logo {
    order: 0;
  }

  .fixture-meta-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* Match page motion and interaction polish */
.site-shell-ready .matches-hero-content {
  animation: matchesHeroIn 0.65s ease both;
}

.site-shell-ready .matches-card {
  animation: matchesCardIn 0.72s ease both;
}

.fixture-card,
.match-filter-combo-button,
.matches-tabs button,
.fixture-ticket,
.fixture-score,
.fixture-logo {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.fixture-card {
  animation: fixtureCardIn 0.42s ease both;
}

.fixture-card:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 17, 35, 0.2);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.13);
}

.fixture-card:hover .fixture-logo {
  transform: translateY(-1px) scale(1.03);
}

.fixture-card:hover .fixture-score {
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.fixture-ticket:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(213, 17, 35, 0.3);
}

.matches-tabs button:hover,
.match-filter-combo-button:hover {
  color: var(--red);
}

.matches-tabs button.is-active:hover {
  color: #fff;
}

@keyframes matchesHeroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes matchesCardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fixtureCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
