/* Boogerbots Clips — TikTok-style vertical reel for kids.
   Mobile-first. Big tappable targets, kid-friendly colors,
   no text-overload. Plays cleanly at 320px wide and up. */

:root {
  --bb-bg: #0c1226;
  --bb-bg-2: #161e3a;
  --bb-card: #1d2647;
  --bb-text: #f7f5ee;
  --bb-muted: #b6becf;
  --bb-more: #ffce3a;
  --bb-more-ink: #2a1e00;
  --bb-less: #4ad17d;
  --bb-less-ink: #07301a;
  --bb-save: #ff7bd1;
  --bb-save-ink: #3a0623;
  --bb-line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bb-bg); color: var(--bb-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }

.clips-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(to bottom, var(--bb-bg) 60%, rgba(12, 18, 38, 0.85));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bb-line);
  padding-top: max(14px, env(safe-area-inset-top));
}
.topbar-link {
  color: var(--bb-text); text-decoration: none;
  font-weight: 600; font-size: 16px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.topbar-link:active { background: rgba(255, 255, 255, 0.14); }
.clips-title { flex: 1; margin: 0; text-align: center;
  font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.saves-pill {
  background: var(--bb-save); color: var(--bb-save-ink);
  border: 0; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.18);
}
.saves-pill:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,0.18); }

#reel {
  display: flex; flex-direction: column; gap: 24px;
  padding: 18px 14px 80px;
  max-width: 720px; margin: 0 auto;
}

.clip {
  background: var(--bb-card);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.32), 0 1px 0 var(--bb-line) inset;
}
.clip:focus { outline: 3px solid var(--bb-more); outline-offset: 4px; }
.video-wrap {
  position: relative; background: #000;
  aspect-ratio: 16/9;
}
.video-wrap video {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.mute-toggle {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,0.55); color: white;
  font-size: 20px; cursor: pointer;
}

.clip-meta { padding: 14px 18px 6px; }
.clip-meta h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.2; font-weight: 700; }
.clip-meta .clip-tags { margin: 0; color: var(--bb-muted); font-size: 13px; }

.vote-buttons {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; padding: 12px 14px 18px;
}
.vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 14px 6px; min-height: 88px;
  border: 0; border-radius: 18px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 13px; line-height: 1.05;
  box-shadow: 0 4px 0 rgba(0,0,0,0.22);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}
.vote:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.22); }
.vote .emoji { font-size: 28px; line-height: 1; }
.vote .label { text-align: center; }
.vote.more { background: var(--bb-more); color: var(--bb-more-ink); }
.vote.less { background: var(--bb-less); color: var(--bb-less-ink); }
.vote.save { background: var(--bb-save); color: var(--bb-save-ink); }
.vote.is-picked { outline: 4px solid white; outline-offset: 2px; }
.vote.is-picked::after { content: " ✓"; }
.vote[disabled] { opacity: 0.6; cursor: default; }

#empty-state {
  text-align: center; padding: 60px 24px;
  color: var(--bb-muted);
}
#empty-state h2 { color: var(--bb-text); margin-bottom: 6px; }
#empty-state a { color: var(--bb-more); }

@media (min-width: 720px) {
  .clip-meta h2 { font-size: 22px; }
  .vote { min-height: 96px; font-size: 14px; }
}
