:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --fg: #f4f4f5;
  --fg-dim: #8a8a92;
  --line: #1f1f24;
  --accent: #e10600;
  --accent-2: #ff1a0d;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Background grid */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  backdrop-filter: blur(12px);
  background: rgba(10,10,11,0.6);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.brand img { width: 28px; height: 28px; object-fit: contain; mix-blend-mode: screen; }
.nav nav { display: flex; gap: 36px; }
.nav nav a {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s ease;
}
.nav nav a:hover { color: var(--fg); }

/* Layout */
main { position: relative; z-index: 1; }
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 40px;
  position: relative;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 48px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 60px;
}
.hero-mark {
  width: 140px;
  height: 140px;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 40px rgba(225,6,0,0.35));
  animation: float 6s ease-in-out infinite;
}
.hero-mark img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: clamp(60px, 11vw, 160px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 32px;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--accent); }
.tagline {
  max-width: 560px;
  color: var(--fg-dim);
  font-size: 17px;
  margin-bottom: 40px;
}
.cta { display: flex; gap: 16px; margin-bottom: 80px; }

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}
.btn.ghost {
  border-color: var(--line);
  color: var(--fg);
}
.btn.ghost:hover {
  border-color: var(--fg);
}
.btn.big { padding: 22px 44px; font-size: 15px; }

/* Ticker */
.ticker {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: var(--bg-2);
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}
.about-grid h2 { margin: 0; }
.about-text p {
  color: var(--fg-dim);
  font-size: 17px;
  margin-bottom: 18px;
}
.about-text strong { color: var(--fg); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 48px 32px;
  text-align: center;
}
.stat .num {
  display: block;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.stat .label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Roster */
.players {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.player {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.player::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.player:hover { border-color: var(--accent); transform: translateY(-4px); }
.player:hover::before { width: 100%; }
.player-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1a1a1f, #0a0a0b);
  background-size: cover;
  background-position: center top;
  margin-bottom: 20px;
  position: relative;
}
.player-img::after {
  content: '?';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 800;
  color: var(--line);
}
.player-img.has-photo::after { display: none; }
.player h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.player .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.player-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}
.player-meta h3 {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.player-meta .player-socials {
  margin-left: auto;
  flex-shrink: 0;
}
.flag-icon {
  display: block;
  height: 14px;
  width: auto;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.player-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}
.player-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  color: var(--muted, #888);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.player-socials a img {
  height: 22px;
  width: auto;
  display: block;
}
.player-socials a svg {
  width: 20px;
  height: 20px;
  display: block;
}
.player-socials a:hover {
  color: var(--accent);
  opacity: 0.8;
}

/* Matches */
.match-block { margin-bottom: 48px; }
.match-block:last-child { margin-bottom: 0; }
.match-block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.match-list { list-style: none; }
.match-list li {
  display: grid;
  grid-template-columns: 130px 1fr 200px 100px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  gap: 20px;
  transition: background 0.2s ease, padding 0.2s ease;
}
.match-list li:last-child { border-bottom: 1px solid var(--line); }
.match-list li:hover { background: var(--bg-2); padding-left: 12px; padding-right: 12px; }
.match-list a.match-row {
  display: contents;
  color: inherit;
}
.match-list .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.match-list .date small {
  display: block;
  color: var(--fg-dim);
  font-size: 11px;
  margin-top: 2px;
}
.match-list .versus {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.match-list .versus img,
.match-list .versus .placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}
.match-list .versus .vs {
  color: var(--accent);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.match-list .event {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-list .format,
.match-list .result {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: right;
  color: var(--accent);
}
.match-list .result.win { color: #4ade80; }
.match-list .result.loss { color: var(--fg-dim); }
.match-loading,
.match-empty {
  display: block !important;
  text-align: center;
  padding: 36px 0 !important;
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Contact */
.contact { text-align: center; }
.contact h2 { margin-bottom: 16px; }
.contact p {
  color: var(--fg-dim);
  margin-bottom: 40px;
  font-size: 17px;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.socials a {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.socials a:hover {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 40px;
  position: relative;
  z-index: 1;
  background: var(--bg-2);
}
.foot-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 13px;
}
.foot-brand img { width: 24px; height: 24px; object-fit: contain; mix-blend-mode: screen; }
footer p {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav nav { gap: 20px; }
  .nav nav a { font-size: 11px; }
  section { padding: 100px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .players { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat .num { font-size: 48px; }
  .match-list li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }
  .match-list .format,
  .match-list .result { text-align: left; }
  .foot-row { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 600px) {
  .nav nav { display: none; }
  .hero-mark { width: 100px; height: 100px; }
  .cta { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .players { grid-template-columns: 1fr; }
}
