:root {
  --violet: #6d28d9;
  --gold: #d4af37;
  --ink: #2a1850;
  --bg: #12081f;
  --elevated: #1c1030;
  --text: #f6f0ff;
  --muted: #cbbddc;
  --line: rgba(212, 175, 55, 0.55);
  font-family: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
a { color: var(--gold); }
a:hover { color: #f0d675; }

.site-header { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1a0d2e, var(--bg)); }
.header-inner { width: min(960px, 100% - 32px); margin: 0 auto; padding: 28px 0 22px; }
.kicker { margin: 0 0 6px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
.lede { margin: 0 0 20px; color: var(--muted); line-height: 1.5; max-width: 70ch; }
.metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.metrics div { flex: 1 1 140px; background: var(--elevated); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.metrics dt { margin: 0; color: var(--muted); font-size: 0.8rem; }
.metrics dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.metrics .detail { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.note { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }

main { width: min(960px, 100% - 32px); margin: 0 auto; padding: 20px 0 48px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 16px; }
.toolbar fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.toolbar legend, .search span, .select span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.8rem; }
.search { flex: 1 1 220px; }
.search input, .select select {
  width: 100%;
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button, .exports button, .pager button {
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}
.seg button[aria-pressed="true"], .pager button.primary, .exports button:hover, .seg button:hover, .pager button:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.seg button:disabled, .pager button:disabled { opacity: 0.45; cursor: not-allowed; }
.exports, .pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.list-caption { color: var(--muted); font-size: 0.85rem; margin: 0 0 10px; }

.reel-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 113px;
  max-height: 113px;
  overflow: hidden;
  background: var(--elevated);
  border: 1px solid var(--gold);
  border-radius: 8px;
  min-width: 0;
}
.thumb {
  position: relative;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 113px;
  max-height: 113px;
  background: var(--violet);
  overflow: hidden;
  color: var(--gold);
  flex-shrink: 0;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 113px;
  object-fit: cover;
  display: block;
}
.play {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(42, 24, 80, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3px 4px;
  background: rgba(42, 24, 80, 0.88);
  color: var(--gold);
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  word-break: break-word;
}
.body {
  flex: 1;
  min-width: 0;
  height: 113px;
  max-height: 113px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.caption {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text);
  white-space: pre-wrap;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.meta {
  flex: 1 1 80px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.75rem;
}
.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.01em;
}
.watch {
  flex-shrink: 0;
  display: inline-block;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.watch:hover { filter: brightness(1.08); color: var(--ink); }
.pager { margin-top: 16px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
