:root {
  color-scheme: dark;
  --bg: #09070f;
  --panel: rgba(20, 18, 30, 0.76);
  --panel-2: rgba(28, 25, 41, 0.9);
  --line: rgba(214, 196, 255, 0.18);
  --line-hot: rgba(145, 70, 255, 0.78);
  --text: #f8f5ff;
  --muted: #b8abc9;
  --muted-2: #8d819f;
  --purple: #9146ff;
  --violet: #772ce8;
  --pink: #ff4ecd;
  --cyan: #5ee7ff;
  --lime: #d7ff39;
  --red: #ff5c70;
  --green: #6dff9a;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 15% 8%, rgba(145, 70, 255, 0.24), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(94, 231, 255, 0.13), transparent 26%),
    linear-gradient(180deg, #08060d 0%, #0f0a18 52%, #07080d 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 0 49%, rgba(255, 255, 255, 0.035) 50%, transparent 51%);
  background-size: 100% 7px;
  opacity: 0.18;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1480px, calc(100vw - 16px));
  margin: 0 auto;
  padding: 12px 0 36px;
  display: grid;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

.topbar,
.tabs,
.summary-panel,
.results-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 62px;
  padding: 9px;
  display: grid;
  grid-template-columns: 52px minmax(280px, 1fr);
  gap: 10px;
  align-items: center;
}

.home-view {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  margin: -12px calc(50% - 50vw) -36px;
  display: grid;
  padding: 0;
}

.home-view::before {
  content: "";
  position: absolute;
  inset: -140px -24px -80px;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/background_glow_1600x900.png") center / cover no-repeat;
  opacity: 0.48;
}

.home-stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 72% 44%, rgba(145, 70, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%),
    transparent;
  box-shadow: none;
}

.home-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 5, 11, 0.06), rgba(7, 5, 11, 0.68)),
    linear-gradient(90deg, rgba(7, 5, 11, 0.66), transparent 44%, rgba(7, 5, 11, 0.28));
}

.home-art {
  position: absolute;
  right: max(4vw, 36px);
  top: 50%;
  width: min(34vw, 430px);
  height: min(76vh, 620px);
  transform: translateY(-50%);
  object-fit: cover;
  object-position: center;
  border-radius: clamp(18px, 3vw, 36px);
  opacity: 0.96;
  filter: saturate(1.08);
  box-shadow:
    0 38px 130px rgba(145, 70, 255, 0.38),
    0 0 160px rgba(145, 70, 255, 0.14);
}

.home-search {
  position: absolute;
  left: clamp(16px, 5vw, 72px);
  top: 50%;
  z-index: 2;
  width: min(640px, calc(100% - 32px));
  min-height: 62px;
  padding: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(214, 196, 255, 0.2);
  border-radius: 12px;
  background: rgba(9, 7, 15, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  transform: translateY(-50%);
}

.home-search span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(145, 70, 255, 0.22);
  color: #d8c8ff;
  font: 900 18px var(--mono);
}

.home-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  font-size: clamp(18px, 3vw, 28px);
}

.home-search input:focus {
  box-shadow: none;
}

.home-small-links {
  position: absolute;
  left: clamp(16px, 5vw, 72px);
  top: calc(50% + 48px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-small-links a {
  color: rgba(248, 245, 255, 0.58);
  font: 900 12px var(--mono);
}

.home-small-links a:hover {
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  justify-content: center;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  background: #120e18;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 30px rgba(145, 70, 255, 0.34);
}

.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(8, 7, 13, 0.74);
  color: var(--text);
  font-weight: 800;
}

.search input::placeholder {
  color: rgba(184, 171, 201, 0.64);
}

.search input:focus {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.18);
}

.search-btn,
.tab,
.icon-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 900;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.search-btn {
  padding: 0 18px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), var(--violet));
}

:is(.search-btn, .tab, .icon-btn):hover {
  transform: translateY(-1px);
  border-color: var(--line-hot);
  box-shadow: 0 14px 34px rgba(145, 70, 255, 0.18);
}

.tabs {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.tab {
  min-width: 0;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), var(--violet) 58%, #b074ff);
  box-shadow: 0 14px 34px rgba(145, 70, 255, 0.28);
}

.summary-panel.is-empty {
  display: none;
}

.summary-panel {
  padding: 10px;
}

.summary-card {
  position: relative;
  min-height: 96px;
  padding: 12px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(145, 70, 255, 0.12), rgba(94, 231, 255, 0.055)),
    rgba(18, 15, 28, 0.8);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-hot);
  box-shadow: 0 18px 46px rgba(145, 70, 255, 0.2);
}

.summary-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.summary-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.summary-muted {
  color: var(--muted);
  font: 800 12px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-facts {
  max-width: min(520px, 45vw);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.summary-card .stream-overlay {
  position: absolute;
  inset: -70px -36px;
  z-index: 10;
  display: grid;
  min-height: 280px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
  overflow: hidden;
  border: 1px solid rgba(255, 92, 112, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(10, 7, 15, 0.08), rgba(10, 7, 15, 0.92) 70%),
    rgba(10, 7, 15, 0.86);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(145, 70, 255, 0.26);
}

.summary-card.is-live {
  overflow: visible;
  z-index: 8;
}

.summary-card.is-live:hover .stream-overlay,
.summary-card.is-live:focus-visible .stream-overlay {
  opacity: 1;
  transform: scale(1);
}

.results-panel {
  padding: 14px;
}

.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--lime);
  font: 800 12px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.results-head h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.icon-btn {
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font: 900 18px var(--mono);
}

.status-line {
  min-height: 22px;
  margin: 0 0 12px;
  color: var(--muted);
  font: 700 12px var(--mono);
}

.status-line[data-tone="error"] {
  color: #ffd0d6;
}

.grid {
  display: grid;
  gap: 10px;
}

.people-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

.badge-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
}

.lookup-card {
  position: relative;
  min-height: 112px;
  padding: 11px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(25, 23, 34, 0.84);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.prelive-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font: 900 11px var(--mono);
  box-shadow: 0 0 24px rgba(255, 92, 112, 0.55);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.logs-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(94, 231, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 7, 13, 0.72);
  color: #dff8ff;
  font: 900 11px var(--mono);
  opacity: 0.82;
  transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.logs-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(94, 231, 255, 0.72);
  background: rgba(94, 231, 255, 0.14);
}

.lookup-card.is-known-live .prelive-badge {
  opacity: 1;
  transform: translateY(0);
}

.active-card {
  overflow: visible;
  min-height: 124px;
}

.active-card:hover {
  z-index: 30;
}

.lookup-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(215, 255, 57, 0.16) 30%, rgba(94, 231, 255, 0.2) 54%, rgba(255, 78, 205, 0.14) 78%, transparent 100%);
  transition: opacity 180ms ease;
}

.lookup-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hot);
  box-shadow: 0 18px 44px rgba(145, 70, 255, 0.22);
}

.lookup-card:hover::before {
  opacity: 1;
}

.image-box {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(145, 70, 255, 0.48), transparent 38%),
    rgba(10, 8, 16, 0.92);
  color: var(--text);
  font: 900 22px var(--mono);
}

.image-box::before {
  content: attr(data-initial);
}

.image-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #120e18;
}

.badge-img img {
  object-fit: contain;
  padding: 8px;
}

.card-main {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.card-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.chip {
  max-width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(214, 196, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 7, 13, 0.5);
  color: #ddd5ee;
  font: 800 12px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip.hot {
  color: #ffd7dc;
  border-color: rgba(255, 92, 112, 0.36);
  background: rgba(255, 92, 112, 0.12);
}

.chip.good {
  color: #d9ffe4;
  border-color: rgba(109, 255, 154, 0.38);
  background: rgba(109, 255, 154, 0.1);
}

.user-overlay,
.badge-reveal {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lookup-card.has-user-hover:hover .user-overlay,
.lookup-card.has-user-hover:focus-visible .user-overlay,
.lookup-card:hover .badge-reveal,
.lookup-card:focus-visible .badge-reveal {
  opacity: 1;
  transform: scale(1);
}

.lookup-card.has-user-hover:hover .user-overlay,
.lookup-card.has-user-hover:focus-visible .user-overlay {
  pointer-events: auto;
}

.user-overlay {
  background:
    linear-gradient(180deg, rgba(10, 7, 15, 0.08), rgba(10, 7, 15, 0.9) 68%),
    rgba(10, 7, 15, 0.86);
}

.person-card.is-live {
  overflow: visible;
}

.person-card.has-user-hover {
  overflow: visible;
}

.person-card.has-user-hover:hover {
  z-index: 19;
}

.person-card.has-user-hover .user-overlay {
  inset: -72px -52px;
  min-height: 310px;
  max-height: 390px;
  border: 1px solid rgba(214, 196, 255, 0.24);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(145, 70, 255, 0.26);
}

.person-card.is-live:hover {
  z-index: 20;
}

.person-card.is-live .user-overlay {
  inset: -84px -58px;
  min-height: 330px;
  max-height: 410px;
  border: 1px solid rgba(255, 92, 112, 0.34);
}

.stream-thumb {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-copy {
  align-self: end;
  position: relative;
  padding: 16px 16px 58px;
  display: grid;
  gap: 6px;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.85),
    0 -1px 0 rgba(0, 0, 0, 0.75),
    1px 0 0 rgba(0, 0, 0, 0.8),
    -1px 0 0 rgba(0, 0, 0, 0.8),
    0 8px 24px rgba(0, 0, 0, 0.92);
}

.stream-copy b {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.stream-copy span:not(.live-pill) {
  display: -webkit-box;
  max-width: 100%;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.88);
}

.stream-copy span:nth-of-type(3),
.stream-copy span:nth-of-type(4) {
  -webkit-line-clamp: 1;
}

.user-info-copy {
  position: relative;
  min-height: 100%;
  padding: 18px 18px 54px;
  display: grid;
  align-content: start;
  gap: 11px;
  background:
    radial-gradient(circle at 18% 18%, rgba(145, 70, 255, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(12, 9, 19, 0.96), rgba(24, 17, 38, 0.96));
}

.user-info-copy b {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info-copy > span,
.viewer-description {
  color: #e7dff5;
  font: 800 13px var(--mono);
  line-height: 1.35;
}

.viewer-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.viewer-actions-fixed {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
}

.stream-copy .viewer-actions {
  margin-top: 0;
}

.viewer-description {
  margin: 0;
  max-height: 76px;
  padding-right: 6px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 70, 255, 0.68) rgba(255, 255, 255, 0.08);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.info-grid span {
  min-width: 0;
  padding: 9px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(214, 196, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.info-grid em,
.active-reveal em {
  color: var(--lime);
  font-style: normal;
}

.info-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  font: 900 14px var(--mono);
}

.stream-copy span:not(.live-pill),
.overlay-empty {
  color: #e7dff5;
  font: 800 12px var(--mono);
}

.overlay-empty {
  place-self: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(8, 7, 13, 0.64);
  color: var(--muted);
}

.live-pill {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font: 900 11px var(--mono);
  box-shadow: 0 0 24px rgba(255, 92, 112, 0.55);
}

.hard-hover .card-title {
  text-transform: none;
}

.badge-reveal {
  align-content: end;
  gap: 6px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(9, 7, 14, 0.86), rgba(32, 15, 58, 0.94)),
    linear-gradient(90deg, rgba(215, 255, 57, 0.2), transparent);
  border-left: 4px solid var(--lime);
}

.badge-reveal b {
  color: white;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 3px 3px 0 rgba(145, 70, 255, 0.5);
}

.badge-reveal span {
  color: #e7dff5;
  font: 800 12px var(--mono);
  line-height: 1.35;
}

.active-reveal {
  inset: -42px -18px auto -18px;
  min-height: 300px;
  max-height: 390px;
  padding: 18px;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(145, 70, 255, 0.58);
  border-left: 5px solid var(--purple);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 10%, rgba(145, 70, 255, 0.32), transparent 42%),
    linear-gradient(135deg, rgba(13, 9, 22, 0.98), rgba(26, 18, 42, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(215, 255, 57, 0.08);
  overflow: auto;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 70, 255, 0.68) rgba(255, 255, 255, 0.08);
}

.active-reveal b {
  font-size: 24px;
  line-height: 1.08;
  display: block;
  overflow: visible;
  text-shadow: 2px 2px 0 rgba(145, 70, 255, 0.44);
}

.active-reveal p {
  margin: 0;
  color: #eee8fb;
  font: 800 13px var(--mono);
  line-height: 1.45;
}

.active-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.active-info-grid span {
  min-width: 0;
  padding: 9px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(214, 196, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.active-info-grid em {
  color: var(--lime);
  font: 900 11px var(--mono);
  font-style: normal;
  text-transform: uppercase;
}

.active-info-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  font: 900 13px var(--mono);
}

.active-card.is-earned {
  border-color: rgba(109, 255, 154, 0.34);
  background:
    linear-gradient(135deg, rgba(109, 255, 154, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(25, 23, 34, 0.84);
}

.skeleton-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(25, 23, 34, 0.7);
  background-size: 220% 100%;
  animation: shimmer 1.15s linear infinite;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.sentinel {
  height: 1px;
}

.channel-assets {
  display: grid;
  gap: 16px;
}

.asset-section {
  display: grid;
  gap: 10px;
}

.asset-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.asset-section-head span {
  color: var(--lime);
  font: 900 12px var(--mono);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 9px;
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-tab,
.asset-more {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font: 900 12px var(--mono);
}

.source-tab {
  padding: 0 12px;
}

.source-tab span {
  color: var(--lime);
}

.source-tab.is-active {
  color: white;
  border-color: rgba(145, 70, 255, 0.7);
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.62), rgba(119, 44, 232, 0.46));
}

.asset-more {
  width: 100%;
}

.asset-card {
  min-height: 86px;
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(25, 23, 34, 0.84);
}

button.asset-card {
  width: 100%;
  color: var(--text);
  text-align: left;
}

.asset-card:hover {
  border-color: var(--line-hot);
  transform: translateY(-1px);
}

.asset-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.asset-card span,
.asset-card p {
  margin: 0;
  color: var(--muted);
  font: 800 12px var(--mono);
  line-height: 1.35;
}

.media-asset {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
}

.media-asset .image-box,
.reward-card .image-box {
  grid-row: span 2;
  width: 52px;
  height: 52px;
}

.emote-card .image-box {
  grid-row: span 3;
}

.emote-card .motion-chip {
  grid-column: 2;
}

.asset-img img {
  object-fit: contain;
  padding: 5px;
}

.motion-chip {
  width: max-content;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font: 900 10px var(--mono);
  font-style: normal;
  text-transform: uppercase;
}

.motion-chip.is-animated {
  border-color: rgba(145, 70, 255, 0.55);
  color: white;
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.42), rgba(109, 255, 154, 0.14));
}

.integration-card {
  min-height: 74px;
  border-color: rgba(255, 92, 112, 0.22);
}

.integration-card.is-on {
  border-color: rgba(109, 255, 154, 0.28);
  background:
    linear-gradient(135deg, rgba(109, 255, 154, 0.08), rgba(145, 70, 255, 0.04)),
    rgba(25, 23, 34, 0.84);
}

.emote-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.emote-modal-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(5, 4, 8, 0.68);
  backdrop-filter: blur(8px);
}

.emote-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 18px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-hot);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 12%, rgba(145, 70, 255, 0.28), transparent 42%),
    rgba(16, 12, 26, 0.97);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

.modal-emote-img {
  width: 112px;
  height: 112px;
}

.modal-emote-img img {
  object-fit: contain;
  padding: 8px;
}

.emote-modal-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.05;
}

.emote-modal-card p {
  margin: 4px 0;
  color: var(--muted);
  font: 800 13px var(--mono);
}

.reward-card {
  position: relative;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 104px;
  border-left: 4px solid var(--reward, var(--purple));
}

.reward-card p {
  grid-column: 1 / -1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (max-width: 1180px) {
  .shell {
    width: min(1120px, calc(100vw - 12px));
  }

  .topbar {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .tabs {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

  .summary-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .summary-facts {
    grid-column: 1 / -1;
    max-width: none;
    justify-content: flex-start;
  }

  .summary-card.is-live {
    overflow: hidden;
  }

  .summary-card .stream-overlay {
    inset: 0;
    min-height: 100%;
    border-radius: 8px;
  }

  .person-card.has-user-hover .user-overlay,
  .person-card.is-live .user-overlay {
    inset: -18px -10px;
    max-width: calc(100vw - 28px);
    min-height: 250px;
    max-height: min(390px, 78vh);
  }

  .active-reveal {
    inset: -18px -8px auto -8px;
    max-height: min(390px, 78vh);
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 56px;
    padding: 7px;
  }

  .home-stage {
    min-height: 100svh;
  }

  .home-art {
    right: 50%;
    width: min(62vw, 340px);
    height: min(58vh, 450px);
    transform: translate(50%, -68%);
    opacity: 0.68;
  }

  .home-search {
    left: 14px;
    top: auto;
    bottom: 78px;
    width: calc(100% - 28px);
    grid-template-columns: auto minmax(0, 1fr);
    transform: none;
  }

  .home-search .search-btn {
    grid-column: 1 / -1;
  }

  .home-small-links {
    left: 14px;
    top: auto;
    bottom: 34px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search input,
  .search-btn,
  .tab,
  .icon-btn {
    min-height: 40px;
  }

  .search-btn {
    padding: 0 13px;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .tab {
    padding: 0 8px;
    font-size: 12px;
  }

  .summary-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .summary-facts {
    grid-column: 1 / -1;
    max-width: none;
    justify-content: flex-start;
  }

  .person-card.has-user-hover .user-overlay,
  .person-card.is-live .user-overlay {
    inset: 0;
    min-height: 100%;
    max-height: none;
    border-radius: 8px;
  }

  .person-card.has-user-hover,
  .person-card.is-live,
  .active-card {
    overflow: hidden;
  }

  .active-reveal {
    inset: 0;
    min-height: 100%;
    max-height: none;
    border-radius: 8px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100vw - 10px);
    padding: 5px 0 24px;
    gap: 8px;
  }

  .topbar,
  .tabs,
  .summary-panel,
  .results-panel {
    border-radius: 7px;
  }

  .search {
    grid-template-columns: 1fr;
  }

  .results-panel {
    padding: 9px;
  }

  .results-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .results-head h1 {
    font-size: clamp(26px, 10vw, 38px);
  }

  .icon-btn {
    width: 44px;
    justify-self: end;
    align-self: flex-end;
  }

  .people-grid,
  .badge-grid {
    grid-template-columns: 1fr;
  }

  .lookup-card {
    min-height: 94px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .image-box {
    width: 56px;
    height: 56px;
  }

  .card-title {
    font-size: 15px;
  }

  .chip {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .summary-panel {
    padding: 8px;
  }

  .summary-card {
    min-height: 84px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .summary-main strong {
    font-size: clamp(21px, 8vw, 30px);
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .asset-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-tab {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (hover: none) {
  .user-overlay,
  .summary-card .stream-overlay,
  .badge-reveal {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
