/* ==========================================================================
   KK Rekreativo — Main Stylesheet
   1:1 mockup match + sub-page extensions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #111111;
  --surface-alt: #0d0d0d;
  --surface-hover: #1a1a1a;
  --border: #1a1a1a;
  --neon: #76FF03;
  --neon-dim: #5cb800;
  --neon-glow: rgba(118, 255, 3, 0.12);
  --neon-glow-strong: rgba(118, 255, 3, 0.25);
  --dark-green: #0a1f04;
  --text: #e4eee4;
  --text-muted: #6a7a6a;
  --text-heading: #f0f8f0;
  --danger: #ff4444;
  --warning: #FFB300;
  --draw: #888;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select { font-family: inherit; }

a {
  color: var(--neon);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover { opacity: 0.85; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  line-height: 1.15;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }


/* ==========================================================================
   MOCKUP COMPONENTS — exact 1:1
   ========================================================================== */

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding-inline: 20px;
}

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading);
  line-height: 1.1;
  text-wrap: balance;
}

.section-title .accent {
  color: var(--neon);
}

.angle-line {
  width: 60px;
  height: 3px;
  background: var(--neon);
  margin-top: 16px;
  transform: skewX(-20deg);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.97);
  box-shadow: 0 2px 30px var(--neon-glow);
  border-bottom-color: rgba(118, 255, 3, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.nav-logo-text span {
  color: var(--neon);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon);
  background: var(--neon-glow);
  opacity: 1;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.97);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: min(85vh, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(118, 255, 3, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(118, 255, 3, 0.04) 0%, transparent 60%);
}

.hero-geometry {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.08;
}

.hero-geometry::before,
.hero-geometry::after {
  content: '';
  position: absolute;
  background: var(--neon);
}

.hero-geometry::before {
  width: 2px; height: 120%; top: -10%; right: 30%; transform: rotate(15deg);
}

.hero-geometry::after {
  width: 2px; height: 120%; top: -10%; right: 25%; transform: rotate(15deg);
}

.geo-line {
  position: absolute;
  background: var(--neon);
  width: 2px;
  height: 120%;
  top: -10%;
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
}

.hero-text { display: flex; flex-direction: column; gap: 20px; }

.hero-club-logo {
  width: 120px; height: 120px; object-fit: contain;
  filter: drop-shadow(0 0 30px var(--neon-glow-strong));
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700; line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-heading); letter-spacing: -0.02em;
}

.hero-title .neon { color: var(--neon); text-shadow: 0 0 40px var(--neon-glow-strong); }

.hero-sub {
  font-family: 'Barlow', sans-serif; font-size: 1.1rem;
  font-weight: 300; color: var(--text-muted);
  max-width: 420px; line-height: 1.7;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 28px; border-radius: 4px;
  cursor: pointer; transition: all 0.25s; border: none;
}

.btn-primary { background: var(--neon); color: #080808; }
.btn-primary:hover { box-shadow: 0 0 30px var(--neon-glow-strong), 0 4px 20px rgba(0,0,0,0.4); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--neon); border: 1px solid rgba(118, 255, 3, 0.3); }
.btn-outline:hover { background: var(--neon-glow); border-color: var(--neon); }
.btn-sm { padding: 8px 18px; font-size: 0.75rem; }
.btn-full { width: 100%; }

/* Hero stats */
.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 24px 20px; position: relative;
  overflow: hidden; transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: rgba(118, 255, 3, 0.2); transform: translateY(-2px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--neon), transparent); opacity: 0; transition: opacity 0.3s; }
.stat-card:hover::before { opacity: 1; }
.stat-number { font-family: 'Oswald', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--neon); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

/* Next Match */
.next-match { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.next-match-badge { background: var(--neon); color: #080808; font-family: 'Oswald', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; white-space: nowrap; }
.next-match-info { flex: 1; min-width: 180px; }
.next-match-teams { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text-heading); text-transform: uppercase; }
.next-match-teams .vs { color: var(--text-muted); font-weight: 400; margin: 0 6px; }
.next-match-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.next-match-countdown { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--neon); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== ABOUT SECTION ===== */
.about { padding: 100px 0; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 48px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-text { font-size: 1.05rem; color: var(--text); line-height: 1.8; font-weight: 300; }
.about-text strong { color: var(--neon); font-weight: 600; }
.about-values { display: flex; flex-direction: column; gap: 16px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border-radius: 6px; border: 1px solid var(--border); transition: border-color 0.2s; }
.value-item:hover { border-color: rgba(118, 255, 3, 0.15); }
.value-icon { width: 40px; height: 40px; min-width: 40px; background: var(--dark-green); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--neon); font-size: 1.1rem; }
.value-content h4 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-heading); margin-bottom: 4px; }
.value-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0; }

/* ===== VESTI / NEWS ===== */
.news { padding: 100px 0; background: var(--surface-alt); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 48px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color 0.3s, transform 0.3s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.news-card:hover { border-color: rgba(118, 255, 3, 0.2); transform: translateY(-3px); opacity: 1; }
.news-thumb { width: 100%; aspect-ratio: 16/9; max-width: 100%; background: linear-gradient(135deg, var(--dark-green), var(--bg)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb-icon { color: rgba(118, 255, 3, 0.15); }
.news-badge { position: absolute; top: 12px; left: 12px; background: var(--neon); color: #080808; font-family: 'Oswald', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.news-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.1rem; text-transform: uppercase; color: var(--text-heading); margin-top: 6px; line-height: 1.3; }
.news-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-top: 10px; flex: 1; }
.news-link { display: inline-flex; align-items: center; gap: 6px; color: var(--neon); font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; margin-top: 14px; transition: gap 0.2s; }
.news-link:hover { gap: 10px; opacity: 1; }

/* ===== ROSTER ===== */
.roster { padding: 100px 0; }
.roster-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 48px; }
.roster-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn { font-family: 'Barlow', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 16px; border-radius: 4px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: rgba(118, 255, 3, 0.2); color: var(--text); }
.filter-btn.active { background: var(--neon); color: #080808; border-color: var(--neon); font-weight: 600; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.player-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; position: relative; text-decoration: none; color: inherit; display: block; }
.player-card:hover { transform: translateY(-4px); border-color: rgba(118, 255, 3, 0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px var(--neon-glow); opacity: 1; }
.player-avatar { width: 100%; aspect-ratio: 1; max-width: 100%; background: linear-gradient(135deg, var(--dark-green), var(--surface)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.player-avatar::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, var(--surface), transparent); z-index: 2; }
.player-number { font-family: 'Oswald', sans-serif; font-size: 5rem; font-weight: 700; color: rgba(118, 255, 3, 0.12); line-height: 1; position: relative; z-index: 1; }
.player-jersey-indicator { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); z-index: 2; box-shadow: 0 0 8px var(--neon-glow-strong); }
.player-info { padding: 16px 18px 20px; }
.player-name { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-heading); }
.player-position { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.player-stats-mini { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.player-stat { text-align: center; }
.player-stat-val { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--neon); font-variant-numeric: tabular-nums; }
.player-stat-lbl { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== PLAYER STATS TABLE ===== */
.stats-section { padding: 100px 0; background: var(--surface-alt); }
.stats-tabs { display: flex; gap: 6px; margin-top: 32px; margin-bottom: 24px; flex-wrap: wrap; }
.stats-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }
.stats-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.stats-table th { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 14px 16px; text-align: left; background: var(--surface); border-bottom: 2px solid var(--border); white-space: nowrap; }
.stats-table th.num { text-align: center; }
.stats-table td { padding: 12px 16px; font-size: 0.9rem; color: var(--text); border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.stats-table td.num { text-align: center; font-family: 'Oswald', sans-serif; font-weight: 500; }
.stats-table td.highlight { color: var(--neon); font-weight: 700; font-family: 'Oswald', sans-serif; }
.stats-table tbody tr { transition: background 0.15s; }
.stats-table tbody tr:hover { background: var(--surface-hover); }
.stats-table .rank { color: var(--text-muted); font-family: 'Oswald', sans-serif; font-weight: 500; }
.stats-player-name { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 0.88rem; color: var(--text-heading); }
.stats-player-pos { font-size: 0.7rem; color: var(--text-muted); }

/* ===== MVP / PLAYER OF THE ROUND ===== */
.mvp-section { padding: 100px 0; }
.mvp-card { margin-top: 48px; background: linear-gradient(135deg, var(--surface) 0%, var(--dark-green) 100%); border: 1px solid rgba(118, 255, 3, 0.2); border-radius: 12px; padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 600px) { .mvp-card { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; } }
.mvp-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(118,255,3,0.06) 0%, transparent 70%); pointer-events: none; }
.mvp-avatar { width: 180px; height: 180px; border-radius: 50%; background: linear-gradient(135deg, var(--dark-green), var(--bg)); display: flex; align-items: center; justify-content: center; border: 3px solid rgba(118,255,3,0.3); position: relative; overflow: hidden; }
.mvp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvp-avatar-number { font-family: 'Oswald', sans-serif; font-size: 5rem; font-weight: 700; color: rgba(118,255,3,0.2); }
.mvp-badge { position: absolute; bottom: 5px; right: 5px; background: var(--neon); color: #080808; font-family: 'Oswald', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.mvp-info h3 { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; text-transform: uppercase; color: var(--text-heading); }
.mvp-info .mvp-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.mvp-stats { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 600px) { .mvp-stats { justify-content: center; } }
.mvp-stat-item { text-align: center; }
.mvp-stat-val { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; color: var(--neon); line-height: 1; }
.mvp-stat-lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.mvp-quote { margin-top: 20px; font-style: italic; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; border-left: 3px solid var(--neon); padding-left: 16px; }

/* ===== LEAGUE TABLE ===== */
.league { padding: 100px 0; background: var(--surface-alt); }
.league-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); margin-top: 48px; }
.league-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.league-table th { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 14px 12px; text-align: center; background: var(--surface); border-bottom: 2px solid var(--border); white-space: nowrap; }
.league-table th:nth-child(2) { text-align: left; }
.league-table td { padding: 12px; font-size: 0.88rem; color: var(--text); border-bottom: 1px solid var(--border); text-align: center; font-variant-numeric: tabular-nums; }
.league-table td:nth-child(2) { text-align: left; }
.league-table tbody tr { transition: background 0.15s; }
.league-table tbody tr:hover { background: var(--surface-hover); }
.league-table tbody tr.our-team { background: rgba(118, 255, 3, 0.04); }
.league-table tbody tr.our-team:hover { background: rgba(118, 255, 3, 0.08); }
.league-table .team-name { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 0.88rem; }
.league-table .our-team .team-name { color: var(--neon); }
.league-table .pos { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1rem; }
.league-table .pts { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--neon); }
.form-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 2px; }
.form-dot.w { background: var(--neon); }
.form-dot.l { background: var(--danger); }
.form-dot.d { background: var(--draw); }

/* ===== SCHEDULE ===== */
.schedule { padding: 100px 0; }
.schedule-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; margin-bottom: 24px; }
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.match-row { display: grid; grid-template-columns: 50px 90px 1fr auto auto; gap: 16px; align-items: center; padding: 18px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; transition: border-color 0.2s, transform 0.2s; text-decoration: none; color: inherit; }
.match-row:hover { border-color: rgba(118, 255, 3, 0.15); transform: translateX(4px); opacity: 1; }
@media (max-width: 600px) { .match-row { grid-template-columns: 1fr; gap: 8px; padding: 16px; } }
.match-round { font-family: 'Oswald', sans-serif; font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.match-date { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; }
.match-teams { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.02rem; text-transform: uppercase; color: var(--text-heading); }
.match-teams .home { color: var(--neon); }
.match-score { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text-heading); font-variant-numeric: tabular-nums; min-width: 70px; text-align: center; }
.match-result { font-family: 'Oswald', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 3px; min-width: 50px; text-align: center; }
.match-result.win { background: rgba(118, 255, 3, 0.12); color: var(--neon); }
.match-result.loss { background: rgba(255, 68, 68, 0.12); color: var(--danger); }
.match-result.upcoming { background: rgba(255, 179, 0, 0.12); color: var(--warning); }

/* ===== GALLERY BY MATCH ===== */
.gallery { padding: 100px 0; background: var(--surface-alt); }
.gallery-match-list { display: flex; flex-direction: column; gap: 32px; margin-top: 48px; }
.gallery-match { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.gallery-match-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; cursor: pointer; transition: background 0.2s; }
.gallery-match-header:hover { background: var(--surface-hover); }
.gallery-match-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1rem; text-transform: uppercase; color: var(--text-heading); }
.gallery-match-title .neon { color: var(--neon); }
.gallery-match-meta { display: flex; align-items: center; gap: 12px; }
.gallery-match-date { font-size: 0.78rem; color: var(--text-muted); }
.gallery-match-count { font-family: 'Oswald', sans-serif; font-size: 0.75rem; color: var(--neon); background: var(--neon-glow); padding: 3px 10px; border-radius: 12px; }
.gallery-match-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; padding: 4px; }
.gallery-photo { aspect-ratio: 1; max-width: 100%; background: linear-gradient(135deg, var(--dark-green), var(--bg)); position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-photo:hover { opacity: 0.85; }
.gallery-photo-icon { color: rgba(118, 255, 3, 0.12); }

/* ===== JOIN FORM ===== */
.join { padding: 100px 0; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 48px; align-items: start; }
@media (max-width: 768px) { .join-grid { grid-template-columns: 1fr; gap: 32px; } }
.join-form { display: flex; flex-direction: column; gap: 16px; }
.join-perks { display: flex; flex-direction: column; gap: 16px; }
.join-perk { display: flex; gap: 14px; align-items: flex-start; }
.join-perk-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: var(--dark-green); display: flex; align-items: center; justify-content: center; color: var(--neon); font-size: 0.9rem; }
.join-perk-text h4 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; color: var(--text-heading); margin-bottom: 2px; }
.join-perk-text p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: 'Barlow', sans-serif; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px;
  color: var(--text); font-family: 'Barlow', sans-serif; font-size: 0.95rem; transition: border-color 0.2s; width: 100%;
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236a7a6a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-glow); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* ===== SPONSORS ===== */
.sponsors { padding: 100px 0; background: var(--surface-alt); }
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.sponsor-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 36px 28px; text-align: center; transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden; }
.sponsor-card:hover { border-color: rgba(118, 255, 3, 0.2); transform: translateY(-2px); }
.sponsor-card.primary { border-color: rgba(118, 255, 3, 0.2); background: linear-gradient(135deg, var(--surface) 0%, var(--dark-green) 100%); }
.sponsor-card.primary::before { content: 'GENERALNI SPONZOR'; position: absolute; top: 0; left: 0; right: 0; background: var(--neon); color: #080808; font-family: 'Oswald', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; padding: 4px; text-align: center; }
.sponsor-logo { height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sponsor-logo img { max-height: 56px; width: auto; }
.sponsor-logo-text { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sponsor-card.primary .sponsor-logo-text { color: var(--neon); text-shadow: 0 0 20px var(--neon-glow-strong); }
.sponsor-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 48px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; min-width: 44px; background: var(--dark-green); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--neon); }
.contact-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.contact-value { font-size: 1rem; color: var(--text-heading); margin-top: 2px; }
.contact-value a { color: var(--text-heading); text-decoration: none; transition: color 0.2s; }
.contact-value a:hover { color: var(--neon); opacity: 1; }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-link { width: 44px; height: 44px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: all 0.2s; font-size: 0.85rem; font-weight: 700; }
.social-link:hover { background: var(--neon-glow); border-color: var(--neon); color: var(--neon); opacity: 1; }

/* ===== FOOTER ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-text { font-size: 0.8rem; color: var(--text-muted); }
.footer-text a { color: var(--neon); text-decoration: none; }
.footer-text a:hover { opacity: 1; }
.footer-crown { color: var(--neon); opacity: 0.3; }

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
  .stagger-1 { transition-delay: 0.1s; }
  .stagger-2 { transition-delay: 0.2s; }
  .stagger-3 { transition-delay: 0.3s; }
  .stagger-4 { transition-delay: 0.4s; }
  @keyframes neon-pulse { 0%, 100% { filter: drop-shadow(0 0 10px rgba(118,255,3,0.3)); } 50% { filter: drop-shadow(0 0 25px rgba(118,255,3,0.6)); } }
  .hero-club-logo { animation: neon-pulse 4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; } }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* ===== ZILLA SPONSORED BAR ===== */
.zilla-bar { padding: 24px 0; background: linear-gradient(135deg, var(--dark-green), var(--bg)); border-top: 1px solid rgba(118, 255, 3, 0.1); border-bottom: 1px solid rgba(118, 255, 3, 0.1); }
.zilla-bar-inner { display: flex; align-items: center; justify-content: center; gap: 12px; }
.zilla-bar-label { font-family: 'Barlow', sans-serif; font-size: 0.8rem; font-weight: 400; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.zilla-bar-logo { width: 32px; height: 32px; object-fit: contain; filter: brightness(1.1); }
.zilla-bar-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--neon); text-transform: uppercase; letter-spacing: 0.06em; }


/* ==========================================================================
   SUB-PAGE EXTENSIONS
   Styles for detail/list pages not in the mockup
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Headers
   about, players_list, matches_list, news_list, gallery_list, contact
   -------------------------------------------------------------------------- */
.page-header {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    overflow: hidden;
}

.page-header__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, var(--dark-green) 0%, var(--bg) 100%);
    z-index: 0;
}

.page-header__title {
    position: relative;
    z-index: 1;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 12px;
    display: inline-block;
}

.page-header__title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--neon);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Section (sub-page layouts)
   -------------------------------------------------------------------------- */
.section { padding: 80px 0; }
.section--alt { background-color: var(--surface-alt); }

.section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 20px;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}

.section__heading,
.section__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading);
    padding-left: 16px;
    border-left: 4px solid var(--neon);
    margin-bottom: 32px;
}

.section__more {
    color: var(--neon);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.section__more:hover { gap: 10px; opacity: 1; }

/* Section header (about.html) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}

.section-header__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading);
    padding-left: 16px;
    border-left: 4px solid var(--neon);
}

.section-header__link {
    color: var(--neon);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.section-header__link:hover { gap: 10px; opacity: 1; }

/* --------------------------------------------------------------------------
   Match Header (match_detail.html)
   -------------------------------------------------------------------------- */
.match-header {
    padding: 100px 0 40px;
    background: linear-gradient(180deg, var(--dark-green) 0%, var(--bg) 100%);
}

.match-header__inner { text-align: center; }

.match-header__date {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.match-header__teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
}

.match-header__team { flex: 1; text-align: center; }

.match-header__team-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading);
}

.match-header__score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-header__score-home,
.match-header__score-away {
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--text-heading);
    line-height: 1;
}

.match-header__score--win { color: var(--neon); }

.match-header__score-sep {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-muted);
}

.match-header__vs {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.match-header__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.match-header__location {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   Player Hero (player_detail.html)
   -------------------------------------------------------------------------- */
.player-hero { padding: 0; }

.player-hero__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: start;
    padding: 40px 0;
}

.player-hero__photo {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--surface);
}

.player-hero__photo img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.player-hero__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--surface-alt);
    font-family: 'Oswald', sans-serif;
    font-size: 4rem; font-weight: 700;
    color: var(--text-muted);
}

.player-hero__info { padding-top: 16px; }

.player-hero__number {
    font-family: 'Oswald', sans-serif;
    font-weight: 900; font-size: 6rem;
    color: var(--neon); opacity: 0.2;
    line-height: 1; margin-bottom: 8px;
}

.player-hero__name {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem; font-weight: 700;
    color: var(--text-heading); text-transform: uppercase;
    margin-bottom: 8px;
}

.player-hero__position {
    color: var(--text-muted);
    font-size: 1rem; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block; margin-bottom: 16px;
}

.player-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px; margin-top: 24px;
}

.player-hero__meta-item {
    display: flex; flex-direction: column; gap: 4px;
}

.player-hero__meta-label {
    color: var(--text-muted);
    font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.04em;
}

.player-hero__meta-value {
    color: var(--text-heading);
    font-size: 1rem; font-weight: 500;
}

/* --------------------------------------------------------------------------
   Stat Cards (player_detail.html)
   -------------------------------------------------------------------------- */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.stat-card__value {
    font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 2rem;
    color: var(--neon);
    line-height: 1.2; margin-bottom: 6px;
}

.stat-card__label {
    color: var(--text-muted);
    font-size: 0.8rem; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Stats Row / Stat Block (about.html)
   -------------------------------------------------------------------------- */
.stats-row-block {
    display: flex; gap: 32px;
    justify-content: center; padding: 40px 0;
}

.stat-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 32px;
    text-align: center; min-width: 160px;
}

.stat-block__value {
    font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 2rem;
    color: var(--neon); display: block;
    margin-bottom: 4px;
}

.stat-block__label {
    color: var(--text-muted);
    font-size: 0.8rem; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Data Table (player_detail, match_detail)
   -------------------------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface);
}

.table-wrap .data-table { border-radius: 0; }

.data-table th {
    color: var(--text-muted);
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 12px;
    border-bottom: 2px solid var(--border);
    text-align: left; white-space: nowrap;
    background: var(--surface);
}

.data-table td {
    color: var(--text);
    font-size: 0.9rem;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}

.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--surface-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table--boxscore { font-variant-numeric: tabular-nums; }

.data-table__player-col {
    min-width: 160px;
    font-weight: 600;
    color: var(--text-heading);
}

.data-table__player-link {
    color: var(--text-heading);
    text-decoration: none;
    transition: color 0.2s ease;
}

.data-table__player-link:hover { color: var(--neon); opacity: 1; }

.data-table__totals td {
    font-weight: 700;
    border-top: 2px solid var(--neon);
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   Filter Bar (players_list, matches_list, news_list)
   -------------------------------------------------------------------------- */
.filter-bar { padding: 16px 0; }

.filter-bar__inner {
    display: flex; gap: 10px; flex-wrap: wrap;
}

.filter-bar__inner--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px; flex-wrap: wrap;
}

.filter-bar__item {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Barlow', sans-serif;
    font-size: 0.8rem; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-bar__item:hover {
    color: var(--neon);
    border-color: rgba(118, 255, 3, 0.2);
    opacity: 1;
}

.filter-bar__item--active {
    background: var(--neon);
    color: #080808;
    border-color: var(--neon);
    font-weight: 600;
}

.filter-bar__item--active:hover { color: #080808; }

.filter-bar__dropdown { display: flex; align-items: center; }

.filter-bar__select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 16px;
    color: var(--text-heading);
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236a7a6a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.filter-bar__select:focus {
    border-color: var(--neon);
    outline: none;
}

.filter-bar__tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   News Card — sub-page variants
   Uses same .news-card + .news-thumb + .news-body classes as home
   Additional modifiers for list/detail pages
   -------------------------------------------------------------------------- */
.news-grid--related {
    grid-template-columns: repeat(3, 1fr);
}

/* News card image with badge at bottom (news_list) */
.news-card__badge {
    position: absolute;
    bottom: 10px; left: 10px;
    background: var(--neon);
    color: #080808;
    font-family: 'Oswald', sans-serif;
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Article (news_detail.html)
   -------------------------------------------------------------------------- */
.article { padding: 0; }

.article__header {
    padding-top: 20px;
    margin-bottom: 32px;
}

.article__badge {
    display: inline-block;
    background: var(--neon-glow);
    color: var(--neon);
    font-family: 'Oswald', sans-serif;
    font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.article__title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem; font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 16px;
    line-height: 1.2;
}

.article__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
}

.article__meta-sep { color: var(--text-muted); }

.article__image {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.article__image img { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   Prose (rich text content in details)
   -------------------------------------------------------------------------- */
.prose {
    color: var(--text);
    font-size: 1rem; line-height: 1.8;
    max-width: 800px;
}

.prose p { margin-bottom: 1.2rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 2rem; margin-bottom: 0.8rem; }
.prose a { color: var(--neon); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose img { border-radius: 8px; margin: 1.5rem 0; }

/* --------------------------------------------------------------------------
   Gallery Grid (gallery_list.html)
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --------------------------------------------------------------------------
   Gallery Card (gallery_list.html)
   -------------------------------------------------------------------------- */
.gallery-card {
    position: relative; overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    background: var(--surface);
}

.gallery-card:hover {
    border-color: rgba(118, 255, 3, 0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px var(--neon-glow);
    transform: translateY(-4px); opacity: 1;
}

.gallery-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gallery-card__image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card__image img { transform: scale(1.03); }

.gallery-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-alt);
    color: var(--text-muted);
}

.gallery-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 12px;
}

.gallery-card__count {
    background: rgba(0,0,0,0.7);
    color: var(--text-heading);
    font-size: 0.8rem; font-weight: 600;
    padding: 4px 10px; border-radius: 4px;
    backdrop-filter: blur(4px);
    display: inline-flex; align-items: center; gap: 6px;
}

.gallery-card__body { padding: 16px; }

.gallery-card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem; color: var(--text-heading);
    text-transform: uppercase; font-weight: 600;
    margin-bottom: 4px;
}

.gallery-card__date {
    color: var(--text-muted); font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Gallery Header (gallery_detail.html)
   -------------------------------------------------------------------------- */
.gallery-header { margin-bottom: 32px; }

.gallery-header__title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem; font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.gallery-header__desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 8px;
    max-width: 600px;
}

.gallery-header__date {
    color: var(--text-muted); font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Photo Grid (gallery_detail, player_detail, match_detail)
   -------------------------------------------------------------------------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.photo-grid--masonry {
    display: block;
    column-count: 3; column-gap: 16px;
}

.photo-grid--masonry .photo-grid__item {
    break-inside: avoid;
    margin-bottom: 16px;
}

.photo-grid__item {
    border-radius: 8px; overflow: hidden;
    cursor: pointer; position: relative;
}

.photo-grid__item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}

.photo-grid__item:hover::after { opacity: 1; }

.photo-grid__item img {
    width: 100%; display: block;
    transition: transform 0.3s ease;
}

.photo-grid__item:hover img { transform: scale(1.03); }

.photo-grid__caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 12px;
    color: var(--text-heading);
    font-size: 0.85rem; z-index: 1;
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
}

.photo-grid__item:hover .photo-grid__caption {
    opacity: 1; transform: translateY(0);
}

/* --------------------------------------------------------------------------
   About Content (about.html)
   -------------------------------------------------------------------------- */
.about-content {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p { margin-bottom: 1.2rem; }

/* --------------------------------------------------------------------------
   Form Styles (shared across pages)
   -------------------------------------------------------------------------- */
.form__group { margin-bottom: 20px; }

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__label {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.form__input,
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="url"],
.form select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form__input::placeholder,
.form input::placeholder { color: var(--text-muted); }

.form__input:focus,
.form input:focus,
.form select:focus {
    border-color: var(--neon);
    outline: none;
    box-shadow: 0 0 0 3px var(--neon-glow);
}

.form__textarea,
.form textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.2s;
}

.form__textarea::placeholder,
.form textarea::placeholder { color: var(--text-muted); }

.form__textarea:focus,
.form textarea:focus {
    border-color: var(--neon);
    outline: none;
    box-shadow: 0 0 0 3px var(--neon-glow);
}

.form__error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.form__submit {
    background: var(--neon);
    color: #080808;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s;
}

.form__submit:hover {
    box-shadow: 0 0 30px var(--neon-glow-strong);
    transform: translateY(-2px);
}

.form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Form Message (AJAX contact form response)
   -------------------------------------------------------------------------- */
.form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.form-message--success {
    background: rgba(118, 255, 3, 0.1);
    border: 1px solid rgba(118, 255, 3, 0.3);
    color: var(--neon);
}

.form-message--error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--danger);
}

/* --------------------------------------------------------------------------
   Flash Messages (base.html)
   -------------------------------------------------------------------------- */
.flash-messages {
    position: fixed;
    top: 80px; right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.9rem; font-weight: 500;
    display: flex; align-items: center; gap: 12px;
    min-width: 280px; max-width: 420px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: flash-slide-in 0.3s ease;
    border: 1px solid;
}

@keyframes flash-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.flash--success { background: rgba(118, 255, 3, 0.1); border-color: rgba(118, 255, 3, 0.3); color: var(--neon); }
.flash--error { background: rgba(255, 68, 68, 0.1); border-color: rgba(255, 68, 68, 0.3); color: var(--danger); }
.flash--info { background: rgba(255, 255, 255, 0.05); border-color: var(--border); color: var(--text); }
.flash--warning { background: rgba(255, 179, 0, 0.1); border-color: rgba(255, 179, 0, 0.3); color: var(--warning); }

.flash__text { flex: 1; }

.flash__close {
    background: none; border: none;
    color: inherit; font-size: 1.2rem;
    cursor: pointer; padding: 0;
    margin-left: auto; opacity: 0.6;
    transition: opacity 0.2s; line-height: 1;
}

.flash__close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Alert (contact.html — Django messages)
   -------------------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem; font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert--success { background: rgba(118, 255, 3, 0.1); border-color: rgba(118, 255, 3, 0.3); color: var(--neon); }
.alert--error { background: rgba(255, 68, 68, 0.1); border-color: rgba(255, 68, 68, 0.3); color: var(--danger); }
.alert--info { background: rgba(255, 255, 255, 0.05); border-color: var(--border); color: var(--text); }
.alert--warning { background: rgba(255, 179, 0, 0.1); border-color: rgba(255, 179, 0, 0.3); color: var(--warning); }

/* --------------------------------------------------------------------------
   Breadcrumb (detail pages)
   -------------------------------------------------------------------------- */
.breadcrumb {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 90px;
    padding-bottom: 16px;
}

.breadcrumb__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb__link:hover { color: var(--neon); opacity: 1; }
.breadcrumb__sep { color: var(--text-muted); margin: 0 8px; }
.breadcrumb__current { color: var(--text); }

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 3px;
}

.badge--neon { background: var(--neon-glow); color: var(--neon); }
.badge--win { background: rgba(118, 255, 3, 0.12); color: var(--neon); }
.badge--loss { background: rgba(255, 68, 68, 0.12); color: var(--danger); }
.badge--draw { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.badge--scheduled { color: var(--text-muted); background: rgba(255, 255, 255, 0.05); }
.badge--captain { background: var(--neon-glow); color: var(--neon); padding: 6px 14px; font-size: 0.8rem; margin-top: 12px; }

/* --------------------------------------------------------------------------
   Lightbox (gallery_detail.html)
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed; inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox--open { opacity: 1; visibility: visible; }

.lightbox__content {
    display: flex; flex-direction: column;
    align-items: center; gap: 16px;
    max-width: 90vw; max-height: 90vh;
}

.lightbox__img {
    max-width: 90vw; max-height: 80vh;
    object-fit: contain; border-radius: 4px;
}

.lightbox__caption {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    max-width: 600px;
}

.lightbox__close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-heading);
    font-size: 2rem; cursor: pointer;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.7; transition: opacity 0.2s;
}

.lightbox__close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state__icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state__text {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Back Link (detail pages)
   -------------------------------------------------------------------------- */
.back-link {
    display: inline-flex;
    align-items: center; gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 24px 0 48px;
    transition: color 0.2s, gap 0.2s;
}

.back-link:hover { color: var(--neon); gap: 12px; opacity: 1; }

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: var(--neon-glow);
    text-align: center;
    padding: 60px 20px;
    border-radius: 12px;
    margin: 40px 0;
}

.cta-section__title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem; font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.cta-section__text {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 24px;
}

.cta-section__btn {
    display: inline-block;
    background: var(--neon); color: #080808;
    font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s;
}

.cta-section__btn:hover {
    box-shadow: 0 0 30px var(--neon-glow-strong);
    transform: translateY(-2px);
    color: #080808;
}

/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */
.placeholder {
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    color: var(--neon);
    font-size: 2rem;
    width: 100%; height: 100%;
    min-height: 200px;
}

.placeholder--sm { min-height: 120px; font-size: 1.5rem; }
.placeholder__icon { opacity: 0.4; }

/* --------------------------------------------------------------------------
   Scroll Reveal (legacy, still used in some sub-pages)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   Responsive — Sub-pages
   ========================================================================== */

@media (max-width: 1024px) {
    .news-grid--related { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .player-hero__inner { gap: 32px; }
    .player-hero__photo { max-width: 320px; }
    .player-hero__number { font-size: 4.5rem; }
    .player-hero__name { font-size: 2rem; }

    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-grid--masonry { column-count: 2; }

    .match-header__team-name { font-size: 1.4rem; }
    .match-header__score-home,
    .match-header__score-away { font-size: 3rem; }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }

    .section__header {
        flex-direction: column;
        gap: 12px;
    }

    .section__heading,
    .section__title { font-size: 1.5rem; }

    .section-header {
        flex-direction: column;
        gap: 12px;
    }

    /* Page header */
    .page-header { padding: 90px 0 40px; }
    .page-header__title { font-size: 1.8rem; }

    /* Player hero */
    .player-hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .player-hero__photo { max-width: 100%; aspect-ratio: 4 / 3; }
    .player-hero__number { font-size: 3.5rem; }
    .player-hero__name { font-size: 1.8rem; }

    /* Match header */
    .match-header__teams { flex-direction: column; gap: 16px; }
    .match-header__team-name { font-size: 1.2rem; }
    .match-header__score-home,
    .match-header__score-away { font-size: 2.5rem; }

    /* Grids */
    .news-grid--related { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-grid--masonry { column-count: 2; }

    /* Form */
    .form__submit { width: 100%; }
    .form__row { grid-template-columns: 1fr; }

    /* Stats */
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
    .stats-row-block { flex-wrap: wrap; gap: 16px; }

    /* Filter bar */
    .filter-bar__inner--split {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar__item { font-size: 0.78rem; padding: 6px 14px; }

    /* Breadcrumb */
    .breadcrumb { padding-top: 80px; font-size: 0.8rem; }

    /* Flash */
    .flash-messages { left: 16px; right: 16px; }
    .flash { min-width: auto; max-width: none; }

    /* Article */
    .article__title { font-size: 1.6rem; }

    /* CTA */
    .cta-section { padding: 40px 20px; }
    .cta-section__title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container,
    .container--narrow,
    .section__container { padding-inline: 16px; }

    .page-header__title { font-size: 1.5rem; }

    .section__heading,
    .section__title { font-size: 1.3rem; }

    .player-hero__number { font-size: 2.5rem; }
    .player-hero__name { font-size: 1.5rem; }
    .player-hero__meta { grid-template-columns: 1fr; }

    .stats-cards { grid-template-columns: 1fr 1fr; gap: 12px; }

    .match-header__score-home,
    .match-header__score-away { font-size: 2rem; }

    .photo-grid { grid-template-columns: 1fr; }
    .photo-grid--masonry { column-count: 1; }

    .cta-section__btn { width: 100%; text-align: center; display: block; }
}


/* ==========================================================================
   Utilities
   ========================================================================== */
.text-neon { color: var(--neon); }
.text-muted { color: var(--text-muted); }
.text-heading { color: var(--text-heading); }
.text-center { text-align: center; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}


/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .nav,
    .nav-hamburger,
    .lightbox,
    .flash-messages { display: none !important; }

    body { background: #fff; color: #000; }

    .hero { min-height: auto; padding: 20px 0; }
    .hero-bg, .hero-geometry { display: none; }

    .stat-card,
    .player-card,
    .news-card,
    .match-row,
    .gallery-card,
    .gallery-match { border-color: #ccc; box-shadow: none; }
}