:root {
  --pp-primary: #f58220;
  --pp-bg: #f5f5f3;
  --pp-surface: #ffffff;
  --pp-surface-2: #fafafa;
  --pp-text: #181818;
  --pp-muted: #6f6f76;
  --pp-border: rgba(0,0,0,.10);
  --pp-radius: 18px;
}

body {
  background: var(--pp-bg);
  color: var(--pp-text);
}

.pp-player-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pp-player-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.pp-player-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,130,32,.45);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.pp-player-photo {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(245,130,32,.10), rgba(245,130,32,.02)),
    #eeeeec;
  color: rgba(0,0,0,.32);
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 900;
}

.pp-player-body {
  padding: 18px;
}

.pp-player-name {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 14px;
}

.pp-sponsor {
  background: #f7f7f5;
  border: 1px solid var(--pp-border);
  color: var(--pp-text);
  border-radius: 14px;
  min-height: 46px;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
  padding: 8px;
}

.pp-open {
  color: var(--pp-primary);
  font-weight: 850;
  font-size: 14px;
}

.pp-modal {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.pp-modal.is-open {
  display: flex;
}

.pp-profile {
  width: min(1080px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 340px 1fr;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
}

.pp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  background: #f2f2ef;
  color: var(--pp-text);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.pp-close:hover {
  background: var(--pp-primary);
  color: #fff;
}

.pp-profile-left {
  background: #fbfbfa;
  padding: 28px;
  border-right: 1px solid var(--pp-border);
}

.pp-profile-photo {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(245,130,32,.12), rgba(245,130,32,.02)),
    #eeeeec;
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.32);
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 20px;
}

.pp-profile-name {
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
  margin-bottom: 12px;
}

.pp-profile-meta {
  color: var(--pp-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.pp-profile-right {
  padding: 34px;
}

.pp-accordion {
  display: grid;
  gap: 12px;
}

.pp-acc-item {
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.pp-acc-btn {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--pp-text);
  padding: 18px;
  text-align: left;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.pp-acc-btn.is-active {
  background: rgba(245,130,32,.10);
  color: var(--pp-text);
  border-left: 5px solid var(--pp-primary);
}

.pp-acc-content {
  display: none;
  padding: 18px;
  background: #fff;
}

.pp-acc-content.is-open {
  display: block;
}

.pp-stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--pp-border);
  padding: 10px 0;
  color: var(--pp-muted);
}

.pp-stat-row strong {
  color: var(--pp-text);
}

@media (max-width: 1100px) {
  .pp-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-profile { grid-template-columns: 1fr; }
  .pp-profile-left { border-right: 0; border-bottom: 1px solid var(--pp-border); }
}

@media (max-width: 640px) {
  .pp-player-grid { grid-template-columns: 1fr; }
  .pp-modal { padding: 10px; }
  .pp-profile-right, .pp-profile-left { padding: 20px; }
}
