.profile-wrap{max-width:520px;margin:0 auto;padding:1.5rem 1.25rem 3.5rem;position:relative;z-index:1}

.profile-hero{background:rgba(255,255,255,.03);border-radius:24px;padding:1px;margin-bottom:0;border:1px solid rgba(255,255,255,.06)}

.profile-card{background:var(--surface,#141b24);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:2rem 1.5rem 1.75rem;text-align:center;box-shadow:0 16px 40px rgba(0,0,0,.3)}

.profile-avatar-wrap{display:flex;justify-content:center;margin-top:-4px;margin-bottom:1.25rem}

.profile-avatar-ring{display:inline-flex;padding:3px;border-radius:50%;background:rgba(255,255,255,.08);box-shadow:0 4px 24px rgba(0,0,0,.25)}

.profile-avatar-ring--admin{background:linear-gradient(135deg,rgba(250,204,21,.55),rgba(234,179,8,.25),rgba(145,71,255,.35));box-shadow:0 8px 36px rgba(234,179,8,.18)}

.profile-card img{width:128px;height:128px;border-radius:50%;border:3px solid var(--surface,#14141f);object-fit:cover;display:block;background:#2a2a38}

.profile-card .profile-ph{width:128px;height:128px;margin:0 auto;border-radius:50%;background:#2a2a38;border:3px solid var(--surface,#14141f)}

.profile-heading{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:8px;margin:0 0 .35rem}

.profile-heading .user-verified-badge--profile svg{width:22px;height:22px}

.profile-card h1{margin:0;font-size:clamp(1.35rem,4vw,1.65rem);letter-spacing:-.03em;line-height:1.2}

.profile-card .at{color:var(--muted);font-size:.95rem;margin:0 0 .4rem}

.profile-badge-row{display:flex;justify-content:center;align-items:center;margin:0 0 .65rem}

.profile-badge-row .user-badge{margin:0}

.profile-since{color:var(--muted);font-size:.82rem;margin:0 0 1.5rem;letter-spacing:.02em}

.profile-now-playing{text-align:left;margin:0 0 1.35rem;padding:1rem 1.1rem 1.05rem;border-radius:16px;border:1px solid rgba(30,215,96,.22);background:linear-gradient(145deg,rgba(30,215,96,.08),rgba(46,230,214,.05));box-shadow:0 8px 28px rgba(0,0,0,.18)}

.profile-now-playing__head{display:flex;align-items:center;gap:10px;margin:0 0 .65rem}

.profile-now-playing__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:2.1rem;height:2.1rem;border-radius:.65rem;background:linear-gradient(155deg,rgba(52,211,153,.22),rgba(45,212,191,.1));border:1px solid rgba(52,211,153,.38);box-shadow:0 2px 16px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.07);color:#6ee7b7}
.profile-now-playing__icon .profile-now-playing__svg{display:block;width:16px;height:16px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}

.profile-now-playing__hint{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(180,230,200,.85)}

.profile-now-playing__body{margin:0}

.profile-now-playing__row{display:flex;align-items:flex-start;gap:12px;margin:0}
.profile-now-playing__art{flex-shrink:0;width:72px;height:72px;border-radius:12px;overflow:hidden;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.1);box-shadow:0 4px 14px rgba(0,0,0,.25)}
.profile-card .profile-now-playing .profile-now-playing__art .profile-now-playing__cover{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  border:none;
  border-radius:0;
  background:transparent;
  object-fit:contain;
  object-position:center;
  display:block;
}
.profile-now-playing__main{flex:1;min-width:0}

.profile-now-playing__track{display:block;padding:.65rem .85rem;border-radius:12px;font-size:.95rem;font-weight:600;color:#eafaf0;text-decoration:none;background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.1);transition:background .15s,border-color .15s,color .15s;word-break:break-word}

.profile-now-playing__track:hover{background:rgba(30,215,96,.12);border-color:rgba(30,215,96,.35);color:#fff}

.profile-now-playing__track--text{display:block;padding:.65rem .85rem;border-radius:12px;font-size:.95rem;font-weight:600;color:var(--text);background:rgba(0,0,0,.12);border:1px solid rgba(255,255,255,.06)}

.profile-now-playing__embed{margin-top:.75rem;border-radius:12px;overflow:hidden;min-height:0}

.profile-now-playing__progress{margin-top:.65rem;height:5px;border-radius:999px;background:rgba(0,0,0,.35);overflow:hidden;border:1px solid rgba(255,255,255,.08)}

.profile-now-playing__progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,rgba(30,215,96,.9),rgba(46,230,214,.78));transition:none}
.profile-now-playing__progress--indeterminate{position:relative;overflow:hidden}
.profile-now-playing__progress-fill--indeterminate{width:40%;animation:profileNpIndeterminate 1.15s linear infinite}
@keyframes profileNpIndeterminate{
  0%{transform:translateX(-130%)}
  100%{transform:translateX(300%)}
}

.profile-now-playing__times{margin-top:.42rem;font-size:.78rem;font-weight:700;font-variant-numeric:tabular-nums;color:rgba(180,220,200,.95);display:flex;align-items:center;justify-content:flex-start;gap:0}

.profile-now-playing__sep{opacity:.55;padding:0 3px}

.profile-last-seen{color:var(--muted);font-size:.82rem;margin:-.65rem 0 1.35rem;line-height:1.45;letter-spacing:.02em}

.profile-last-seen__label{display:block;font-weight:600;color:var(--text);font-size:.86rem;margin-bottom:.28rem}

.profile-last-seen__abs{color:var(--text);font-weight:600}

.profile-last-seen__ago{color:var(--muted);font-size:.8rem}

.profile-last-seen--online .profile-last-seen__label{color:#9ae6b4;font-weight:700;letter-spacing:.02em}

.profile-soft-notice{margin:0 0 1rem;padding:.75rem .95rem;border-radius:1rem;border:1px solid rgba(46,230,214,.28);background:rgba(46,230,214,.07);color:var(--text);font-size:.88rem;line-height:1.45;text-align:left}

.profile-card .links{display:flex;flex-direction:column;gap:10px;align-items:stretch;max-width:300px;margin:0 auto}

.profile-card .links a,.profile-card .links .btn-pill{text-decoration:none;box-sizing:border-box;text-align:center;justify-content:center}

.profile-twitch{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:.55rem 1rem;border-radius:999px;font-size:.88rem;font-weight:600;color:#f0eaff;background:rgba(145,71,255,.12);border:1px solid rgba(145,71,255,.35);transition:background .15s,border-color .15s}

.profile-twitch:hover{background:rgba(145,71,255,.2);border-color:rgba(145,71,255,.5);color:#fff}

.profile-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:4px;padding:.6rem 1rem;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.04);color:var(--text);font-weight:600;font-size:.88rem;transition:background .15s,border-color .15s,color .15s}

.profile-back:hover{background:rgba(46,230,214,.08);border-color:rgba(46,230,214,.35);color:var(--accent)}

.profile-friend-badge{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;border-radius:999px;font-size:.86rem;font-weight:600;margin-bottom:2px}

.profile-friend-badge--on{background:rgba(67,181,129,.14);border:1px solid rgba(67,181,129,.4);color:#9ae6b4}

.profile-friend-badge--wait{background:rgba(234,179,8,.1);border:1px solid rgba(234,179,8,.35);color:#fde68a}

.profile-card .links .btn-pill{display:inline-flex;align-items:center;justify-content:center;min-height:2.35rem}

.btn-pill--danger-outline{border-color:rgba(196,92,92,.48)!important;color:#fecaca!important;background:rgba(196,92,92,.07)!important}

.btn-pill--danger-outline:hover{background:rgba(196,92,92,.15)!important;border-color:rgba(248,113,113,.55)!important}

.profile-friends-card{text-align:left;margin:0 0 1.35rem;padding:1.1rem 1.15rem 1.2rem;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:var(--surface-2,#181f2a);box-shadow:0 8px 28px rgba(0,0,0,.2)}

.profile-friends-card__title{margin:0 0 .75rem;font-size:1rem;font-weight:700;letter-spacing:-.02em;text-align:center}

.profile-friends-card__count{color:var(--muted);font-weight:600;font-size:.88rem}

.profile-friends-card__empty{margin:0;font-size:.88rem;color:var(--muted);text-align:center}

.profile-friends-preview{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 0;margin:0 auto .85rem;min-height:36px;max-width:min(320px,100%);padding:0 4px}

.profile-friends-preview__av{display:block;width:36px;height:36px;max-width:36px;max-height:36px;border-radius:50%;border:2px solid var(--surface,#14141f);object-fit:cover;margin-left:-8px;box-shadow:0 2px 12px rgba(0,0,0,.34);box-sizing:border-box;flex:0 0 36px}

.profile-friends-preview__av:first-child{margin-left:0}

.profile-friends-preview__av--ph{background:linear-gradient(145deg,rgba(145,71,255,.4),rgba(46,230,214,.14))}

.profile-friends-preview__more{margin-left:4px;font-size:.8rem;font-weight:600;color:var(--muted);align-self:center;white-space:nowrap}

.profile-friends-open{display:block;margin:0 auto;width:auto;max-width:280px}

.profile-friends-modal{position:fixed;inset:0;z-index:99990;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-bottom));background:rgba(6,8,16,.82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}

.profile-friends-modal[hidden]{display:none!important}

.profile-friends-modal__box{width:100%;max-width:440px;max-height:min(88vh,620px);display:flex;flex-direction:column;border-radius:20px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(168deg,rgba(26,24,40,.98),rgba(14,16,24,.97));box-shadow:0 28px 72px rgba(0,0,0,.55);padding:1.1rem 1.1rem 1rem;box-sizing:border-box}

.profile-friends-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:.55rem;flex-shrink:0}

.profile-friends-modal__head h3{margin:0;font-size:1.05rem;font-weight:700;line-height:1.25;letter-spacing:-.02em;padding-right:4px}

.profile-friends-modal__close{appearance:none;border:none;background:rgba(255,255,255,.07);color:var(--muted);width:38px;height:38px;border-radius:11px;cursor:pointer;font-size:1.25rem;line-height:1;flex-shrink:0}

.profile-friends-modal__close:hover{background:rgba(255,255,255,.12);color:var(--text)}

.profile-friends-modal__search{width:100%;box-sizing:border-box;margin-bottom:.55rem;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(6,8,16,.78);color:var(--text);font:inherit;font-size:.9rem;flex-shrink:0}

.profile-friends-modal__search::placeholder{color:rgba(148,148,168,.75)}

.profile-friends-modal__search:focus{outline:none;border-color:rgba(46,230,214,.4);box-shadow:0 0 0 3px rgba(46,230,214,.1)}

.profile-friends-modal__scroll{flex:1;min-height:0;overflow-y:auto;margin:0 -2px 0 0;padding-right:2px}

.profile-friends-modal .friend-row{border-color:rgba(255,255,255,.05)}

