/* ==========================================================================
   PLAYER DIRECTORY + FLIP CARDS — FULL CSS (copy-paste)
   - Supports different front/back backgrounds per card via CSS variables
   - Includes filter bar styles, grid, card base, flip helpers, tables, etc.
   ========================================================================== */

/* Base & tokens */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --card-w: 320px;
  --card-h: 480px;
  --radius: 22px;
  --pad: 16px;

  --text: #0f172a;        /* slate-900 */
  --muted: #334155;       /* slate-600 */
  --white: #ffffff;
  --green: #0ea14a;
  --red:   #d7263d;
 --blue-dark:#0a1f3f; 

  --shadow: 0 14px 40px rgba(0,0,0,.28);
  --shadow-soft: 0 10px 24px rgba(0,0,0,.18);

  --accent:  #23a6d5;
  --accent2: #23d5ab;

    --bg-front:url('/assets/bg/powder.jpg');
    --bg-back:url('/assets/bg/2.jpg');


  /* tweak these if you want a different vibe */
  --flt-surface: rgba(15, 23, 42, .6);      /* slate-900 @ 60% */
  --flt-surface-top: rgba(30, 41, 59, .55); /* slate-800 @ 55% */
  --flt-border: rgba(148, 163, 184, .28);   /* slate-400 */
  --flt-border-strong: rgba(203, 213, 225, .45);
  --flt-text: #e5e7eb;                      /* slate-200 */
  --flt-muted: #9fb0c7;                     /* light slate */
  --flt-placeholder: #95a1b3;               /* subtle placeholder */
  --flt-input-bg: rgba(255,255,255,.06);
  --flt-input-bg-hover: rgba(255,255,255,.09);
  --flt-input-border: rgba(148,163,184,.28);
  --flt-input-border-hover: rgba(203,213,225,.40);
  --flt-focus: #60a5fa;                     /* blue-400 ring */
  --flt-ring: rgba(96,165,250,.35);
}

.directory.page {
  box-sizing: border-box;
  /* center and constrain */
  max-width: 1400px;
  margin: 0 auto;

  /* top padding can be controlled inline; set the rest here */
  padding: clamp(16px, 3vw, 28px) clamp(20px, 6vw, 80px);
  width: 100%;
}

/* If you need to out-weight other rules */
section.directory.page {}

/* Tighter gutters on small screens */
@media (max-width: 600px){
  .directory.page { padding-inline: 16px; }
}

.directory h1{
  font-size: clamp(24px,2.5vw,36px);
  margin:0 0 8px 0;
  letter-spacing:.3px;
  color:#fff;
}
.sub{ color:#9aa4b2; margin-bottom:28px }

/* ==========================================================================
   FILTER BAR
   ========================================================================== */

.directory .filters{
  position: relative; top: 0; z-index: 10;
  display:grid; gap:12px; grid-template-columns: 1fr auto auto auto auto auto;
  align-items:end; padding:16px; margin:0 0 16px 0;
  border-radius:16px;
  /* glassy dark surface with subtle top highlight */
  background:
    linear-gradient(180deg, var(--flt-surface-top), var(--flt-surface)),
    radial-gradient(120% 160% at 0% -30%, rgba(99,102,241,.15), transparent 60%);
  border: 1px solid var(--flt-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  color: var(--flt-text);
}

.filters .group{ display:grid; gap:6px }
.filters label{
  font-size:12px; letter-spacing:.3px; text-transform:uppercase;
  color: var(--flt-muted);
}

/* Inputs / Selects / Range */
.filters input[type="search"],
.filters select,
.filters input[type="number"],
.filters input[type="range"]{
  appearance:none; -webkit-appearance:none; outline:none; border:none;
  padding:10px 12px; border-radius:10px;
  background: var(--flt-input-bg);
  color: var(--flt-text);
  border:1px solid var(--flt-input-border);
  min-width: 140px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.filters input[type="search"]{ min-width:220px }
.filters input::placeholder{ color: var(--flt-placeholder); }

/* Hover / focus states */
.filters input[type="search"]:hover,
.filters select:hover,
.filters input[type="number"]:hover{
  background: var(--flt-input-bg-hover);
  border-color: var(--flt-input-border-hover);
}
.filters input[type="search"]:focus,
.filters select:focus,
.filters input[type="number"]:focus{
  background: var(--flt-input-bg-hover);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--flt-focus), 0 0 0 6px var(--flt-ring);
}

/* Group highlight when any child is focused */
.filters .group:focus-within label{ color:#cfe3ff; }

/* Select: custom chevron for dark */
.filters select{
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
}

/* Number inputs: hide spinners on WebKit (optional) */
.filters input[type=number]::-webkit-outer-spin-button,
.filters input[type=number]::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }

/* Range styling (dark) */
.filters input[type="range"]{
  height: 32px; padding: 0 2px; background: transparent; min-width: 160px;
}
.filters input[type="range"]::-webkit-slider-runnable-track{
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(148,163,184,.45), rgba(148,163,184,.25));
  border: 1px solid var(--flt-border);
}
.filters input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; margin-top: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #dbeafe 35%, #93c5fd 100%);
  border: 1px solid var(--flt-border-strong);
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
  cursor: pointer;
}
.filters input[type="range"]::-moz-range-track{
  height: 8px; border-radius:999px;
  background: linear-gradient(90deg, rgba(148,163,184,.45), rgba(148,163,184,.25));
  border: 1px solid var(--flt-border);
}
.filters input[type="range"]::-moz-range-thumb{
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #dbeafe 35%, #93c5fd 100%);
  border: 1px solid var(--flt-border-strong);
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
  cursor: pointer;
}

/* Position pills (dark) */
.filters .pos-pills{ display:flex; gap:8px; flex-wrap: wrap; }
.filters .pill{
  padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.07);
  color: var(--flt-text);
  border:1px solid var(--flt-input-border);
  cursor:pointer; user-select:none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}
.filters .pill:hover{
  background:rgba(255,255,255,.1);
  border-color: var(--flt-input-border-hover);
}
.filters .pill:active{ transform: translateY(1px); }
.filters .pill.active{
  background: linear-gradient(180deg, #1f2937, #111827);
  border-color:#4b5563;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 2px rgba(59,130,246,.35);
}

/* Numeric inputs group */
.filters .nums{ display:flex; gap:8px }
.filters .nums input{
  width:88px; text-align:center;
}

/* SortBy */


/* Closed control */
#sortBy{
  --sel-bg: #0f172a;          /* background of the select itself */
  --sel-fg: #e5e7eb;          /* text color */
  --sel-border: rgba(148,163,184,.35);
  --sel-bg-hover: #111827;

  appearance:none; -webkit-appearance:none;
  background-color: var(--sel-bg);
  color: var(--sel-fg);
  border: 1px solid var(--sel-border);
  padding: 10px 36px 10px 12px;
  border-radius: 10px;
  min-width: 160px;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
  /* custom chevron */
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;

  /* Hint browsers to use dark popups where supported */
  color-scheme: dark;
}
#sortBy:hover{
  background-color: var(--sel-bg-hover);
  border-color: rgba(203,213,225,.45);
}
#sortBy:focus{
  outline: 0;
  box-shadow: 0 0 0 2px #60a5fa, 0 0 0 6px rgba(96,165,250,.35);
  border-color: transparent;
}

/* Open dropdown list (works on Chromium/Firefox; Safari often ignores) */
#sortBy option{
  background-color: #0b1220; /* dropdown background */
  color: #e5e7eb;            /* dropdown text */
}
#sortBy option:checked { background-color: #172036; }
#sortBy optgroup { color: #9fb0c7; background-color: #0b1220; }


/* Buttons */
.filters .btns{ display:flex; gap:8px; align-items:center }
.filters button{
  padding:10px 12px; border-radius:10px;
  border:1px solid var(--flt-input-border);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  color: var(--flt-text); cursor:pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.filters button:hover{
  background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border-color: var(--flt-input-border-hover);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.filters button:active{ transform: translateY(1px); }

/* Count */
.filters .count{
  font-size:12px; color: var(--flt-muted); align-self:center;
}

/* Responsive refinements */
@media (max-width: 980px){
  .directory .filters{ grid-template-columns: 1fr 1fr 1fr; }
  .filters .btns{ grid-column: 1 / -1 }
}
@media (max-width: 640px){
  .directory .filters{ grid-template-columns: 1fr; position: static }
}
/* ==========================================================================
   GRID
   ========================================================================== */
.directory-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:24px;
  overflow: visible !important;
}

/* If your cards also use .gallery elsewhere, keep it compatible */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr));
  gap:24px;
}

/* ==========================================================================
   FLIP HELPERS & SIZING
   ========================================================================== */
.directory-grid .flip-card{  /* give each grid item a real size */
  width: var(--card-w);
  height: var(--card-h);
}
.flip-card{
  perspective: 1200px;
  position: relative; 
}
.flip-card .inner{
  position:relative;
  width:100%;
  height:100%;
  transform-style:preserve-3d;
  transition: transform .6s cubic-bezier(.2,.85,.2,1);
}
.flip-card:hover .inner,
.flip-card.is-flipped .inner{ transform: rotateY(180deg);  z-index: 5; }

.flip-face{
  position:absolute; inset:0;
  backface-visibility:hidden;
  border-radius:var(--radius);
  overflow:visible;
  margin: 20px 5px;
}
.flip-back{ transform: rotateY(180deg); }

/* ==========================================================================
   BACKGROUNDS (different front/back)
   - Set per card:
     style="--bg-front:url('/assets/bg/3.jpg'); --bg-back:url('/assets/bg/1.jpg')"
   - Or set a page default: .directory{ --card-bg: url('/...jpg'); }
   ========================================================================== */

/* Base media layers */
.bg-img{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%;
  object-fit:cover; object-position:center;
  filter:saturate(1.08) contrast(1.04);
  display:block;

}
.ink{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(10,12,22,.65) 0%, rgba(10,12,22,.25) 35%, rgba(10,12,22,0) 55%);
  pointer-events:none;
}

/* ==========================================================================
   CARD BASE
   ========================================================================== */
.player-card{
  position:relative;
  width:100%; height:100%;
  border-radius:var(--radius);
  overflow:visible; background:var(--white);
  color:var(--text); box-shadow: var(--shadow-soft);
  display:grid; grid-template-rows: 1fr auto; isolation:isolate;
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
  border:1px solid rgba(255,255,255,.06);
}
.player-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }

/* Player image */

.player-img.player-img--lg{
  position:absolute; z-index:2;
  bottom:-6px; left:50%; transform:translateX(-50%);
  width: 102%; /* was ~82% — make the player dominate */
  max-width: 105%;
  height:auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
  pointer-events:none;
}
/* Jersey number: bigger, front right / back left */
.jersey{
  position:absolute; z-index:3; top:10px;
  font-weight:1000; line-height:1;
  font-size: clamp(30px, 5vw, 44px);
  padding: 6px 12px;
  border-radius: 14px;
  color:#fff;
  background: rgba(255,255,255,.1);
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
}
.jersey--front{ right: 12px; text-align:right; }
.jersey--back{  left:  12px; text-align:left;  }

/* Content overlay (no blur – keeps PNG crisp) */
.info{
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 100%);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* Front name/position unchanged, but tighten spacing for larger art */
.player-card .info{ padding: var(--pad); padding-top: 8px; }


.badge{
  position:absolute; top:12px; right:12px; z-index:3;
  font-size:12px; letter-spacing:.4px; text-transform:uppercase;
  padding:6px 10px; border-radius:999px; background:rgba(0,0,0,.55); color:#fff;
}
.name{
  margin:0 0 2px 0; font-size:22px; font-weight:800; letter-spacing:.2px;
  color:#fff; text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.position{
  margin:0 0 10px 0; font-size:13px; color:#d1d5db; text-transform:uppercase; letter-spacing:.6px;
}

/* Stats grid */
.stats{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:8px;
}
.stat{
  display:grid; gap:4px; text-align:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  padding:10px; border-radius:12px;
}
.stat span{ font-size:11px; color:#cbd5e1; text-transform:uppercase; letter-spacing:.5px }
.stat strong{ font-size:16px; color:#fff }

/* Optional dark-on-light stat style */
.stat-dark{
  display:grid; gap:4px; text-align:center;
  background: rgba(255, 255, 255, 0.11);
  border:1px solid rgba(0,0,0,.30) !important;
  padding:10px; border-radius:12px;
}
.stat-dark span{ font-size:11px; color:#272727; text-transform:uppercase; letter-spacing:.5px }
.stat-dark strong{ font-size:16px; color:#000 }

/* Hover helpers (optional) */
.hover-glow{ position:relative }
.hover-glow::before{
  content:""; position:absolute; inset:-1px; border-radius:calc(var(--radius) + 1px);
  background: conic-gradient(from 180deg at 50% 50%, #23a6d5, #23d5ab, #915eff, #23a6d5);
  filter: blur(14px) opacity(.35); z-index:0; transition: filter .35s ease, opacity .35s ease;
}
.hover-glow:hover::before{ filter: blur(18px) opacity(.75); }
.hover-zoom:hover .bg-img{ transform: scale(1.06); transition: transform .35s ease; }
.hover-blur:hover .bg-img{ filter: saturate(1) contrast(1) blur(2px); }

/* Parallax helper (optional) */
.parallax .bg-img{ transition: transform .15s ease-out; }

/* ==========================================================================
   TABLE (back face)
   ========================================================================== */
.stats--table table{
  background: rgba(255,255,255,.5);
  width:100%; border-collapse:collapse; font-size:12px; overflow:hidden;
  border-radius:12px; border:1px solid rgba(255,255,255,.5);
}
.stats--table thead{ background: rgba(255,255,255,.8); }
.stats--table th, .stats--table td{
  padding:8px 10px; text-align:left; border-bottom:1px solid rgba(255,255,255,.08);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.card-wrap{ display:flex; justify-content:center;  z-index: 0;}
.caption{ margin-top:8px; color:#a3aed0; font-size:12px; text-align:center }

/* Focus ring for keyboard users on clickable flip-cards */
.flip-card[role="button"]:focus{
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
  border-radius: calc(var(--radius) + 2px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .directory .filters{ grid-template-columns: 1fr 1fr 1fr; }
  .filters .btns{ grid-column: 1 / -1 }
}
@media (max-width: 640px){
  .directory .filters{ grid-template-columns: 1fr; position: static }
}
@media (max-width: 480px){
  .stats{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px){
  :root{ --card-w: 94vw; --card-h: 150vw; }
  .directory-grid .flip-card{ width: var(--card-w); height: var(--card-h); }
}

/* ==========================================================================
   OPTIONAL: DARK-FRIENDLY SPARKLINE (if you use the sparkline variant)
   ========================================================================== */
.stats--sparkline{
  --spark-stroke: #e6f1ff;
  --spark-shadow: rgba(180,220,255,.35);
  --spark-legend: #cbd5e1;
  display:grid; gap:8px;
}
.stats--sparkline .legend{
  display:flex; justify-content:space-between; font-size:12px;
  color:var(--spark-legend); opacity:.92;
}
.spark{ width:100%; height:40px; color:var(--spark-stroke); }
.spark path{
  fill:none; stroke:currentColor; stroke-width:2.25;
  stroke-linecap:round; stroke-linejoin:round;
  filter: drop-shadow(0 0 6px var(--spark-shadow));
  mix-blend-mode: screen;
}
.spark .avg, .spark .baseline{
  stroke: rgba(255,255,255,.35);
  stroke-width:1; stroke-dasharray:4 4;
  mix-blend-mode: screen;
}
.static.white .stats--sparkline{
  --spark-stroke:#0f172a; --spark-shadow:rgba(15,23,42,.12); --spark-legend:#334155;
}
.static.white .spark{ mix-blend-mode: normal; }
.static.white .spark .avg, .static.white .spark .baseline{ stroke: rgba(15,23,42,.25); }


/* =========================
   Player Directory — CTA
   ========================= */
.directory .cta-banner{
  --cta-bg1: rgba(15, 32, 62, 0.70);   /* deep navy glass */
  --cta-bg2: rgba(17, 42, 85, 0.55);
  --cta-border: rgba(255,255,255,.18);
  --cta-shadow: 0 12px 40px rgba(0,0,0,.35);
  --cta-text: #eaf2ff;
  --cta-muted: #b8c7e6;
  --cta-accent: #60a5fa;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cta-bg1), var(--cta-bg2));
  border: 1px solid var(--cta-border);
  box-shadow: var(--cta-shadow);
  color: var(--cta-text);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.directory .cta-eyebrow{
  text-transform: uppercase; letter-spacing: .4px;
  font-size: 12px; color: var(--cta-muted);
  margin-bottom: 6px;
}
.directory .cta-title{
  margin: 0 0 6px 0;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 800; line-height: 1.2;
}
.directory .cta-copy{
  margin: 0; color: var(--cta-muted);
  font-size: 14px; line-height: 1.45;
}

.directory .cta-actions{
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

.directory .cta-btn{
  --btn-bg: transparent;
  --btn-fg: #eaf2ff;
  --btn-bd: rgba(255,255,255,.25);

  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  will-change: transform;
}
.directory .cta-btn svg{ display:block; opacity:.95 }
.directory .cta-btn:hover{ transform: translateY(-1px); }

.directory .cta-btn--primary{
  --btn-bg: linear-gradient(180deg, #3b82f6, #2563eb);
  --btn-fg: #fff;
  --btn-bd: rgba(59,130,246,.35);
  box-shadow: 0 8px 20px rgba(37,99,235,.35);
}
.directory .cta-btn--primary:hover{
  filter: brightness(1.05);
}

.directory .cta-btn--ghost{
  --btn-bg: rgba(255,255,255,.06);
  --btn-bd: rgba(255,255,255,.22);
}
.directory .cta-btn--ghost:hover{
  background: rgba(255,255,255,.1);
}

/* Responsive layout */
@media (max-width: 980px){
  .directory .cta-banner{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .directory .cta-actions{ justify-content: flex-start; }
}
@media (max-width: 520px){
  .directory .cta-actions{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* two buttons side-by-side */
    gap: 10px;
  }
  .directory .cta-btn{ justify-content: center; }
}



/* Centered stack for lastname + position on the back */
/* Centered stack with tighter sides */
.nameblock{
  position:absolute; z-index:3;
  left:50%; top:28%;
  transform: translateX(-50%);
  width: 92%;              /* less side “padding” without changing the layout */
  padding: 0 6px;          /* tiny breathing room so ellipsis doesn’t touch edge */
  text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}

/* One-line, centered, ellipsis for overflow */
.lastname,
.back-pos{
  max-width:100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Last name */
.lastname{
  margin:0;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight:1000;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#fff;
  line-height:1.05;
  text-shadow:0 1px 0 rgba(0,0,0,.35);
}

/* Position directly under last name */
.back-pos{
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#e8ecf7;
  opacity:.9;
}

/* Small screens: slightly wider block + smaller type so long names still fit */
@media (max-width: 560px){
  .nameblock{ width:96%; top:26%; }
  .lastname{ font-size: clamp(16px, 4.2vw, 22px); }
}


/* Bigger, bolder stat block – occupies more card height */
.statpairs{
  position:absolute;
  left: max(8px, var(--pad));
  right: max(8px, var(--pad));
  bottom: max(8px, var(--pad));
  z-index:3;

  /* more space */
  padding: clamp(14px, 2vw, 22px);
  min-height: clamp(120px, 30%, 190px);   /* ← grow vertically */
  display:grid;
  gap: clamp(10px, 1.6vw, 18px);
  align-content: center;                  /* center rows within the taller box */

  /* glassy card */
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px) saturate(120%);
}

/* Center divider only, a bit thicker */
.statpairs::before{
  content:"";
  position:absolute; top:12px; bottom:12px; left:50%;
  width:3px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.10));
  border-radius: 2px;
}

.statpairs .pair{
  display:grid;
  grid-template-columns: 1fr 1fr;  /* left/right halves */
  align-items: baseline;
}

.statpairs .lhs{ text-align:left; }
.statpairs .rhs{ text-align:right; }

/* BIG numbers + crisp acronyms */
.statpairs strong{
  display:inline-block;
  font-size: clamp(22px, 4.2vw, 34px);   /* ↑ bigger */
  line-height: 1.05;
  font-weight: 1000;
  color:#fff;
  margin-right: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35), 0 1px 0 rgba(0,0,0,.4);
}

.statpairs em{
  font-style: normal;
  font-size: clamp(12px, 1.2vw, 16px);   /* ↑ bigger */
  font-weight: 900;
  letter-spacing: .08em;                 /* tidy acronym look */
  text-transform: uppercase;
  color:#e8ecf7;
  opacity:.98;
}

/* Optional: give each row a bit more breathing room when there are many pairs */
.statpairs .pair + .pair{ margin-top: clamp(4px, .8vw, 8px); }

/* Mobile: let the block occupy even more height for readability */
@media (max-width: 520px){
  .statpairs{
    min-height: clamp(140px, 36%, 220px);
    padding: clamp(14px, 3.5vw, 20px);
  }
}


/* Keep your BGs. We just re-pin the front info to the bottom edge */
.player-card .info{ position:absolute; inset:auto 0 0 0; padding:0; background:none; z-index:3; }

/* FRONT: angled ribbon that enters from the left */
.info--front .tagline{
  position:relative;
  display:inline-flex; align-items:baseline; gap:10px;
  padding:12px 18px 14px;
  margin: 0;          /* hugs left edge */
  border-radius: 0 14px 14px 0;
  background:
    linear-gradient(90deg, rgba(8,12,26,.92) 0%, rgba(8,12,26,.70) 60%, rgba(8,12,26,.35) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 6px, transparent 6px 12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transform: skewX(-12deg);          /* angled strip */
  animation: tag-slide-in .55s cubic-bezier(.2,.8,.2,1) both;
}

/* little nose so it feels like it “comes from” the left side */
.info--front .tagline::before{
  content:""; position:absolute; left:-42px; top:0; bottom:0; width:42px;
  background: linear-gradient(90deg, rgba(8,12,26,.92), rgba(8,12,26,.75));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

/* gold accent line on top edge */
.info--front .tagline::after{
  content:""; position:absolute; left:0; right:0; top:0; height:2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity:.9;
}

/* Un-skew the text so it reads straight */
.info--front .name,
.info--front .position{ transform: skewX(12deg); }

/* Typography inside the ribbon */
.info--front .name{
  margin:0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 1000; letter-spacing:.2px; line-height:1;
  color:#fff; text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.info--front .position{
  margin:0 0 0 2px;
  font-size: 12px; font-weight: 900; line-height:1;
  text-transform: uppercase; letter-spacing:.22em;
  color: color-mix(in oklab, #ffffff 86%, var(--gold) 14%);
  opacity:.95;
}

/* Entry animation */
@keyframes tag-slide-in{
  from{ transform: translateX(-18%) skewX(-12deg); opacity:0; }
  to  { transform: translateX(0)    skewX(-12deg); opacity:1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .info--front .tagline{ animation: none; }
}


.directory-grid > .card-wrap{
  content-visibility: auto;
  contain-intrinsic-size: 0 520px; /* reserve space to avoid jump */
}


.pager{
  display:flex; gap:10px; justify-content:center; margin: 22px 0 10px; flex-wrap: wrap;
}
.pager a, .pager span{
  padding:8px 12px; border-radius:10px; border:1px solid var(--admin-border, rgba(255,255,255,.18));
  background: rgba(255,255,255,.06); color:#fff; text-decoration:none; font-weight:600;
}
.pager .active{
  border-color: var(--gold, #eec85c); color: var(--gold, #eec85c); background: rgba(255,255,255,.12);
}
