/* ── iOS ZOOM FIX: voorkom inzoomen op inputs ── */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Standaard: desktop */
.nav-wrap nav {
  display: flex;
}

.mobile-menu {
  display: none;
}

/* Mobiel */
@media (max-width: 768px) {
  .nav-wrap nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}
:root {
  --bg: #0e1117;
  --surface: #161b27;
  --surface2: #1c2537;
  --surface3: #232e45;
  --accent: #00ff87;
  --cyan: #00d4ff;
  --purple: #a855f7;
  --text: #fff;
  --text-muted: #6b7a99;
  --border: #1e2d45;
  --red: #ff4757;
  --gold: #ffd700;
  --silver: #b8c4d0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Barlow", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    45deg,
    #fff 0,
    #fff 1px,
    transparent 1px,
    transparent 14px
  );
}

/* ── LOGIN WALL ── */
#login-wall {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(135deg, #0b1628, #0e1117);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#login-wall.hidden {
  display: none;
}
.lw-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  animation: slideUp 0.25s ease;
}
.lw-logo {
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}
.lw-title {
  font-family: "Barlow Condensed";
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.lw-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.lw-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: "Barlow";
  font-size: 15px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.18s;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 3px;
}
.lw-input:focus {
  border-color: var(--accent);
}
.lw-input.shake {
  animation: shake 0.35s ease;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}
.lw-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000;
  border: none;
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.lw-btn:hover {
  transform: translateY(-1px);
}
.lw-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  font-weight: 600;
}

/* ── HEADER ── */
header {
  background: linear-gradient(135deg, #0b1628 0%, #0e1117 60%);
  border-bottom: 2px solid rgba(0, 255, 135, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}
header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 135, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px 14px;
  max-width: 1060px;
  margin: 0 auto;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-svg {
  height: 38px;
  width: auto;
}
/* ── NAV + HAMBURGER ── */
.nav-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
nav {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
}
.nb {
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
  margin-bottom: -2px;
  white-space: nowrap;
}
.nb:hover {
  color: var(--text);
  border-bottom-color: rgba(0, 255, 135, 0.35);
}
.nb.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* hamburger */
.ham-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  transition: all 0.18s;
}
.ham-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 10px 0 10px;
  overflow: hidden;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu .nb {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  border-left: none;
  text-align: left;
  margin: 0;
  border-radius: 0;
}
.mobile-menu .nb:last-child {
  border-bottom: none;
}
.mobile-menu .nb.on {
  background: rgba(0, 255, 135, 0.08);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  border-bottom-color: var(--border);
}
@media (max-width: 640px) {
  nav {
    display: none;
  }
  .ham-btn {
    display: block;
  }
  .player-login-btn {
    display: none;
  }
}

.main {
  padding: 28px 18px;
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.sec {
  display: none;
  animation: fi 0.25s ease;
}
.sec.on {
  display: block;
}
@keyframes fi {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sec-title {
  font-family: "Barlow Condensed";
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.sec-title::before {
  content: "";
  width: 3px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
}

/* ── SUPERSTERREN ── */
.ss-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ss-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr;
  transition:
    border-color 0.2s,
    transform 0.15s;
  cursor: pointer;
}
.ss-card:nth-child(1) {
  background: linear-gradient(
    290deg,
    var(--surface) 20%,
    rgba(255, 215, 0, 0.50) 100%
  );
  
}

.ss-card:nth-child(2) {
  background: linear-gradient(
    290deg,
    var(--surface) 20%,
    rgba(192, 192, 192, 0.50) 100%
  );
}

.ss-card:nth-child(3) {
  background: linear-gradient(
    290deg,
    var(--surface) 20%,
    rgba(184, 115, 51, 0.50) 100%
  );
}
.ss-card:hover {
  border-color: rgba(0, 255, 135, 0.4);
  transform: translateY(-2px);
}
.ss-photo {
  position: relative;
  width: 190px;
  height: 100%;
  min-height: 300px;
  flex-shrink: 0;
  align-self: stretch;
}
.ss-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.ss-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--surface2), var(--surface3));
  font-size: 55px;
}
.ss-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 800;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--border);
}
.ss-rank.r1 {
  color: var(--gold);
  border-color: var(--gold);
}
.ss-rank.r2 {
  color: var(--silver);
  border-color: var(--silver);
}
.ss-rank.r3 {
  color: #cd7f32;
  border-color: #cd7f32;
}
.ss-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.ss-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ss-name {
  font-family: "Barlow Condensed";
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ss-rating {
  font-family: "Barlow Condensed";
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.ss-rating-lbl {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.ss-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ss-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ss-stat-k {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  font-family: "Barlow Condensed";
}
.ss-stat-v {
  font-family: "Barlow Condensed";
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.ss-stat-v.g {
  color: var(--accent);
}
.ss-stat-v.r {
  color: var(--red);
}
.ss-stat-v.w {
  color: var(--text);
}
.ss-bar-wrap {
  grid-column: 1/-1;
}
.ss-bar-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  font-family: "Barlow Condensed";
  margin-bottom: 4px;
}
.ss-bar-track {
  background: var(--surface2);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}
.ss-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 4px;
  transition: width 0.6s ease;
}
.ss-streak {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ss-streak-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-weight: 800;
}
.ss-streak-dot.W {
  background: rgba(0, 255, 135, 0.18);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 135, 0.35);
}
.ss-streak-dot.L {
  background: rgba(255, 71, 87, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 71, 87, 0.25);
}
.ss-streak-dot.D {
  background: rgba(150, 150, 150, 0.12);
  color: #888;
  border: 1px solid rgba(150, 150, 150, 0.25);
}
.chart-btn {
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.25);
  color: var(--accent);
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 2px;
  display: inline-block;
}
.chart-btn:hover {
  background: rgba(0, 255, 135, 0.2);
}

/* ── PLAYER MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fi 0.2s ease;
}
.modal-backdrop.hidden {
  display: none;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.modal-head {
  padding: 20px 24px 0;
  flex-shrink: 0;
}
.modal-player-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(0, 255, 135, 0.4);
  flex-shrink: 0;
}
.modal-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid rgba(0, 255, 135, 0.3);
  flex-shrink: 0;
}
.modal-player-name {
  font-family: "Barlow Condensed";
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.modal-player-rating {
  font-family: "Barlow Condensed";
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  flex-shrink: 0;
}
.modal-tab {
  padding: 10px 16px;
  font-family: "Barlow Condensed";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.modal-tab:hover {
  color: var(--text);
}
.modal-tab.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.modal-body {
  overflow-y: auto;
  padding: 20px 24px;
  flex: 1;
}
.chart-wrap {
  position: relative;
  height: 220px;
  margin-bottom: 4px;
}
/* match list inside modal */
.modal-match {
  background: var(--surface2);
  border-radius: 6px;
  padding: 11px 14px;
  margin-bottom: 7px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.modal-match-col {
  min-width: 0;
}
.modal-match-col.right {
  text-align: right;
}
.modal-match-lbl {
  font-family: "Barlow Condensed";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.modal-match-lbl.w {
  color: var(--accent);
}
.modal-match-lbl.l {
  color: var(--text-muted);
}
.modal-match-names {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}
.modal-match-names.w {
  color: var(--accent);
}
.modal-match-names.l {
  color: var(--text-muted);
}
.modal-match-score {
  font-family: "Barlow Condensed";
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  white-space: nowrap;
}
.modal-day-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
}
.modal-day-label {
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.modal-day-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── MATCH DETAIL MODAL ── */
.match-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 800;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  overflow-y: auto;
  animation: fi 0.2s ease;
}
.match-detail-backdrop.hidden {
  display: none;
}
.match-detail-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  overflow-y: auto;
  max-height: 90vh;
  position: relative;
}
.md-close-bar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
}
.md-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1;
  font-family: monospace;
}
.md-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.md-portraits {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 20px 16px 0;
}
.md-team {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.md-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.md-avatar {
  width: clamp(40px, 11vw, 54px);
  height: clamp(40px, 11vw, 54px);
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
}
.md-avatar.win {
  border-color: rgba(0, 255, 135, 0.5);
}
.md-avatar.lose {
  border-color: rgba(255, 71, 87, 0.35);
}
.md-avatar-ph {
  width: clamp(40px, 11vw, 54px);
  height: clamp(40px, 11vw, 54px);
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 5vw, 22px);
  border: 2px solid var(--border);
}
.md-avatar-ph.win {
  border-color: rgba(0, 255, 135, 0.5);
}
.md-avatar-ph.lose {
  border-color: rgba(255, 71, 87, 0.35);
}
.md-pname {
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: center;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-score-center {
  text-align: center;
}
.md-score-big {
  font-family: "Barlow Condensed";
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}
.md-score-win {
  color: var(--accent);
}
.md-score-lose {
  color: var(--text-muted);
}
.md-score-dash {
  color: var(--border);
}
.md-date {
  font-family: "Barlow Condensed";
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}
.md-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.md-section {
  background: var(--surface2);
  border-radius: 8px;
  padding: 12px 14px;
}
.md-section-title {
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.md-pred-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.md-pred-pct {
  font-family: "Barlow Condensed";
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.md-pred-pct.fav {
  color: var(--accent);
}
.md-pred-pct.dog {
  color: var(--text-muted);
}
.md-pred-lbl {
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}
.md-pred-center {
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.md-pred-bar {
  background: var(--surface);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  display: flex;
  margin-top: 8px;
}
.md-pred-bar-a {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  height: 100%;
  transition: width 0.4s;
}
.md-pred-bar-b {
  background: var(--red);
  height: 100%;
  transition: width 0.4s;
}
.md-h2h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.md-h2h-score {
  font-family: "Barlow Condensed";
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.md-h2h-a {
  color: var(--accent);
}
.md-h2h-dash {
  color: var(--border);
  font-size: 22px;
}
.md-h2h-b {
  color: var(--red);
}
.md-h2h-lbl {
  font-family: "Barlow Condensed";
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.md-delta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
/* ── MATCH HISTORY ── */
.day-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px;
}
.day-sep-label {
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.day-sep-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.match-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: background 0.15s;
}
.match-item:hover {
  background: var(--surface2);
}
.match-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.team-col {
  min-width: 0;
}
.team-col.right {
  text-align: right;
}
.team-label {
  font-family: "Barlow Condensed";
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}
.team-label.win-lbl {
  color: var(--accent);
}
.team-label.loss-lbl {
  color: var(--text-muted);
}
.mt {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.mt.win {
  color: var(--accent);
}
.mt.loss {
  color: var(--text-muted);
}
.mscore {
  font-family: "Barlow Condensed";
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  white-space: nowrap;
}
.sa {
  color: var(--accent);
}
.sb {
  color: var(--text-muted);
}
.rating-delta {
  display: inline-block;
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-top: 4px;
}
.rating-delta.pos {
  background: rgba(0, 255, 135, 0.13);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 135, 0.28);
}
.rating-delta.neg {
  background: rgba(255, 71, 87, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 71, 87, 0.22);
}
.rating-delta.draw {
  background: rgba(150, 150, 150, 0.1);
  color: #888;
  border: 1px solid rgba(150, 150, 150, 0.22);
}
.draw-score { color: #888 !important; }
.modal-match-lbl.d { color: #888; }
.modal-match-names.d { color: #888; }

/* ── PORTRAIT PICKER ── */
.vs-picker-layout {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}
.vs-picker-team {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vs-picker-lbl {
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.vs-picker-lbl.a {
  color: var(--accent);
}
.vs-picker-lbl.b {
  color: var(--red);
}
.vs-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 5px;
}
.vs-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.18s;
  user-select: none;
}
.vs-picker-card:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.05);
}
.vs-picker-card.selected-a {
  border-color: var(--accent);
  background: rgba(0, 255, 135, 0.08);
}
.vs-picker-card.selected-b {
  border-color: var(--red);
  background: rgba(255, 71, 87, 0.08);
}
.vs-picker-card.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}
.vs-picker-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  display: block;
}
.vs-picker-avatar-ph {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid var(--border);
}
.vs-picker-name {
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vs-picker-card.selected-a .vs-picker-name {
  color: var(--accent);
}
.vs-picker-card.selected-b .vs-picker-name {
  color: var(--red);
}
.vs-picker-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
}
.vs-picker-vs {
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 800;
  color: var(--text-muted);
}
.vs-picker-selected {
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}
.vs-picker-waiting {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
  font-family: "Barlow Condensed";
}
@media (max-width: 640px) {
  .vs-picker-layout {
    grid-template-columns: 1fr 48px 1fr;
    gap: 6px;
  }
  .vs-picker-avatar,
  .vs-picker-avatar-ph {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .vs-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 5px;
  }
  .vs-picker-middle {
    padding-top: 22px;
  }
  .vs-picker-vs {
    font-size: 16px;
  }
}

.h2h-team-picker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
}
.h2h-team-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.h2h-team-lbl {
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.h2h-team-lbl.a {
  color: var(--accent);
}
.h2h-team-lbl.b {
  color: var(--red);
}
.h2h-team-col select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  font-family: "Barlow";
  font-size: 13px;
  border-radius: 6px;
  outline: none;
  width: 100%;
  appearance: none;
  transition: border-color 0.18s;
}
.h2h-team-col select:focus {
  border-color: var(--accent);
}
.h2h-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
}
.h2h-vs-lbl {
  font-family: "Barlow Condensed";
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
}
/* portrait grid */
.h2h-portraits {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.h2h-team-portraits {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.h2h-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.h2h-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  background: var(--surface3);
}
.h2h-avatar.team-a {
  border-color: rgba(0, 255, 135, 0.5);
}
.h2h-avatar.team-b {
  border-color: rgba(255, 71, 87, 0.4);
}
.h2h-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--surface3);
}
.h2h-avatar-placeholder.team-a {
  border: 2px solid rgba(0, 255, 135, 0.5);
}
.h2h-avatar-placeholder.team-b {
  border: 2px solid rgba(255, 71, 87, 0.4);
}
.h2h-pname {
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--text-muted);
}
/* score display */
.h2h-scorebox {
  text-align: center;
}
.h2h-score {
  font-family: "Barlow Condensed";
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.h2h-score-a {
  color: var(--accent);
}
.h2h-score-b {
  color: var(--red);
}
.h2h-score-dash {
  color: var(--border);
  font-size: 36px;
}
.h2h-total {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: "Barlow Condensed";
}
.h2h-bar-wrap {
  margin-bottom: 22px;
}
.h2h-bar-track {
  background: var(--surface2);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  display: flex;
}
.h2h-bar-a {
  background: var(--accent);
  height: 100%;
  transition: width 0.5s ease;
}
.h2h-bar-b {
  background: var(--red);
  height: 100%;
  transition: width 0.5s ease;
}
.h2h-bar-pcts {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: "Barlow Condensed";
  font-size: 12px;
  color: var(--text-muted);
}
.h2h-matches-title {
  font-family: "Barlow Condensed";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.h2h-match {
  background: var(--surface2);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.h2h-match-teams {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}
.h2h-match-teams strong {
  color: var(--text);
}
.h2h-match-score {
  font-family: "Barlow Condensed";
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}
.h2h-match-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  white-space: nowrap;
}
.h2h-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── MATCH PREDICTION ── */
.pred-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 20px;
}
.pred-team {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pred-team-lbl {
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.pred-team select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  font-family: "Barlow";
  font-size: 13px;
  border-radius: 6px;
  outline: none;
  width: 100%;
  appearance: none;
  transition: border-color 0.18s;
}
.pred-team select:focus {
  border-color: var(--accent);
}
.pred-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 26px;
}
.pred-vs {
  font-family: "Barlow Condensed";
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
}
.pred-result {
  background: var(--surface2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 0;
}
.pred-result-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.pred-pct {
  font-family: "Barlow Condensed";
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}
.pred-pct.fav {
  color: var(--accent);
}
.pred-pct.dog {
  color: var(--text-muted);
}
.pred-team-name {
  font-family: "Barlow Condensed";
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.pred-center-lbl {
  text-align: center;
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pred-bar-track {
  background: var(--surface);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  display: flex;
  margin-bottom: 14px;
}
.pred-bar-a {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  height: 100%;
  transition: width 0.5s ease;
}
.pred-bar-b {
  background: linear-gradient(90deg, var(--red), #ff6b35);
  height: 100%;
  transition: width 0.5s ease;
}
.pred-ratings {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  letter-spacing: 0.5px;
}
.pred-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── SHARED ── */

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 4px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.page-btn {
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.18s;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.page-info {
  font-family: "Barlow Condensed";
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.empty span {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}
.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tab-btn.on {
  background: rgba(0, 255, 135, 0.12);
  border-color: rgba(0, 255, 135, 0.4);
  color: var(--accent);
}

@media (max-width: 640px) {
  .ss-card {
    grid-template-columns: 1fr;
  }
  .ss-photo {
    width: 100%;
    height: 180px;
  }
  .ss-photo img {
    object-position: center 20%;
  }
  .ss-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .ss-body {
    padding: 14px 16px;
  }

  .nb {
    padding: 10px 10px;
    font-size: 12px;
  }
  .pred-selectors {
    grid-template-columns: 1fr;
  }
  .pred-mid {
    display: none;
  }
  .h2h-portraits {
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
  }
  .h2h-score {
    font-size: 34px !important;
  }
  .h2h-avatar,
  .h2h-avatar-placeholder {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .h2h-pname {
    font-size: 10px;
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .h2h-team-portraits {
    gap: 4px;
  }
  .h2h-portrait {
    gap: 3px;
  }
}

:root {
  --bg: #1a1a2e;
  --surface: #16213e;
  --surface2: #0f3460;
  --surface3: #1a2a4a;
  --accent: #00ff87;
  --cyan: #00d4ff;
  --text: #fff;
  --text-muted: #8892a4;
  --border: #243351;
  --red: #ff4757;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Barlow", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    #fff 0,
    #fff 1px,
    transparent 1px,
    transparent 12px
  );
}

/* ── LOGIN ── */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f3460, #1a1a2e);
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-logo {
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}
.login-title {
  font-family: "Barlow Condensed";
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.login-box input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  font-family: "Barlow";
  font-size: 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.18s;
  margin-bottom: 12px;
}
.login-box input:focus {
  border-color: var(--accent);
}
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000;
  border: none;
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  margin-top: 4px;
}
.btn-login:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.login-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
}

/* ── ADMIN UI ── */
#admin-screen {
  display: none;
}
header {
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 60%);
  border-bottom: 3px solid var(--accent);
  overflow: hidden;
}
header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 135, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px 0;
  max-width: 1020px;
  margin: 0 auto;
  margin-bottom: 10px;
}
.logo-svg {
  height: 38px;
  width: auto;
}
.admin-badge {
  background: rgba(0, 255, 135, 0.15);
  border: 1px solid rgba(0, 255, 135, 0.3);
  color: var(--accent);
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 20px;
}
.btn-logout {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s;
}
.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}
nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 18px;
}
.nb {
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.18s;
  margin-bottom: -3px;
}
.nb:hover {
  color: var(--text);
  border-bottom-color: rgba(0, 255, 135, 0.4);
}
.nb.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.main {
  background: var(--bg);
  padding: 28px 18px;
  max-width: 1020px;
  margin: 0 auto;
}
.sec {
  display: none;
  animation: fi 0.25s ease;
}
.sec.on {
  display: block;
}
@keyframes fi {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sec-title {
  font-family: "Barlow Condensed";
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 28px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 20px;
}

label.fl {
  display: block;
  font-family: "Barlow Condensed";
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
select,
input[type="number"],
input[type="date"],
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: "Barlow";
  font-size: 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.18s;
  appearance: none;
  -webkit-appearance: none;
}
select:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 255, 135, 0.1);
}

.team-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}
.vs-lbl {
  font-family: "Barlow Condensed";
  font-size: 32px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  padding-top: 28px;
}
.team-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-hdr {
  font-family: "Barlow Condensed";
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 2px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.score-row .fg {
  flex: 1;
}
.sep {
  font-family: "Barlow Condensed";
  font-size: 28px;
  font-weight: 800;
  color: var(--text-muted);
  padding-top: 28px;
  flex-shrink: 0;
}
.btn-save {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000;
  border: none;
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 255, 135, 0.3);
}
.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.add-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.add-row input {
  flex: 1;
}
.btn-add {
  padding: 12px 22px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: "Barlow Condensed";
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-add:hover {
  background: var(--accent);
  color: #000;
}

/* ── MATCH HISTORY ── */
.day-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px;
}
.day-sep-label {
  font-family: "Barlow Condensed";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.day-sep-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.match-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: background 0.15s;
}
.match-item:hover {
  background: var(--surface3);
}
.match-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.team-col {
  min-width: 0;
}
.team-col.right {
  text-align: right;
}
.team-label {
  font-family: "Barlow Condensed";
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}
.team-label.win-lbl {
  color: var(--accent);
}
.team-label.loss-lbl {
  color: var(--text-muted);
}
.mt {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.mt.win {
  color: var(--accent);
}
.mt.loss {
  color: var(--text-muted);
}
.match-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mscore {
  font-family: "Barlow Condensed";
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  white-space: nowrap;
}
.sa {
  color: var(--accent);
}
.sb {
  color: var(--text-muted);
}
.btn-clear-all {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: "Barlow Condensed";
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s;
}
.btn-clear-all:hover {
  background: var(--red);
  color: #fff;
}
.del-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  opacity: 0.5;
  transition: all 0.15s;
  font-family: "Barlow";
  padding: 5px 12px;
  border-radius: 3px;
}
.del-btn:hover {
  opacity: 1;
  color: var(--red);
  border-color: var(--red);
}

/* ── PLAYER CARDS ── */
.pg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.pc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.pc-photo {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  cursor: pointer;
}
.pc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s;
}
.pc-photo:hover img {
  transform: scale(1.04);
}
.pc-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--surface2), var(--surface3));
  font-size: 52px;
}
.pc-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(
    to top,
    rgba(10, 10, 30, 0.9) 0%,
    transparent 100%
  );
  pointer-events: none;
}
.pcn {
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}
.pc-upload-hint {
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-top: 2px;
}
.pc-del-row {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  background: var(--surface);
}
.pc-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  opacity: 0.35;
  transition: all 0.15s;
  font-family: "Barlow";
}
.pc-del:hover {
  opacity: 1;
  color: var(--red);
}

/* ── CONFIRM MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 28px 28px 24px;
  max-width: 380px;
  width: 100%;
  animation: slideUp 0.18s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.modal-title {
  font-family: "Barlow Condensed";
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.modal-msg {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.modal-msg strong {
  color: var(--text);
}
.modal-btns {
  display: flex;
  gap: 10px;
}
.modal-btn-cancel {
  flex: 1;
  padding: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s;
}
.modal-btn-cancel:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.modal-btn-confirm {
  flex: 1;
  padding: 12px;
  background: var(--red);
  border: none;
  color: #fff;
  font-family: "Barlow Condensed";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s;
}
.modal-btn-confirm:hover {
  background: #e03040;
  transform: translateY(-1px);
}

.rating-delta {
  display: inline-block;
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 12px;
  margin-top: 4px;
}
.rating-delta.pos {
  background: rgba(0, 255, 135, 0.15);
  color: #00ff87;
  border: 1px solid rgba(0, 255, 135, 0.3);
}
.rating-delta.neg {
  background: rgba(255, 71, 87, 0.12);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.25);
}
.rating-delta.draw {
  background: rgba(150, 150, 150, 0.1);
  color: #888;
  border: 1px solid rgba(150, 150, 150, 0.22);
}
/* ── EDIT SCORE MODAL ── */
.edit-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-family: "Barlow";
  padding: 5px 10px;
  border-radius: 3px;
  transition: all 0.15s;
}
.edit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* ── ADMIN PORTRAIT PICKER ── */
.adm-picker-layout {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 16px;
}
.adm-picker-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm-picker-lbl {
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.adm-picker-lbl.t1 {
  color: var(--accent);
}
.adm-picker-lbl.t2 {
  color: var(--red);
}
.adm-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 7px;
}
.adm-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.15s;
  user-select: none;
}
.adm-picker-card:hover:not(.adm-disabled) {
  background: rgba(255, 255, 255, 0.05);
}
.adm-picker-card.adm-sel-t1 {
  border-color: var(--accent);
  background: rgba(0, 255, 135, 0.08);
}
.adm-picker-card.adm-sel-t2 {
  border-color: var(--red);
  background: rgba(255, 71, 87, 0.08);
}
.adm-picker-card.adm-disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}
.adm-picker-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  display: block;
}
.adm-picker-ph {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid var(--border);
}
.adm-picker-name {
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-picker-card.adm-sel-t1 .adm-picker-name {
  color: var(--accent);
}
.adm-picker-card.adm-sel-t2 .adm-picker-name {
  color: var(--red);
}
.adm-picker-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
}
.adm-vs {
  font-family: "Barlow Condensed";
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
}
.adm-sel-display {
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .adm-picker-layout {
    grid-template-columns: 1fr 40px 1fr;
    gap: 6px;
  }
  .adm-picker-avatar,
  .adm-picker-ph {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .adm-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 5px;
  }
}
.empty {
  text-align: center;
  padding: 44px;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: 6px;
}
.empty span {
  display: block;
  font-size: 30px;
  margin-bottom: 10px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
  z-index: 200;
  transition: transform 0.28s ease;
  pointer-events: none;
  font-family: "Barlow Condensed";
  letter-spacing: 1px;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .team-row {
    grid-template-columns: 1fr;
  }
  .vs-lbl {
    display: none;
  }
  .nb {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ── PLAYER CARD (Deelbare kaart) ── */
.player-card-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fi 0.2s ease;
}
.player-card-backdrop.hidden {
  display: none;
}
.player-card-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 340px;
  width: 100%;
}
.player-card-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.player-card-btn {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  font-family: "Barlow Condensed";
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
}
.player-card-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000;
}
.player-card-btn.primary:hover {
  transform: translateY(-1px);
}
.player-card-btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.player-card-btn.secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* De kaart zelf */
.pshare-card {
  width: 300px;
  border-radius: 20px;
  overflow: hidden;
  font-family: "Barlow Condensed", sans-serif;
  position: relative;
  flex-shrink: 0;
}
.pshare-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}
.pshare-bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0b1628, #0e2040);
}
.pshare-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 12, 28, 0.1) 0%,
    rgba(5, 12, 28, 0.5) 40%,
    rgba(5, 12, 28, 0.97) 72%,
    #050c1c 100%
  );
}
.pshare-inner {
  position: relative;
  z-index: 2;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.pshare-tier {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #0b1628;
  background: linear-gradient(135deg, #00ff87, #00d4ff);
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
}
.pshare-logo {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.pshare-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
}
.pshare-rating-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
  margin-bottom: 14px;
}
.pshare-rating-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #00ff87, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.pshare-rating-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pshare-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.pshare-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.pshare-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.pshare-stat-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  letter-spacing: 0.5px;
}
.pshare-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}
.pshare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.pshare-row-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
}
.pshare-row-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.pshare-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  margin-top: 8px;
}
.pshare-progress-bg {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.pshare-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff87, #00d4ff);
  border-radius: 4px;
}
.pshare-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pshare-badge {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}
.pshare-badge.accent {
  background: rgba(0, 255, 135, 0.15);
  border-color: rgba(0, 255, 135, 0.3);
  color: #00ff87;
}

/* ── PLAYER LOGIN BUTTON (header) ── */
.player-login-btn {
  padding: 7px 14px;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.3);
  color: var(--accent);
  font-family: "Barlow Condensed";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}
.player-login-btn:hover {
  background: rgba(0, 255, 135, 0.2);
}
.player-login-btn.logged-in {
  background: rgba(0, 255, 135, 0.15);
  border-color: var(--accent);
}

/* ── PLAYER LOGIN / DASH BACKDROP ── */
.pl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fi 0.2s ease;
}
.pl-backdrop.hidden {
  display: none;
}

/* ── LOGIN BOX ── */
.pl-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  position: relative;
  animation: slideUp 0.22s ease;
}
.pl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s;
}
.pl-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}
.pl-title {
  font-family: "Barlow Condensed";
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pl-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.pl-field {
  margin-bottom: 14px;
}
.pl-lbl {
  display: block;
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pl-pin {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: "Barlow";
  font-size: 18px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.18s;
  letter-spacing: 4px;
  text-align: center;
}
.pl-pin:focus {
  border-color: var(--accent);
}
.pl-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000;
  border: none;
  font-family: "Barlow Condensed";
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  margin-top: 4px;
}
.pl-btn:hover {
  transform: translateY(-1px);
}
.pl-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  font-weight: 600;
  text-align: center;
}

/* ── PLAYER DASHBOARD BOX ── */
.pl-dash-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.22s ease;
}
.pl-dash-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pl-dash-who {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.pl-dash-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(0,255,135,0.4);
  flex-shrink: 0;
}
.pl-dash-avatar-ph {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(0,255,135,0.3);
  flex-shrink: 0;
}
.pl-dash-name {
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pl-dash-rating {
  font-family: "Barlow Condensed";
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}
.pl-dash-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pl-dash-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.pl-dash-tab:hover { color: var(--text); }
.pl-dash-tab.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.pl-dash-body {
  overflow-y: auto;
  padding: 20px;
  flex: 1;
}
.pl-section-lbl {
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pl-team-row {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 10px;
  align-items: start;
}
.pl-team-lbl {
  font-family: "Barlow Condensed";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pl-team-lbl.a { color: var(--accent); }
.pl-team-lbl.b { color: var(--red); }
.pl-vs {
  font-family: "Barlow Condensed";
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  padding-top: 24px;
}
.pl-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 5px;
}
.pl-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.15s;
  user-select: none;
}
.pl-picker-card:hover:not(.pl-disabled) {
  background: rgba(255,255,255,0.05);
}
.pl-picker-card.pl-sel-a {
  border-color: var(--accent);
  background: rgba(0,255,135,0.08);
}
.pl-picker-card.pl-sel-b {
  border-color: var(--red);
  background: rgba(255,71,87,0.08);
}
.pl-picker-card.pl-disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}
.pl-picker-card.pl-self {
  border-color: rgba(0,255,135,0.4);
}
.pl-picker-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
}
.pl-picker-ph {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border: 2px solid var(--border);
}
.pl-picker-name {
  font-family: "Barlow Condensed";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-picker-card.pl-sel-a .pl-picker-name { color: var(--accent); }
.pl-picker-card.pl-sel-b .pl-picker-name { color: var(--red); }
.pl-score-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border-radius: 8px;
  padding: 12px 14px;
}
.pl-score-team {
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-score-inp {
  width: 58px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 6px;
  font-family: "Barlow Condensed";
  font-size: 28px;
  font-weight: 800;
  border-radius: 6px;
  outline: none;
  text-align: center;
  transition: border-color 0.18s;
  appearance: textfield;  
  flex-shrink: 0;
}
.pshare-actions {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

.pshare-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pshare-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.5);
}

.pshare-whatsapp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pl-score-inp::-webkit-outer-spin-button,
.pl-score-inp::-webkit-inner-spin-button { -webkit-appearance: none; }
.pl-score-inp:focus { border-color: var(--accent); }
.pl-score-dash {
  font-family: "Barlow Condensed";
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  text-align: center;
}

@media (max-width: 480px) {
  .pl-score-row {
    gap: 5px;
    padding: 10px 10px;
  }
  .pl-score-team {
    font-size: 10px;
  }
  .pl-score-inp {
    width: 48px;
    font-size: 24px;
    padding: 8px 4px;
  }
}
.pl-date-inp {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: "Barlow";
  font-size: 14px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.18s;
  color-scheme: dark;
}
.pl-date-inp:focus { border-color: var(--accent); }
.pl-submit-row {
  margin-top: 18px;
}
.pl-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000;
  border: none;
  font-family: "Barlow Condensed";
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.pl-submit-btn:hover { transform: translateY(-1px); }
.pl-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.pl-msg {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
  font-weight: 600;
}
.pl-msg.ok { color: var(--accent); }
.pl-msg.err { color: var(--red); }
.pl-photo-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 14px;
}
.pl-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.pl-upload-btn {
  display: inline-block;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "Barlow Condensed";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.18s;
}
.pl-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pl-logout-btn {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: "Barlow Condensed";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 6px;
  transition: all 0.18s;
}
.pl-logout-btn:hover {
  background: var(--red);
  color: #fff;
}

/* ── MODAL H2H TAB ── */
.modal-h2h-inner {
  padding: 4px 0;
}
.modal-h2h-inner .vs-picker-layout {
  margin-bottom: 16px;
}

/* ── MOBILE COLLAPSED PLAYER CARDS ── */
@media (max-width: 640px) {
  .ss-card {
    display: block;
    grid-template-columns: unset;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s;
  }

  /* Achtergrondafbeelding bij uitklappen */
  .ss-card.expanded::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--ss-bg-photo);
    background-size: cover;
    background-position: center top;
    opacity: 0.18;
    z-index: 0;
    border-radius: 10px;
    pointer-events: none;
  }
  .ss-card.expanded::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(14, 17, 23, 0.6) 50%,
      rgba(14, 17, 23, 0.92) 100%
    );
    z-index: 0;
    border-radius: 10px;
    pointer-events: none;
  }
  .ss-card-collapsed,
  .ss-card .ss-body {
    position: relative;
    z-index: 1;
  }

  /* Collapsed header row */
  .ss-card-collapsed {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    min-height: 64px;
  }

  /* Foto-wrapper */
  .ss-col-photo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .ss-col-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
  }
  .ss-col-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
  .ss-col-photo-ph {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid var(--border);
    flex-shrink: 0;
  }

  .ss-col-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .ss-col-name {
    font-family: "Barlow Condensed";
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ss-col-meta {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .ss-col-chip {
    font-family: "Barlow Condensed";
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
  }
  .ss-col-chip span { color: var(--text); }
  .ss-col-chip.win span { color: var(--accent); }

  .ss-col-rating {
    font-family: "Barlow Condensed";
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    text-align: right;
    line-height: 1;
  }
  .ss-col-rating span {
    font-size: 11px !important;
  }
  .ss-col-rating-lbl {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    text-align: right;
  }

  .ss-card:nth-child(1) .ss-card-collapsed { min-height: 80px; }
  .ss-card:nth-child(2) .ss-card-collapsed { min-height: 80px; }
  .ss-card:nth-child(3) .ss-card-collapsed { min-height: 80px; }

  .ss-col-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .ss-card.expanded .ss-col-arrow {
    transform: rotate(180deg);
  }

  /* Foto verbergen, body standaard dicht */
  .ss-card .ss-photo {
    display: none;
  }
  .ss-card .ss-body {
    display: none;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: fi 0.2s ease;
  }
  .ss-card.expanded .ss-body {
    display: flex;
  }

  /* Naam al in collapsed, verberg in expanded body */
  .ss-card.expanded .ss-header .ss-name {
    display: none;
  }
}

/* Op desktop: geen collapsed header tonen */
@media (min-width: 641px) {
  .ss-card-collapsed {
    display: none;
  }
}
