/*
 * Banned Viewer — styles
 * ======================
 *
 * The profile copies the look of roblox.com's own dark profile page (colours,
 * radii, buttons and tabs were measured in the browser). Everything that
 * belongs to the viewer is prefixed `bv-`, so it can be dropped into another
 * site without clashing with its CSS. Only the first block (page base + the
 * header with the search box) styles plain elements — replace it with your
 * own site's styles when embedding.
 *
 * Font: Inter (loaded in index.html). Roblox's own font, Builder Sans, is only
 * licensed for use inside Roblox.
 */

/* ---------- Page base + header (replace with your site's own) ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #0b0c10;
  --surface: #18181b;
  --border: #2a2a30;
  --text: #efeff1;
  --muted: #8b8b99;
  --dur: 0.22s;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
  position: relative;
  z-index: 20;
  padding: 26px 24px;
  text-align: center;
}
.hero-title {
  margin-bottom: 8px;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-desc {
  max-width: 420px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Viewer tokens (the Roblox dark palette) ---------- */

:root {
  --bv-page: #0b0c10;
  --bv-pop: #191a1f;
  --bv-text: #f7f7f8;
  --bv-text2: #d5d7dd;
  --bv-muted: #bcbec8;
  --bv-s1: rgba(208, 217, 251, .08);
  --bv-s2: rgba(208, 217, 251, .12);
  --bv-s3: rgba(208, 217, 251, .18);
  --bv-line: rgba(208, 217, 251, .12);
  --bv-blue: #335fff;
  --bv-red: #f04f4f;
  --bv-redt: #ff8c8c;
  --bv-green: #3fcf8e;
  --bv-shadow: 0 2px 4px -.5px rgba(4, 4, 8, .25), 0 10px 20px -.75px rgba(4, 4, 8, .25);
  --bv-d: var(--dur, .22s);
  --bv-e: var(--ease, cubic-bezier(.2, .8, .2, 1));
}

/* Scoped resets: only inside the viewer (.bv), the popup layers (.bv-layer)
   and the search form. */
.bv, .bv-layer { color: var(--bv-text); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
:where(.bv, .bv-layer) * { box-sizing: border-box; }
:where(.bv, .bv-layer) a { color: inherit; text-decoration: none; }
:where(.bv, .bv-layer, .bv-search) button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
:where(.bv, .bv-layer) :is(img, svg) { display: block; }

/* ---------- Search box + recent searches ---------- */

.bv-gate {
  max-width: 520px;
  margin: 12px auto 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface, var(--bv-s1));
  border: 1px solid var(--border, rgba(255, 255, 255, .08));
  text-align: center;
}
.bv-gate-copy { margin: 0 0 12px; color: var(--muted, var(--bv-text2)); font-size: 14px; }
.bv-gate-widget { display: flex; justify-content: center; min-height: 65px; }
.bv-gate-err { margin: 10px 0 0; color: #f07178; font-size: 13px; }
.bv-search { position: relative; display: flex; flex-wrap: wrap; align-items: center; max-width: 520px; margin: 0 auto; }
.bv-search > svg { position: absolute; left: 19px; top: 25px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); opacity: .8; pointer-events: none; }
.bv-search input { flex: 1; min-width: 0; height: 50px; padding: 0 104px 0 48px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 16px; outline: none; transition: border-color var(--bv-d) var(--bv-e), box-shadow var(--bv-d) var(--bv-e); }
.bv-search input::placeholder { color: var(--muted); }
.bv-search input::-webkit-search-cancel-button, .bv-m-q::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.bv-search input:focus { border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.bv-search > button { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 20px; border-radius: 999px; background: var(--text); color: #0e0e10; font-size: 14px; font-weight: 700; transition: transform var(--bv-d) var(--bv-e), opacity var(--bv-d) var(--bv-e); }
.bv-search > button:hover { opacity: .9; }
.bv-search > button:active { transform: scale(.96); }

/* "Recent searches": a dropdown under the box, or (`.inline`) a block that's
   always visible while no profile is on screen. */
.bv-hist { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; padding: 6px; border-radius: 16px; background: var(--bv-pop); border: .67px solid var(--bv-line); box-shadow: var(--bv-shadow); text-align: left; color: var(--bv-text); font-size: 14px; line-height: 1.4; animation: bv-pop .16s var(--bv-e); }
.bv-hist[hidden] { display: none; }
.bv-hist.inline { position: static; flex: 0 0 100%; margin-top: 12px; box-shadow: none; animation: none; }
.bv-hist-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 10px; font-size: 12.8px; color: var(--bv-muted); }
.bv-hist-h button { height: 26px; padding: 0 8px; border-radius: 6px; font-size: 12.8px; font-weight: 600; color: var(--bv-text2); transition: background var(--bv-d) var(--bv-e), color var(--bv-d) var(--bv-e); }
.bv-hist-h button:hover { background: var(--bv-s1); color: var(--bv-text); }
.bv-hist-r { display: flex; align-items: center; border-radius: 10px; transition: background var(--bv-d) var(--bv-e); }
.bv-hist-r:hover, .bv-hist-r.on { background: var(--bv-s1); }
.bv-hist-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; text-align: left; }
.bv-hist-av { position: relative; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: var(--bv-s2); display: grid; place-items: center; color: rgba(208, 217, 251, .24); }
.bv-hist-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bv-hist-av svg { display: block; width: 60%; height: 60%; }
.bv-hist-r.ban .bv-hist-av::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--bv-red); }
.bv-hist-t { min-width: 0; display: flex; flex-direction: column; }
.bv-hist-t b, .bv-hist-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-hist-t b { font-weight: 600; }
.bv-hist-t span { font-size: 12.8px; color: var(--bv-muted); }
.bv-hist-r.ban .bv-hist-t span { color: var(--bv-redt); }
.bv-hist-x { flex: 0 0 auto; width: 32px; height: 32px; margin-right: 4px; border-radius: 50%; display: grid; place-items: center; color: var(--bv-muted); transition: background var(--bv-d) var(--bv-e), color var(--bv-d) var(--bv-e); }
.bv-hist-x:hover { background: var(--bv-s2); color: var(--bv-text); }
.bv-hist-x svg { display: block; width: 14px; height: 14px; }

/* ---------- Profile container ---------- */

.bv { width: 100%; max-width: 1010px; margin: 0 auto; padding: 4px 20px 48px; }

/* Buttons (Roblox style: blue primary, translucent secondary). */
.bv-btn { height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: background-color var(--bv-d) var(--bv-e), transform var(--bv-d) var(--bv-e); }
.bv-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.bv-btn:hover { background-image: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)); }
.bv-btn:active { transform: scale(.97); }
.bv-btn-p { background-color: var(--bv-blue); color: #fff; }
.bv-btn-s, .bv-btn-i { background-color: var(--bv-s2); }
.bv-btn-i { width: 44px; padding: 0; }
.bv-acts { display: flex; gap: 8px; flex: 0 0 auto; }
.bv-more { position: relative; }
.bv-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; padding: 8px; border-radius: 16px; background: var(--bv-pop); border: .67px solid var(--bv-line); box-shadow: var(--bv-shadow); z-index: 30; animation: bv-pop .16s var(--bv-e); }
.bv-menu button { width: 100%; height: 36px; display: flex; align-items: center; text-align: left; padding: 8px 12px; border-radius: 8px; color: var(--bv-text2); transition: background var(--bv-d) var(--bv-e), color var(--bv-d) var(--bv-e); }
.bv-menu button:hover { background: var(--bv-s1); color: var(--bv-text); }

/* ---------- Banner with the 3D avatar ---------- */

.bv-banner { --bh: 300px; position: relative; height: var(--bh); border-radius: 8px; overflow: hidden; isolation: isolate; background: #272930; }
.bv-banner::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: max(100%, calc(var(--bh) * 1.332)); aspect-ratio: 1023 / 768; transform: translate(-50%, -50%); background: radial-gradient(80% 150% at 50% 0%, #2e3038 0%, #2b2d35 20%, #25272e 40%, #1e2026 60%, #15161c 80%, #0f1014 100%); }
.bv-stage { position: absolute; inset: 0; z-index: 1; }
.bv-stage canvas { display: block; cursor: default; animation: bv-fade .5s var(--bv-e); }
.bv-stage.live canvas { cursor: grab; }
.bv-stage.live canvas:active { cursor: grabbing; }
.bv-stage.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2.5px solid var(--bv-s2); border-top-color: var(--bv-text); animation: bv-spin .8s linear infinite; }
.bv-stage.failed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(208, 217, 251, .26); font-size: 13px; font-weight: 600; }
.bv-stage.failed svg { width: 96px; height: 96px; }
.bv-3d { position: absolute; top: 12px; right: 12px; z-index: 5; height: 48px; min-width: 44px; padding: 0 12px; border-radius: 8px; background: var(--bv-s2); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; transition: background var(--bv-d) var(--bv-e); }
.bv-3d:hover, .bv-3d[aria-pressed="true"] { background: var(--bv-s3); }
.bv-3d[hidden] { display: none; }
.bv-hint { position: absolute; left: 50%; bottom: 14px; z-index: 5; transform: translate(-50%, 6px); padding: 6px 12px; border-radius: 8px; background: var(--bv-pop); border: .67px solid var(--bv-line); font-size: 12px; font-weight: 600; color: var(--bv-text2); opacity: 0; pointer-events: none; transition: opacity .25s var(--bv-e), transform .25s var(--bv-e); }
.bv-hint.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Header: headshot, names, value buttons, actions ---------- */

.bv-head { display: flex; align-items: center; gap: 12px; margin-top: -21px; position: relative; z-index: 6; }
/* With the value buttons showing, the name column is taller; bottom-aligning
   keeps it from overlapping the banner. */
.bv-hs-w { position: relative; flex: 0 0 auto; }
.bv-hs { width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(var(--bv-s1), var(--bv-s1)), var(--bv-page); overflow: hidden; display: grid; place-items: center; color: rgba(208, 217, 251, .24); }
.bv-hs svg { width: 60%; height: 60%; }
.bv-hs img { width: 100%; height: 100%; object-fit: cover; animation: bv-fade .4s var(--bv-e); }
.bv-hs-b { position: absolute; right: 4px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--bv-red); border: 3px solid var(--bv-page); display: grid; place-items: center; color: #fff; }
.bv-hs-b svg { width: 15px; height: 15px; }
.bv-id { flex: 1; min-width: 0; }
.bv-name { font-size: 28px; font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.bv-ver { width: 20px; height: 20px; flex: 0 0 auto; }
.bv-prem { width: 24px; height: 24px; flex: 0 0 auto; }
.bv-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 2px; }
.bv-handle { font-size: 16px; overflow-wrap: anywhere; }
.bv-state { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(240, 79, 79, .16); color: var(--bv-redt); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bv-state svg { width: 12px; height: 12px; }

/* Friends / Followers / Following pills, bio and social links. */
.bv-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.bv-count { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bv-s2); font-weight: 600; display: inline-flex; align-items: center; transition: background var(--bv-d) var(--bv-e); }
.bv-count:hover { background: var(--bv-s3); }
.bv-count.static:hover { background: var(--bv-s2); }
.bv-bio { margin-top: 16px; line-height: 19.6px; color: var(--bv-text2); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bv-bio.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.bv-bio.empty { color: var(--bv-muted); }
.bv-bio-more { margin-top: 2px; line-height: 19.6px; color: var(--bv-text2); text-decoration: underline; text-underline-offset: 2px; }
.bv-bio-more:hover { color: var(--bv-text); }
.bv-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bv-chip { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bv-s2); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; transition: background var(--bv-d) var(--bv-e); }
.bv-chip svg { width: 15px; height: 15px; }
.bv-chip:hover { background: var(--bv-s3); }

/* About / Creations tabs. */
.bv-tabs { display: flex; margin-top: 16px; }
.bv-tab { flex: 1; height: 46px; padding: 12px 0 20px; font-weight: 600; color: var(--bv-muted); text-align: center; box-shadow: inset 0 -1px 0 var(--bv-line); transition: color var(--bv-d) var(--bv-e), box-shadow var(--bv-d) var(--bv-e); }
.bv-tab:hover { color: var(--bv-text); }
.bv-tab.on { color: var(--bv-text); box-shadow: inset 0 -2px 0 var(--bv-text); }

/* ---------- Sections + horizontal carousels ---------- */

[data-panel] { margin-top: -8px; }
.bv-sec { margin-top: 32px; }
.bv-sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-bottom: 12px; min-height: 24px; }
.bv-sec-h h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 24px; }
.bv-see { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 500; color: #fff; }
.bv-see svg { width: 18px; height: 18px; }
.bv-empty { padding: 28px 16px; border-radius: 8px; background: var(--bv-s1); color: var(--bv-muted); text-align: center; }

.bv-car { position: relative; }
.bv-row { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 0; }
.bv-row::-webkit-scrollbar { display: none; }
/* Arrow buttons appear only when the row can scroll that way (desktop). */
.bv-cb { position: absolute; top: calc(var(--th, 152px) / 2 - 17px); width: 38px; height: 38px; border-radius: 50%; background: var(--bv-pop); border: .67px solid var(--bv-line); box-shadow: var(--bv-shadow); display: none; align-items: center; justify-content: center; z-index: 2; transition: background var(--bv-d) var(--bv-e); }
.bv-cb:hover { background: #24262c; }
.bv-cb svg { width: 20px; height: 20px; }
.bv-cb.l { left: -14px; }
.bv-cb.r { right: -14px; }
.bv-car.can-l .bv-cb.l, .bv-car.can-r .bv-cb.r { display: flex; }

/* Item, community, badge and experience tiles. */
.bv-it, .bv-gc, .bv-bd { flex: 0 0 152px; width: 152px; min-width: 0; }
.bv-it-th, .bv-gc-th, .bv-bd-th { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bv-s2); }
.bv-it-th { position: relative; background: linear-gradient(var(--bv-s1), var(--bv-s1)), var(--bv-s2); }
.bv-it-th .bv-ltd { position: absolute; left: 0; bottom: 0; }
.bv-it-th img, .bv-bd-th img { width: 100%; height: 100%; object-fit: contain; }
.bv-gc-th img { width: 100%; height: 100%; object-fit: cover; }
.bv-it-n, .bv-gc-n, .bv-bd-n { margin-top: 12px; font-weight: 700; line-height: 19.6px; overflow-wrap: anywhere; }
.bv-it-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bv-it-p { margin-top: 2px; display: flex; align-items: center; gap: 4px; color: var(--bv-muted); }
.bv-rbx { width: 18px; height: 18px; flex: 0 0 auto; }
.bv-gc-n { display: flex; gap: 4px; align-items: flex-start; }
.bv-gc-n span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bv-gc-n .bv-ver { width: 16px; height: 16px; margin-top: 2px; }
.bv-gc-m, .bv-gc-r { color: var(--bv-text2); }
.bv-gc-r { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Friend tiles (round avatars). Banned friends get a red ring and red name;
   deleted accounts are greyed out. */
.bv-fr { flex: 0 0 107px; width: 107px; min-width: 0; text-align: center; }
.bv-fr-av { width: 90px; height: 90px; margin: 0 auto; border-radius: 50%; background: var(--bv-s2); overflow: hidden; position: relative; transition: background var(--bv-d) var(--bv-e); }
.bv-fr:hover .bv-fr-av { background: var(--bv-s3); }
.bv-fr-av img { width: 100%; height: 100%; object-fit: cover; }
.bv-fr.ban .bv-fr-av::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--bv-red); }
.bv-fr-n { margin-top: 5px; font-size: 12.8px; display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; }
.bv-fr-n span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-fr-n .bv-ver { width: 14px; height: 14px; }
.bv-fr.ban .bv-fr-n { color: var(--bv-redt); }
.bv-fr.gone .bv-fr-n, .bv-pc.gone .bv-pc-n { color: var(--bv-muted); font-weight: 400; }
.bv-fr.gone:hover .bv-fr-av { background: var(--bv-s2); }
.bv-pc.gone:hover { background: var(--bv-s1); }
.bv-fr.gone .bv-sil, .bv-pc.gone .bv-sil { opacity: .5; }
.bv-sil { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(208, 217, 251, .24); }
.bv-sil svg { width: 56%; height: 56%; }

/* Statistics boxes. */
.bv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bv-st { padding: 16px; border-radius: 8px; background: var(--bv-s1); }
.bv-st span { display: block; color: var(--bv-muted); }
.bv-st b { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; }
.bv-st.red b { color: var(--bv-redt); }

/* ---------- Friends / Following popup ---------- */

.bv-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.bv-pc { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; background: var(--bv-s1); transition: background var(--bv-d) var(--bv-e); min-width: 0; text-align: left; }
.bv-pc:hover { background: var(--bv-s2); }
.bv-pc-av { width: 44px; height: 44px; border-radius: 50%; background: var(--bv-s2); overflow: hidden; flex: 0 0 auto; position: relative; }
.bv-pc-av img { width: 100%; height: 100%; object-fit: cover; }
.bv-pc.ban .bv-pc-av::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--bv-red); }
.bv-pc-b { min-width: 0; flex: 1; }
.bv-pc-n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.bv-pc-n span { overflow: hidden; text-overflow: ellipsis; }
.bv-pc-n .bv-ver { width: 14px; height: 14px; }
.bv-pc-h { font-size: 12.8px; color: var(--bv-muted); display: flex; align-items: center; gap: 4px; min-width: 0; }
.bv-pc-h span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-pc-h svg { width: 11px; height: 11px; flex: 0 0 auto; }
.bv-pc.ban .bv-pc-h { color: var(--bv-redt); }

.bv-modal { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 20px; animation: bv-fade .18s ease; }
.bv-modal[hidden] { display: none; }
.bv-m-box { position: relative; width: min(780px, 100%); max-height: min(720px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--bv-pop); border: .67px solid var(--bv-line); border-radius: 16px; overflow: hidden; box-shadow: var(--bv-shadow), 0 24px 48px rgba(4, 4, 8, .4); animation: bv-pop .22s var(--bv-e); }
.bv-m-grab { display: none; }
.bv-m-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; }
.bv-m-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bv-m-tabs::-webkit-scrollbar { display: none; }
.bv-m-tab { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bv-s2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: background var(--bv-d) var(--bv-e), color var(--bv-d) var(--bv-e); }
.bv-m-tab em { font-style: normal; }
.bv-m-tab:hover { background: var(--bv-s3); }
.bv-m-tab.on { background: var(--bv-text); color: var(--bv-page); }
.bv-m-x { width: 40px; height: 40px; border-radius: 8px; background: var(--bv-s2); display: grid; place-items: center; flex: 0 0 auto; transition: background var(--bv-d) var(--bv-e); }
.bv-m-x:hover { background: var(--bv-s3); }
.bv-m-x svg { width: 18px; height: 18px; }
.bv-m-tools { display: flex; gap: 8px; padding: 0 18px 12px; }
.bv-m-sw { flex: 1; position: relative; }
.bv-m-sw svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--bv-muted); }
.bv-m-q { width: 100%; height: 40px; border-radius: 8px; background: var(--bv-s1); border: .67px solid var(--bv-line); color: var(--bv-text); padding: 0 12px 0 38px; font-family: inherit; font-size: 14px; outline: none; transition: border-color var(--bv-d) var(--bv-e); }
.bv-m-q::placeholder { color: var(--bv-muted); }
.bv-m-q:focus { border-color: rgba(247, 247, 248, .7); }
.bv-m-body { overflow-y: auto; overscroll-behavior: contain; padding: 2px 12px 18px 18px; margin-right: 4px; }
.bv-m-body::-webkit-scrollbar { display: block; width: 10px; height: 10px; background: transparent; }
.bv-m-body::-webkit-scrollbar-track { background: transparent; margin: 6px 0 12px; }
.bv-m-body::-webkit-scrollbar-thumb { background: rgba(208, 217, 251, .16); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; min-height: 40px; }
.bv-m-body::-webkit-scrollbar-thumb:hover { background-color: rgba(208, 217, 251, .3); }
.bv-m-body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.bv-m-body::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { .bv-m-body { scrollbar-width: thin; scrollbar-color: rgba(208, 217, 251, .22) transparent; } }
.bv-m-empty { text-align: center; color: var(--bv-muted); padding: 44px 0; }
.bv-m-foot { font-size: 12.8px; color: var(--bv-muted); text-align: center; padding-top: 14px; }

/* ---------- Loading skeletons ---------- */

.bv-sk { background: linear-gradient(90deg, rgba(208, 217, 251, .07) 30%, rgba(208, 217, 251, .14) 50%, rgba(208, 217, 251, .07) 70%); background-size: 300% 100%; animation: bv-shimmer 1.4s ease-in-out infinite; border-radius: 8px; }
.bv-sk-l { height: 14px; border-radius: 6px; }
.bv-sk-h { width: 190px; height: 22px; }
.bv-sk-name { width: min(240px, 70%); height: 30px; }
.bv-sk-pill { height: 32px; border-radius: 999px; }
.bv-sk-sq { aspect-ratio: 1; }
.bv-sk-c { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto; }
.bv-sk-pc { height: 60px; }
.bv-hs .bv-sk { width: 100%; height: 100%; border-radius: 50%; }
.bv-tab.sk { pointer-events: none; }

/* ---------- Notes (not found, not banned, unavailable, ...) ---------- */

.bv-note { max-width: 460px; margin: 24px auto 0; padding: 32px 24px; border-radius: 16px; background: var(--bv-s1); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bv-note h2 { margin: 6px 0 0; font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.bv-note p { margin: 0; color: var(--bv-text2); max-width: 340px; }
.bv-note .bv-btn { margin-top: 8px; }
.bv-note code { padding: 1px 5px; border-radius: 5px; background: var(--bv-s2); font-size: 12.5px; }
.bv-note-av { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: linear-gradient(var(--bv-s1), var(--bv-s1)), var(--bv-page); color: rgba(208, 217, 251, .24); display: grid; place-items: center; }
.bv-note-av img { width: 100%; height: 100%; object-fit: cover; }
.bv-note-av svg { width: 60%; height: 60%; }
.bv-note-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--bv-s2); display: grid; place-items: center; color: var(--bv-text2); }
.bv-note-ic svg { width: 26px; height: 26px; }

/* "Username copied" etc. */
.bv-toast { position: fixed; left: 50%; bottom: 28px; z-index: 420; transform: translate(-50%, 8px); padding: 10px 16px; border-radius: 8px; background: var(--bv-text); color: var(--bv-page); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .18s var(--bv-e), transform .18s var(--bv-e); }
.bv-toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes bv-spin { to { transform: rotate(360deg); } }
@keyframes bv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bv-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bv-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes bv-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .hero { padding: 26px 16px 18px; }
  .bv { padding: 0 14px 32px; }
  .bv-banner { --bh: 250px; }
  .bv-head { flex-wrap: wrap; align-items: flex-end; margin-top: -28px; }
  .bv-hs { width: 104px; height: 104px; }
  .bv-hs-b { width: 26px; height: 26px; right: 3px; bottom: 5px; }
  .bv-hs-b svg { width: 13px; height: 13px; }
  .bv-id { flex: 1 1 100%; }
  .bv-name { font-size: 24px; }
  .bv-name .bv-ver { width: 19px; height: 19px; }
  .bv-name .bv-prem { width: 22px; height: 22px; }
  .bv-acts { width: 100%; order: 3; }
  .bv-acts .bv-btn-p, .bv-acts .bv-btn-s { flex: 1; min-width: 0; }
  .bv-stats { grid-template-columns: 1fr 1fr; }
  .bv-cb { display: none !important; }
  .bv-it, .bv-gc, .bv-bd { flex-basis: 132px; width: 132px; }
  /* The popup becomes a bottom sheet. */
  .bv-modal { align-items: flex-end; padding: 0; }
  .bv-m-box { width: 100%; border-radius: 16px 16px 0 0; max-height: 88vh; padding-bottom: env(safe-area-inset-bottom); animation: bv-up .28s var(--bv-e); }
  .bv-m-grab { display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); margin: 8px auto 0; flex: 0 0 auto; }
  .bv-m-head { padding: 10px 14px 12px; }
  .bv-m-tabs { gap: 5px; }
  .bv-m-tab { padding: 0 10px; font-size: 13px; }
  .bv-m-tools { padding: 0 14px 12px; }
  .bv-m-body { padding: 2px 8px 18px 14px; margin-right: 2px; }
  .bv-plist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .bv-search input { padding-right: 84px; }
  .bv-search > button { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bv *, .bv-layer * { transition: none !important; animation: none !important; }
}
