/* ═══════════════════════════════════
   PLAYER CARDS — EA FC style
   ═══════════════════════════════════ */

/* ── Slider ── */
.pcards-slider { position: relative; width: 100%; overflow: hidden; }
.pcards-track {
  display: flex;
  transition: transform 0.4s ease;
  touch-action: pan-y;
}

/* ── Card ── */
.pcard {
  position: relative;
  min-width: 100%;
  aspect-ratio: 9/16;
  max-height: 640px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(212,175,55,0.3), 0 0 80px rgba(212,175,55,0.1);
}
.pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(160deg, #d4af37, #f7e98e, #d4af37, #a07c1c, #d4af37);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 10;
  pointer-events: none;
}

/* ── Photo ── */
.pcard__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* ── Overlay ── */
.pcard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 15%,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 70%,
    rgba(10,10,15,0.98) 100%);
  z-index: 2;
}

/* ── Shine ── */
.pcard__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 55%, transparent 60%);
  z-index: 8;
  pointer-events: none;
  animation: pcardShine 4s ease-in-out infinite;
}
@keyframes pcardShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ── Decorative corners ── */
.pcard__corner {
  position: absolute;
  width: 30px; height: 30px;
  border-color: rgba(212,175,55,0.3);
  border-style: solid;
  z-index: 5;
  pointer-events: none;
}
.pcard__corner--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.pcard__corner--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.pcard__corner--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.pcard__corner--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }

/* ── Watermark ── */
.pcard__watermark {
  position: absolute;
  top: 50%; right: -15px;
  transform: translateY(-50%);
  font-size: 160px;
  color: rgba(212,175,55,0.04);
  z-index: 1;
  pointer-events: none;
}

/* ── Top bar ── */
.pcard__top {
  position: absolute;
  top: 12px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.pcard__club {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.pcard__cat {
  background: linear-gradient(135deg, #d4af37, #a07c1c);
  color: #0a0a0f;
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 16px;
  letter-spacing: 1px;
}

/* ── Rating big ── */
.pcard__rating-big {
  position: absolute;
  top: 40px; left: 16px;
  z-index: 5;
}
.pcard__rating-num {
  font-size: 44px; font-weight: 900;
  color: #d4af37; line-height: 1;
  text-shadow: 0 2px 20px rgba(212,175,55,0.5);
  letter-spacing: -2px;
}
.pcard__rating-label {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ── Content ── */
.pcard__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 20px 22px;
  z-index: 5;
}
.pcard__first {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 3px;
  display: block;
}
.pcard__last {
  font-size: 26px; font-weight: 800;
  color: #fff;
  text-transform: uppercase; letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.pcard__divider {
  height: 2px;
  background: linear-gradient(90deg, #d4af37, rgba(212,175,55,0.2), transparent);
  margin: 10px 0;
  border-radius: 2px;
}

/* ── Stats ── */
.pcard__stats {
  display: flex;
  justify-content: space-between;
}
.pcard__stat {
  text-align: center; flex: 1;
  position: relative;
}
.pcard__stat + .pcard__stat::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: rgba(212,175,55,0.2);
}
.pcard__stat-val {
  font-size: 20px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.pcard__stat-lbl {
  font-size: 8px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.pcard__fide {
  display: inline-flex;
  align-items: center; gap: 4px;
  font-size: 8px; font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}
.pcard__fide::before {
  content: '';
  width: 5px; height: 5px;
  background: #d4af37;
  border-radius: 50%;
}

/* ── Dots ── */
.pcards-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.pcards-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s;
}
.pcards-dot.active { background: #d4af37; }

/* ── Sidebar variant (smaller) ── */
.dt-sidebar .pcards-slider { max-width: 100%; }
.dt-sidebar .pcard { max-height: 480px; border-radius: 12px; }
.dt-sidebar .pcard::before { border-radius: 12px; }
.dt-sidebar .pcard__rating-num { font-size: 36px; }
.dt-sidebar .pcard__last { font-size: 22px; }
.dt-sidebar .pcard__stat-val { font-size: 18px; }

/* ── Juniorzy page (centered, larger) ── */
.juniorzy-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 24px 0;
}
.juniorzy-cards .pcard {
  min-width: 0;
  width: 340px;
  max-height: 600px;
}

/* ── Mobile players slider on homepage ── */
.mobile-players-slider {
  margin: 0;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .juniorzy-cards .pcard {
    width: 100%;
    max-height: none;
  }
}

/* ═══════════════════════════════════
   CHAMPION CARDS — Mistrzowie Polski
   ═══════════════════════════════════ */

/* ── Individual champion card ── */
.pcard--champion .pcard__cat {
  background: linear-gradient(135deg, #d4af37, #f7e98e, #d4af37);
  color: #0a0a0f;
}
.pcard--champion .pcard__rating-big { display: none; }
.pcard--champion .pcard__crown {
  position: absolute;
  top: 38px; left: 16px;
  z-index: 5;
}
.pcard--champion .pcard__crown-icon {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 2px 12px rgba(212,175,55,0.6));
}
.pcard--champion .pcard__crown-label {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.pcard--champion .pcard__divider {
  background: linear-gradient(90deg, #d4af37, #f7e98e, rgba(212,175,55,0.2), transparent);
}
.pcard--champion .pcard__fide::before { display: none; }

/* ── Champions banner (wide — desktop only) ── */
.champions-banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #0a0a0f;
  border-radius: 12px;
}
.champions-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(160deg, #d4af37, #f7e98e, #d4af37, #a07c1c);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 10;
  pointer-events: none;
  opacity: 0.4;
}
.champions-banner__photo {
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.champions-banner__photo--left {
  left: 0;
  border-radius: 12px 0 0 12px;
  -webkit-mask-image: linear-gradient(to right, black 40%, transparent 100%);
  mask-image: linear-gradient(to right, black 40%, transparent 100%);
}
.champions-banner__photo--right {
  right: 0;
  border-radius: 0 12px 12px 0;
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
  mask-image: linear-gradient(to left, black 40%, transparent 100%);
}
.champions-banner__content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.champions-banner__label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #d4af37;
}
.champions-banner__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: var(--space-2) auto;
}
.champions-banner__names {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.champions-banner__sub {
  font-size: var(--text-sm);
  color: #d4af37;
  margin-top: var(--space-1);
}
.champions-banner__club {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-1);
  letter-spacing: 1px;
}

/* ── Champion mobile (rotating photo center + text) ── */
.champ-mobile {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.champ-mobile__photo {
  width: 200px;
  height: 260px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 16px;
  border: 2px solid rgba(212,175,55,0.35);
  box-shadow: 0 8px 40px rgba(212,175,55,0.15), 0 4px 20px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.8s ease;
  flex-shrink: 0;
}
.champ-mobile__photo--active {
  opacity: 1;
}
/* Stack photos on top of each other */
.champ-mobile__photo:nth-child(2) {
  margin-top: -260px;
}
.champ-mobile__content {
  text-align: center;
  margin-top: var(--space-6);
  z-index: 5;
}
.champ-mobile__label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #d4af37;
  background: rgba(212,175,55,0.1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.25);
  display: inline-block;
}
.champ-mobile__divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: var(--space-3) auto;
}
.champ-mobile__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.champ-mobile__title {
  font-size: 1.1rem;
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: var(--space-1);
  text-shadow: 0 1px 8px rgba(212,175,55,0.3);
}
.champ-mobile__club {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: var(--space-4);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.champ-mobile__dots {
  display: flex;
  gap: 8px;
  margin-top: var(--space-4);
  z-index: 10;
}
.champ-mobile__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s;
}
.champ-mobile__dot--active {
  background: #d4af37;
}
