﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --blue-950: #001f5f;
  --blue-900: #002b80;
  --blue-800: #003ca6;
  --blue-700: #054fd1;
  --blue-600: #0a63ff;
  --red-600: #ee1d2f;
  --ink: #07132d;
  --muted: #5d6880;
  --line: rgba(8, 26, 58, 0.1);
  --paper: rgba(255, 255, 255, 0.94);
  --soft: #f4f8ff;
  --shadow: 0 22px 64px rgba(0, 31, 95, 0.16);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --bottom-nav-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Poppins, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(10, 99, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #f6f9ff 0%, #e9f0fb 48%, #dde9f8 100%);
}

a {
  color: inherit;
}

.app {
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-height);
}

.page-shell {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
}

.top-shell {
  position: sticky;
  top: 12px;
  z-index: 40;
  padding-top: 12px;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 14px 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.9);
  box-shadow: 0 14px 34px rgba(0, 31, 95, 0.13);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  color: var(--blue-800);
  font-size: clamp(1.08rem, 1.42vw, 1.42rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--blue-800);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-subtitle .dot {
  color: var(--red-600);
  margin: 0 8px;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 52px);
}

.menu-link,
.login-link,
.hamburger summary,
.mobile-menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
}

.menu-link {
  min-height: 42px;
  color: var(--ink);
  font-size: 0.88rem;
}

.menu-link:hover {
  color: var(--blue-700);
}

.login-link {
  min-height: 46px;
  justify-content: center;
  padding: 0 22px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 10px 22px rgba(0, 31, 95, 0.28);
}

.login-dropdown {
  position: relative;
}

.login-dropdown > summary.login-link {
  list-style: none;
  cursor: pointer;
}

.login-dropdown > summary.login-link::-webkit-details-marker {
  display: none;
}

.login-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  min-width: 180px;
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.login-menu a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
}

.login-menu a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--blue-800);
  text-decoration: none;
  border: 1px solid rgba(8, 26, 58, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.social-icon:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 10px 22px rgba(0, 31, 95, 0.18);
  transform: translateY(-1px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .social-dot,
.social-icon.facebook svg {
  fill: currentColor;
  stroke: none;
}

.hamburger {
  display: none;
  position: relative;
}

.hamburger summary {
  width: 46px;
  height: 46px;
  justify-content: center;
  color: var(--blue-900);
  border: 1px solid var(--line);
  border-radius: 14px;
  list-style: none;
  background: #fff;
  cursor: pointer;
}

.hamburger summary::-webkit-details-marker {
  display: none;
}

.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: currentColor;
}

.hamburger-lines {
  position: relative;
}

.hamburger-lines::before,
.hamburger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger-lines::before {
  top: -7px;
}

.hamburger-lines::after {
  top: 7px;
}

.mobile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.mobile-menu a {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border-radius: 12px;
}

.mobile-menu a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.mobile-login {
  display: grid;
}

.mobile-login > summary {
  width: 100%;
  height: auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  list-style: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

.mobile-login > summary::-webkit-details-marker {
  display: none;
}

.mobile-login > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.mobile-login[open] > summary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.mobile-login[open] > summary::after {
  transform: rotate(225deg);
}

.mobile-login-options {
  display: grid;
  gap: 4px;
  padding: 7px 0 2px 12px;
}

.mobile-menu .mobile-login-options a {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.mobile-social-links {
  justify-content: flex-start;
  padding: 2px 12px;
}

.mobile-menu .mobile-social-links .social-icon {
  width: 42px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.mobile-menu .mobile-social-links .social-icon svg {
  margin: 0;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-solid {
  fill: currentColor;
  stroke: none;
}

.hero-home {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  align-items: center;
  margin-top: -92px;
  padding: 132px 0 34px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 8, 28, 0.68) 0%, rgba(0, 14, 42, 0.42) 48%, rgba(0, 14, 42, 0.26) 100%),
    url("assets/hero-campo-desktop.jpeg") center / cover no-repeat;
}

.hero-home::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  padding-left: min(9vw, 96px);
}

.hero-kicker {
  display: block;
  font-size: clamp(1.55rem, 3.15vw, 3.05rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.55rem, 5.5vw, 4.9rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-partner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
  color: #20c5ff;
}

.hero-partner::before,
.hero-partner::after {
  content: "";
  width: 38px;
  height: 2px;
  background: currentColor;
}

.hero-partner span {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.hero-club {
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  font-weight: 500;
}

.hero-description {
  max-width: 470px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.5;
}

.primary-cta {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 26px;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 14px 26px rgba(0, 31, 95, 0.34);
  font-size: 0.98rem;
  font-weight: 600;
}

.logo-stage {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 104px 1fr;
  align-items: center;
  justify-items: center;
  padding-right: min(5vw, 64px);
}

.club-logo {
  width: min(245px, 34vw);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.36));
}

.club-logo.fcg {
  width: min(250px, 35vw);
}

.handshake {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.28), transparent 34%),
    rgba(0, 34, 91, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 16px 34px rgba(0, 16, 52, 0.28);
  backdrop-filter: blur(8px);
}

.partner-icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28));
}

.values-section {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.value-card {
  min-height: 190px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 45px rgba(0, 31, 95, 0.1);
}

.value-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 12px 28px rgba(5, 79, 209, 0.24);
}

.value-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.value-line {
  width: 42px;
  height: 2px;
  background: var(--blue-600);
}

.value-card p {
  margin: 0;
  color: #25314d;
  line-height: 1.45;
}

.latest-section {
  margin-top: 14px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(218, 231, 250, 0.92);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.mini-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 31, 95, 0.08);
}

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  color: #fff;
  border-radius: 7px;
  background: var(--blue-700);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.live,
.bottom-nav a.live .nav-icon {
  color: #fff;
  background: var(--red-600);
}

.badge.done {
  background: #64748b;
}

.mini-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.mini-score img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0 auto 6px;
}

.mini-score strong {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.mini-team {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
}

.mini-team.opponent {
  min-height: 54px;
}

.mini-meta {
  color: var(--red-600);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-icon {
  color: var(--red-600);
}

.live-games-card {
  min-height: 460px;
}

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

.live-match-card {
  min-height: 154px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.live-match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 79, 209, 0.28);
  box-shadow: 0 18px 42px rgba(0, 31, 95, 0.14);
}

.contact-page-card {
  display: grid;
  gap: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
}

.contact-card {
  min-height: 168px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 26px 22px;
  text-align: center;
  border: 1px solid rgba(8, 26, 58, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(0, 31, 95, 0.09);
}

.contact-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  border-radius: 999px;
  background: rgba(10, 99, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(10, 99, 255, 0.12);
}

.contact-card h2 {
  margin: 4px 0 0;
  color: #5a6474;
  font-size: 1.12rem;
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  color: #20304b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--blue-700);
}

.map-card {
  overflow: hidden;
  border: 1px solid rgba(8, 26, 58, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 31, 95, 0.1);
}

.map-card iframe {
  width: 100%;
  height: min(440px, 58vh);
  display: block;
  border: 0;
}

.training-page-card {
  display: grid;
  gap: 20px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-breadcrumb a {
  color: var(--blue-600);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--blue-800);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(8, 26, 58, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 31, 95, 0.1);
}

.training-card {
  min-height: 248px;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 30px;
  border-right: 1px solid rgba(8, 26, 58, 0.06);
  border-bottom: 1px solid rgba(8, 26, 58, 0.06);
}

.training-card:nth-child(3n) {
  border-right: 0;
}

.training-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.training-card h2 {
  margin: 0;
  color: #2a3648;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.15;
}

.training-card p,
.goalkeeper-slot {
  margin: 0;
  color: #263653;
  font-size: 0.88rem;
  line-height: 1.5;
}

.training-card p strong,
.goalkeeper-slot strong {
  color: var(--ink);
  font-weight: 700;
}

.goalkeeper-slot {
  display: grid;
  gap: 2px;
}

.goalkeeper-slot span {
  color: var(--blue-600);
  font-weight: 700;
}

.goalkeeper-slot small {
  color: #33425c;
  font-size: 0.82rem;
}

.staff-page-card {
  display: grid;
  gap: 22px;
}

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

.staff-card {
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 34px 28px;
  text-align: center;
  border: 1px solid rgba(8, 26, 58, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(0, 31, 95, 0.1);
}

.coach-avatar {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #fff;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(0, 31, 95, 0.18), transparent 48%),
    linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.22),
    0 18px 34px rgba(0, 31, 95, 0.18);
}

.coach-avatar span {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.staff-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.1;
}

.staff-card > strong {
  color: #33425c;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 500;
}

.staff-card p {
  margin: 10px 0 0;
  color: #8a93a3;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.55;
}

.games-page {
  padding-top: 34px;
}

.games-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.games-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.games-title h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.pill.active {
  color: #fff;
  border-color: var(--blue-700);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 12px 24px rgba(5, 79, 209, 0.22);
}

.select-pill {
  min-height: 42px;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 900;
}

.game-groups {
  display: grid;
  gap: 12px;
}

.game-group {
  overflow: hidden;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 31, 95, 0.06);
}

.date-box {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 2px;
  padding: 16px 8px;
  border-right: 1px solid var(--line);
}

.date-box strong {
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1;
}

.date-box span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.date-box small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
}

.game-list {
  display: grid;
}

.game-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.game-row:last-child {
  border-bottom: 0;
}

.game-row:hover {
  background: rgba(10, 99, 255, 0.04);
}

.game-row.finished-row {
  grid-template-columns: minmax(0, 1fr);
}

.game-time {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.game-info {
  display: grid;
  gap: 6px;
}

.game-comp {
  color: #223153;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
}

.game-teams {
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, auto) auto minmax(0, auto);
  align-items: center;
  justify-content: start;
  gap: 12px;
}

.game-teams.finished {
  width: auto;
  grid-template-columns: minmax(0, auto) auto minmax(0, auto);
  gap: 10px;
}

.game-teams:not(.finished)::before {
  content: "vs";
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.game-teams:not(.finished) .game-team:first-child {
  grid-column: 1;
  grid-row: 1;
}

.game-teams:not(.finished) .game-team.away {
  grid-column: 3;
  grid-row: 1;
}

.game-team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--ink);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.15;
}

.game-team.away {
  justify-content: center;
  text-align: center;
}

.game-team img {
  order: -1;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.game-result {
  min-width: 46px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(4, 72, 184, 0.18);
}

.venue {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #263653;
  font-size: 0.68rem;
}

.match-hero {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(0, 8, 28, 0.72) 0%, rgba(0, 14, 42, 0.52) 48%, rgba(0, 14, 42, 0.38) 100%),
    url("assets/match-detail-field.jpeg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 148px;
  padding: 18px clamp(18px, 4vw, 46px);
  color: #fff;
}

.score-team {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.2;
}

.score-team img {
  width: 58px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.32));
}

.score-center {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.live-chip {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #fff;
  border-radius: 8px;
  background: var(--red-600);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.big-score {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
}

.match-minute {
  color: var(--red-600);
  font-size: 0.96rem;
  font-weight: 600;
}

.timeline-card {
  margin-top: 0;
  padding: 12px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 58px;
  width: 2px;
  background: #d7e3ff;
}

.incident {
  position: relative;
  display: grid;
  grid-template-columns: 42px 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 31, 95, 0.05);
}

.incident + .incident {
  margin-top: 6px;
}

.incident-minute {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.incident-dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  border: 1px solid #adc6ff;
  border-radius: 999px;
  background: #fff;
}

.incident-dot .icon {
  width: 17px;
  height: 17px;
}

.incident-copy {
  display: grid;
  gap: 3px;
}

.incident-copy strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.incident-copy span {
  color: #263653;
  font-size: 0.76rem;
}

.incident-copy .sub-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.sub-line.sub-out {
  color: #d8172a;
}

.sub-line.sub-in {
  color: #0f9f55;
}

.sub-arrow {
  font-size: 0.82rem;
  line-height: 1;
}

.incident-score {
  min-width: 38px;
  min-height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 6px;
  background: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 600;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #24324f;
  font-size: 0.74rem;
  font-weight: 500;
}

.card-yellow,
.card-red {
  width: 11px;
  height: 16px;
  display: inline-block;
  border-radius: 3px;
}

.card-yellow {
  background: #ffc400;
}

.card-red {
  background: #ee1d2f;
}

.sub-arrows {
  color: #0bbf66;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 50;
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 30, 92, 0.98), rgba(0, 20, 64, 0.98));
  box-shadow: 0 14px 32px rgba(0, 20, 64, 0.38);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 400;
}

.bottom-nav a.active {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.bottom-nav .nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
}

.page-spacer {
  height: 28px;
}

@media (max-width: 1100px) {
  .mini-matches,
  .live-match-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-card-wide {
    grid-column: 1 / -1;
  }

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

  .training-card:nth-child(3n) {
    border-right: 1px solid rgba(8, 26, 58, 0.06);
  }

  .training-card:nth-child(2n) {
    border-right: 0;
  }

  .training-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(8, 26, 58, 0.06);
  }

  .training-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

@media (max-width: 860px) {
  .top-shell {
    top: 8px;
    padding-top: 8px;
  }

  .topbar {
    min-height: 62px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .home-page .topbar {
    justify-content: flex-end;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .home-page .topbar .brand {
    display: none;
  }

  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-home {
    min-height: auto;
    margin-top: -82px;
    padding: 100px 0 26px;
    background-position: center top;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-copy {
    order: 2;
    padding-left: 0;
    display: grid;
    justify-items: center;
    margin: 0 auto;
    text-align: center;
  }

  .hero-title {
    max-width: 360px;
  }

  .logo-stage {
    order: 1;
    min-height: 205px;
    grid-template-columns: 1fr 64px 1fr;
    padding-right: 0;
  }

  .club-logo,
  .club-logo.fcg {
    width: min(150px, 34vw);
    max-height: 190px;
  }

  .handshake {
    width: 58px;
    height: 58px;
  }

  .partner-icon {
    width: 36px;
    height: 36px;
    stroke-width: 3.2;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .latest-section {
    padding: 14px;
  }

  .games-card {
    padding: 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card {
    min-height: 148px;
    padding: 22px 16px;
  }

  .map-card iframe {
    height: 360px;
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .training-card,
  .training-card:nth-child(2n),
  .training-card:nth-child(3n) {
    min-height: auto;
    gap: 18px;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(8, 26, 58, 0.06);
  }

  .training-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(8, 26, 58, 0.06);
  }

  .training-card:last-child {
    border-bottom: 0;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .coach-avatar {
    width: 124px;
    height: 124px;
    margin-bottom: 16px;
  }

  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .game-group {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .game-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .game-teams {
    width: auto;
    gap: 8px;
  }

  .game-teams:not(.finished) {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .game-teams.finished {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .game-team {
    font-size: 0.72rem;
  }

  .game-team img {
    width: 30px;
    height: 30px;
  }

  .game-result {
    min-width: 40px;
    min-height: 24px;
    font-size: 0.78rem;
  }

  .game-team.away {
    justify-content: flex-start;
    text-align: left;
  }

  .scoreboard {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    min-height: 116px;
    padding: 14px 12px;
  }

  .score-center {
    gap: 5px;
  }

  .score-team {
    font-size: 0.68rem;
  }

  .score-team img {
    width: 42px;
    height: 52px;
  }

  .big-score {
    font-size: 2rem;
  }

  .live-chip {
    min-height: 20px;
    padding: 0 7px;
    font-size: 0.58rem;
  }

  .timeline::before {
    left: 46px;
  }

  .incident {
    grid-template-columns: 34px 34px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 8px;
  }

  .incident-score {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1480px);
  }

  .topbar {
    min-height: 58px;
    border-radius: 16px;
  }

  .brand {
    gap: 10px;
  }

  .hero-home {
    background:
      linear-gradient(180deg, rgba(0, 8, 28, 0.84), rgba(0, 14, 42, 0.66) 56%, rgba(0, 14, 42, 0.52)),
      url("assets/campo-1.jpeg") center top / cover no-repeat;
  }

  .hero-kicker {
    font-size: 1.68rem;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 10.5vw, 2.85rem);
  }

  .hero-partner {
    font-size: 0.9rem;
  }

  .hero-club {
    font-size: 1.42rem;
  }

  .hero-description {
    max-width: 310px;
    font-size: 0.88rem;
  }

  .primary-cta {
    min-height: 46px;
    padding: 0 22px;
  }

  .value-card {
    min-height: 164px;
    padding: 22px;
  }

  .bottom-nav {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    border-radius: 16px;
  }

  .bottom-nav a {
    font-size: 0.72rem;
  }

  .bottom-nav .nav-icon {
    width: 22px;
    height: 22px;
  }

  .date-box strong {
    font-size: 1.35rem;
  }
}
