@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --bg: #0f1012;
  --ink: #f9f3e6;
  --accent: #ff5d2a;
  --muted: rgba(249, 243, 230, 0.7);
  --panel: rgba(20, 22, 26, 0.92);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #2a1f1b, #0f1012 50%, #0b0b0f 100%);
  height: 100vh;
  overflow: hidden;
}

#app {
  position: relative;
  height: 100vh;
}

.hud {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hud .brand {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 18px;
  text-transform: uppercase;
  pointer-events: auto;
}

.hud .gear {
  border: 1px solid rgba(249, 243, 230, 0.4);
  background: rgba(15, 16, 18, 0.5);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  pointer-events: auto;
}

.feed {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.slide {
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1012;
}

.video-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #08080a;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px;
  pointer-events: none;
}

.meta {
  max-width: 70%;
  pointer-events: auto;
}

.meta .title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.meta .category {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.action-btn {
  background: rgba(15, 16, 18, 0.5);
  border: 1px solid rgba(249, 243, 230, 0.4);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, 92vw);
  max-height: 80vh;
  background: var(--panel);
  border: 1px solid rgba(249, 243, 230, 0.2);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 16px;
  z-index: 30;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel.hidden { display: none; }

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title { font-weight: 600; }

.panel-sub { font-size: 12px; color: var(--muted); }

.comment-list {
  overflow-y: auto;
  max-height: 40vh;
  padding-right: 4px;
}

.comment {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(249, 243, 230, 0.1);
  padding-bottom: 8px;
}

.comment .name {
  font-weight: 600;
  font-size: 13px;
}

.comment .body {
  font-size: 14px;
  color: var(--muted);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(249, 243, 230, 0.2);
  background: rgba(10, 10, 14, 0.6);
  color: var(--ink);
}

.comment-form button,
.ghost {
  border-radius: 10px;
  border: 1px solid rgba(249, 243, 230, 0.4);
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}

.honeypot { display: none; }

.analytics-body {
  font-size: 14px;
  color: var(--muted);
  max-height: 40vh;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .overlay { padding: 18px; }
  .meta { max-width: 65%; }
  .panel { right: 8px; left: 8px; width: auto; }
}
