:root {
  color-scheme: dark;
  --bg: #080710;
  --surface: rgba(19, 16, 33, 0.88);
  --surface-strong: #141124;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(190, 174, 255, 0.13);
  --line-strong: rgba(169, 139, 255, 0.28);
  --text: #f2efff;
  --muted: #a19bb8;
  --subtle: #6f6985;
  --purple: #a78bfa;
  --cyan: #70e7ee;
  --danger: #ff8f9f;
  --page-width: 920px;
  --card-height: 176px;
  --row-pitch: 192px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; width: 100%; background: var(--bg); scroll-behavior: auto; }
body {
  position: relative;
  width: 100%; min-width: 320px; min-height: 100vh; margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -18%, rgba(94, 57, 160, 0.22), transparent 52%),
    radial-gradient(ellipse at 5% 45%, rgba(39, 120, 145, 0.075), transparent 36%),
    #080710;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .16; }
.ambient-one { width: 220px; height: 220px; top: 30vh; left: -160px; background: #7046dc; }
.ambient-two { width: 250px; height: 250px; right: -190px; top: 68vh; background: #1f9eae; opacity: .1; }

.site-header {
  position: sticky; z-index: 20; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 72px; padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(190, 174, 255, .1);
  background: rgba(8, 7, 16, .86);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-mark { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(167,139,250,.55); border-radius: 11px; background: linear-gradient(145deg, rgba(167,139,250,.19), rgba(112,231,238,.07)); box-shadow: 0 0 24px rgba(139,92,246,.14); }
.brand-mark span { width: 13px; height: 13px; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 12px rgba(112,231,238,.55); }
.brand-mark i { position: absolute; width: 25px; height: 9px; border: 1px solid var(--purple); border-radius: 50%; transform: rotate(-35deg); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 13px; letter-spacing: .19em; font-weight: 800; }
.brand-copy small { color: var(--subtle); font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.live-indicator { display: flex; align-items: center; gap: 8px; color: #aaa4bc; font-size: 9px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.live-indicator i, .stat-pulse { width: 7px; height: 7px; border-radius: 50%; background: #70e7bc; box-shadow: 0 0 11px rgba(112,231,188,.65); }
.icon-button { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.icon-button:hover { border-color: var(--line-strong); background: rgba(167,139,250,.1); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: #d9d2f2; stroke-width: 1.8; stroke-linecap: round; }

.app-shell { width: min(100% - 40px, var(--page-width)); margin: 0 auto; padding: 52px 0 72px; }
.intro-block { padding: 0 0 30px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #aaa0c9; font-size: 9px; font-weight: 800; letter-spacing: .19em; }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
h1, h2, p { margin-top: 0; }
.intro-block h1 { margin: 0; font-size: clamp(36px, 6.3vw, 62px); line-height: 1.04; letter-spacing: -.055em; font-weight: 760; }
.intro-block h1 span { color: transparent; background: linear-gradient(95deg, #c2a9ff 8%, #8f9bff 52%, #79e8e9 100%); -webkit-background-clip: text; background-clip: text; }
.intro-copy { max-width: 550px; margin: 17px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.stream-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #c6bfd8; font-size: 10px; letter-spacing: .02em; }
.stream-stats strong { color: #f2efff; font-variant-numeric: tabular-nums; }
.stat-pulse { width: 6px; height: 6px; }
.stat-divider { width: 1px; height: 12px; margin: 0 3px; background: var(--line-strong); }
.stat-secondary { color: var(--subtle); }
.feed { position: relative; width: 100%; min-height: 1px; isolation: isolate; overflow-anchor: none; }
.preload-marker { position: absolute; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.profile-card { overflow-anchor: none; }
.profile-card {
  position: absolute; inset-inline: 0; height: var(--card-height); display: flex; align-items: center; gap: 19px;
  min-width: 0; padding: 18px 20px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 17px;
  background: linear-gradient(112deg, rgba(24,20,41,.97), rgba(15,14,27,.96) 72%, rgba(16,24,34,.95));
  box-shadow: 0 9px 30px rgba(0,0,0,.13);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.profile-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -75px; top: -105px; border-radius: 50%; background: radial-gradient(circle, hsla(var(--hue), 90%, 68%, .11), transparent 70%); pointer-events: none; }
.profile-card:hover { border-color: rgba(167,139,250,.42); background: linear-gradient(112deg, rgba(29,24,49,.99), rgba(16,15,31,.98) 72%, rgba(16,27,38,.97)); }
.avatar-wrap { position: relative; flex: 0 0 88px; width: 88px; height: 88px; }
.avatar { position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; border: 1px solid hsla(var(--hue), 90%, 80%, .38); border-radius: 24px; color: white; font-size: 25px; font-weight: 750; letter-spacing: -.05em; background: radial-gradient(circle at 28% 23%, hsla(var(--hue), 90%, 80%, .92), transparent 24%), radial-gradient(circle at 70% 80%, hsla(calc(var(--hue) + 76), 80%, 57%, .8), transparent 44%), linear-gradient(140deg, hsl(var(--hue), 54%, 31%), hsl(calc(var(--hue) + 68), 50%, 17%)); box-shadow: inset 0 0 24px rgba(255,255,255,.08), 0 7px 25px hsla(var(--hue), 80%, 55%, .12); }
.avatar::before, .detail-avatar::before { content: ""; position: absolute; width: 55%; height: 55%; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; transform: rotate(-31deg) scaleX(1.55); }
.avatar::after { content: ""; position: absolute; width: 7px; height: 7px; top: 17%; right: 18%; border-radius: 50%; background: white; box-shadow: 0 0 12px white; opacity: .9; }
.avatar span { position: relative; z-index: 1; text-shadow: 0 2px 9px rgba(0,0,0,.3); }
.avatar-status { position: absolute; right: -3px; bottom: 5px; width: 12px; height: 12px; border: 3px solid #171426; border-radius: 50%; background: #70e7bc; }
.profile-main { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; height: 100%; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.profile-type, .id-caption { color: #77718e; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.profile-name { max-width: 100%; margin: 0; overflow: hidden; color: #f1edff; font-size: 19px; font-weight: 720; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.profile-username { max-width: 100%; margin: 3px 0 6px; overflow: hidden; color: #a99bcf; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-bio { display: -webkit-box; max-width: 100%; margin: 0; overflow: hidden; color: #a29cb5; font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin-top: 10px; }
.profile-id { display: block; min-width: 0; max-width: 72%; max-height: 24px; overflow: auto; color: #79738e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; scrollbar-width: thin; }
.profile-open { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; color: #c2b2ff; font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.profile-open span { color: var(--cyan); font-size: 14px; transition: transform .18s ease; }
.profile-open:hover span { transform: translate(2px,-2px); }
.feed-status { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.feed-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.profile-view { min-height: 65vh; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 28px; color: #b9afd3; font-size: 12px; text-decoration: none; }
.back-link:hover { color: white; }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-detail { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(22px, 5vw, 46px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: linear-gradient(145deg, rgba(24,20,43,.97), rgba(12,12,23,.98)); box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.profile-detail::before { content: ""; position: absolute; width: 390px; height: 390px; top: -245px; right: -150px; border-radius: 50%; background: radial-gradient(circle, hsla(var(--hue), 80%, 65%, .18), transparent 68%); pointer-events: none; }
.detail-top { position: relative; display: flex; align-items: center; gap: 24px; }
.detail-avatar { position: relative; display: grid; flex: 0 0 116px; width: 116px; height: 116px; place-items: center; overflow: hidden; border: 1px solid hsla(var(--hue), 90%, 80%, .45); border-radius: 31px; background: radial-gradient(circle at 28% 23%, hsla(var(--hue), 90%, 80%, .92), transparent 24%), radial-gradient(circle at 70% 80%, hsla(calc(var(--hue) + 76), 80%, 57%, .8), transparent 44%), linear-gradient(140deg, hsl(var(--hue), 54%, 31%), hsl(calc(var(--hue) + 68), 50%, 17%)); box-shadow: 0 12px 40px hsla(var(--hue), 80%, 55%, .15); }
.detail-avatar span { position: relative; z-index: 1; font-size: 34px; font-weight: 800; }
.detail-heading { position: relative; min-width: 0; }
.detail-heading .eyebrow { margin-bottom: 10px; }
.detail-name { margin: 0 0 5px; overflow-wrap: anywhere; font-size: clamp(28px, 5vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
.detail-username { margin: 0; color: #b1a3d9; font-size: 13px; overflow-wrap: anywhere; }
.detail-bio { position: relative; max-width: 590px; margin: 28px 0; color: #b4aec5; font-size: 14px; line-height: 1.8; }
.detail-id-box { position: relative; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.detail-id-label { display: block; margin-bottom: 8px; color: #827b9a; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.detail-id-value { display: block; max-height: 145px; overflow: auto; color: #e8e0ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; scrollbar-width: thin; }
.detail-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.action-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(167,139,250,.08); color: #e8e0ff; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.action-button:hover { border-color: rgba(112,231,238,.45); background: rgba(112,231,238,.09); }
.generated-note { position: relative; margin: 25px 0 0; color: #77718a; font-size: 10px; line-height: 1.6; }
.profile-error { padding: 28px; border: 1px solid rgba(255,143,159,.24); border-radius: 16px; color: #ffd5db; background: rgba(255,143,159,.05); }

.search-layer { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(3,3,9,.78); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.search-panel { position: relative; width: min(100%, 520px); padding: 32px; border: 1px solid var(--line-strong); border-radius: 21px; background: #121020; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.close-button { position: absolute; top: 13px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 9px; color: #aaa3bc; background: transparent; font-size: 25px; line-height: 1; cursor: pointer; }
.close-button:hover { color: white; background: rgba(255,255,255,.06); }
.search-panel .eyebrow { margin: 0 0 10px; }
.search-panel h2 { margin: 0 0 9px; font-size: 28px; letter-spacing: -.04em; }
.search-description { margin: 0 0 21px; color: var(--muted); font-size: 12px; line-height: 1.65; }
#searchForm { display: flex; flex-direction: column; gap: 10px; }
#searchInput { width: 100%; min-width: 0; height: 49px; padding: 0 14px; outline: none; border: 1px solid rgba(190,174,255,.2); border-radius: 11px; color: white; background: rgba(255,255,255,.04); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
#searchInput:focus { border-color: rgba(112,231,238,.65); box-shadow: 0 0 0 3px rgba(112,231,238,.08); }
#searchInput::placeholder { color: #716b81; font-family: inherit; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid rgba(167,139,250,.45); border-radius: 11px; color: #0d0b16; background: linear-gradient(100deg, #b79bff, #8edfe9); font-size: 12px; font-weight: 800; cursor: pointer; transition: filter .18s ease, transform .18s ease; }
.primary-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.search-message { min-height: 17px; margin: 9px 0 0; color: var(--danger); font-size: 11px; }
.search-note { display: flex; align-items: center; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); color: #817b93; font-size: 10px; }
.note-icon { color: var(--cyan); font-size: 17px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 11px 16px; transform: translate(-50%, 15px); opacity: 0; border: 1px solid var(--line-strong); border-radius: 11px; color: #eee9ff; background: rgba(26,22,43,.97); box-shadow: 0 12px 40px rgba(0,0,0,.35); font-size: 11px; text-align: center; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 640px) {
  .site-header { min-height: 62px; padding: 0 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
  .brand-copy strong { font-size: 11px; letter-spacing: .16em; }
  .brand-copy small { font-size: 7px; letter-spacing: .08em; }
  .header-actions { gap: 10px; }
  .live-indicator { gap: 6px; font-size: 8px; letter-spacing: .1em; }
  .icon-button { width: 37px; height: 37px; }
  .app-shell { width: calc(100% - 24px); padding: 38px 0 50px; }
  .intro-block { padding-bottom: 24px; }
  .intro-block h1 { font-size: clamp(34px, 9vw, 48px); }
  .intro-copy { margin: 13px 0 17px; font-size: 12px; }
  .stream-stats { gap: 7px; font-size: 9px; }
  .profile-card { gap: 13px; height: var(--card-height); padding: 14px 13px; border-radius: 14px; }
  .avatar-wrap { flex-basis: 66px; width: 66px; height: 66px; }
  .avatar { border-radius: 19px; font-size: 20px; }
  .profile-name { font-size: 16px; }
  .profile-type, .id-caption { font-size: 7px; letter-spacing: .1em; }
  .profile-username { margin: 2px 0 5px; font-size: 9px; }
  .profile-bio { font-size: 9px; line-height: 1.42; }
  .card-footer { gap: 6px; margin-top: 8px; }
  .profile-id { max-width: 67%; font-size: 8px; }
  .profile-open { gap: 4px; font-size: 9px; }
  .detail-top { align-items: flex-start; gap: 15px; }
  .detail-avatar { flex-basis: 82px; width: 82px; height: 82px; border-radius: 23px; }
  .detail-avatar span { font-size: 27px; }
  .detail-heading .eyebrow { margin-bottom: 8px; font-size: 7px; letter-spacing: .1em; }
  .detail-name { font-size: clamp(23px, 7vw, 32px); }
  .detail-username { font-size: 10px; }
  .profile-detail { border-radius: 18px; }
  .detail-bio { margin: 22px 0; font-size: 12px; }
  .search-panel { padding: 27px 20px 22px; }
}
@media (max-width: 380px) {
  .live-indicator { display: none; }
  .app-shell { width: calc(100% - 18px); }
  .profile-card { gap: 10px; padding-inline: 10px; }
  .avatar-wrap { flex-basis: 58px; width: 58px; height: 58px; }
  .profile-open { font-size: 8px; }
  .profile-id { max-width: 63%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
