/* ==========================================================================
   Landing "classroom stage" — homepage lecture preview.
   Layered composition from the approved mockup: leaf-shaped backdrop,
   framed live player, floating cards. Scales with its container.
   ========================================================================== */

.ls-wrap{container:ls/inline-size;width:100%;max-width:620px;min-width:0;justify-self:center;align-self:center}
.ls-stage{position:relative;width:100%;aspect-ratio:620/560;--ls-p:0}

/* Backdrop ------------------------------------------------------------- */
.ls-blob{position:absolute;left:11.3%;top:4.3%;width:88.7%;height:89.3%;overflow:hidden;
    border-radius:35.5cqw 7.1cqw 35.5cqw 7.1cqw;
    background:linear-gradient(150deg,#22c997,#087f5b 55%,#064e3b);
    animation:ls-bloom .9s cubic-bezier(.2,.8,.2,1) both}
.ls-blob:after{content:'';position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.09) 1px,transparent 1px);background-size:22px 22px}
.ls-blob i{position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}
.ls-blob i:first-child{right:-14%;top:-17%;width:51%;aspect-ratio:1}
.ls-blob i:last-child{right:11%;bottom:-24%;width:47%;aspect-ratio:1;background:rgba(255,255,255,.07)}

/* Player frame --------------------------------------------------------- */
.ls-player{position:absolute;left:0;top:11.4%;width:83.9%;overflow:hidden;z-index:2;
    border-radius:4.2cqw;background:#052e22;border:1px solid rgba(255,255,255,.14);
    box-shadow:0 34px 70px rgba(4,44,31,.38);
    animation:ls-rise .8s .15s cubic-bezier(.2,.8,.2,1) both}
.ls-screen{display:block;animation:ls-fade .5s ease both}
.ls-player .dq-video{border-radius:0;box-shadow:none;background:#031e16}
.ls-player .dq-video>video{object-fit:cover}
.ls-player .dq-video-title{display:none}
.ls-player .dq-video-center-play{width:64px;height:64px;font-size:30px;background:#fff;color:#087f5b;border:5px solid #ffffff35;background-clip:padding-box}

.ls-veil{position:absolute;left:0;right:0;top:0;height:84px;z-index:3;pointer-events:none;background:linear-gradient(180deg,rgba(2,16,11,.7),rgba(2,16,11,0))}

/* Story segments: one per lecture, fills with real playback time */
.ls-story{position:absolute;left:0;right:0;top:0;z-index:5;display:flex;gap:5px;padding:9px 14px 0}
.ls-story button{flex:1;height:18px;padding:0;background:none;border:0;cursor:pointer;display:block}
.ls-seg{display:block;height:3px;border-radius:2px;background:rgba(255,255,255,.3);overflow:hidden;transition:height .15s}
.ls-story button:hover .ls-seg{height:5px}
.ls-seg b{display:block;height:100%;background:#34d399;transform-origin:left;transform:scaleX(0)}
.ls-story .is-done .ls-seg b{transform:scaleX(1)}
.ls-story .is-active .ls-seg b{transform:scaleX(var(--ls-p))}
.ls-story button:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:4px}

.ls-tag{position:absolute;left:16px;top:26px;z-index:4;display:inline-flex;align-items:center;gap:7px;pointer-events:none;
    padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);
    backdrop-filter:blur(8px);color:#fff;font-size:11px;font-weight:800;letter-spacing:1px;line-height:1.4}
.ls-count{position:absolute;right:18px;top:30px;z-index:4;pointer-events:none;color:rgba(255,255,255,.85);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}

.ls-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px 16px;background:linear-gradient(180deg,#052e22,#06392b)}
.ls-foot-text{min-width:0;display:flex;flex-direction:column;gap:3px}
.ls-foot-text span{color:#6ee7b7;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ls-foot-text h3{margin:0;color:#fff;font-size:18px;line-height:1.3;font-weight:800;letter-spacing:-.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ls-nav{display:flex;gap:8px;flex:none}
.ls-nav button{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.26);color:#fff;font-size:15px;cursor:pointer;transition:background .15s,color .15s}
.ls-nav button:hover{background:#fff;color:#087f5b}
.ls-nav button:focus-visible{outline:2px solid #6ee7b7;outline-offset:2px}

/* Floating cards -------------------------------------------------------- */
.ls-chip,.ls-more{position:absolute;z-index:3;background:#fff;box-shadow:0 18px 40px rgba(16,42,32,.16);color:#10201a;text-decoration:none}
.ls-chip{left:64.5%;top:0;display:flex;align-items:center;gap:12px;padding:12px 16px 12px 12px;border-radius:18px;animation:ls-pop .6s .7s cubic-bezier(.2,.8,.2,1) both,ls-float 6s 1.3s ease-in-out infinite}
.ls-chip>span{width:42px;height:42px;flex:none;border-radius:12px;background:#e1f6ec;color:#087f5b;display:grid;place-items:center;font-size:22px}
.ls-chip strong{display:block;font-size:13px;font-weight:800;line-height:1.3}
.ls-chip small{display:block;font-size:12px;color:#5a6a63;margin-top:2px;white-space:nowrap}

.ls-more{left:42%;top:80%;width:55%;box-sizing:border-box;display:flex;flex-direction:column;gap:6px;padding:16px 20px;border-radius:22px;
    box-shadow:0 22px 48px rgba(16,42,32,.18);animation:ls-pop .6s .85s cubic-bezier(.2,.8,.2,1) both,ls-float 7s 1.5s -3s ease-in-out infinite}
.ls-more strong{font-size:16px;line-height:1.35;font-weight:800;letter-spacing:-.3px}
.ls-more span{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:#087f5b}
.ls-more span i{transition:transform .2s}
.ls-more:hover span i{transform:translate(2px,-2px)}
.ls-more:focus-visible{outline:3px solid #22c997;outline-offset:3px}

/* Up next: the other lectures, one tap away ------------------------------ */
.ls-next{position:absolute;left:0;top:80.5%;width:39%;z-index:3;display:flex;flex-direction:column;gap:8px;animation:ls-pop .6s .8s cubic-bezier(.2,.8,.2,1) both}
.ls-next-label{font-size:13px;font-weight:800;color:#10201a;line-height:1.3}
.ls-next-row{display:flex;gap:10px}
.ls-thumb{position:relative;flex:1;min-width:0;aspect-ratio:16/10;padding:0;border:2px solid #fff;border-radius:12px;overflow:hidden;cursor:pointer;
    background:linear-gradient(135deg,#0b9a6d,#064e3b);box-shadow:0 10px 22px rgba(16,42,32,.18);transition:transform .2s,box-shadow .2s}
.ls-thumb:hover{transform:translateY(-3px);box-shadow:0 16px 28px rgba(16,42,32,.24)}
.ls-thumb:focus-visible{outline:3px solid #22c997;outline-offset:2px}
.ls-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ls-thumb:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,16,11,.82),rgba(2,16,11,.05) 70%)}
.ls-thumb i{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.92);color:#087f5b;display:grid;place-items:center;font-size:15px;line-height:1}
.ls-thumb span{position:absolute;left:7px;right:7px;bottom:5px;color:#fff;font-size:10px;font-weight:700;line-height:1.3;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Empty / loading ------------------------------------------------------- */
.ls-empty{background:radial-gradient(ellipse at top right,#146649,transparent 70%),#052e22}
.ls-empty-body{min-height:19cqw;padding:12cqw 32px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff}
.ls-empty-body>i{font-size:40px;color:#6ee7b7}
.ls-empty-body h2{font-size:22px;font-weight:800;margin:14px 0 8px;color:#fff}
.ls-empty-body p{font-size:14px;line-height:1.7;color:#b5cebf;margin:0 0 20px}
.ls-empty-body .btn{background:#fff;color:#087f5b;border-color:#fff}

/* Motion: one entrance, then only gentle floating ------------------------ */
@keyframes ls-bloom{from{opacity:0;transform:scale(.92) rotate(-3deg)}to{opacity:1;transform:none}}
@keyframes ls-rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes ls-pop{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes ls-fade{from{opacity:0}to{opacity:1}}
@keyframes ls-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media (prefers-reduced-motion:reduce){.ls-blob,.ls-player,.ls-screen,.ls-chip,.ls-more,.ls-next{animation:none}.ls-thumb{transition:none}}

/* Narrow containers: stack the pieces instead of layering them ----------- */
@container ls (max-width:559px){
    .ls-stage{aspect-ratio:auto;display:flex;flex-direction:column;gap:14px;padding:0 0 20px}
    .ls-blob{left:9%;top:0;width:auto;right:0;height:auto;bottom:0;border-radius:24cqw 6cqw 24cqw 6cqw}
    .ls-player{position:relative;top:auto;width:92%;border-radius:20px}
    .ls-chip{display:none}
    .ls-more{position:relative;left:auto;top:auto;width:88%;align-self:flex-end;margin-right:4%;padding:14px 18px;animation:ls-pop .6s .85s cubic-bezier(.2,.8,.2,1) both}
    .ls-next{position:relative;left:auto;top:auto;width:92%;padding-left:2px}
    .ls-next-label{color:#fff}
    .ls-thumb{max-width:150px}
    .ls-foot{padding:12px 14px 14px}
    .ls-foot-text h3{font-size:15px}
    .ls-tag{left:12px;top:28px;font-size:10px;padding:5px 10px}
    .ls-count{display:none}
    .ls-player .dq-video-center-play{width:52px;height:52px;font-size:24px}
}
