/* Editorial v2 — unified light spec-project theme */

:root {
  color-scheme: light;
  --page-bg: #f3f5f2;
  --page-grid: rgba(16, 24, 32, 0.045);
  --ink: #101820;
  --ink-muted: #667085;
  --line: #dde5df;
  --accent: #00a651;
  --accent-soft: #e8f8ef;
  --shadow: 0 8px 28px rgba(16, 24, 32, 0.06);
  --shadow-lg: 0 16px 48px rgba(16, 24, 32, 0.08);
  --portrait-bg: #eef2ee;
  --theme-tint: rgba(0, 166, 81, 0.05);
}

body {
  color: var(--ink);
  background: var(--page-bg);
}

body::before {
  background-image:
    linear-gradient(var(--page-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: none;
  opacity: 1;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 50% -10%, var(--theme-tint), transparent 42rem);
  pointer-events: none;
  transition: background 0.45s ease;
}

.ambient {
  display: none;
}

body[data-academy-theme="zenit"] {
  --theme-tint: rgba(45, 62, 155, 0.07);
}

body[data-academy-theme="spartak"] {
  --theme-tint: rgba(200, 16, 46, 0.06);
}

body[data-academy-theme="krasnodar"] {
  --theme-tint: rgba(0, 88, 38, 0.07);
}

body[data-academy-theme="cska"] {
  --theme-tint: rgba(196, 18, 46, 0.06);
}

body[data-academy-theme="lokomotiv"] {
  --theme-tint: rgba(15, 124, 58, 0.07);
}

body[data-academy-theme="dynamo"] {
  --theme-tint: rgba(47, 109, 182, 0.07);
}

.nav-links-wrap {
  position: relative;
  max-width: 100%;
}

.nav-links-wrap::before,
.nav-links-wrap::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 18px;
  content: "";
  pointer-events: none;
}

.nav-links-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(247, 250, 246, 1), transparent);
}

.nav-links-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(247, 250, 246, 1), transparent);
}

.hero-anchor {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-anchor strong {
  color: var(--ink);
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.hero-anchor span {
  max-width: 9rem;
  padding-bottom: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.pulse-card {
  display: none !important;
}

.hero-collage {
  position: relative;
  display: block;
  min-height: 168px;
  margin: 4px 0 16px;
}

.hero-collage span {
  position: absolute;
  top: 0;
  overflow: hidden;
  width: 92px;
  height: 112px;
  border: 3px solid #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.hero-collage span:nth-child(1) {
  left: 0;
  z-index: 5;
  transform: rotate(-4deg);
}

.hero-collage span:nth-child(2) {
  left: 58px;
  z-index: 4;
  transform: rotate(2deg);
}

.hero-collage span:nth-child(3) {
  left: 116px;
  z-index: 3;
  transform: rotate(-2deg);
}

.hero-collage span:nth-child(4) {
  left: 174px;
  z-index: 2;
  transform: rotate(3deg);
}

.hero-collage span:nth-child(5) {
  left: 232px;
  z-index: 1;
  transform: rotate(-1deg);
}

.hero-collage span:nth-child(n + 6) {
  display: none;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  filter: grayscale(0.15);
  object-fit: contain;
  object-position: center top;
}

.hero-collage span:hover {
  z-index: 6;
  filter: none;
  transform: translateY(-4px) rotate(0deg);
}

.hero-collage img {
  background: var(--portrait-bg);
}

.section-heading p:not(.eyebrow) {
  max-width: 52ch;
}

.section-heading:not(.has-eyebrow) .eyebrow {
  display: none;
}

.age-insight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.age-insight strong {
  color: var(--ink);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.age-insight span {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bar-chart .bar {
  background: linear-gradient(180deg, #00c868 0%, #008c46 100%);
  opacity: 0.92;
}

.bar-chart .bar.is-peak {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.25);
}

.academy-rank-mini {
  display: grid;
  gap: 6px;
}

.academy-rank-mini button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fafcfa;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.academy-rank-mini button:hover,
.academy-rank-mini button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.academy-rank-mini em {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.academy-rank-mini strong {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-rank-mini i {
  display: block;
  grid-column: 2 / 4;
  height: 5px;
  border-radius: 999px;
  background: #e6ede8;
}

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

.academy-rank-mini b {
  color: var(--accent);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: right;
}

.route-cover {
  display: grid;
  gap: 14px;
}

.route-cover-photo {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--portrait-bg);
}

.route-cover-photo .route-cover-img,
.route-cover-photo .visual-frame {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 0;
  border-radius: 16px;
  background: var(--portrait-bg) !important;
}

.route-cover-photo .route-cover-img img,
.route-cover-photo .visual-frame img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center 12%;
}

.route-cover-meta {
  display: grid;
  gap: 4px;
  padding: 2px 2px 4px;
}

.route-cover-meta h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.route-cover-meta p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.route-line-horizontal {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.route-line-horizontal::-webkit-scrollbar {
  display: none;
}

.route-line-horizontal .route-node {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
}

.route-line-horizontal .route-node i {
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #ffffff;
  animation: route-pop 0.45s ease both;
  animation-delay: calc(var(--i) * 0.08s);
}

.route-line-horizontal .route-node span {
  max-width: 88px;
  padding: 0 6px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.route-line-horizontal .route-node:not(:last-child)::after {
  width: 18px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), #c8e6d4);
}

@keyframes route-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }

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

.timeline-animated .timeline-step {
  animation: step-in 0.4s ease both;
  animation-delay: calc(var(--i) * 0.07s);
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.academy-report {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.report-kicker {
  background: var(--ink);
  color: #9cffc8;
}

.methodology-section .method-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 32px);
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.methodology-section h2 {
  color: var(--ink);
}

.method-grid div {
  background: #f7faf7;
}

.method-grid span {
  color: var(--ink-muted);
}

.routes-showcase .talent-flow-board {
  margin-top: 14px;
}

.comparison-card .comparison-sides button i {
  display: block;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #e6ede8;
}

.comparison-card .comparison-sides button i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, #00b85c, #62e6ac);
  transition: width 0.5s ease;
}

.visual-frame,
.player-media,
.route-photo,
.modal-photo,
.route-cover-photo {
  background: var(--portrait-bg) !important;
}

.player-card {
  position: relative;
  border-left: 4px solid var(--club-stripe, var(--accent));
  overflow: hidden;
}

.player-card .club-badge {
  border: 1px solid color-mix(in srgb, var(--club-color) 35%, #ffffff);
  color: var(--ink);
  background: color-mix(in srgb, var(--club-color) 12%, #ffffff);
}

.glass-card,
.hero-copy,
.hero-panel,
.controls,
.player-card,
.team-card,
.player-modal,
.comparison-card,
.discovery-card,
.deep-card {
  box-shadow: var(--shadow);
}

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

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

@media (max-width: 760px) {
  .hero-collage {
    min-height: 120px;
  }

  .hero-collage span {
    width: 72px;
    height: 88px;
  }

  .hero-collage span:nth-child(2) {
    left: 46px;
  }

  .hero-collage span:nth-child(3) {
    left: 92px;
  }

  .hero-collage span:nth-child(4) {
    left: 138px;
  }

  .hero-collage span:nth-child(5) {
    left: 184px;
  }

  .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .player-card {
    min-height: 320px;
    padding: 14px !important;
  }

  .player-card h3 {
    font-size: 0.95rem !important;
  }

  .modal-hero-grid {
    display: block !important;
  }

  .modal-photo {
    width: 100% !important;
    height: 240px !important;
    margin-bottom: 14px;
    border-radius: 18px !important;
  }
}

@media (max-width: 430px) {
  .players-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
