:root {
  --bg: #0a0a0f;
  --surface: #141420;
  --surface-hover: #1c1c2e;
  --primary: #f5a623;
  --accent: #00d4ff;
  --text: #ffffff;
  --text-secondary: #a0a0b0;
  --border: #1e1e30;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.06); }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
}

.page-header h1 { font-size: 22px; font-weight: 700; }

.live-indicator {
  font-size: 13px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.match-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--border);
}

.match-card:hover { background: var(--surface-hover); }

.match-tournament {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.team { font-size: 15px; font-weight: 600; flex: 1; }
.team-away { text-align: right; }

.match-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  padding: 0 12px;
  min-width: 48px;
  text-align: center;
}

.match-time { font-size: 12px; color: var(--text-secondary); }

.match-odds { display: flex; gap: 8px; }

.odd-badge {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.odd-badge span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.match-status { font-size: 12px; color: var(--accent); font-weight: 600; }

.back-link {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 16px 0;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.detail-header { text-align: center; padding: 24px 0; }

.detail-tournament {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.detail-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.detail-team { font-size: 20px; font-weight: 700; }
.detail-score { font-size: 28px; font-weight: 800; color: var(--primary); }
.detail-time { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }

.odds-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.odds-section h3 {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.odds-row { display: flex; gap: 8px; }

.odds-cell {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

.odds-cell .label { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.odds-cell .value { font-size: 18px; font-weight: 700; }

.result-controls { display: flex; gap: 8px; margin-bottom: 20px; }

.input {
  flex: 1;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.input:focus { outline: none; border-color: var(--primary); }

.btn {
  padding: 10px 20px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.loading, .empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.page { display: none; }
.page.active { display: block; }

@media (max-width: 480px) {
  .detail-teams { flex-direction: column; gap: 12px; }
  .result-controls { flex-direction: column; }
}
