/* 2026wkpool — design system (vanilla, no build). Oranje primary, stadionnacht-blauw, grasgroen accent. */

:root {
  --orange: #FF6A00;
  --orange-2: #E55C00;
  --night:  #0E1B3A;
  --night-2:#152455;
  --grass:  #16894A;
  --ink:    #0B1020;
  --paper:  #FFFFFF;
  --mute:   #F2F4F8;
  --line:   #DCE0E8;
  --err:    #C8202E;
  --ok:     #178753;
  --warn:   #C68A00;
  --shadow: 0 6px 24px rgba(14, 27, 58, .15);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "DM Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--night-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 18px; }

/* Topbar */
.topbar { background: var(--night); color: var(--paper); position: sticky; top: 0; z-index: 30; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.brand img { height: 36px; width: auto; display: block; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--orange), var(--grass)); }
.brand-name { font-weight: 800; letter-spacing: -.01em; }
.topnav a { color: var(--paper); margin-left: 18px; opacity: .85; }
.topnav a:hover { opacity: 1; text-decoration: none; }

/* Vlaggenslinger — WK-voetbal-2026-feestelement onder de topbar, op élke portal.
   --orange is de "string" (→ SO-rood op de SON-portal); pennants = de 48 land-SVG's. */
.bunting {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 7px;
  background: var(--night);
  padding: 0 12px 5px;
  border-top: 3px solid var(--orange);
  overflow: hidden;
  line-height: 0;
}
.bunting .pennant {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}
@media (max-width: 560px) {
  .bunting { gap: 5px; padding: 0 6px 4px; }
  .bunting .pennant { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bunting .pennant { transition: transform .25s ease; }
}
/* WK-voetbal-2026 context-tekst — sluit aan op de bunting-band, op élke pagina. */
.wk-context {
  margin: 0;
  background: var(--night);
  color: rgba(255,255,255,.82);
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 0 12px 9px;
}
@media (max-width: 560px) {
  .wk-context { font-size: .66rem; padding-bottom: 8px; }
}

/* Hero */
.hero { position: relative; background: var(--night); color: var(--paper); overflow: hidden; min-height: 480px; }
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-image:
    /* leesbare tekstkolom links, foto rechts vol zichtbaar */
    linear-gradient(90deg, rgba(14,27,58,.78) 0%, rgba(14,27,58,.55) 35%, rgba(14,27,58,.12) 70%, rgba(14,27,58,.05) 100%),
    /* zachte overgang naar de site eronder */
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(14,27,58,.55) 100%),
    url('/assets/img/hero-bg.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat;
  animation: kenBurns 32s ease-in-out infinite alternate;
  transform-origin: 65% 55%;
  will-change: transform;
}
@media (max-width: 720px) {
  .hero-bg {
    background-image:
      /* op mobiel sterker donker onderaan want tekst boven foto */
      linear-gradient(180deg, rgba(14,27,58,.40) 0%, rgba(14,27,58,.55) 50%, rgba(14,27,58,.85) 100%),
      url('/assets/img/hero-bg-mobile.jpg');
    background-size: cover, cover;
    background-position: center, center 30%;
  }
}
@keyframes kenBurns {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  50%  { transform: scale(1.18) translate3d(-2%, -1.5%, 0); }
  100% { transform: scale(1.10) translate3d(1.5%, 1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1.05); }
}
.hero-inner { position: relative; z-index: 1; padding: 64px 18px 72px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.05; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 900; }
.hero .hi { color: var(--orange); }
.hero .lead { font-size: 1.1rem; max-width: 640px; opacity: .92; margin: 0 0 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero .usp { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 16px; opacity: .88; font-size: .95rem; }

.pool-hero .org-logo { max-height: 88px; max-width: 220px; width: auto; object-fit: contain; margin-bottom: 14px; border-radius: 12px; background: var(--paper); padding: 6px; }
.pool-hero .meta { margin: 18px 0 0; opacity: .85; }

.hero-logo { display: block; margin-bottom: 18px; height: auto; max-width: 280px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero-landing { min-height: 560px; }

.countdown {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: .9rem; margin: 8px 0 18px;
}
.cd-mini { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; opacity: .7; font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: white; padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 700; border: none; cursor: pointer; text-decoration: none; transition: transform .05s, background .15s;
}
.btn:hover { background: var(--orange-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 14px 24px; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,.25); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.primary { background: var(--orange); color: var(--paper); }
.btn.small { padding: 7px 12px; font-size: .9rem; }

/* In light containers, ghost should be inverted (donkere tekst op licht).
   Maar de hero is donker — daar moet ghost WIT blijven. */
.wrap .btn.ghost, .form .btn.ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.wrap .btn.ghost:hover, .form .btn.ghost:hover { background: var(--mute); }

.hero .btn.ghost, .hero-inner .btn.ghost {
  color: var(--paper); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05);
}
.hero .btn.ghost:hover, .hero-inner .btn.ghost:hover { background: rgba(255,255,255,.15); }

/* Features grid */
.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features h3 { margin: 0 0 6px; color: var(--orange); }

.how { background: var(--mute); border-radius: var(--radius); margin: 24px auto; }
.how ol { padding-left: 22px; }
.how li { margin-bottom: 8px; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 540px; }
.form label { display: grid; gap: 6px; }
.form input[type=text], .form input[type=email], .form input[type=number], .form input[type=file], .form select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink);
}
.form .checkbox { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.form small { color: #6b7280; }
.form-page { max-width: 720px; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin: 14px 0; }
.alert.err { background: #FEE; border: 1px solid #F3B7BC; color: var(--err); }
.alert.ok  { background: #E8F8EE; border: 1px solid #B4E0C4; color: var(--ok); }

/* Adslot */
.adslot { background: var(--night); color: var(--paper); border-radius: var(--radius); margin: 18px; padding: 18px; }
.adslot .adslot-link { display: grid; gap: 4px; color: var(--paper); }
.adslot .adslot-link em { color: var(--orange); font-style: normal; }

/* Vlaggen */
.flag {
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  border: 1px solid rgba(0,0,0,.08);
  background: #ddd;
}
.flag-sm { width: 22px; height: 16px; margin: 0 4px 0 0; }
.flag-md { width: 32px; height: 24px; margin: 0 6px 0 0; }
.flag-lg { width: 48px; height: 36px; margin: 0 8px 0 0; }

/* Tables */
.rank-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.rank-table th, .rank-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.rank-table th { background: var(--mute); }
.rank-table .pos { font-variant-numeric: tabular-nums; font-weight: 700; }
.rank-table .pts { font-family: ui-monospace, Menlo, monospace; }

.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: flex; gap: 12px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.rank .pos { font-weight: 800; min-width: 28px; }
.rank .nm  { flex: 1; }
.rank .pts { font-family: ui-monospace, Menlo, monospace; }

/* Share */
.share-section { background: var(--mute); border-radius: var(--radius); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share-btn {
  padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; text-decoration: none;
}
.share-btn:hover { background: var(--orange); color: white; border-color: var(--orange); }
.powered { font-size: .85rem; opacity: .75; }

/* Entry form */
.entry-page h1 { margin-bottom: 4px; }
.my-link-box { background: var(--mute); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 14px 0 6px; }
.my-link-box p { margin: 0 0 10px; font-size: 14px; color: #374151; }
.my-link-input { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: monospace; font-size: 13px; background: var(--paper); color: var(--ink); }
.entry-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 22px; position: sticky; top: 60px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding: 10px 0; z-index: 20; border-bottom: 1px solid var(--line); }
.entry-tabs .tab { padding: 8px 14px; border-radius: 999px; background: var(--mute); }
.entry-tabs .tab.active, .entry-tabs .tab:hover { background: var(--orange); color: white; text-decoration: none; }

.ef-section { padding: 18px 0; border-top: 1px solid var(--line); }
.ef-section h2 { margin-top: 0; }
.hint { color: #4b5563; }

.group-block h3 { color: var(--orange); margin: 18px 0 8px; }
.match-list { display: grid; gap: 10px; }
.match-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.match-row .when { font-size: .85rem; color: #4b5563; }
.match-row .teams { display: grid; grid-template-columns: 1fr 50px auto 50px 1fr; align-items: center; gap: 8px; }
.match-row .t { font-weight: 600; }
.match-row .t.home { text-align: right; }
.match-row input[type=number] { width: 100%; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.match-row .sep { text-align: center; font-weight: 700; opacity: .6; }

.ko .ko-row { display: grid; grid-template-columns: 2fr 50px auto 50px 2fr; gap: 8px; align-items: center; }
.ko .round-label { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: white; font-size: .8rem; font-weight: 700; margin-right: 6px; }

.standings-block ol { list-style: none; padding: 0; }
.standings-block li {
  display: grid; grid-template-columns: 28px 36px 1fr auto; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); margin: 6px 0;
}
.standings-block .flag { margin: 0; }
.standings-block .pos { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--orange); }
.standings-block .ord-btns { display: inline-flex; gap: 4px; }
.standings-block .ord {
  border: 1px solid var(--line); background: var(--paper); padding: 2px 6px; border-radius: 6px; cursor: pointer;
}
.standings-block .ord:hover { background: var(--orange); color: white; border-color: var(--orange); }

.bonus-row { display: grid; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; }
.bonus-row input { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.entry-foot { margin-top: 30px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.save-status { font-size: .85rem; color: var(--ok); }
.save-status.saving { color: var(--warn); }
.save-status.err { color: var(--err); }

/* Footer */
.site-foot { background: var(--mute); border-top: 1px solid var(--line); margin-top: 60px; }
.site-foot .wrap { padding: 24px 18px; color: #4b5563; font-size: .9rem; }

/* Admin */
.admin-page .ra-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px; border-bottom: 1px solid var(--line); }
.admin-page .badge { padding: 2px 8px; border-radius: 999px; font-size: .8rem; }
.admin-page .badge.ok { background: #E8F8EE; color: var(--ok); }
.admin-page .badge.warn { background: #FFF5DD; color: var(--warn); }

/* Poule grid — tekst links, logo rechts, leesbaar herkenbaar */
.poule-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.poule-card {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, transform .05s, box-shadow .15s;
}
.poule-card:hover { border-color: var(--orange); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.poule-card .poule-text { display: grid; gap: 4px; min-width: 0; }
.poule-card h3 { margin: 0; color: var(--orange); font-size: 1.05rem; line-height: 1.2; }
.poule-card .meta { color: #4b5563; font-size: .9rem; }
.poule-card img {
  grid-column: 2;
  width: 72px; height: 72px;
  object-fit: contain;          /* volledig logo tonen, nooit bijsnijden */
  padding: 7px;
  background: #fff;             /* neutrale achtergrond */
  border-radius: 10px;
  border: 1px solid var(--line);
}
.poule-card .poule-no-logo {
  grid-column: 2;
  width: 72px; height: 72px;
  border-radius: 10px;
  background: #ED1C24;          /* SO Red — nette initialen-fallback (was oranje→groen gradient) */
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.6rem;
}

/* Legal */
.legal h2 { color: var(--orange); margin-top: 24px; }
.legal ul { padding-left: 22px; }

/* Bracket — sections-view (default, leesbaar) + tree-view (toggle) */
.bracket-page h1 { margin-bottom: 4px; }
.bracket-explain {
  background: var(--mute);
  border-left: 4px solid var(--orange);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-size: .96rem;
  line-height: 1.55;
}

/* Quick-nav */
.round-nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 18px 0 16px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky; top: 60px; z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.round-jump {
  padding: 8px 16px; border-radius: 999px;
  background: var(--mute); color: var(--ink);
  font-weight: 700; font-size: .9rem; text-decoration: none;
  white-space: nowrap;
}
.round-jump:hover { background: var(--orange); color: white; text-decoration: none; }
.round-jump.final { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: white; }
.round-jump.final:hover { filter: brightness(1.1); }

.round-actions { display: flex; gap: 12px; align-items: center; margin: 12px 0 24px; flex-wrap: wrap; }
.round-actions .hint { color: #6b7280; font-size: .85rem; }

/* Round sections */
.round-section {
  margin: 40px 0;
  padding-top: 12px;
  scroll-margin-top: 130px;
}
.round-section h2 {
  font-size: 1.4rem;
  color: var(--orange);
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}
.round-section.final-section h2 { color: var(--orange); }
.round-section.bronze { background: linear-gradient(180deg, transparent, #fff5e6); border-radius: 12px; padding: 20px; }
.round-section.bronze h2 { color: #b8722a; border-bottom-color: #b8722a; }

/* Match cards (groot, leesbaar) */
.km-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.km-grid-1 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

.km {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: box-shadow .15s, transform .05s;
}
.km:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.km.confirmed { border-left: 4px solid var(--grass); padding-left: 12px; }

.km-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #6b7280; margin-bottom: 2px; }
.km-id { font-weight: 700; }
.km-when { font-family: ui-monospace, Menlo, monospace; }
.km-city { font-size: .8rem; color: #9ca3af; margin-bottom: 12px; }

.km-team {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--line);
  gap: 10px;
}
.km-team:first-of-type { border-top: none; }
.km-team-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.km-team-left .flag { margin: 0; flex-shrink: 0; }
.km-team-name { font-size: 1.05rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-tbd { font-style: italic; color: #9ca3af; font-size: .95rem; }
.km-score {
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 1.6rem; font-weight: 800;
  min-width: 32px; text-align: right;
  color: var(--ink);
}
.km-team.winner { background: linear-gradient(90deg, transparent, #e8f8ee); margin: 0 -16px; padding: 10px 16px; }
.km-team.winner .km-team-name { color: var(--grass); }
.km-team.winner .km-score { color: var(--grass); }
.km-team.loser .km-team-name, .km-team.loser .km-score { opacity: .45; }

.km-foot { font-size: .8rem; color: #6b7280; text-align: right; margin-top: 6px; font-style: italic; }
.km-next {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: #6b7280;
}
.km-next a { color: var(--orange); font-weight: 600; }

.final-section .km { border: 2px solid var(--orange); background: linear-gradient(135deg, #fff 0%, #fff5e6 100%); }
.final-section .km-team-name { font-size: 1.2rem; }
.final-section .km-score { font-size: 2rem; }

.bracket-scroll { overflow-x: auto; padding: 8px 0 24px; -webkit-overflow-scrolling: touch; }
.bracket-tree {
  display: flex;
  gap: 24px;
  align-items: stretch;
  min-width: 1200px;
  padding: 16px 8px;
}
.bt-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  position: relative;
}
.bt-col-title {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  background: var(--paper);
  padding: 0 8px;
  white-space: nowrap;
  z-index: 1;
}

/* Match-box */
.bm {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin: 6px 0;
  font-size: .85rem;
  position: relative;
  z-index: 2;
}
.bm.confirmed { border-color: var(--grass); border-left-width: 4px; }
.bm-meta { display: flex; justify-content: space-between; font-size: .68rem; color: #9ca3af; margin-bottom: 4px; }
.bm-meta .mid { font-family: ui-monospace, Menlo, monospace; }
.bm-team {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.bm-team + .bm-team { border-top: 1px solid var(--line); }
.bm-team.winner { font-weight: 700; }
.bm-team.winner .sc { color: var(--grass); }
.bm-team.loser { opacity: .45; }
.bm-team .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-team .tbd { font-style: italic; color: #9ca3af; font-size: .78rem; }
.bm-team .sc { font-family: ui-monospace, Menlo, monospace; font-weight: 700; min-width: 18px; text-align: right; }
.bm-team .flag { margin: 0; }
.bm-foot { font-size: .65rem; color: #9ca3af; text-align: right; padding-top: 4px; }

/* Connecting lines tussen kolommen: rechtshalsband per match dat naar de volgende ronde gaat */
.bt-col:not(.bt-col-final) .bm::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--line);
}
.bt-col:not(.bt-col-r32) .bm::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--line);
}

/* Final krijgt accentkleur */
.bt-col-final .bm {
  border: 2px solid var(--orange);
  background: linear-gradient(135deg, #fff 0%, #fff5e6 100%);
  font-size: .95rem;
}
.bt-col-final .bm-team { padding: 5px 0; }

.bronze-final { margin-top: 40px; padding: 20px; background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%); border-radius: 10px; border: 1px dashed #c8861a; }
.bronze-final h2 { color: #b8722a; margin-top: 0; }
.bronze-wrap { max-width: 360px; }
.bronze-wrap .bm { border-color: #c8861a; }

@media (max-width: 720px) {
  .bracket-tree { min-width: 1100px; }
  .bm { font-size: .75rem; padding: 4px 6px; }
  .bm-team .tn { font-size: .78rem; }
}

/* ── Knock-out invul-bracket (entry.php §3) ── */
.ko-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0 18px; }
.ko-note { color: var(--orange); font-weight: 600; }
.ko-round { margin: 22px 0; }
.ko-round-title { color: var(--orange); margin: 18px 0 10px; font-size: 1.05rem; }
.koc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.koc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: 10px 12px; }
.koc-head { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: #6b7280; margin-bottom: 8px; }
.koc-id { font-weight: 700; }
.koc-when { font-family: ui-monospace, Menlo, monospace; }
.koc-city { margin-left: auto; color: #9ca3af; }
.koc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; }
.koc-team { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; min-width: 0; font: inherit; color: inherit; }
.koc-team[data-side="away"] { flex-direction: row-reverse; text-align: right; }
.koc-team:hover:not(:disabled):not(.is-picker) { border-color: var(--orange); }
.koc-team:disabled { cursor: default; }
.koc-team .flag { flex-shrink: 0; margin: 0; }
.koc-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.koc-tbd { font-style: italic; color: #9ca3af; font-size: .9rem; }
.koc-team.winner { border-color: var(--grass); background: #e8f8ee; }
.koc-team.winner .koc-name { color: var(--grass); }
.koc-team.loser { opacity: .5; }
.koc-team.is-picker { cursor: default; flex-direction: column; align-items: flex-start; gap: 6px; }
.koc-score { display: flex; align-items: center; gap: 4px; justify-content: center; }
.koc-score input { width: 42px; padding: 6px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.koc-score .sep { opacity: .6; font-weight: 700; }
.b3-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.b3-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; }
.b3-chip:hover { border-color: var(--orange); background: #fff5e6; }
.b3-chip .koc-name { font-weight: 500; font-size: .8rem; }
.b3-chip .flag { margin: 0; }
.b3-edit { margin-left: 6px; cursor: pointer; color: #9ca3af; font-size: 1rem; line-height: 1; }
.b3-edit:hover { color: var(--orange); }

@media (max-width: 720px) {
  .koc-grid { grid-template-columns: 1fr; }
  .koc-name { font-size: .9rem; }
}

/* ── Uitslagenpagina (uitslagen.php) ── */
.uit-head { margin-bottom: 10px; }
.uit-head h1 { margin-bottom: 4px; }
.uit-updated { font-size: .8rem; color: #6b7280; margin: 4px 0 0; }
.uit-live-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--mute); color: #6b7280; font-size: .8rem; font-weight: 700; vertical-align: middle; }
.uit-live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #b6bdc9; }
.uit-live-pill.on { background: #ffe9d9; color: var(--orange-2); }
.uit-live-pill.on .dot { background: var(--orange); animation: uit-pulse 1.2s infinite; }
@keyframes uit-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,106,0,.6); } 50% { box-shadow: 0 0 0 5px rgba(255,106,0,0); } }

.uit-daynav { position: sticky; top: 56px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 8px 0 6px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.uit-daychip { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: var(--mute); font-size: .82rem; font-weight: 600; white-space: nowrap; color: #374151; }
.uit-daychip:hover { background: var(--orange); color: #fff; text-decoration: none; }
.uit-daychip.today { background: var(--night, #0E1B3A); color: #fff; }

.uit-day { margin: 18px 0; scroll-margin-top: 110px; }
.uit-day-title { color: var(--orange); font-size: 1.05rem; margin: 16px 0 10px; text-transform: capitalize; }
.uit-day-title .vandaag { font-size: .7rem; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }

.uit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.uit-match { border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: 10px 12px; transition: border-color .2s; }
.uit-match.status-live { border-left-color: var(--orange); box-shadow: 0 2px 12px rgba(255,106,0,.12); }
.uit-match.status-final { border-left-color: var(--grass); }
.uit-match.status-scheduled { opacity: .92; }

.um-meta { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: #6b7280; margin-bottom: 8px; }
.um-meta .um-time { font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: #374151; }
.um-meta .um-round { padding: 1px 7px; border-radius: 999px; background: var(--mute); font-weight: 600; }
.um-meta .um-city { margin-left: auto; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.um-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.um-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.um-team:last-child { flex-direction: row-reverse; text-align: right; }
.um-team .flag { margin: 0; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06); border-radius: 2px; }
.um-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-team.tbd .um-name { font-style: italic; color: #9ca3af; font-weight: 500; font-size: .9rem; }
.um-team.winner .um-name { color: var(--grass); }
.um-team.winner { font-weight: 800; }

.um-score { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 1.15rem; min-width: 48px; text-align: center; padding: 2px 8px; border-radius: 6px; background: var(--mute); color: #1f2937; font-variant-numeric: tabular-nums; }
.status-live .um-score { background: #fff1e6; color: var(--orange-2); }
.status-final .um-score { background: #e8f8ee; color: var(--grass); }
.um-score[data-prov="1"] { opacity: .82; }

.um-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .72rem; }
.um-badge { padding: 1px 8px; border-radius: 999px; background: var(--mute); color: #6b7280; font-weight: 700; letter-spacing: .03em; }
.status-live .um-badge { background: var(--orange); color: #fff; }
.status-final .um-badge { background: #e8f8ee; color: var(--grass); }
.um-extra { color: #6b7280; font-style: italic; }
.um-prov { margin-left: auto; color: var(--orange); }

@media (max-width: 720px) {
  .uit-list { grid-template-columns: 1fr; }
  .uit-daynav { top: 52px; }
}

/* ── Ranglijst: uitleg-tooltip bij de sterren-kolom (stand.php) ── */
.th-star { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.th-star .star-glyph { color: var(--orange); }
.info-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; padding: 0; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; color: var(--orange);
  font-size: 11px; line-height: 1; cursor: pointer; font-family: inherit;
}
.info-tip:hover { background: var(--orange); color: var(--paper); }
.info-tip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tip-bubble {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  z-index: 40; width: max-content; max-width: 240px;
  background: var(--paper); color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 6px 22px rgba(0,0,0,.16);
  padding: 9px 11px; font-size: .8rem; font-weight: 400; line-height: 1.4;
  text-align: left; white-space: normal; text-transform: none; letter-spacing: normal;
  /* verborgen tot getoond */
  visibility: hidden; opacity: 0; transition: opacity .12s ease;
  pointer-events: none;
}
.tip-bubble::before { /* pijltje */
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--line);
}
.th-star:hover .tip-bubble,
.info-tip:focus-visible ~ .tip-bubble,
.info-tip[aria-expanded="true"] ~ .tip-bubble {
  visibility: visible; opacity: 1; pointer-events: auto;
}
/* Houd de bubbel binnen beeld bij de meest rechtse kolommen op smalle schermen */
@media (max-width: 560px) {
  .tip-bubble { left: auto; right: 0; transform: none; }
  .tip-bubble::before { left: auto; right: 4px; transform: none; }
}
