:root {
  --bg: #020707;
  --surface: rgba(10, 23, 20, 0.86);
  --surface-soft: rgba(16, 35, 29, 0.72);
  --ink: #f5fff8;
  --muted: #b8c9c1;
  --muted-2: #82978e;
  --line: rgba(42, 255, 122, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --green: #17e86f;
  --yellow: #f5c542;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 10%, rgba(21, 226, 111, 0.12), transparent 28rem),
    linear-gradient(180deg, #020807 0%, #03110d 42%, #010504 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(2, 7, 7, 0.34), rgba(2, 7, 7, 0.78)),
    linear-gradient(115deg, transparent 0 31%, rgba(36, 255, 130, 0.08) 32%, transparent 39%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(1, 7, 7, 0.9);
  backdrop-filter: blur(16px);
}

.header-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 146px; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(245, 255, 248, 0.86);
  font-size: 0.88rem;
  font-weight: 800;
}

.main-nav a:hover { color: var(--green); }

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  color: #021008;
  background: linear-gradient(135deg, #1fff82, #13d966);
  box-shadow: 0 12px 30px rgba(21, 201, 107, 0.22);
}

.btn-outline,
.btn-ghost {
  color: var(--ink);
  border-color: rgba(29, 231, 111, 0.32);
  background: rgba(255, 255, 255, 0.035);
}

.btn-small { min-height: 44px; padding-inline: 18px; }

.hero {
  padding: 42px 0 30px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(90deg, rgba(1, 8, 7, 0.98) 0%, rgba(2, 13, 9, 0.76) 35%, rgba(2, 10, 7, 0.28) 70%, rgba(1, 7, 6, 0.92) 100%),
    radial-gradient(circle at 63% 52%, rgba(39, 255, 132, 0.18), transparent 24rem),
    repeating-linear-gradient(8deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 23px);
}

.hero-grid {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #f6d56a;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 20px 0 28px;
  color: rgba(247, 255, 249, 0.84);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 27, 21, 0.72);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  color: var(--green);
  font-size: 4rem;
  line-height: 1;
}

.hero-panel span {
  font-size: 1.05rem;
  font-weight: 900;
}

.hero-panel small {
  color: var(--muted);
  line-height: 1.5;
}

.squads-section {
  padding: 30px 0 44px;
}

.squad-tools {
  position: sticky;
  top: 96px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 15, 12, 0.92);
  backdrop-filter: blur(16px);
}

.search-box {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  color: var(--muted);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.search-box input::placeholder { color: var(--muted-2); }

.group-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.group-filter button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.group-filter button.active {
  background: var(--green);
  color: #021008;
}

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

.squad-card {
  --team-primary: var(--green);
  --team-secondary: var(--yellow);
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--team-primary) 58%, transparent);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 20%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(10, 23, 20, 0.96), rgba(6, 16, 13, 0.96));
  box-shadow: var(--shadow);
}

.squad-card[hidden] { display: none; }

.squad-card-header {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.team-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--team-primary) 42%, transparent);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 28%, transparent), color-mix(in srgb, var(--team-secondary) 20%, transparent)),
    rgba(255,255,255,0.04);
}

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

.squad-card-header span {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--team-secondary);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.squad-card-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.45rem;
  line-height: 1.1;
}

.squad-card-header small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}

.squad-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
}

.squad-meta strong {
  color: var(--team-primary);
  font-size: 2rem;
  line-height: 1;
}

.squad-meta span {
  color: var(--muted);
  font-weight: 800;
}

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

.position-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
}

.position-block h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.position-block h3 span {
  color: var(--team-primary);
}

.position-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.position-block li {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.empty-state {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-state strong { color: var(--ink); }

.seo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 26px;
  margin-bottom: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.seo-copy h2 {
  margin: 0 0 14px;
  font-size: 1.85rem;
  line-height: 1.15;
}

.seo-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list { display: grid; gap: 10px; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.faq-list summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 44px 0 28px;
  border-top: 1px solid var(--line-soft);
  background: rgba(1, 7, 7, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 46px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-logo { width: 150px; }

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-col a:hover { color: var(--green); }

.social-links {
  display: flex;
  gap: 18px;
  color: var(--green);
  font-size: 1.15rem;
}

.copyright {
  padding-top: 18px;
  color: var(--muted-2);
  text-align: center;
  font-size: 0.86rem;
}

@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
  .squad-card {
    border-color: var(--team-primary);
  }

  .team-mark {
    border-color: var(--team-primary);
  }
}

@media (max-width: 1040px) {
  .main-nav { display: none; }

  .hero-grid,
  .squad-tools,
  .squad-grid,
  .seo-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .squad-tools {
    position: static;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }

  .site-header { position: relative; }

  .header-content {
    min-height: 72px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .logo { justify-content: center; width: 100%; }
  .logo img { width: 132px; }

  .header-actions {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .header-actions .btn { flex: 1; }

  .btn {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 0.82rem;
  }

  .hero { padding: 28px 0 22px; }
  .hero-grid { min-height: 0; gap: 22px; }
  .hero h1 { font-size: 2.35rem; line-height: 1.02; }
  .hero p { font-size: 0.98rem; }

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

  .squad-card-header {
    grid-template-columns: 60px minmax(0, 1fr);
    padding: 14px;
  }

  .team-mark {
    width: 60px;
    height: 60px;
  }

  .team-mark img {
    width: 40px;
    height: 40px;
  }

  .squad-card-header h2 {
    font-size: 1.22rem;
  }

  .position-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .squad-meta {
    padding: 12px 14px;
  }

  .seo-section {
    padding: 18px;
  }

  .footer-grid {
    gap: 24px;
    text-align: center;
    justify-items: center;
  }

  .footer-col a,
  .footer-col span {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Responsive containment pass - 2026-05-22 */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

.container,
.site-header,
.header-content,
.hero,
.hero-grid,
.section,
.section-header,
.squad-card,
.squad-card-header,
.position-grid,
.squad-meta,
.footer-grid {
  min-width: 0;
  max-width: 100%;
}

.team-mark,
.player-row,
.player-info,
.seo-section {
  min-width: 0;
}

.table-scroll,
.squad-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

:is(.hero, .section-header, .squad-card, .player-info, .seo-section) :is(h1, h2, h3, p, strong) {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }
}
