/* ============================================================
   NEWS + MATCH CENTRE — fixed-screen layouts
   Loaded after css/style.css (news.html, match-centre.html, match.html).
   Built from the same pieces as the Fan Shop: .deck-head, a left
   .feature-panel, a right .market panel, .shop-filter chips, 1.5rem
   bevelled corners, claret #670E36 / sky #94BEE5.

   NOTHING here scrolls the page. The only scrolling element is
   .news-list (Latest News). Everything else is sized to the screen
   and, if it cannot fit, split into pages, tabs or sub-views by JS.
   ============================================================ */

/* the shell is exactly the viewport on these pages */
.news-stage-fixed, .mc-stage { overflow: hidden; min-height: 0; }
.news-stage-fixed .deck-title, .mc-stage .deck-title { font-size: clamp(2.1rem, 4.2vw, 3.7rem); }
.news-stage-fixed .deck-head, .mc-stage > .deck-head { flex: none; }
.deck-sub { margin: 0.375rem 0 0; font-size: 0.625rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(148,190,229,.8); display: flex; align-items: center; gap: 0.875rem; }
@media (max-height: 640px) { .deck-head .deck-sub { display: none; } }

/* ---------------- small shared pieces ---------------- */
.mc-back { color: var(--sky); text-decoration: none; letter-spacing: .2em; transition: color .2s ease, transform .2s ease; }
.mc-back:hover, .mc-back:focus-visible { color: #fff; outline: none; }
.mc-cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer;
  padding: 0.6875rem 1.25rem; font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.7188rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: linear-gradient(180deg, rgba(158,28,88,.95), rgba(103,14,54,.9)); border: 1px solid rgba(214,96,148,.6);
  box-shadow: 0 0 1.125rem rgba(158,28,88,.45), inset 0 1px 0 rgba(255,255,255,.18);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.625rem) 100%, 0 100%);
  transition: transform .2s ease, filter .2s ease;
}
.mc-cta:hover, .mc-cta:focus-visible { transform: translateY(-2px); filter: brightness(1.12); outline: none; }
.mc-cta.is-off { cursor: default; color: rgba(255,255,255,.45); background: rgba(24,10,20,.7); border-color: rgba(148,190,229,.2); box-shadow: none; transform: none; filter: none; }
.mc-note { margin: 0.625rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: rgba(255,255,255,.62); }
.mc-foot { margin: 0.375rem 0 0; font-size: 0.6562rem; line-height: 1.4; color: rgba(255,255,255,.42); }
.mc-pill { display: inline-block; padding: 2px 0.5rem; white-space: nowrap; font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.5625rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); border: 1px solid rgba(148,190,229,.3); }
.mc-pill.is-live, .mc-pill.is-half { color: #fff; background: var(--claret-lit); border-color: var(--claret-lit); animation: mcPulse 1.8s ease-in-out infinite; }
.mc-pill.is-finished { color: var(--sky); }
.mc-pill.is-pending { color: #E7C873; border-color: rgba(231,200,115,.4); }
.mc-pill.is-video { color: var(--claret); background: var(--sky); border-color: var(--sky); }
@keyframes mcPulse { 50% { opacity: .72; } }
.fx-badge.is-md, .fx-badge.is-md img { width: 2.125rem; height: 2.125rem; max-width: 2.125rem; max-height: 2.125rem; }
.fx-badge.is-md .fx-badge-initials { width: 2.125rem; height: 2.125rem; font-size: 0.8125rem; }
.fx-badge.is-lg, .fx-badge.is-lg img { width: clamp(2.375rem, 5vh, 3.375rem); height: clamp(2.375rem, 5vh, 3.375rem); max-width: none; max-height: none; }
.fx-badge.is-lg .fx-badge-initials { width: clamp(2.375rem, 5vh, 3.375rem); height: clamp(2.375rem, 5vh, 3.375rem); font-size: 0.9375rem; }

/* paging (used wherever a list would otherwise scroll) */
.pg-grid { display: grid; height: 100%; align-content: start; }
.pg-grid > * { min-width: 0; min-height: 0; }
.pg-empty { grid-column: 1 / -1; margin: 0; padding: 1.375rem 0.375rem; text-align: center; color: rgba(255,255,255,.6); font-size: 0.8438rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.pg-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 0.875rem; padding-top: 0.5rem; }
.pg-bar[hidden] { display: none; }
.pg-bar.is-idle { visibility: hidden; }
.pg-label { font-family: var(--ff-ui), sans-serif; font-weight: 500; font-size: 0.6875rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.65); min-width: 6rem; text-align: center; }
.pg-btn, .pg-more {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0.5rem 1rem; text-decoration: none;
  font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.6875rem; letter-spacing: .18em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, rgba(24,10,20,.7), rgba(12,4,10,.75)); border: 1px solid rgba(148,190,229,.3);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.pg-btn:hover:not(:disabled), .pg-btn:focus-visible, .pg-more:hover, .pg-more:focus-visible { border-color: var(--sky); background: rgba(148,190,229,.16); outline: none; }
.pg-btn:disabled { opacity: .35; cursor: default; }
.pg-more { width: 100%; margin-top: 0.25rem; padding: 0.375rem; clip-path: none; color: var(--sky); }

.mc-field { display: flex; flex-direction: column; gap: 2px; }
.mc-field-label { font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.5312rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sky); }
.mc-select {
  min-width: 7rem; padding: 0.375rem 1.625rem 0.375rem 0.625rem; cursor: pointer; font-family: var(--ff-ui), sans-serif; font-weight: 500; font-size: 0.7812rem; color: #fff;
  background: rgba(20,5,13,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394BEE5'/%3E%3C/svg%3E") no-repeat right 0.5625rem center;
  border: 1px solid rgba(148,190,229,.34); appearance: none; -webkit-appearance: none; border-radius: 0;
}
.mc-select:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.mc-select option { background: #1a0510; color: #fff; }
.shop-filter { padding: 0.5625rem 0.9375rem; font-size: 0.6875rem; letter-spacing: .15em; white-space: nowrap; }

/* ============================================================
   NEWS: TOP NEWS ~75% | LATEST NEWS ~15% over MATCH CENTRE ~10%
   The page is one fixed screen. Only .news-list (Latest News) scrolls.
   ============================================================ */
.news-views { display: none; }
.news-board {
  flex: 1; min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1.4vw;
  padding: 1.8vh 3vw 3vh;
}
.news-title { margin: 0; font-family: var(--ff-display), sans-serif; font-weight: 400; font-size: 1.7rem; letter-spacing: .08em; color: #fff; }
.news-title::after { content: ""; display: inline-block; width: 2.5rem; height: 0.1875rem; margin-left: 0.75rem; vertical-align: middle; background: linear-gradient(90deg, var(--sky), rgba(148,190,229,0)); }

/* ---- TOP NEWS ---- */
.news-top { min-width: 0; min-height: 0; overflow: hidden; gap: 0.625rem; padding: 1rem 1.125rem 1.25rem; align-items: stretch; flex-direction: column; }
.nt-head, .nt-body { width: 100%; }
.nt-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.nt-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0.875rem; }
.nt-body.is-single { grid-template-columns: minmax(0, 1fr); }
.tn-lead-slot { min-width: 0; min-height: 0; display: flex; }
.tn-lead {
  position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; display: flex; align-items: flex-end;
  padding: 0; text-decoration: none; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, rgba(16,4,10,.35) 0%, rgba(52,8,28,.55) 45%, rgba(10,3,7,.94) 100%), url("../assets/homepage/news-img.jpg") center / cover no-repeat, var(--surface);
  border: 1px solid rgba(148,190,229,.4); box-shadow: inset 0 0 4.375rem -1.375rem rgba(142,26,79,.95);
  transition: transform .25s ease, border-color .25s ease;
}
a.tn-lead:hover, a.tn-lead:focus-visible { transform: translateY(-2px); border-color: var(--sky); outline: none; }
.tn-lead-pic { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.tn-lead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0.25rem; background: linear-gradient(180deg, var(--claret-lit), rgba(103,14,54,.25)); }
.tn-lead-body { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; padding: 1.375rem 1.625rem 1.25rem; width: 100%; }
.tn-lead-headline { font-family: var(--ff-ui), sans-serif; font-weight: 500; font-size: clamp(1.35rem, 2.5vw, 2.25rem); line-height: 1.16; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 0.875rem rgba(0,0,0,.6); }
.tn-lead-desc { font-size: 0.875rem; line-height: 1.45; color: rgba(255,255,255,.78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-lead-go { font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.tn-lead .nf-meta { margin: 0; flex: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-lead .nf-meta > * { display: inline; }
.tn-side { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tn-side[hidden] { display: none; }
.tn-area { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.tn-item {
  display: flex; gap: 0.75rem; align-items: stretch; min-width: 0; padding: 0.5625rem 0.75rem; text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(160deg, rgba(60,10,34,.6), rgba(14,5,12,.65)); border: 1px solid rgba(148,190,229,.18); border-left: 0.1875rem solid rgba(214,96,148,.65);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
a.tn-item:hover, a.tn-item:focus-visible { background: linear-gradient(160deg, rgba(110,16,58,.75), rgba(24,7,18,.75)); border-color: rgba(148,190,229,.55); transform: translateX(0.1875rem); outline: none; }
.tn-item-pic { flex: none; width: 5.25rem; background-size: cover; background-position: center; border: 1px solid rgba(148,190,229,.2); }
.tn-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.1875rem; }
.tn-item-headline { font-family: var(--ff-ui), sans-serif; font-weight: 500; font-size: .98rem; line-height: 1.28; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-item .nf-meta, .tn-item .nf-tag { margin: 0; align-self: flex-start; }
.tn-item .nf-meta { flex: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-item .nf-meta > * { display: inline; }

/* ---- right column ---- */
.news-col { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); gap: 1.4vh; }
.news-right { min-width: 0; min-height: 0; overflow: hidden; gap: 0.5rem; padding: 0.875rem 0.875rem 0.75rem; }
.news-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.news-bar .shop-filters { gap: 0.3125rem; flex-wrap: wrap; }
.news-bar .shop-filter { padding: 0.375rem 0.5625rem; font-size: 0.5938rem; letter-spacing: .1em; }
.news-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 0 1rem; padding-right: 0.375rem;                      /* ends above the bevelled corner, so the scrollbar stays inside the panel */
  scrollbar-width: thin; scrollbar-color: rgba(148,190,229,.5) rgba(255,255,255,.05);
}
.news-list::-webkit-scrollbar { width: 0.375rem; }
.news-list::-webkit-scrollbar-track { background: rgba(255,255,255,.05); }
.news-list::-webkit-scrollbar-thumb { background: rgba(148,190,229,.45); border-radius: 0.1875rem; }
.news-list:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgba(148,190,229,.4); }
.news-list .nf-article {
  display: flex; gap: 0.625rem; align-items: flex-start; padding: 0.5625rem 0.625rem 0.5rem; margin: 0 0 0.375rem; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, rgba(60,10,34,.55), rgba(14,5,12,.6)); border: 1px solid rgba(148,190,229,.16); border-left: 0.1875rem solid rgba(214,96,148,.6);
  transition: background .2s ease, border-color .2s ease;
}
a.nf-article:hover, a.nf-article:focus-visible { background: linear-gradient(160deg, rgba(110,16,58,.7), rgba(24,7,18,.7)); border-color: rgba(148,190,229,.5); outline: none; padding-left: 0.625rem; }
.nf-pic { flex: none; width: 3.5rem; height: 2.625rem; overflow: hidden; background: rgba(10,12,22,.7); border: 1px solid rgba(148,190,229,.2); }
.nf-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1875rem; }
.nf-tags { display: flex; flex-wrap: wrap; gap: 0.3125rem; }
.nf-tag { padding: 1px 0.375rem; font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.5rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); border: 1px solid rgba(148,190,229,.35); }
.nf-tag.is-top { color: #fff; background: var(--claret-lit); border-color: var(--claret-lit); }
.nf-tag.is-official { color: var(--claret); background: var(--sky); border-color: var(--sky); }
.nf-article .nf-row-headline { margin: 0; font-family: var(--ff-ui), sans-serif; font-weight: 500; font-size: .9rem; line-height: 1.28; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-desc { font-size: 0.7188rem; line-height: 1.4; color: rgba(255,255,255,.66); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-article .nf-meta { margin: 0; font-size: 0.625rem; }
.news-list .news-empty { padding: 0.875rem 0.25rem; }

/* ---- MATCH CENTRE mini-panel (bottom right) ---- */
.mcc {
  position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 0.375rem; overflow: hidden;
  padding: 0.75rem 0.875rem 0.625rem; text-decoration: none; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(148,190,229,.32) 0%, transparent 58%), linear-gradient(150deg, #8E1A4F 0%, #670E36 50%, #2f0719 100%);
  border: 2px solid rgba(148,190,229,.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.875rem), calc(100% - 0.875rem) 100%, 0 100%);
  transition: transform .28s cubic-bezier(.22,.7,.25,1), border-color .28s ease, filter .28s ease;
}
.mcc::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent); transform: skewX(-18deg); transition: left .7s ease; pointer-events: none; }
.mcc:hover, .mcc:focus-visible { transform: translateY(-0.1875rem); border-color: var(--sky); filter: brightness(1.08); outline: none; }
.mcc:hover::before, .mcc:focus-visible::before { left: 120%; }
.mcc-title { font-family: var(--ff-display), sans-serif; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: .95; letter-spacing: .05em; }
.mcc-live { display: flex; flex-direction: column; gap: 0.1875rem; min-height: 0; overflow: hidden; }
.mcc-live:empty { display: none; }
.mcc-line { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 0.5rem; align-items: baseline; font-size: 0.7188rem; padding-top: 0.25rem; border-top: 1px solid rgba(148,190,229,.25); }
.mcc-label { font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.5312rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.mcc-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcc-go { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.mcc-go i { font-style: normal; transition: transform .25s ease; }
.mcc:hover .mcc-go i, .mcc:focus-visible .mcc-go i { transform: translateX(0.375rem); }
.fx-jump { padding: 0.25rem 0.5625rem; cursor: pointer; font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.5625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); background: none; border: 1px solid rgba(148,190,229,.4); }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
  .nt-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0.625rem; }
  .tn-lead-body { padding: 1rem 1.125rem 0.875rem; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .tn-lead-desc { display: none; }
  .tn-lead-body { padding: 1rem 1.25rem 0.875rem; }
}
@media (max-width: 900px) {
  /* tablet: Top News on top, then Latest News and the Match Centre side by side */
  .news-board { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); gap: 0.625rem; padding: 0.5rem 3vw 0.75rem; }
  .nt-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .tn-lead-go, .tn-lead-desc { display: none; }
  .tn-lead-body { padding: 0.875rem 1rem 0.75rem; gap: 0.3125rem; }
  .tn-lead-headline { font-size: 1.35rem; -webkit-line-clamp: 3; }
  .news-col { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 0.625rem; }
  .mcc-live { display: flex; }
}
@media (max-width: 700px) {
  /* phone: one panel at a time, each filling the screen */
  .news-views { display: flex; flex: none; gap: 0.375rem; padding: 0.5rem 3vw 0; }
  .news-views .shop-filter { flex: 1 1 0; min-width: 0; padding: 0.5625rem 0.25rem; text-align: center; font-size: 0.6562rem; letter-spacing: .08em; clip-path: none; }
  .news-board { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding: 0.5rem 3vw 0.75rem; }
  .news-board > *, .news-col > * { display: none; }
  .news-board[data-view="top"] > .news-top { display: flex; }
  .news-board[data-view="latest"] > .news-col, .news-board[data-view="mc"] > .news-col { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .news-board[data-view="latest"] .news-right { display: flex; }
  .news-board[data-view="mc"] .mcc { display: flex; justify-content: center; gap: 0.875rem; padding: 1.125rem; }
  .news-board[data-view="mc"] .mcc-title { font-size: 2.4rem; }
  .news-board[data-view="mc"] .mcc-line { font-size: 0.875rem; }
  .nt-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1.1fr); }
  .tn-lead-headline { font-size: 1.15rem; -webkit-line-clamp: 3; }
  .tn-lead-body { padding: 0.625rem 0.875rem 0.625rem; gap: 0.25rem; }
  .tn-lead .nf-tags { display: none; }
}

/* ============================================================
   MATCH CENTRE HOME
   ============================================================ */
.mc-board { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 27%) minmax(0, 1fr); gap: 1.4vw; padding: 1.8vh 3vw 3vh; }
.mc-spot { gap: 0.625rem; padding: 1.125rem 1.125rem 1.125rem; min-width: 0; overflow: hidden; }
.sp-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; text-decoration: none; color: #fff; }
.sp-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.375rem; width: 100%; }
.sp-team { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; min-width: 0; }
.sp-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ff-display), sans-serif; font-size: 1.15rem; letter-spacing: .04em; }
.sp-score { font-family: var(--ff-display), sans-serif; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1; white-space: nowrap; }
.sp-comp, .sp-when { margin: 0; font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sp-comp { color: var(--sky); font-family: var(--ff-ui), sans-serif; font-weight: 600; }
.sp-go { margin-top: 0.25rem; font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); transition: transform .2s ease; }
.sp-body:hover .sp-go { transform: translateX(0.25rem); }
.sp-rec-title { flex: none; margin: 0; padding-top: 0.5rem; border-top: 1px solid rgba(148,190,229,.2); font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.5625rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sky); }
.sp-record { flex: none; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.25rem; }
.sp-record div { display: flex; flex-direction: column-reverse; align-items: center; padding: 0.3125rem 0; background: rgba(148,190,229,.08); border: 1px solid rgba(148,190,229,.16); }
.sp-record dd { margin: 0; font-family: var(--ff-display), sans-serif; font-size: 1.3rem; line-height: 1; }
.sp-record dt { font-size: 0.5rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.mc-market { min-width: 0; min-height: 0; overflow: hidden; }
.mc-bar { justify-content: space-between; gap: 0.625rem 1rem; }
.mc-filters { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.mc-area { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.mc-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.375rem; padding: 0.5625rem 0.75rem 0.5rem; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(92,13,48,.78), rgba(34,7,20,.84)); border: 1px solid rgba(148,190,229,.25);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
a.mc-card:hover, a.mc-card:focus-visible { transform: translateY(-0.1875rem); border-color: var(--sky); background: linear-gradient(160deg, rgba(120,18,64,.9), rgba(40,8,24,.9)); outline: none; }
.mc-card.is-live { border-color: var(--claret-lit); }
.mc-card-head { display: flex; justify-content: space-between; gap: 0.5rem; font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.5938rem; letter-spacing: .16em; text-transform: uppercase; }
.mc-card-comp { color: var(--sky); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-card-when { flex: none; color: rgba(255,255,255,.75); }
.mc-card-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.375rem; }
.mc-card-team { display: flex; align-items: center; gap: 0.4375rem; min-width: 0; }
.mc-card-team:last-child { flex-direction: row-reverse; }
.mc-card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ff-ui), sans-serif; font-weight: 500; font-size: 0.7812rem; color: rgba(255,255,255,.85); }
.mc-card-team.is-villa .mc-card-name { font-weight: 600; color: #fff; }
.mc-card-score { display: flex; align-items: center; gap: 0.3125rem; font-family: var(--ff-display), sans-serif; font-size: 1.7rem; line-height: 1; }
.mc-card-score i { font-style: normal; color: rgba(255,255,255,.5); font-size: 1.2rem; }
.mc-card-score .mc-vs { font-family: var(--ff-ui), sans-serif; font-size: 0.6875rem; letter-spacing: .3em; text-transform: uppercase; }
.mc-card-foot { display: flex; flex-wrap: wrap; gap: 0.3125rem; }

/* ============================================================
   MATCH PAGE — header, tabs, one panel
   ============================================================ */
.mm-head {
  flex: none; margin: 1.6vh 3vw 0; padding: 0.625rem 1.125rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 0.25rem 1rem;
  background: linear-gradient(90deg, rgba(142,26,79,.85) 0%, rgba(103,14,54,.9) 40%, rgba(46,8,26,.92) 100%);
  border: 1px solid rgba(148,190,229,.4); box-shadow: inset 0 1px 0 rgba(148,190,229,.2), inset 0 0 3.125rem -1.25rem rgba(142,26,79,.9);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%);
}
.mm-back { font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); text-decoration: none; white-space: nowrap; }
.mm-back:hover, .mm-back:focus-visible { color: #fff; outline: none; }
.mm-team { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.mm-team.is-home { justify-content: flex-end; flex-direction: row-reverse; }
.mm-team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ff-display), sans-serif; font-size: clamp(1.2rem, 2.3vw, 1.9rem); letter-spacing: .04em; }
.mm-mid { display: flex; flex-direction: column; align-items: center; gap: 0.1875rem; min-width: 6rem; }
.mm-score { font-family: var(--ff-display), sans-serif; font-size: clamp(2rem, 4vw, 3.1rem); line-height: .9; letter-spacing: .03em; white-space: nowrap; }
.mm-score.is-vs { font-size: 1.7rem; color: rgba(255,255,255,.75); }
.mm-info { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 1.125rem; padding-left: 1rem; border-left: 1px solid rgba(148,190,229,.25); }
.mm-info div { min-width: 0; }
.mm-info dt { font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.5rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.mm-info dd { margin: 0; font-size: 0.7188rem; white-space: nowrap; }
.mm-line { display: none; grid-column: 1 / -1; margin: 0; text-align: center; font-size: 0.6875rem; letter-spacing: .06em; color: rgba(255,255,255,.75); }

.mm-board { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1.1vh; padding: 1.2vh 3vw 3vh; }
.mm-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; }
.mm-bar .shop-filters { gap: 0.375rem; flex-wrap: nowrap; overflow: hidden; }
.mm-actions { flex: none; }
.mm-bar .shop-filters[hidden] { display: none; }
.mm-bar:has(.shop-filters[hidden]):not(:has(.mm-actions > *)) { display: none; }
.mm-actions .mc-cta { padding: 0.5625rem 1rem; }
.mm-panel { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 0.875rem 1rem 0.75rem; }
.mm-panel > div { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mm-say { margin: auto; max-width: 26.25rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: rgba(255,255,255,.7); font-size: 0.875rem; line-height: 1.5; }
.mm-say p { margin: 0; }

/* comparison bars (used on Overview and Match Stats) */
.st-head { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr); font-family: var(--ff-display), sans-serif; font-size: 1.15rem; letter-spacing: .06em; }
.st-head span:last-child { text-align: right; }
.st-team.is-villa { color: var(--sky); }
.st-row { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; gap: 0.625rem; min-height: 0; }
.st-val { font-family: var(--ff-display), sans-serif; font-size: 1.4rem; line-height: 1; }
.st-row > .st-val:last-child { text-align: right; }
.st-mid { display: flex; flex-direction: column; gap: 0.1875rem; min-width: 0; }
.st-label { text-align: center; font-family: var(--ff-ui), sans-serif; font-weight: 500; font-size: 0.7188rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.st-na { text-align: center; font-size: 0.6562rem; color: rgba(255,255,255,.42); }
.st-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.st-track { height: 0.375rem; background: rgba(255,255,255,.08); display: flex; overflow: hidden; }
.st-track:first-child { justify-content: flex-end; }
.st-bar { display: block; height: 100%; width: var(--w); background: rgba(148,190,229,.45); animation: stGrow .8s cubic-bezier(.22,.7,.25,1) backwards; }
.st-bar.is-lead { background: var(--sky); }
.st-bar--b { background: rgba(255,255,255,.35); }
.st-bar--b.is-lead { background: #fff; }
@keyframes stGrow { from { width: 0; } }
.st-row.is-missing .st-val { color: rgba(255,255,255,.3); }

/* Overview: three solid columns */
.ov-switch { display: none; flex: none; margin-bottom: 0.5rem; gap: 0.375rem; }
.ov-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1rem; }
.ov-sec { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0.625rem 0.75rem; background: rgba(148,190,229,.05); border: 1px solid rgba(148,190,229,.16); }
.ov-title { flex: none; margin: 0 0 0.5rem; padding-bottom: 0.3125rem; border-bottom: 1px solid rgba(148,190,229,.22); font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.625rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sky); }
.ov-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ov-body .st-row { height: 2.75rem; flex: none; }
.dt-row { height: 1.75rem; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; border-bottom: 1px solid rgba(148,190,229,.12); font-size: 0.7812rem; }
.dt-k { color: rgba(255,255,255,.62); white-space: nowrap; }
.dt-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-weight: 500; }

/* event rows (Overview + Match Events) */
.ev-row { height: 100%; min-height: 0; display: grid; grid-template-columns: 2.75rem 0.875rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; padding: 0 0.625rem; background: rgba(12,3,8,.45); border-left: 0.1875rem solid rgba(148,190,229,.4); }
.ov-body .ev-row { height: 2.25rem; flex: none; margin-bottom: 0.25rem; }
.ev-row.is-away { border-left-color: rgba(255,255,255,.4); }
.ev-min { font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.75rem; letter-spacing: .04em; color: var(--sky); }
.ev-ico { width: 0.625rem; height: 0.875rem; border-radius: 2px; background: rgba(255,255,255,.4); }
.ev-ico.k-goal { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(148,190,229,.6); }
.ev-ico.k-owngoal { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #E7C873; }
.ev-ico.k-yellow { background: #E7C873; } .ev-ico.k-red { background: #d33; }
.ev-ico.k-sub { width: 0.75rem; height: 0.75rem; border-radius: 0; background: none; border: 2px solid var(--sky); transform: rotate(45deg) scale(.7); }
.ev-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ev-player { font-weight: 500; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-extra { font-size: 0.6562rem; color: rgba(255,255,255,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-team { font-family: var(--ff-ui), sans-serif; font-size: 0.5938rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ev { gap: 0.5rem; }
.ev-filters { flex: none; gap: 0.375rem; }
.ev-area { flex: 1; min-height: 0; overflow: hidden; }

/* Match Stats tab */
.ms { gap: 0.375rem; }
.ms-cats { flex: none; gap: 0.375rem; flex-wrap: wrap; }
.ms-rows { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; overflow: hidden; }
.ms-rows .st-row { padding: 2px 0; }
.ms .st-val { font-size: 1.7rem; }
.ms .st-label { font-size: 0.7812rem; }
.ms .st-track { height: 0.5rem; }

/* Lineups & Players: pitch left, statistics right */
.lu { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; }
.lu-left, .lu-right { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.lu-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lu-switch { gap: 0.375rem; flex-wrap: nowrap; min-width: 0; }
.lu-switch .shop-filter, .lu-subbtn { padding: 0.5rem 0.75rem; }
.lu-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pt-wrap { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
.pt {
  position: relative; container-type: size; background: repeating-linear-gradient(90deg, #1e6a3c 0 8.33%, #1a5f36 8.33% 16.66%);
  border: 2px solid rgba(255,255,255,.55); box-shadow: inset 0 0 2.5rem rgba(0,0,0,.35);
}
.pt.is-h { width: min(100cqw, 154.41cqh); height: min(100cqh, 64.76cqw); }
.pt.is-v { width: min(100cqw, 64.76cqh); height: min(100cqh, 154.41cqw); background: repeating-linear-gradient(180deg, #1e6a3c 0 8.33%, #1a5f36 8.33% 16.66%); }
.pt-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt-lines * { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.pt-form { position: absolute; right: 0.5rem; top: 0.25rem; font-family: var(--ff-display), sans-serif; font-size: clamp(.95rem, 5cqmin, 1.5rem); letter-spacing: .08em; color: rgba(255,255,255,.55); }
.pt-player { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; background: none; border: 0; padding: 0; color: #fff; font-family: var(--ff-ui), sans-serif; transition: transform .2s ease; }
.pt-player:hover { transform: translate(-50%, -50%) scale(1.1); z-index: 2; }
.pt-player:focus-visible { outline: none; z-index: 2; }
.pt-player:focus-visible .pt-shirt { box-shadow: 0 0 0 0.1875rem #fff; }
.pt-shirt { width: clamp(1.5rem, 9cqmin, 2.5rem); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-family: var(--ff-display), sans-serif; font-size: clamp(.8rem, 4cqmin, 1.15rem); line-height: 1; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 0.5rem rgba(0,0,0,.5); transition: box-shadow .2s ease, transform .2s ease; }
.pt-player.is-goalkeeper .pt-shirt { background: #F2D36B; color: #3a2a00; }
.pt-player.is-defender .pt-shirt { background: var(--sky); color: #3a0a20; }
.pt-player.is-midfielder .pt-shirt { background: #8E1A4F; color: #fff; }
.pt-player.is-forward .pt-shirt { background: #fff; color: var(--claret); }
.pt-player.is-selected .pt-shirt { box-shadow: 0 0 0 0.1875rem rgba(255,255,255,.95), 0 0 1rem 0.3125rem rgba(148,190,229,.9); transform: scale(1.12); }
.pt-name { padding: 0 0.3125rem; white-space: nowrap; font-weight: 500; font-size: clamp(0.5625rem, 3.1cqmin, 0.75rem); background: rgba(8,2,5,.66); text-shadow: 0 1px 2px #000; }
.pt-off { font-size: 0.5625rem; color: #ffb3b3; background: rgba(8,2,5,.7); padding: 0 0.25rem; }
.bench { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bench-area { flex: 1; min-height: 0; overflow: hidden; }
.lu-sub { width: 100%; height: 100%; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0 0.5rem; align-items: center; text-align: left; padding: 0.375rem 0.5rem; cursor: pointer; color: #fff; background: rgba(20,5,13,.6); border: 1px solid rgba(148,190,229,.22); transition: border-color .2s ease, background .2s ease; }
.lu-sub:hover { border-color: var(--sky); }
.lu-sub.is-selected { border-color: var(--sky); background: rgba(148,190,229,.18); }
.lu-sub.is-unused { opacity: .7; }
.lu-sub-num { grid-row: span 2; display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: rgba(148,190,229,.2); font-family: var(--ff-display), sans-serif; font-size: 1rem; }
.lu-sub-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7812rem; font-weight: 500; }
.lu-sub-note { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.6562rem; color: rgba(255,255,255,.55); }

/* player statistics panel */
.pp { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.625rem; padding: 0.75rem 0.875rem; background: rgba(12,3,8,.5); border: 1px solid rgba(148,190,229,.26); animation: mcIn .25s ease backwards; overflow: hidden; }
@keyframes mcIn { from { opacity: 0; transform: translateY(0.375rem); } }
.pp-empty { margin: auto; max-width: 17.5rem; text-align: center; color: rgba(255,255,255,.6); font-size: 0.8438rem; line-height: 1.5; }
.pp-top { flex: none; display: flex; align-items: center; gap: 0.75rem; }
.pp-num { flex: none; width: 3.125rem; height: 3.125rem; display: grid; place-items: center; border-radius: 50%; font-family: var(--ff-display), sans-serif; font-size: 1.7rem; border: 2px solid rgba(255,255,255,.85); }
.pp-num.is-goalkeeper { background: #F2D36B; color: #3a2a00; }
.pp-num.is-defender { background: var(--sky); color: #3a0a20; }
.pp-num.is-midfielder { background: #8E1A4F; color: #fff; }
.pp-num.is-forward, .pp-num.is-substitute { background: #fff; color: var(--claret); }
.pp-who { min-width: 0; }
.pp-name { margin: 0; font-family: var(--ff-display), sans-serif; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: .04em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-sub { margin: 0.1875rem 0 0; font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }
.pp-link { display: inline-block; margin-top: 0.1875rem; font-family: var(--ff-ui), sans-serif; font-weight: 600; font-size: 0.625rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.pp-cats { flex: none; gap: 0.3125rem; flex-wrap: wrap; }
.pp-cats .shop-filter { padding: 0.4375rem 0.6875rem; font-size: 0.6562rem; letter-spacing: .12em; }
.pp-tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 0.5rem; align-content: stretch; }
.pp-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0.25rem; min-height: 0; background: rgba(148,190,229,.07); border: 1px solid rgba(148,190,229,.18); }
.pp-tile b { font-family: var(--ff-display), sans-serif; font-weight: 400; font-size: clamp(1.5rem, 3vh, 2.1rem); line-height: 1; }
.pp-tile span { font-size: 0.5625rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.58); text-align: center; }
.pp-back { align-self: flex-start; flex: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mm-info { display: none; }
  .mm-line { display: block; }
  .mm-head { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .mc-board { grid-template-columns: minmax(0, 1fr); padding: 0.5rem 3vw 0.75rem; }
  .mc-spot { display: none; }
  .mm-panel { padding: 0.75rem; }
}
@media (max-width: 700px) {
  /* phone: one thing at a time, each filling the screen */
  .mc-bar { flex-direction: column; align-items: stretch; }
  .mc-bar .shop-filters { flex-wrap: nowrap; }
  .mc-filters { gap: 0.375rem 0.625rem; }
  .mc-select { min-width: 6rem; }
  .mm-head { margin: 0.5rem 3vw 0; padding: 0.5rem 0.75rem; gap: 2px 0.5rem; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .mm-back { grid-column: 1 / -1; }
  .mm-team { flex-direction: column !important; gap: 0.1875rem; text-align: center; }
  .mm-team-name { font-size: 1.05rem; max-width: 100%; }
  .mm-mid { min-width: 4rem; }
  .mm-score { font-size: 2rem; }
  .mm-line { font-size: 0.625rem; line-height: 1.3; }
  .mm-bar { flex-direction: column; align-items: stretch; gap: 0.375rem; }
  .mm-bar .shop-filters { flex-wrap: nowrap; gap: 0.25rem; }
  .mm-bar .shop-filter { flex: 1 1 0; min-width: 0; padding: 0.5625rem 2px; text-align: center; font-size: 0.6562rem; letter-spacing: .08em; clip-path: none; }
  .mm-actions { display: none; }
  .mm-panel { padding: 0.625rem; }
  .ov-switch { display: flex; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .ov-sec { display: none; }
  .ov-sec.is-on { display: flex; }
  .lu { grid-template-columns: minmax(0, 1fr); }
  .lu-right { display: none; }
  .lu-switch { overflow-x: auto; scrollbar-width: none; }
  .lu-switch .shop-filter, .lu-subbtn { padding: 0.5rem 0.625rem; font-size: 0.6562rem; letter-spacing: .1em; }
  .pp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-row { grid-template-columns: 2.375rem minmax(0, 1fr) 2.375rem; gap: 0.5rem; }
  .ev-area { min-height: 0; }
}
@media (max-height: 640px) and (max-width: 700px) {
  .news-stage-fixed .deck-head, .mc-stage > .deck-head { padding-top: 1vh; }
  .head-rule { display: none; }
  .mm-line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-pill.is-live, .st-bar, .pp { animation: none; }
  .mcc, .mcc::before, .mc-card, .pt-player { transition: none; }
}

