/* /bookmarks page — library-wide list of captured moments. Uses the admin
 * dark palette (admin.css provides the vars) so it feels cohesive with
 * the other "second screen" pages.
 */

.bm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bm-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--g-panel-2);
  border: 1px solid var(--g-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.bm-row:hover {
  background: var(--g-panel);
  border-color: var(--g-accent);
}
.bm-poster {
  position: relative;
  width: 120px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  flex: 0 0 auto;
}
.bm-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-poster-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--g-panel), var(--g-panel-2));
}
.bm-timestamp {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.bm-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bm-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--g-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-meta {
  font-size: 13px;
  color: var(--g-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-label {
  font-size: 14px;
  color: #ffd166;
  font-style: italic;
}
.bm-delete {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--g-border);
  color: var(--g-text-dim);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.bm-delete:hover {
  background: #5a2020;
  color: #f0a0a0;
  border-color: #8a3b3b;
}
.bm-empty {
  padding: 30px 10px;
  text-align: center;
  color: var(--g-text-dim);
}
