/* Cook Clips — vertical full-viewport snap feed (box MVP) */
body.bk-clips-on .top,
body.bk-clips-on .foot,
body.bk-clips-on #bk17-tabs,
body.bk-clips-on #proposal-stamp { display: none !important; }
body.bk-clips-on #view { padding: 0; margin: 0; max-width: none; }
body.bk-clips-on { overflow: hidden; background: #0a0a0b; }

.bkc-root { position: relative; height: 100dvh; height: 100vh; background: #0a0a0b; color: #fff; font-family: inherit; }
.bkc-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: calc(8px + env(safe-area-inset-top, 0)) 12px 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), transparent);
}
.bkc-topbar a, .bkc-topbar button {
  color: #fff; text-decoration: none; background: rgba(255,255,255,.12);
  border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.bkc-topbar a[aria-current="page"], .bkc-topbar button[aria-pressed="true"] { background: var(--ds-primary, #c81e35); }
.bkc-search {
  flex: 1; min-width: 120px; max-width: 220px;
  border-radius: 999px; border: 0; padding: 7px 12px; font: inherit; font-size: 13px;
  background: rgba(255,255,255,.16); color: #fff; outline: none;
}
.bkc-search::placeholder { color: rgba(255,255,255,.65); }
.bkc-chips {
  position: absolute; top: 52px; left: 0; right: 0; z-index: 19;
  display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 8px;
  scrollbar-width: none;
}
.bkc-chips::-webkit-scrollbar { display: none; }
.bkc-chip {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 5px 10px;
  background: rgba(0,0,0,.45); color: #fff; font: inherit; font-size: 12px; cursor: pointer;
  backdrop-filter: blur(6px);
}
.bkc-chip[aria-pressed="true"] { background: var(--ds-primary, #c81e35); }

.bkc-feed {
  height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
}
.bkc-card {
  position: relative; height: 100%; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: stretch; justify-content: center; overflow: hidden;
  background: #111;
}
.bkc-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: #1a1a1c;
}
.bkc-media.poster-ken {
  animation: bkc-ken 18s ease-in-out infinite alternate;
}
@keyframes bkc-ken {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.12) translateY(-2%); }
}
@media (prefers-reduced-motion: reduce) {
  .bkc-media.poster-ken { animation: none; }
}

.bkc-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 42%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}
.bkc-meta {
  position: absolute; left: 14px; right: 72px; bottom: calc(18px + env(safe-area-inset-bottom, 0));
  z-index: 5; display: flex; flex-direction: column; gap: 8px;
}
.bkc-creator { display: flex; align-items: center; gap: 10px; }
.bkc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #333; }
.bkc-handle { font-weight: 700; font-size: 15px; }
.bkc-demo {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 4px; background: #f5c542; color: #1a1200; vertical-align: middle;
}
.bkc-follow {
  margin-left: 8px; border: 1px solid #fff; background: transparent; color: #fff;
  border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.bkc-follow.on { background: #fff; color: #111; }
.bkc-caption { font-size: 14px; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,.6); max-width: 36rem; }
.bkc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bkc-tags button {
  border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px;
  padding: 3px 8px; font: inherit; font-size: 12px; cursor: pointer;
}
.bkc-recipe {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: #fff; color: #111; text-decoration: none; border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.bkc-recipe:active { transform: scale(.98); }

.bkc-actions {
  position: absolute; right: 10px; bottom: calc(90px + env(safe-area-inset-bottom, 0));
  z-index: 6; display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.bkc-actions button {
  width: 48px; min-height: 48px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); gap: 2px; padding: 6px 0;
}
.bkc-actions button .ico { font-size: 22px; line-height: 1; }
.bkc-actions button .n { font-size: 11px; font-weight: 600; }
.bkc-actions button.liked { color: #ff4d6d; }
.bkc-actions button.tip-btn { background: rgba(200,30,53,.85); }

/* Sheets */
.bkc-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  max-height: 70%; overflow: auto; background: #161618; color: #fff;
  border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -8px 32px rgba(0,0,0,.45);
}
.bkc-sheet h2 { margin: 0 0 8px; font-size: 18px; }
.bkc-sheet .meta { color: rgba(255,255,255,.7); font-size: 13px; }
.bkc-sheet textarea, .bkc-sheet input, .bkc-sheet select {
  width: 100%; box-sizing: border-box; margin: 8px 0; padding: 10px 12px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: #0f0f11; color: #fff; font: inherit;
}
.bkc-sheet .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bkc-sheet .btn {
  border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--ds-primary, #c81e35); color: #fff;
}
.bkc-sheet .btn.alt { background: rgba(255,255,255,.12); }
.bkc-tip-amt {
  flex: 1; min-width: 72px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: #0f0f11; color: #fff; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer;
}
.bkc-tip-amt:focus, .bkc-tip-amt[aria-pressed="true"] { outline: 2px solid var(--ds-primary, #c81e35); border-color: transparent; }
.bkc-split {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06);
  font-size: 13px; line-height: 1.4;
}
.bkc-test-badge {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; background: #3b82f6; color: #fff; vertical-align: middle;
}
.bkc-comments { list-style: none; padding: 0; margin: 8px 0; }
.bkc-comments li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.bkc-empty { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: #ddd; }
.bkc-admin { padding: 16px; max-width: 720px; margin: 0 auto; color: #111; background: var(--ds-bg, #fafafa); min-height: 100vh; }
body.bk-clips-on .bkc-admin { color: #eee; background: #0a0a0b; }
.bkc-admin table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bkc-admin th, .bkc-admin td { text-align: left; padding: 8px; border-bottom: 1px solid rgba(127,127,127,.3); }
.bkc-post-form label { display: block; font-size: 13px; margin-top: 8px; color: rgba(255,255,255,.8); }

.bkc-panel-page {
  min-height: 100vh; padding: 16px; max-width: 560px; margin: 0 auto; color: #111;
  background: var(--ds-bg, #fff);
}
body.bk-clips-on .bkc-panel-page { color: #eee; background: #111; }
