/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:               #0c0c14;
  --surface:          #13131e;
  --border:           #1a1a28;
  --text:             #f0f0f4;
  --muted:            #787896;
  --ease:             cubic-bezier(0.4, 0, 0.2, 1);
  --dur:              320ms;
  --z-nav:            40;
  --z-arr:            30;
  --z-panel:          60;
  --panel-accent-rgb: 0, 0, 0;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow: hidden; height: 100%; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100svh;
  user-select: none;
  overscroll-behavior: none;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}
button { border: none; background: none; cursor: pointer; }

/* ─── Global cursor glow ────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: left 0.08s ease, top 0.08s ease;
  will-change: left, top;
}

/* ─── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(to bottom, rgba(5,5,10,0.9) 0%, transparent 100%);
  pointer-events: none;
}

/* ─── Profile card (fixed, top-left) ───────────────────────── */
.profile-card {
  position: fixed; top: 1.4rem; left: 2.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(12,12,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 0.5rem 0.8rem 0.5rem 0.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  pointer-events: all;
  z-index: var(--z-nav);
}

.profile-card-top { display: contents; }

.profile-card-av {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
}
.profile-card-info { display: flex; flex-direction: column; gap: 0.08rem; }
.profile-card-name {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 0.82rem; color: var(--text); white-space: nowrap;
}
.profile-card-role { font-size: 0.68rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

.profile-divider {
  width: 1px; height: 28px; background: rgba(255,255,255,0.1); flex-shrink: 0;
}

.profile-socials { display: flex; gap: 0.3rem; }
.social-link {
  width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted); text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.social-link:hover { color: var(--text); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }
.nav-hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 600px) { .nav-hint { display: none; } }
.nav-counter {
  position: fixed;
  top: 1.4rem; right: 2.5rem;
  z-index: var(--z-nav);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.9rem;
  background: rgba(12,12,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#nav-num { font-size: 1.3rem; color: var(--text); transition: opacity 0.2s ease; }
.nav-sep { opacity: 0.3; }

/* ─── Stage ─────────────────────────────────────────────────── */
.stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;  /* clips the track on both sides */
}

/* ─── Track (JS-controlled via transform) ───────────────────── */
#carousel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
  /* width set by JS */
}

/* ─── Slide ─────────────────────────────────────────────────── */
.slide {
  flex-shrink: 0;
  /* width / gap set by JS via inline style */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  perspective: 900px;
}
.slide:focus-visible { outline: none; }

.slide-tilt {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  will-change: transform;
}

/* Glow orb */
.slide-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  opacity: var(--glow-op, 0);
  pointer-events: none;
  filter: blur(65px);
  will-change: opacity;
}

/* Jersey image */
.slide-img {
  position: relative;
  z-index: 2;
  max-height: 76vh;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  pointer-events: none;

  /* All state transitions driven by JS-set CSS vars */
  transform: scale(var(--scale, 0.62));
  filter: brightness(var(--br, 0.3)) saturate(var(--sat, 0.4));
  opacity: var(--op, 0.7);

  transition:
    transform 0.12s var(--ease),
    filter 0.18s var(--ease),
    opacity 0.18s var(--ease);
  will-change: transform, filter;
}

/* Country name */
.slide-name {
  position: relative;
  z-index: 2;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 2.5rem;
  white-space: nowrap;

  opacity: var(--name-op, 0);
  transform: translateY(calc(6px * (1 - var(--name-op, 0))));
  transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

/* Click hint */
.slide-hint {
  position: relative;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.45rem;

  opacity: var(--hint-op, 0);
  transform: translateY(calc(5px * (1 - var(--hint-op, 0))));
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

/* ─── Arrows ────────────────────────────────────────────────── */
.arr {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: var(--z-arr);
  color: var(--muted);
  padding: 0.9rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13,13,22,0.8);
  backdrop-filter: blur(8px);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 0.12s var(--ease), background var(--dur) var(--ease);
}
.arr:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.arr.pressed {
  transform: translateY(-50%) scale(0.84);
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border-color: rgba(255,255,255,0.35);
}
.arr-l { left: 1.5rem; }
.arr-r { right: 1.5rem; }
@media (max-width: 600px) { .arr { padding: 0.6rem; } .arr-l { left: 0.7rem; } .arr-r { right: 0.7rem; } }

/* ─── World Cup countdown ───────────────────────────────────── */
.wc-countdown {
  position: fixed;
  bottom: 1.9rem;
  left: 2.5rem;
  z-index: var(--z-panel);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: rgba(12,12,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.wc-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.wc-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wc-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 32px;
}
.wc-unit span {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1;
}
.wc-unit em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wc-sep {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  opacity: 0.5;
}

/* ─── Keyboard hint ─────────────────────────────────────────── */
.kb-hint {
  position: fixed;
  bottom: 1.9rem;
  right: 2.5rem;
  z-index: calc(var(--z-panel) + 10);
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  background: rgba(12,12,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: kb-glow 4s ease-in-out infinite;
}
.kb-key {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-bottom: 2px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  user-select: none;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease, transform 0.1s ease;
}
.kb-key.pressed {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  border-color: rgba(255,255,255,0.4);
  transform: scale(0.82) translateY(2px);
}
@keyframes kb-glow {
  0%, 100% { filter: drop-shadow(0 0 0px transparent); }
  50%       { filter: drop-shadow(0 0 5px rgba(91,124,247,0.3)); }
}

/* ─── Stage blur when panel is open ────────────────────────── */
.stage { transition: filter 0.4s var(--ease); }
.stage.blurred { filter: blur(10px) brightness(0.5); }

/* ─── Progress dots ─────────────────────────────────────────── */
.dots {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: calc(var(--z-panel) + 5);
  transition: opacity 0.15s ease;
}
.dots.in-panel {
  left: 2.5rem;
  bottom: 1.9rem;
  transform: translateX(0);
}
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted);
  transition: background var(--dur) ease, width var(--dur) ease;
  cursor: pointer;
}
.dot.active { background: var(--text); width: 20px; border-radius: 3px; }

/* ─── Detail Panel ──────────────────────────────────────────── */
.panel {
  position: fixed; inset: 0;
  z-index: var(--z-panel);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  overflow-y: auto;
}
.panel.open { opacity: 1; pointer-events: all; transform: translateY(0); }

/* Team color ambient wash — fills the whole panel from the jersey side */
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 27% 50%,
    rgba(var(--panel-accent-rgb), 0.07) 0%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 800px) {
  .panel::before {
    background: radial-gradient(
      ellipse 85% 45% at 50% 32%,
      rgba(var(--panel-accent-rgb), 0.07) 0%,
      transparent 70%
    );
  }
}

.panel-close {
  position: fixed; top: 1.5rem; right: 1.75rem;
  z-index: calc(var(--z-panel) + 10);
  color: var(--muted); padding: 0.5rem;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface);
  transition: color var(--dur) ease, background var(--dur) ease;
}
.panel-close:hover { color: var(--text); background: #1a1a28; }

.panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1320px; width: 100%;
  padding: 3.5rem 4rem 1.5rem;
  gap: 4rem;
  height: 100svh;
  box-sizing: border-box;
}
@media (max-width: 800px) {
  .panel-inner { grid-template-columns: 1fr; padding: 4rem 1.5rem 1.5rem; gap: 1.5rem; height: auto; }
}

.panel-left {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.panel-glow {
  position: absolute; inset: -28%;
  border-radius: 50%; opacity: 0.32;
  filter: blur(90px); pointer-events: none;
}

/* Elliptical shadow anchoring the jersey to the floor */
.panel-floor {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  height: 22px;
  background: radial-gradient(ellipse at center,
    rgba(var(--panel-accent-rgb), 0.45) 0%,
    transparent 70%
  );
  filter: blur(14px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.panel-left img {
  position: relative; z-index: 2;
  max-height: 84vh; max-width: 100%;
  width: auto; object-fit: contain;
  animation:
    panel-img-in 0.5s var(--ease) both,
    jersey-float 5s ease-in-out 0.5s infinite;
}
@keyframes panel-img-in {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes jersey-float {
  0%        { transform: translateY(0px)   rotate(0deg); }
  30%       { transform: translateY(-8px)  rotate(0.3deg); }
  60%       { transform: translateY(-12px) rotate(0.4deg); }
  100%      { transform: translateY(0px)   rotate(0deg); }
}

.panel-bg-name {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 13vw, 10rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0.045;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  line-height: 1;
}
}

.panel-right {
  animation: panel-data-in 0.5s var(--ease) 0.1s both;
  overflow-y: auto;
  max-height: calc(100svh - 5rem);
  padding-right: 4px;
}
.panel-right::-webkit-scrollbar { width: 3px; }
.panel-right::-webkit-scrollbar-track { background: transparent; }
.panel-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
@keyframes panel-data-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.pd-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.25rem 0.8rem;
  border-radius: 50px; border: 1px solid; margin-bottom: 0.4rem;
  white-space: nowrap;
}
.pd-name {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 0.25rem;
}
.pd-nickname { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }
.pd-divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.06); margin: 0.6rem 0; }

.pd-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.pd-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.9rem 1.1rem;
}
.pd-stat-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem;
}
.pd-stat-value { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.05rem; }
.pd-champion .pd-stat-value { color: #ffd060; }

.pd-section-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem;
}
.pd-players { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.pd-player {
  background: linear-gradient(135deg, #181828 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.28rem 0.85rem 0.28rem 0.28rem;
  font-size: 0.8rem; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  display: inline-flex; align-items: center; gap: 0.45rem;
  position: relative; cursor: default;
}
.pd-player:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #1e1e30 0%, #181826 100%);
  transform: translateY(-1px);
  z-index: 2;
}
.pd-fact {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid; border-radius: 8px;
  padding: 1rem 1.25rem; font-size: 0.85rem;
  color: var(--muted); line-height: 1.6; font-style: italic;
}

/* ─── Panel narrative styles ────────────────────────────────── */
.pd-sub {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pd-hero {
  background: linear-gradient(145deg, #191928 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pd-hero:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 4px 16px rgba(0, 0, 0, 0.35);
}
.pd-hero.pd-champion {
  border-left-color: #ffd060;
  background: linear-gradient(145deg, rgba(255, 208, 96, 0.07) 0%, var(--surface) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 208, 96, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.35);
}
.pd-hero-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.pd-hero-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.1rem;
}
.pd-hero.pd-champion .pd-hero-value { color: #ffd060; }
.pd-hero-year {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-meta-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.pd-meta {
  flex: 1;
  background: linear-gradient(160deg, #161625 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.25);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pd-meta:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 8px rgba(0, 0, 0, 0.25);
}
.pd-meta.pd-champion {
  border-color: rgba(255, 208, 96, 0.18);
  background: linear-gradient(160deg, rgba(255, 208, 96, 0.07) 0%, rgba(255, 208, 96, 0.02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 208, 96, 0.07),
    0 2px 8px rgba(0, 0, 0, 0.25);
}
.pd-meta-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
}
.pd-meta-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-quote {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, #0f0f1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pd-quote:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 20px rgba(0, 0, 0, 0.35);
}
.pd-quote::before { content: ''; }
.pd-quote-text {
  font-size: 0.83rem;
  color: #9898b4;
  line-height: 1.55;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ─── Player avatar + role tooltip ──────────────────────────── */
.pd-player-av {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-size: 0.58rem; font-weight: 800;
  border: 1px solid transparent; flex-shrink: 0;
}
.pd-player-role {
  position: absolute;
  bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #1c1c2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px; padding: 0.28rem 0.7rem;
  font-size: 0.7rem; font-weight: 500;
  color: var(--text); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.pd-player:hover .pd-player-role {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Quote: detached icon + carousel dots ───────────────────── */
.pd-quote-icon {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 2rem; font-weight: 900; line-height: 1;
  margin-bottom: 0.35rem; opacity: 0.9;
}
.pd-quote-text { transition: opacity 0.22s ease, transform 0.22s ease; }
.pd-quote-dots {
  display: flex; align-items: center; gap: 5px; margin-top: 0.45rem;
}
.pd-qdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none; cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background 0.25s ease, width 0.25s ease;
}
.pd-qdot.active { background: rgba(255, 255, 255, 0.65); width: 14px; border-radius: 3px; }
.pd-qdot:hover:not(.active) { background: rgba(255, 255, 255, 0.38); }

/* ─── WC 2026 outlook bar ────────────────────────────────────── */
.pd-outlook-bar {
  display: flex;
  align-items: stretch;
  background: linear-gradient(160deg, #161625 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  margin-bottom: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pd-outlook-bar:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.2);
}
.pd-outlook-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.8rem;
}
.pd-outlook-sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  margin: 0.5rem 0;
}
.pd-outlook-label {
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pd-outlook-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

/* ─── Next match card ────────────────────────────────────────── */
.pd-next-match {
  background: linear-gradient(145deg, #191928 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px; padding: 0.5rem 0.85rem;
  margin-bottom: 0.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pd-next-match:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 8px rgba(0, 0, 0, 0.25);
}
.pd-match-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.2rem;
}
.pd-match-vs {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--text);
}
.pd-match-meta { font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.pd-match-badge {
  font-size: 0.57rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #60d9a0;
  display: flex; align-items: center; gap: 4px;
}
.pd-match-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ─── Legends list (players) ─────────────────────────────────── */
.pd-legends {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}
.pd-legend-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.6rem;
  background: rgba(16, 16, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 10px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pd-legend-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 2px 10px rgba(0, 0, 0, 0.35);
}
.pd-legend-av {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-size: 0.6rem; font-weight: 800;
  border: 1px solid transparent; flex-shrink: 0;
  overflow: hidden;
}
.pd-legend-av-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pd-legend-info {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.pd-legend-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-legend-role {
  font-size: 0.64rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Mobile nav arrows (hidden on desktop) ─────────────────── */
.mob-nav { display: none; }

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hide desktop-only elements */
  .wc-countdown    { display: none; }
  .kb-hint         { display: none; }
  .profile-divider { display: none; }

  /* Full-width profile bar */
  .profile-card {
    left: 0; right: 0; top: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 1.2rem;
    gap: 0.6rem;
  }
  .profile-socials { margin-left: auto; }

  /* Counter: moved to bottom center, grouped with jersey name / nav area */
  .nav-counter {
    top: auto;
    bottom: 4.4rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
  }
  .nav-counter #nav-num { font-size: 0.95rem; }

  /* Dots: always centered at bottom on mobile, same in carousel and panel */
  .dots        { bottom: 2.6rem; }
  .dots.in-panel { left: 50%; bottom: 2.6rem; transform: translateX(-50%); }

  /* Carousel jersey: smaller on mobile */
  .slide-img { max-height: 50vh; }

  /* Mobile arrows */
  .mob-nav { display: block; }
  .mob-arr {
    position: fixed;
    bottom: 1.6rem;
    z-index: calc(var(--z-panel) + 5);
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(12, 12, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .mob-arr:active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.32);
  }
  .mob-arr-l { left: 1.2rem; }
  .mob-arr-r { right: 1.2rem; }

  /* Panel on mobile: opacity-only transition + flex-start alignment so
     content starts at the top of the viewport (center+overflow was hiding
     the top of the jersey above the viewport) */
  .panel {
    transform: none !important;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .panel.open { opacity: 1; }

  /* Panel on mobile */
  .panel-inner {
    padding: 4.5rem 1.2rem 5rem;
    gap: 1.2rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .panel-right {
    max-height: none;
    overflow-y: visible;
    min-width: 0;
    width: 100%;
  }
  .panel-left { min-width: 0; min-height: 0; }
  .panel-left img { max-height: 40vh; }
  .pd-name { font-size: clamp(1.6rem, 8vw, 2.2rem); }

  /* Bottom gradient + blur overlay behind nav */
  .mob-nav::before {
    content: '';
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 130px;
    background: linear-gradient(
      to top,
      rgba(8, 8, 16, 0.97) 0%,
      rgba(8, 8, 16, 0.75) 40%,
      transparent 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
    mask-image: linear-gradient(to top, black 40%, transparent 100%);
    pointer-events: none;
    z-index: calc(var(--z-panel) + 4);
  }
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
