/* Field Notes — Video Library page layout (docs/videos.md).
 *
 * doc: Only the page's own two-column scaffold lives here. The player frame
 * (.fn-vp) and the chapter pills (.fn-chapters) are the same classes every
 * guide page's film uses and are already fully styled in field-notes.css —
 * duplicating that chrome here would drift from it the next time it changes.
 */

.md-typeset .vl-count {
  margin: -0.3rem 0 1.1rem;
  font-family: var(--fn-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--fn-ink-faint);
}

.md-typeset .vl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1.7rem;
  align-items: start;
  margin: 0 0 2.4rem;
}

@media (max-width: 76rem) {
  .md-typeset .vl-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.md-typeset .vl-stage {
  min-width: 0;
}

/* The mount point is empty until video-library.js builds the first frame
   into it, so it reserves a 16:9 box up front — without this the page
   flashes from zero height to full height the instant JS runs. */
.md-typeset .vl-vp-mount {
  aspect-ratio: 16 / 9;
  background: var(--fn-ink);
  border: 1px solid var(--fn-line);
  border-radius: var(--fn-radius);
  overflow: hidden;
}
.md-typeset .vl-vp-mount .fn-vp {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.md-typeset .vl-meta {
  margin: 0.9rem 0 0;
}
.md-typeset .vl-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--fn-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fn-accent);
}
.md-typeset .vl-meta h2 {
  margin: 0;
  font-size: 1.2rem;
}

.md-typeset .vl-stage .fn-chapters { margin: 0.9rem 0 0; }
.md-typeset .vl-chapters-empty {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--fn-ink-faint);
}

.md-typeset .vl-playlist {
  min-width: 0;
  max-height: 44rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.md-typeset .vl-playlist-empty {
  font-size: 0.85rem;
  color: var(--fn-ink-faint);
}

.md-typeset .vl-group + .vl-group { margin-top: 1.3rem; }
.md-typeset .vl-group-label {
  margin: 0 0 0.5rem;
  font-family: var(--fn-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fn-ink-faint);
}

.md-typeset .vl-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.md-typeset .vl-list li { margin: 0; }

.md-typeset .vl-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.4rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--fn-radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.md-typeset .vl-item:hover {
  border-color: var(--fn-line);
  background: var(--fn-paper-dim);
}
.md-typeset .vl-item.is-active {
  border-color: var(--fn-accent);
  background: var(--fn-accent-soft);
}

.md-typeset .vl-item__thumb {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  aspect-ratio: 16 / 9;
  background: var(--fn-ink);
  border-radius: calc(var(--fn-radius) * 0.6);
  overflow: hidden;
}
.md-typeset .vl-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.md-typeset .vl-item__thumb--empty svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--fn-paper-dim);
  opacity: 0.7;
}

.md-typeset .vl-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.md-typeset .vl-item__title {
  font-size: 0.82rem;
  color: var(--fn-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-typeset .vl-item.is-active .vl-item__title { color: var(--fn-accent-ink); }
.md-typeset .vl-item__duration {
  font-family: var(--fn-font-mono);
  font-size: 0.62rem;
  color: var(--fn-ink-faint);
}
