/* ═══ Player detail — visual parity with gnosi-player-screen mock ═══ */

#view-player {
  background: #07090E;
  overflow-x: hidden;
}

#view-player.active {
  display: block;
}

.pd-screen {
  --pd-accent: #00F59B;
  min-height: 100vh;
  background: #07090E;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 24px;
}

.pd-screen ::-webkit-scrollbar { display: none; }

@keyframes pd-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pd-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pd-scan {
  from { top: -2px; }
  to { top: 100vh; }
}
@keyframes pd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
@keyframes pd-glow {
  0%, 100% { box-shadow: 0 0 20px #00F59B22; }
  50% { box-shadow: 0 0 40px #00F59B44; }
}

.pd-scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}
.pd-scanline-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(transparent, #00F59B0A, transparent);
  animation: pd-scan 6s linear infinite;
}

/* ── Hero ── */
.pd-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.pd-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pd-accent, #00F59B) 22%, #0D1F1A) 0%, #07090E 62%);
}
.pd-hero-stripe {
  position: absolute;
  top: -100px;
  right: -60px;
  width: 300px;
  height: 700px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pd-accent, #00F59B) 10%, transparent) 0%, transparent 60%);
  transform: rotate(-15deg);
}
.pd-hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.07;
}
.pd-photo-wrap {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 320px;
  height: 460px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.pd-photo-wrap.visible { opacity: 1; }
.pd-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.pd-photo-fade-b {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(transparent, #07090E);
}
.pd-photo-fade-l {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, #0D1F1A, transparent);
}

.pd-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px 24px;
  z-index: 5;
}
.pd-hero-content.revealed { animation: pd-fadeUp 0.6s ease both; }

.pd-jersey-role {
  display: inline-flex;
  align-items: center;
  background: rgba(0,245,155,0.12);
  border: 1px solid rgba(0,245,155,0.3);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 9px;
  color: #00F59B;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pd-name-first {
  font-size: 13px;
  color: var(--txt2);
  letter-spacing: 6px;
  font-weight: 500;
}
.pd-name-last {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 0.9;
  background: linear-gradient(135deg, #FFFFFF 40%, rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pd-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pd-meta-row span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}
.pd-meta-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.15);
}

.pd-score-float {
  position: absolute;
  top: 48px;
  left: 16px;
  z-index: 10;
}
.pd-score-float.revealed { animation: pd-fadeIn 0.8s ease 0.3s both; }
.pd-score-box {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,245,155,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  animation: pd-glow 3s ease infinite;
}
.pd-score-lbl {
  font-size: 8px;
  color: #00F59B;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.pd-score-val {
  font-size: 38px;
  font-weight: 800;
  color: #00F59B;
  text-shadow: 0 0 20px #00F59B88;
  line-height: 1;
}
.pd-score-votes {
  font-size: 8px;
  color: var(--txt2);
  letter-spacing: 1px;
  margin-top: 4px;
}
.pd-score-locked {
  font-size: 11px;
  color: var(--txt2);
  letter-spacing: 1px;
  max-width: 100px;
  line-height: 1.3;
}

/* Quick stats */
.pd-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #0A0D14;
  border-top: 1px solid rgba(0,245,155,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pd-quick-cell {
  text-align: center;
  padding: 11px 4px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.pd-quick-cell:last-child { border-right: none; }
.pd-quick-v {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.pd-quick-l {
  font-size: 7px;
  color: var(--txt2);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Tabs */
.pd-tabs {
  display: flex;
  background: rgba(7,9,14,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.pd-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--txt2);
  padding: 14px 4px;
  font-size: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.pd-tab.active {
  color: #00F59B;
  border-bottom-color: #00F59B;
  text-shadow: 0 0 12px #00F59B88;
}

/* 4 tabs — slightly tighter */
.pd-tabs--four .pd-tab {
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 12px 2px;
}

/* ── POWERS tab (GNOSI emoji · removable 4th tab) ── */
.pd-powers-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pd-powers-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,245,155,0.06);
  border: 1px solid rgba(0,245,155,0.22);
  border-radius: 20px;
  padding: 8px 14px;
}
.pd-powers-chip-emoji { font-size: 18px; line-height: 1; }
.pd-powers-chip-label {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
.pd-powers-chip-pct {
  font-size: 12px;
  font-weight: 800;
  color: #00F59B;
  text-shadow: 0 0 8px #00F59B66;
}

.pd-powers-zone-hdr {
  font-size: 8px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 700;
}
.pd-powers-zone-hdr.universal { color: #34DFFF; }
.pd-powers-zone-hdr.zone { color: #8B5CF6; }

.pd-power-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pd-power-emoji {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.pd-power-meta { flex: 1; min-width: 0; }
.pd-power-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  gap: 8px;
}
.pd-power-label {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.pd-power-sublabel {
  font-size: 9px;
  color: var(--txt2);
  letter-spacing: 0.3px;
  margin-top: 1px;
}
.pd-power-pct {
  font-size: 12px;
  font-weight: 800;
  color: #00F59B;
  flex-shrink: 0;
}
.pd-power-track {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.pd-power-fill {
  height: 100%;
  border-radius: 4px;
  background: #00F59B;
  box-shadow: 0 0 6px #00F59B66;
  transition: width 0.8s ease;
}

.pd-powers-you {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-powers-you-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(52,223,255,0.06);
  border: 1px solid rgba(52,223,255,0.2);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.pd-powers-you-item span:first-child { font-size: 16px; }

.pd-powers-locked {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--txt2);
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.pd-powers-note {
  font-size: 9px;
  color: var(--txt3);
  letter-spacing: 0.5px;
  margin-top: 16px;
  line-height: 1.4;
}

.pd-body {
  padding: 24px 20px 100px;
  animation: pd-fadeUp 0.2s ease both;
}

.pd-sec-lbl {
  font-size: 9px;
  color: var(--txt2);
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}
.pd-sec { margin-bottom: 28px; }

.pd-form-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-form-pill {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}
.pd-form-pill.w { background: #00F59B18; border: 1px solid #00F59B55; color: #00F59B; }
.pd-form-pill.d { background: #F59E0B18; border: 1px solid #F59E0B55; color: #F59E0B; }
.pd-form-pill.l { background: #FF5C5C18; border: 1px solid #FF5C5C55; color: #FF5C5C; }

.pd-scout {
  background: rgba(0,245,155,0.04);
  border: 1px solid rgba(0,245,155,0.12);
  border-left: 3px solid #00F59B;
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
}
.pd-scout-txt {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  font-family: 'DM Mono', monospace;
  font-style: italic;
  letter-spacing: 0.2px;
}

.pd-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.pd-stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.pd-stat-v {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.pd-stat-l {
  font-size: 7px;
  color: var(--txt2);
  letter-spacing: 2px;
  margin-top: 6px;
}

.pd-gnosi-teaser {
  background: rgba(0,245,155,0.04);
  border: 1px solid rgba(0,245,155,0.15);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.pd-gnosi-teaser-score {
  font-size: 28px;
  font-weight: 800;
  color: #00F59B;
  text-shadow: 0 0 12px #00F59B88;
  line-height: 1;
}
.pd-gnosi-teaser-sub {
  font-size: 9px;
  color: var(--txt2);
  margin-top: 4px;
}
.pd-gnosi-teaser-arrow {
  font-size: 14px;
  color: #00F59B44;
}

.pd-sparkline { overflow: visible; flex: 1; max-width: 140px; }

/* History tab */
.pd-hist-entry {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.pd-hist-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pd-hist-match {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.pd-hist-date {
  font-size: 9px;
  color: var(--txt2);
  letter-spacing: 1px;
}
.pd-hist-stats {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--txt2);
  font-family: 'IBM Plex Mono', monospace;
}
.pd-hist-stats span { color: #00F59B; font-weight: 700; }

.pd-classic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pd-classic-cell {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
}
.pd-classic-l {
  font-size: 8px;
  color: var(--txt2);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.pd-classic-v {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* GNOSI tab */
.pd-gnosi-hero {
  background: linear-gradient(135deg, rgba(0,245,155,0.08), rgba(0,0,0,0));
  border: 1px solid rgba(0,245,155,0.2);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,245,155,0.08);
}
.pd-gnosi-watermark {
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 120px;
  font-weight: 800;
  color: rgba(0,245,155,0.04);
  line-height: 1;
  pointer-events: none;
}
.pd-gnosi-big {
  font-size: 72px;
  font-weight: 800;
  color: #00F59B;
  text-shadow: 0 0 30px #00F59B88, 0 0 60px #00F59B33;
  line-height: 1;
  margin-bottom: 8px;
}
.pd-gnosi-meta {
  font-size: 12px;
  color: var(--txt2);
  margin-bottom: 16px;
}
.pd-spark-wide { width: 100%; max-width: 100%; height: 48px; display: block; }
.pd-spark-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.pd-spark-axis span {
  font-size: 8px;
  color: var(--txt3);
}

.pd-vote-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pd-vote-star {
  font-size: 10;
  color: var(--txt2);
  min-width: 12px;
  text-align: center;
  font-weight: 700;
}
.pd-vote-stars { font-size: 10px; min-width: 50px; }
.pd-vote-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.pd-vote-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}
.pd-vote-pct {
  font-size: 11px;
  font-weight: 700;
  min-width: 30px;
  text-align: right;
}

.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tag {
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pd-loading {
  padding: 48px 20px;
  text-align: center;
  color: var(--txt2);
  font-size: 12px;
  letter-spacing: 2px;
}

.pd-back {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 12;
  background: none;
  border: none;
  color: color-mix(in srgb, var(--pd-accent, #00F59B) 75%, #fff);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
}
.pd-back:active { opacity: .7; }

.pd-meta-team {
  cursor: pointer;
  color: color-mix(in srgb, var(--pd-accent, #00F59B) 80%, #fff) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--pd-accent, #00F59B) 35%, transparent);
}
.pd-empty {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  letter-spacing: .3px;
  line-height: 1.45;
  padding: 4px 0 2px;
}
