/* Homepage Reels section — shares the nursery's ink, cream and coral palette. */
#nursery-play .np-reels-section{background:#fffaf0;position:relative}
#nursery-play .np-reels-section::before{content:"";position:absolute;inset:0 0 auto;height:12px;background:linear-gradient(90deg,#d9eaf5 0 25%,#dcebd5 25% 50%,#f9ddd9 50% 75%,#ffda75 75%)}
#nursery-play .np-reels-section .np-section-head{margin-bottom:30px}
#nursery-play .np-reels-controls{display:flex;gap:10px;flex-shrink:0}
#nursery-play .np-reels-controls button{display:grid;place-items:center;width:48px;height:48px;border:2px solid #244b42;border-radius:50%;background:#fff;color:#244b42;font-size:1.4rem;font-weight:900;cursor:pointer;transition:background .2s,color .2s,transform .2s}
#nursery-play .np-reels-controls button:hover:not(:disabled){background:#244b42;color:#fff;transform:translateY(-2px)}
#nursery-play .np-reels-controls button:disabled{opacity:.35;cursor:not-allowed}
#nursery-play .np-reels-controls button[hidden]{display:none}
#nursery-play .np-reels-track{display:grid;grid-auto-columns:minmax(230px, min(27vw,310px));grid-auto-flow:column;gap:22px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#b83f2d #e8e4d9;padding:12px 3px 22px;-webkit-overflow-scrolling:touch}
#nursery-play .np-reel-card{min-width:0;scroll-snap-align:start}
#nursery-play .np-reel-open{display:block;width:100%;padding:0;border:0;border-radius:22px;background:#fff;text-align:left;overflow:hidden;box-shadow:0 8px 0 rgb(36 75 66 / .08),0 12px 32px rgb(36 75 66 / .08);cursor:pointer;color:#244b42;transition:transform .25s,box-shadow .25s}
#nursery-play .np-reel-open:hover{transform:translateY(-5px);box-shadow:0 10px 0 rgb(36 75 66 / .08),0 20px 38px rgb(36 75 66 / .14)}
#nursery-play .np-reel-open:focus-visible{outline:3px solid #b83f2d;outline-offset:5px}
#nursery-play .np-reel-preview{position:relative;display:block;aspect-ratio:4/5;background:#193b3a;overflow:hidden}
#nursery-play .np-reel-preview img,#nursery-play .np-reel-preview video{display:block;width:100%;height:100%;object-fit:cover}
#nursery-play .np-reel-preview video{pointer-events:none}
#nursery-play .np-reel-play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:62px;height:62px;padding-left:4px;border:2px solid #fff;border-radius:50%;background:#b83f2d;color:#fff;font-size:1.35rem;box-shadow:0 4px 20px #0005;transform:translate(-50%,-50%);transition:transform .2s,background .2s}
#nursery-play .np-reel-open:hover .np-reel-play{background:#244b42;transform:translate(-50%,-50%) scale(1.08)}
#nursery-play .np-reel-copy{display:grid;gap:6px;padding:18px 18px 20px}
#nursery-play .np-reel-copy strong{font-size:1.1rem;font-weight:900;line-height:1.25}
#nursery-play .np-reel-copy>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#486158;font-size:.9rem;line-height:1.5}
#nursery-play .np-reels-hint{margin-top:5px;color:#486158;font-size:.8rem}
#nursery-play .np-reel-dialog{width:min(94vw,1000px);max-width:none;max-height:94dvh;margin:auto;padding:clamp(12px,2vw,22px);border:1px solid #dce5dc;border-radius:24px;background:#fffaf0;color:#244b42;box-shadow:0 24px 80px #102e2c80;overflow:auto}
#nursery-play .np-reel-dialog::backdrop{background:rgb(12 35 33 / .82);backdrop-filter:blur(4px)}
#nursery-play .np-reel-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
#nursery-play .np-reel-dialog__head h2{font-size:clamp(1.25rem,2.5vw,1.8rem);line-height:1.2}
#nursery-play .np-reel-dialog__head p{margin-top:4px;color:#486158;font-size:.9rem}
#nursery-play .np-reel-dialog__head button{display:grid;flex:none;place-items:center;width:42px;height:42px;border:1px solid #244b4240;border-radius:50%;background:#fff;color:#244b42;font-size:1.8rem;line-height:1;cursor:pointer}
#nursery-play .np-reel-player{display:grid;place-items:center;min-height:160px;max-height:78dvh;border-radius:14px;background:#101817;overflow:hidden}
#nursery-play .np-reel-player video{display:block;width:auto;height:auto;max-width:100%;max-height:76dvh;object-fit:contain;background:#101817}
#nursery-play .np-reel-dialog :focus-visible{outline:3px solid #b83f2d;outline-offset:3px}
.reel-admin-dialog{width:min(94vw,760px);max-width:none;max-height:92dvh;margin:auto;padding:clamp(16px,3vw,28px);border:1px solid #d7e0d7;border-radius:22px;background:#fff;color:#193b3a;box-shadow:0 24px 80px #102e2c55;overflow:auto}
.reel-admin-dialog::backdrop{background:rgb(15 35 33 / .68);backdrop-filter:blur(3px)}
.reel-admin-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.reel-dialog-close{display:grid;flex:none;place-items:center;width:42px;height:42px;border:1px solid #193b3a30;border-radius:50%;background:#f7f7f2;color:#193b3a;font-size:1.8rem;line-height:1;cursor:pointer}
.reel-admin-dialog :focus-visible{outline:3px solid #b83f2d;outline-offset:3px}
@media(max-width:640px){#nursery-play .np-reels-section .np-section-head{gap:16px}#nursery-play .np-reels-controls button{width:42px;height:42px}#nursery-play .np-reels-track{grid-auto-columns:minmax(210px,78vw);gap:15px}#nursery-play .np-reel-dialog{width:calc(100vw - 16px);padding:12px;border-radius:16px}#nursery-play .np-reel-player{max-height:78dvh}#nursery-play .np-reel-player video{max-height:72dvh}}
@media(prefers-reduced-motion:reduce){#nursery-play .np-reel-open,#nursery-play .np-reel-play,#nursery-play .np-reels-controls button{transition:none!important;transform:none!important}#nursery-play .np-reels-track{scroll-behavior:auto!important}}


.reel-admin-dialog [aria-invalid="true"]{border-color:#a42d20!important;background:#fff7f5!important}
.reels-row{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;border-top:1px solid rgb(25 59 58 / .1);padding-top:1.25rem}
.reels-row .reels-preview{aspect-ratio:16/9;overflow:hidden;border-radius:.75rem;background:#193b3a}
.reels-row .reels-preview img,.reels-row .reels-preview video{display:block;width:100%;height:100%;object-fit:cover}
.reels-row .reels-copy{min-width:0}
.reels-row .reels-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.reels-row .line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(min-width:640px){.reels-row{grid-template-columns:150px minmax(0,1fr) auto;align-items:center}.reels-row .reels-actions{justify-content:flex-end}}
.reel-admin-dialog textarea.field{min-height:5rem}
