/* =========================================================
   Preferred roles (PR)
   ========================================================= */
#players .ph-pr-wrap { padding-top: 4px; grid-column: 1 / -1 !important; }
#players .ph-pr-title { font-weight: 650; margin: 10px 0 8px; letter-spacing: .2px; }

#players .ph-pr-line { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
#players .ph-pr-line:first-child { border-top: 0; padding-top: 6px; }

/* Layout vars */
:root{
  --ph-pr-left-w: 104px;
  --ph-pr-row-h: 32px;
  --ph-pr-chip-h: 28px;
  --ph-pr-chip-nudge: -1px;
}

/* 2 columns: left label, right chips */
#players .ph-pr-head{
  display: grid !important;
  grid-template-columns: var(--ph-pr-left-w) 1fr;
  column-gap: 12px;
  align-items: center !important;
  min-height: var(--ph-pr-row-h);
}

/* Hide chips when line disabled */
#players .ph-pr-line[data-enabled="0"] .ph-pr-chips { display:none; }

/* Left (checkbox + label) */
#players .ph-pr-linecheck{
  display: inline-flex;
  align-items: center !important;
  gap: 10px;
  height: var(--ph-pr-row-h);
  min-width: 0;
  font-weight: 650;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  line-height: 1 !important;
}
#players .ph-pr-linecheck input{
  margin: 0 !important;
  transform: none !important;
}
#players .ph-pr-linecheck span{
  display: inline-flex;
  align-items: center;
  height: var(--ph-pr-row-h);
  line-height: 1 !important;
  font-weight: 500;
}

/* Right (chips container) */
#players .ph-pr-chips{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:nowrap;
  min-width:0;
  height: var(--ph-pr-row-h);
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(var(--ph-pr-chip-nudge));
}

/* PR chips */
#players .ph-pr-chip{
  flex: 1 1 0;
  min-width: 0;
  width:auto !important;

  box-sizing: border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  appearance:none;
  -webkit-appearance:none;
  border-radius: 6px;

  height: var(--ph-pr-chip-h) !important;
  padding: 0 10px !important;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);

  font: inherit;
  font-weight: 650;
  font-size: 12px !important;
  letter-spacing: .25px !important;
  line-height: 1 !important;
  text-transform: uppercase;

  box-shadow: none !important;
  cursor:pointer;
  user-select:none;

  transition: transform .06s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
#players .ph-pr-chip:active{ transform: translateY(1px); }
#players .ph-pr-chip.is-on{
  border-color: rgba(255,255,255,.50) !important;
  background: rgba(255,255,255,.20) !important;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.12),
    0 6px 18px rgba(0,0,0,.20) !important;
}

/* small screen tweak */
@media (max-width: 360px){
  :root{ --ph-pr-left-w: 120px; }
}

/* Add player: compact labels (use data-label) */
#players .ph-row-add .ph-field-compact{
  position: relative;
  padding-top: 12px;         /* ruimte voor mini label */
}

#players .ph-row-add .ph-field-compact .ph-label{
  display: none !important;  /* verberg grote label div */
}

#players .ph-row-add .ph-field-compact::before{
  content: attr(data-label);
  position: absolute;
  top: -3px;
  left: 2px;

  font-size: 11px;
  font-weight: 450;
  letter-spacing: .2px;
  color: rgba(255,255,255,.65);
  pointer-events: none;
}

/* Reason tag above player name */
#players .ph-titlewrap{
  position: relative;
  min-width: 0;
}

#players .ph-reason-tag{
  position: absolute;
  top: -25px;
  left: 0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .25px;
  text-transform: uppercase;
  color: rgba(255, 200, 0, .95);  /* dezelfde familie als pending */
  opacity: .95;                   /* mag iets meer poppen */
  pointer-events: none;
  background: rgba(255, 200, 0, .22);
  border: 1px solid rgba(255, 200, 0, .25);
  padding: 1px 6px;
  border-radius: 6px;
}

#players .ph-prematch .ph-pres-reason-badge.is-moved {
  color: rgba(255, 179, 71, .95);
  background: rgba(255, 179, 71, .12);
  border-color: rgba(255, 179, 71, .35);
}

/* Players toolbar card (search + future filters) */
#players .ph-tools-card, #prematch .ph-tools-card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);

  padding: 10px;
  margin: 0 0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Make the search start exactly at the same left edge as the H2 */
#players .ph-tools-left{
  flex: 1 1 auto;
  min-width: 0;
}

/* Search input: a bit taller, and not too wide (leave room for filters) */
#players .ph-tools-search{
  height: 30px;
  line-height: 30px;
  padding-left: 12px;
}

/* reserved area for upcoming filters */
#players .ph-tools-right{
  flex: 0 0 auto;
  min-width: 120px;      /* space placeholder for point 6 */
}

/* small screens: search takes full width */
@media (max-width: 520px){
  #players .ph-tools-card, #prematch .ph-tools-card{
    flex-direction: column;
    align-items: stretch;
  }
  #players .ph-tools-right{
    min-width: 0;
  }
}

/* Center toolbar contents reliably */
#players .ph-tools-card, #prematch .ph-tools-card{
  align-items: center;
}

/* iOS optical centering for input baseline */
@supports (-webkit-touch-callout: none) {
  #players .ph-tools-search{
    transform: translateY(1px);
  }
}

/* iOS: keep search aligned left + sane width */
@supports (-webkit-touch-callout: none) {
  #players .ph-tools-card, #prematch .ph-tools-card{
    justify-content: flex-start !important;
  }

  #players .ph-tools-left{
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  #players .ph-tools-right{
    margin-left: auto !important; /* reserve right slot */
    min-width: 120px !important;
  }
}

/* iOS: vertically center the search input inside the tools card */
@supports (-webkit-touch-callout: none) {
  #players .ph-tools-card, #prematch .ph-tools-card{
    align-items: center !important;
  }

  #players .ph-tools-search{
    height: 40px !important;
    line-height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;

    transform: translateY(5px) !important; /* optical centering (try 1px if too much) */
  }
}

/* iOS: prevent auto-zoom on input focus (needs font-size >= 16px) */
@supports (-webkit-touch-callout: none) {
  #players input.ph-input,
  #players select.ph-input,
  #players textarea.ph-input{
    font-size: 16px !important;
  }
}

/* =========================================================
   Players list layout + cards
   ========================================================= */
#playersSaveBtn{ display:none !important; }

/* make each player row feel like a card */
#players .ph-row{
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  padding: 10px 10px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;
}

/* tighten inside spacing */
#players .ph-row-top{ gap: 8px !important; padding-bottom: 6px !important; }
#players .ph-row-title{ min-width: 0 !important; font-weight: 650; }
#players .ph-row-bottom{
  margin-top: 8px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}

/* Small screens: allow wrap to 2 cols then 1 col */
@media (max-width: 520px){
  #players .ph-row-add .ph-row-bottom > div:first-child{
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 360px){
  #players .ph-row-add .ph-row-bottom > div:first-child{
    grid-template-columns: 1fr !important;
  }
}

#players .ph-subtle { font-weight: 400; font-size: 12px; opacity: 0.68; }

.ph-h2actions{ margin-left: auto; display:flex; gap:10px; }

/* Keep Add player actions right-aligned */
.ph-pagehead{
  display:flex;
}
.ph-pagehead-left{
  flex: 1 1 auto !important;
  min-width: 0;
}
.ph-h2actions{
  margin-left: auto !important;
  display:flex;
  gap:10px;
}

/* H2 + autosave indicator on one line */
.ph-h2row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  width: 100% !important;
}
.ph-h2row .ph-h2{
  margin: 8px 0 8px;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
}

#playersDirty{
  margin-left: auto !important;
  white-space: nowrap;
  font-size: 12px;
  opacity: .72;
}
#playersDirty[data-state="dirty"],
#playersDirty[data-state="saving"]{ color: rgba(255,255,255,.72); }
#playersDirty[data-state="saved"]{ color: rgba(46, 213, 115, .85); }
#playersDirty[data-state="error"]{ color: rgba(255, 71, 87, .85); }

/* viewport autosave toast */
.ph-save-toast{
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;

  padding: 8px 10px;
  border-radius: 10px;

  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);

  font-size: 12px;
  font-weight: 650;
  letter-spacing: .2px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.ph-save-toast[data-state="saved"]{ color: rgba(46, 213, 115, .9); }
.ph-save-toast[data-state="error"]{ color: rgba(255, 71, 87, .9); }

#players .ph-row-add .ph-add-grid{
  display: grid !important;
  grid-template-columns: 1.4fr 0.7fr 1.4fr !important; /* Name | Birth year | Starts */
  gap: 10px !important;
  align-items: end !important;
}

/* Responsive fallback */
@media (max-width: 520px){
  #players .ph-row-add .ph-add-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 360px){
  #players .ph-row-add .ph-add-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Prevent add-player grid from overflowing the card */
#players .ph-row-add .ph-add-grid{
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 1.4fr) !important;
}

#players .ph-row-add .ph-add-grid > .ph-field-compact{
  min-width: 0 !important;   /* critical for grid shrink */
}

#players .ph-row-add .ph-add-grid .ph-input{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* =========================================================
   Badges (as controls) + approval colors
   ========================================================= */
#players .ph-row-badges{
  gap: 10px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
#players .ph-row-badges .ph-badge{
  padding: 5px 10px !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  border-radius: 6px !important;
  letter-spacing: .2px !important;
}

/* approval badge base */
#players .ph-row-badges .ph-badge[data-badge="approval"]{
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.92) !important;
}
#players .ph-row-badges .ph-badge[data-badge="approval"][data-approval="approved"]{
  background: rgba(46, 213, 115, .12) !important;
  border-color: rgba(46, 213, 115, .35) !important;
  color: rgba(210, 255, 228, .95) !important;
}
#players .ph-row-badges .ph-badge[data-badge="approval"][data-approval="pending"]{
  background: rgba(255, 200, 0, .12) !important;
  border-color: rgba(255, 200, 0, .35) !important;
  color: rgba(255, 245, 210, .95) !important;
}
#players .ph-row-badges .ph-badge[data-badge="approval"][data-approval="blocked"]{
  background: rgba(255, 71, 87, .12) !important;
  border-color: rgba(255, 71, 87, .35) !important;
  color: rgba(255, 215, 220, .95) !important;
}

/* badge buttons */
.ph-badge-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  user-select:none;
  padding: 8px 9px !important;
}
.ph-badge-btn:active{ transform: translateY(1px); }

.ph-badge-chev{
  display:inline-block;
  font-size: 12px;
  font-weight: 800;
  opacity:.9;
  transform: rotate(-90deg);
  transition: transform .16s ease, opacity .16s ease;
  line-height: 1.15;
}
.ph-badge-btn[data-open="1"] .ph-badge-chev{ transform: rotate(0deg); }

/* =========================================================
   Editor chips (no panel)
   ========================================================= */
.ph-editor{
  margin-top: 10px;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.ph-editor-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.ph-editor-label{ display:none !important; } /* you wanted labels gone */

.ph-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:auto !important;
  flex: 0 0 auto !important;

  height: 28px;
  padding: 0 10px;
  border-radius: 8px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);

  font: inherit;
  font-weight: 650;
  font-size: 12px !important;
  letter-spacing: .25px !important;
  line-height: 1 !important;
  text-transform: uppercase;

  cursor:pointer;
  user-select:none;
}
.ph-chip.is-on{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.38);
}

/* =========================================================
   Nudge (no panel) + FIX vertical alignment
   ========================================================= */
.ph-nudge{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.ph-nudge .ph-nudge-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
/* Critical: make text align to chip box-height */
.ph-nudge .ph-nudge-text{
  display:flex;
  align-items:center;
  line-height: 28px; /* matches .ph-chip height */
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.85);
  font-weight: 400;
}

/* =========================================================
   Inputs (focus) + date quirks (kept as-is)
   ========================================================= */
.ph-input:focus,
.ph-input:focus-visible,
.ph-input:-moz-focusring{
  outline: none !important;
  box-shadow: none !important;
}
.ph-input:focus{ border-color: inherit !important; }

/* Date input quirks (scoped) */
#players input[type="date"].ph-input{
  padding-right: 44px !important;
  background-clip: padding-box;
}
#players input[type="date"].ph-input:focus{
  outline: none !important;
  box-shadow: none !important;
  border-color: rgba(255,255,255,.28) !important;
}
#players input[type="date"].ph-input::-webkit-calendar-picker-indicator{
  opacity: .85;
  margin-right: 6px;
  padding: 0;
}
#players input[type="date"].ph-input::-webkit-datetime-edit{ padding: 0; }
#players .ph-field-compact input[type="date"].ph-input{
  padding-right: 11px !important;
  padding-left: 10px !important;
}
  /* --- FINAL: preferred roles chips vertical centering --- */
#players .ph-pr-chip{
  margin: 0 !important;           /* kill any inherited button margins */
}

#players .ph-pr-chips{
  align-items: center !important; /* hard lock */
  height: var(--ph-pr-row-h) !important;
  transform: translateY(-1px) !important;  /* optical centering (tweak -1/-2 if needed) */
}

#players .ph-pr-linecheck{
  height: var(--ph-pr-row-h) !important;   /* ensure left side matches row height */
}

/* FINAL: badge spacing in player card header */
#players .ph-row-top .ph-row-badges{
  display: flex !important;
  gap: 12px !important;
}

/* FINAL: chevron optical alignment */
#players .ph-badge-chev{
  position: relative;
  top: 1px;            /* zet naar 3px als je nog iets lager wil */
}

/* FINAL: slightly reduce player card bottom whitespace */
#players .ph-row{
  padding-bottom: 2px !important; /* was effectively ~10px via padding:10px */
}

/* FINAL: a bit more breathing room above player header */
#players .ph-row{
  padding-top: 15px !important;  /* was 10px */
}

/* FINAL: optical balance inside badge (chevron eats less space) */
#players .ph-badge-chev{
  margin-left: -2px;   /* trek chevron iets naar de tekst toe */
  margin-right: -1px;  /* trek rechterrand iets in */
}

#players .ph-badge-btn{ gap: 5px !important; }

/* FINAL: nudge row perfectly centered */
#players .ph-nudge{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  min-height: 28px !important; /* match chip height */
  background: rgba(255, 200, 0, .12) !important;
  border-color: rgba(255, 200, 0, .35) !important;
  color: rgba(255, 245, 210, .95) !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 200, 0, .35) !important;
  border-radius: 8px;
}

#players .ph-nudge-text{
  display:flex !important;
  align-items:center !important;
  height: 28px !important;
  line-height: 28px !important;
  margin: 0 !important;
}

#players .ph-nudge-actions{
  display:flex !important;
  align-items:center !important;
  gap: 8px;
  height: 28px !important;
}

/* Force buttons to exactly match the row box */
#players .ph-nudge-actions .ph-chip{
  height: 28px !important;
  line-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* FINAL: editor date inputs match chip height + vertical alignment */
#players .ph-editor-row{
  align-items: center !important;
}

#players .ph-editor-row input[type="date"].ph-input{
  height: 28px !important;
  line-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

#players .ph-editor-row input[type="date"].ph-input{
  padding-left: 10px !important;
  padding-right: 11px !important; /* of jouw bestaande waarde */
}

/* FINAL: optical align date input with chips */
#players .ph-editor-row input[type="date"].ph-input{
  transform: translateY(-6px) !important;  /* tweak -1 / -2 if needed */
}

/* FINAL: add-player card needs a bit more bottom padding */
#players .ph-row.ph-row-add{
  padding-bottom: 16px !important; /* kies 10–14px naar smaak */
}

/* FINAL: round inputs + date pickers */
#players .ph-input,
#players input[type="date"].ph-input,
#players select.ph-input{
  border-radius: 6px !important; /* kies 8–12px naar smaak */
}

/* FINAL: add-player inputs a bit taller */
#players .ph-row-add .ph-input{
  height: 36px !important;
  line-height: 36px !important;
}

#players .ph-row-add .ph-input{
  padding-left: 6px !important;
}

/* FINAL: iOS date input overflow fix (Add Player card) */
#players .ph-row-add .ph-field-compact{
  min-width: 0 !important;     /* grid item must be allowed to shrink */
  overflow: hidden !important; /* clip native date control overflow */
}

#players .ph-row-add input[type="date"].ph-input{
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* =========================================================
   FINAL: Add-player date input – iOS-only overflow + iOS centering
   + Desktop/Firefox reset (prevents icon overlapping text)
   ========================================================= */

/* --- iOS Safari only: keep overflow fix, and center the date text --- */
@supports (-webkit-touch-callout: none) {
  #players .ph-row.ph-row-add .ph-add-grid > label.ph-field.ph-field-compact{
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #players .ph-row.ph-row-add .ph-add-grid > label.ph-field.ph-field-compact input[type="date"].ph-input{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;

    -webkit-appearance: none !important;
    appearance: none !important;

    height: 36px !important;
    line-height: 36px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 12px !important;
    padding-right: 11px !important; /* space for iOS calendar icon */
    box-sizing: border-box !important;
  }

  /* Vertically center the date text inside iOS date input */
  #players .ph-row.ph-row-add input[type="date"].ph-input::-webkit-datetime-edit{
    line-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #players .ph-row.ph-row-add input[type="date"].ph-input::-webkit-datetime-edit-fields-wrapper{
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* --- Desktop (incl Firefox): reset native appearance + restore FF padding fix --- */
@supports not (-webkit-touch-callout: none) {
  #players .ph-row.ph-row-add input[type="date"].ph-input{
    -webkit-appearance: auto !important;
    appearance: auto !important;

    height: 36px !important;
    line-height: 36px !important;

    /* This was your earlier “FF icon” fix – keep it for desktop */
    padding-right: 11px !important;
    padding-left: 12px !important;
    box-sizing: border-box !important;
  }
}

/* FINAL: remove iOS blue focus ring on inputs */
#players .ph-input:focus,
#players .ph-input:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* iOS Safari sometimes draws an inner glow on form controls */
#players input[type="date"].ph-input:focus{
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* FINAL: show native calendar icon for editor date pickers (iOS) */
#players .ph-editor-row input[type="date"].ph-input{
  -webkit-appearance: auto !important;
  appearance: auto !important;
}

/* Search: wrapper should match input width, so the clear icon sits INSIDE the input */
#players .ph-search-wrap{
  position: relative;
  display: inline-block;
}

/* input fills the wrapper */
#players .ph-tools-search{
  padding-right: 34px !important; /* room for clear icon */
}

/* Clear icon: subtle, in-input, right aligned */
#players .ph-search-clear{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 16px;
  height: 16px;

  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;

  color: rgba(58,58,58,.6);   /* anthracite */
  font-size: 18px;
  line-height: 16px;
  font-weight: 700;

  cursor: pointer;
  user-select: none;
  opacity: .9;
}

#players .ph-search-clear:hover{ color: rgba(58,58,58,.9); }
#players .ph-search-clear:active{
  transform: translateY(-50%) translateY(1px);
  opacity: 1;
}

/* PulsoHub timeline fill (slower + glow) */
.ph-pm-tl-line {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.ph-pm-tl-lineFill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 999px;

  /* Accent fill */
  background: #2DE2E6;

  /* PulsoHub glow */
  box-shadow:
    0 0 10px rgba(45, 226, 230, 0.55),
    0 0 22px rgba(45, 226, 230, 0.35);

  /* Slower, smoother */
  transition: width 700ms cubic-bezier(.2,.9,.15,1);
}

.ph-pm-tl-line.is-filled .ph-pm-tl-lineFill { width: 100%; }

/* Subtle animated sheen (optional but nice) */
.ph-pm-tl-lineFill::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-18deg);
  opacity: 0;
}

.ph-pm-tl-line.is-filled .ph-pm-tl-lineFill::after {
  opacity: 1;
  animation: phTlSheen 900ms ease-out 1;
}

@keyframes phTlSheen {
  from { transform: translateX(0) skewX(-18deg); }
  to   { transform: translateX(260%) skewX(-18deg); }
}

/* Matches overview meta row with fixed type slot */
.ph-row-meta--match{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 10px;
  margin-bottom: 4px;
}

.ph-row-meta-type{
  min-width: 0;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28px;
  text-transform: uppercase;
  color: rgba(45,226,230,.95);
}

.ph-row-meta-type--empty{
  visibility: hidden;
}

.ph-row-meta-date{
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  color: rgba(255,255,255,.68);
}

.ph-row-meta-phase{
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  color: rgba(255,255,255,.68);
}

.ph-row-meta-live{
  color: rgba(255,255,255,.92);
  font-weight: 650;
}

.ph-row-meta-flag{
  opacity: .9;
}

.ph-row-meta-main{
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-meta-badge--competition{
  color: rgba(45,226,230,.95);
}

.ph-meta-badge--friendly{
  color: rgba(255, 200, 0, .95);
}

.ph-meta-badge--tournament{
  color: rgba(46,213,115,.95);
}

#matches .ph-section{
  margin-top: 26px;
}

#matches .ph-section:first-child{
  margin-top: 0;
}

#matches .ph-section-title{
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}

#matches .ph-section-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Match row actions */
.ph-matchitem{
  position: relative;
}

.ph-matchitem-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 11px;
  margin-right: 1px;
  margin-top: 1px;
}

.ph-swipe-action{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
}

.ph-swipe-action--edit{
  background: rgba(45,226,230,0.10);
  border-color: rgba(45,226,230,0.20);
  color: rgba(220,250,255,0.95);
}

.ph-swipe-action--delete{
  background: rgba(255,71,87,0.12);
  border-color: rgba(255,71,87,0.25);
  color: rgba(255,220,224,0.95);
}

.ph-swipe-action--archive{
  background: rgba(255,200,0,0.12);
  border-color: rgba(255,200,0,0.25);
  color: rgba(255,245,210,0.95);
}

/* Match action reveal */
.ph-matchitem{
  position: relative;
  overflow: hidden;
}

.ph-matchitem-actions{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;

  padding-left: 14px;
  padding-right: 0;
  box-sizing: border-box;

  opacity: 1;
  pointer-events: none;
  transform: none;
  transition: none;

  z-index: 1;          /* under the row */
  overflow: hidden;    /* hide any child bleed */
}

.ph-matchitem[data-state="PRE_MATCH"] .ph-matchitem-actions{
  width: 196px;
}

.ph-matchitem[data-state="FINISHED"] .ph-matchitem-actions{
  width: 126px;
}

.ph-matchitem.is-actions-open .ph-matchitem-actions{
  pointer-events: auto;
}

.ph-matchitem > .ph-row-link{
  position: relative;
  z-index: 2;
  display: block;
  background: #0f172a;
  will-change: transform;
  transition:
    transform 500ms cubic-bezier(.2,1,.2,1),
    box-shadow 220ms ease;
}

.ph-matchitem.is-actions-open > .ph-row-link::before{
  opacity: 1;
}

.ph-matchitem[data-state="PRE_MATCH"].is-actions-open > .ph-row-link{
  transform: translateX(-196px);
}

.ph-matchitem[data-state="FINISHED"].is-actions-open > .ph-row-link{
  transform: translateX(-126px);
}

.ph-matchitem.is-actions-open > .ph-row-link{
  transform: translateX(-156px);
}

.ph-matchitem[data-state="PRE_MATCH"].is-actions-open > .ph-row-link{
  transform: translateX(-196px);
}

.ph-matchitem[data-state="FINISHED"].is-actions-open > .ph-row-link{
  transform: translateX(-126px);
}

.ph-swipe-action{
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 84px;
  height: 100%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 0;
  padding: 0;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2px;
  cursor: pointer;
  color: rgba(255,255,255,0.95);
}

.ph-swipe-action--edit{
  background: rgba(45,226,230,0.18);
  color: rgba(220,250,255,0.95);
}

.ph-swipe-action--delete{
  background: rgba(255,71,87,0.86);
  color: #fff;
}

.ph-swipe-action--archive{
  min-width: 104px;
  background: rgba(255,200,0,0.22);
  color: rgba(255,245,210,0.98);
}

#matches .ph-row-link{
  display: block;
  padding: 0;
}

.ph-matchitem > .ph-row-link:active{
  transform: scale(0.995);
}

.ph-matchitem[data-state="PRE_MATCH"].is-actions-open > .ph-row-link:active{
  transform: translateX(-196px);
}

.ph-matchitem[data-state="FINISHED"].is-actions-open > .ph-row-link:active{
  transform: translateX(-126px);
}

#matches .ph-matchitem,
#matches .ph-row-link{
  touch-action: pan-y;
}

.ph-matchitem-actions::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 184px;
  pointer-events: none;
  /*box-shadow: inset 0 0 1px #000;*/
}

/* =========================================================
   Matches sections / accordion
   ========================================================= */

#matches .ph-section{
  margin-top: 28px;
}

#matches .ph-section:first-child{
  margin-top: 0;
}

#matches .ph-section-toggle,
#matches .ph-phase-toggle{
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

#matches .ph-section-title,
#matches .ph-section-titletext{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .72px;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

#matches .ph-section-title--static{
  margin-bottom: 14px;
}

#matches .ph-section-toggle{
  margin-bottom: 14px;
}

#matches .ph-section-count,
#matches .ph-phase-count{
  color: rgba(255,255,255,.42);
}

#matches .ph-section-chev,
#matches .ph-phase-chev{
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  color: rgba(255,255,255,.54);
}

#matches .ph-section-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#matches .ph-section-list--finished{
  gap: 18px;
}

#matches .ph-phasegroup{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#matches .ph-phase-toggle{
  padding-top: 2px;
}

#matches .ph-phase-titletext{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .62px;
  text-transform: uppercase;
  color: rgba(255,255,255,.50);
}

#matches .ph-phase-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0;
}

/* hoofdsectie toggles */
#matches .ph-section{
  margin-top: 24px;
}

#matches .ph-section:first-child{
  margin-top: 0;
}

#matches .ph-section-toggle{
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

#matches .ph-section-toggle::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.06);
}

#matches .ph-section{
  border-top: 0 !important;
  border-bottom: 0 !important;
}

#matches .ph-section-list,
#matches .ph-section-list--finished,
#matches .ph-phasegroup{
  border-top: 0 !important;
}

/* subtiel sterkere subheaders */
#matches .ph-section-title,
#matches .ph-section-titletext{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .72px;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
}

#matches .ph-phase-titletext{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .62px;
  text-transform: uppercase;
  color: rgba(255,255,255,.54);
}

/* chevrons */
#matches .ph-section-chev,
#matches .ph-phase-chev{
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  color: rgba(255,255,255,.68);
  transition: transform 160ms ease, color 160ms ease, opacity 160ms ease;
}

#matches .ph-section-toggle[aria-expanded="true"] .ph-section-chev,
#matches .ph-phase-toggle[aria-expanded="true"] .ph-phase-chev{
  transform: rotate(0deg);
}

#matches .ph-section-toggle[aria-expanded="false"] .ph-section-chev,
#matches .ph-phase-toggle[aria-expanded="false"] .ph-phase-chev{
  transform: rotate(0deg);
}

#matches .ph-friendlygroup{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0; /* laat hem onder de fase vallen */
}

#matches .ph-friendly-toggle{
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

#matches .ph-friendly-titletext{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .62px;
  text-transform: uppercase;
  color: rgba(255,255,255,.54);
}

#matches .ph-friendly-toggle .ph-phase-chev{
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  color: rgba(255,255,255,.68);
  transition: transform 160ms ease, color 160ms ease, opacity 160ms ease;
}

#matches .ph-phase-list--friendly{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0;
}

#matches .ph-matchitem[data-state="PRE_MATCH"] .ph-row-meta-date{
  color: rgba(255,255,255,1);
  font-weight: 500;
  /*text-transform: uppercase;*/
}

.ph-create-summary {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}

.ph-btn-secondary {
  opacity: 0.7;
}

.readonly {
  opacity: 0.6;
}

/* =========================================================
   CREATE MATCH — compactere layout
   ========================================================= */

.ph-create-intro{
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,.82);
}

.ph-create-section{
  margin-top: 10px !important;
  padding-top: 0 !important;
}

.ph-create-section .ph-section-title{
  margin-bottom: 6px !important;
}

.ph-create-section .ph-section-list{
  gap: 8px !important;
}

.ph-create-section .ph-grid-2{
  gap: 8px 14px !important;
}

.ph-create-section .ph-row.ph-row--field{
  padding: 4px 0 !important;
  min-height: auto !important;
}

.ph-create-section .ph-row-meta{
  margin-bottom: 4px !important;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

.ph-create-section input,
.ph-create-section select{
  height: 38px;
}

.ph-create-section .ph-field-hint{
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255,255,255,.62);
}

.ph-create-section + .ph-create-section{
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 8px !important;
  margin-top: 8px !important;
}


/* =========================================================
   CREATE MATCH — form controls polish
   ========================================================= */

.ph-create-section input,
.ph-create-section select{
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.96);
  box-shadow: none;
}

.ph-create-section input:focus,
.ph-create-section select:focus{
  outline: none;
  border-color: rgba(45,226,230,.42);
  box-shadow: 0 0 0 3px rgba(45,226,230,.10);
}

.ph-create-section select:disabled,
#competitionPhaseKey.readonly,
#competitionPhaseKey:disabled{
  opacity: .62;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.05);
}


/* =========================================================
   CREATE MATCH — summary / action block
   Make the OUTER row the real card
   ========================================================= */

.ph-row--create-actions{
  margin-top: 10px !important;
  padding: 14px 14px 12px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;
}

.ph-create-summary{
  width: 100%;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ph-create-summary-line{
  min-height: 18px;
  line-height: 1.35;
}

#summary-line-1{
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.96);
}

#summary-line-2{
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

/* action zone */
.ph-create-actions{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* primary button */
.ph-create-actions .ph-btn{
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, #2f80ff 0%, #256ee8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .2px;
  box-shadow:
    0 10px 24px rgba(37,110,232,.28),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.ph-create-actions .ph-btn:hover{
  filter: brightness(1.04);
}

.ph-create-actions .ph-btn:active{
  transform: translateY(1px);
}

/* cancel link */
.ph-btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.66);
  opacity: .92;
}

.ph-btn-secondary:hover{
  color: rgba(255,255,255,.84);
}


/* =========================================================
   CREATE MATCH — mobile compactness
   ========================================================= */

@media (max-width: 520px){
  .ph-create-section{
    margin-top: 8px !important;
  }

  .ph-create-section .ph-grid-2{
    gap: 8px 0 !important;
  }

  .ph-row--create-actions{
    padding: 12px 12px 10px !important;
    border-radius: 14px !important;
  }

  .ph-create-actions .ph-btn{
    min-height: 48px;
    font-size: 15px;
  }
}

/* Create match: native select dropdown text must stay dark on light option list */
.ph-create-section select{
  color: rgba(255,255,255,.96);
}

.ph-create-section select option{
  color: #111827;
  background: #ffffff;
}

.ph-create-section select optgroup{
  color: #111827;
  background: #ffffff;
}

.ph-create-section select option,
.ph-create-section select optgroup{
  color: #111827;
  background: #ffffff;
}

.ph-row-meta-updated{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 200, 0, .92);
  white-space: nowrap;
}

.ph-mid--planned-time{
  font-size: 14px;
  font-weight: 750;
  color: rgba(255,255,255,.96);
  letter-spacing: .2px;
}

@media (max-width: 520px){
  .ph-mid--planned-time{
    font-size: 14px;
  }
}

.ph-row-meta-live{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.92);
  font-weight: 650;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* consistent met badges */
}

/* =========================================================
   CREATE MATCH — iPhone / iOS fixes
   ========================================================= */

@supports (-webkit-touch-callout: none) {

  /* iets compactere mobile rhythm */
  .ph-create-section{
    margin-top: 8px !important;
  }

  .ph-create-section .ph-section-title{
    margin-bottom: 4px !important;
  }

  .ph-create-section .ph-grid-2{
    gap: 8px 12px !important;
  }

  .ph-create-section .ph-row.ph-row--field{
    padding: 2px 0 !important;
  }

  .ph-create-section .ph-row-meta{
    margin-bottom: 4px !important;
  }

  /* all create-match controls need true box sizing */
  .ph-create-section input,
  .ph-create-section select{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    height: 38px !important;
    line-height: 38px !important;

    font-size: 16px !important; /* prevent iOS zoom */
    border-radius: 10px !important;

    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* grid children must be allowed to shrink */
  .ph-create-section .ph-grid-2 > *{
    min-width: 0 !important;
  }

  .ph-create-section .ph-row{
    min-width: 0 !important;
    overflow: hidden;
  }

  /* iOS native date/time controls: contain them */
  .ph-create-section input[type="date"],
  .ph-create-section input[type="time"]{
    -webkit-appearance: none !important;
    appearance: none !important;

    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 12px !important;
    box-sizing: border-box !important;
  }

  /* give date a little room for calendar icon */
  .ph-create-section input[type="date"]{
    padding-right: 40px !important;
  }

  /* give time room for native spinner/clock area */
  .ph-create-section input[type="time"]{
    padding-right: 12px !important;
  }

  /* vertically center iOS date/time text */
  .ph-create-section input[type="date"]::-webkit-datetime-edit,
  .ph-create-section input[type="time"]::-webkit-datetime-edit{
    padding: 0 !important;
    line-height: 38px !important;
  }

  .ph-create-section input[type="date"]::-webkit-datetime-edit-fields-wrapper,
  .ph-create-section input[type="time"]::-webkit-datetime-edit-fields-wrapper{
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 38px !important;
  }

  .ph-create-section input[type="date"]::-webkit-calendar-picker-indicator,
  .ph-create-section input[type="time"]::-webkit-calendar-picker-indicator{
    opacity: .72;
    margin: 0;
  }

  /* selects on iPhone need a bit less right padding than desktop */
  .ph-create-section select{
    padding-right: 34px !important;
  }

  /* helper text slightly tighter */
  .ph-create-section .ph-field-hint{
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  /* readonly phase should still be readable */
  #competitionPhaseKey.readonly,
  #competitionPhaseKey:disabled{
    opacity: .72 !important;
  }

  /* action card breathing room above Safari bottom bar */
  .ph-row--create-actions{
    margin-top: 10px !important;
    margin-bottom: 110px !important;
  }

  /* slightly tighter card padding on mobile */
  .ph-row--create-actions{
    padding: 12px 12px 10px !important;
    border-radius: 14px !important;
  }

  .ph-create-actions{
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .ph-create-actions .ph-btn{
    min-height: 48px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  .ph-btn-secondary{
    min-height: 20px !important;
    font-size: 13px !important;
  }
}

/* kleine hover polish op desktop voor toggles */
@media (hover: hover) and (pointer: fine) {
  #matches .ph-section-toggle:hover .ph-section-titletext,
  #matches .ph-phase-toggle:hover .ph-phase-titletext{
    color: rgba(255,255,255,.78);
  }

  #matches .ph-section-toggle:hover .ph-section-chev,
  #matches .ph-phase-toggle:hover .ph-phase-chev{
    color: rgba(255,255,255,.78);
  }
}

/* FINAL: calendar hint icon only on iOS (avoid double icon on desktop) */
@supports (-webkit-touch-callout: none) {
  #players .ph-editor-row input[type="date"].ph-input{
    padding-right: 44px !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;

    /* anthracite icon for white iOS date input */
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'>\
<path d='M7 2v3M17 2v3' stroke='rgba(40,40,40,1)' stroke-width='2' stroke-linecap='round'/>\
<path d='M4 9h16' stroke='rgba(40,40,40,0.75)' stroke-width='2' stroke-linecap='round'/>\
<path d='M6 5h12a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z' stroke='rgba(40,40,40,0.75)' stroke-width='2'/>\
</svg>") !important;
  }
}

/* Non-iOS: no extra icon (native icon already shown) */
@supports not (-webkit-touch-callout: none) {
  #players .ph-editor-row input[type="date"].ph-input{
    background-image: none !important;
  }
}

/* FINAL: a bit more space between player cards */
#players .ph-row{
  margin-bottom: 26px !important;
}

/* =========================================
   SEARCH: hard reset (wrapper == input)
   ========================================= */

/* wrapper defines the real width */
#players .ph-search-wrap{
  position: relative;
  display: inline-block;
  width: min(70%, 360px);      /* desktop default */
  max-width: 100%;
}

/* input always fills wrapper */
#players .ph-tools-search{
  width: 100% !important;
  box-sizing: border-box !important;
  padding-right: 34px !important; /* space for X */
}

/* clear X is positioned INSIDE wrapper */
#players .ph-search-clear{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  width: 16px;
  height: 16px;

  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;

  font-size: 18px;
  line-height: 16px;
  font-weight: 700;
  opacity: .85;
}

/* iOS: use the SAME width logic as your iOS input sizing */
@supports (-webkit-touch-callout: none) {
  #players .ph-search-wrap{
    width: min(52vw, 320px) !important; /* match your intended iOS sizing */
  }
  #players .ph-search-clear{
    color: rgba(40,40,40,.65) !important; /* visible on iOS white input */
  }
}

@supports (-webkit-touch-callout: none) {
  #players .ph-search-clear{
    transform: translateY(-50%) translateY(4px) !important; /* 1–3px naar smaak */
  }
}

/* PRE_MATCH: vertical centering inside separator rows */
#players .ph-prematch .ph-pr-line {
  display: flex;
}

#players .ph-prematch .ph-pr-line .ph-row-top {
  width: 100%;
  display: flex;
  align-items: center;            /* ✅ vertical center */
  justify-content: space-between; /* keep name left, chips right */
  gap: 12px;
  min-height: 44px;               /* ✅ makes rows feel evenly centered */
}

#players .ph-prematch .ph-pr-line .ph-row-top .ph-row-title {
  transform: translateY(2px);
}

#players .ph-prematch .ph-pr-line .ph-row-badges {
  display: flex;
  align-items: center;            /* ✅ chips centered too */
  gap: 8px;
  flex-wrap: wrap;
}

#players .ph-prematch .ph-chip {
  line-height: 1;    /* voorkomt dat text baseline de boel omhoog trekt */
  transform: translateY(7px);
}

/* PRE_MATCH chip selection pop */
#players .ph-prematch .ph-chip.is-on {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.32);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

#players .ph-prematch .ph-chip.is-on:active {
  transform: translateY(0px);
}
#players .ph-prematch .ph-chip {
  opacity: 0.85;
}

#players .ph-prematch .ph-chip.is-on {
  opacity: 1;
}

#players .ph-prematch button.ph-btn {
  margin-bottom: 22px !important;
  margin-top: 16px;
}

/* --- PulsoHub Timeline POP --- */
.ph-pm-tl {
  padding: 12px 14px 10px;
}

/* labels */
.ph-pm-tl-label {
  font-weight: 650;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.82);
}
.ph-pm-tl-step.is-done .ph-pm-tl-label {
  color: rgba(255,255,255,0.95);
}

/* dots */
.ph-pm-tl-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.ph-pm-tl-step.is-current .ph-pm-tl-dot,
.ph-pm-tl-step.is-ready .ph-pm-tl-dot {
  border-color: rgba(45,226,230,0.55);
  box-shadow:
    0 0 0 4px rgba(45,226,230,0.08),
    0 0 18px rgba(45,226,230,0.22),
    0 10px 22px rgba(0,0,0,0.28);
}

/* done dot = filled accent + glow */
.ph-pm-tl-step.is-done .ph-pm-tl-dot {
  background: rgba(45,226,230,0.18);
  border-color: rgba(45,226,230,0.75);
  box-shadow:
    0 0 0 4px rgba(45,226,230,0.10),
    0 0 26px rgba(45,226,230,0.35),
    0 12px 26px rgba(0,0,0,0.28);
}

.ph-pm-tl-check {
  color: #2DE2E6;
  font-size: 18px;
  line-height: 1;
}

/* line segments */
.ph-pm-tl-line {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.ph-pm-tl-lineFill {
  background: #2DE2E6;
  box-shadow:
    0 0 10px rgba(45,226,230,0.55),
    0 0 22px rgba(45,226,230,0.35);
  transition: width 800ms cubic-bezier(.2,.9,.15,1);
}

/* one-shot pulse when a step becomes done */
.ph-pm-tl-step.ph-just-done .ph-pm-tl-dot {
  animation: phTlPop 520ms cubic-bezier(.2,.9,.2,1) 1;
}
@keyframes phTlPop {
  0%   { transform: scale(0.96); filter: brightness(1); }
  55%  { transform: scale(1.08); filter: brightness(1.12); }
  100% { transform: scale(1.00); filter: brightness(1); }
}

/* Timeline: make it POP like the “+” */
.ph-pm-tl-label {
  color: rgba(255,255,255,0.98) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.22);
}

.ph-pm-tl-step.is-done .ph-pm-tl-label,
.ph-pm-tl-step.is-current .ph-pm-tl-label,
.ph-pm-tl-step.is-ready .ph-pm-tl-label {
  color: #ffffff !important;
}

/* Dots: less muted base */
.ph-pm-tl-dot {
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(255,255,255,0.20) !important;
}

/* Done dot: brighter accent */
.ph-pm-tl-step.is-done .ph-pm-tl-dot {
  background: rgba(45,226,230,0.22) !important;
  border-color: rgba(45,226,230,0.95) !important;
}

/* Checkmark: full accent, no muted */
.ph-pm-tl-check {
  color: #2DE2E6 !important;
  text-shadow: 0 0 14px rgba(45,226,230,0.55);
}

/* Lines: slightly brighter track */
.ph-pm-tl-line {
  background: rgba(255,255,255,0.14) !important;
}

/* =========================================
   BREAK Preferred Roles styling (PR)
   copy of #players rules but scoped to BREAK
   ========================================= */

#breakRoot{
  --ph-pr-left-w: 104px;
  --ph-pr-row-h: 32px;
  --ph-pr-chip-h: 28px;
  --ph-pr-chip-nudge: -1px;
}

/* player row */
#breakRoot .ph-pr-line{
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.06);
}

#breakRoot .ph-pr-line:first-child{
  border-top:0;
  padding-top:6px;
}

/* layout grid */
#breakRoot .ph-pr-head{
  display:grid;
  grid-template-columns: var(--ph-pr-left-w) 1fr;
  column-gap:12px;
  align-items:center;
  min-height:var(--ph-pr-row-h);
}

/* checkbox + name */
#breakRoot .ph-pr-linecheck{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:var(--ph-pr-row-h);
  min-width:0;

  font-weight:650;
  color:rgba(255,255,255,.92);
  white-space:nowrap;
  line-height:1;
}

#breakRoot .ph-pr-linecheck input{
  margin:0;
}

#breakRoot .ph-pr-linecheck span{
  display:inline-flex;
  align-items:center;
  height:var(--ph-pr-row-h);
  line-height:1;
  font-weight:500;
}

/* chips container */
#breakRoot .ph-pr-chips{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:nowrap;

  min-width:0;
  height:var(--ph-pr-row-h);

  margin:0;
  padding:0;

  transform:translateY(var(--ph-pr-chip-nudge));
}

/* chip buttons */
#breakRoot .ph-pr-chip{

  flex:1 1 0;
  min-width:0;
  width:auto;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  appearance:none;
  -webkit-appearance:none;

  border-radius:6px;

  height:var(--ph-pr-chip-h);
  padding:0 10px;

  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.92);

  font:inherit;
  font-weight:650;
  font-size:12px;
  letter-spacing:.25px;
  line-height:1;
  text-transform:uppercase;

  box-shadow:none;

  cursor:pointer;
  user-select:none;

  transition:
    transform .06s ease,
    background .12s ease,
    border-color .12s ease,
    box-shadow .12s ease;
}

/* press animation */
#breakRoot .ph-pr-chip:active{
  transform:translateY(1px);
}

/* active state */
#breakRoot .ph-pr-chip.is-on,
#breakRoot .ph-pr-chip[aria-pressed="true"]{

  border-color:rgba(255,255,255,.50);
  background:rgba(255,255,255,.20);

  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.12),
    0 6px 18px rgba(0,0,0,.20);
}

/* subtle text */
#breakRoot .ph-subtle{
  font-weight:400;
  font-size:12px;
  opacity:.68;
}

/* =========================================
   BREAK chip polish
   ========================================= */

/* base chips iets minder fel als ze niet actief zijn */
#breakRoot .ph-pr-chip{
  opacity: .85;
}

/* hover: subtiele lift */
#breakRoot .ph-pr-chip:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

/* active / selected: zelfde feel als PRE_MATCH */
#breakRoot .ph-pr-chip.is-on,
#breakRoot .ph-pr-chip[aria-pressed="true"]{
  opacity: 1;
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.50);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.12),
    0 6px 18px rgba(0,0,0,.20);
}

/* keyboard focus */
#breakRoot .ph-pr-chip:focus-visible{
  outline: 2px solid rgba(45,226,230,.45);
  outline-offset: 2px;
}

/* checkbox row iets netter gecentreerd */
#breakRoot .ph-pr-head{
  width: 100%;
}

#breakRoot .ph-pr-linecheck{
  width: 100%;
}

#breakRoot .ph-pr-main{
  min-width: 0;
  width: 100%;
}

#breakRoot .ph-pr-title{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  min-width: 0;
}

#breakRoot .ph-pr-title > span:first-child{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#breakRoot .ph-pr-side{
  display: flex;
  align-items: center;
  justify-self: end;
  min-width: max-content;
}

/* =========================================
   BREAK row geometry = PRE_MATCH feel
   ========================================= */

#breakRoot .ph-pr-line {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

#breakRoot .ph-pr-line:first-child {
  border-top: 0;
  padding-top: 6px;
}

#breakRoot .ph-pr-head {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 14px;
  align-items: center;
  min-height: 32px;
  width: 100%;
}

#breakRoot .ph-pr-linecheck {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 32px;
  line-height: 1;
  color: rgba(255,255,255,.92);
}

#breakRoot .ph-pr-linecheck input {
  margin: 0;
  transform: none;
  flex: 0 0 auto;
}

#breakRoot .ph-pr-main {
  min-width: 0;
  width: 100%;
}

#breakRoot .ph-pr-title {
  display: flex;
  align-items: center;
  min-width: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
}

#breakRoot .ph-pr-title > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#breakRoot .ph-pr-side {
  display: flex;
  align-items: center;
  justify-self: end;
  min-width: max-content;
  min-height: 32px;
}

/* =========================================
   BREAK chips vertical centering
   ========================================= */

#breakRoot {
  --ph-pr-row-h: 32px;
  --ph-pr-chip-h: 28px;
}

#breakRoot .ph-pr-chips {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;

  height: var(--ph-pr-row-h);
  min-height: var(--ph-pr-row-h);
  margin: 0;
  padding: 0;
}

#breakRoot .ph-pr-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: var(--ph-pr-chip-h);
  min-height: var(--ph-pr-chip-h);
  padding: 0 10px;

  line-height: 1;
  margin: 0;
  vertical-align: middle;
}

#breakRoot .ph-subtle {
  font-size: 12px;
  font-weight: 400;
  opacity: .68;
}

#breakRoot .ph-row-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
}

#breakRoot .ph-pr-side .ph-subtle {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  line-height: 1;
}

#breakRoot .ph-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

#breakRoot .ph-row-title {
  min-width: 0;
  font-weight: 650;
}

#breakRoot .js-wb-toggle,
#breakRoot .js-bf-toggle,
#breakRoot .js-bl-toggle {
  display: flex;
  align-items: center;          /* echte verticale centrering */
  justify-content: space-between;
  gap: 10px;

  min-height: 28px;             /* vaste headerhoogte helpt enorm */
  padding: 12px 12px !important;
  margin-bottom: 0 !important;

  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

#breakRoot .js-wb-toggle > span,
#breakRoot .js-bf-toggle > span,
#breakRoot .js-bl-toggle > span {
  display: inline-flex;
  align-items: center;          /* ook de tekst zelf centreren */
  min-height: 24px;
  line-height: 1.1;
}

#breakRoot .ph-pres-reason-badge{
  display:inline-flex;
  align-items:center;
  font-size:10px;
  font-weight:650;
  letter-spacing:.25px;
  text-transform:uppercase;
  padding:1px 6px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  line-height:1.1;
  white-space:nowrap;
  flex:0 0 auto;
  height:auto;
  min-height:0;
  box-sizing:border-box;
}

#breakRoot .ph-pres-reason-badge.is-moved{
  color: rgba(255,179,71,.95);
  background: rgba(255,179,71,.12);
  border-color: rgba(255,179,71,.35);
}

/* make sure badge sits like PRE_MATCH inside the title row */
#breakRoot .ph-pr-title{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  column-gap:8px;
  min-width:0;
}

#breakRoot .ph-pr-title > span:first-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#breakRoot .ph-pr-title .ph-pres-reason-badge{
  justify-self:end;
  align-self:center;
  transform:none;
}

#breakRoot .ph-pr-title .ph-pres-reason-badge{
  font-size:10px !important;
  padding:1px 6px !important;
  height:auto !important;
  min-height:0 !important;
  line-height:1.1 !important;
  font-weight: 600;
}

#matches .ph-matchline{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  margin-top: 6px !important;
}

#matches .ph-home,
#matches .ph-away{
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#matches .ph-home{
  text-align: left;
}

#matches .ph-away{
  text-align: right;
}

#matches .ph-mid{
  justify-self: center;
  white-space: nowrap;
}

#matches .ph-row-link{
  display: block;
  padding-left: 0;
  padding-right: 0;
}

#matches a.ph-row-link:hover{
  padding-left: 0;
  padding-right: 0;
}