@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --meta-canvas: #ffffff;
  --meta-surface: #f1f4f7;
  --meta-ink-deep: #0a1317;
  --meta-ink: #1c1e21;
  --meta-charcoal: #444950;
  --meta-slate: #4b4c4f;
  --meta-steel: #5d6c7b;
  --meta-stone: #8595a4;
  --meta-hairline: #ced0d4;
  --meta-hairline-soft: #dee3e9;
  --meta-cobalt: #0064e0;
  --meta-cobalt-deep: #0457cb;
  --meta-warning: #ffe200;
  --meta-success: #31a24c;
}

body {
  background: var(--meta-canvas) !important;
  color: var(--meta-ink) !important;
  background-image: none !important;
  font-family: Inter, Helvetica, Arial, sans-serif !important;
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.01em;
}
body::selection { color: #fff; background: var(--meta-cobalt); }

body:not(.football-home-page) main,
body.football-home-page main > section:not(.football-hero) {
  background: var(--meta-canvas);
  color: var(--meta-ink);
}
body:not(.football-home-page) .container-page,
body.football-home-page main > section:not(.football-hero) .container-page {
  max-width: 80rem;
  padding-left: 2rem;
  padding-right: 2rem;
}
body:not(.football-home-page) h1,
body:not(.football-home-page) h2,
body:not(.football-home-page) h3,
body.football-home-page main > section:not(.football-hero) h1,
body.football-home-page main > section:not(.football-hero) h2,
body.football-home-page main > section:not(.football-hero) h3 {
  color: var(--meta-ink-deep) !important;
  font-family: Inter, Helvetica, Arial, sans-serif !important;
  font-feature-settings: "ss01", "ss02";
  font-style: normal;
  font-weight: 500;
}
body:not(.football-home-page) .section-heading,
body.football-home-page main > section:not(.football-hero) .section-heading {
  color: var(--meta-ink-deep) !important;
  font-size: clamp(2rem, 1.65rem + 1vw, 3rem);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -0.04em;
}
body:not(.football-home-page) .eyebrow,
body.football-home-page main > section:not(.football-hero) .eyebrow {
  color: var(--meta-cobalt) !important;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}
body:not(.football-home-page) [class*="text-ink"],
body.football-home-page main > section:not(.football-hero) [class*="text-ink"] {
  color: var(--meta-ink-deep) !important;
}
body:not(.football-home-page) [class*="text-body/"],
body.football-home-page main > section:not(.football-hero) [class*="text-body/"] {
  color: var(--meta-charcoal) !important;
}
body:not(.football-home-page) .text-body,
body:not(.football-home-page) .text-muted,
body.football-home-page main > section:not(.football-hero) .text-body,
body.football-home-page main > section:not(.football-hero) .text-muted {
  color: var(--meta-steel) !important;
}
body:not(.football-home-page) .text-accent-gold,
body:not(.football-home-page) .text-accent-teal,
body.football-home-page main > section:not(.football-hero) .text-accent-gold,
body.football-home-page main > section:not(.football-hero) .text-accent-teal {
  color: var(--meta-cobalt) !important;
}
body:not(.football-home-page) [class*="border-hairline"],
body.football-home-page main > section:not(.football-hero) [class*="border-hairline"] {
  border-color: var(--meta-hairline-soft) !important;
}
body:not(.football-home-page) [class~="border-white/15"],
body:not(.football-home-page) [class~="border-white/30"] {
  border-color: var(--meta-hairline) !important;
}
body:not(.football-home-page) [class~="bg-white/5"],
body:not(.football-home-page) [class~="bg-white/[0.03]"] {
  background: var(--meta-surface) !important;
}
body:not(.football-home-page) [class~="bg-white/10"] {
  color: #fff !important;
  background: var(--meta-ink-deep) !important;
}
body:not(.football-home-page) .card-surface,
body.football-home-page main > section:not(.football-hero) .card-surface {
  border: 1px solid var(--meta-hairline-soft) !important;
  border-radius: 32px !important;
  background: var(--meta-canvas) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body:not(.football-home-page) .card-hover:hover,
body.football-home-page main > section:not(.football-hero) .card-hover:hover {
  border-color: var(--meta-hairline) !important;
  box-shadow: 0 1px 0 rgba(10,19,23,.12) !important;
  transform: translateY(-2px);
}
body:not(.football-home-page) .btn-primary,
body.football-home-page main > section:not(.football-hero) .btn-primary {
  border-radius: 100px !important;
  background: #000 !important;
  color: #fff !important;
  padding: 14px 30px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.14px;
  box-shadow: none !important;
}
body:not(.football-home-page) .btn-primary:hover,
body.football-home-page main > section:not(.football-hero) .btn-primary:hover {
  background: var(--meta-charcoal) !important;
  box-shadow: none !important;
}
body:not(.football-home-page) .btn-text-link,
body.football-home-page main > section:not(.football-hero) .btn-text-link {
  color: var(--meta-cobalt) !important;
  font-weight: 700;
  text-decoration-color: rgba(0,100,224,.28);
}
body:not(.football-home-page) .btn-text-link:hover,
body.football-home-page main > section:not(.football-hero) .btn-text-link:hover {
  color: var(--meta-cobalt-deep) !important;
}
body:not(.football-home-page) .badge-gold,
body.football-home-page main > section:not(.football-hero) .badge-gold {
  border: 0 !important;
  border-radius: 100px !important;
  background: var(--meta-warning) !important;
  color: var(--meta-ink-deep) !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
body:not(.football-home-page) .badge-pill,
body.football-home-page main > section:not(.football-hero) .badge-pill {
  border: 1px solid var(--meta-hairline) !important;
  border-radius: 100px !important;
  background: var(--meta-canvas) !important;
  color: var(--meta-ink) !important;
  font-size: 12px;
  font-weight: 700;
}
body:not(.football-home-page) header {
  z-index: 100 !important;
  border-bottom: 1px solid var(--meta-hairline-soft);
  background: rgba(255,255,255,.96) !important;
  color: var(--meta-ink-deep);
  backdrop-filter: blur(16px);
}
body:not(.football-home-page) header .container-page {
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}
body:not(.football-home-page) header a {
  color: var(--meta-ink-deep) !important;
}
body:not(.football-home-page) header .nav-pill {
  border: 1px solid var(--meta-hairline) !important;
  border-radius: 100px !important;
  background: var(--meta-canvas) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body:not(.football-home-page) header .nav-link {
  border-radius: 100px !important;
  color: var(--meta-steel) !important;
  font-size: 14px;
  font-weight: 700;
}
body:not(.football-home-page) header .nav-link:hover {
  color: var(--meta-ink-deep) !important;
  background: var(--meta-surface) !important;
}
body:not(.football-home-page) header .nav-link-active {
  color: #fff !important;
  background: var(--meta-ink-deep) !important;
}
body:not(.football-home-page) header button {
  border-color: var(--meta-hairline) !important;
  background: var(--meta-canvas) !important;
  color: var(--meta-ink-deep) !important;
}
body:not(.football-home-page) header button:hover {
  border-color: var(--meta-ink-deep) !important;
  background: var(--meta-surface) !important;
}
body:not(.football-home-page) header .card-surface {
  border-radius: 24px !important;
  background: rgba(255,255,255,.98) !important;
}
body:not(.football-home-page) footer,
body.football-home-page footer {
  border-top: 1px solid var(--meta-hairline-soft) !important;
  background: var(--meta-canvas) !important;
  color: var(--meta-steel) !important;
}
body:not(.football-home-page) footer a,
body.football-home-page footer a {
  color: var(--meta-ink) !important;
}
body:not(.football-home-page) footer .text-body\/60,
body:not(.football-home-page) footer .text-body\/70,
body.football-home-page footer .text-body\/60,
body.football-home-page footer .text-body\/70 {
  color: var(--meta-steel) !important;
}
body:not(.football-home-page) .fact-item,
body.football-home-page main > section:not(.football-hero) .fact-item {
  border: 1px solid var(--meta-hairline-soft) !important;
  border-left: 4px solid var(--meta-cobalt) !important;
  border-radius: 16px !important;
  background: var(--meta-surface) !important;
  color: var(--meta-ink) !important;
  padding: 16px 20px !important;
}
body:not(.football-home-page) .table-row-alt:nth-child(odd),
body.football-home-page main > section:not(.football-hero) .table-row-alt:nth-child(odd) {
  background: var(--meta-surface) !important;
}
body:not(.football-home-page) .table-row-alt {
  color: var(--meta-ink) !important;
}
body:not(.football-home-page) .pitch-container {
  border: 1px solid var(--meta-hairline-soft) !important;
  border-radius: 32px !important;
  background: var(--meta-surface) !important;
  box-shadow: none !important;
}
body:not(.football-home-page) .pitch-container [class*="pitch-"] {
  border-color: rgba(10,19,23,.15) !important;
}
body:not(.football-home-page) .player-3d-card {
  border: 1px solid var(--meta-hairline-soft) !important;
  border-radius: 24px !important;
  background: var(--meta-canvas) !important;
  color: var(--meta-ink) !important;
  box-shadow: none !important;
}
body:not(.football-home-page) .player-photo-frame {
  border-color: var(--meta-hairline-soft) !important;
  background: var(--meta-surface) !important;
}
body:not(.football-home-page) input,
body:not(.football-home-page) select,
body:not(.football-home-page) textarea {
  min-height: 44px;
  border: 1px solid var(--meta-hairline) !important;
  border-radius: 8px !important;
  background: var(--meta-canvas) !important;
  color: var(--meta-ink) !important;
}
body:not(.football-home-page) input:focus,
body:not(.football-home-page) select:focus,
body:not(.football-home-page) textarea:focus {
  border: 2px solid var(--meta-cobalt) !important;
  outline: none;
}
body:not(.football-home-page) .scrollbar-thin {
  scrollbar-color: var(--meta-stone) transparent;
}
body:not(.football-home-page) .shadow-card,
body:not(.football-home-page) .shadow-card * {
  box-shadow: none !important;
}
@media (max-width: 767px) {
  body:not(.football-home-page) .container-page,
  body.football-home-page main > section:not(.football-hero) .container-page {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  body:not(.football-home-page) .card-surface,
  body.football-home-page main > section:not(.football-hero) .card-surface {
    border-radius: 24px !important;
  }
}

/* Keep the interface Russian: cards still retain their localized primary name. */
body:not(.football-home-page) a.card-surface p.text-caption,
body:not(.football-home-page) .team-card .text-caption {
  display: none !important;
}

/* Dark-first application surface */
body,
body:not(.football-home-page) main,
body.football-home-page main > section:not(.football-hero) {
  background: #071116 !important;
  color: #eaf3f6 !important;
}
body:not(.football-home-page) h1,
body:not(.football-home-page) h2,
body:not(.football-home-page) h3,
body.football-home-page main > section:not(.football-hero) h1,
body.football-home-page main > section:not(.football-hero) h2,
body.football-home-page main > section:not(.football-hero) h3,
body:not(.football-home-page) .section-heading,
body.football-home-page main > section:not(.football-hero) .section-heading {
  color: #f4fafc !important;
}
body:not(.football-home-page) .text-body,
body:not(.football-home-page) .text-muted,
body:not(.football-home-page) [class*="text-body/"],
body.football-home-page main > section:not(.football-hero) .text-body,
body.football-home-page main > section:not(.football-hero) .text-muted,
body.football-home-page main > section:not(.football-hero) [class*="text-body/"] {
  color: #aebdc5 !important;
}
body:not(.football-home-page) [class*="text-ink"],
body.football-home-page main > section:not(.football-hero) [class*="text-ink"] {
  color: #f4fafc !important;
}
body:not(.football-home-page) .text-accent-gold,
body:not(.football-home-page) .text-accent-teal,
body.football-home-page main > section:not(.football-hero) .text-accent-gold,
body.football-home-page main > section:not(.football-hero) .text-accent-teal,
body:not(.football-home-page) .eyebrow,
body.football-home-page main > section:not(.football-hero) .eyebrow {
  color: #78c8ff !important;
}
body:not(.football-home-page) [class*="border-hairline"],
body.football-home-page main > section:not(.football-hero) [class*="border-hairline"] {
  border-color: #263843 !important;
}
body:not(.football-home-page) [class~="border-white/15"],
body:not(.football-home-page) [class~="border-white/30"] {
  border-color: #314650 !important;
}
body:not(.football-home-page) [class~="bg-white/5"],
body:not(.football-home-page) [class~="bg-white/[0.03]"] {
  background: #12232c !important;
}
body:not(.football-home-page) [class~="bg-white/10"] {
  color: #f4fafc !important;
  background: #1d3440 !important;
}
body:not(.football-home-page) .card-surface,
body.football-home-page main > section:not(.football-hero) .card-surface {
  border-color: #263843 !important;
  background: #0d1b22 !important;
  color: #eaf3f6 !important;
}
body:not(.football-home-page) .btn-primary,
body.football-home-page main > section:not(.football-hero) .btn-primary {
  background: #0064e0 !important;
  color: #fff !important;
}
body:not(.football-home-page) .btn-primary:hover,
body.football-home-page main > section:not(.football-hero) .btn-primary:hover {
  background: #0457cb !important;
}
body:not(.football-home-page) .btn-text-link,
body.football-home-page main > section:not(.football-hero) .btn-text-link {
  color: #78c8ff !important;
}
body:not(.football-home-page) .badge-gold,
body.football-home-page main > section:not(.football-hero) .badge-gold {
  background: #f2c94c !important;
  color: #071116 !important;
}
body:not(.football-home-page) .badge-pill,
body.football-home-page main > section:not(.football-hero) .badge-pill {
  border-color: #314650 !important;
  background: #12232c !important;
  color: #eaf3f6 !important;
}
body:not(.football-home-page) header {
  border-bottom-color: #263843 !important;
  background: rgba(7,17,22,.94) !important;
  color: #f4fafc !important;
}
body:not(.football-home-page) header a {
  color: #f4fafc !important;
}
body:not(.football-home-page) header .nav-pill {
  border-color: #314650 !important;
  background: #0d1b22 !important;
}
body:not(.football-home-page) header .nav-link {
  color: #aebdc5 !important;
}
body:not(.football-home-page) header .nav-link:hover {
  color: #f4fafc !important;
  background: #12232c !important;
}
body:not(.football-home-page) header .nav-link-active {
  color: #071116 !important;
  background: #f4fafc !important;
}
body:not(.football-home-page) header button {
  border-color: #314650 !important;
  background: #0d1b22 !important;
  color: #f4fafc !important;
}
body:not(.football-home-page) header .card-surface {
  border-color: #263843 !important;
  background: #0d1b22 !important;
}
body:not(.football-home-page) footer,
body.football-home-page footer {
  border-top-color: #263843 !important;
  background: #071116 !important;
  color: #8fa4af !important;
}
body:not(.football-home-page) footer a,
body.football-home-page footer a {
  color: #eaf3f6 !important;
}
body:not(.football-home-page) footer .text-body\/60,
body:not(.football-home-page) footer .text-body\/70,
body.football-home-page footer .text-body\/60,
body.football-home-page footer .text-body\/70 {
  color: #8fa4af !important;
}
body:not(.football-home-page) .fact-item,
body.football-home-page main > section:not(.football-hero) .fact-item {
  border-color: #263843 !important;
  border-left-color: #2b9cff !important;
  background: #0d1b22 !important;
  color: #dceaf0 !important;
}
body:not(.football-home-page) .table-row-alt:nth-child(odd),
body.football-home-page main > section:not(.football-hero) .table-row-alt:nth-child(odd) {
  background: #12232c !important;
}
body:not(.football-home-page) .table-row-alt {
  color: #eaf3f6 !important;
}
body:not(.football-home-page) .pitch-container {
  border-color: #314650 !important;
  background: radial-gradient(circle at center, #173c42 0%, #0b2028 100%) !important;
  box-shadow: inset 0 0 60px rgba(0,0,0,.34) !important;
}
body:not(.football-home-page) .pitch-container [class*="pitch-"] {
  border-color: rgba(190,231,243,.2) !important;
  background-color: rgba(190,231,243,.15) !important;
}
body:not(.football-home-page) .player-3d-card {
  border-color: #314650 !important;
  background: #12232c !important;
  color: #eaf3f6 !important;
}
body:not(.football-home-page) .player-photo-frame {
  border-color: #42616d !important;
  background: #1d3440 !important;
}
body:not(.football-home-page) input,
body:not(.football-home-page) select,
body:not(.football-home-page) textarea {
  border-color: #314650 !important;
  background: #0d1b22 !important;
  color: #eaf3f6 !important;
}
body:not(.football-home-page) input::placeholder,
body:not(.football-home-page) textarea::placeholder {
  color: #79909b !important;
}
body:not(.football-home-page) .scrollbar-thin {
  scrollbar-color: #42616d transparent;
}

/* Lineups: one clear control band and a compact full-XI desktop view */
.lineups-page {
  padding-top: 5.5rem !important;
  padding-bottom: .75rem !important;
}
.lineups-page > .lineups-intro {
  margin-bottom: .75rem !important;
}
.lineups-page > .lineups-intro h1 {
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem) !important;
}
.lineups-page > .lineups-intro p {
  font-size: .9rem !important;
  line-height: 1.45 !important;
}
.lineups-page > .lineups-filters {
  margin-bottom: .75rem !important;
  padding: .65rem !important;
  gap: .5rem !important;
}
.lineups-page > .lineups-filters > div {
  gap: .35rem !important;
}
.lineups-page > .lineups-filters button {
  min-height: 32px;
  padding: .35rem .65rem !important;
}
.lineups-page > .lineups-selector {
  margin-bottom: .75rem !important;
  padding-bottom: 0 !important;
}
.lineups-page > .lineups-selector button {
  border-radius: 999px !important;
  padding: .45rem .75rem !important;
  background: #12232c !important;
  border-color: #314650 !important;
  color: #aebdc5 !important;
}
.lineups-page > .lineups-selector button:first-child {
  background: #1d3440 !important;
  color: #f4fafc !important;
}
.lineups-page .lineup-stage {
  gap: .75rem !important;
}
.lineups-page .lineup-summary {
  min-height: 82px;
  padding: .8rem 1.1rem !important;
}
.lineups-page .lineup-summary h2 {
  font-size: 1.35rem !important;
}
.lineups-page .lineup-pitch {
  min-height: 0 !important;
  padding: .7rem !important;
}
.lineups-page .lineup-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: .55rem !important;
}
.lineups-page .lineup-grid .player-3d-card {
  height: 150px !important;
  min-height: 150px !important;
  padding: .55rem !important;
  border-radius: 16px !important;
  overflow: hidden;
}
.lineups-page .lineup-grid .player-3d-card > .my-3 {
  margin: .25rem 0 !important;
}
.lineups-page .lineup-grid .player-photo-frame {
  width: 2.65rem !important;
  height: 2.65rem !important;
  margin-bottom: .2rem !important;
}
.lineups-page .lineup-grid .player-3d-card h4 {
  font-size: .78rem !important;
}
.lineups-page .lineup-grid .player-3d-card p {
  font-size: .62rem !important;
}
.lineups-page .lineup-grid .player-3d-card > .mt-1 {
  max-height: 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lineups-page .lineup-grid .player-3d-card .player-3d-glare {
  display: none;
}
@media (min-width: 768px) {
  .lineups-page .lineup-summary {
    height: 108px;
    overflow: hidden;
  }
  .lineups-page .lineup-pitch {
    overflow: hidden;
  }
}
@media (max-width: 1023px) {
  .lineups-page .lineup-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  .lineups-page {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
  }
  .lineups-page .lineup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final desktop overrides: keep the full XI readable without page scrolling. */
@media (min-width: 768px) {
  body:has(.lineups-page) {
    overflow: hidden;
  }
  body:has(.lineups-page) footer {
    display: none !important;
  }
  .lineups-page {
    height: calc(100dvh - 69px);
    min-height: 0 !important;
    overflow: hidden;
    padding-top: 4.5rem !important;
    padding-bottom: .5rem !important;
  }
  .lineups-page .lineups-intro {
    margin-bottom: .45rem !important;
  }
  .lineups-page .lineups-intro h1 {
    font-size: 2rem !important;
    line-height: 1.05 !important;
  }
  .lineups-page .lineups-intro p {
    max-width: 52rem;
    font-size: .78rem !important;
    line-height: 1.25 !important;
  }
  .lineups-page > .lineups-filters,
  .lineups-page > .lineups-selector {
    margin-bottom: .4rem !important;
  }
  .lineups-page .lineup-stage {
    gap: .45rem !important;
  }
  .lineups-page .lineup-summary {
    height: 64px !important;
    min-height: 64px !important;
    padding: .45rem .85rem !important;
  }
  .lineups-page .lineup-summary > div:first-child {
    display: flex !important;
    align-items: center;
    gap: .65rem;
    min-width: 0;
  }
  .lineups-page .lineup-summary > div:first-child > p,
  .lineups-page .lineup-summary > div:last-child {
    display: none !important;
  }
  .lineups-page .lineup-summary h2 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    white-space: nowrap;
  }
  .lineups-page .lineup-pitch {
    padding: .35rem !important;
  }
  .lineups-page .lineup-grid {
    gap: .35rem !important;
  }
  .lineups-page .lineup-grid .player-3d-card {
    height: 112px !important;
    min-height: 112px !important;
    padding: .4rem !important;
    border-radius: 13px !important;
  }
  .lineups-page .lineup-grid .player-photo-frame {
    width: 2.15rem !important;
    height: 2.15rem !important;
  }
  .lineups-page .lineup-grid .player-3d-card h4 {
    font-size: .72rem !important;
  }
  .lineups-page .lineup-grid .player-3d-card p {
    font-size: .58rem !important;
  }
}
@media (min-width: 1200px) {
  .lineups-page .lineup-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Keep the inner-page header visually identical to the home hero navigation. */
@media (min-width: 768px) {
  body:not(.football-home-page) header {
    border-bottom: 0 !important;
    background: transparent !important;
  }
  body:not(.football-home-page) header .container-page {
    min-height: 64px;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  body:not(.football-home-page) header > .container-page > a:first-child {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 1.4rem !important;
    font-style: italic;
    letter-spacing: -.045em;
  }
  body:not(.football-home-page) header .nav-pill {
    gap: .25rem !important;
    padding: .45rem !important;
    border-color: rgba(255,255,255,.26) !important;
    background: rgba(12,31,42,.46) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.2) !important;
    backdrop-filter: blur(18px) !important;
  }
  body:not(.football-home-page) header .nav-link {
    padding: .45rem .9rem !important;
    color: rgba(255,255,255,.72) !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
  }
  body:not(.football-home-page) header .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
  }
  body:not(.football-home-page) header .nav-link-active {
    color: #07131c !important;
    background: #fff !important;
  }
}
