:root {
  --navy: #0b3a5b;
  --navy-dark: #082b44;
  --navy-soft: #eaf2f7;
  --accent: #f2b134;
  --surface: #ffffff;
  --surface-alt: #f3f6f8;
  --border: #dce4e9;
  --text: #17212b;
  --muted: #667784;
  --success: #25a55f;
  --warning: #f2d600;
  --danger: #dc3f45;
  --shadow: 0 10px 30px rgba(15, 45, 65, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eef3f6; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbfd 0, #eef3f6 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }

.main {
  width: 100%;
  min-height: 100vh;
  border: 0;
  border-collapse: collapse;
}
.main > tbody > tr > td { padding: 0; }

.app-shell {
  padding-top: 170px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 14px 100px;
}

.menu {
  position: fixed;
  z-index: 50;
  top: 0;
  left:0;
  right:0;
  width: 100%;
  border-collapse: collapse;
  background: rgba(248, 251, 253, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 58, 91, .08);
}
.menu > tbody > tr > td { padding: 0; }
.header-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 14px 10px;
}
.brand { display: block; width: min(88vw, 390px); margin: 0 auto 10px; }
.brand img { display: block; width: 100%; }

.nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 430px;
  margin: 0 auto;
}
.nav-link {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.nav-link:hover { transform: translateY(-2px); }
.nav-link.active { background: var(--surface); box-shadow: 0 5px 18px rgba(11, 58, 91, .16); }
.nav-link img { width: 48px; height: 48px; object-fit: contain; }

.filters {
  display: grid;
  grid-template-columns: minmax(110px, .75fr) minmax(180px, 1.5fr);
  gap: 10px;
  width: min(100%, 520px);
  margin: 12px auto 0;
}
.filters.single { grid-template-columns: minmax(160px, 260px); justify-content: center; }
select, .roundselect {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 38px 8px 14px;
  color: #fff;
  background-color: #263b4b;
  border: 1px solid #263b4b;
  border-radius: 13px;
  outline: none;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(8, 43, 68, .14);
}
select:focus { box-shadow: 0 0 0 3px rgba(11, 58, 91, .18); }
option { color: #fff; background: #263b4b; }

.page-content { width: 100%; padding-top: 24px; }
.page-title { margin: 0 0 16px; font-size: 22px; text-align: center; }

.match-list { width: 100%; max-width: 520px; margin: 0 auto; border-collapse: separate; border-spacing: 0; }
.match-list > tbody > tr > td { padding: 0; }
.matchdate {
  padding: 20px 4px 10px !important;
  color: var(--navy-dark);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.th_l, .th_c, .th_r {
  height: 38px;
  color: #fff;
  background: #263b4b;
  border: 0;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.th_l { width: 18px; border-radius: 18px 0 0 0; }
.th_r { width: 18px; border-radius: 0 18px 0 0; }
.th_c:first-of-type { text-align: left; }
.tf_l, .tf_c, .tf_r { height: 18px; background: var(--surface); }
.tf_l { border-radius: 0 0 0 20px; }
.tf_r { border-radius: 0 0 20px 0; }
.content_row > td { background: var(--surface); }
.match-list .content_row > td:first-child { border-left: 1px solid var(--border); }
.match-list .content_row > td:last-child { border-right: 1px solid var(--border); }
.match-list .tf_l, .match-list .tf_c, .match-list .tf_r { border-bottom: 1px solid var(--border); }
.match-list .tf_l { border-left: 1px solid var(--border); }
.match-list .tf_r { border-right: 1px solid var(--border); }

.vstime { width: 58px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.vshome { text-align: right; }
.vsaway { text-align: left; }
.vsmiddle { width: 42px; text-align: center; font-weight: 800; }
.clublogo { width: 62px; height: 82px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(15, 45, 65, .12)); }

.locked_input, .locked_input_green, .locked_input_yellow,
.box {
  display: inline-grid;
  place-items: center;
  width: 54px;
  min-height: 36px;
  padding: 3px 8px;
  color: #111;
  background: #fff;
  border: 1px solid #d4dde3;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(15, 45, 65, .04);
}
.locked_input_yellow, .box.yellow { background: #edff00; border-color: #edff00; }
.locked_input_green, .box.green { color: #fff; background: var(--success); border-color: var(--success); }
.box.red { color: #fff; background: var(--danger); border-color: var(--danger); }
.box.blue { color: #07334d; background: #62ccec; border-color: #62ccec; }
.box.yblue { background: linear-gradient(135deg, #edff00 50%, #62ccec 50%); }

.match-list select {
  width: 58px;
  min-height: 36px;
  padding: 4px 8px;
  text-align: center;
  border-radius: 999px;
}

details { width: 100%; margin: 8px 0 4px; }
details summary {
  padding: 8px 4px;
  cursor: pointer;
}

.endrank-position-select option {
  text-align: center;
  color: var(--navy-dark);
  font-size: 14px;
  font-weight: 700;
  list-style-position: inside;
}
.details_table {
  width: 100%;
  margin: 4px 0 18px;
  border-collapse: collapse;
  font-size: 12px;
}
.details_table td { padding: 6px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.details_table td:first-child { color: var(--muted); font-weight: 800; text-align: right; }
.event-image { width: 15px; }

.geluksvogel_select { width: 46px; margin: 8px; }
.radio_item { display: none !important; }
.label_item { display: inline-block; opacity: .25; cursor: pointer;
}

.endrank-position-select option {
  text-align: center; transition: opacity .2s, transform .2s; }
.radio_item:checked + .label_item { opacity: 1; transform: scale(1.08); }

.data-card {
  width: min(100%, 720px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.responsive-table { width: 100%; border-collapse: collapse; }
.responsive-table th {
  padding: 12px 10px;
  color: #fff;
  background: #263b4b;
  font-size: 12px;
  text-align: right;
  text-transform: uppercase;
}
.responsive-table th:first-child, .responsive-table td:first-child { text-align: left; }
.responsive-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); text-align: right; }
.responsive-table tr:last-child td { border-bottom: 0; }
.current-player td { background: #fffbd6; font-weight: 800; }
.money-cell { white-space: nowrap; }
.payment-icon { width: 15px; vertical-align: middle; }

.toggle-row { width: min(100%, 720px); margin: 14px auto 0; color: var(--muted); font-size: 14px; }
.toggle-row img { width: 34px; vertical-align: middle; margin-right: 7px; }

.ranking-card { width: min(100%, 520px); margin: 0 auto; padding: 18px; }
.voorspellingen { width: 100%; border-collapse: collapse; }
.voorspellingen th, .voorspellingen td { padding: 10px 7px; border-bottom: 1px solid var(--border); }
.voorspellingen th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.voorspellingen td { font-size: 16px; }
.voorspellingen button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #f5f7f8;
  border: 1px solid #cbd6dd;
  border-radius: 10px;
  cursor: pointer;
}

.endrank-position-select option {
  text-align: center;
}
.voorspellingen button img { width: 24px; height: 24px; }

.form-card {
  width: min(100%, 520px);
  margin: 0 auto 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card h2 { margin: 0 0 18px; font-size: 20px; }
.form-grid { display: grid; gap: 14px; }
.form-field label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
input[type="text"], input[type="password"], input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--text);
  background: #fbfcfd;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  outline: none;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 58, 91, .13);
}
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--navy); }
.button, .savebutton, input[type="submit"] {
  min-height: 46px;
  padding: 10px 22px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
}

.endrank-position-select option {
  text-align: center;
  box-shadow: 0 7px 16px rgba(11, 58, 91, .2);
}
.button:hover, .savebutton:hover, input[type="submit"]:hover { background: var(--navy-dark); }
.melding { color: var(--danger); font-weight: 700; text-align: center; }

.footer {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.footer td { padding: 10px 14px max(10px, env(safe-area-inset-bottom)); text-align: center; }
.savebutton { width: min(100%, 520px); margin: 0; }
.update_times { color: var(--muted); font-size: 11px; text-align: right; }

.login-page { min-height: 55vh; display: grid; place-items: center; }
.login-page .form-card { margin-top: 24px; }

@media (max-width: 560px) {
  .header-inner { padding-top: 8px; }
  .brand { width: min(86vw, 360px); margin-bottom: 8px; }
  .nav-grid { gap: 4px; }
  .nav-link img { width: 43px; height: 43px; }
  .filters { grid-template-columns: 118px 1fr; gap: 8px; }
  select, .roundselect { font-size: 12px; padding-left: 10px; }
  .app-shell { padding-right: 10px; padding-left: 10px; }
  .clublogo { width: 76px; height: 76px; }
  .responsive-table { font-size: 13px; }
  .responsive-table th, .responsive-table td { padding: 10px 6px; }
  .hide-mobile { display: none; }
  .form-card { padding: 18px 15px; }
}

@media (min-width: 900px) {
  .app-shell, .header-inner { width: min(100%, 1040px); }
  .data-card { width: min(100%, 980px); }
  .match-list { max-width: 560px; }
}


/* Compact prediction cards */
.match-list .content_row > td:first-child,
.match-list .content_row > td:last-child,
.match-list .tf_l,
.match-list .tf_r {
  border-left: 0;
  border-right: 0;
}

.match-list .content_row > td {
  padding-top: 0;
  left:0;
  right:0;
  padding-bottom: 0;
}

.match-list .content_row > td:nth-child(2) > table {
  border-collapse: separate;
  border-spacing: 0 3px;
}

.matchdate {
  padding-top: 14px !important;
  padding-bottom: 7px !important;
}

.th_l, .th_c, .th_r { height: 34px; }
.tf_l, .tf_c, .tf_r { height: 10px; }
.clublogo { width: 70px; height: 70px; }
.vsmiddle { width: 34px; }
.vstime { width: 76px; }
.vstime.prediction-name {
  padding: 2px 8px 2px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

/* Keep the final score and participant predictions visually identical. */
.match-list input.locked_input,
.match-list input.locked_input_green,
.match-list input.locked_input_yellow,
.match-list .box {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  min-height: 36px;
  height: 36px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 28px;
}

.match-list hr {
  margin: 7px 0 5px;
  border: 0;
  border-top: 1px solid var(--border);
}

.match-list details { margin: 3px 0; }
.match-list details summary { padding: 5px 0; }

@media (max-width: 560px) {
  .matchdate { padding-top: 12px !important; }
  .clublogo { width: 64px; height: 64px; }
  .vstime { width: 68px; }
  .vstime.prediction-name { font-size: 12px; }
  .match-list input.locked_input,
  .match-list input.locked_input_green,
  .match-list input.locked_input_yellow,
  .match-list .box {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    min-height: 34px;
    height: 34px;
    font-size: 17px;
    line-height: 26px;
  }
}

/* v3: tighter prediction rows and unclipped mobile filters */
.filters {
  grid-template-columns: minmax(138px, .8fr) minmax(0, 1.65fr);
}

select,
.roundselect {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px 14px;
}

/* Reduce the vertical space between participant predictions. */
.match-list .content_row > td:nth-child(2) > table {
  border-spacing: 0 1px;
}

.match-list .content_row > td:nth-child(2) > table > tbody > tr > td {
  padding-top: 0;
  left:0;
  right:0;
  padding-bottom: 0;
  line-height: 1.05;
}

.vstime.prediction-name {
  padding-top: 0;
  left:0;
  right:0;
  padding-bottom: 0;
  line-height: 1.1;
}

.match-list input.locked_input,
.match-list input.locked_input_green,
.match-list input.locked_input_yellow,
.match-list .box {
  min-height: 31px;
  height: 31px;
  padding-top: 1px;
  padding-bottom: 1px;
  font-size: 17px;
  line-height: 27px;
}

@media (max-width: 560px) {
  .filters {
    grid-template-columns: minmax(130px, .9fr) minmax(0, 1.8fr);
    gap: 8px;
  }

  select,
  .roundselect {
    min-width: 0;
    min-height: 40px;
    padding: 7px 30px 7px 12px;
    font-size: 13px;
    background-position: right 9px center;
  }

  .match-list input.locked_input,
  .match-list input.locked_input_green,
  .match-list input.locked_input_yellow,
  .match-list .box {
    min-height: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 26px;
  }
}

@media (max-width: 390px) {
  .filters {
    grid-template-columns: minmax(124px, .85fr) minmax(0, 1.7fr);
  }

  select,
  .roundselect {
    padding-left: 10px;
    font-size: 12px;
  }
}

/* v5: denser score rows and refreshed header */
.header-inner {
  padding-top: 8px;
  padding-bottom: 9px;
}

.brand {
  width: min(82vw, 360px);
  margin-bottom: 8px;
}

.nav-grid {
  gap: 7px;
  max-width: 410px;
}

.nav-link {
  position: relative;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f0f5f8 100%);
  border: 1px solid rgba(11, 58, 91, .12);
  border-radius: 17px;
  box-shadow: 0 5px 14px rgba(15, 45, 65, .09);
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 45, 65, .14);
}

.nav-link.active {
  background: linear-gradient(145deg, #0b3a5b, #082b44);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(8, 43, 68, .25);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
}

.nav-link img {
  width: 43px;
  height: 43px;
  transition: transform .18s ease;
}

.nav-link:hover img { transform: scale(1.04); }

.filters {
  margin-top: 10px;
}

/* Participant predictions: reduce space above and below every score. */
.match-list .content_row > td:nth-child(2) > table {
  border-collapse: collapse;
  border-spacing: 0;
}

.match-list .content_row > td:nth-child(2) > table > tbody > tr.content_row {
  height: 28px;
}

.match-list .content_row > td:nth-child(2) > table > tbody > tr.content_row > td {
  height: 28px;
  padding-top: 0;
  left:0;
  right:0;
  padding-bottom: 0;
  line-height: 1;
  vertical-align: middle;
}

.vstime.prediction-name {
  height: 28px;
  padding: 0 7px 0 0;
  line-height: 28px;
}

.match-list input.locked_input,
.match-list input.locked_input_green,
.match-list input.locked_input_yellow,
.match-list .box {
  min-height: 26px;
  height: 26px;
  padding-top: 0;
  left:0;
  right:0;
  padding-bottom: 0;
  font-size: 15px;
  line-height: 24px;
}

.match-list .vsmiddle {
  line-height: 26px;
}

.match-list .vsmiddle img {
  width: 22px !important;
  max-height: 24px;
  object-fit: contain;
}

@media (max-width: 560px) {
  .brand {
    width: min(88vw, 340px);
    margin-bottom: 7px;
  }

  .nav-grid { gap: 5px; }

  .nav-link {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 15px;
  }

  .nav-link img {
    width: 40px;
    height: 40px;
  }

  .match-list .content_row > td:nth-child(2) > table > tbody > tr.content_row,
  .match-list .content_row > td:nth-child(2) > table > tbody > tr.content_row > td {
    height: 27px;
  }

  .vstime.prediction-name {
    height: 27px;
    line-height: 27px;
  }

  .match-list input.locked_input,
  .match-list input.locked_input_green,
  .match-list input.locked_input_yellow,
  .match-list .box {
    min-height: 25px;
    height: 25px;
    font-size: 15px;
    line-height: 23px;
  }
}

@media (max-width: 390px) {
  .nav-grid { gap: 3px; }
  .nav-link {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
  }
  .nav-link img { width: 37px; height: 37px; }
}


/* FussballJunkies header skin v3
   Load this after style/global.css, or paste it at the end of global.css. */
:root {
  --fj-header-top: #031d31;
  --fj-header-mid: #073a5b;
  --fj-header-bottom: #082d47;
  --fj-yellow: #f6bd12;
}

.menu {
  position: fixed;
  top: 0;
  left:0;
  right:0;
  z-index: 50;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 83% 18%, rgba(246, 189, 18, .20), transparent 23%),
    radial-gradient(circle at 18% 82%, rgba(25, 112, 154, .32), transparent 30%),
    linear-gradient(145deg, var(--fj-header-top) 0%, var(--fj-header-mid) 58%, var(--fj-header-bottom) 100%);
  border-bottom: 0;
  box-shadow: 0 12px 28px rgba(0, 27, 46, .22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.menu::before,
.menu::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.menu::before {
  inset: 0;
  opacity: .20;
  background:
    linear-gradient(105deg, transparent 0 33%, rgba(255,255,255,.10) 33% 34%, transparent 34% 48%, rgba(255,255,255,.06) 48% 49%, transparent 49%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 58px);
}
.menu::after {
  right: -8%;
  bottom: -66px;
  width: 48%;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(246,189,18,.14), transparent 67%);
  transform: rotate(-7deg);
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 14px 14px;
}

.brand {
  display: block;
  width: min(100%, 720px);
  margin: 0 auto 7px;
  padding: 0 3px;
  line-height: 0;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 122px;
  object-fit: contain;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(5px, 1.8vw, 11px);
  width: min(100%, 550px);
  margin: 0 auto;
}
.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(48px, 11vw, 64px);
  height: clamp(48px, 11vw, 64px);
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13,75,111,.98), rgba(4,42,68,.98));
  border: 1px solid rgba(178, 221, 244, .30);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -8px 18px rgba(0,20,35,.18),
    0 5px 12px rgba(0,20,35,.30);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav-link:hover { transform: translateY(-2px); }
.nav-link.active {
  background: linear-gradient(180deg, #f7c928, #e5a400);
  border-color: rgba(255, 222, 88, .95);
  box-shadow:
    0 0 0 5px rgba(246,189,18,.16),
    inset 0 1px 0 rgba(255,255,255,.42),
    0 7px 16px rgba(0,20,35,.34);
}
.nav-link.active::after { display: none; }
.nav-link img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.18));
}

.filters {
  display: grid;
  grid-template-columns: minmax(132px, .75fr) minmax(0, 1.55fr);
  gap: 10px;
  width: min(100%, 650px);
  margin: 13px auto 0;
}
.filters.single {
  grid-template-columns: minmax(180px, 300px);
  justify-content: center;
}
.filters select,
.filters .roundselect {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 9px 43px 9px 15px;
  overflow: hidden;
  color: #fff;
  background-color: rgba(3, 46, 73, .88);
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 51%,
    calc(100% - 13px) 51%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  border: 1px solid rgba(166, 214, 239, .30);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 6px 14px rgba(0,20,35,.20);
  font-size: clamp(13px, 2.8vw, 16px);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}
.filters select:focus {
  border-color: rgba(246, 189, 18, .85);
  box-shadow: 0 0 0 3px rgba(246, 189, 18, .18);
}

@media (max-width: 560px) {
  .header-inner { padding: 8px 10px 12px; }
  .brand { margin-bottom: 5px; }
  .brand img { max-height: 94px; }
  .nav-grid { gap: 5px; }
  .filters { gap: 7px; margin-top: 10px; }
  .filters select,
  .filters .roundselect {
    min-height: 44px;
    padding-left: 12px;
    padding-right: 34px;
    border-radius: 14px;
    background-position:
      calc(100% - 16px) 51%,
      calc(100% - 10px) 51%;
  }
}

@media (max-width: 390px) {
  .brand img { max-height: 82px; }
  .nav-grid { gap: 3px; }
  .filters { grid-template-columns: minmax(118px, .72fr) minmax(0, 1.55fr); }
  .filters select,
  .filters .roundselect { font-size: 12px; }
}

/* Header v7: stadium atmosphere + new slim wordmark */
.menu {
  /* Keep the header in the document flow, then pin it while scrolling. */
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  background-color: #031d31;
  background-image:
    linear-gradient(180deg, rgba(1, 17, 29, .18) 0%, rgba(1, 17, 29, .46) 58%, rgba(1, 17, 29, .82) 100%),
    url('../images/header-stadium.svg');
  background-size: cover;
  background-position: center 38%;
  box-shadow: 0 10px 26px rgba(0, 25, 43, .24);
}
.menu::before {
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 205, 43, .22), transparent 28%),
    radial-gradient(circle at 20% 22%, rgba(80, 180, 226, .15), transparent 27%);
}
.menu::after {
  inset: auto 0 0;
  width: auto;
  height: 1px;
  background: rgba(255,255,255,.16);
  transform: none;
}
.header-inner {
  width: min(100%, 820px);
  padding: 8px 14px 14px;
}
.brand {
  width: min(100%, 780px);
  margin-bottom: 5px;
  padding: 0;
}
.brand img {
  max-height: 108px;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.24));
}
.nav-grid {
  width: min(100%, 560px);
  gap: clamp(5px, 1.8vw, 10px);
}
.nav-link {
  background: linear-gradient(180deg, rgba(10,72,108,.92), rgba(3,38,61,.94));
  border-color: rgba(190,226,244,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -9px 18px rgba(0,18,31,.18),
    0 6px 16px rgba(0,14,25,.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.nav-link.active {
  background: linear-gradient(180deg, rgba(255,212,55,.98), rgba(229,158,0,.98));
  border-color: rgba(255,235,144,.95);
  box-shadow: 0 0 0 4px rgba(247,195,34,.18), 0 7px 18px rgba(0,13,23,.42);
}
.filters {
  margin-top: 11px;
}
.filters select,
.filters .roundselect {
  background-color: rgba(2, 37, 60, .90);
  border-color: rgba(188, 224, 242, .32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px rgba(0,15,27,.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 560px) {
  .menu { background-position: center 35%; }
  .header-inner { padding: 6px 10px 11px; }
  .brand { margin-bottom: 3px; }
  .brand img { max-height: 84px; }
  .nav-link {
    width: clamp(46px, 12vw, 58px);
    height: clamp(46px, 12vw, 58px);
  }
}

@media (max-width: 390px) {
  .brand img { max-height: 75px; }
  .header-inner { padding-left: 8px; padding-right: 8px; }
}

/* Automatisch opslaan van voorspellingen */
.score_drop_down:disabled { opacity: .65; cursor: wait; }

/* Autosave-status per wedstrijd */
.match-autosave-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 150px;
  min-height: 24px;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
  white-space: normal;
  transition: opacity .2s ease, transform .2s ease;
}
.match-autosave-status:empty {
  display: none;
}
.match-autosave-status.saving {
  color: #6c5100;
  background: #fff3cd;
}
.match-autosave-status.success {
  color: #155724;
  background: #d4edda;
}
.match-autosave-status.error {
  color: #721c24;
  background: #f8d7da;
}
.match-list table.autosave-saving {
  opacity: .82;
}
.match-list table.autosave-success {
  animation: autosave-confirmation .7s ease;
}
.match-list table.autosave-error {
  animation: autosave-error-shake .32s ease;
}
@keyframes autosave-confirmation {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, .36); }
  100% { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
}
@keyframes autosave-error-shake {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(-3px); }
  66% { transform: translateX(3px); }
}
@media (max-width: 560px) {
  .match-autosave-status {
    max-width: 105px;
    margin-left: 4px;
    padding: 3px 6px;
    font-size: 10px;
  }
}

/* Informatieve statusregel onder iedere open wedstrijd */
.match-feedback-row td {
  padding: 5px 10px 12px;
  text-align: center;
}
.match-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-height: 29px;
  color: #536474;
  font-size: 12px;
  line-height: 1.35;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
.missing-prediction-label,
.all-predictions-complete {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
}
.missing-prediction-label {
  color: #526271;
}
.missing-player-list {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.missing-player {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(29, 67, 91, .13);
  border-radius: 999px;
  color: #29465a;
  background: #f1f5f7;
  font-weight: 650;
  white-space: nowrap;
}
.all-predictions-complete {
  color: #277342;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(40, 167, 69, .09);
}
.match-feedback.autosave-message {
  width: fit-content;
  min-width: 126px;
  margin-inline: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
}
.match-feedback.autosave-message.saving {
  color: #6c5100;
  background: #fff3cd;
}
.match-feedback.autosave-message.success {
  color: #155724;
  background: #d4edda;
}
.match-feedback.autosave-message.error {
  color: #721c24;
  background: #f8d7da;
}
.match-feedback-fallback:empty,
.match-feedback-row:has(.match-feedback-fallback:empty) {
  display: none;
}

/* De oude status naast de dropdown wordt niet meer gebruikt. */
.match-autosave-status { display: none !important; }

@media (max-width: 560px) {
  .match-feedback-row td { padding: 4px 7px 10px; }
  .match-feedback {
    gap: 5px;
    font-size: 11px;
  }
  .missing-prediction-label {
    width: 100%;
    justify-content: center;
  }
  .missing-player {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 10px;
  }
}


/* Overzicht openstaande voorspellingen per speelronde */
.round-missing-summary {
  width: min(760px, calc(100% - 28px));
  margin: 18px auto 10px;
  padding: 14px 18px;
  border: 1px solid rgba(29, 67, 91, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 24px rgba(14, 48, 69, .06);
  text-align: center;
}
.round-missing-summary__title { display:flex; align-items:center; justify-content:center; gap:7px; color:#29465a; font-size:14px; font-weight:850; }
.round-missing-summary__text { margin-top:4px; color:#657684; font-size:12px; }
.round-missing-summary__players { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; margin-top:10px; }
.round-missing-player { display:inline-flex; align-items:center; min-height:26px; padding:3px 10px; border:1px solid rgba(29,67,91,.13); border-radius:999px; color:#29465a; background:#f1f5f7; font-size:12px; font-weight:700; }
.round-missing-summary--complete { border-color:rgba(40,167,69,.16); background:rgba(40,167,69,.07); }
.round-missing-summary--complete .round-missing-summary__title { color:#277342; }
.match-feedback-row.is-empty { display:none; }
@media (max-width:560px) {
  .round-missing-summary { width:calc(100% - 20px); margin-top:12px; padding:12px 10px; border-radius:13px; }
  .round-missing-summary__title { font-size:13px; }
  .round-missing-summary__text { font-size:11px; }
  .round-missing-player { min-height:23px; padding:2px 8px; font-size:10px; }
}

/* Compacte invullijst voor wedstrijden die nog niet zijn begonnen */
.prediction-list-card {
  width:min(900px, calc(100% - 28px)); margin:18px auto 26px; overflow:hidden;
  border:1px solid rgba(29,67,91,.14); border-radius:20px; background:#fff;
  box-shadow:0 12px 30px rgba(13,45,65,.08);
}
.prediction-list-card__header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; background:linear-gradient(135deg,#163b54,#244f68); color:#fff; }
.prediction-list-card__header h2 { margin:0; font-size:20px; }
.prediction-list-card__header p { margin:4px 0 0; color:rgba(255,255,255,.72); font-size:12px; }
.prediction-list-card__count { flex:0 0 auto; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.13); font-size:12px; font-weight:800; }
.prediction-list { padding:0 18px 16px; }
.prediction-list__date { margin:14px 0 6px; color:#6c7e8b; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.prediction-row { position:relative; display:grid; grid-template-columns:52px minmax(120px,1fr) auto minmax(120px,1fr) 34px; align-items:center; gap:10px; min-height:70px; padding:10px 4px; border-top:1px solid rgba(29,67,91,.09); transition:background .2s ease, box-shadow .2s ease; }
.prediction-list__date + .prediction-row { border-top:0; }
.prediction-row__time { color:#29465a; font-size:13px; font-weight:900; }
.prediction-row__team { display:flex; align-items:center; gap:9px; min-width:0; color:#17384d; font-size:13px; font-weight:750; }
.prediction-row__team span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.prediction-row__team img { width:36px; height:36px; object-fit:contain; flex:0 0 auto; }
.prediction-row__team--home { justify-content:flex-end; text-align:right; }
.prediction-row__team--away { justify-content:flex-start; }
.prediction-row__score { display:flex; align-items:center; gap:7px; font-weight:900; }
.prediction-row__score select { width:54px; min-height:40px; padding:0 7px; border:0; border-radius:15px; color:#fff; background:#243f52; font-weight:850; text-align:center; }
.prediction-row__bird { display:flex; justify-content:center; }
.prediction-row__bird .geluksvogel_select { width:27px; height:27px; object-fit:contain; }
.prediction-row__feedback { position:absolute; right:4px; bottom:1px; min-height:14px; font-size:10px; }
.prediction-row.autosave-saving { background:rgba(30,95,132,.05); }
.prediction-row.autosave-success { background:rgba(40,167,69,.07); }
.prediction-row.autosave-error { background:rgba(198,52,52,.07); }
.started-matches { margin-top:26px; }
.started-matches__title { margin:0 auto 10px; max-width:520px; color:#15384f; text-align:center; font-size:18px; text-transform:uppercase; }
@media (max-width:700px) {
  .prediction-list-card { width:calc(100% - 16px); border-radius:15px; }
  .prediction-list-card__header { padding:14px; }
  .prediction-list-card__header p { display:none; }
  .prediction-list { padding:0 10px 10px; }
  .prediction-row { grid-template-columns:42px minmax(0,1fr) auto minmax(0,1fr); gap:6px; min-height:64px; }
  .prediction-row__bird { grid-column:4; position:absolute; right:0; top:3px; transform:scale(.82); }
  .prediction-row__team { font-size:11px; gap:5px; }
  .prediction-row__team img { width:29px; height:29px; }
  .prediction-row__score select { width:45px; min-height:36px; border-radius:13px; padding:0 3px; }
  .prediction-row__feedback { right:0; bottom:-1px; }
}


/* Compact open-match list refinements */
.prediction-row {
  grid-template-columns: 52px 48px auto 48px 34px;
  justify-content: center;
}
.prediction-row__team {
  justify-content: center;
  text-align: center;
}
.prediction-row__team--home,
.prediction-row__team--away {
  justify-content: center;
  text-align: center;
}
.prediction-row__team img {
  width: 38px;
  height: 38px;
}
.prediction-row__score select {
  box-sizing: border-box;
  width: 46px;
  min-height: 34px;
  padding: 0 18px 0 6px;
  border: 1px solid rgba(31, 66, 87, .18);
  border-radius: 9px;
  color: #17384d;
  background-color: #f4f7f9;
  font-size: 14px;
  font-weight: 800;
  line-height: 34px;
  text-align: center;
  text-align-last: center;
  box-shadow: inset 0 1px 2px rgba(16, 49, 69, .05);
}
.prediction-row__score select:hover {
  border-color: rgba(31, 66, 87, .32);
  background-color: #fff;
}
.prediction-row__score select:focus {
  outline: 2px solid rgba(34, 105, 145, .18);
  outline-offset: 1px;
  border-color: #5a8aa5;
  background-color: #fff;
}
.started-matches { margin-top: 22px; }

@media (max-width: 640px) {
  .prediction-row {
    grid-template-columns: 40px 38px auto 38px;
    justify-content: stretch;
  }
  .prediction-row__team img {
    width: 31px;
    height: 31px;
  }
  .prediction-row__score select {
    width: 42px;
    min-height: 32px;
    line-height: 32px;
    padding-left: 5px;
    padding-right: 16px;
    border-radius: 8px;
    font-size: 13px;
  }
}

/* Refined compact prediction list: smaller title, adjacent away logo and fixed feedback column */
.prediction-list-card__header h2 {
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: .01em;
}

.prediction-row {
  grid-template-columns: 52px 48px auto 48px 128px 34px;
  justify-content: center;
  column-gap: 10px;
}

.prediction-row__team--away {
  justify-content: flex-start;
  text-align: left;
}

.prediction-row__feedback,
.prediction-row .match-feedback {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 128px;
  min-height: 24px;
  padding: 0 0 0 10px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prediction-row .match-feedback:empty {
  visibility: hidden;
}

.prediction-row .match-feedback.autosave-message.saving {
  color: #647985;
}

.prediction-row .match-feedback.autosave-message.success {
  color: #258642;
}

.prediction-row .match-feedback.autosave-message.error {
  color: #b53838;
}

@media (max-width: 700px) {
  .prediction-list-card__header h2 {
    font-size: 14px;
  }

  .prediction-row {
    grid-template-columns: 38px 34px auto 34px minmax(76px, 1fr);
    column-gap: 6px;
  }

  .prediction-row__feedback,
  .prediction-row .match-feedback {
    width: 100%;
    min-width: 76px;
    font-size: 9px;
  }

  .prediction-row__bird {
    position: absolute;
    right: 2px;
    top: 2px;
    transform: scale(.72);
  }
}


/* ENDRANK: directe positiekeuze met compacte bediening en clublogo's. */
.endrank-table th:last-child,
.endrank-table td:last-child {
  text-align: center;
}

.endrank-club-cell {
  min-width: 0;
}

/* Keep the TD as a real table-cell so its bottom border aligns with the row. */
.endrank-club-content {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.endrank-club-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.endrank-club-name {
  min-width: 0;
}

.endrank-position-cell {
  width: 92px;
}

.endrank-position-select {
  width: 52px;
  height: 34px;
  min-height: 34px;
  padding: 2px 16px 2px 4px;
  color: var(--navy);
  background-color: rgba(255, 255, 255, .72);
  border: 1px solid rgba(11, 58, 91, .22);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.endrank-position-select option {
  text-align: center;
}

.endrank-position-select:hover {
  background-color: #fff;
  border-color: rgba(11, 58, 91, .42);
}

.endrank-position-select:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 58, 91, .12);
}

.endrank-help {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 520px) {
  .ranking-card { padding: 12px; }
  .endrank-table th,
  .endrank-table td { padding: 8px 5px; }
  .endrank-club-content { gap: 7px; }
  .endrank-club-logo { width: 24px; height: 24px; flex-basis: 24px; }
  .endrank-position-cell { width: 66px; }
  .endrank-position-select { width: 50px; height: 34px; min-height: 34px; }
}


/* Voorspelling: houd de geluksvogel vrij van de autosave-melding. */
@media (max-width: 700px) {
  .prediction-row {
    grid-template-columns: 38px 34px minmax(0, auto) 34px 30px;
    grid-template-rows: minmax(42px, auto) 18px;
    row-gap: 0;
    padding-bottom: 5px;
  }

  .prediction-row__time,
  .prediction-row__team--home,
  .prediction-row__score,
  .prediction-row__team--away {
    grid-row: 1;
  }

  .prediction-row__bird {
    position: static;
    grid-column: 5;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    transform: none;
  }

  .prediction-row__bird .geluksvogel_select {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .prediction-row__feedback,
  .prediction-row .match-feedback {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 18px;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    text-align: center;
  }
}

