:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-2: #0b1629;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f7fbff;
  --muted: #a8b5c6;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #62e6ac;
  --accent-2: #77a7ff;
  --danger: #ff6b8a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(60, 171, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 85% 20%, rgba(98, 230, 172, 0.2), transparent 30rem),
    linear-gradient(135deg, #07111f 0%, #0d182b 48%, #101024 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-one {
  top: 8rem;
  left: -12rem;
  background: rgba(50, 128, 255, 0.24);
}

.ambient-two {
  right: -10rem;
  bottom: 8rem;
  background: rgba(98, 230, 172, 0.2);
}

.hero,
.section,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  padding: 24px 0 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 44px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111d;
  box-shadow: 0 16px 34px rgba(98, 230, 172, 0.22);
}

.nav-links {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 32px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.glass-card,
.controls,
.player-card,
.team-card,
.player-modal {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-copy {
  position: relative;
  min-height: 520px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 42px;
  overflow: hidden;
}

.hero-copy::after {
  position: absolute;
  right: -7rem;
  bottom: -8rem;
  width: 26rem;
  height: 26rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(98, 230, 172, 0.34), transparent 58%),
    conic-gradient(from 120deg, transparent, rgba(119, 167, 255, 0.45), transparent);
  opacity: 0.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #c8ff6a);
  color: #06111d;
  box-shadow: 0 18px 40px rgba(98, 230, 172, 0.25);
}

.button.ghost,
.button.reset {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.reset {
  align-self: end;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 28px;
  border-radius: 42px;
}

.pulse-card {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(98, 230, 172, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(98, 230, 172, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(98, 230, 172, 0);
  }
}

.hero-metric span {
  display: block;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.hero-metric small {
  color: var(--muted);
  font-size: 1rem;
}

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

.mini-stats div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-stats strong {
  display: block;
  font-size: 2rem;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  max-width: 800px;
  flex-direction: column;
  margin-bottom: 22px;
}

.section-heading.compact {
  max-width: none;
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.insight-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
}

.insight-card-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.insight-more-button {
  align-self: flex-start;
  border: 1px solid #d7e4da;
  border-radius: 999px;
  padding: 8px 12px;
  color: #0f6f3f;
  background: #f5fbf7;
  font-size: 0.82rem;
  font-weight: 800;
  transition: 180ms ease;
}

.insight-more-button:hover,
.insight-more-button:focus-visible {
  border-color: #00b85c;
  background: #e4f8ec;
}

.academy-report {
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  padding: clamp(20px, 4vw, 34px);
  background:
    radial-gradient(circle at 88% 12%, rgba(20, 185, 105, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(245, 249, 255, 0.96), rgba(218, 232, 246, 0.9));
  color: #0e1726;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.academy-report .eyebrow {
  color: #10935a;
}

.report-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #101828;
  color: #9cffc8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.report-hero h2 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.report-hero p {
  max-width: 730px;
  color: #465568;
  font-size: 1.05rem;
  line-height: 1.7;
}

.report-score {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 30px;
  padding: 20px;
  background: #0e1726;
  color: #f8fbff;
}

.report-score strong {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.report-score span {
  color: #9cffc8;
  font-weight: 900;
  line-height: 1.25;
}

.academy-report-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.academy-leader-card,
.academy-ranking-list {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.academy-leader-card {
  padding: 22px;
}

.leader-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: #10935a;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.academy-leader-card h3 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.academy-leader-card p {
  color: #536174;
  line-height: 1.65;
}

.leader-teams,
.leader-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leader-teams {
  margin: 18px 0;
}

.leader-teams span {
  border-radius: 999px;
  padding: 8px 10px;
  background: #e7f8ef;
  color: #0c7e4b;
  font-size: 0.82rem;
  font-weight: 900;
}

.leader-players span {
  display: grid;
  width: calc(50% - 4px);
  min-width: 120px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 18px;
  padding: 8px;
  background: #f6f9fc;
}

.leader-players img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.leader-players b,
.leader-players small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-players b {
  font-size: 0.86rem;
}

.leader-players small {
  color: #667085;
}

.academy-ranking-list {
  display: grid;
  gap: 2px;
  overflow: hidden;
  width: 100%;
}

.academy-rank-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  padding: 14px 16px;
  color: #101828;
  background: transparent;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.academy-report > .academy-ranking-list {
  border-radius: 24px;
  background: #f6f8f6;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.academy-visuals {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1.05fr;
  gap: 12px;
  margin: 0 0 14px;
}

.top-graphic {
  border-radius: 22px;
  padding: 16px;
  background: #f6f8f6;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.top-graphic-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.top-graphic-heading h3 {
  margin: 0;
  color: #101820;
  font-size: 1.12rem;
}

.top-graphic-heading span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

#academyPodium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 186px;
}

.podium-place {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  color: #101820;
  background: #ffffff;
  text-align: left;
  box-shadow: inset 0 0 0 1px #d7e4da;
}

.podium-place.place-1 {
  min-height: 176px;
  background: #101820;
  color: #ffffff;
}

.podium-place.place-2 {
  min-height: 150px;
}

.podium-place span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #00b85c;
  color: #ffffff;
  font-weight: 900;
}

.podium-place strong {
  font-size: 1.05rem;
  line-height: 1.05;
}

.podium-place b {
  color: #008d49;
  font-size: 0.82rem;
}

.podium-place.place-1 b {
  color: #9cffc8;
}

#academyRaceChart,
#academyFlowMap,
#academyCloud {
  display: grid;
  gap: 7px;
}

.race-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 13px;
  padding: 8px;
  background: #ffffff;
  color: #101820;
  text-align: left;
  box-shadow: inset 0 0 0 1px #d7e4da;
}

.race-row span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e7f8ef;
  color: #008d49;
  font-weight: 900;
}

.race-row strong {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-row i {
  grid-column: 2 / 3;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1ebe4;
}

.race-row i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, #00b85c, #98f5bf);
}

.race-row b {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #008d49;
  font-size: 1.2rem;
  text-align: right;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.7fr) 34px minmax(0, 1.4fr);
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 9px;
  background: #ffffff;
  color: #101820;
  text-align: left;
  box-shadow: inset 0 0 0 1px #d7e4da;
}

.flow-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-row > span {
  height: 2px;
  background: linear-gradient(90deg, #00b85c, rgba(0, 184, 92, 0));
}

.flow-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.flow-row em {
  border-radius: 999px;
  padding: 5px 7px;
  color: #008d49;
  background: #e7f8ef;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.podium-place:hover,
.podium-place:focus-visible,
.race-row:hover,
.race-row:focus-visible,
.flow-row:hover,
.flow-row:focus-visible {
  outline: 2px solid rgba(0, 184, 92, 0.28);
  transform: translateY(-1px);
}

/* Final mobile pass: keep this at the end so it wins over desktop restyles. */
@media (max-width: 760px) {
  body {
    background-size: 32px 32px, 32px 32px, auto;
  }

  .hero,
  .section,
  .footer {
    width: min(100% - 22px, 1160px);
  }

  .nav {
    position: sticky;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-inline: calc((100vw - min(100vw - 22px, 1160px)) / -2);
    padding: 10px calc((100vw - min(100vw - 22px, 1160px)) / 2);
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 16px;
  }

  .hero-copy,
  .hero-panel {
    min-height: auto;
    border-radius: 20px;
    padding: 18px;
  }

  .hero-copy::after {
    width: 74px;
    height: 74px;
    right: 18px;
    bottom: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 14vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }

  .hero-facts span {
    min-height: 54px;
    padding: 8px 10px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-panel {
    gap: 14px;
  }

  .hero-metric span {
    font-size: clamp(3.6rem, 20vw, 5.4rem);
  }

  .hero-collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-collage span {
    border-radius: 12px;
  }

  .hero-top-academies {
    border-radius: 16px;
    padding: 12px;
  }

  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mini-stats div {
    min-height: 76px;
    padding: 10px;
    border-radius: 16px;
  }

  .mini-stats strong {
    font-size: 1.45rem;
  }

  .section {
    padding: 26px 0;
  }

  .section-heading,
  .section-heading.compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .insight-grid,
  .academy-visuals,
  .team-strip,
  .players-grid,
  .controls,
  .detail-grid,
  .academy-modal-stats,
  .academy-modal-players,
  .comparison-grid,
  .discoveries-grid,
  .report-hero,
  .academy-report-grid,
  .modal-hero-grid {
    grid-template-columns: 1fr;
  }

  .glass-card,
  .team-card,
  .player-card,
  .controls,
  .academy-report,
  .comparison-card,
  .discovery-card,
  .top-graphic {
    border-radius: 18px;
  }

  .bar-chart {
    height: 190px;
  }

  .academy-report {
    padding: 16px;
  }

  .report-hero h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  #academyPodium {
    min-height: auto;
  }

  .podium-place,
  .podium-place.place-1,
  .podium-place.place-2 {
    min-height: 118px;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }

  .flow-row > span {
    display: none;
  }

  .academy-rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .rank-stat {
    grid-column: 2;
    text-align: left;
  }

  .player-media {
    height: 220px;
  }

  .card-footer {
    flex-wrap: wrap;
  }

  .player-modal,
  .academy-modal {
    width: min(100% - 20px, 920px);
    border-radius: 22px;
  }

  .modal-body,
  .academy-modal-hero {
    padding: 20px;
  }

  .modal-hero {
    margin: -20px -20px 20px;
    padding: 20px;
  }

  .modal-photo {
    width: 100%;
    height: 230px;
  }

  .academy-modal-hero h2 {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .academy-modal-stats,
  .academy-modal-teams,
  .academy-modal-players {
    padding-inline: 20px;
  }

  .academy-filter-button {
    margin: 0 20px 20px;
  }
}

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

.discovery-card {
  min-height: 210px;
  border: 1px solid #d7e4da;
  border-radius: 22px;
  padding: 16px;
  color: #101820;
  background: #ffffff;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.discovery-card:hover,
.discovery-card:focus-visible {
  border-color: #00b85c;
  transform: translateY(-2px);
}

.discovery-card span {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 7px 9px;
  background: #e7f8ef;
  color: #008d49;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discovery-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.12rem, 1.7vw, 1.36rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.discovery-card p {
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.comparison-card {
  border: 1px solid #d7e4da;
  border-radius: 24px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.comparison-card > span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #008d49;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-sides {
  display: grid;
  gap: 10px;
}

.comparison-sides button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 16px;
  padding: 12px;
  color: #101820;
  background: #f6f8f6;
  text-align: left;
  box-shadow: inset 0 0 0 1px #d7e4da;
}

.comparison-sides button:hover,
.comparison-sides button:focus-visible {
  background: #e7f8ef;
}

.comparison-sides strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-sides b {
  color: #008d49;
  font-size: 1.6rem;
  text-align: right;
}

.comparison-sides i {
  grid-column: 1 / 3;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #e1ebe4;
}

.comparison-sides i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, #00b85c, #9cffc8);
}

.comparison-sides small {
  grid-column: 1 / 3;
  color: #667085;
}

.academy-modal {
  width: min(920px, calc(100% - 32px));
}

.academy-modal-body {
  padding: 0;
}

.academy-modal-hero {
  padding: 30px;
  border-radius: 32px 32px 0 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 184, 92, 0.2), transparent 22rem),
    #101820;
  color: #ffffff;
}

.academy-modal-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0, 184, 92, 0.24);
  color: #9cffc8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academy-modal-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.academy-modal-hero p {
  margin-bottom: 0;
  color: #c9d5df;
  font-size: 1.05rem;
}

.academy-modal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 30px 0;
}

.academy-modal-stats div {
  border-radius: 16px;
  padding: 12px;
  background: #f6f8f6;
}

.academy-modal-stats small,
.academy-modal-stats strong {
  display: block;
}

.academy-modal-stats small {
  color: #667085;
}

.academy-modal-stats strong {
  font-size: 1.6rem;
}

.academy-modal-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 30px 0;
}

.academy-modal-teams span {
  border-radius: 999px;
  padding: 8px 10px;
  background: #e7f8ef;
  color: #008d49;
  font-weight: 900;
}

.academy-modal-players {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 30px;
}

.academy-modal-players button {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 16px;
  min-height: 84px;
  padding: 10px;
  background: #f6f8f6;
  color: #101820;
  text-align: left;
}

.academy-modal-players img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
}

.academy-modal-players strong,
.academy-modal-players small {
  display: block;
  overflow: hidden;
}

.academy-modal-players strong {
  display: -webkit-box;
  min-height: 2.35em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.academy-modal-players small {
  color: #667085;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-filter-button {
  margin: 0 30px 30px;
}

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

.deep-card {
  border: 1px solid #d7e4da;
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.deep-card h4 {
  margin: 14px 0 8px;
  color: #101820;
}

.mini-data-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  margin-bottom: 7px;
  padding: 8px;
  color: #101820;
  background: #f6f8f6;
  text-align: left;
}

.mini-data-row span {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-data-row i {
  grid-column: 1 / 3;
  height: 7px;
  border-radius: 999px;
  background: #e1ebe4;
}

.mini-data-row i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, #00b85c, #9cffc8);
}

.mini-data-row b {
  color: #008d49;
  text-align: right;
}

.method-card {
  border: 1px solid #101820;
  border-radius: 26px;
  padding: 24px;
  background: #101820;
  color: #ffffff;
}

.method-card .eyebrow {
  color: #9cffc8;
}

.method-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

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

.method-grid div {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.method-grid strong,
.method-grid span {
  display: block;
}

.method-grid span {
  margin-top: 8px;
  color: #c9d5df;
  line-height: 1.55;
}

.academy-xi {
  padding: 18px 30px 0;
}

.academy-xi h3,
.story-section h3,
.similar-section h3 {
  margin-bottom: 12px;
}

.academy-xi div {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  grid-template-rows: repeat(4, auto);
  gap: 12px 10px;
  border-radius: 22px;
  padding: 18px 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    #0b7a3d;
  background-size: 42px 42px;
}

.academy-xi span {
  position: relative;
  display: grid;
  gap: 5px;
  justify-items: center;
  color: #ffffff;
  text-align: center;
}

.academy-xi .line-gk {
  grid-column: 2 / 4;
}

.academy-xi .line-def {
  grid-row: 2;
}

.academy-xi .line-mid {
  grid-row: 3;
}

.academy-xi .line-mid:nth-of-type(6) {
  grid-column: 1 / 2;
}

.academy-xi .line-mid:nth-of-type(7) {
  grid-column: 2 / 4;
}

.academy-xi .line-mid:nth-of-type(8) {
  grid-column: 4 / 5;
}

.academy-xi .line-att {
  grid-row: 4;
}

.academy-xi .line-att:nth-of-type(9) {
  grid-column: 1 / 2;
}

.academy-xi .line-att:nth-of-type(10) {
  grid-column: 2 / 4;
}

.academy-xi .line-att:nth-of-type(11) {
  grid-column: 4 / 5;
}

.academy-xi b {
  position: absolute;
  top: -5px;
  left: 2px;
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  place-items: center;
  background: #101820;
  font-size: 0.72rem;
}

.academy-xi img {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.academy-xi em,
.academy-xi small {
  display: block;
  width: 100%;
  max-width: 110px;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  line-height: 1.05;
}

.academy-xi em {
  font-size: 0.72rem;
  font-weight: 900;
  white-space: normal;
}

.academy-xi small {
  color: #c8f7d8;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.story-section,
.similar-section {
  margin-top: 24px;
}

.story-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.story-strip span {
  position: relative;
  flex: 0 0 160px;
  border-radius: 16px;
  padding: 12px;
  background: #f6f8f6;
}

.story-strip span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -9px;
  content: "→";
  color: #00b85c;
  font-weight: 900;
}

.story-strip small,
.story-strip strong {
  display: block;
}

.story-strip small {
  color: #667085;
}

.similar-section > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.similar-section button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 16px;
  padding: 9px;
  background: #f6f8f6;
  color: #101820;
  text-align: left;
}

.similar-section img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
}

.similar-section strong,
.similar-section small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-section small {
  color: #667085;
}

@media (max-width: 1020px) {
  .discoveries-grid,
  .deep-grid,
  .method-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .academy-modal-players,
  .academy-xi div,
  .academy-modal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .academy-modal-players,
  .academy-xi div,
  .similar-section > div,
  .academy-modal-stats {
    grid-template-columns: 1fr;
  }
}

.academy-rank-row:hover,
.academy-rank-row:focus-visible {
  background: #ecfdf3;
  transform: translateX(3px);
}

.rank-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #101828;
  color: #9cffc8;
  font-weight: 900;
  line-height: 1;
}

.rank-main strong,
.rank-main small,
.rank-stat b,
.rank-stat small {
  display: block;
}

.rank-main strong {
  margin-bottom: 3px;
  font-size: 1.03rem;
}

.rank-main small,
.rank-stat small {
  color: #667085;
}

.rank-stat {
  text-align: right;
}

.rank-stat b {
  font-size: 1.45rem;
  line-height: 1;
  color: #10935a;
}

.glass-card {
  min-height: 320px;
  padding: 22px;
  border-radius: var(--radius);
}

.glass-card.insight-card {
  min-height: 390px;
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-heading h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.card-heading span,
.result-pill {
  color: var(--muted);
  font-size: 0.86rem;
}

.bar-chart {
  display: grid;
  height: 230px;
  align-items: end;
  gap: 10px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.bar {
  position: relative;
  display: flex;
  min-height: 34px;
  flex-direction: column;
  justify-content: end;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, rgba(98, 230, 172, 0.95), rgba(119, 167, 255, 0.76));
  box-shadow: inset 0 -12px 24px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease;
}

.bar:hover {
  transform: translateY(-4px);
}

.bar span {
  position: absolute;
  right: 50%;
  bottom: -30px;
  transform: translateX(50%) rotate(-30deg);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.bar strong {
  padding-bottom: 8px;
  color: #06111d;
  font-size: 0.78rem;
  text-align: center;
}

.academy-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  min-height: 0;
}

.academy-cloud.is-expanded {
  overflow: auto;
  flex: 1;
  padding-right: 4px;
}

.academy-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--size, 0.9rem);
  transition: 180ms ease;
}

.academy-chip:hover,
.academy-chip.is-active {
  border-color: rgba(98, 230, 172, 0.6);
  background: rgba(98, 230, 172, 0.17);
}

.insight-more-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.route-preview {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
}

.route-profile {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.route-photo {
  width: 92px;
  height: 112px;
  border-radius: 22px;
}

.route-photo .image-fallback {
  font-size: 1.9rem;
}

.route-preview h4 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.timeline-dot {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111d;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.timeline-step span:last-child {
  padding-top: 2px;
  color: #dce8f7;
  line-height: 1.45;
}

.visual-frame {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--club-color, var(--team-accent, var(--accent))) 46%, transparent), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #f8fbff;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.image-fallback[hidden] {
  display: none;
}

.team-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  position: relative;
  min-height: 178px;
  border-radius: 26px;
  padding: 20px;
  color: var(--text);
  text-align: left;
  overflow: hidden;
}

.team-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at top right, var(--team-accent), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0.5;
}

.team-card > * {
  position: relative;
}

.team-card.is-active {
  border-color: color-mix(in srgb, var(--team-accent) 64%, white 20%);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--team-accent) 22%, transparent);
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.team-crest {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.1);
}

.team-crest img {
  object-fit: contain;
  padding: 8px;
}

.team-crest .image-fallback {
  font-size: 1.05rem;
}

.team-card small {
  display: block;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
}

.team-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.team-card .team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-meta span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.76rem;
}

.controls {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 26px;
}

.controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.controls span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.controls input,
.controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(4, 10, 20, 0.62);
  outline: 0;
}

.controls input:focus,
.controls select:focus {
  border-color: rgba(98, 230, 172, 0.7);
  box-shadow: 0 0 0 4px rgba(98, 230, 172, 0.12);
}

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

.player-card {
  display: flex;
  min-height: 396px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  padding: 20px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease;
}

.player-card:hover,
.player-card:focus-visible {
  border-color: rgba(98, 230, 172, 0.52);
  transform: translateY(-5px);
}

.player-media {
  width: 100%;
  height: 168px;
  margin-bottom: 16px;
  border-radius: 22px;
  box-shadow: inset 0 -36px 52px rgba(0, 0, 0, 0.28);
}

.player-media::after,
.route-photo::after,
.modal-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(to top, rgba(5, 12, 22, 0.68), transparent);
  pointer-events: none;
}

.player-media .image-fallback {
  font-size: 3rem;
}

.player-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.club-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--club-color) 28%, rgba(255, 255, 255, 0.06));
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

.age-badge {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  font-weight: 800;
}

.player-card h3 {
  margin: 20px 0 8px;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.player-card p {
  color: var(--muted);
  line-height: 1.5;
}

.primary-academy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--club-color, var(--accent));
  margin-top: 12px;
  padding-left: 10px;
}

.primary-academy span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-academy strong {
  color: var(--text);
}

.route-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.route-line span {
  border-radius: 999px;
  padding: 6px 9px;
  color: #dbeafe;
  background: rgba(119, 167, 255, 0.14);
  font-size: 0.74rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.open-hint {
  color: var(--accent);
  font-weight: 800;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 42px;
  color: var(--muted);
  text-align: center;
}

.player-modal {
  width: min(720px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 0;
  color: var(--text);
  background: rgba(7, 17, 31, 0.94);
}

.player-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.4rem;
}

.modal-body {
  padding: 34px;
}

.modal-hero {
  margin: -34px -34px 28px;
  padding: 34px;
  border-radius: 32px 32px 0 0;
  background:
    radial-gradient(circle at top right, var(--club-color), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.modal-hero-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.modal-photo {
  width: 160px;
  height: 200px;
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

.modal-photo .image-fallback {
  font-size: 4.4rem;
}

.modal-hero h2 {
  max-width: 560px;
  margin: 26px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.detail-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-grid small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.detail-grid strong {
  line-height: 1.35;
}

.youth-section {
  margin-top: 26px;
}

.youth-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.youth-heading h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.youth-heading span,
.timeline-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.youth-timeline {
  display: grid;
  gap: 10px;
}

.youth-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.youth-step.is-unknown {
  border-style: dashed;
  opacity: 0.82;
}

.youth-index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--club-color) 38%, rgba(255, 255, 255, 0.08));
  font-weight: 900;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.youth-step strong,
.youth-step span,
.youth-step small {
  display: block;
}

.youth-step strong {
  margin-bottom: 4px;
}

.youth-step span {
  color: var(--accent);
  font-weight: 800;
}

.youth-step small {
  margin-top: 5px;
  color: var(--muted);
}

.youth-step a {
  color: var(--accent-2);
  font-weight: 800;
}

.timeline-note {
  margin: 12px 0 0;
  line-height: 1.55;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 42px 0 34px;
  color: var(--muted);
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 1020px) {
  .hero-grid,
  .insight-grid,
  .report-hero,
  .academy-report-grid {
    grid-template-columns: 1fr;
  }

  .academy-visuals {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    min-height: auto;
  }

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

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

  .report-score {
    min-height: 150px;
  }
}

@media (max-width: 680px) {
  .hero,
  .section,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .nav,
  .section-heading.compact,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding-inline: 10px;
  }

  .hero-copy,
  .hero-panel,
  .modal-body {
    padding: 22px;
    border-radius: 28px;
  }

  .mini-stats,
  .team-strip,
  .players-grid,
  .controls,
  .detail-grid,
  .modal-hero-grid {
    grid-template-columns: 1fr;
  }

  .route-profile {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .route-photo {
    width: 72px;
    height: 88px;
  }

  .modal-photo {
    width: 100%;
    height: 240px;
  }

  .academy-report {
    border-radius: 26px;
    padding: 18px;
  }

  .academy-rank-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-stat {
    grid-column: 2;
    text-align: left;
  }

  .leader-players span {
    width: 100%;
  }

  .bar-chart {
    gap: 6px;
  }

  .bar span {
    display: none;
  }
}

/* Sports.ru-style editorial restyle */
:root {
  color-scheme: light;
  --bg: #f2f5f1;
  --bg-2: #e8efe8;
  --panel: #ffffff;
  --panel-strong: #f7faf7;
  --text: #101820;
  --muted: #657282;
  --line: #dce4de;
  --accent: #00b85c;
  --accent-2: #0a8f4b;
  --danger: #e5484d;
  --shadow: 0 18px 42px rgba(16, 24, 32, 0.09);
  --radius: 22px;
}

body {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 32, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f7faf6 0%, #eef4ed 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

body::before,
.ambient {
  display: none;
}

.hero,
.section,
.footer {
  width: min(1160px, calc(100% - 32px));
}

.hero {
  padding-top: 0;
  padding-bottom: 34px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-inline: calc((100vw - min(1160px, calc(100vw - 32px))) / -2);
  padding: 12px calc((100vw - min(1160px, calc(100vw - 32px))) / 2);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  color: #101820;
  font-weight: 900;
}

.brand-mark {
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.nav-links {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.nav-links a {
  border-radius: 999px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #e5f7ed;
  color: #007a3d;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  padding-top: 24px;
}

.hero-copy,
.hero-panel,
.glass-card,
.controls,
.player-card,
.team-card,
.player-modal {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.hero-copy {
  min-height: 430px;
  padding: clamp(24px, 4.6vw, 42px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 10%, rgba(0, 184, 92, 0.16), transparent 20rem),
    #ffffff;
}

.hero-copy::after {
  right: 28px;
  bottom: 28px;
  width: 120px;
  height: 120px;
  border: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(0, 184, 92, 0.18) 0 6px,
    transparent 6px 12px
  );
  opacity: 1;
}

.eyebrow {
  color: var(--accent);
  font-weight: 900;
}

h1 {
  max-width: 680px;
  color: #101820;
  font-size: clamp(2.7rem, 5.8vw, 5.35rem);
  line-height: 0.95;
  letter-spacing: -0.062em;
}

.hero-text {
  max-width: 720px;
  color: #536174;
  font-weight: 600;
  font-size: clamp(0.96rem, 1.45vw, 1.08rem);
}

.button.primary {
  background: #101820;
  color: #ffffff;
  box-shadow: none;
}

.button.ghost,
.button.reset {
  border: 1px solid #bed2c5;
  background: #eef8f1;
  color: #0b7c42;
}

.hero-panel {
  min-height: 430px;
  border-color: #101820;
  border-radius: 24px;
  background: #101820;
  color: #ffffff;
}

.pulse-card {
  border-color: rgba(255, 255, 255, 0.16);
  color: #b7c3cf;
  background: rgba(255, 255, 255, 0.06);
}

.pulse-dot {
  background: #4dff9a;
}

.hero-metric span {
  color: #ffffff;
  font-size: clamp(4.1rem, 8vw, 6.2rem);
}

.hero-metric small,
.mini-stats span {
  color: #b7c3cf;
}

.mini-stats div {
  min-height: 86px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: 30px 0;
}

.section-heading h2,
.route-preview h4,
.academy-leader-card h3 {
  color: #101820;
}

.section-heading p:not(.eyebrow),
.card-heading span,
.result-pill {
  color: var(--muted);
}

.insight-grid {
  gap: 14px;
}

.insight-card {
  min-height: 360px;
}

.glass-card {
  min-height: 260px;
  border-radius: 20px;
}

.glass-card.insight-card {
  min-height: 360px;
}

.card-heading h3 {
  color: #101820;
  font-weight: 900;
}

.bar {
  background: linear-gradient(180deg, #00c868, #008c46);
}

.bar strong {
  color: #ffffff;
}

.academy-chip {
  border-color: #d7e4da;
  color: #1f2937;
  background: #f5f8f5;
  font-weight: 800;
}

.academy-chip:hover,
.academy-chip.is-active {
  border-color: #00b85c;
  background: #e4f8ec;
  color: #007a3d;
}

.academy-report {
  border-color: #101820;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.report-kicker,
.report-score,
.rank-number {
  background: #101820;
}

.academy-leader-card,
.academy-ranking-list {
  background: #f6f8f6;
}

.team-strip {
  gap: 12px;
}

.team-card {
  min-height: 170px;
  border-radius: 22px;
  color: #101820;
  background: #ffffff;
}

.team-card::before {
  width: 7px;
  right: auto;
  background: var(--team-accent);
  opacity: 1;
}

.team-card.is-active {
  border-color: var(--team-accent);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--team-accent) 16%, transparent);
}

.team-card small {
  color: #667085;
}

.team-meta span {
  border-color: #d7e4da;
  color: #344054;
  background: #f6f8f6;
}

.controls {
  border-radius: 22px;
  background: #ffffff;
}

.controls span {
  color: #667085;
}

.controls input,
.controls select {
  border-color: #d5ded8;
  color: #101820;
  background: #f8fbf8;
}

.controls input:focus,
.controls select:focus {
  border-color: #00b85c;
  box-shadow: 0 0 0 4px rgba(0, 184, 92, 0.12);
}

.player-card {
  min-height: 420px;
  border-radius: 22px;
  color: #101820;
}

.player-card:hover,
.player-card:focus-visible {
  border-color: #00b85c;
}

.club-badge {
  background: color-mix(in srgb, var(--club-color) 16%, #f4f8f5);
  color: #101820;
}

.age-badge {
  border-color: #d7e4da;
  background: #f4f8f5;
}

.player-card p,
.card-footer,
.timeline-note,
.youth-heading span {
  color: var(--muted);
}

.primary-academy strong {
  color: #101820;
}

.route-line span {
  color: #166534;
  background: #e7f8ef;
}

.open-hint,
.footer a {
  color: #008d49;
}

.visual-frame {
  border-color: #d7e4da;
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--club-color, var(--accent)) 30%, transparent), transparent 52%),
    #f1f5f2;
}

.timeline-dot {
  background: #101820;
  color: #ffffff;
}

.timeline-step span:last-child {
  color: #344054;
}

.player-modal {
  color: #101820;
  background: #ffffff;
}

.player-modal::backdrop {
  background: rgba(16, 24, 32, 0.58);
}

.modal-close {
  border-color: #d7e4da;
  color: #101820;
  background: #ffffff;
}

.modal-hero {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--club-color) 24%, transparent), transparent 52%),
    #f4f8f5;
}

.detail-grid div,
.youth-step {
  border-color: #d7e4da;
  background: #f8fbf8;
}

.youth-step.is-unknown {
  opacity: 1;
}

.youth-index {
  background: #101820;
  color: #ffffff;
}

.youth-step span,
.youth-step a {
  color: #008d49;
}

.footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 680px) {
  .hero-copy,
  .hero-panel {
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .hero-panel {
    min-height: 360px;
  }
}

/* Compact editorial scale */
.academy-report {
  border-radius: 26px;
  padding: clamp(18px, 3vw, 26px);
}

.report-hero h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.report-score {
  min-height: 150px;
  border-radius: 22px;
}

.report-score strong {
  font-size: clamp(3.2rem, 7vw, 5rem);
}

.academy-leader-card,
.academy-ranking-list {
  border-radius: 22px;
}

.academy-leader-card {
  padding: 18px;
}

.academy-rank-row {
  padding: 11px 14px;
}

.rank-number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.team-card {
  min-height: 142px;
  border-radius: 18px;
  padding: 16px;
}

.team-crest {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.team-card-head {
  margin-bottom: 12px;
}

.team-card strong {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.controls {
  border-radius: 18px;
  padding: 12px;
}

.player-card {
  min-height: 420px;
  border-radius: 18px;
  padding: 16px;
}

.player-media {
  height: 236px;
  margin-bottom: 14px;
  border-radius: 20px;
  padding: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92), rgba(238, 243, 239, 0.78) 46%, #e7eee8 100%);
}

.player-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.player-card h3 {
  margin: 14px 0 6px;
  font-size: 1.14rem;
}

.primary-academy {
  margin-top: 9px;
}

.route-line {
  margin-top: 10px;
}

.card-footer {
  margin-top: 14px;
  font-size: 0.78rem;
}

.modal-hero {
  padding: 26px;
}

.modal-body {
  padding: 26px;
}

.modal-photo {
  width: 150px;
  height: 210px;
}

.detail-grid div,
.youth-step {
  border-radius: 14px;
  padding: 10px;
}

.player-media::after {
  display: none;
}

/* Hero editorial widgets */
.hero-facts {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 680px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
}

.hero-facts span {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #d7e4da;
  border-radius: 16px;
  padding: 10px 12px;
  background: #f8fbf8;
}

.hero-facts strong {
  overflow: hidden;
  color: #101820;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-facts small {
  color: #008d49;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel {
  gap: 18px;
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hero-collage span {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-top-academies {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-top-academies h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1rem;
}

.hero-top-academies div {
  display: grid;
  gap: 6px;
}

.hero-top-academies button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

.hero-top-academies button:hover,
.hero-top-academies button:focus-visible {
  background: rgba(0, 184, 92, 0.24);
}

.hero-top-academies span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #00b85c;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-top-academies strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-top-academies b {
  color: #9cffc8;
  text-align: right;
}

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

.metro-card {
  display: grid;
  gap: 14px;
  border: 1px solid #d7e4da;
  border-radius: 22px;
  padding: 14px;
  background: #ffffff;
  color: #101820;
  text-align: left;
  box-shadow: var(--shadow);
}

.metro-card:hover,
.metro-card:focus-visible {
  border-color: var(--club-color);
}

.metro-player {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.metro-player img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
}

.metro-player b,
.metro-player small {
  display: block;
}

.metro-player small {
  color: #667085;
}

.metro-line {
  display: grid;
  gap: 8px;
}

.metro-line i {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #344054;
  font-style: normal;
  font-weight: 800;
}

.metro-line i::before {
  position: absolute;
  top: 18px;
  bottom: -12px;
  left: 8px;
  width: 2px;
  content: "";
  background: color-mix(in srgb, var(--club-color) 58%, #d7e4da);
}

.metro-line i:last-child::before {
  display: none;
}

.metro-line em {
  width: 18px;
  height: 18px;
  border: 3px solid var(--club-color);
  border-radius: 50%;
  background: #ffffff;
}

.talent-flow-board {
  display: grid;
  gap: 8px;
}

.talent-flow-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 90px minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #d7e4da;
  border-radius: 18px;
  padding: 12px;
  color: #101820;
  background: #ffffff;
  text-align: left;
}

.talent-flow-row:hover,
.talent-flow-row:focus-visible {
  border-color: #00b85c;
}

.flow-bar {
  height: 10px;
  border-radius: 999px;
  background: #e1ebe4;
}

.flow-bar::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, #00b85c, #9cffc8);
}

.talent-flow-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.talent-flow-row em {
  border-radius: 999px;
  padding: 6px 8px;
  color: #008d49;
  background: #e7f8ef;
  font-style: normal;
  font-weight: 900;
}

.talent-flow-row em b {
  margin-left: 5px;
  color: #101820;
}

@media (max-width: 1020px) {
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Absolute final mobile override. Keep this last. */
@media (max-width: 760px) {
  .hero,
  .section,
  .footer {
    width: calc(100% - 22px) !important;
  }

  .nav {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-inline: -11px !important;
    padding: 10px 11px !important;
  }

  .nav-links {
    width: 100% !important;
    overflow-x: auto !important;
    gap: 6px !important;
  }

  .nav-links a {
    flex: 0 0 auto !important;
    padding: 8px 10px !important;
    font-size: 0.84rem !important;
  }

  .hero-grid,
  .insight-grid,
  .academy-visuals,
  .metro-grid,
  .team-strip,
  .players-grid,
  .controls,
  .detail-grid,
  .academy-modal-stats,
  .academy-modal-players,
  .comparison-grid,
  .discoveries-grid,
  .report-hero,
  .academy-report-grid,
  .modal-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-grid {
    gap: 12px !important;
    padding-top: 16px !important;
  }

  .hero-copy,
  .hero-panel {
    width: 100% !important;
    min-height: auto !important;
    border-radius: 20px !important;
    padding: 18px !important;
  }

  h1 {
    max-width: 100% !important;
    font-size: clamp(2.55rem, 13vw, 4.1rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.055em !important;
  }

  .hero-text {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 16px !important;
  }

  .hero-actions {
    margin-top: 18px !important;
  }

  .hero-actions .button {
    flex: 1 1 calc(50% - 7px) !important;
    min-width: 0 !important;
  }

  .insight-more-button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .route-profile {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .route-photo {
    width: 72px !important;
    height: 88px !important;
  }

  .route-preview h4 {
    font-size: 1.35rem !important;
    line-height: 1.12 !important;
  }

  .deep-grid,
  .method-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-panel {
    gap: 14px !important;
  }

  .hero-metric span {
    font-size: clamp(3.5rem, 19vw, 5.2rem) !important;
  }

  .hero-collage {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .hero-top-academies {
    padding: 12px !important;
  }

  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .mini-stats div {
    min-height: 76px !important;
    padding: 10px !important;
  }

  .section {
    padding: 26px 0 !important;
  }

  .section-heading,
  .section-heading.compact {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .academy-report,
  .glass-card,
  .team-card,
  .player-card,
  .controls,
  .comparison-card,
  .discovery-card,
  .top-graphic {
    border-radius: 18px !important;
  }

  .academy-report {
    padding: 16px !important;
  }

  .bar-chart {
    height: 190px !important;
  }

  .insight-card {
    min-height: auto !important;
  }

  #academyPodium {
    min-height: auto !important;
  }

  .podium-place,
  .podium-place.place-1,
  .podium-place.place-2 {
    min-height: 118px !important;
  }

  .flow-row {
    grid-template-columns: 1fr !important;
  }

  .talent-flow-row {
    grid-template-columns: 1fr !important;
  }

  .flow-row > span {
    display: none !important;
  }

  .academy-rank-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }

  .rank-stat {
    grid-column: 2 !important;
    text-align: left !important;
  }

  .player-media {
    height: 220px !important;
  }

  .card-footer {
    flex-wrap: wrap !important;
  }

  .player-modal,
  .academy-modal {
    width: calc(100% - 20px) !important;
    border-radius: 22px !important;
  }

  .modal-body,
  .academy-modal-hero {
    padding: 20px !important;
  }

  .modal-hero {
    margin: -20px -20px 20px !important;
    padding: 20px !important;
  }

  .modal-photo {
    width: 100% !important;
    height: 230px !important;
  }

  .academy-modal-stats,
  .academy-modal-teams,
  .academy-modal-players {
    padding-inline: 20px !important;
  }

  .academy-filter-button {
    margin: 0 20px 20px !important;
  }

  .academy-xi div {
    grid-template-columns: repeat(3, minmax(70px, 1fr)) !important;
    grid-template-rows: auto !important;
  }

  .academy-xi span,
  .academy-xi .line-gk,
  .academy-xi .line-def,
  .academy-xi .line-mid,
  .academy-xi .line-att {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 430px) {
  .hero-facts {
    grid-template-columns: 1fr !important;
  }

  .hero-actions .button {
    flex-basis: 100% !important;
  }
}
