/* Video page: calm top card, sections that fit, "More" row, docked bar and one player. Instant Prints palette from styles.css. */

/* ---------- wall: verdict glow + faint speckle (no images; transform/opacity only for motion) ---------- */
html[data-verdict] body {
  background-color: var(--wall);
  background-image:
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.3px),
    radial-gradient(90% 46% at 80% 0%, var(--glow, transparent) 0%, transparent 72%);
  background-size: 7px 7px, 100% 100%;
  background-repeat: repeat, no-repeat;
}
html[data-verdict="worth_it"] { --glow: rgba(47, 210, 127, .6); }
html[data-verdict="partly"] { --glow: rgba(255, 197, 49, .5); }
html[data-verdict="skip"] { --glow: rgba(255, 77, 106, .5); }

/* ---------- top card ---------- */
.takeaways { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 8px; }
.takeaways li { display: flex; gap: 10px; align-items: flex-start; font: 500 15px/1.35 var(--ui); }
.takeaways li i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--highlight); color: var(--ink);
  font: 800 12px/22px var(--ui); text-align: center; font-style: normal;
}
.top-best { margin: 0 0 14px; font: 500 15px/1.4 var(--ui); }
.top-actions { display: flex; gap: 8px; align-items: stretch; margin: 2px 0 14px; flex-wrap: wrap; }
.top-actions .btn { min-height: 44px; }
.top-actions .btn.primary { flex: 1 1 150px; justify-content: center; }
.more-actions { position: relative; }
.more-actions > summary {
  list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--paper-2); font: 800 18px var(--ui); color: var(--ink);
}
.more-actions > summary::-webkit-details-marker { display: none; }
.more-actions[open] > summary { background: var(--paper-line); }
.more-actions .more-menu { display: grid; gap: 8px; margin: 10px 0 0; flex-basis: 100%; }
.top-actions .more-actions[open] { flex-basis: 100%; }

/* ---------- sections that fit + More ---------- */
.panel .section.folded { animation: none; } /* closed ones carry [hidden]; opening a chip only clears that */
.more-box { background: var(--paper-2); border-radius: 16px; padding: 12px; margin: 4px 0 14px; }
.more-box h3 { font: 700 13px var(--ui); margin: 0 0 9px; display: flex; justify-content: space-between; color: var(--ink-2); }
.more-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.more-chip {
  background: #fff; border: 1.5px solid var(--paper-line); border-radius: 999px; padding: 8px 12px; min-height: 36px;
  font: 700 13px var(--ui); color: var(--ink); cursor: pointer;
}
.more-chip small { font: 700 11px var(--ui); color: var(--ink-3); margin-left: 4px; }
.more-chip[aria-expanded="true"] { background: var(--wall); border-color: var(--wall); color: #fff; }
.more-chip[aria-expanded="true"] small { color: #fff; }
.more-chip.alert { border-color: #f5b3be; color: var(--skip-ink); }
.more-chip.alert[aria-expanded="true"] { background: var(--skip-ink); border-color: var(--skip-ink); color: #fff; }

/* ---------- docked bar: title row, plus the player once a moment is playing ---------- */
.vdock {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30; padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--paper-line), 0 8px 20px rgba(8, 14, 80, .18);
  transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .22s var(--ease-out), opacity .18s linear;
}
.vdock.on { transform: none; opacity: 1; pointer-events: auto; }
@supports (backdrop-filter: blur(1px)) { .vdock { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); } }
.vdock-title { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font: 700 14px var(--ui); min-height: 40px; }
.vdock-title .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--worth); }
.vdock-title .dot.partly { background: var(--partly); }
.vdock-title .dot.skip { background: var(--skip); }
.vdock-title span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdock-title b { flex: none; color: var(--worth-ink); font-weight: 800; }
.vdock-play { display: none; gap: 10px; padding: 0 12px 4px; align-items: center; flex-wrap: wrap; }
.vdock.playing .vdock-play { display: flex; }
.vdock-frame { flex: none; width: min(calc(var(--vdock-h, 72px) * 16 / 9), calc(100vw - 24px)); aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #000; }
.vdock-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vdock-info { flex: 1 1 140px; min-width: 0; }
.vdock-now { font: 700 13px/1.25 var(--ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vdock-time { font: 600 11px var(--ui); color: var(--ink-3); margin: 1px 0 5px; }
.vdock-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.vdock-btns button {
  min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--paper-line); background: #fff;
  font: 700 12px var(--ui); color: var(--ink); cursor: pointer;
}
.vdock-btns button[aria-pressed="true"] { background: var(--wall); border-color: var(--wall); color: #fff; }

/* The handle on the bar's bottom edge: drag to resize the player, tap to switch small and large. Only while a video plays. */
.vdock-grip { display: none; width: 100%; height: 24px; padding: 0; border: 0; background: transparent; position: relative; cursor: ns-resize; touch-action: none; }
.vdock.playing .vdock-grip { display: block; }
.vdock-grip::after { content: ""; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.vdock-grip:focus-visible { outline: 2px solid var(--wall); outline-offset: -4px; border-radius: 8px; }

/* ---------- moments: tap = play in the docked player ---------- */
.moment.is-now { background: color-mix(in srgb, var(--wall) 8%, #fff); border-radius: 12px; }
.clip-btn.go { border-radius: 999px; }
.clip-btn.go[aria-pressed="true"] { background: var(--wall); color: #fff; }

/* ---------- cook mode: the video is already there ---------- */
.cook { grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; }
.cook-stepwrap { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.cook-video { margin: 0; }
.cook-player { margin: 10px 0 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; max-height: 32vh; }
.cook-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.cook-vbtns { display: flex; gap: 8px; margin: 8px 0 0; }
.cook-vbtns button {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--paper-line); background: #fff;
  font: 700 13px var(--ui); color: var(--ink); cursor: pointer;
}
.cook-vbtns button[aria-pressed="true"] { background: var(--wall); border-color: var(--wall); color: #fff; }

@media (prefers-reduced-motion: reduce) { .vdock { transition: none; } }
.jump { display: none; } /* replaced by the More row and the docked bar */
