:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --soft-panel: #f8fafc;
  --soft-panel-border: #e2e8f0;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --link: #1e40af;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --ring: #cbd5e1;
  --live: #dc2626;
  --yt: #e11d48;
  --fb: #1877f2;
  --female: #db2777;
  --male: #2563eb;
  --hib: #d97706;
  --dead: #dc2626;
  --grad: #5b21b6;
  --pill-active-bg: #0f172a;
  --pill-active-ink: #ffffff;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f141e;
  --surface: #151c2a;
  --surface-alt: #1d2638;
  --soft-panel: #182030;
  --soft-panel-border: #232d42;
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --link: #60a5fa;
  --border: #243045;
  --border-2: #33415c;
  --ring: #29354d;
  --live: #ef4444;
  --yt: #fb3b58;
  --fb: #60a5fa;
  --female: #f472b6;
  --male: #60a5fa;
  --hib: #fbbf24;
  --dead: #f87171;
  --grad: #a78bfa;
  --pill-active-bg: #f1f5f9;
  --pill-active-ink: #0f172a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HoloList-style Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 54px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.90rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.32);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--link);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.search-box {
  position: relative;
  width: 150px;
}

.search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 34px;
  padding: 0 26px 0 30px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.81rem;
  outline: none;
}

.search-box input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-box input:focus {
  border-color: var(--link);
  background: var(--surface);
}

.clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.nav-link:hover {
  border-color: var(--link);
  color: var(--link);
}

.nav-cnt {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.nav-cnt--hib { color: var(--hib); }
.nav-cnt--grad { color: var(--grad); }
.nav-cnt--dead { color: var(--dead); }

.nav-right {
  flex-shrink: 0;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-btn:hover {
  border-color: var(--link);
}

.theme-btn svg {
  width: 14px;
  height: 14px;
}

.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; color: #fbbf24; }
[data-theme="dark"] .icon-moon { display: none; }

/* Slim Sub-Filter Strip */
.filter-bar {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 7px 0;
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pills,
.filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.pill:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.pill.is-active,
.pill[aria-pressed="true"] {
  background: var(--pill-active-bg);
  border-color: var(--pill-active-bg);
  color: var(--pill-active-ink);
}

.pill--female.is-active {
  background: #db2777;
  border-color: #db2777;
  color: #ffffff;
}

.pill--male.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.pill--live-filter[aria-pressed="true"] {
  background: var(--live);
  border-color: var(--live);
  color: #ffffff;
}

.pill--hib.is-active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.pill--grad.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.pill--dead.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.pill--live-filter[aria-pressed="true"] .dot-live {
  background: #ffffff;
}

.pill--refresh svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.pill--refresh.is-syncing {
  border-color: var(--link);
  color: var(--link);
}

.pill--refresh.is-syncing svg {
  animation: vt-spin 0.8s linear infinite;
}

.pill--refresh.is-synced {
  border-color: rgba(22, 163, 74, 0.45);
}

@keyframes vt-spin {
  to { transform: rotate(360deg); }
}

.sort-select {
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 26px;
  cursor: pointer;
}

/* Main Sections */
.main-wrap {
  padding-top: 26px;
  padding-bottom: 52px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

/* Agency Info Banner */
.agency-banner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: -14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--agency-accent, var(--accent-blue));
  box-shadow: var(--shadow-card);
}

.agency-banner[hidden] {
  display: none;
}

[data-theme="dark"] .agency-banner {
  background: linear-gradient(135deg, rgba(22, 32, 50, 0.94), rgba(15, 23, 42, 0.96));
  border-color: var(--border-subtle);
  border-left: 5px solid var(--agency-accent, var(--accent-blue));
}

.agency-logo-wrap {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--agency-accent, var(--accent-blue)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--agency-accent, var(--accent-blue)) 35%, transparent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.agency-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agency-crest {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--agency-accent, #2563eb), color-mix(in srgb, var(--agency-accent, #2563eb) 60%, #0f172a));
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.agency-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.agency-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.agency-reset-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft, rgba(148, 163, 184, 0.12));
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.agency-reset-btn:hover {
  background: var(--agency-accent, var(--accent-blue));
  color: #fff;
  border-color: transparent;
}

.agency-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agency-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px 10px;
}

.agency-bio {
  margin: 2px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.agency-history {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
  opacity: 0.92;
}

.agency-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.agency-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-blue);
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.agency-ext-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}

.agency-ext-link:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .agency-banner {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }
  .agency-logo-wrap {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
}

.holo-section {
  scroll-margin-top: 108px;
}

.sec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.sec-row h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  display: inline;
  margin-right: 10px;
}

.sec-note {
  font-size: 0.79rem;
  color: var(--ink-3);
}

.sec-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--link);
  white-space: nowrap;
}

/* HoloList Circular Avatar Grid (Clean, Airy, Borderless) */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 18px;
}

.holo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 14px 10px 10px;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(var(--vt1, 99, 132, 244), 0.38) 0%,
      rgba(var(--vt2, 192, 132, 252), 0.30) 100%
    ),
    #ffffff;
  border: 1px solid rgba(var(--vt1, 99, 132, 244), 0.48);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

[data-theme="dark"] .holo-item {
  background: linear-gradient(
    180deg,
    rgba(var(--vt1, 99, 132, 244), 0.30) 0%,
    rgba(var(--vt2, 192, 132, 252), 0.23) 100%
  );
  border-color: rgba(var(--vt1, 99, 132, 244), 0.34);
  box-shadow: none;
}

.holo-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--vt1, 99, 132, 244), 0.58);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

[data-theme="dark"] .holo-item:hover {
  box-shadow: 0 8px 22px rgba(var(--vt1, 99, 132, 244), 0.18);
}

.holo-circle-wrap {
  position: relative;
  width: 106px;
  height: 106px;
  margin-bottom: 10px;
  flex-shrink: 0;
  z-index: 1;
}

.holo-circle-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(
    170deg,
    rgba(var(--hair, 99, 132, 244), 0.36),
    rgba(var(--outfit, 192, 132, 252), 0.32)
  );
  filter: blur(6px);
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

[data-theme="dark"] .holo-circle-wrap::before {
  inset: -8px;
  background: linear-gradient(
    170deg,
    rgba(var(--hair, 99, 132, 244), 0.48),
    rgba(var(--outfit, 192, 132, 252), 0.44)
  );
  filter: blur(11px);
  opacity: 0.65;
}

.holo-item:hover .holo-circle-wrap::before,
.en-item:hover .holo-circle-wrap::before {
  opacity: 0.42;
  transform: scale(1.04);
}

[data-theme="dark"] .holo-item:hover .holo-circle-wrap::before,
[data-theme="dark"] .en-item:hover .holo-circle-wrap::before {
  opacity: 0.92;
  transform: scale(1.06);
}

.holo-avatar-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(
    170deg,
    rgb(var(--hair, 96, 165, 250)) 0%,
    rgb(var(--outfit, 192, 132, 252)) 100%
  );
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

[data-theme="dark"] .holo-avatar-link {
  box-shadow: 0 3px 12px rgba(var(--hair, 99, 132, 244), 0.25);
}

.holo-item:hover .holo-avatar-link,
.en-item:hover .holo-avatar-link {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(var(--hair, 37, 99, 235), 0.36);
}

.holo-item.is-live .holo-avatar-link {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--live), 0 6px 18px rgba(220, 38, 38, 0.32);
}

.holo-item.is-dead .holo-avatar-link,
.holo-item.is-hib .holo-avatar-link,
.holo-item.is-grad .holo-avatar-link {
  opacity: 0.85;
}

.holo-item.is-dead .holo-img,
.holo-item.is-empty .holo-img {
  filter: grayscale(65%);
}

.holo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2.5px solid var(--bg);
}

.holo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--link);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Corner Gender Badge (like flag on HoloList) */
.corner-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  pointer-events: none;
}

.corner-badge svg {
  width: 11px;
  height: 11px;
}

.corner-badge--female { background: var(--female); }
.corner-badge--male { background: var(--male); }
.corner-badge--unknown { background: #64748b; }

/* Bottom LIVE Pill on Avatar (like HoloList Live Now) */
.live-pill {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: var(--live);
  color: #ffffff;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 4px;
  border: 2px solid var(--bg);
  white-space: nowrap;
  pointer-events: none;
}

.holo-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.holo-name:hover {
  text-decoration: underline;
}

.holo-agency {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.holo-agency--group {
  color: var(--grad);
}

.holo-sub {
  font-size: 0.71rem;
  color: var(--ink-3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}

.holo-meta-box {
  width: 100%;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(var(--vt1, 99, 132, 244), 0.30);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.flag-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.42);
  cursor: help;
}

[data-theme="dark"] .flag-badge {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
}

[data-theme="dark"] .holo-meta-box {
  background: rgba(15, 20, 30, 0.52);
  border-color: rgba(var(--vt2, 192, 132, 252), 0.28);
  box-shadow: none;
}

.holo-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ico-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease;
}

.ico-link:hover {
  transform: scale(1.1);
}

.ico-link svg {
  width: 15px;
  height: 15px;
}

.ico-yt {
  color: var(--yt);
  background: rgba(225, 29, 72, 0.09);
}

.ico-fb {
  color: var(--fb);
  background: rgba(24, 119, 242, 0.1);
}

.holo-slogan {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--ink-3);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

/* Section 2: English-Title VTubers (HoloList Circle + Title Below) */
.en-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 18px;
}

.en-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px 12px;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(var(--vt1, 99, 132, 244), 0.38) 0%,
      rgba(var(--vt2, 192, 132, 252), 0.30) 100%
    ),
    #ffffff;
  border: 1px solid rgba(var(--vt1, 99, 132, 244), 0.48);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .en-item {
  background: linear-gradient(
    180deg,
    rgba(var(--vt1, 99, 132, 244), 0.30) 0%,
    rgba(var(--vt2, 192, 132, 252), 0.23) 100%
  );
  border-color: rgba(var(--vt1, 99, 132, 244), 0.34);
  box-shadow: none;
}

.en-item .holo-circle-wrap {
  width: 88px;
  height: 88px;
}

.en-title-text {
  margin-top: 8px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}

/* Archive Status Tags */
.status-label {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.status-label--hib {
  background: rgba(217, 119, 6, 0.14);
  color: var(--hib);
}

.status-label--grad {
  background: rgba(124, 58, 237, 0.14);
  color: var(--grad);
}

.status-label--dead {
  background: rgba(220, 38, 38, 0.14);
  color: var(--dead);
}

.status-label--empty {
  background: var(--surface-alt);
  color: var(--ink-3);
}

.drawer-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface-alt);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.drawer-btn:hover {
  border-color: var(--link);
}

.archive-body {
  margin-top: 12px;
}

.subfilter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.empty-msg {
  text-align: center;
  padding: 24px;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  background: var(--surface-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.back-top {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}

.back-top:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .avatar-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .en-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .en-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .search-box {
    width: 150px;
  }
  .avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .holo-circle-wrap {
    width: 86px;
    height: 86px;
  }
  .en-grid {
    grid-template-columns: 1fr;
  }
}

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