:root {
  --primary: #003087;
  --accent: #FFD700;
  --bg: #0a0a1a;
  --surface: #12122a;
  --surface2: #1a1a35;
  --text: #f0f0f0;
  --text-muted: #8888aa;
  --success: #00c853;
  --border: rgba(255,255,255,0.08);
  --sweden: #006aa7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  background: rgba(10,10,26,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
  padding: 1rem 0;
  white-space: nowrap;
  margin-right: 1rem;
}

.nav-logo span { color: #fff; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(255,215,0,0.08);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  padding-left: 1rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #001a5e 0%, #003087 45%, #1a0040 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='[w3.org](http://www.w3.org/2000/svg)'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
}

.hero h1 .highlight { color: var(--accent); }

.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
}

.hero-stat .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* ── COUNTDOWN ── */
.countdown-bar {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,215,0,0.15);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  position: relative;
}

.countdown-bar strong { color: var(--accent); }

/* ── QUICK NAV CARDS ── */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: -2rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.qn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qn-card:hover {
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-3px);
  background: var(--surface2);
}

.qn-icon { font-size: 1.8rem; }
.qn-label { font-size: 0.82rem; font-weight: 700; }
.qn-sub { font-size: 0.72rem; color: var(--text-muted); }

/* ── SECTIONS ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── SWEDEN SPOTLIGHT ── */
.sweden-spotlight {
  background: linear-gradient(135deg, rgba(0,106,167,0.25) 0%, rgba(254,205,0,0.1) 100%);
  border: 1px solid rgba(0,106,167,0.4);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.sweden-spotlight h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  grid-column: 1 / -1;
}

.sweden-match-card {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.sweden-match-card .match-date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.sweden-match-card .match-teams {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.sweden-match-card .match-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── SCHEDULE TABLE ── */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.schedule-table th {
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.schedule-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: rgba(255,255,255,0.02); }

.date-header td {
  background: var(--surface2);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
}

.sweden-row td { background: rgba(0,106,167,0.1); }
.sweden-row td:first-child { border-left: 3px solid var(--sweden); }

.time-cell { font-weight: 700; color: var(--accent); white-space: nowrap; }
.match-name { font-weight: 700; }
.match-group { color: var(--text-muted); font-size: 0.75rem; }

.ch-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.ch-svt { background: #1a6bcc; color: #fff; }
.ch-tv4 { background: #e8001e; color: #fff; }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── GROUPS GRID ── */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.group-header {
  background: var(--primary);
  padding: 0.6rem 1rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.group-header.sweden { background: #1a5c00; }

.group-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.group-card table th {
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 0.35rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.group-card table th:first-child { text-align: left; }

.group-card table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.group-card table td:first-child { text-align: left; font-weight: 600; }
.group-card table tr:last-child td { border-bottom: none; }
.sweden-row-g td { color: #4db8ff; font-weight: 700; }

/* ── STREAM CARDS ── */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.stream-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s;
}

.stream-card:hover {
  border-color: rgba(255,215,0,0.25);
  transform: translateY(-2px);
}

.stream-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem; flex-shrink: 0;
}

.svt-bg { background: #1a6bcc; color: #fff; }
.tv4-bg { background: #e8001e; color: #fff; }
.sr-bg  { background: #222; color: #fff; font-size: 1.2rem; }

.stream-head { display: flex; align-items: center; gap: 0.9rem; }
.stream-head h3 { font-size: 0.95rem; font-weight: 700; }
.stream-head p { font-size: 0.78rem; color: var(--text-muted); }

.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}

.badge-free { background: rgba(0,200,83,0.15); color: #00c853; border: 1px solid rgba(0,200,83,0.3); }
.badge-paid { background: rgba(255,165,0,0.15); color: #ffa500; border: 1px solid rgba(255,165,0,0.3); }

.stream-features { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.stream-features li { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.stream-features li::before { content: '✓'; color: #00c853; font-weight: 800; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #ffe94d; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-green { background: #00a854; color: #fff; }
.btn-green:hover { background: #00c863; }

/* ── STADIUM GRID ── */
.stadium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

.stadium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.stadium-card:hover { border-color: rgba(255,215,0,0.2); }
.stadium-country { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.stadium-name { font-size: 0.98rem; font-weight: 700; }
.stadium-city { font-size: 0.82rem; color: var(--text-muted); }
.stadium-cap { font-size: 0.78rem; color: var(--text-muted); }
.stadium-matches-list { font-size: 0.76rem; background: var(--surface2); padding: 0.4rem 0.7rem; border-radius: 6px; color: var(--text-muted); line-height: 1.5; }

/* ── ODDS / AFFILIATE ── */
.odds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.odds-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s;
}

.odds-card:hover {
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-2px);
}

.odds-logo {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}

.odds-features { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.odds-features li { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.odds-features li::before { content: '⚡'; }

.odds-disclaimer {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1.5rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

footer strong { color: var(--text); }
footer a { color: var(--text-muted); border-bottom: 1px solid var(--border); }
footer a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .sweden-spotlight { grid-template-columns: 1fr; }
  .sweden-spotlight h2 { grid-column: 1; }
  .quick-nav { grid-template-columns: repeat(3, 1fr); }
  .schedule-table th:nth-child(4),
  .schedule-table td:nth-child(4) { display: none; }
}

@media (max-width: 480px) {
  .quick-nav { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.2rem; }
}
