/* "When did you watch it?" dialog and the message bar that follows marking a title watched. See watched.js. */
.wbar {
  position: fixed; left: 50%; bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-toast);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: var(--s-3);
  width: max-content; max-width: min(560px, calc(100vw - 2 * var(--gutter)));
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); font-size: var(--t-sm); line-height: var(--lh-snug);
  transition: transform var(--med) var(--ease), opacity var(--med) var(--ease);
}
.wbar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.wbar-t { flex: 1; min-width: 0; }
.wbar-a {
  flex: none; height: var(--ctl-sm); padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: var(--t-sm); white-space: nowrap;
}
.wbar-a:hover { filter: brightness(1.08); }
.wbar-x { flex: none; display: grid; place-items: center; width: var(--ctl-sm); height: var(--ctl-sm); border: 0; border-radius: var(--r-sm); background: none; color: var(--mute); }
.wbar-x:hover { background: var(--hover); color: var(--text-strong); }
@media (max-width: 700px) { .wbar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: auto; left: var(--gutter); right: var(--gutter); max-width: none; transform: translateY(16px); } .wbar.show { transform: none; } }

.wask { display: grid; gap: var(--s-4); min-width: min(380px, 100%); }
.wask h2 { margin: 0; font: 650 var(--t-lg)/var(--lh-snug) var(--font-display); color: var(--text-strong); padding-right: var(--s-6); }
.wask-sub { margin: calc(-1 * var(--s-3)) 0 0; color: var(--mute); font-size: var(--t-sm); }
.wask-opts { display: grid; gap: var(--s-2); }
.wask-opt {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 52px; padding: var(--s-2) var(--s-3);
  text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text);
  transition: border-color var(--fast), background var(--fast);
}
.wask-opt:hover { background: var(--surface-3); }
.wask-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.wask-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); }
.wask-opt.on .wask-dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, transparent 50%); }
.wask-txt { flex: 1; min-width: 0; display: grid; }
.wask-txt b { font-weight: 600; color: var(--text-strong); }
.wask-txt small { color: var(--mute); font-size: var(--t-xs); line-height: var(--lh-snug); }
.wask .wask-date { flex: 0 0 auto; width: 150px; min-height: 0; height: var(--ctl-sm); padding: 0 var(--s-2); background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text); font-size: var(--t-sm); }
.wask .err { margin: 0; color: var(--bad); font-size: var(--t-sm); }
.wask .err:empty { display: none; }
.wask-foot { display: flex; justify-content: flex-end; gap: var(--s-2); }
@media (prefers-reduced-motion: reduce) { .wbar { transition: none; } }
