/* ================================================================
   Lesson video — the explainer that sits at the top of a lesson page.
   Loads nothing until the learner presses play: the poster image is
   all that downloads on arrival, which matters on a slow connection.
   ================================================================ */

.lv-wrap { max-width: 820px; margin: 0 auto 1.2rem; }

.lv-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.lv-badge { width: 2.5rem; height: 2.5rem; border-radius: .85rem; display: grid; place-items: center;
            background: var(--module-grad, linear-gradient(135deg,#7c3aed,#ec4899)); color: #fff; font-size: 1.1rem; flex: none; }
.lv-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.lv-sub   { font-size: .84rem; color: var(--text-muted); margin-top: .1rem; }

/* the frame keeps its 16:9 shape before anything loads, so nothing jumps */
.lv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
            background: var(--bg-soft, #f3f0ff); border: 1px solid var(--border, #e6e2f5);
            box-shadow: 0 18px 40px -24px rgba(124, 58, 237, .55); }
.lv-frame img, .lv-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

.lv-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
           background: transparent; display: grid; place-items: center; padding: 0; font-family: inherit; }
.lv-play::before { content: ''; position: absolute; inset: 0;
                   background: linear-gradient(180deg, rgba(20,10,45,.05), rgba(20,10,45,.45)); }
.lv-btn { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
          background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(20,10,45,.35);
          transition: transform .2s ease; }
.lv-play:hover .lv-btn { transform: scale(1.08); }
.lv-btn svg { width: 30px; height: 30px; margin-left: 4px; fill: #7c3aed; }
.lv-dur { position: absolute; right: .7rem; bottom: .7rem; padding: .2rem .55rem; border-radius: 8px;
          background: rgba(20,10,45,.72); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.lv-label { position: absolute; left: .7rem; bottom: .7rem; padding: .25rem .6rem; border-radius: 8px;
            background: rgba(255,255,255,.92); color: #1f1b3a; font-size: .78rem; font-weight: 700; }

.lv-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem;
           margin-top: .55rem; flex-wrap: wrap; }
.lv-note { font-size: .8rem; color: var(--text-muted); }
.lv-skip { font-size: .84rem; font-weight: 600; color: var(--module, #7c3aed); background: none; border: 0;
           cursor: pointer; padding: .45rem .2rem; font-family: inherit; min-height: 44px; }
.lv-skip:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .lv-wrap { margin-bottom: 1rem; }
  .lv-frame { border-radius: 14px; }
  .lv-btn { width: 60px; height: 60px; }
  .lv-btn svg { width: 24px; height: 24px; }
  .lv-title { font-size: .98rem; }
}
