/* =============================================================
   CMDB Profile v5 — Extended layout: tabs, watchlist,
   ratings, leaderboard, Medal.tv-style stat row
   Loaded by cmdb_template_shell_start() on profile pages only
============================================================= */

/* ── Stats row (Medal.tv inline style) ───────────────────── */
.cmdb-profile-statrow {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 clamp(18px,3vw,34px) 0;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cmdb-profile-statrow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 28px;
  position: relative;
}
.cmdb-profile-statrow-item + .cmdb-profile-statrow-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.cmdb-profile-statrow-item strong {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 1000;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}
.cmdb-profile-statrow-item span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}
.cmdb-profile-statrow-item.is-xp {
  margin: 4px 8px;
  padding: 11px 24px;
  border: 1px solid rgba(0,255,224,.34);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,255,224,.12), rgba(255,0,91,.1));
}
.cmdb-profile-statrow-item.is-xp::before { display: none; }
.cmdb-profile-statrow-item.is-xp + .cmdb-profile-statrow-item::before { display: none; }
.cmdb-profile-statrow-item.is-xp strong {
  color: #00FFE0;
  text-shadow: 0 0 22px rgba(0,255,224,.28);
}
.cmdb-profile-statrow-item.is-xp span { color: rgba(255,255,255,.76); }

.cmdb-profile-statrow-item.is-brand strong {
  background: linear-gradient(135deg, #FF005B, #FF8A00, #00FFE0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Tab bar ─────────────────────────────────────────────── */
.cmdb-profile-tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 0;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cmdb-profile-tabs::-webkit-scrollbar { display: none; }
.cmdb-profile-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255,255,255,.5);
  font: 800 13px/1 inherit;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 20px 13px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
  margin-bottom: -1px;
}
.cmdb-profile-tab:hover {
  color: rgba(255,255,255,.85);
}
.cmdb-profile-tab[aria-selected="true"] {
  color: #fff;
  border-bottom-color: #FF005B;
}

/* ── Tab panels ──────────────────────────────────────────── */
.cmdb-profile-tabpanel { display: contents; }
.cmdb-profile-tabpanel[hidden] { display: none !important; }

/* ── Watchlist tab ───────────────────────────────────────── */
.cmdb-watchlist-panel {
  background: linear-gradient(180deg,rgba(18,18,22,.94),rgba(11,11,16,.92));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: clamp(20px,3vw,30px);
}
.cmdb-watchlist-panel h2 {
  font-size: clamp(22px,3vw,32px);
  font-weight: 1000;
  letter-spacing: -.04em;
  margin: 4px 0 20px;
}
.cmdb-watchlist-loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,.45);
  font-weight: 800;
}
.cmdb-watchlist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.cmdb-watchlist-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg,rgba(255,0,91,.2),rgba(0,255,224,.12));
  border: 1px solid rgba(255,255,255,.08);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  group: 1;
}
.cmdb-watchlist-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,255,224,.35);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.cmdb-watchlist-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.cmdb-watchlist-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.88));
  pointer-events: none;
}
.cmdb-watchlist-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 12px;
}
.cmdb-watchlist-card-title {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  display: block;
  margin-bottom: 8px;
}
.cmdb-watchlist-card-actions {
  display: flex;
  gap: 6px;
}
.cmdb-watchlist-card-actions a,
.cmdb-watchlist-remove {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: .15s ease;
  border: none;
}
.cmdb-watchlist-card-actions a {
  background: #FF005B;
  color: #fff;
}
.cmdb-watchlist-remove {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
}
.cmdb-watchlist-remove:hover {
  background: rgba(255,0,91,.3);
  color: #fff;
}
.cmdb-watchlist-placeholder {
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  color: rgba(255,255,255,.45);
  padding: 12px;
}
.cmdb-watchlist-empty {
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 40px 22px;
  text-align: center;
  background: rgba(255,255,255,.025);
}
.cmdb-watchlist-empty strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}
.cmdb-watchlist-empty p {
  color: rgba(255,255,255,.5);
  margin: 0;
}

/* ── Ratings tab ─────────────────────────────────────────── */
.cmdb-ratings-panel {
  background: linear-gradient(180deg,rgba(18,18,22,.94),rgba(11,11,16,.92));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: clamp(20px,3vw,30px);
}
.cmdb-ratings-panel h2 {
  font-size: clamp(22px,3vw,32px);
  font-weight: 1000;
  letter-spacing: -.04em;
  margin: 4px 0 20px;
}
.cmdb-ratings-list {
  display: grid;
  gap: 10px;
}
.cmdb-rating-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  color: #fff;
  transition: background .15s, border-color .15s;
}
.cmdb-rating-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(0,255,224,.2);
}
.cmdb-rating-poster {
  width: 48px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  flex-shrink: 0;
}
.cmdb-rating-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmdb-rating-info {
  flex: 1;
  min-width: 0;
}
.cmdb-rating-title {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 4px;
}
.cmdb-rating-meta {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-weight: 800;
}
.cmdb-rating-pill {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF005B, #FF8A00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: -.03em;
  box-shadow: 0 0 18px rgba(255,0,91,.35);
}
.cmdb-ratings-empty {
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 40px 22px;
  text-align: center;
  background: rgba(255,255,255,.025);
}

/* ── Leaderboard sidebar widget ──────────────────────────── */
.cmdb-leaderboard-panel {
  background: linear-gradient(180deg,rgba(18,18,22,.94),rgba(11,11,16,.92));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 26px 90px rgba(0,0,0,.42);
}
.cmdb-leaderboard-panel h3 {
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -.04em;
  margin: 0 0 16px;
}
.cmdb-leaderboard-list {
  display: grid;
  gap: 8px;
}
.cmdb-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
  text-decoration: none;
  color: #fff;
}
.cmdb-leaderboard-item:hover {
  background: rgba(255,255,255,.07);
}
.cmdb-leaderboard-item.is-you {
  border-color: rgba(255,0,91,.35);
  background: rgba(255,0,91,.08);
}
.cmdb-leaderboard-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 1000;
  flex-shrink: 0;
  color: rgba(255,255,255,.7);
}
.cmdb-leaderboard-item:nth-child(1) .cmdb-leaderboard-rank { background: linear-gradient(135deg,#FFD700,#FFA500); color: #000; }
.cmdb-leaderboard-item:nth-child(2) .cmdb-leaderboard-rank { background: linear-gradient(135deg,#C0C0C0,#A0A0A0); color: #000; }
.cmdb-leaderboard-item:nth-child(3) .cmdb-leaderboard-rank { background: linear-gradient(135deg,#CD7F32,#A05A20); color: #fff; }
.cmdb-leaderboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.cmdb-leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmdb-leaderboard-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdb-leaderboard-xp {
  font-size: 11px;
  font-weight: 1000;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  flex-shrink: 0;
}
.cmdb-leaderboard-you-rank {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,0,91,.10);
  border: 1px solid rgba(255,0,91,.22);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.8);
}
.cmdb-leaderboard-you-rank strong {
  display: block;
  font-size: 26px;
  font-weight: 1000;
  color: #FF005B;
  letter-spacing: -.04em;
}

/* ── Genre taste sidebar widget ──────────────────────────── */
.cmdb-genre-panel {
  background: linear-gradient(180deg,rgba(18,18,22,.94),rgba(11,11,16,.92));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 26px 90px rgba(0,0,0,.42);
}
.cmdb-genre-panel h3 {
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -.04em;
  margin: 0 0 16px;
}
.cmdb-genre-list {
  display: grid;
  gap: 9px;
}
.cmdb-genre-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.cmdb-genre-item span { font-size: 13px; font-weight: 900; }
.cmdb-genre-item small {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.5);
}
.cmdb-genre-bar-track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: -6px;
}
.cmdb-genre-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF005B, #00FFE0);
  transition: width .6s ease;
}

/* ── Cover image (custom upload) ────────────────────────── */
.cmdb-profile-v5-cover img.cmdb-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Lighten gradient overlay when a real photo is present */
.cmdb-profile-v5-cover.has-cover::before {
  background:
    radial-gradient(circle at 70% 40%, rgba(255,0,91,.22), transparent 40%),
    radial-gradient(circle at 25% 40%, rgba(0,255,224,.12), transparent 35%),
    linear-gradient(135deg, rgba(0,0,0,.45), rgba(0,0,0,.2));
  z-index: 1;
}
.cmdb-profile-v5-cover.has-cover::after { z-index: 2; }
.cmdb-profile-v5-cover.has-cover .cmdb-profile-v5-cover-art { z-index: 3; }

/* Cover upload button inside the hero (owner only) */
.cmdb-cover-upload-btn {
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
  backdrop-filter: blur(8px);
}
.cmdb-cover-upload-btn:hover {
  background: rgba(255,0,91,.5);
  color: #fff;
  border-color: transparent;
}
input#cmdb-cover-input { display: none; }

/* ── Avatar upload overlay ───────────────────────────────── */
/* Matches .cmdb-profile-v5-avatar gradient-ring from movie-redesign.css */
.cmdb-avatar-upload {
  display: block;
  position: relative;
  cursor: pointer;
  width: 150px;
  height: 150px;
  border-radius: 28px;
  padding: 5px;
  background: linear-gradient(135deg, #FF005B, #FF8A00 46%, #00FFE0);
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
  flex-shrink: 0;
}
/* Online-status dot */
.cmdb-avatar-upload::after {
  content: '';
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00FFE0;
  border: 4px solid #09090F;
  box-shadow: 0 0 18px rgba(0,255,224,.85);
}
.cmdb-avatar-upload img,
.cmdb-avatar-upload .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
  display: block;
  background: #111;
}
.cmdb-avatar-upload-overlay {
  position: absolute;
  inset: 0;
  border-radius: 23px;
  background: rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s ease;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  pointer-events: none;
}
.cmdb-avatar-upload:hover .cmdb-avatar-upload-overlay { opacity: 1; }
input#cmdb-avatar-input { display: none; }

/* Photo preview under the form upload field */
.cmdb-upload-preview {
  display: none;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  margin-top: 8px;
  border: 2px solid rgba(0,255,224,.4);
}
.cmdb-upload-preview.is-visible { display: block; }

/* ── Upload row inside Edit Profile tab ──────────────────── */
.cmdb-upload-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cmdb-upload-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmdb-upload-item label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.cmdb-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.cmdb-upload-trigger:hover {
  background: rgba(255,0,91,.18);
  border-color: rgba(255,0,91,.4);
}
.cmdb-upload-trigger.is-loading {
  opacity: .6;
  pointer-events: none;
}
.cmdb-upload-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(0,255,224,.4);
  display: none;
}
.cmdb-upload-thumb.is-visible { display: block; }
.cmdb-upload-thumb--wide {
  width: 100px;
  height: 40px;
  border-radius: 8px;
}

/* Cover upload label in the edit form */
.cmdb-cover-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  font-weight: 800;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.cmdb-cover-upload-label:hover {
  border-color: rgba(0,255,224,.4);
  background: rgba(0,255,224,.05);
}
.cmdb-cover-current-thumb {
  width: 60px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.15);
}

/* ── Hero layout (self-contained overrides) ──────────────── */
.cmdb-profile-v5-page {
  min-height: 100vh;
  background: var(--brand-bg, #08090e);
}
.cmdb-profile-v5-wrap {
  width: min(100% - 32px, 1420px);
  margin: 0 auto;
  padding: 24px 0 60px;
}
.cmdb-profile-v5-hero {
  border-radius: 18px;
  overflow: auto;
  margin-bottom: 18px;
  position: relative;
  background: linear-gradient(180deg, rgba(18,18,22,.94), rgba(11,11,16,.92));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 26px 90px rgba(0,0,0,.42);
}
.cmdb-profile-v5-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,91,.10), transparent 45%, rgba(0,255,224,.09));
  pointer-events: none;
}
.cmdb-profile-v5-cover {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #101018, #1c1022 38%, #071c22);
}
.cmdb-profile-v5-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(255,0,91,.42), transparent 28%),
    radial-gradient(circle at 25% 40%, rgba(0,255,224,.22), transparent 26%),
    linear-gradient(135deg, #101018, #1c1022 38%, #071c22);
  filter: saturate(1.2);
}
.cmdb-profile-v5-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(9,9,15,.96) 100%);
}
.cmdb-profile-v5-cover-art {
  position: absolute;
  right: 32px;
  bottom: 26px;
  z-index: 3;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.8);
  pointer-events: none;
}
.cmdb-profile-v5-cover-art span {
  display: block;
  font-size: clamp(42px, 8vw, 94px);
  font-weight: 1000;
  line-height: .85;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, #fff, #FF005B 42%, #00FFE0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .85;
  padding: 0 10px 0 0;
}
.cmdb-profile-v5-cover-art b {
  font-size: 11px;
  color: rgba(255,255,255,.62);
}
.cmdb-profile-v5-hero-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 0 clamp(18px,3vw,34px) 24px;
  margin-top: -74px;
}
.cmdb-profile-v5-title h1 {
  font-size: clamp(30px, 5vw, 72px);
  line-height: .9;
  margin: 0 0 10px;
  font-weight: 1000;
  letter-spacing: -.06em;
  color: #fff;
}
.cmdb-profile-v5-title .cmdb-section-kicker { margin-bottom: 6px; }
.cmdb-profile-v5-title blockquote {
  margin: 8px 0 0;
  color: rgba(255,255,255,.66);
  font-size: 14px;
  line-height: 1.55;
  max-width: 680px;
  border-left: 3px solid #FF005B;
  padding-left: 14px;
}
.cmdb-profile-v5-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 200px;
}
.cmdb-profile-v5-actions a,
.cmdb-profile-v5-actions button,
.cmdb-profile-copy {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}
.cmdb-profile-v5-actions a:hover,
.cmdb-profile-v5-actions button:hover,
.cmdb-profile-copy:hover {
  transform: translateY(-2px);
  border-color: rgba(255,0,91,.48);
  box-shadow: 0 12px 30px rgba(255,0,91,.16);
  color: #fff;
}
.cmdb-profile-v5-level {
  position: relative;
  z-index: 2;
  margin: 0 clamp(18px,3vw,34px) 24px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.cmdb-profile-v5-level strong { font-size: 18px; display: block; }
.cmdb-profile-v5-level span,
.cmdb-profile-v5-level small { color: rgba(255,255,255,.62); font-weight: 800; font-size: 13px; }
.cmdb-profile-v5-levelbar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.cmdb-profile-v5-levelbar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF005B, #FF8A00, #00FFE0);
  box-shadow: 0 0 20px rgba(255,0,91,.5);
}
.cmdb-profile-v5-role { color: rgba(255,255,255,.65); font-size: 14px; font-weight: 700; margin: 4px 0 0; }

/* ── Sidebar / grid layout ───────────────────────────────── */
.cmdb-profile-v5-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 440px;
  gap: 18px;
  align-items: start;
}
.cmdb-profile-v5-side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cmdb-watchlist-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cmdb-profile-v5-grid { grid-template-columns: 1fr; }
  .cmdb-profile-v5-side { position: static; }
  .cmdb-profile-v5-hero-main { grid-template-columns: auto 1fr; }
  .cmdb-profile-v5-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .cmdb-profile-statrow { justify-content: center; padding: 0 12px; }
  .cmdb-profile-statrow-item { padding: 8px 14px; }
  .cmdb-watchlist-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cmdb-profile-tab { padding: 12px 14px 11px; font-size: 11px; }
  .cmdb-profile-v5-cover { height: 190px; }
  .cmdb-profile-v5-cover-art { right: 18px; bottom: 18px; }
  .cmdb-profile-v5-hero-main { display: block; margin-top: -58px; }
  .cmdb-avatar-upload { width: 100px; height: 100px; margin-bottom: 12px; }
  .cmdb-profile-v5-title h1 { font-size: clamp(28px, 12vw, 52px); }
  .cmdb-profile-v5-actions { margin-top: 12px; }
  .cmdb-profile-v5-level { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cmdb-watchlist-grid { grid-template-columns: 1fr 1fr; }
}


/* Standalone community leaderboard */
.cmdb-leaderboard-page { max-width: 1120px; margin: 0 auto; padding: clamp(34px,6vw,84px) 22px 90px; }
.cmdb-leaderboard-page__hero { display:flex; justify-content:space-between; gap:24px; align-items:flex-end; margin-bottom:28px; }
.cmdb-leaderboard-page__hero h1 { margin:6px 0 8px; color:#fff; font-size:clamp(38px,6vw,72px); line-height:.98; letter-spacing:-.05em; }
.cmdb-leaderboard-page__hero p { max-width:680px; margin:0; color:rgba(255,255,255,.65); }
.cmdb-leaderboard-page .cmdb-leaderboard-panel { padding:clamp(18px,3vw,34px); border:1px solid rgba(255,255,255,.1); border-radius:24px; background:rgba(18,18,22,.88); }
.cmdb-leaderboard-page .cmdb-leaderboard-panel > h3 { display:none; }
@media (max-width:700px) { .cmdb-leaderboard-page__hero { align-items:flex-start; flex-direction:column; } .cmdb-profile-statrow-item.is-xp { flex-basis:calc(50% - 16px); } }


/* Leaderboard page refresh notice */
.cmdb-leaderboard-refresh {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 9px 13px;
  border: 1px solid rgba(0,255,224,.2);
  border-radius: 999px;
  background: rgba(0,255,224,.07);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.cmdb-leaderboard-refresh__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #00FFE0;
  box-shadow: 0 0 14px rgba(0,255,224,.7);
}
.cmdb-leaderboard-page {

}
.cmdb-leaderboard-page .cmdb-leaderboard-list {
  display: grid;
  gap: 10px;
}
.cmdb-leaderboard-page .cmdb-leaderboard-item {
  min-height: 74px;
  padding: 12px 16px;
  border-radius: 16px;
}
.cmdb-leaderboard-page .cmdb-leaderboard-avatar img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: block;
}
.cmdb-leaderboard-page .cmdb-leaderboard-name {
  font-size: 16px;
}
.cmdb-leaderboard-page .cmdb-leaderboard-xp {
  font-size: 18px;
  color: #00FFE0;
  font-weight: 1000;
}
@media (max-width: 620px) {
  .cmdb-leaderboard-page .cmdb-leaderboard-item {
    grid-template-columns: 38px 44px minmax(0,1fr);
  }
  .cmdb-leaderboard-page .cmdb-leaderboard-xp {
    grid-column: 3;
    font-size: 14px;
  }
}
