.video-learn {
  width: min(100%, 62rem);
  padding-top: clamp(2rem, 6vw, 4.25rem);
  padding-bottom: clamp(2.5rem, 10vw, 6rem);
}

.video-learn header {
  margin-bottom: var(--s6);
}

.video-learn h1 {
  margin: 0 0 var(--s2);
  font: 700 clamp(2rem, 5vw, 3.25rem)/1.12 var(--f-brand);
  letter-spacing: -.03em;
}

.video-learn p {
  margin: 0;
  color: var(--muted);
}

.video-lesson {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: var(--s4) var(--s5);
  scroll-margin-top: 7rem;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: lesson;
}

.video-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s3);
  counter-increment: lesson;
}

.video-list > li::before {
  content: counter(lesson);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-pill);
  color: var(--brand);
  background: var(--inset);
  font-weight: 750;
}

.video-list > li:has(.video-player[open]) { grid-column: 1 / -1; }

.video-lesson h3 { margin: 0 0 var(--s1); font-size: 1.12rem; }
.video-lesson .video-pending { margin-top: var(--s3); font-size: .85rem; }
.video-lesson .video-action { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }
.video-player { margin-top: var(--s2); }
.video-player summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--tap);
  cursor: pointer;
  list-style: none;
}

.video-lesson summary::-webkit-details-marker { display: none; }
.video-player[open] summary .i { transform: rotate(180deg); }

.video-lesson video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--chart, #101823);
  border-radius: var(--r-lg);
}

@media (max-width: 600px) {
  .video-list { grid-template-columns: 1fr; }
  .video-lesson { padding: var(--s4); }
}

/* Captions in the app's own type on a navy band (the redesigned Home look). */
.video-lesson video::cue {
  font-family: var(--f-body, 'Geist', system-ui, sans-serif);
  font-weight: 500;
  color: #fff;
  background: rgb(20 34 55 / .88);
}
