.ocsShell {
  position: relative;
  z-index: 1;
}

[hidden] {
  display: none !important;
}

.ocsShell > section {
  scroll-margin-top: 132px;
}

.ocsLoadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: var(--edge);
  background:
    linear-gradient(90deg, #050814 0%, #0f1f4e 58%, #23003f 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.ocsLoadingOverlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ocsLoadingPanel {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(420px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 2px solid #365a9a;
  background: linear-gradient(180deg, #14295c 0%, #101f49 100%);
  box-shadow: 0 18px 48px #0000005e;
}

.ocsLoadingPanel img {
  width: min(260px, 72vw);
  height: auto;
}

.ocsLoadingPanel p {
  color: #d7e5fb;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.ocsLoadingPanel::after {
  content: '';
  width: min(260px, 70vw);
  height: 6px;
  background:
    linear-gradient(90deg, #ff8b2b 0%, #ff8b2b 34%, #35d4ef 34%, #35d4ef 68%, #8b26c6 68%);
  animation: ocsLoadingPulse 980ms ease-in-out infinite alternate;
}

@keyframes ocsLoadingPulse {
  from {
    opacity: 0.46;
    transform: scaleX(0.72);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.ocsHero {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  min-height: clamp(390px, 54vh, 640px);
  overflow: hidden;
  background: #050814;
  border-top: 2px solid var(--menu-border);
  border-bottom: 2px solid var(--menu-border);
}

.ocsHeroCopy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: clamp(34px, 5vw, 78px) var(--wide-edge);
  background:
    linear-gradient(90deg, #030714 0%, #040a1af0 74%, #040a1a00 100%),
    linear-gradient(180deg, #122b5e 0%, #111942 100%);
}

.ocsHeroCopy h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 6vw, 6.3rem);
  line-height: 0.86;
}

.ocsHeroLogo {
  width: min(320px, 78vw);
  height: auto;
  margin: 2px 0 4px;
}

.heroLead {
  max-width: 36ch;
  color: #f2f7ff;
  font-size: clamp(1.28rem, 1.9vw, 1.75rem);
  font-weight: 800;
  line-height: 1.05;
}

.ocsHeroMedia {
  position: relative;
  min-width: 0;
  min-height: 100%;
  background: #070b18;
}

.ocsHeroMedia img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.ocsHeroMedia::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #02061100 48%, #020611cc 100%),
    linear-gradient(90deg, #030714d8 0%, #0307147a 30%, #03071400 64%);
  pointer-events: none;
}

.ocsPickerRow {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 6px;
}

.ocsPickerRow label {
  display: grid;
  gap: 5px;
  color: #8de9ff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  width: 100%;
}

.ocsSelect {
  min-width: min(100%, 340px);
  min-height: 48px;
  color: #f7fbff;
  background: linear-gradient(180deg, #273373 0%, #1b275e 100%);
  border: 2px solid #7d55d8;
  border-radius: 0;
  font: 800 1.02rem/1 'Barlow Condensed', sans-serif;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  text-transform: uppercase;
}

.ocsSelect:disabled,
.ocsPickerRow button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ocsStatus {
  min-height: 1.2em;
  color: #d4e2fa;
  font-size: 1.02rem;
  font-weight: 700;
}

.ocsStatus.is-error {
  color: #ffc6b6;
}

.ocsIntroPanel {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(34px, 5vw, 76px) var(--wide-edge);
  background:
    linear-gradient(90deg, #23003f 0%, #23003f 16px, transparent 16px),
    linear-gradient(180deg, #233777 0%, #17275d 100%);
  border-bottom: 2px solid var(--menu-border);
}

.ocsIntroPanel > div:first-child {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.ocsIntroPanel h2 {
  color: #f8fbff;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.86;
}

.ocsIntroPanel p:not(.eyebrow):not(.cardTag) {
  color: #d7e5fb;
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  font-weight: 700;
  line-height: 1.18;
}

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

.ocsIntroGrid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  background: linear-gradient(180deg, #14295c 0%, #101f49 100%);
  border: 2px solid #365a9a;
}

.ocsIntroGrid h3 {
  color: #f8fbff;
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
  line-height: 0.9;
}

.ocsSummaryBand {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: #3b63ba;
  border-bottom: 2px solid var(--menu-border);
}

.ocsSummaryBand article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 16px var(--edge);
  background: linear-gradient(180deg, #172f67 0%, #102453 100%);
}

.ocsSummaryBand strong {
  overflow-wrap: anywhere;
  color: #f8fbff;
  font-family: 'Teko', sans-serif;
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.ocsPanel {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(34px, 5vw, 76px) var(--wide-edge);
  background:
    linear-gradient(90deg, #23003f 0%, #23003f 16px, transparent 16px),
    linear-gradient(180deg, #233777 0%, #17275d 100%);
  border-bottom: 2px solid var(--menu-border);
}

.ocsPanel:nth-of-type(odd) {
  background:
    linear-gradient(90deg, #23003f 0%, #23003f 16px, transparent 16px),
    linear-gradient(180deg, #1a2d67 0%, #132556 100%);
}

.sectionHeader {
  display: grid;
  gap: 8px;
  max-width: 960px;
}

.sectionHeader h2 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.86;
}

.cardTag {
  color: #8de9ff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.ocsEmpty {
  margin: 0;
  padding: 18px;
  color: #d7e5fb;
  background: linear-gradient(180deg, #14295c 0%, #101f49 100%);
  border: 2px solid #365a9a;
  font-size: 1.1rem;
  font-weight: 700;
}

.ocsTableShell {
  overflow-x: auto;
  border: 2px solid #365a9a;
  background: #101f49;
}

.ocsTable {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.ocsTable th,
.ocsTable td {
  padding: 10px 12px;
  border-bottom: 1px solid #36507f;
  color: #d7e5fb;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}

.ocsTable th {
  color: #8de9ff;
  background: #0d1c44;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ocsTable td:first-child,
.ocsTable th:first-child {
  width: 46px;
  text-align: center;
}

.ocsTable tr:last-child td {
  border-bottom: 0;
}

.teamCell {
  display: grid;
  gap: 2px;
  min-width: 170px;
}

.teamCell strong {
  color: #f8fbff;
  font-size: 1.12rem;
  line-height: 1;
}

.teamCell span {
  color: #97aed5;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.fixtureGrid,
.entrantGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.fixtureCard,
.entrantCard,
.bracketMatch {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  background: linear-gradient(180deg, #14295c 0%, #101f49 100%);
  border: 2px solid #365a9a;
}

.fixtureMeta,
.entrantMeta,
.matchMeta {
  color: #8de9ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.fixtureTeams,
.matchTeams {
  display: grid;
  gap: 7px;
}

.fixtureTeam,
.matchTeam {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #f8fbff;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1;
}

.fixtureTeam span,
.matchTeam span {
  overflow-wrap: anywhere;
}

.fixtureTeam strong,
.matchTeam strong {
  min-width: 2.3ch;
  color: #ff9f4f;
  text-align: right;
}

.fixtureFooter,
.matchFooter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #b8c6df;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  color: #160903;
  background: #ff9f4f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bracketScroller {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
}

.bracketRounds {
  --bracket-card-width: clamp(250px, 25vw, 360px);
  --bracket-slot-height: 150px;
  --bracket-round-gap: clamp(52px, 6vw, 92px);
  --bracket-line: #79dcf2;
  display: flex;
  align-items: stretch;
  gap: var(--bracket-round-gap);
  min-width: max-content;
  padding: 2px 22px 8px 0;
}

.bracketRound {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: var(--bracket-card-width);
  min-width: var(--bracket-card-width);
}

.bracketRound h3 {
  color: #f8fbff;
  font-size: clamp(1.85rem, 2.4vw, 2.65rem);
  line-height: 0.9;
}

.bracketRoundTrack {
  display: grid;
  grid-template-rows: repeat(var(--bracket-slots), var(--bracket-slot-height));
  min-height: calc(var(--bracket-slots) * var(--bracket-slot-height));
}

.bracketSlot {
  position: relative;
  display: flex;
  align-items: center;
  grid-row: var(--slot-start) / span var(--slot-span);
  min-width: 0;
}

.bracketRound:not(:first-child) .bracketSlot::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: calc(var(--bracket-round-gap) / 2);
  height: 2px;
  background: var(--bracket-line);
  opacity: 0.78;
  pointer-events: none;
}

.bracketMatch {
  position: relative;
  width: 100%;
  min-height: 126px;
  align-content: center;
  justify-content: stretch !important;
  justify-items: stretch !important;
  box-shadow: inset -5px 0 0 #35d4ef;
}

.bracketMatch::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #8feeff0a 0%, transparent 38%),
    linear-gradient(180deg, #ffffff08 0%, transparent 52%);
  pointer-events: none;
}

.bracketConnector {
  --connector-x: calc(var(--bracket-round-gap) + 4px);
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--connector-x);
  height: 2px;
  background: var(--bracket-line);
  opacity: 0.78;
  pointer-events: none;
}

.bracketConnector::after {
  content: '';
  position: absolute;
  right: 0;
  width: 2px;
  height: calc(var(--bracket-slot-height) / 2);
  background: var(--bracket-line);
}

.bracketConnector.is-upper::after {
  top: 0;
}

.bracketConnector.is-lower::after {
  bottom: 0;
}

.matchTeam.is-winner span {
  color: #8de9ff;
}

.entrantCard h3 {
  overflow-wrap: anywhere;
  color: #f8fbff;
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
  line-height: 0.9;
}

.entrantStats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entrantStats span {
  padding: 5px 8px;
  color: #d7e5fb;
  background: #0d1c44;
  border: 1px solid #36507f;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .ocsHero {
    grid-template-columns: 1fr;
  }

  .ocsHeroMedia {
    min-height: 280px;
    order: -1;
  }

  .ocsHeroCopy {
    background: linear-gradient(180deg, #122b5e 0%, #111942 100%);
  }

  .ocsSummaryBand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ocsIntroGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ocsPickerRow,
  .ocsSelect,
  .ocsPickerRow button {
    width: 100%;
  }

  .ocsSummaryBand {
    grid-template-columns: 1fr;
  }

  .fixtureGrid,
  .entrantGrid {
    grid-template-columns: 1fr;
  }
}
