:root {
  --bg: #f6f6f8;
  --fg: #16161d;
  --muted: #6b6b78;
  --card: #fff;
  --line: #e4e4ea;
  --accent: #f72585;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e13;
    --fg: #ececf2;
    --muted: #8d8d9b;
    --card: #17171f;
    --line: #26262f;
  }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 8px;
}
.lead {
  margin: 0 0 4px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}
.sub {
  margin: 0 0 22px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000 center / cover no-repeat;
}
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
}
.meta { padding: 10px 12px 12px; }
.meta h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.meta p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.sentinel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 34px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.spin {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .foot { flex-direction: column; }
}
