:root {
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 72px);
  --bg: #080a0d; --bg2: #0f1116; --bg3: #161920;
  --gold: #b8922a; --gold2: #d4aa3f;
  --white: #ede9df; --muted: #6e737f;
  --radius: 5px;
  --transition: 0.33s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--white); font-family: 'DM Sans', sans-serif; line-height: 1.6; overflow-x: hidden; }
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* NAV */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 var(--gutter); height: 66px; display: flex; align-items: center; justify-content: space-between; background: rgba(8,10,13,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(184,146,42,0.2); }
.nav-brand { display: flex; align-items: center; gap: 13px; }
.nav-logo-img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(184,146,42,0.2)); }
.nav-brand-text { line-height: 1.1; }
.nav-brand-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: 3px; color: var(--white); }
.nav-brand-sub { font-size: 0.65rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--gold); transition: width var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--bg2); flex-direction: column; align-items: center; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; border-bottom: 1px solid rgba(184,146,42,0.2); }
  .nav-links.open { max-height: 360px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px var(--gutter); border-bottom: 1px solid rgba(255,255,255,0.04); }
}

/* PAGE HERO */
.page-hero { position: relative; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; background: var(--bg); border-bottom: 1px solid rgba(184,146,42,0.18); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 75% 50%, rgba(184,146,42,0.10) 0%, transparent 60%), linear-gradient(170deg, var(--bg) 0%, rgba(8,10,13,0.65) 60%, var(--bg) 100%); z-index: 0; }
.page-hero-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06; background-image: linear-gradient(rgba(184,146,42,0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(184,146,42,0.6) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(135deg, transparent 0%, black 40%, black 60%, transparent 100%); -webkit-mask-image: linear-gradient(135deg, transparent 0%, black 40%, black 60%, transparent 100%); }
.page-hero-ghost { position: absolute; right: -1vw; bottom: -2vh; font-family: 'Bebas Neue', sans-serif; font-size: clamp(9rem, 20vw, 18rem); letter-spacing: -2px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(184,146,42,0.06); user-select: none; pointer-events: none; z-index: 1; white-space: nowrap; }
.page-hero-bar { position: absolute; top: 0; left: 5vw; width: 3px; height: 100%; background: linear-gradient(180deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%); opacity: 0.4; z-index: 2; }
.page-hero-content { position: relative; z-index: 3; width: 100%; max-width: var(--container); margin: 0 auto; padding: 110px var(--gutter) 44px calc(var(--gutter) + 28px); }
.page-hero-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 0.68rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.page-hero-tag::before { content: ''; width: 24px; height: 1.5px; background: var(--gold); display: block; }
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.4rem, 8vw, 6.5rem); letter-spacing: 2px; line-height: 0.9; color: var(--white); margin-bottom: 18px; }
.page-title .accent { color: var(--gold); }
.divider { width: 44px; height: 3px; background: var(--gold); border-radius: 2px; }

/* COMING SOON BANNER */
.coming-soon-banner { max-width: var(--container); margin: 32px auto 0; padding: 0 var(--gutter); }
.coming-soon-inner { display: flex; align-items: center; gap: 18px; background: rgba(184,146,42,0.06); border: 1px solid rgba(184,146,42,0.2); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 18px 22px; }
.coming-soon-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--gold); }
.coming-soon-icon svg { width: 100%; height: 100%; }
.coming-soon-text { display: flex; flex-direction: column; gap: 4px; }
.coming-soon-title { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 2px; color: var(--gold); }
.coming-soon-sub { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

/* PLAYERS OUTER */
.players-outer { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 80px; display: flex; flex-direction: column; gap: 36px; }

/* PLAYERS GRID */
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* PLAYER CARD */
.player-card { background: var(--bg2); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; position: relative; transition: var(--transition); display: flex; flex-direction: column; }
.player-card:hover { border-color: rgba(184,146,42,0.3); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }

.player-avatar { width: 100%; aspect-ratio: 1/1; background: var(--bg3); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(184,146,42,0.1); position: relative; overflow: hidden; }
.player-avatar svg { width: 52px; height: 52px; stroke: rgba(184,146,42,0.18); }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Shimmer on placeholder cards */
.player-card.placeholder .player-avatar { background: linear-gradient(135deg, var(--bg3) 0%, rgba(184,146,42,0.04) 50%, var(--bg3) 100%); background-size: 200% 200%; animation: shimmer 3s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.player-info { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.player-name { font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--white); line-height: 1.2; }
.player-role { font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.player-team { font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(184,146,42,0.6); font-weight: 700; margin-top: 4px; }

/* Placeholder text blocks */
.player-card.placeholder .player-name { background: rgba(255,255,255,0.07); border-radius: 3px; color: transparent; width: 72%; height: 16px; }
.player-card.placeholder .player-role { background: rgba(255,255,255,0.05); border-radius: 3px; color: transparent; width: 88%; height: 12px; margin-top: 4px; }
.player-card.placeholder .player-team { background: rgba(184,146,42,0.08); border-radius: 3px; color: transparent; width: 48%; height: 12px; }

/* Hover overlay */
.player-overlay { position: absolute; inset: 0; background: rgba(8,10,13,0.82); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(184,146,42,0.75); opacity: 0; transition: opacity var(--transition); pointer-events: none; }
.player-card.placeholder:hover .player-overlay { opacity: 1; }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid rgba(255,255,255,0.06); padding: 36px var(--gutter) 24px; }
.footer-bottom { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-bottom a { color: var(--gold); }

/* GRAIN */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.022; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-repeat: repeat; background-size: 128px 128px; }

/* COMING SOON GRAPHIC */
.cs-graphic-wrap {
  border: 1px solid rgba(184,146,42,0.12);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
  position: relative;
}
.cs-graphic {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
}

/* STATES */
.players-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(184,146,42,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* CAPTAIN / VC BADGES */
.player-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.player-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
}
.badge-captain { background: var(--gold); color: var(--bg); }
.badge-vc      { background: rgba(184,146,42,0.2); color: var(--gold); border: 1px solid rgba(184,146,42,0.4); }

/* AVATAR FALLBACK */
.player-avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.player-avatar-fallback svg { width: 52px; height: 52px; stroke: rgba(184,146,42,0.18); }

/* PLAYER DETAIL LINE */
.player-detail {
  font-size: 0.68rem; letter-spacing: 0.5px;
  color: rgba(110,115,127,0.8); margin-top: 2px;
}

/* PLAYER BIO */
.player-bio {
  font-size: 0.82rem;
  color: rgba(237,233,223,0.5);
  line-height: 1.65;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* INFO NOTICE */
.players-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(184,146,42,0.05);
  border: 1px solid rgba(184,146,42,0.18);
  border-left: 3px solid rgba(184,146,42,0.5);
  border-radius: 0 6px 6px 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.players-notice svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  flex-shrink: 0;
  opacity: 0.8;
}

/* Bio coming soon label */
.player-bio-soon,
.fp-bio-soon {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
  font-style: italic;
}

/* Bio header */
.player-bio-header,
.fp-bio-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
