/* Explore templates page. Builds on studio-marketing.css tokens (charcoal, lavender, ivory). */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.explore-hero{padding-bottom:28px}
.explore{padding:10px 0 34px;border-bottom:1px solid #2f2c39}
.explore-bar{position:sticky;top:0;z-index:5;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px 0;margin-bottom:18px;background:linear-gradient(#101114 78%,#10111400)}
.explore-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid #3b3c47;background:#1b1c22;color:#cfcbd9;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:550;cursor:pointer;min-height:38px}
.chip span{color:#8f8a9e;font-weight:500;margin-left:3px}
.chip:hover{border-color:#6c5b83;background:#221f2b}
.chip[aria-pressed="true"]{background:#bca6f8;border-color:#cbb7fb;color:#26193b}
.chip[aria-pressed="true"] span{color:#4a3a66}
.chip:focus-visible,.explore-search input:focus-visible,.tpl-poster:focus-visible{outline:2px solid #ccb5ff;outline-offset:3px}
.explore-search{flex:0 1 330px}
.explore-search input{width:100%;min-height:40px;border:1px solid #3b3c47;background:#17181d;color:#f5f3f8;border-radius:9px;padding:9px 13px;font:inherit;font-size:13px}
.explore-search input::placeholder{color:#7f7a8d}
.explore-empty{color:#aaa7b7;font-size:13px;padding:30px 0;text-align:center}
.tpl-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.tpl{border:1px solid #32323d;background:#191a20;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.tpl[hidden]{display:none}
.tpl:hover{border-color:#6c5b83;background:#1f1d27}
.tpl-poster{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;border-bottom:1px solid #34303d;background:radial-gradient(120% 90% at 22% 12%,var(--a) 0,transparent 58%),radial-gradient(90% 80% at 90% 100%,color-mix(in srgb,var(--a) 45%,transparent) 0,transparent 60%),linear-gradient(160deg,var(--b),#121218 85%)}
.tpl-poster::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 55%,#0e0e13a8);pointer-events:none}
.tpl-poster img,.tpl-poster video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tpl-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;border:1px solid #ffffff5c;border-radius:8px;background:#ffffff14;backdrop-filter:blur(3px);box-shadow:0 12px 30px #00000040,inset 0 1px #ffffff26;transition:transform .35s ease}
.tpl-frame.wide{width:60%;aspect-ratio:16/9}
.tpl-frame.tall{height:76%;aspect-ratio:9/16}
.tpl-frame.square{width:46%;aspect-ratio:1}
.tpl-frame b{font-size:26px;font-weight:400;color:#fffdf8;text-shadow:0 2px 12px #0006}
.tpl-frame.wave{width:62%;height:42%;display:flex;align-items:center;justify-content:center;gap:6%;border-radius:999px}
.tpl-frame.wave i{display:block;width:4%;border-radius:4px;background:#fffdf8d9;height:30%;animation:tpl-wave 1.4s ease-in-out infinite}
.tpl-frame.wave i:nth-child(2){height:58%;animation-delay:-.2s}.tpl-frame.wave i:nth-child(3){height:80%;animation-delay:-.4s}.tpl-frame.wave i:nth-child(4){height:48%;animation-delay:-.6s}.tpl-frame.wave i:nth-child(5){height:70%;animation-delay:-.8s}.tpl-frame.wave i:nth-child(6){height:40%;animation-delay:-1s}.tpl-frame.wave i:nth-child(7){height:24%;animation-delay:-1.2s}
@keyframes tpl-wave{50%{transform:scaleY(.55)}}
.tpl:hover .tpl-frame{transform:translate(-50%,-50%) scale(1.06)}
.tpl-chip,.tpl-ratio{position:absolute;top:11px;z-index:1;font-size:9px;letter-spacing:1.2px;text-transform:uppercase;padding:4px 8px;border-radius:5px;background:#0f0f14b8;color:#efe9fb;border:1px solid #ffffff24}
.tpl-chip{left:11px}.tpl-ratio{right:11px;letter-spacing:.6px}
.tpl-body{padding:16px 16px 18px;display:flex;flex-direction:column;flex:1;gap:9px}
.tpl-body h3{margin:0;font-size:16px;font-weight:550;letter-spacing:-.3px;line-height:1.35}
.tpl-body>p{margin:0;font-size:12px;color:#aaa7b6;line-height:1.65}
.tpl-prompt summary{cursor:pointer;font-size:11px;color:#bba9dd;width:max-content}
.tpl-prompt p{margin:7px 0 0;font-size:11px;line-height:1.65;color:#c7c1d2;background:#14141a;border:1px solid #2f2d38;border-radius:7px;padding:9px 10px}
.tpl-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:auto;padding-top:4px}
.tpl-model,.tpl-needs{font-size:10px;color:#cfcbd9;border:1px solid #3b3a46;border-radius:4px;padding:3px 7px}
.tpl-needs{color:#d9c9a3;border-color:#5a4e36}
.tpl-meta .status{margin-top:0}
.status.planned{border-color:#4a4a55;color:#a7a5b2}
.tpl .button{width:100%;min-height:42px;margin-top:4px}
.flow-section .flow{grid-template-columns:repeat(3,1fr)}
@media(max-width:1200px){.tpl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.tpl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.explore-search{flex:1 1 100%}}
@media(max-width:560px){.tpl-grid{grid-template-columns:1fr}.explore-bar{position:static}.chip{padding:7px 11px;font-size:11px}.flow-section .flow{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.tpl-frame{transition:none}.tpl:hover .tpl-frame{transform:translate(-50%,-50%)}.tpl-frame.wave i{animation:none}}
.tpl-poster img{transition:transform .45s ease}
.tpl:hover .tpl-poster img{transform:scale(1.04)}
.tpl-play{position:absolute;left:50%;top:50%;z-index:1;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#0f0f14a6;border:1px solid #ffffff4d;color:#fffdf8;font-size:15px;backdrop-filter:blur(3px);opacity:.85;transition:opacity .25s}
.tpl:hover .tpl-play{opacity:1}
@media(prefers-reduced-motion:reduce){.tpl-poster img{transition:none}.tpl:hover .tpl-poster img{transform:none}}
.teaser-more{text-align:center;margin-top:24px}
