/* =====================================================================
   HEAT SPORTS AGENCY — Men's Roster (redesign draft, phase 1)
   Direction: Restrained dark system — ink/gray ground, one blue signal,
   Apple-style Liquid Glass material on interactive chrome (blur +
   refraction + a specular edge sweep, not a flat blur decoration).
   Card structure references FIBA's players grid (photo-forward, info
   docked at the base) rendered entirely in Heat Sports' own material.
   ===================================================================== */

:root {
  /* ---- ground ---- */
  --ink-950: #05070c;
  --ink-900: #0b0e16;
  --ink-850: #0f131d;
  --ink-800: #131826;
  --ink-700: #1b2233;
  --ink-600: #26304a;
  --line-hair: rgba(232, 238, 250, 0.08);
  --line-hair-strong: rgba(232, 238, 250, 0.14);

  /* ---- ink (text) ---- */
  --paper-50: #f3f6fc;
  --paper-200: #cdd5e6;
  --fog-400: #8b93a8;
  --fog-500: #6c7690;

  /* ---- signal (blue accent — used deliberately, not everywhere) ---- */
  --signal-300: #8fb4ff;
  --signal-400: #6c9dff;
  --signal-500: #3e7bfa;
  --signal-600: #2f63d6;
  --signal-glow: rgba(62, 123, 250, 0.45);

  /* ---- status ---- */
  --status-available: #3ddc97;
  --status-signed: #8fb4ff;

  /* ---- elevation ---- */
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 18px 40px -16px rgba(0,0,0,0.65);
  --shadow-glass: 0 8px 30px -8px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
  --shadow-pop: 0 24px 60px -20px rgba(0,0,0,0.7);

  /* ---- radius ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* ---- type ---- */
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 380ms;

  --container: 1440px;
  --container-narrow: 1040px;
  --edge: clamp(20px, 4vw, 64px);
}

* , *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(62,123,250,0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(62,123,250,0.10), transparent 55%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900) 30%, var(--ink-900));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--signal-500); color: var(--ink-950); }

/* tabular numerals for dates / stats-like fields */
.tnum { font-variant-numeric: tabular-nums; }

/* focus ring, themed */
:focus-visible {
  outline: 2px solid var(--signal-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 999px; border: 3px solid var(--ink-900); }
::-webkit-scrollbar-thumb:hover { background: var(--signal-600); }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--edge); position: relative; z-index: 1; }

/* =====================================================================
   LIQUID GLASS MATERIAL — the reusable component behind every piece of
   interactive chrome (nav, filter bar, buttons, chips). Not a flat
   blur: a blurred/saturated backdrop, a two-tone inner border that
   reads as glass thickness, and a specular sweep that runs the top
   edge to sell "material lit from above."
   ===================================================================== */
.glass {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-hair-strong);
  box-shadow: var(--shadow-glass);
}
.glass::before {
  /* specular edge — a thin bright arc riding the top-left rim */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.05) 22%, rgba(255,255,255,0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass::after {
  /* refraction sheen — moves on hover/focus, otherwise dormant */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.16) 46%, rgba(255,255,255,0.02) 62%, transparent 80%);
  transform: translateX(-60%);
  opacity: 0;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast) linear;
  pointer-events: none;
}
.glass:hover::after, .glass:focus-visible::after { opacity: 1; transform: translateX(60%); }

/* =====================================================================
   HEADER — stand-in for the real WordPress header/nav. In production
   this markup is replaced by the theme's get_header() so the menu
   stays shared site-wide; only the visual language ships from here.
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding: 14px var(--edge);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  border-radius: var(--r-pill);
  padding: 8px 10px 8px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--paper-200);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--paper-50); background: rgba(255,255,255,0.06); }
.nav a.is-active { color: var(--ink-950); background: var(--paper-50); }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: var(--r-pill);
    color: var(--paper-50); background: rgba(255,255,255,0.06); border: 1px solid var(--line-hair-strong);
    cursor: pointer;
  }
  .mobile-nav {
    display: grid; grid-template-rows: 0fr;
    max-width: var(--container); margin: 8px auto 0;
    opacity: 0; visibility: hidden;
    transition: grid-template-rows var(--dur-med) var(--ease-out), opacity var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-med);
  }
  .mobile-nav.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
  .mobile-nav__inner {
    display: flex; flex-direction: column; gap: 2px;
    overflow: hidden;
    border-radius: var(--r-lg);
    padding: 10px;
    /* extra dark scrim under the glass gradient so link text stays
       legible over whatever bright content is blurred behind it */
    background:
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
      rgba(5, 7, 12, 0.86);
  }
  .mobile-nav a {
    padding: 12px 14px; border-radius: var(--r-md);
    font-size: 14.5px; font-weight: 700; color: var(--paper-50);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  }
  .mobile-nav a:hover { color: var(--signal-300); background: rgba(255,255,255,0.08); }
  .mobile-nav a.is-active { color: var(--signal-300); background: rgba(255,255,255,0.05); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =====================================================================
   FILTER BAR — the primary Liquid Glass moment. Sits in normal flow
   (not sticky) so it doesn't compete with the roster for screen space
   while scanning.
   ===================================================================== */
.filter-bar-zone { padding: 32px var(--edge) 0; }
.filter-bar {
  max-width: var(--container); margin-inline: auto;
  border-radius: var(--r-lg);
  padding: 10px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.field { position: relative; flex: 0 0 auto; }
.field select, .field input[type="search"] {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-hair);
  color: var(--paper-50);
  border-radius: var(--r-md);
  padding: 10px 30px 10px 14px;
  font-size: 13.5px; font-weight: 600;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field select:hover, .field input[type="search"]:hover { border-color: var(--line-hair-strong); }
.field select:focus-visible, .field input[type="search"]:focus-visible { border-color: var(--signal-500); }
.field::after {
  content: ""; position: absolute; right: 13px; top: 50%; translate: 0 -35%;
  width: 8px; height: 8px; border-right: 1.6px solid var(--fog-400); border-bottom: 1.6px solid var(--fog-400);
  rotate: 45deg; pointer-events: none;
}
.field select { min-width: 118px; }
.field--search::after { display: none; }
.field--search { flex: 0 1 200px; }
.field--search input { width: 100%; padding-left: 38px; padding-right: 14px; }
.field--search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--fog-400); pointer-events: none; }

.status-group { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-hair); border-radius: var(--r-md); padding: 3px; flex: 0 0 auto; }
.status-group button {
  border: 0; background: transparent; color: var(--fog-400);
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.status-group button.is-active { color: var(--ink-950); background: var(--paper-50); }
.status-group button:not(.is-active):hover { color: var(--paper-50); background: rgba(255,255,255,0.06); }

.btn-reset {
  border: 1px solid var(--line-hair); background: transparent; color: var(--fog-400);
  border-radius: var(--r-md); padding: 10px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn-reset:hover { color: var(--paper-50); border-color: var(--line-hair-strong); }
.btn-reset svg { width: 14px; height: 14px; }

.btn-reset-icon {
  flex: 0 0 auto; margin-left: auto;
  border: 1px solid var(--line-hair); background: transparent; color: var(--fog-400);
  border-radius: 50%; width: 40px; height: 40px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn-reset-icon:hover { color: var(--paper-50); border-color: var(--line-hair-strong); background: rgba(255,255,255,0.06); }
.btn-reset-icon svg { width: 15px; height: 15px; }

.results-count { position: relative; z-index: 1; max-width: var(--container); margin: 12px auto 0; padding-inline: 4px; font-size: 12.5px; color: var(--fog-400); }
.results-count b { color: var(--paper-200); font-weight: 700; }

/* invisible full-width spacer — forces a flex line break between the
   two mobile toolbar rows without needing a wrapper element. Inert on
   every other breakpoint. */
.filter-break { display: none; }

@media (max-width: 640px) {
  .filter-bar-zone { padding-top: 14px; }

  /* two-row toolbar: row 1 = status pills, row 2 = position select +
     search icon + reset icon (search sits right next to reset).
     justify-content applies per line in a wrapped flex container, so
     this centers each row's group independently instead of leaving
     them pinned to the left edge. */
  .filter-bar { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px; }

  .status-group { order: -1; flex: 0 0 auto; }

  .filter-break { display: block; flex: 0 0 100%; height: 0; order: 0; }

  .field:not(.field--search) { order: 1; flex: 0 0 auto; }

  .field--search { order: 2; flex: 0 0 auto; }
  .field--search input[type="search"] {
    width: 36px; height: 36px;
    padding: 0; border-color: transparent; background: transparent;
    cursor: pointer;
    transition: width var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out),
                background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  }
  .field--search input[type="search"]:focus-visible {
    width: 150px; padding-left: 34px; padding-right: 12px;
    border-color: var(--line-hair); background: rgba(255,255,255,0.04);
    cursor: text;
  }
  .field--search svg { left: 10px; }

  .btn-reset-icon { order: 3; flex: 0 0 auto; margin-left: 0; width: 36px; height: 36px; }
}

/* =====================================================================
   ROSTER GRID — FIBA-referenced card structure: photo dominant, info
   docked at the base. Own material throughout (dark, glass, signal blue).
   ===================================================================== */
.roster { position: relative; z-index: 1; padding: 28px var(--edge) 100px; }
.roster__grid {
  max-width: var(--container); margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1280px) { .roster__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .roster__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px)  { .roster__grid { grid-template-columns: 1fr; } }

.card {
  opacity: 0; transform: translateY(22px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
}
.card.is-visible { opacity: 1; transform: none; }

.card__link {
  display: block; position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line-hair);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.card__link:hover, .card__link:focus-visible { transform: translateY(-6px); border-color: var(--line-hair-strong); box-shadow: var(--shadow-pop); }

.card__photo { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--ink-700), var(--ink-800)); overflow: hidden; }
.card__photo img {
  width: 100%; height: 100%; object-fit: contain; object-position: top center;
  transition: transform 900ms var(--ease-out);
}
.card__link:hover .card__photo img { transform: scale(1.045); }
.card__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(5,7,12,0.6) 62%, rgba(5,7,12,0.97) 100%);
}

.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; }
.card__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.18; margin: 0 0 7px; }
.card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 500; color: var(--paper-200); margin-bottom: 10px; }
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fog-400); }
.card__pos { color: var(--signal-300); font-weight: 700; }

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; row-gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.12); }
.card__nat { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--paper-50); }
.card__nat img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,0.5); }
.card__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--paper-50);
}
.card__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.card__status.is-available { color: var(--status-available); }
.card__status.is-signed { color: var(--status-signed); }

.card__hover-cta {
  position: absolute; inset: auto 12px 12px 12px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: var(--r-md);
  font-size: 12.5px; font-weight: 700; color: var(--paper-50);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.card__link:hover .card__hover-cta, .card__link:focus-visible .card__hover-cta { opacity: 1; transform: none; }
.card__link:hover .card__body, .card__link:focus-visible .card__body { transform: translateY(-58px); }
.card__body { transition: transform var(--dur-fast) var(--ease-out); }

.card__hover-cta svg { width: 13px; height: 13px; }

/* touch devices have no real :hover — show the CTA (and dock the body
   up to match) permanently instead of gating it behind a tap. */
@media (hover: none) {
  .card__hover-cta { opacity: 1; transform: none; }
  .card__body { transform: translateY(-58px); }
}

/* empty state */
.empty-state { display: none; max-width: var(--container); margin: 40px auto; text-align: center; padding: 60px 20px; color: var(--fog-400); }
.empty-state.is-visible { display: block; }
.empty-state h3 { font-family: var(--font-display); color: var(--paper-50); font-size: 1.2rem; margin: 14px 0 6px; }
.empty-state svg { width: 32px; height: 32px; color: var(--fog-500); }
.empty-state button { margin-top: 16px; }

/* =====================================================================
   FOOTER — stand-in for get_footer(); visual language only.
   ===================================================================== */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line-hair); padding: 56px var(--edge) 32px; margin-top: 40px; }
.site-footer__grid { max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
/* the brand mark and nav list have no heading above them (unlike Contact,
   which keeps its "Contact" label) — nudge them down to the same baseline
   so the three columns still start their real content in one straight line. */
@media (min-width: 721px) {
  .site-footer__grid > div:nth-child(1),
  .site-footer__grid > div:nth-child(2) { padding-top: 34px; }
}
.site-footer h4 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fog-400); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--paper-200); font-size: 14px; transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--signal-300); }
.site-footer .brand img { height: 28px; width: auto; }
.social-link { display: inline-flex; align-items: center; gap: 10px; }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--fog-400); transition: color var(--dur-fast) var(--ease-out); }
.social-link:hover svg { color: var(--signal-300); }
.site-footer__bottom { max-width: var(--container); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line-hair); font-size: 12.5px; color: var(--fog-400); }

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper-50);
  opacity: 0; transform: translateY(14px) scale(0.92);
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { color: var(--signal-300); }
.back-to-top svg { width: 18px; height: 18px; }

/* =====================================================================
   PLAYER PROFILE PAGE (phase 2)
   ===================================================================== */
.breadcrumb-zone { padding: 22px var(--edge) 0; position: relative; z-index: 1; }
.breadcrumb { max-width: var(--container-narrow); margin-inline: auto; }
.breadcrumb a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--fog-400); font-size: 13.5px; font-weight: 600;
  transition: color var(--dur-fast) var(--ease-out);
}
.breadcrumb a:hover { color: var(--paper-50); }
.breadcrumb svg { width: 15px; height: 15px; }

.player-hero { padding: 24px var(--edge) 8px; position: relative; z-index: 1; }
.player-hero__grid {
  max-width: var(--container-narrow); margin-inline: auto;
  display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 36px; align-items: start;
}
@media (max-width: 720px) { .player-hero__grid { grid-template-columns: 1fr; gap: 24px; max-width: 420px; } }

.player-photo-frame {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-hair); box-shadow: var(--shadow-card);
}
.player-hero .card__name { font-size: 1.5rem; }
.player-intro { padding-top: 4px; }

.fact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--line-hair);
}
@media (max-width: 720px) { .fact-grid { grid-template-columns: 1fr; } }
.fact-item { background: var(--ink-850); padding: 16px 18px; }
.fact-item__label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog-400); margin-bottom: 6px; }
.fact-item__value { font-size: 15px; font-weight: 700; color: var(--paper-50); }

.section { padding: 44px var(--edge) 0; position: relative; z-index: 1; }
.section__inner { max-width: var(--container-narrow); margin-inline: auto; text-align: center; }
.section h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 18px; }

.stats-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.stats-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 700; color: var(--paper-50);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.stats-link:hover { border-color: var(--signal-500); transform: translateY(-2px); }
.stats-link svg { width: 14px; height: 14px; color: var(--signal-300); }

.video-grid, .gallery-grid { text-align: left; }

.video-grid, .gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .video-grid, .gallery-grid { grid-template-columns: 1fr; } }
.video-grid:has(> .video-facade:only-child) { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
@media (min-width: 721px) and (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.video-facade {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink-800); border: 1px solid var(--line-hair);
  cursor: pointer;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.video-facade:hover img { transform: scale(1.04); }
.video-facade::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,7,12,0.05) 40%, rgba(5,7,12,0.85) 100%);
}
.video-facade.is-active { cursor: default; }
.video-facade.is-active::after { content: none; }
.video-facade__play {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper-50);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.video-facade:hover .video-facade__play { transform: translate(-50%,-50%) scale(1.08); background: var(--signal-500); border-color: var(--signal-500); }
.video-facade__play svg { width: 20px; height: 20px; margin-left: 3px; }
.video-facade__title {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  font-size: 13px; font-weight: 700; color: var(--paper-50);
}
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery-item {
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink-800); border: 1px solid var(--line-hair);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 40px;
  background: rgba(5,7,12,0.9);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--paper-50); cursor: pointer;
}
.lightbox__close svg { width: 18px; height: 18px; }

/* =====================================================================
   OUR TEAM — agency staff cards. Simpler than the FIBA player card
   (no position/DOB/status/nationality), same material/radius tokens.
   ===================================================================== */
.staff-card {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink-800); border: 1px solid var(--line-hair);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.staff-card:hover { transform: translateY(-6px); border-color: var(--line-hair-strong); box-shadow: var(--shadow-pop); }
.staff-card__photo { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--ink-700), var(--ink-800)); overflow: hidden; }
.staff-card__photo img { width: 100%; height: 100%; object-fit: contain; object-position: top center; display: block; transition: transform 900ms var(--ease-out); }
.card__link:hover .staff-card__photo img { transform: scale(1.045); }
.staff-card__body { padding: 16px; }
.staff-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; margin: 0 0 5px; }
.staff-card__title { color: var(--fog-400); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .card { opacity: 1; transform: none; }
}

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch__btn {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-hair-strong); padding: 0; cursor: pointer;
  background: transparent; opacity: 0.65; flex: 0 0 auto;
  transition: opacity var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.lang-switch__btn:hover, .lang-switch__btn:focus-visible { opacity: 1; border-color: var(--signal-400); }
.lang-switch__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
#google_translate_element { display: none !important; }
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame { display: none !important; visibility: hidden !important; height: 0 !important; }
.goog-te-gadget-icon { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body, html { top: 0 !important; position: static !important; margin-top: 0 !important; }
.skiptranslate iframe { visibility: hidden !important; height: 0 !important; }
body > .skiptranslate { display: none !important; }

/* mobile: hide the header-pill copy, show a subtler one tucked inside the
   mobile nav dropdown instead of crowding the glass pill next to the
   hamburger icon */
@media (max-width: 900px) {
  .site-header__inner > .lang-switch { display: none; }
}
.lang-switch--mobile {
  justify-content: center;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-hair);
}
.lang-switch--mobile .lang-switch__btn { width: 28px; height: 28px; opacity: 0.65; }
