:root {
  --bg: #0b1120;
  --bg-soft: #111a2e;
  --card: #16213a;
  --card-border: #243152;
  --text: #e7ecf6;
  --text-dim: #9aa8c4;
  --accent: #c7f441;      /* tennis-ball green */
  --accent-2: #38bdf8;    /* court blue */
  --danger: #fb7185;
  --ok: #34d399;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1b2746 0%, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 32, 0.72);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(199, 244, 65, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; color: var(--text-dim); }
.nav { display: flex; gap: 22px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--accent); }

/* ---------- Hero / Next Match ---------- */
.hero { padding: 56px 0 48px; }

.hero-intro { min-width: 0; margin-bottom: 32px; }
.hero-tagline {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 46ch;
}

/* Team layout: captain on the left, roster on the right */
.team-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
}
.captain-feature { align-self: start; }

/* Featured team photo with butterfly-wing glow */
.hero-photo {
  position: relative;
  flex-shrink: 0;
  width: 230px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  background: var(--card);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, var(--accent-2), var(--accent), #facc15, var(--accent-2));
  filter: blur(34px);
  opacity: 0.35;
  z-index: 0;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 18%;
}
.hero-photo-cap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(11,17,32,0.95), rgba(11,17,32,0.55));
  backdrop-filter: blur(6px);
}
.hero-photo-name { font-weight: 700; font-size: 16px; margin-top: 2px; }
.hero-photo-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-photo-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.hero-photo-contact a {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-2);
  padding: 8px 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  word-break: break-word;
  transition: background 0.18s ease;
}
.hero-photo-contact a:hover { background: rgba(56, 189, 248, 0.2); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(199, 244, 65, 0.1);
  border: 1px solid rgba(199, 244, 65, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero-title {
  margin: 18px 0 28px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.match-card {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.match-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.meta-value { font-size: 18px; font-weight: 600; }
.meta-link { font-size: 13px; color: var(--accent-2); font-weight: 500; width: fit-content; }
.meta-link:hover { text-decoration: underline; }
.countdown {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}

.lineup { padding-top: 24px; }
.lineup-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.lineup-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lineup-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}
.lineup-slot {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  border-radius: 12px;
  background: rgba(199, 244, 65, 0.12);
  color: var(--accent);
  border: 1px solid rgba(199, 244, 65, 0.25);
}
.lineup-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lineup-player { font-weight: 600; font-size: 16px; }
.lineup-detail { font-size: 13px; color: var(--text-dim); }
.status-pill {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.status-confirmed { background: rgba(52, 211, 153, 0.12); color: var(--ok); border: 1px solid rgba(52,211,153,.3); }
.status-postponed { background: rgba(251, 113, 133, 0.12); color: var(--danger); border: 1px solid rgba(251,113,133,.3); }
.status-tbd { background: rgba(154, 168, 196, 0.12); color: var(--text-dim); border: 1px solid var(--card-border); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--text-dim); margin-top: 4px; margin-bottom: 26px; }

/* ---------- Roster ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.player-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.player-card:hover { transform: translateY(-3px); border-color: rgba(199,244,65,.4); }
.player-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, var(--accent-2), #6366f1);
  color: #fff;
}
.player-info { display: flex; flex-direction: column; }
.player-name { font-weight: 600; }
.player-ntrp { font-size: 13px; color: var(--text-dim); }

/* ---------- League info ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.info-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
}
.info-key {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.info-val { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  border-top: 1px solid var(--card-border);
}
.footer-fine { font-size: 13px; margin-top: 4px; opacity: 0.7; }

/* ---------- Decorative side bars (butterfly-wing gradient) ---------- */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 6px;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(180deg, var(--accent-2), var(--accent), #facc15);
  opacity: 0.8;
}
body::before { left: 0; }
body::after { right: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero-tagline { max-width: none; }
  .team-layout { grid-template-columns: 1fr; }
  .captain-feature { position: static; width: 100%; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .match-meta { grid-template-columns: 1fr; }
  .hero { padding: 36px 0; }
  body::before, body::after { width: 4px; }
  .captain-card { flex-direction: column; text-align: center; }
}
