:root {
  --green: #00703c;
  --green-dark: #004d29;
  --green-deep: #00331b;
  --yellow: #ffd200;
  --ink: #14201a;
  --muted: #5b6b62;
  --bg: #ffffff;
  --bg-alt: #f3f6f2;
  --line: #dde5df;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 51, 27, 0.1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
a { color: inherit; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

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

/* Test banner */
.test-banner {
  background: var(--yellow);
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.crest {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50% 50% 46% 46%;
  background: var(--yellow); color: var(--green-deep);
  font-weight: 900; font-size: 0.8rem; letter-spacing: .04em;
  border: 3px solid var(--green);
}
.crest { position: relative; }
.crest-star {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  color: var(--yellow); font-size: .8rem; text-shadow: 0 0 2px var(--green-deep);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text small { color: var(--yellow); font-size: 0.75rem; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { text-decoration: none; font-weight: 600; opacity: .9; }
.main-nav a:hover { opacity: 1; color: var(--yellow); }
.main-nav a.btn:hover { color: var(--green-deep); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--yellow); color: var(--green-deep);
  font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--yellow);
  cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,210,0,.35); }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }

/* Hero */
.hero {
  color: #fff;
  background:
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,.035) 80px 160px),
    radial-gradient(circle at 85% 20%, rgba(255,210,0,.25), transparent 45%),
    linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  padding-block: clamp(48px, 8vw, 110px);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--yellow); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; max-width: 34ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.next-match {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.teams { display: flex; align-items: center; justify-content: space-around; gap: 12px; margin: 8px 0 16px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.team-badge {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-weight: 900; font-size: .9rem;
}
.team-badge.home { background: var(--yellow); color: var(--green-deep); border: 3px solid var(--green); }
.team-badge.away { background: #fff; color: #333; border: 3px solid #c33; }
.vs { font-weight: 800; color: var(--yellow); font-size: 1.2rem; }
.match-meta { opacity: .85; margin: 0 0 16px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { background: rgba(0,0,0,.25); border-radius: 10px; padding: 10px 4px; }
.countdown span { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .7rem; text-transform: uppercase; opacity: .75; }

.champion-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--green-deep);
  font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; margin: 0 0 16px;
  box-shadow: 0 0 0 4px rgba(255,210,0,.25);
}

/* Kampioen */
.champions {
  background: linear-gradient(90deg, var(--yellow) 0%, #ffe14d 100%);
  color: var(--green-deep);
  padding-block: clamp(36px, 5vw, 56px);
}
.champions-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.champions .eyebrow { color: var(--green); }
.champions h2 { margin-bottom: .3em; }
.champions-copy p:last-child { margin: 0; max-width: 52ch; }
.champion-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.champion-stats div { background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: 16px 10px; text-align: center; }
.champion-stats dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.champion-stats dd { margin: 4px 0 0; font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.champ-label {
  display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head h2::after {
  content: ""; display: block; width: 48px; height: 4px; margin-top: 10px;
  background: var(--yellow); border-radius: 2px;
}
.note { color: var(--muted); font-size: .9rem; margin-top: -8px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; border-color: var(--green); }

/* Fixtures */
.fixtures { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fixture {
  display: grid; grid-template-columns: 130px 1fr auto 1fr 110px; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; transition: box-shadow .15s;
}
.fixture:hover { box-shadow: var(--shadow); }
.fixture .date { font-size: .85rem; color: var(--muted); }
.fixture .date strong { display: block; color: var(--ink); font-size: 1rem; }
.fixture .home { text-align: right; font-weight: 600; }
.fixture .away { font-weight: 600; }
.fixture .is-ado { color: var(--green); }
.fixture .score {
  min-width: 72px; text-align: center; font-weight: 800;
  background: var(--green-deep); color: #fff; border-radius: 8px; padding: 6px 10px;
  font-variant-numeric: tabular-nums;
}
.fixture .score.time { background: var(--bg-alt); color: var(--ink); }
.fixture .comp { text-align: right; font-size: .8rem; color: var(--muted); }
.result-pill { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; text-align: center; font-size: .7rem; font-weight: 800; color: #fff; margin-left: 6px; }
.result-pill.W { background: #1f9d55; }
.result-pill.G { background: #8a9a90; }
.result-pill.V { background: #c53030; }

/* News */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: auto; gap: 20px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s; cursor: pointer;
}
.news-card:hover { transform: translateY(-3px); }
.news-card.featured { grid-row: span 2; }
.news-img { aspect-ratio: 16 / 9; background-size: cover; }
.featured .news-img { aspect-ratio: auto; flex: 1; min-height: 220px; }
.img-1 { background: linear-gradient(135deg, var(--green) 0 60%, var(--yellow) 60% 100%); }
.img-2 { background: linear-gradient(45deg, var(--yellow), #ffe766); }
.img-3 { background: linear-gradient(160deg, var(--green-dark), #2fa36b); }
.img-4 { background: repeating-linear-gradient(45deg, var(--green) 0 20px, var(--green-dark) 20px 40px); }
.news-body { padding: 18px 20px 20px; }
.news-body h3 { font-size: 1.05rem; }
.featured .news-body h3 { font-size: 1.5rem; }
.news-body p { color: var(--muted); margin: 0 0 8px; }
.news-body time { font-size: .8rem; color: var(--muted); }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green); margin-bottom: 8px;
}

/* Squad */
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.player {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; border-radius: var(--radius); padding: 20px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.player .num {
  position: absolute; top: 6px; right: 14px;
  font-size: 4.5rem; font-weight: 900; color: var(--yellow); opacity: .9; line-height: 1;
}
.player .pos { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
.player .name { font-size: 1.15rem; font-weight: 800; }
.player .nat { font-size: .85rem; opacity: .8; }

/* Standings */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.standings { width: 100%; border-collapse: collapse; min-width: 520px; }
.standings th, .standings td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.standings th { font-size: .75rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.standings .left { text-align: left; }
.standings tr.ado { background: #fff8cc; font-weight: 700; }
.standings tr.ado td:first-child { box-shadow: inset 4px 0 0 var(--green); }
.standings td:last-child { font-weight: 800; }

/* Tickets */
.tickets { background: var(--green-deep); color: #fff; }
.tickets-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tickets p { opacity: .88; }
.ticket-form {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px;
  display: grid; gap: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.ticket-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.ticket-form input, .ticket-form select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%;
}
.ticket-form input:focus, .ticket-form select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form-msg { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #c53030; }

/* Sponsorpagina */
.main-nav a[aria-current="page"] { color: var(--yellow); opacity: 1; }
.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,210,0,.25), transparent 45%),
    linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  padding-block: clamp(40px, 6vw, 72px);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
.page-hero .lead { max-width: 56ch; }

.filters {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 32px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.filter-group { display: grid; gap: 10px; align-content: start; }
.filter-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-row select, .filter-row input {
  flex: 1 1 180px; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.filter-row select:focus, .filter-row input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 7px 12px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.chip:hover:not(:disabled) { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip-count { font-size: .75rem; background: rgba(0,0,0,.08); border-radius: 999px; padding: 1px 7px; }
.chip[aria-pressed="true"] .chip-count { background: var(--yellow); color: var(--green-deep); }

.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 8px; color: var(--muted); }
.result-bar p { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); font-weight: 700; text-decoration: underline; cursor: pointer; }

.sponsor-group { margin-top: 32px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; padding-bottom: 10px; border-bottom: 3px solid var(--yellow); }
.group-count { font-size: .8rem; background: var(--green-deep); color: #fff; border-radius: 999px; padding: 2px 9px; }

.sponsor-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sponsor-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  transition: box-shadow .15s, transform .15s;
}
.sponsor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sponsor-logo {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  font-weight: 900; font-size: 1.1rem; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue) 55% 38%), hsl(calc(var(--hue) + 30) 60% 28%));
}
.sponsor-body h3 { font-size: 1rem; margin-bottom: 4px; }
.sponsor-body p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.sponsor-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; }
.sponsor-branche { font-weight: 700; color: var(--green); }
.sponsor-city { color: var(--muted); }

/* Hoofdsponsor groot uitgelicht */
.grid-hoofdsponsor { grid-template-columns: 1fr; }
.tier-hoofdsponsor {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; border: 0; padding: 28px; align-items: center; gap: 24px;
}
.tier-hoofdsponsor .sponsor-logo { width: 96px; height: 96px; font-size: 2rem; border-radius: 20px; background: var(--yellow); color: var(--green-deep); }
.tier-hoofdsponsor h3 { font-size: 1.6rem; }
.tier-hoofdsponsor p, .tier-hoofdsponsor .sponsor-city { color: rgba(255,255,255,.85); }
.tier-hoofdsponsor .sponsor-branche { color: var(--yellow); }
.tier-premium-partner { border-color: var(--yellow); box-shadow: inset 0 3px 0 var(--yellow); }

.empty-state { text-align: center; padding: 48px 16px; background: var(--bg-alt); border-radius: var(--radius); margin-top: 24px; }

/* Footer */
.site-footer { background: #0d1a13; color: #c9d4cd; padding-block: 36px; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-inner strong { color: #fff; }
.footer-inner p { margin: 4px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--yellow); }
.copy { opacity: .6; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .tickets-inner, .champions-inner, .filters { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: span 2; grid-row: auto; }
  .fixture { grid-template-columns: 1fr auto 1fr; row-gap: 6px; }
  .fixture .date { grid-column: 1 / -1; }
  .fixture .comp { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-deep); padding: 8px 16px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .brand-text small { display: none; }
}

@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }
  .countdown span { font-size: 1.3rem; }
  .champion-stats { grid-template-columns: repeat(2, 1fr); }
  .tier-hoofdsponsor { flex-direction: column; align-items: flex-start; padding: 20px; }
  .sponsor-grid { grid-template-columns: 1fr; }
}

/* Laden via API */
.load-error {
  margin-block: 16px; padding: 14px 18px; border-radius: var(--radius);
  background: #fdecec; color: #8a1c1c; border: 1px solid #f3b8b8;
}
.fixture-empty { color: var(--muted); padding: 16px 0; }
.sponsor-link { display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--green); }
.tier-hoofdsponsor .sponsor-link { color: var(--yellow); }

/* ===================== Upgrades: links, nieuws, wedstrijd, speler ===================== */
a.fixture, a.news-card, a.player, .ts-row, .h2h-row, .mn-link, .pn-link { text-decoration: none; color: inherit; }
a.fixture:focus-visible, a.news-card:focus-visible, a.player:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.more-link { font-weight: 700; color: var(--green); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 14px; color: inherit; opacity: .85; text-decoration: none; font-weight: 600; font-size: .9rem; }
.back-link:hover { opacity: 1; text-decoration: underline; }
.container.narrow { width: min(760px, 100% - 32px); }
.not-found { text-align: center; }
.not-found h1 { font-size: 1.6rem; margin-bottom: 20px; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

/* Afbeeldingen in bestaande kaarten */
.news-img { position: relative; overflow: hidden; }
.news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player.has-photo { min-height: 260px; }
.player-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.player.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,40,20,.92)); }
.player > span { position: relative; z-index: 1; }
.player .num { position: absolute; z-index: 1; }
.player-stats { font-size: .75rem; margin-top: 6px; color: var(--yellow); }
.player { transition: transform .15s; }
.player:hover { transform: translateY(-3px); }
.sponsor-logo.has-image { background: #fff; border: 1px solid var(--line); padding: 6px; }
.sponsor-logo.has-image img { width: 100%; height: 100%; object-fit: contain; }
.tier-hoofdsponsor .sponsor-logo.has-image { background: #fff; }

/* Stand + topscorers */
.stand-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.topscorers-card .section-head { margin-bottom: 24px; }
.topscorers { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.topscorers li + li { border-top: 1px solid var(--line); }
.ts-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ts-row:hover { background: #f8fbf8; }
.ts-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--green); color: var(--yellow); font-weight: 900;
}
.ts-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ts-name { flex: 1; display: grid; }
.ts-name small { color: var(--muted); }
.ts-goals { font-size: 1.5rem; font-weight: 900; color: var(--green); font-variant-numeric: tabular-nums; }
.topscorers .note { padding: 16px; margin: 0; }

/* Nieuwsoverzicht */
.result-count { color: var(--muted); margin: 14px 0; }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-list .news-body p { font-size: .92rem; }

/* Artikel */
.article-hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); color: #fff; padding-block: clamp(36px, 6vw, 64px); }
.article-hero.with-image { padding-bottom: clamp(90px, 12vw, 140px); }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
.article-hero .eyebrow a { color: inherit; }
.article-hero .lead { max-width: none; }
.article-image { margin-block: calc(-1 * clamp(60px, 9vw, 110px)) 0; }
.article-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { padding-block: 36px 56px; font-size: 1.08rem; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }

/* Wedstrijdcentrum */
.match-hero {
  color: #fff; padding-block: clamp(28px, 5vw, 56px);
  background: radial-gradient(circle at 50% 0%, rgba(255,210,0,.2), transparent 55%), linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
}
.match-hero .eyebrow { text-align: center; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 8px 0 20px; }
.sb-team-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 1.1rem; }
.sb-team-inner .team-badge { width: 80px; height: 80px; font-size: 1.1rem; }
.sb-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sb-score { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.sb-time { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.sb-status { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.result-pill.big { width: auto; height: auto; line-height: 1.4; padding: 3px 12px; border-radius: 999px; font-size: .78rem; margin: 4px 0 0; }
.match-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; opacity: .92; }
.match-facts li { display: flex; gap: 8px; }
.match-cta { display: flex; justify-content: center; margin-top: 20px; }
.match-cta:empty { display: none; }

.match-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.match-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.match-card h2 { font-size: 1.15rem; margin-bottom: 14px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-1px); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 12px; padding: 8px 0; }
.tl-icon {
  grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); font-size: .95rem;
}
.kind-doelpunt .tl-icon, .kind-strafschop .tl-icon, .kind-eigen-doelpunt .tl-icon { border-color: var(--green); background: #eaf6ef; }
.tl-home .tl-what { grid-column: 1; grid-row: 1; text-align: right; }
.tl-away .tl-what { grid-column: 3; grid-row: 1; }
.tl-min { position: absolute; font-size: .78rem; font-weight: 700; color: var(--muted); top: 50%; transform: translateY(-50%); }
.tl-home .tl-min { left: calc(50% + 28px); }
.tl-away .tl-min { right: calc(50% + 28px); }
.tl-score { position: absolute; font-weight: 800; font-size: .8rem; background: var(--green-deep); color: #fff; border-radius: 6px; padding: 1px 7px; top: 50%; transform: translateY(-50%); }
.tl-home .tl-score { left: calc(50% + 62px); }
.tl-away .tl-score { right: calc(50% + 62px); }
.tl-main { font-weight: 700; }
.tl-main a, .tl-sub a, .lineup a { color: var(--green); }
.tl-main small { font-weight: 500; color: var(--muted); }
.tl-sub { display: block; color: var(--muted); }

.lineup-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; }
.lineup-head:first-of-type { margin-top: 0; }
.lineup { list-style: none; margin: 0; padding: 0; }
.lineup li { display: grid; grid-template-columns: 28px 1fr auto; column-gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lineup li:last-child { border-bottom: 0; }
.lu-num { font-weight: 900; color: var(--green); text-align: right; font-variant-numeric: tabular-nums; }
.lu-pos { grid-column: 2; grid-row: 2; font-size: .75rem; color: var(--muted); }
.lu-marks { grid-column: 3; grid-row: 1 / span 2; font-size: .8rem; white-space: nowrap; }
.lineup a { font-weight: 600; text-decoration: none; }
.lineup a:hover { text-decoration: underline; }

.h2h { list-style: none; margin: 0; padding: 0; }
.h2h-row { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.h2h li:last-child .h2h-row { border-bottom: 0; }
.h2h-row:hover span:last-child { text-decoration: underline; }
.muted { color: var(--muted); }

.match-nav { display: grid; gap: 10px; }
.match-nav h2 { margin-bottom: 4px; }
.mn-link { display: grid; padding: 10px 12px; border-radius: 8px; background: var(--bg-alt); }
.mn-link small { color: var(--muted); }
.mn-link span { font-weight: 600; }
.mn-link:hover { background: #e8f1ea; }

/* Spelersprofiel */
.profile-hero { color: #fff; background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); padding-block: clamp(28px, 5vw, 56px); overflow: hidden; }
.profile-inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.profile-photo { width: clamp(140px, 22vw, 240px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: rgba(0,0,0,.2); position: relative; z-index: 1; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-photo.no-photo { display: grid; place-items: center; border: 3px solid var(--yellow); }
.profile-photo.no-photo span { font-size: clamp(3.5rem, 9vw, 6rem); font-weight: 900; color: var(--yellow); }
.profile-main { position: relative; z-index: 1; }
.profile-main h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
.profile-num { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: clamp(8rem, 22vw, 16rem); font-weight: 900; color: rgba(255,210,0,.12); line-height: 1; pointer-events: none; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 24px; margin: 16px 0 0; }
.profile-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.profile-facts dd { margin: 2px 0 0; font-weight: 700; }

.stat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0 0 24px; }
.stat-tiles div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-tiles dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat-tiles dd { margin: 4px 0 0; font-size: 2rem; font-weight: 900; color: var(--green); font-variant-numeric: tabular-nums; }
.profile-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; }
.profile-grid > .match-card:only-child { grid-column: 1 / -1; }
.table-wrap.plain { box-shadow: none; border-radius: 0; }
.matchlog { width: 100%; border-collapse: collapse; min-width: 480px; }
.matchlog th, .matchlog td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.matchlog th { font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.matchlog .left { text-align: left; }
.matchlog td a { color: var(--green); font-weight: 600; }
.matchlog .role { font-size: .85rem; color: var(--muted); }
.player-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pn-link { font-weight: 700; color: var(--green); }
.pn-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .stand-layout, .match-grid, .profile-grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .profile-inner { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .sb-team-inner .team-badge { width: 56px; height: 56px; font-size: .85rem; }
  .sb-team-inner { font-size: .9rem; }
  /* Tijdlijn als één kolom */
  .timeline::before { left: 17px; }
  .tl-item { grid-template-columns: 34px 1fr; }
  .tl-icon { grid-column: 1; }
  .tl-home .tl-what, .tl-away .tl-what { grid-column: 2; text-align: left; }
  .tl-min, .tl-score { position: static; transform: none; }
  .tl-item { grid-template-columns: 34px 1fr auto auto; }
  .tl-min { grid-column: 3; grid-row: 1; }
  .tl-score { grid-column: 4; grid-row: 1; }
}
.profile-grid:has(> #bio-card[hidden]) { grid-template-columns: 1fr; }
