:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border: #222222;
  --accent: #c8ff00;
  --accent2: #ff3d00;
  --text: #f0f0f0;
  --muted: #666;
  --muted2: #444;
  --win: #22c55e;
  --draw: #f59e0b;
  --loss: #ef4444;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: var(--font-display); font-size: 28px; letter-spacing: 1px;
  color: var(--text); text-decoration: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.logo span { color: var(--accent); }

.search-bar {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 14px; gap: 8px;
  flex: 1; max-width: 400px; margin: 0 24px;
  transition: border-color 0.2s;
  position: relative;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body);
  font-size: 14px; width: 100%; height: 38px;
}
.search-bar input::placeholder { color: var(--muted); }

.search-results {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 10px 10px;
  overflow: hidden; z-index: 200; display: none;
}
.search-results.active { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  cursor: pointer; transition: background 0.15s;
  text-decoration: none; color: inherit;
}
.search-result-item:hover { background: var(--surface2); }
.search-result-item img { width: 28px; height: 28px; object-fit: contain; }
.search-result-item span { font-size: 14px; }

/* MAIN */
main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.page { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* TICKER */
.ticker-wrap {
  background: var(--accent); overflow: hidden;
  height: 36px; display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: ticker 35s linear infinite; padding-left: 100%;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-display); font-size: 14px;
  letter-spacing: 1px; color: var(--bg); cursor: pointer;
  text-decoration: none; transition: opacity 0.2s;
}
.ticker-item:hover { opacity: 0.7; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTIONS */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 40px 0 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.section-title { font-family: var(--font-display); font-size: 32px; letter-spacing: 1px; }
.section-badge { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.date-strip { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-top: 28px; margin-bottom: -8px; }

/* MATCH CARD */
.league-group { margin-bottom: 20px; }
.league-label {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 12px; font-family: var(--font-mono); letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase; border-top: 1px solid var(--border);
}
.league-label img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0.7); }

.match-card {
  display: grid; grid-template-columns: 1fr 130px 1fr; align-items: center;
  padding: 14px 16px; background: var(--surface); border: 1px solid transparent;
  border-radius: 4px; margin-bottom: 2px; cursor: pointer; transition: all 0.15s;
  text-decoration: none; color: inherit;
}
.match-card:hover { border-color: var(--border); background: var(--surface2); transform: translateX(2px); }

.team-side { display: flex; align-items: center; gap: 12px; }
.team-side.right { flex-direction: row-reverse; text-align: right; }
.team-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.team-name { font-weight: 500; font-size: 15px; }
.team-name.featured { color: var(--accent); }

.match-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score-display { font-family: var(--font-display); font-size: 26px; letter-spacing: 4px; line-height: 1; }
.match-status {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 20px; text-transform: uppercase;
}
.status-live { background: rgba(239,68,68,0.15); color: var(--loss); animation: pulse 1.5s infinite; }
.status-ft { background: var(--surface2); color: var(--muted); }
.status-ns { background: rgba(200,255,0,0.1); color: var(--accent); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* CLUBS GRID */
.clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.club-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; transition: all 0.2s; text-decoration: none; color: inherit;
}
.club-card:hover { border-color: var(--accent); background: var(--surface2); transform: translateY(-2px); }
.club-card img { width: 56px; height: 56px; object-fit: contain; }
.club-card-name { font-size: 13px; font-weight: 500; text-align: center; line-height: 1.3; }

/* CLUB PAGE HERO */
.club-hero {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 32px; padding: 40px 0 32px; border-bottom: 1px solid var(--border);
}
.club-hero-logo { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(200,255,0,0.2)); }
.club-hero-info h1 { font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: 2px; }
.club-hero-meta { display: flex; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.meta-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.meta-chip strong { color: var(--text); font-weight: 500; }

/* NEXT MATCH */
.next-match-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 32px; margin: 32px 0; position: relative; overflow: hidden;
}
.next-match-card::before { content:''; position:absolute; top:0;left:0;right:0; height:2px; background:var(--accent); }
.next-match-label { font-family:var(--font-mono); font-size:11px; letter-spacing:3px; color:var(--accent); text-transform:uppercase; margin-bottom:20px; }
.next-match-teams { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; margin-bottom:20px; }
.next-team { display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; }
.next-team img { width:72px; height:72px; object-fit:contain; }
.next-team-name { font-family:var(--font-display); font-size:22px; letter-spacing:1px; }
.vs-divider { font-family:var(--font-display); font-size:36px; color:var(--border); letter-spacing:4px; }

/* COUNTDOWN */
.countdown { display:flex; justify-content:center; gap:16px; margin-top:8px; }
.countdown-unit { display:flex; flex-direction:column; align-items:center; gap:4px; }
.countdown-num {
  font-family:var(--font-display); font-size:40px; line-height:1; color:var(--accent);
  min-width:60px; text-align:center; background:var(--surface2); border-radius:6px; padding:4px 8px;
}
.countdown-label { font-family:var(--font-mono); font-size:10px; letter-spacing:2px; color:var(--muted); text-transform:uppercase; }

/* FORM */
.form-strip { display:flex; gap:4px; margin-top:4px; }
.form-dot { width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; font-family:var(--font-mono); }
.form-dot.W { background:var(--win); color:#000; }
.form-dot.D { background:var(--draw); color:#000; }
.form-dot.L { background:var(--loss); color:#fff; }

/* TABLES */
.fixtures-table { width:100%; border-collapse:collapse; margin-top:8px; }
.fixtures-table thead tr { border-bottom:1px solid var(--border); }
.fixtures-table th { font-family:var(--font-mono); font-size:10px; letter-spacing:2px; color:var(--muted); text-transform:uppercase; text-align:left; padding:8px 12px; font-weight:400; }
.fixtures-table td { padding:12px 12px; border-bottom:1px solid rgba(255,255,255,0.04); font-size:14px; }
.fixtures-table tr:hover td { background:var(--surface2); }
.score-cell { font-family:var(--font-display); font-size:18px; letter-spacing:3px; color:var(--muted); }
.score-cell.win { color:var(--win); }
.score-cell.loss { color:var(--loss); }
.score-cell.draw { color:var(--draw); }
.date-cell { font-family:var(--font-mono); font-size:12px; color:var(--muted); white-space:nowrap; }

/* TABS */
.tabs { display:flex; border-bottom:1px solid var(--border); margin-bottom:24px; }
.tab {
  font-family:var(--font-mono); font-size:12px; letter-spacing:2px; text-transform:uppercase;
  padding:12px 20px; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent;
  margin-bottom:-1px; transition:all 0.15s; user-select:none;
}
.tab.active { color:var(--accent); border-bottom-color:var(--accent); }
.tab:hover:not(.active) { color:var(--text); }
.tab-content { display:none; }
.tab-content.active { display:block; }

/* STATS */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; margin:24px 0; }
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:16px; text-align:center; }
.stat-num { font-family:var(--font-display); font-size:36px; color:var(--accent); line-height:1; }
.stat-label { font-family:var(--font-mono); font-size:10px; color:var(--muted); letter-spacing:1.5px; text-transform:uppercase; margin-top:6px; }

/* BUTTONS */
.btn {
  background:var(--accent); color:var(--bg); border:none; padding:8px 16px;
  border-radius:6px; font-family:var(--font-body); font-size:13px; font-weight:700;
  cursor:pointer; transition:opacity 0.15s; white-space:nowrap;
}
.btn:hover { opacity:0.85; }

/* ERROR */
.error-box { background:rgba(239,68,68,0.08); border:1px solid rgba(239,68,68,0.3); border-radius:8px; padding:20px; margin:20px 0; font-size:14px; color:#fca5a5; font-family:var(--font-mono); }

/* FOOTER */
footer { border-top:1px solid var(--border); padding:40px 24px; margin-top:80px; text-align:center; }
.footer-logo { font-family:var(--font-display); font-size:36px; margin-bottom:12px; color:var(--muted2); }
.footer-logo span { color:var(--accent); }
.footer-links { display:flex; justify-content:center; gap:24px; flex-wrap:wrap; }
.footer-link {
  font-family:var(--font-mono); font-size:11px; letter-spacing:2px; text-transform:uppercase;
  color:var(--muted); cursor:pointer; transition:color 0.15s; text-decoration:none;
}
.footer-link:hover { color:var(--text); }

/* RESPONSIVE */
@media (max-width:768px) {
  .search-bar { margin:0 12px; max-width:none; }
  .club-hero { grid-template-columns:1fr; text-align:center; gap:16px; }
  .club-hero-logo { margin:0 auto; }
  .club-hero-meta { justify-content:center; }
  .club-hero-info h1 { font-size:38px; }
  .next-match-teams { gap:12px; }
  .next-team img { width:52px; height:52px; }
  .countdown-num { font-size:28px; min-width:44px; }
  .team-name { font-size:13px; }
  header { padding: 0 16px; }
  .form-strip { justify-content: center; }
  .search-results { width: 90vw; left: 50%; }
}
