/* aecpilot.com video shelf (29 Nov 2026, tasks/video_shelf_2026-11-29.py) */
/* ---------- video shelf (site.js): 3+ videos in one block -> cards + one row of Shorts ---------- */
#wrap .aec-shelf{margin:.5rem 0 1rem}
#wrap .container.o_container_small.has-aec-shelf{max-width:1140px}
#wrap .aec-shelf-long{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#wrap .aec-shelf-long.n1{grid-template-columns:minmax(0,760px);justify-content:center}
#wrap .aec-shelf-long.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
#wrap .aec-shelf-card,#wrap .aec-shelf-short{display:flex;flex-direction:column;gap:.55rem;text-decoration:none!important;color:#021e45!important}
#wrap .aec-shelf-thumb{position:relative;display:block;overflow:hidden;border-radius:10px;background:#0b1f3f;box-shadow:0 14px 30px -18px rgba(2,30,69,.55);transition:transform .2s,box-shadow .2s}
#wrap .aec-shelf-card .aec-shelf-thumb{aspect-ratio:16/9}
#wrap .aec-shelf-thumb img{display:block;width:100%;height:100%;object-fit:cover;margin:0!important;border-radius:0!important;box-shadow:none!important}
#wrap .aec-shelf-play{position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;background:rgba(2,30,69,.78);box-shadow:0 0 0 2px rgba(255,255,255,.85) inset;transition:transform .2s,background .2s}
#wrap .aec-shelf-play::after{content:"";position:absolute;left:22px;top:17px;border-style:solid;border-width:10px 0 10px 16px;border-color:transparent transparent transparent #fff}
#wrap .aec-shelf-dur{position:absolute;right:8px;bottom:8px;padding:2px 7px;border-radius:4px;background:rgba(2,30,69,.85);color:#fff;font-size:.75rem;font-weight:600}
#wrap .aec-shelf-title{font-weight:600;font-size:.95rem;line-height:1.35}
#wrap .aec-shelf-card:hover .aec-shelf-thumb,#wrap .aec-shelf-short:hover .aec-shelf-thumb{transform:translateY(-3px);box-shadow:0 22px 40px -20px rgba(2,30,69,.6)}
#wrap .aec-shelf-card:hover .aec-shelf-play,#wrap .aec-shelf-short:hover .aec-shelf-play{background:#1f5bd8;transform:scale(1.06)}
#wrap .aec-shelf-card:focus-visible,#wrap .aec-shelf-short:focus-visible{outline:3px solid #1f5bd8;outline-offset:4px;border-radius:10px}
#wrap .aec-shelf-shorts{margin-top:28px}
#wrap .aec-shelf-row{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px;justify-content:center}
#wrap .aec-shelf-row:has(> :nth-child(6)){justify-content:flex-start}
#wrap .aec-shelf-short{flex:0 0 180px;scroll-snap-align:start}
#wrap .aec-shelf-short .aec-shelf-thumb{aspect-ratio:9/16}
#wrap .aec-shelf-short .aec-shelf-title{font-size:.85rem;font-weight:500;color:#3a4352}
@media (max-width:991.98px){#wrap .aec-shelf-long,#wrap .aec-shelf-long.n2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:575.98px){#wrap .aec-shelf-long,#wrap .aec-shelf-long.n2{grid-template-columns:1fr}#wrap .aec-shelf-row{justify-content:flex-start}#wrap .aec-shelf-short{flex-basis:150px}}
/* lightbox */
.aec-lb{position:fixed;inset:0;z-index:2000;background:rgba(1,12,30,.82);display:flex;align-items:center;justify-content:center;padding:24px}
.aec-lb-in{position:relative;width:min(1100px,100%)}
.aec-lb.is-short .aec-lb-in{width:min(380px,100%)}
.aec-lb-frame{position:relative;aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.aec-lb.is-short .aec-lb-frame{aspect-ratio:9/16;max-height:86vh}
.aec-lb-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.aec-lb-x{position:absolute;top:-44px;right:0;width:36px;height:36px;border:0;border-radius:50%;background:#fff;color:#021e45;font-size:1.6rem;line-height:1;cursor:pointer}
html.aec-lb-open{overflow:hidden}
#wrap .aec-shelf-long.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
#wrap .aec-shelf-long.n4 .aec-shelf-title{font-size:.88rem}
#wrap .aec-shelf-shorts{position:relative}
#wrap .aec-shelf-nav{display:none;justify-content:flex-end;gap:8px;margin-top:4px}
#wrap .aec-shelf-shorts.is-overflow .aec-shelf-nav{display:flex}
#wrap .aec-shelf-shorts.is-overflow .aec-shelf-row{justify-content:flex-start}
#wrap .aec-shelf-nav button{width:38px;height:38px;border-radius:50%;border:1.5px solid #021e45;background:#fff;color:#021e45;font-size:1rem;line-height:1;cursor:pointer}
#wrap .aec-shelf-nav button:hover{background:#021e45;color:#fff}
@media (max-width:991.98px){#wrap .aec-shelf-long.n4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:575.98px){#wrap .aec-shelf-long.n4{grid-template-columns:1fr}}
