/* BMC v63 — player profile + cover uploader only */
.player-profile-v63{
  --pp-bg:#f4f6fa;
  --pp-card:#ffffff;
  --pp-text:#121826;
  --pp-muted:#687287;
  --pp-line:#e6eaf0;
  --pp-shadow:0 16px 42px rgba(25,33,50,.09);
  color:var(--pp-text);
}
.player-profile-v63 .glass{
  background:var(--pp-card)!important;
  border-color:var(--pp-line)!important;
  box-shadow:var(--pp-shadow)!important;
  backdrop-filter:none!important;
}
.player-profile-v63 .muted{color:var(--pp-muted)!important}
.player-profile-v63 .profile-cover{
  position:relative;
  min-height:0;
  overflow:hidden;
  border-radius:26px!important;
  background:#11151d!important;
}
.player-profile-v63 .profile-cover-img{
  width:100%;
  height:280px!important;
  object-fit:cover!important;
  object-position:center 32%!important;
  filter:saturate(.94) contrast(1.02);
}
.player-profile-v63 .profile-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(5,8,13,.18),rgba(5,8,13,.06) 46%,rgba(5,8,13,.13)),
    linear-gradient(180deg,rgba(3,5,8,.02) 18%,rgba(3,5,8,.18) 52%,rgba(3,5,8,.92) 100%);
  pointer-events:none;
}
.player-profile-v63 .profile-main{
  position:relative;
  z-index:2;
  display:grid!important;
  grid-template-columns:132px minmax(0,1fr) auto;
  align-items:end!important;
  gap:20px!important;
  margin-top:-76px!important;
  padding:0 28px 20px!important;
}
.player-profile-v63 .profile-avatar{
  width:132px!important;
  height:132px!important;
  border-radius:28px!important;
  object-fit:cover!important;
  border:5px solid #fff!important;
  box-shadow:0 16px 34px rgba(0,0,0,.3),0 0 0 1px rgba(239,23,55,.18)!important;
  background:#fff;
}
.player-profile-v63 .profile-identity{min-width:0;padding-bottom:4px}
.player-profile-v63 .profile-name{
  margin:0 0 6px!important;
  color:#fff!important;
  font-size:34px!important;
  line-height:1.06!important;
  text-shadow:0 2px 16px rgba(0,0,0,.45);
}
.player-profile-v63 .profile-identity>.muted{
  color:rgba(255,255,255,.75)!important;
  font-size:12px;
  font-weight:700;
}
.player-profile-v63 .profile-badges{justify-content:flex-start!important}
.player-profile-v63 .profile-main .badge,
.player-profile-v63 .profile-main .nitro-badge{
  color:#fff!important;
  background:rgba(7,10,14,.56)!important;
  border-color:rgba(255,255,255,.24)!important;
  backdrop-filter:blur(12px);
}
.player-profile-v63 .profile-main .badge-premium{
  color:#ffdc86!important;
  border-color:rgba(244,185,66,.58)!important;
  background:rgba(95,65,8,.5)!important;
}
.player-profile-v63 .profile-actions{align-self:end;padding-bottom:6px}
.player-profile-v63 .profile-actions .btn{min-width:145px;border-radius:14px}
.player-profile-v63 .profile-tabs{
  position:relative;
  z-index:3;
  display:flex!important;
  gap:7px!important;
  overflow-x:auto;
  padding:0 24px 18px!important;
  scrollbar-width:none;
}
.player-profile-v63 .profile-tabs::-webkit-scrollbar{display:none}
.player-profile-v63 .profile-tabs a{
  flex:0 0 auto;
  padding:9px 13px!important;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px!important;
  color:rgba(255,255,255,.72)!important;
  background:rgba(255,255,255,.05);
  font-size:11px!important;
  font-weight:800;
}
.player-profile-v63 .profile-tabs a.active{
  color:#fff!important;
  background:var(--bmc-admin-primary,var(--red,#ef1737))!important;
  border-color:transparent!important;
}
.player-profile-v63 .stats-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:12px!important;
}
.player-profile-v63 .stat-box{
  min-height:92px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:14px!important;
  border-radius:18px!important;
}
.player-profile-v63 .stat-box span{color:var(--pp-muted)!important;font-size:10px!important;font-weight:700}
.player-profile-v63 .stat-box b{color:var(--pp-text)!important;font-size:25px!important;line-height:1;margin-top:7px!important}
.player-profile-v63 .profile-preference-strip{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  padding:14px!important;
  border-radius:20px!important;
}
.player-profile-v63 .preference-chip{
  min-height:72px;
  padding:12px!important;
  border:1px solid var(--pp-line)!important;
  border-radius:16px!important;
  background:#fafbfc!important;
}
.player-profile-v63 .preference-chip small{color:var(--pp-muted)!important;font-size:10px}
.player-profile-v63 .preference-chip b{color:var(--pp-text)!important;font-size:13px}
.player-profile-v63 .list-card{
  border-radius:20px!important;
  padding:16px!important;
}
.player-profile-v63 .section-head h2{color:var(--pp-text)!important;font-size:16px!important;letter-spacing:.2px}
.player-profile-v63 .form-chip{box-shadow:0 5px 14px rgba(20,28,40,.12)}
.player-profile-v63 .profile-info-grid>div,
.player-profile-v63 .profile-match,
.player-profile-v63 .achievement-card{
  background:#fafbfc!important;
  border-color:var(--pp-line)!important;
}
.player-profile-v63 .profile-info-grid small,
.player-profile-v63 .profile-match small{color:var(--pp-muted)!important}
.player-profile-v63 .profile-info-grid b,
.player-profile-v63 .profile-match b,
.player-profile-v63 .profile-match .score,
.player-profile-v63 .achievement-card b{color:var(--pp-text)!important}
.player-profile-v63 .profile-bio{color:var(--pp-muted)!important}
.player-profile-v63 .profile-social-grid a{
  background:#fafbfc!important;
  color:var(--pp-text)!important;
  border-color:var(--pp-line)!important;
}
.player-profile-v63 .table{color:var(--pp-text)!important}
.player-profile-v63 .table th,
.player-profile-v63 .table td{border-color:var(--pp-line)!important}
.player-profile-v63 .empty{color:var(--pp-muted)!important}
.player-profile-v63 .profile-gallery-grid figure{background:#fafbfc!important;border-color:var(--pp-line)!important}
.player-profile-v63 .profile-gallery-grid figcaption{color:var(--pp-text)!important}

/* dark theme keeps the same modern geometry */
html[data-theme="dark"] .player-profile-v63,
body[data-theme="dark"] .player-profile-v63,
[data-theme="dark"] .player-profile-v63{
  --pp-card:#12161e;
  --pp-text:#f7f9fc;
  --pp-muted:#9aa4b6;
  --pp-line:rgba(255,255,255,.09);
  --pp-shadow:0 18px 48px rgba(0,0,0,.28);
}
html[data-theme="dark"] .player-profile-v63 .preference-chip,
html[data-theme="dark"] .player-profile-v63 .profile-info-grid>div,
html[data-theme="dark"] .player-profile-v63 .profile-match,
html[data-theme="dark"] .player-profile-v63 .achievement-card,
html[data-theme="dark"] .player-profile-v63 .profile-social-grid a,
html[data-theme="dark"] .player-profile-v63 .profile-gallery-grid figure{
  background:#171c25!important;
}

/* Profile editor media controls */
.profile-media-editor-v63{
  display:grid!important;
  grid-template-columns:minmax(0,1.7fr) minmax(210px,.8fr)!important;
  gap:12px!important;
  padding:0!important;
}
.profile-media-card-v63{
  position:relative;
  overflow:hidden;
  min-height:190px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}
.profile-media-card-v63>img{width:100%;height:100%;min-height:190px;object-fit:cover}
.profile-media-photo-v63>img{object-position:center}
.profile-media-card-v63>div{
  position:absolute;
  inset:auto 10px 10px 10px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(4,6,10,.76);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
}
.profile-media-card-v63 b{flex:0 0 auto;color:#fff;font-size:12px}
.profile-media-card-v63 input{min-width:0;color:#fff;font-size:10px}
.profile-cover-reset-v63{
  grid-column:1/-1;
  display:inline-flex!important;
  width:max-content;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-size:11px;
  cursor:pointer;
}

@media(max-width:900px){
  .player-profile-v63 .profile-cover-img{height:235px!important}
  .player-profile-v63 .profile-main{grid-template-columns:108px minmax(0,1fr)!important;margin-top:-62px!important;padding:0 18px 16px!important}
  .player-profile-v63 .profile-avatar{width:108px!important;height:108px!important;border-radius:24px!important}
  .player-profile-v63 .profile-actions{grid-column:1/-1;padding:0}
  .player-profile-v63 .profile-actions .btn{width:100%}
  .player-profile-v63 .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media(max-width:640px){
  .player-profile-v63 .profile-cover{border-radius:18px!important}
  .player-profile-v63 .profile-cover-img{height:180px!important;object-position:center!important}
  .player-profile-v63 .profile-main{
    grid-template-columns:72px minmax(0,1fr)!important;
    gap:10px!important;
    margin-top:-42px!important;
    padding:0 10px 10px!important;
  }
  .player-profile-v63 .profile-avatar{width:72px!important;height:72px!important;border-radius:18px!important;border-width:3px!important}
  .player-profile-v63 .profile-name{font-size:19px!important;margin-bottom:3px!important}
  .player-profile-v63 .profile-identity>.muted{font-size:9px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .player-profile-v63 .profile-main .badges{gap:4px!important;margin-top:5px!important}
  .player-profile-v63 .profile-main .badge,.player-profile-v63 .profile-main .nitro-badge{padding:4px 6px!important;font-size:8px!important}
  .player-profile-v63 .profile-actions{grid-column:1/-1!important}
  .player-profile-v63 .profile-tabs{padding:0 8px 10px!important;gap:5px!important}
  .player-profile-v63 .profile-tabs a{padding:7px 9px!important;font-size:9px!important}
  .player-profile-v63 .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .player-profile-v63 .stat-box{min-height:74px;padding:9px!important;border-radius:14px!important}
  .player-profile-v63 .stat-box span{font-size:8px!important}
  .player-profile-v63 .stat-box b{font-size:19px!important}
  .player-profile-v63 .profile-preference-strip{grid-template-columns:1fr!important;gap:7px!important;padding:9px!important}
  .player-profile-v63 .preference-chip{min-height:58px;padding:9px!important}
  .player-profile-v63 .list-card{padding:12px!important;border-radius:16px!important}
  .profile-media-editor-v63{grid-template-columns:1fr!important}
  .profile-media-card-v63{min-height:160px}
  .profile-media-card-v63>img{min-height:160px}
  .profile-media-photo-v63{min-height:210px}
  .profile-media-photo-v63>img{min-height:210px}
}
