:root {
  --bg: #000000;
  --bg-soft: #07090d;
  --surface: rgba(14, 18, 26, 0.68);
  --surface-strong: rgba(12, 16, 24, 0.92);
  --line: rgba(125, 211, 252, 0.14);
  --line-strong: rgba(125, 211, 252, 0.28);
  --text: #f3f6fb;
  --muted: #8b97a8;
  --faint: #5c6778;
  --accent: #5ec8f8;
  --accent-2: #9ae6ff;
  --accent-dim: rgba(94, 200, 248, 0.14);
  --glow: rgba(94, 200, 248, 0.38);
  --danger: #fb7185;
  --ok: #34d399;
  --warn: #fbbf24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Plus Jakarta Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  --topbar: 72px;
  --max: 1240px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #eef3f8;
  --bg-soft: #f8fafc;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(2, 132, 199, 0.28);
  --text: #0b1220;
  --muted: #5b6677;
  --faint: #8a94a3;
  --accent: #0284c7;
  --accent-2: #0369a1;
  --accent-dim: rgba(2, 132, 199, 0.1);
  --glow: rgba(2, 132, 199, 0.22);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar);
  display: flex;
  align-items: center;
  backdrop-filter: blur(22px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img, .brand svg { width: 34px; height: 34px; border-radius: 9px; }
.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 17px;
}
.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.search {
  flex: 1;
  position: relative;
  min-width: 0;
}

.search input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 42px 0 42px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--bg-soft);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.btn:active { transform: translateY(1px); }

.btn-accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #041018;
  border-color: transparent;
  font-weight: 700;
}

[data-theme="light"] .btn-accent { color: #fff; }

.btn-ghost { background: transparent; }
.btn-danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger); }
.btn-icon { width: 40px; padding: 0; }

.icon-svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; flex: 1; padding-bottom: 80px; }

.hero {
  padding: 48px 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 span { color: var(--accent); }
.hero .lead { margin: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 36em; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat {
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.stat b {
  display: block;
  font-size: 22px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-height: 1.25em;
}

.stat span { font-size: 12px; color: var(--muted); }

.spotlight {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
}

.spotlight .cover {
  height: 150px;
  background: #111 center/cover no-repeat;
  position: relative;
}

.spotlight .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-soft), transparent 60%);
}

.spotlight .body { padding: 0 18px 16px; margin-top: -28px; position: relative; }
.spotlight .meta { display: flex; align-items: flex-end; gap: 12px; }
.spotlight .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--bg-soft);
  object-fit: cover; background: #123;
}
.spotlight .kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.spotlight h2 { margin: 2px 0 0; font-size: 20px; }
.spotlight .handle { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.spotlight p { margin: 10px 0 14px; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight .actions { display: flex; gap: 8px; }

.toolbar {
  position: sticky;
  top: var(--topbar);
  z-index: 20;
  margin: 8px 0 18px;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
}

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

.chip, .select, .view-switch button {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.chip.active, .view-switch button.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.select {
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.view-switch { display: flex; gap: 4px; }
.view-switch button { width: 34px; padding: 0; display: grid; place-items: center; }

.gallery {
  display: grid;
  gap: 18px;
}

.gallery.masonry {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.gallery.masonry .col { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.gallery.compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.gallery.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: rise .45s ease both;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 1px var(--accent-dim), 0 0 30px var(--glow);
}

.card .cover {
  height: 128px;
  background: #0c1218 center/cover no-repeat;
}

.gallery.compact .card .cover { height: 84px; }
.gallery.compact .card .bio { display: none; }
.gallery.compact .card .body { padding: 0 10px 10px; }
.gallery.compact .avatar { width: 42px; height: 42px; }

.card .body { padding: 0 14px 14px; }
.card .who { display: flex; gap: 10px; align-items: flex-end; margin-top: -22px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--bg-soft); background: #15202b;
}
.card h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.card h3 .name, #spotName .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card h3 .badge, .card h3 .pill, .card h3 .lib-pill { flex-shrink: 0; }
#spotName { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card .handle { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.card .followers { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--accent); flex-shrink: 0; }
.card .bio {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery.list .card { display: grid; grid-template-columns: 160px 1fr; align-items: stretch; }
.gallery.list .card .cover { height: 100%; min-height: 96px; }
.gallery.list .card .who { margin-top: 0; align-items: center; padding-top: 12px; }
.gallery.list .card .bio { -webkit-line-clamp: 2; }

.badge {
  display: inline-flex;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  align-items: center;
  justify-content: center;
}
.badge svg { width: 9px; height: 9px; }

.pill {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  border-radius: 999px;
  padding: 0 6px;
}

.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 24px;
}

.empty h3 { margin: 0 0 8px; color: var(--text); }
.empty p { margin: 0 0 16px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  justify-content: space-between;
}

.kbd-hint kbd {
  font-family: var(--font-mono);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
  margin: 0 2px;
  font-size: 11px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
}
.back-top.show { display: grid; }

/* Drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(430px, 100%);
  background: var(--surface-strong);
  border-left: 1px solid var(--line);
  z-index: 60;
  transform: translateX(110%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer.open { transform: translateX(0); }

.drawer .cover { height: 160px; background: #0b1218 center/cover no-repeat; flex-shrink: 0; }
.drawer-body { padding: 0 22px 32px; overflow: auto; }
.drawer .who { display: flex; gap: 14px; margin-top: -36px; align-items: flex-end; }
.drawer .avatar { width: 84px; height: 84px; border-width: 3px; }
.drawer h2 { margin: 14px 0 0; }
.drawer .handle { color: var(--muted); font-family: var(--font-mono); }
.drawer .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.fact {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
}
.fact b { display: block; font-family: var(--font-mono); font-size: 14px; }
.fact span { font-size: 11px; color: var(--muted); }
.drawer .bio { white-space: pre-wrap; color: var(--text); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.history { list-style: none; padding: 0; margin: 8px 0 0; }
.history li { font-size: 12px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.history time { font-family: var(--font-mono); color: var(--faint); margin-right: 8px; }
.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* Roulette */
.roulette {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}
.roulette.open { display: grid; }

.roulette-stage {
  width: min(420px, calc(100% - 32px));
  perspective: 1200px;
}

.roulette-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 40px var(--glow);
  transform-style: preserve-3d;
}

.roulette-card.shuffling {
  animation: shuffle 0.7s ease-in-out;
}

.roulette-card .cover { height: 180px; background: #111 center/cover no-repeat; }
.roulette-card .body { padding: 0 22px 22px; }
.roulette-card .who { display: flex; gap: 12px; margin-top: -32px; align-items: flex-end; }
.roulette-card .avatar { width: 72px; height: 72px; }
.roulette-card h2 { margin: 12px 0 0; }
.roulette-card .actions { display: flex; gap: 8px; margin-top: 16px; }
.roulette-hint { text-align: center; margin-top: 16px; color: #cbd5e1; font-size: 13px; }

@keyframes shuffle {
  0% { transform: rotateY(0) scale(1); filter: blur(0); }
  25% { transform: rotateY(90deg) scale(.92) translateX(-20px); filter: blur(4px); }
  50% { transform: rotateY(180deg) scale(.9); filter: blur(8px); }
  75% { transform: rotateY(270deg) scale(.94) translateX(20px); filter: blur(4px); }
  100% { transform: rotateY(360deg) scale(1); filter: blur(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Admin */
.admin-shell { width: min(1120px, calc(100% - 32px)); margin: 28px auto 80px; }
.login-card {
  width: min(420px, 100%);
  margin: 12vh auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 0 0 6px; font-size: 24px; }
.login-card p { margin: 0 0 20px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 10px 12px;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--accent-dim); }
.field textarea { min-height: 88px; resize: vertical; }
.err { color: var(--danger); font-size: 13px; min-height: 1.2em; }

.tabs { display: flex; gap: 6px; margin: 8px 0 18px; flex-wrap: wrap; }
.tab {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.tab.active { color: var(--text); background: var(--accent-dim); border-color: var(--line-strong); }

.panel { display: none; }
.panel.active { display: block; }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(12px);
  margin-bottom: 16px;
}

.box h2 { margin: 0 0 12px; font-size: 16px; }
.help { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

.log-box {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  max-height: 240px;
  overflow: auto;
  color: var(--muted);
  white-space: pre-wrap;
  border: 1px solid var(--line);
}

.progress {
  height: 8px;
  background: var(--accent-dim);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s;
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }

.account-card { display: flex; gap: 12px; align-items: center; }
.account-card img { width: 48px; height: 48px; border-radius: 50%; }

.metric b { display: block; font-size: 22px; font-family: var(--font-mono); color: var(--accent-2); }
.metric span { font-size: 12px; color: var(--muted); }

.chart-box { height: 240px; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.danger { color: var(--danger); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery.list .card { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .btn-label { display: none; }
  .search kbd { display: none; }
  .topbar-inner { width: calc(100% - 16px); gap: 8px; }
  main { width: calc(100% - 16px); }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero .lead { font-size: 14px; }
  .stat { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
  .stat b { font-size: 18px; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .search { min-width: 0; flex: 1 1 100%; }
  .footer-inner { gap: 12px; font-size: 12px; }
  .kbd-hint { display: none; }
}


.lib-nav {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.lib-nav a {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  white-space: nowrap;
}
.lib-nav a.active {
  color: var(--text);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.lib-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--accent);
  margin-left: 6px;
  font-weight: 600;
}

.discover-list { display: flex; flex-direction: column; gap: 10px; }
.discover-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--bg-soft);
}
.discover-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.discover-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .topbar { height: auto; min-height: var(--topbar); }
  .topbar-inner { flex-wrap: wrap; padding: 8px 0; }
  .lib-nav { order: 5; width: 100%; }
  .lib-nav a { flex: 1; }
}


/* 随便看看 */
body[data-library="browse"] .gallery.video-grid,
.gallery.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  column-count: unset;
}
.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.video-card .video-thumb {
  position: relative;
  height: 0;
  padding-bottom: 132%;
  background: #0b1218 center/cover no-repeat;
}
.video-card .play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 16px;
  padding-left: 3px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.video-card:hover .play-badge {
  background: color-mix(in srgb, var(--accent) 80%, #041018);
  color: #041018;
  border-color: transparent;
}
.video-card .duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}
.video-card .who { margin-top: -22px; }
.video-card .bio { -webkit-line-clamp: 2; }
body[data-library="browse"] #spotlight .cover {
  min-height: 210px;
}
body[data-library="browse"] #spotOpen::after { content: none; }
@media (max-width: 640px) {
  .gallery.video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-card .body { padding: 0 10px 10px; }
}


.browse-loading {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 0 32px;
  letter-spacing: 0.04em;
}


.drawer-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  background: #000;
  overflow: hidden;
}
.drawer-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
body[data-library="browse"] #drawerCover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}
body[data-library="browse"] #drawerCover.has-player {
  background-size: 0;
}
