/* Videos: next (the closing band). Owned by the "next" section agent, videos-100x, 2026-09-28.
   A white plate on the mist band: every lecture, panel and case discussion as one small frame,
   stacked at its length, under a live count of minutes and the recording at that length.
   Scoped under .vnext-*; the shared .next / .next__inner / .next h2 / .next__actions rules stay. */

.next__inner:has(.vnext-plate) { align-items: center; }

.vnext-lead { flex: 1 1 20rem; max-width: 29rem; display: grid; gap: 1.1rem; }
.vnext-lead .next__actions { margin-top: 0.35rem; align-items: center; gap: 0.6rem 1.4rem; }
.vnext-say { margin: 0; max-width: 36ch; font-size: 1.02rem; line-height: 1.45; color: var(--ink-2); }

.vnext-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.6rem;
  transition: color 0.2s;
}
.vnext-more svg { transition: translate 0.3s cubic-bezier(0.28, 0.11, 0.32, 1); }
.vnext-more:hover, .vnext-more:focus-visible { color: var(--accent); }
.vnext-more:hover svg, .vnext-more:focus-visible svg { translate: 3px 0; }

/* ---------- the plate ---------- */
.vnext-plate {
  --vn-travel: cubic-bezier(0.28, 0.11, 0.32, 1);
  --vn-settle: cubic-bezier(0.32, 0.72, 0, 1);
  flex: 1 1 30rem;
  max-width: 40rem;
  width: 100%;
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.5rem);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.04), 0 14px 40px rgba(10, 13, 18, 0.07);
}
.vnext-plate[hidden] { display: none; }

.vnext-read { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.6rem); align-items: center; }

/* one giant number: the length of the recording picked below */
.vnext-min { margin: 0; display: flex; align-items: baseline; gap: 0.35rem; line-height: 0.9; }
.vnext-min b {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.8rem, 4.6vw, 3.9rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}
.vnext-min span { font-family: var(--label); font-weight: 600; font-size: 1rem; color: var(--muted); }

.vnext-pick {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
  padding: 0.45rem;
  margin: -0.45rem;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.3s var(--vn-travel), translate 0.45s var(--vn-settle);
}
.vnext-pick:hover, .vnext-pick:focus-visible { background: var(--mist); translate: 0 -2px; }
.vnext-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.vnext-pick__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--lightbox); }
.vnext-pick__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s var(--vn-travel), filter 0.4s var(--vn-travel), transform 0.6s var(--vn-travel); }
.vnext-pick:hover .vnext-pick__thumb img, .vnext-pick:focus-visible .vnext-pick__thumb img { transform: scale(1.06); }
.vnext-pick__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--vn-settle);
}
.vnext-pick__play::after { content: ''; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--ink); margin-left: 2px; }
.vnext-pick:hover .vnext-pick__play, .vnext-pick:focus-visible .vnext-pick__play { transform: scale(1.12); }

.vnext-pick__body { min-width: 0; display: grid; gap: 0.3rem; }
.vnext-pick__t {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.28;
  color: var(--ink);
  transition: color 0.2s, opacity 0.3s var(--vn-travel) 30ms, translate 0.4s var(--vn-travel) 30ms, filter 0.4s var(--vn-travel) 30ms;
}
.vnext-pick:hover .vnext-pick__t, .vnext-pick:focus-visible .vnext-pick__t { color: var(--accent); }
.vnext-pick__m {
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--muted);
  transition: opacity 0.3s var(--vn-travel) 60ms, translate 0.4s var(--vn-travel) 60ms, filter 0.4s var(--vn-travel) 60ms;
}
/* the swap: out fast, back in with a slight rise and blur to sharp, parts staggered */
.vnext-pick.is-swap .vnext-pick__thumb img { opacity: 0.25; filter: blur(4px); }
.vnext-pick.is-swap .vnext-pick__t,
.vnext-pick.is-swap .vnext-pick__m { opacity: 0; translate: 0 5px; filter: blur(3px); transition-duration: 0.17s; transition-delay: 0s; }

/* ---------- the lengths ---------- */
.vnext-chart {
  position: relative;
  padding: 0.6rem 0 1.7rem;
  cursor: pointer;
  touch-action: pan-y;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.vnext-chart:focus { outline: none; }
.vnext-chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.vnext-cols {
  display: grid;
  grid-template-columns: repeat(48, minmax(0, 1fr));
  align-items: end;
  height: clamp(84px, 9vw, 104px);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
}
.vnext-col { display: flex; flex-direction: column-reverse; gap: 2px; padding-inline: 1px; transition: translate 0.45s var(--vn-settle); }
.vnext-tile {
  display: block;
  height: 6px;
  border-radius: 1.5px;
  background: var(--lightbox-deep);
  transition: background 0.25s var(--vn-travel), opacity 0.5s var(--vn-travel), translate 0.55s var(--vn-settle);
}
.vnext-col.is-near { translate: 0 -2px; }
.vnext-col.is-col { translate: 0 -5px; }
.vnext-col.is-col .vnext-tile { background: var(--accent); }
.vnext-col .vnext-tile.is-on { background: var(--ink); }

/* built once, column by column, the first time the plate is seen */
.vnext-cols.is-wait .vnext-tile { opacity: 0; translate: 0 8px; }
.vnext-cols.is-building .vnext-tile { transition-delay: var(--d, 0ms); }

/* the slot: a soft plate that glides behind the picked length */
.vnext-slot {
  position: absolute;
  left: 0;
  top: 0;
  bottom: calc(1.7rem + 1px);
  width: var(--w, 12px);
  border-radius: 6px;
  background: var(--accent-tint);
  translate: var(--x, 0px) 0;
  transition: translate 0.5s var(--vn-settle), width 0.3s var(--vn-settle);
  pointer-events: none;
}
.vnext-cols { position: relative; z-index: 1; }

.vnext-scale { position: absolute; left: 0; right: 0; bottom: 0; height: 1.3rem; pointer-events: none; }
.vnext-scale span {
  position: absolute;
  bottom: 0;
  translate: -50% 0;
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .vnext-lead, .vnext-plate { max-width: none; }
}
@media (max-width: 600px) {
  .vnext-read { grid-template-columns: 1fr; gap: 0.7rem; }
  .vnext-min b { min-width: 0; text-align: left; font-size: 2.7rem; }
  .vnext-pick { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; }
  .vnext-pick__t { font-size: 0.96rem; -webkit-line-clamp: 3; }
  .vnext-col { gap: 1.5px; padding-inline: 0.5px; }
  .vnext-tile { height: 5px; border-radius: 1px; }
  .vnext-say { font-size: 0.98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vnext-plate *, .vnext-more svg { transition: none !important; }
  .vnext-pick:hover, .vnext-pick:focus-visible, .vnext-col.is-near, .vnext-col.is-col { translate: none; }
}
