:root {
    --bg: #0a0a0a;
    --bg2: #111;
    --bg3: #1a1a1a;
    --surface: #222;
    --border: #333;
    --text: #e0e0e0;
    --text2: #999;
    --accent: #d4af37;
    --accent2: #ff6b6b;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }

.nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(10,10,10,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--accent); text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 13px; letter-spacing: .5px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.hero {
    padding: 160px 24px 100px; text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(212,175,55,.03) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; letter-spacing: 4px; margin-bottom: 16px; }
.hero-sub { color: var(--text2); font-size: 18px; margin-bottom: 40px; }
.search-box { display: flex; max-width: 500px; margin: 0 auto; gap: 0; }
.search-box input {
    flex: 1; padding: 14px 20px; border: 1px solid var(--border); border-right: none;
    border-radius: var(--radius) 0 0 var(--radius); background: var(--bg2);
    color: var(--text); font-size: 15px; outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box button {
    padding: 14px 24px; border: 1px solid var(--accent); background: var(--accent); color: #000;
    border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-weight: 600; font-size: 14px;
}
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 48px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 300; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 2px; }

.section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section.alt { background: var(--bg2); max-width: 100%; padding: 80px 24px; }
.section.alt > .section-header, .section.alt > .club-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-header h2 { font-size: 24px; font-weight: 300; letter-spacing: 2px; }

.era-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.era-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 16px; text-align: center; cursor: pointer; transition: all .2s;
}
.era-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.era-year { display: block; font-size: 18px; font-weight: 600; color: var(--accent); }
.era-desc { display: block; font-size: 12px; color: var(--text2); margin-top: 4px; }

.filter-bar { display: flex; gap: 12px; }
.filter-bar select {
    padding: 8px 12px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text); font-size: 13px; cursor: pointer; outline: none;
}
.filter-bar select:focus { border-color: var(--accent); }

.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.club-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: all .2s; cursor: pointer;
}
.club-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.club-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.club-card .meta { color: var(--text2); font-size: 13px; display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.club-card .meta span { display: flex; align-items: center; gap: 4px; }
.club-card .desc { color: var(--text2); font-size: 14px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.status-badge.active { background: rgba(76,175,80,.15); color: #4caf50; }
.status-badge.closed { background: rgba(244,67,54,.15); color: #f44336; }
.status-badge.renamed { background: rgba(255,152,0,.15); color: #ff9800; }
.era-tag {
    display: inline-block; padding: 2px 8px; background: rgba(212,175,55,.1); color: var(--accent);
    border-radius: 4px; font-size: 11px; margin-right: 4px;
}

.cta-box {
    text-align: center; max-width: 520px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 48px 32px;
}
.cta-box h2 { font-size: 24px; font-weight: 300; letter-spacing: 2px; margin-bottom: 12px; }
.cta-box p { color: var(--text2); margin-bottom: 24px; }
.cta-form { display: flex; flex-direction: column; gap: 12px; }
.cta-form input {
    padding: 12px 16px; background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text); font-size: 14px; outline: none;
}
.cta-form input:focus { border-color: var(--accent); }
.cta-form button {
    padding: 12px; background: var(--accent); color: #000; border: none;
    border-radius: var(--radius); font-weight: 600; cursor: pointer; font-size: 14px;
}
.cta-form button:hover { opacity: .9; }
.cta-disclaimer { font-size: 11px; color: var(--text2); margin-top: 12px; }
.hidden { display: none; }
#opt-in-success { color: #4caf50; margin-top: 12px; font-size: 14px; }

.loading { color: var(--text2); text-align: center; padding: 40px; grid-column: 1 / -1; }

.footer {
    background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; color: var(--accent); }
.footer-col p { color: var(--text2); font-size: 13px; }
.footer-col a { display: block; color: var(--text2); text-decoration: none; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { text-align: center; color: var(--text2); font-size: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

@media (max-width: 640px) {
    .hero-stats { gap: 24px; }
    .club-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; width: 100%; }
    .filter-bar select { width: 100%; }
    .nav-links { display: none; }
}