/* Player popup — bright, premium, laptop-first. ?v=20261005c1 */

.pv-no-scroll { overflow: hidden; }

.pv-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 18, 16, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.pv-overlay[hidden] { display: none; }

.pv-dialog {
  position: relative;
  width: min(560px, 100%);
  background: #fffdf9;
  border-radius: 20px;
  border: 1px solid #ece4d6;
  box-shadow: 0 30px 80px rgba(20, 18, 16, 0.35);
  padding: 32px 32px 28px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
}

.pv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5dccb;
  background: #f7f2e9;
  color: #3c342a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.pv-close:hover,
.pv-close:focus-visible { background: #efe6d2; outline: 2px solid #c2372f; outline-offset: 2px; }

.pv-head { display: flex; gap: 20px; align-items: center; }

.pv-portrait { flex: 0 0 auto; }

.pv-headshot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(20, 18, 16, 0.18);
  background: #f0e9da;
  display: block;
}

.pv-medallion {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: #fffdf9;
  background: linear-gradient(135deg, #c2372f 0%, #e07b39 100%);
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(20, 18, 16, 0.18);
}

.pv-name {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  color: #191512;
  letter-spacing: -0.01em;
}

.pv-meta {
  margin: 0;
  font-size: 14px;
  color: #7a6f5f;
}

/* Legends extension (2026-10-05): the story paragraph for all-time greats. */
.pv-bio {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #3c342a;
}

.pv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
  margin: 22px 0 20px;
}

.pv-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px 12px;
  border-radius: 14px;
  background: #f8f3e8;
  border: 1px solid #ece2cd;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.pv-stat:hover,
.pv-stat:focus-visible {
  transform: translateY(-2px);
  border-color: #c2372f;
  box-shadow: 0 8px 20px rgba(194, 55, 47, 0.16);
  outline: none;
}

.pv-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #191512;
  line-height: 1.1;
}
.pv-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7d68;
  text-align: center;
}

.pv-full {
  display: block;
  text-align: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: #191512;
  color: #fffdf9;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.pv-full:hover,
.pv-full:focus-visible { background: #c2372f; outline: none; }

.pv-loading,
.pv-fail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 0 12px;
  text-align: center;
}

/* 390px — tightened spacing, still airy */
@media (max-width: 480px) {
  .pv-overlay { padding: 14px; }
  .pv-dialog { padding: 26px 20px 22px; border-radius: 16px; }
  .pv-head { gap: 14px; }
  .pv-headshot, .pv-medallion { width: 76px; height: 76px; }
  .pv-medallion { font-size: 26px; }
  .pv-name { font-size: 21px; }
  .pv-stats { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); margin: 18px 0 16px; }
  .pv-stat-val { font-size: 20px; }
}
