/* dv-video (2026-10-27): the video hub and the watch pages. Kit tokens and components only (Literata titles, Onest
   for the rest, the house greens, white cards on the ground); compact: on a watch page the film is the first thing
   under the title, with the description and the chapters beside it. Prefix vid-. */

.pg-video {
  --vid-tint: rgb(76 140 43 / .09);      /* leaf over white */
  --vid-tint-strong: rgb(76 140 43 / .15);
  --vid-card-shadow: 0 1px 2px rgb(26 23 27 / .05), 0 12px 32px -24px rgb(26 23 27 / .25);
}
.vid-h2 { margin: 0 0 var(--sp-5); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-title); }
.vid-eyebrow { margin-bottom: var(--sp-2); color: var(--link); }

/* ---- Watch page: head, film, description + chapters ------------------------------------------------------------- */
.vid-stage { padding-block: var(--sp-4) var(--sp-7); }
.vid-stage__grid { display: grid; gap: var(--sp-4); grid-template-areas: "head" "player" "side"; grid-template-columns: minmax(0, 1fr); }
.vid-head { grid-area: head; min-width: 0; }
.vid-crumbs { margin-bottom: var(--sp-3); }
@media (max-width: 599px) { .vid-crumbs li[aria-current] { display: none; } }  /* phones: the parent only; the title follows */
.vid-title { margin: 0; max-width: 32ch; font-size: var(--fs-h2); line-height: var(--lh-h2); text-wrap: balance; }

.vid-player { grid-area: player; min-width: 0; margin: 0; }
.vid-player__video {
  display: block; width: 100%; height: auto; aspect-ratio: var(--vid-ar, 16 / 9);
  background: var(--deep); border-radius: var(--radius-media); object-fit: contain;
}
.is-portrait .vid-player__video { width: auto; max-width: 100%; max-height: min(78svh, 760px); margin-inline: auto; }
.vid-player__video:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.vid-side { grid-area: side; min-width: 0; }
.vid-lead { margin: 0; }

.vid-chapters { margin-top: var(--sp-5); }
.vid-chapters__title {
  margin: 0 0 var(--sp-2); font-family: var(--font-text); font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow);
  font-weight: var(--fw-strong); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted);
}
.vid-chapters__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.vid-chapters__list li { border-bottom: 1px solid var(--line); }
.vid-chapters__list a {
  display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; padding: var(--sp-1) var(--sp-2);
  color: var(--ink); text-decoration: none; font-size: var(--fs-ui); line-height: var(--lh-ui);
  border-radius: var(--radius-control); transition: background-color .15s ease;
}
.vid-chapters__list a:hover { background: var(--vid-tint); }
.vid-chapters__list a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.vid-chapters__list a[aria-current="true"] { background: var(--vid-tint-strong); }
.vid-chapters__list a[aria-current="true"] .vid-chapters__name { font-weight: var(--fw-ui); }
.vid-chapters__t { flex: none; min-width: 2.75em; font-variant-numeric: tabular-nums; font-weight: var(--fw-strong); color: var(--link); }
.vid-chapters__name { min-width: 0; }

@media (min-width: 1024px) {
  .vid-stage { padding-block: var(--sp-5) var(--sp-8); }
  .vid-stage__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "head head" "player side"; column-gap: var(--sp-6); row-gap: var(--sp-5); }
  .vid-side { align-self: start; }
  /* a vertical film: the film left, the head and the side beside it */
  .is-portrait .vid-stage__grid { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "player head" "player side"; grid-template-rows: auto 1fr; column-gap: var(--sp-7); row-gap: var(--sp-5); }
  .is-portrait .vid-player__video { max-height: min(82svh, 800px); margin-inline: 0; }
  .is-portrait .vid-head { align-self: end; }
}

/* ---- What the film shows, "Pe scurt", links ---------------------------------------------------------------------- */
.vid-main { padding-top: 0; }
.vid-main__grid { display: grid; gap: var(--sp-7); }
.vid-text > :first-child { margin-top: 0; }
.vid-text h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-title); }
.vid-text ul, .vid-text ol { padding-left: 1.2em; max-width: var(--text-measure); }
.vid-text li + li { margin-top: var(--sp-2); }
.vid-text a { color: var(--link); text-underline-offset: .18em; }

.vid-brief { align-self: start; min-width: 0; padding: var(--sp-5); background: var(--surface); border-radius: var(--radius-media); box-shadow: var(--vid-card-shadow); }
.vid-brief__title { margin: 0 0 var(--sp-3); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-title); }
.vid-facts { margin: 0; }
.vid-facts__row { display: grid; gap: 2px; padding-block: var(--sp-3); border-top: 1px solid var(--line); }
.vid-facts dt { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }
.vid-facts dd { margin: 0; font-size: var(--fs-ui); line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }
.vid-brief__sub { margin: var(--sp-5) 0 var(--sp-2); font-family: var(--font-text); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: var(--fw-strong); }
.vid-links { margin: 0; padding: 0; list-style: none; }
.vid-links li { border-top: 1px solid var(--line); }
.vid-links a { display: flex; align-items: center; min-height: 44px; color: var(--link); font-size: var(--fs-ui); line-height: 1.4; text-underline-offset: .18em; }
@media (min-width: 1024px) {
  .vid-main__grid:has(> :nth-child(2)) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-8); }
  .vid-brief { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
}

/* ---- Cards (hub, "Alte filme") ---------------------------------------------------------------------------------- */
.vid-cards { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.vid-card { min-width: 0; }
.vid-card__link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-media); box-shadow: var(--vid-card-shadow);
  transition: border-color .15s ease;
}
.vid-card__link:hover { border-color: var(--control); }
.vid-card__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.vid-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.vid-card__media img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vid-card.is-portrait .vid-card__media img { object-fit: contain; }
.vid-card__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  color: var(--action); background: rgb(255 255 255 / .92); border-radius: 50%; box-shadow: 0 6px 18px -6px rgb(26 23 27 / .5);
  transition: transform .2s ease;
}
.vid-card__play svg { margin-left: 3px; }
.vid-card__dur {
  position: absolute; right: var(--sp-2); bottom: var(--sp-2); padding: 2px 6px; border-radius: var(--radius-control);
  background: rgb(26 23 27 / .78); color: #fff; font-size: var(--fs-eyebrow); line-height: 1.5; font-weight: var(--fw-strong); font-variant-numeric: tabular-nums;
}
.vid-card__body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.vid-card__eyebrow { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: var(--fw-strong); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--link); }
.vid-card__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-card); line-height: var(--lh-card); font-weight: var(--fw-title); text-wrap: balance; }
.vid-card__lead { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .vid-card__link:hover .vid-card__media img { transform: scale(1.03); }
  .vid-card__link:hover .vid-card__play { transform: scale(1.08); }
}
.vid-more__all { margin: var(--sp-5) 0 0; }

/* ---- Hub ---------------------------------------------------------------------------------------------------------- */
.vid-hubhead { padding-block: var(--sp-6) var(--sp-5); }
.vid-hubhead__title { margin: 0; max-width: 24ch; }
.vid-hubhead__lead { margin-top: var(--sp-3); }
.vid-hubgrid { padding-bottom: var(--section); }
.vid-hubintro { margin-top: var(--sp-7); }
.vid-empty { color: var(--muted); }

/* owner 2026-10-27 justifies running text site-wide; short UI lines stay ragged (a justified two-word line gapes) */
.vid-crumbs li, .vid-title, .vid-chapters__list a, .vid-facts dt, .vid-facts dd, .vid-links a, .vid-card__title, .vid-card__lead, .vid-card__eyebrow, .vid-lead { text-align: start; -webkit-hyphens: manual; hyphens: manual; }
