/* Members' pages (2026-11-20): the Users list (/users) and a member's page (/user/{slug}).
   The member page sits on the band profile's frame (site.css .bpPage, .bpHero, .bpGrid, .chartRow): these are only
   the parts that are a member's own. Flat like the rest of the site: dark panels, hairlines, colour where it says
   something (who is online, the top genre). */

/* ---------- the Users list ---------- */
.usersCount { margin: 0 0 14px; font-size: 13px; color: var(--fg-mute); }
.userGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.userCard { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; color: inherit; text-decoration: none; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.15s, background 0.15s; }
.userCard:hover, .userCard:focus-visible { background: var(--bg-elev-2); border-color: rgba(255, 255, 255, 0.22); outline: none; }
.userCardPic { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--bg-elev-2); box-shadow: 0 0 0 1px var(--line); }
.userCardPic img { width: 100%; height: 100%; display: block; box-sizing: border-box; padding: 15%; border-radius: 50%; object-fit: contain; }
.userCardPic img.isCover { padding: 0; object-fit: cover; }
.userCardPic.isOn::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #37c46a; box-shadow: 0 0 0 3px var(--bg-elev); }
.userCard:hover .userCardPic.isOn::after { box-shadow: 0 0 0 3px var(--bg-elev-2); }
.userCardBody { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.userCardName { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--silver-1); }
.userCardNameText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userCardName .supporterTag { flex: none; }
.userCardMeta { font-size: 12.5px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userCardGenres { margin-top: 3px; font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--fg-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usersJoin { align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; }
.usersJoin .btn { flex: none; color: #fff; }
.usersEmpty { max-width: 520px; margin: 56px auto 80px; text-align: center; color: var(--fg-dim); }
.usersEmpty p { margin-top: 10px; }
.usersEmpty .btn { margin-top: 10px; }
.usersEmptyTitle { font-size: 22px; font-weight: 700; color: var(--silver-1); }
.userSearch .searchGrid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 640px) {
	.usersJoin { flex-direction: column; align-items: flex-start; }
}

/* ---------- a member's page: the banner ---------- */
/* The banner is their top song's cover, held well back: it sets the page's mood, the words stay readable. */
.upHero.isCover .bpHeroBg img { opacity: 0.34; filter: saturate(0.55) contrast(1.08); }
.upHero .bpHeroInner { min-height: clamp(340px, 22vw, 440px); }
.upHero:not(.hasPhoto) .bpHeroInner { min-height: 0; padding-top: 44px; padding-bottom: 36px; }
.upAvatar { position: relative; width: 112px; height: 112px; margin-bottom: 20px; border-radius: 50%; background: var(--bg-elev-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.55); }
.upAvatar img { width: 100%; height: 100%; display: block; box-sizing: border-box; padding: 15%; border-radius: 50%; object-fit: contain; }
.upAvatar img.isCover { padding: 0; object-fit: cover; }
.upAvatar.isOn::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 17px; height: 17px; border-radius: 50%; background: #37c46a; box-shadow: 0 0 0 4px var(--bg); }
.upName { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; overflow-wrap: anywhere; }
.upMeta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; font-size: 13.5px; color: var(--fg-dim); }
.upMessageBtn { background: var(--red); border-color: var(--red); color: #fff; }
.upMessageBtn:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }

/* Their top song, at the banner's right. */
.upTop { align-self: center; width: 264px; }
.upTopArt { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 44px rgba(0, 0, 0, 0.6); }
.upTopArt img { width: 100%; height: 100%; display: block; object-fit: cover; }
.upTopTitle { display: block; margin-top: 14px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--silver-1); text-decoration: none; overflow-wrap: anywhere; }
.upTopTitle:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.upTopMeta { margin-top: 3px; font-size: 12.5px; color: var(--fg-dim); }
.upTopPlay { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; }
.upTopPlay svg { width: 14px; height: 14px; display: block; }

/* ---------- the taste ---------- */
.upGenres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.upGenre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.upGenreName { font-size: 14px; font-weight: 500; color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upGenreName:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.upGenrePct { font-size: 12.5px; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.upGenreBar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: var(--bg-elev-2); overflow: hidden; }
.upGenreBar span { display: block; height: 100%; min-width: 3px; border-radius: 2px; background: var(--silver-2); }
.upGenre:first-child .upGenreBar span { background: var(--red); }
.upGenre:first-child .upGenreName { color: var(--silver-1); font-weight: 700; }
.upBlank { padding: 34px 28px; text-align: center; color: var(--fg-dim); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; }
.upBlank p { max-width: 460px; margin: 8px auto 0; }
.upBlank .btn { margin-top: 10px; }
.upBlankTitle { font-size: 18px; font-weight: 700; color: var(--silver-1); }
.userPage .mpBio { font-size: 14.5px; }
/* The band page has its tab bar between the banner and the page; here the page starts a little lower instead. */
.userPage .bpGrid { margin-top: 36px; }

/* ---------- narrower screens: the banner stacks, as the band's does ---------- */
@media (max-width: 991px) {
	.upHero.hasPhoto .bpHeroInner, .upHero .bpHeroInner { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; padding-top: 34px; padding-bottom: 30px; }
	.upHero.hasPhoto .bpHeroMain { grid-column: 1; }
	.upHero .bpHeroBg { width: 100%; }
	.upTop { width: auto; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 14px; background: rgba(12, 12, 14, 0.72); border: 1px solid var(--line); border-radius: 8px; }
	.upTop .bpSectionKicker { grid-column: 2; margin: 0; }
	.upTopArt { grid-column: 1; grid-row: 1 / span 4; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
	.upTopTitle { grid-column: 2; margin-top: 2px; font-size: 15px; }
	.upTopMeta { grid-column: 2; margin-top: 0; }
	.upTopPlay { grid-column: 2; justify-self: start; margin-top: 8px; padding: 7px 14px; font-size: 12px; }
}
@media (max-width: 560px) {
	.upAvatar { width: 88px; height: 88px; margin-bottom: 16px; }
	.userGrid { grid-template-columns: minmax(0, 1fr); }
}

/* A member's own page while it is private: a strip across its top with the switch alone, at the right. */
.upOwner { background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.upOwnerInner { display: flex; align-items: center; justify-content: flex-end; padding-top: 10px; padding-bottom: 10px; }
.upOwnerSwitch { flex: none; }
.upOwnerSwitch .switchLabel { font-weight: 600; color: var(--silver-1); }
/* Their own banner can be dragged (social.js); the words and the top song keep the ordinary pointer. */
.upHero.isAdjustable .upTop { cursor: auto; }
/* Their bands: the chart rows without a rank. */
.chartList.isAllTime.noRank .chartRow { grid-template-columns: 56px minmax(0, 1fr) auto; }
/* The Users page: the switch beside the note. */
.usersJoinSwitch { flex: none; }
.usersJoinSwitch .switchLabel { font-weight: 600; color: var(--silver-1); }

/* The admin's list of everyone on /members (2026-11-20): a card holds the member (a link when their profile is
   public) and a Message button. A private member's card is not a link, so it does not light up. */
.userCard.isAdminCard { gap: 6px; padding: 0 12px 0 0; }
.userCard.isAdminCard:has(> div.userCardMain):hover { background: var(--bg-elev); border-color: var(--line); }
.userCardMain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 0 14px 16px; color: inherit; text-decoration: none; }
.userCardMain:focus-visible { outline: none; }
.userCardMsg { margin-left: auto; }
.userCardTag { flex: none; padding: 1px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; line-height: 1.5; text-transform: uppercase; color: var(--fg-mute); border: 1px solid var(--line); border-radius: 3px; }
.userCardEmail { color: var(--fg-mute); }
