.match-centre-dev-view .match-page.is-lineup-intro {
  padding: 0;
}

.match-centre-dev-view .lineup-reveal {
  width: 100%;
  min-height: 0;
  margin: 0 0 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 30%, rgba(38, 91, 70, 0.24), transparent 38%),
    linear-gradient(180deg, #081421 0%, #07111f 100%);
  border: 1px solid var(--mc-line);
  border-top: 3px solid #2f8b5e;
}

.match-centre-dev-view .lineup-reveal.hidden {
  display: none;
}

.match-centre-dev-view .lineup-reveal__header {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: end;
}

.match-centre-dev-view .lineup-reveal__eyebrow {
  margin: 0 0 5px;
  color: var(--mc-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.match-centre-dev-view .lineup-reveal__header h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.match-centre-dev-view .lineup-reveal__fixture {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #ffffff;
  font-size: clamp(12px, 1.25vw, 17px);
  font-weight: 900;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
}

.match-centre-dev-view .lineup-reveal__fixture span {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-centre-dev-view .lineup-reveal__fixture strong {
  color: var(--mc-gold);
  font-size: 12px;
}

.match-centre-dev-view .lineup-pitch-wrap {
  position: relative;
  width: min(960px, 100%);
  margin: 0 auto;
  flex: 1 1 auto;
}

.match-centre-dev-view .lineup-pitch {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 58vw, 650px);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 1fr;
  background: #165838;
  border: 3px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 0 100px rgba(0, 0, 0, 0.24);
}

.match-centre-dev-view .lineup-pitch__stripe {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 8.333%,
    rgba(0, 0, 0, 0.035) 8.333%,
    rgba(0, 0, 0, 0.035) 16.666%
  );
}

.match-centre-dev-view .lineup-pitch__outline {
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.match-centre-dev-view .lineup-pitch__centre-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 16px;
  left: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.match-centre-dev-view .lineup-pitch__centre-circle {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(90px, 12vw, 160px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.match-centre-dev-view .lineup-pitch__centre-spot {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.match-centre-dev-view .lineup-pitch__box,
.match-centre-dev-view .lineup-pitch__six-yard {
  position: absolute;
  z-index: 1;
  left: 50%;
  border: 2px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
  transform: translateX(-50%);
}

.match-centre-dev-view .lineup-pitch__box {
  width: 48%;
  height: 14%;
}

.match-centre-dev-view .lineup-pitch__six-yard {
  width: 24%;
  height: 6%;
}

.match-centre-dev-view .lineup-pitch__box--top,
.match-centre-dev-view .lineup-pitch__six-yard--top {
  top: 16px;
  border-top: 0;
}

.match-centre-dev-view .lineup-pitch__box--bottom,
.match-centre-dev-view .lineup-pitch__six-yard--bottom {
  bottom: 16px;
  border-bottom: 0;
}

.match-centre-dev-view .lineup-team {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: 20px 6% 8px;
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
}

.match-centre-dev-view .lineup-team--home {
  grid-row: 1;
  padding-bottom: 56px;
}

.match-centre-dev-view .lineup-team--away {
  grid-row: 2;
  padding-top: 56px;
  padding-bottom: 20px;
}

.match-centre-dev-view .lineup-team__row {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(3px, 1vw, 14px);
}

.match-centre-dev-view .lineup-player {
  width: min(88px, 16%);
  min-width: 48px;
  display: grid;
  justify-items: center;
  align-content: center;
  color: #ffffff;
  text-align: center;
  opacity: 0;
  transform: translateY(-9px) scale(0.92);
}

.match-centre-dev-view .lineup-player--home {
  transform: translateY(9px) scale(0.92);
}

.match-centre-dev-view .lineup-reveal.is-ready .lineup-player {
  animation: lineup-player-in 420ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay) forwards;
}

.match-centre-dev-view .lineup-player__portrait {
  position: relative;
  width: clamp(34px, 4.5vw, 58px);
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0b1728;
  border: 3px solid var(--lineup-home-colour, var(--mc-gold));
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.34);
}

.match-centre-dev-view .lineup-player--away .lineup-player__portrait {
  border-color: var(--lineup-away-colour, #65a9ee);
}

.match-centre-dev-view .lineup-player__image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.match-centre-dev-view .lineup-player__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: var(--lineup-home-colour, #0b1728);
  color: var(--lineup-home-text, #dce5ef);
  font-size: 12px;
  font-weight: 900;
}

.match-centre-dev-view .lineup-player--away .lineup-player__fallback {
  background: var(--lineup-away-colour, #0b1728);
  color: var(--lineup-away-text, #dce5ef);
}

.match-centre-dev-view .lineup-player__portrait.is-missing .lineup-player__image {
  display: none;
}

.match-centre-dev-view .lineup-player__name {
  width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(8px, 0.88vw, 12px);
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.match-centre-dev-view .lineup-player__position {
  margin-top: 2px;
  padding: 2px 5px;
  background: var(--lineup-home-colour, #081421);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--lineup-home-text, var(--mc-gold));
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.match-centre-dev-view .lineup-player--away .lineup-player__position {
  background: var(--lineup-away-colour, #081421);
  color: var(--lineup-away-text, #8bc4ff);
}

.match-centre-dev-view .lineup-reveal__team {
  position: absolute;
  z-index: 3;
  right: 26px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 17, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
}

.match-centre-dev-view .lineup-reveal.is-ready .lineup-reveal__team {
  animation: lineup-meta-in 360ms ease 3100ms forwards;
}

.match-centre-dev-view .lineup-reveal__team--home {
  top: 26px;
}

.match-centre-dev-view .lineup-reveal__team--away {
  bottom: 26px;
}

.match-centre-dev-view .lineup-reveal__team img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.match-centre-dev-view .lineup-reveal__team img[hidden] {
  display: none;
}

.match-centre-dev-view .lineup-reveal__team .match-kit { display: grid; justify-items: center; font-size: 7px; letter-spacing: 0; }
.match-centre-dev-view .lineup-reveal__team .match-kit img { width: 36px; height: 38px; object-fit: contain; }

.match-centre-dev-view .lineup-reveal__footer {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.match-centre-dev-view .lineup-reveal__footer p {
  margin: 0;
  color: var(--mc-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-centre-dev-view .lineup-next-button {
  min-width: 150px;
  min-height: 48px;
  padding: 0 26px;
  align-self: end;
  background: var(--mc-gold);
  border-color: var(--mc-gold);
  color: #07111f;
  font-size: 13px;
  letter-spacing: 0.09em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.match-centre-dev-view .lineup-next-button:hover:not(:disabled) {
  background: #ffdc65;
  border-color: #ffdc65;
}

.match-centre-dev-view .lineup-next-button:disabled {
  background: #152338;
  border-color: #273a52;
  color: #6e7d91;
  cursor: wait;
}

.match-centre-dev-view .view-options-heading {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--mc-line);
  text-align: center;
}

.match-centre-dev-view .view-options-heading span {
  color: var(--mc-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.match-centre-dev-view .view-options-heading h2 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.match-centre-dev-view .actions.viewing-options {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.match-centre-dev-view .viewing-options button {
  min-height: 104px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.match-centre-dev-view .viewing-options button strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.15;
}

.match-centre-dev-view .viewing-options button span {
  color: var(--mc-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.match-centre-dev-view .viewing-options button:disabled {
  background:
    linear-gradient(135deg, rgba(240, 197, 69, 0.08), transparent 55%),
    #101b2b;
  border-color: #665a34;
  cursor: default;
  opacity: 0.78;
}

.match-centre-dev-view .viewing-options button:disabled strong {
  color: var(--mc-gold);
}

.match-centre-dev-view .highlights-panel {
  padding: 0;
  background: #07111f;
}

.match-centre-dev-view .highlights-panel.hidden {
  display: none;
}

.match-centre-dev-view .highlights-frame {
  width: 100%;
  height: 1040px;
  display: block;
  background: #080e1b;
  border: 0;
}

@keyframes lineup-player-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lineup-meta-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .match-centre-dev-view .lineup-reveal {
    padding: 14px;
  }

  .match-centre-dev-view .lineup-reveal__header {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .match-centre-dev-view .lineup-reveal__fixture {
    justify-self: stretch;
  }

  .match-centre-dev-view .lineup-reveal__fixture span {
    max-width: none;
  }

  .match-centre-dev-view .lineup-pitch {
    min-height: 560px;
  }

  .match-centre-dev-view .lineup-team {
    padding-right: 3%;
    padding-left: 3%;
  }

  .match-centre-dev-view .lineup-reveal__team {
    right: 20px;
  }

  .match-centre-dev-view .actions.viewing-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .match-centre-dev-view .lineup-reveal {
    padding: 8px 4px 12px;
    gap: 10px;
  }

  .match-centre-dev-view .lineup-pitch-wrap {
    flex: 0 0 auto;
  }

  .match-centre-dev-view .lineup-pitch {
    min-height: 620px;
  }

  .match-centre-dev-view .lineup-pitch__outline {
    inset: 8px;
  }

  .match-centre-dev-view .lineup-pitch__centre-line {
    right: 8px;
    left: 8px;
  }

  .match-centre-dev-view .lineup-pitch__box--top,
  .match-centre-dev-view .lineup-pitch__six-yard--top {
    top: 8px;
  }

  .match-centre-dev-view .lineup-pitch__box--bottom,
  .match-centre-dev-view .lineup-pitch__six-yard--bottom {
    bottom: 8px;
  }

  .match-centre-dev-view .lineup-team {
    padding-top: 12px;
    padding-bottom: 4px;
  }

  .match-centre-dev-view .lineup-team--home {
    padding-bottom: 48px;
  }

  .match-centre-dev-view .lineup-team--away {
    padding-top: 48px;
    padding-bottom: 12px;
  }

  .match-centre-dev-view .lineup-player {
    width: min(68px, 19%);
    min-width: 44px;
  }

  .match-centre-dev-view .lineup-player__portrait {
    width: clamp(44px, 12.5vw, 52px);
    border-width: 2px;
  }

  .match-centre-dev-view .lineup-player__name {
    max-width: 66px;
    font-size: 9px;
  }

  .match-centre-dev-view .lineup-player__position {
    padding: 2px 4px;
    font-size: 8px;
  }

  .match-centre-dev-view .lineup-reveal__team {
    right: 13px;
    padding: 5px 6px;
    font-size: 8px;
  }

  .match-centre-dev-view .lineup-reveal__team--home {
    top: 13px;
  }

  .match-centre-dev-view .lineup-reveal__team--away {
    bottom: 13px;
  }

  .match-centre-dev-view .lineup-reveal__team img {
    width: 30px;
    height: 30px;
  }

  .match-centre-dev-view .lineup-reveal__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .match-centre-dev-view .lineup-next-button {
    width: 100%;
    min-width: 0;
  }

  .match-centre-dev-view .actions.viewing-options {
    grid-template-columns: 1fr;
  }
}

/*
 * The main FFO shell deliberately uses a 1000px layout viewport. On iPhone
 * that means width-based media queries do not run, so use the touch input
 * characteristics to apply the compact lineup treatment as well.
 */
@media (hover: none) and (pointer: coarse) {
  .match-centre-dev-view .lineup-reveal {
    min-height: auto;
    padding-right: 4px;
    padding-left: 4px;
  }

  .match-centre-dev-view .lineup-pitch-wrap {
    flex: 0 0 auto;
  }

  .match-centre-dev-view .lineup-pitch {
    min-height: 720px;
  }

  .match-centre-dev-view .lineup-player {
    width: min(104px, 19%);
    min-width: 64px;
  }

  .match-centre-dev-view .lineup-player__portrait {
    width: 66px;
  }

  .match-centre-dev-view .lineup-player__name {
    max-width: 100px;
    font-size: 12px;
  }

  .match-centre-dev-view .lineup-player__position {
    padding: 3px 6px;
    font-size: 10px;
  }

  .match-centre-dev-view .lineup-reveal__team img {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-centre-dev-view .lineup-reveal.is-ready .lineup-player,
  .match-centre-dev-view .lineup-reveal.is-ready .lineup-reveal__team {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .match-centre-dev-view * {
    scroll-behavior: auto !important;
  }
}
/* Full Result keeps the complete replay catalogue below the statistics. */
.match-centre-dev-view .result-highlights {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.match-centre-dev-view .result-highlights__list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 10px;
}
.match-centre-dev-view .result-highlights__button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  text-align: left;
  color: inherit;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  font: inherit;
}
.match-centre-dev-view .result-highlights__button:hover,
.match-centre-dev-view .result-highlights__button:focus-visible {
  border-color: #f4cb42;
  background: rgba(244,203,66,.08);
}
.match-centre-dev-view .result-highlights__button span {
  opacity: .8;
}
/* Explicit dark controls override shared site button defaults. */
.match-centre-dev-view #resultHighlights {
  color: #f4f7fa;
  background: #081421;
  padding: 20px;
}
.match-centre-dev-view #resultHighlights .result-highlights__button {
  appearance: none;
  background: #102235 !important;
  color: #f4f7fa !important;
  border: 1px solid #33485e;
  border-radius: 6px;
  min-height: 76px;
  white-space: normal;
}
.match-centre-dev-view #resultHighlights .result-highlights__button:hover,
.match-centre-dev-view #resultHighlights .result-highlights__button:focus-visible,
.match-centre-dev-view #resultHighlights .result-highlights__button[aria-pressed="true"] {
  background: #1b3045 !important;
  border-color: #f4cb42;
}
.match-centre-dev-view #resultReplayFrame {
  display: block;
  width: 100%;
  margin: 12px 0 20px;
  border: 0;
  background: #07111f;
}
.match-centre-dev-view #resultReplayFrame.hidden { display: none; }
.match-centre-dev-view #resultHighlights h3,
.match-centre-dev-view #resultHighlights .result-highlights__button strong {
  color: #f4cb42;
}
