/* ============================================================================
   HBL — Unified Player Card component  (single source of truth)
   Used on:  Players grid · Homepage PLAYERS · Player Profile → Related Players
   The CONTAINER (grid / carousel) sets the card WIDTH and the entrance anim;
   everything visual about the card lives here so every card across the site is
   visually identical — one premium HBL design system.
   ============================================================================ */

/* Card = transparent layout container. The visible glass is the lower INFO
   PANEL only, so the player always stands IN FRONT of it, never inside a box. */
.player-card {
  position: relative;
  overflow: visible;
  padding-top: 244px;            /* slot above the panel for the standing player */
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.player-card:hover { transform: translateY(-3px); }

/* Lower glass INFO PANEL — premium smoked glass, an elegant base under the
   player. Begins low (around the thigh) so it never wraps her upper body. */
.player-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: 168px;
  border-radius: 14px;
  background:
    linear-gradient(168deg,
      rgba(34,28,30,0.54) 0%,
      rgba(24,18,20,0.62) 46%,
      rgba(13,9,11,0.72) 100%);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.30),
    0 14px 40px rgba(0,0,0,0.46),
    0 30px 72px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -1px 0 rgba(0,0,0,0.32);
  overflow: hidden;
  z-index: 0;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
/* Soft glass reflection on the panel's top edge — depth, not a hard gloss */
.player-panel::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(158deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.013) 32%,
    transparent 60%);
  pointer-events: none;
}
.player-card:hover .player-panel {
  border-color: rgba(255,255,255,0.10);
  background:
    linear-gradient(168deg,
      rgba(38,31,33,0.57) 0%,
      rgba(26,20,22,0.64) 46%,
      rgba(15,10,12,0.73) 100%);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.30),
    0 18px 48px rgba(0,0,0,0.50),
    0 34px 78px rgba(0,0,0,0.32),
    0 0 34px rgba(255,31,90,0.09),
    inset 0 1px 0 rgba(255,255,255,0.09);
}
/* Micro-interaction: the player breathes very slightly on hover (max 1%) */
.player-card:hover .player-img-wrap img {
  transform: translateY(var(--pc-dy, 0px)) scale(calc(var(--pc-s, 1) * 1.01));
}

/* Near-invisible tonal separation behind the upper body. No circle, no
   spotlight — only a whisper so dark hair never sits on perfectly flat black. */
.player-sep {
  position: absolute;
  top: -70px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 322px;
  background: radial-gradient(ellipse 60% 56% at 50% 40%,
    rgba(44,36,39,0.20) 0%,
    rgba(30,24,27,0.09) 46%,
    transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* Player — ALWAYS the front-most visual layer (above panel + separation). */
.player-img-wrap {
  position: absolute;
  top: -86px; left: 0; right: 0;
  height: 360px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: visible;
  z-index: 1;
}
.player-img-wrap img {
  height: 346px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  /* Per-player optical unification (vars default to neutral). Scaled about the
     feet so every figure reads at the same size and lands on the same baseline. */
  transform-origin: bottom center;
  transform: translateY(var(--pc-dy, 0px)) scale(var(--pc-s, 1));
  /* Clean cutout + soft natural contact shadow so she truly stands in front of
     the panel. Black, large blur, low intensity — no glow, no coloured light. */
  filter:
    brightness(1.035) contrast(1.02)
    drop-shadow(0 16px 26px rgba(0,0,0,0.42))
    drop-shadow(0 6px 12px rgba(0,0,0,0.28));
  transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1), filter 0.4s ease;
}
/* Player image stays put on hover — it lifts gently with the card only. */

/* Optical unification — every figure normalised to the same content height and
   feet baseline, so all heads sit at the same height with the same overhang.
   Uniform scale about the feet → proportions, crop and pose are untouched. */
.player-img-wrap img[src*="Elza"] { --pc-s: 1.016; --pc-dy: 0px; }
.player-img-wrap img[src*="Kitana"] { --pc-s: 0.983; --pc-dy: 0px; }
.player-img-wrap img[src*="Naomi"] { --pc-s: 1.007; --pc-dy: 0px; }
.player-img-wrap img[src*="Habibti"] { --pc-s: 1.009; --pc-dy: 0px; }
.player-img-wrap img[src*="Mischella"] { --pc-s: 1.049; --pc-dy: 20px; }
.player-img-wrap img[src*="Yumi"] { --pc-s: 0.984; --pc-dy: 0px; }
.player-img-wrap img[src*="Kenza"] { --pc-s: 0.981; --pc-dy: 0px; }
.player-img-wrap img[src*="Love"] { --pc-s: 0.984; --pc-dy: 0px; }
.player-img-wrap img[src*="Sandra"] { --pc-s: 0.980; --pc-dy: 0px; }
.player-img-wrap img[src*="Sia"] { --pc-s: 1.096; --pc-dy: 28px; }
.player-img-wrap img[src*="Annabelle"] { --pc-s: 1.081; --pc-dy: 24px; }
.player-img-wrap img[src*="HotMia-clean"] { --pc-s: 0.987; --pc-dy: 0px; }
.player-img-wrap img[src*="BlondeAngel"] { --pc-s: 0.983; --pc-dy: 0px; }
.player-img-wrap img[src*="Lola"] { --pc-s: 1.008; --pc-dy: 0px; }
.player-img-wrap img[src*="Tess"] { --pc-s: 1.009; --pc-dy: 0px; }
.player-img-wrap img[src*="Natasha"] { --pc-s: 1.010; --pc-dy: 0px; }
.player-img-wrap img[src*="Lannye"] { --pc-s: 0.983; --pc-dy: 0px; }

/* Info — name, stats, profile link. Above the panel. */
.player-card-body { position: relative; z-index: 2; padding: 26px 22px 24px; }
.player-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff;
  line-height: 1; margin-bottom: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}
.player-stats { display: flex; gap: 28px; margin-bottom: 12px; }
.stat-group   { display: flex; flex-direction: column; }
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #FF1F5A;
  margin-bottom: 6px;
}
.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 800; color: #fff;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}
.player-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: #FF1F5A;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.28s cubic-bezier(0.22,1,0.36,1), text-shadow 0.28s, color 0.28s;
}
.player-link:hover {
  gap: 12px; color: #fff;
  text-shadow: 0 0 14px rgba(255,31,90,0.55);
}

/* ============================================================================
   MOBILE POLISH (≤640) — narrow single-column cards read premium & clean.
   Desktop is untouched (all of the above stays as-is above this breakpoint).
   ============================================================================ */
@media (max-width: 640px) {
  /* 2 — layering: the player is ALWAYS the front-most layer; the glass panel and
     the info text sit behind her, so the card never covers her legs. */
  .player-img-wrap { z-index: 3; }
  .player-card-body { z-index: 2; }
  .player-panel { z-index: 0; top: 180px; }   /* panel starts ~12px lower on the figure */

  /* 3 — pull the name block closer to the figure → less empty black band */
  .player-card { padding-top: 230px; }
  .player-card-body { padding-top: 18px; }

  /* 4 — very soft HBL-pink ambient glow UNDER the card (floats over black).
     Sits behind everything, never over the text or the player. */
  .player-card::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    left: 12%; right: 12%; bottom: 2px; height: 44%;
    background: rgba(255,45,101,0.07);
    filter: blur(40px); border-radius: 50%;
  }
}
