.public-profile-page .tnav a.active {
  color: #fff;
  border-bottom: 1.5px solid var(--violet-2);
  padding-bottom: 1px;
}

.public-profile-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 34px 0;
}

.public-profile-main {
  width: min(1040px, 100%);
}

.public-shell {
  width: 100%;
}

.public-profile-view {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 20px;
}

.public-status {
  display: grid;
  place-items: center;
  min-height: 260px;
  background: rgba(21, 19, 30, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 22px;
  color: rgba(240, 238, 255, 0.5);
  text-align: center;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 228px;
  padding: 34px 36px;
  background: linear-gradient(135deg, rgba(24, 21, 34, 0.98), rgba(20, 18, 30, 0.98));
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 22px;
}

.profile-hero::before,
.profile-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.profile-hero::before {
  inset: auto auto -120px 160px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(97, 41, 179, 0.15), transparent 72%);
}

.profile-hero::after {
  top: -70px;
  right: 80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(95, 40, 176, 0.12), transparent 72%);
}

.profile-avatar-container {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.96), rgba(56, 189, 248, 0.55));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.profile-avatar,
.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-avatar {
  display: block;
  object-fit: cover;
  border: 3px solid #13111c;
}

.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.88), rgba(19, 17, 28, 0.98));
  border: 3px solid #13111c;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 1px;
}

.profile-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.profile-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(240, 238, 255, 0.34);
}

.profile-name {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 4vw, 64px);
  letter-spacing: 1px;
  line-height: 0.92;
  color: #f8f6ff;
}

.profile-handle {
  margin-top: -6px;
  font-size: 14px;
  color: rgba(240, 238, 255, 0.34);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(240, 238, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 238, 255, 0.74);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.profile-badge--primary {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(88, 32, 171, 0.28);
  color: #c8afff;
}

.profile-bio {
  margin: 0;
  font-size: 14px;
  color: rgba(240, 238, 255, 0.58);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 84px;
  padding: 18px 14px;
  background: rgba(21, 19, 30, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  text-align: center;
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1;
  color: #efecfa;
}

.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(240, 238, 255, 0.34);
}

.profile-tabs {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-tab {
  position: relative;
  padding: 12px 0 14px;
  border: none;
  background: none;
  color: rgba(240, 238, 255, 0.42);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s ease;
}

.profile-tab:hover,
.profile-tab.active {
  color: #f4f1fb;
}

.profile-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: #8b5cf6;
}

.tab-content {
  min-height: 280px;
}

.content-block {
  display: none;
}

.content-block.active {
  display: block;
}

.profile-panel {
  padding: 22px 22px 24px;
  background: rgba(24, 22, 34, 0.98);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 18px;
}

.profile-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ece8f8;
}

.profile-panel-side {
  flex-shrink: 0;
  padding-top: 2px;
  font-size: 12px;
  color: rgba(240, 238, 255, 0.28);
}

.profile-activity-list,
.profile-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-activity-row,
.profile-summary-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}

.profile-activity-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 14px 16px;
  background: rgba(19, 17, 28, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 14px;
}

.profile-summary-row {
  grid-template-columns: 12px 38px minmax(0, 1fr) auto;
}

.activity-chip,
.summary-swatch {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.activity-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.86), rgba(91, 33, 182, 0.55));
  color: #f5efff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.summary-index {
  font-size: 13px;
  color: rgba(240, 238, 255, 0.24);
}

.summary-swatch {
  background: rgba(124, 58, 237, 0.22);
}

.summary-swatch--tracks {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.94), rgba(91, 33, 182, 0.72));
}

.summary-swatch--releases {
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.96), rgba(14, 116, 144, 0.72));
}

.summary-swatch--artists {
  background: linear-gradient(135deg, rgba(80, 7, 36, 0.96), rgba(157, 23, 77, 0.7));
}

.summary-swatch--playlists {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.96), rgba(21, 128, 61, 0.68));
}

.activity-title,
.summary-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1eef9;
}

.activity-copy,
.summary-copy {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(240, 238, 255, 0.34);
}

.activity-value {
  font-size: 12px;
  color: rgba(240, 238, 255, 0.32);
}

.summary-heart {
  color: #ff4da3;
  font-size: 14px;
}

.playlists-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.playlist-preview-card {
  display: block;
  width: min(332px, 100%);
  overflow: hidden;
  background: rgba(19, 17, 28, 0.94);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.playlist-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.38);
  background: rgba(24, 22, 34, 0.98);
}

.playlist-preview-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 1 / 1;
}

.playlist-preview-art img,
.playlist-preview-swatch {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.playlist-preview-swatch--1 {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.playlist-preview-swatch--2 {
  background: linear-gradient(135deg, #0f3f68, #1d4ed8);
}

.playlist-preview-swatch--3 {
  background: linear-gradient(135deg, #5b0831, #9d174d);
}

.playlist-preview-swatch--4 {
  background: linear-gradient(135deg, #14532d, #15803d);
}

.playlist-preview-body {
  padding: 14px 14px 16px;
}

.playlist-preview-title {
  font-size: 20px;
  font-weight: 700;
  color: #f6f3fd;
}

.playlist-preview-meta {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(240, 238, 255, 0.34);
}

.playlist-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 11px;
  font-weight: 700;
}

.artist-bubble-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.artist-bubble-card {
  width: 164px;
  text-decoration: none;
  color: inherit;
}

.artist-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin-bottom: 12px;
  border: 2px solid var(--bubble-ring, rgba(139, 92, 246, 0.34));
  border-radius: 50%;
  background: var(--bubble-bg, linear-gradient(135deg, rgba(76, 29, 149, 0.9), rgba(59, 7, 100, 0.86)));
  color: #f6f0ff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 1px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.artist-bubble-card:hover .artist-bubble {
  transform: translateY(-2px);
  border-color: rgba(168, 139, 250, 0.58);
}

.artist-bubble-name {
  font-size: 14px;
  font-weight: 700;
  color: #f0ecf8;
  text-align: center;
}

.artist-bubble-label {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(240, 238, 255, 0.3);
  text-align: center;
}

.taste-shell {
  padding: 20px;
  background: rgba(21, 19, 30, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 16px;
}

.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.taste-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.taste-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(240, 238, 255, 0.46);
}

.taste-bar-bg {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.taste-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #8b5cf6;
}

.public-empty-card {
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 14px;
  background: rgba(19, 17, 28, 0.9);
  color: rgba(240, 238, 255, 0.4);
}

.public-profile-footer {
  margin-top: auto;
}

.public-profile-footer-inner {
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 0;
}

.public-profile-footer .footer-brand-name {
  font-size: 28px;
}

.public-profile-footer .footer-brand-desc {
  max-width: 380px;
}

.profile-sidebar-artists .sb-item {
  gap: 8px;
}

.profile-sidebar-artists .sb-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.72;
}

@media (max-width: 1100px) {
  .public-profile-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .public-profile-shell {
    padding: 20px 16px 0;
  }

  .public-profile-main {
    width: 100%;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .profile-tabs {
    gap: 22px;
    overflow-x: auto;
  }

  .taste-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-name {
    font-size: 44px;
  }

  .artist-bubble-card {
    width: 140px;
  }

  .artist-bubble {
    width: 136px;
    height: 136px;
  }
}

/* ─── Public profile redesign additions ──────────────────────────────────── */
.profile-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px}
.profile-play-cta{display:inline-flex;align-items:center;gap:8px;padding:10px 22px;border-radius:999px;background:linear-gradient(135deg,var(--violet),var(--pink));color:#fff;font-size:14px;font-weight:700;text-decoration:none;transition:opacity .18s ease,transform .18s ease}
.profile-play-cta:hover{opacity:.9;transform:translateY(-1px)}
.profile-section{display:flex;flex-direction:column;gap:16px;margin-top:40px}
.profile-section-head{display:flex;align-items:center;justify-content:space-between}
.profile-section-title{margin:0;font-size:20px;font-weight:700;color:#ece8f8}
.profile-discovery-section{padding-top:8px;border-top:1px solid rgba(255,255,255,.06)}
.playlist-preview-play{margin-top:10px;font-size:13px;font-weight:600;color:rgba(240,238,255,.55);transition:color .15s}
.playlist-preview-card:hover .playlist-preview-play{color:var(--violet-2,#8b5cf6)}
.public-profile-view{display:flex;flex-direction:column}
