/* Organização: estilos restritos às bibliotecas e ao Início. Não atingem o Cinema. */
.bib-page{--bib-accent:#c7b2fa}
.bib-page> * + *{margin-top:24px}
.bib-page>.secao-cab{margin-bottom:0}
.bib-page>.secao-cab + .bib-categories{margin-top:20px}
.bib-page .cabecalho{padding-bottom:24px;min-height:0}
.bib-page .cabecalho h1{font-size:clamp(25px,3vw,34px)}
.bib-page .cab-desc{max-width:720px}
.bib-total{font-size:12px;color:var(--texto-2);margin:13px 0 0}
.bib-page .bib-has-tutorial .trilha{margin-bottom:0;padding-bottom:22px}
.bib-hero-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);align-items:center;gap:32px}
.bib-hero-copy{min-width:0}
.bib-hero-tutorial{min-width:0;overflow:hidden;border:1px solid #d3b6fa4d;border-radius:17px;background:#100e1ee8;box-shadow:0 12px 32px #03040c55}
.bib-hero-caption{padding:14px 17px;border-bottom:1px solid #c9b3ee26}
.bib-hero-caption>span{display:block;font-size:9px;line-height:1.5;letter-spacing:.15em;text-transform:uppercase;color:#cab0ef}
.bib-hero-caption h2{margin:5px 0 0;font:500 13px/1.5 var(--fonte-titulo);letter-spacing:0;color:#f1e9ff}
.bib-hero-tutorial .video-box{aspect-ratio:16/9}
.bib-hero-tutorial .video-box video{display:block;object-fit:contain}
.bib-hero-tutorial .btn-midia{left:12px;bottom:12px;height:42px;font-size:13px;padding-right:13px;max-width:calc(100% - 24px)}
.bib-hero-tutorial .btn-midia small{font-size:11px}
.bib-hero-tutorial .play-bola{width:30px;height:30px;flex-shrink:0}
.bib-hero-tutorial button:focus-visible{outline:2px solid #e4d0ff;outline-offset:3px}
@media(max-width:1050px){.bib-hero-main{grid-template-columns:minmax(0,1fr) minmax(240px,290px);gap:22px}}
@media(max-width:850px){.bib-hero-main{grid-template-columns:minmax(0,1fr);gap:22px}.bib-hero-tutorial{width:100%;max-width:420px}.bib-page .bib-has-tutorial .trilha{padding-bottom:18px}}
.bib-toolbar{display:flex;gap:18px;align-items:end;flex-wrap:wrap}
.bib-search{flex:1 1 360px;min-width:0}
.bib-search label,.bib-select{font-size:12px;color:var(--texto-2);display:flex;flex-direction:column;gap:9px}
.bib-search>div{display:flex;align-items:center;gap:10px;min-height:51px;padding:5px 6px 5px 15px;border:1px solid var(--borda-2);border-radius:14px;background:#15122199}
.bib-search input{background:transparent;color:var(--texto);font:inherit;font-size:13px;border:0;outline:none;min-width:0;width:100%;height:36px}
.bib-search input::placeholder{color:var(--texto-3)}
.bib-search>div:focus-within{border-color:var(--bib-accent);box-shadow:0 0 0 3px #b190e51a}
.bib-search .ic{flex-shrink:0;width:18px;height:18px;color:var(--texto-3)}
.bib-search .btn{flex-shrink:0;min-height:36px}
.bib-select select{font:inherit;font-size:12px;color:var(--texto);background:#171323;border:1px solid var(--borda-2);border-radius:12px;padding:13px 32px 13px 12px;min-height:49px;max-width:100%;color-scheme:dark}
.bib-select select:focus-visible,.bib-page a:focus-visible,.bib-home a:focus-visible,.bib-page summary:focus-visible{outline:2px solid #dccaff;outline-offset:4px}
.bib-search-links{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:12px}
.bib-search-links .link-acao{font-size:12px}
.bib-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.bib-category{display:flex;flex-direction:column;border:1px solid #b5a3d442;border-radius:21px;overflow:hidden;background:linear-gradient(140deg,#38304d28,#111321db);text-decoration:none;color:var(--texto);transition:border-color .2s,transform .2s;min-width:0}
.bib-category:hover{border-color:#c4a8ed99;transform:translateY(-3px)}
.bib-category-art{height:104px;position:relative;display:flex;align-items:center;justify-content:space-between;padding:22px;background:radial-gradient(ellipse at 90% -40%,hsl(var(--bib-hue) 38% 44% / .4),transparent 80%),#151325;overflow:hidden}
.bib-category-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#12101dbc,#11132038)}
.bib-category-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;opacity:.52}
.bib-category-icon{position:relative;z-index:1;width:44px;height:44px;border-radius:13px;background:#9b7ad425;border-color:#c2a1f766;color:#e1d0ff}
.bib-category-art>span:last-child{position:relative;z-index:1;font-size:30px;line-height:1;font-weight:400;letter-spacing:-1px;color:#f0e7ff80}
.bib-category-body{padding:20px;display:flex;flex-direction:column;gap:11px;flex:1}
.bib-category-count{font-size:11px;color:#c0a8e8}
.bib-category h2{font:500 18px/1.4 var(--fonte-titulo);letter-spacing:-.5px;margin:0}
.bib-category p{font-size:12px;line-height:1.7;color:var(--texto-2);margin:0 0 8px}
.bib-category .link-acao{font-size:12px;margin-top:auto;color:#dfcbfc}
.bib-all{align-self:flex-start;font-size:12px;margin-top:2px}
.bib-family{display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid var(--borda-1);border-radius:18px;background:#20172e30}
.bib-family .chips{flex-wrap:wrap;overflow:visible}
.bib-family .chip{white-space:normal;text-decoration:none;font-size:12px;min-height:40px}
.bib-family .chip[aria-current]{border-color:#ba9de7;background:#a984d529;color:#f1e6ff}
.bib-results{display:flex;flex-direction:column;gap:20px}
.bib-results-header{display:flex;justify-content:space-between;align-items:center;gap:16px}
.bib-results-header p{font-size:12px;color:var(--texto-2);line-height:1.6;margin:0}
.bib-results-header .bib-select{flex-direction:row;align-items:center;flex-shrink:0}
.bib-results-header select{min-height:39px;padding-top:9px;padding-bottom:9px}
.bib-items{grid-template-columns:repeat(3,minmax(0,1fr))}
.bib-items .card-meta{color:var(--texto-3);font-size:11px}
.bib-items .etiqueta{font-size:10px}
.bib-items .card-desc{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.bib-items .card-media{aspect-ratio:16/10}
.bib-items .card-media img{object-fit:cover}
.bib-items.grade-cofre .card-media{aspect-ratio:4/3}
.bib-items.grade-cofre .card-media img{object-fit:contain;background:#0a0910}
.bib-pagination{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;padding:8px 0}
.bib-pagination .btn{min-width:40px;min-height:40px}
.bib-help{border:1px solid var(--borda-1);border-radius:17px;background:#19152550;overflow:hidden;margin-top:8px}
.bib-help summary{display:flex;gap:12px;align-items:center;padding:18px 20px;cursor:pointer;list-style:none;font-size:13px}
.bib-help summary::-webkit-details-marker{display:none}
.bib-help summary span{flex:1}
.bib-help summary>.ic{width:19px;height:19px;color:var(--texto-2)}
.bib-help[open] summary{border-bottom:1px solid var(--borda-1)}
.bib-help .tut-card,.bib-help .como-card{margin:0;border:0;border-radius:0;background:transparent}
.bib-help-body{padding:12px 22px 22px;font-size:13px;line-height:1.85;color:var(--texto-2)}
.bib-help-body p{margin:10px 0}
.bib-library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.bib-library{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:22px 19px;border:1px solid #b5a3d442;border-radius:20px;background:radial-gradient(ellipse at 90% 0,#77609119,transparent 75%),linear-gradient(140deg,#38304d28,#111321db);text-decoration:none;color:var(--texto);min-width:0;transition:transform .2s,border-color .2s}
.bib-library:hover{transform:translateY(-3px);border-color:#c4a8ed99}
.bib-library-ic{width:40px;height:40px;border-radius:12px}
.bib-library-count{color:var(--texto-3);font-size:10px}
.bib-library h3{font-size:16px;line-height:1.4;letter-spacing:-.5px;font-weight:500;margin:0}
.bib-library p{font-size:12px;line-height:1.75;color:var(--texto-2);margin:0 0 8px}
.bib-library-open{font-size:11px;display:flex;gap:8px;align-items:center;margin-top:auto;color:#d9c5f7}
.bib-library-open .ic{width:16px;height:16px}
.bib-cofre{display:flex;align-items:center;gap:20px;padding:26px;border:1px solid #c6a2ed60;border-radius:22px;background:radial-gradient(ellipse at 100% 40%,#8262b12b,transparent 70%),#161121;text-decoration:none;color:var(--texto)}
.bib-cofre>span:nth-child(2){display:flex;flex-direction:column;gap:8px;flex:1}
.bib-cofre-ic{width:52px;height:52px;border-radius:16px;flex-shrink:0}
.bib-cofre small{font-size:10px;letter-spacing:.17em;color:#c5a6ef}
.bib-cofre b{font-size:19px;line-height:1.4;font-weight:500;letter-spacing:-.5px}
.bib-cofre>span>span{font-size:12px;color:var(--texto-2)}
.bib-cofre-cta{font-size:12px;display:flex;align-items:center;gap:10px;flex-shrink:0;color:#dec7ff}
.bib-cofre:hover{border-color:#c4a8ed99}
.bib-home .hangar{min-height:350px}
.bib-home .hangar-txt>.hangar-rodape{max-width:430px}
.bib-home .missao .desc{display:none}
.bib-home .missao{padding:10px}
.bib-home .missoes-painel{gap:8px}
@media(max-width:1250px){.bib-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bib-categories,.bib-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:719px){.bib-page{gap:18px}.bib-page .cabecalho{padding:22px}.bib-search{flex-basis:100%}.bib-toolbar{gap:14px}.bib-toolbar>.bib-select{width:100%}.bib-search input{font-size:16px}.bib-search input::placeholder{font-size:12px}.bib-categories{grid-template-columns:1fr;gap:14px}.bib-category{display:grid;grid-template-columns:82px minmax(0,1fr);border-radius:17px}.bib-category-art{height:100%;padding:17px;align-items:flex-start;flex-direction:column}.bib-category-art img{object-position:center}.bib-category-art>span:last-child{font-size:24px}.bib-category-body{padding:18px}.bib-category h2{font-size:17px}.bib-category p{margin-bottom:0}.bib-category .link-acao{margin-top:2px}.bib-family{padding:16px}.bib-family .chips{gap:8px}.bib-family .chip{font-size:11px}.bib-results-header{flex-wrap:wrap}.bib-results-header .bib-select{width:100%;justify-content:space-between}.bib-items{grid-template-columns:minmax(0,1fr)}.bib-library-grid{gap:12px}.bib-library{padding:18px 15px;border-radius:17px}.bib-library h3{font-size:15px}.bib-library p{font-size:11px}.bib-cofre{padding:22px;flex-wrap:wrap;gap:15px}.bib-cofre b{font-size:17px}.bib-cofre-cta{width:100%;padding-top:10px;border-top:1px solid var(--borda-1)}.bib-home .hangar{min-height:0}}
@media(prefers-reduced-motion:reduce){.bib-category,.bib-library{transition:none}.bib-category:hover,.bib-library:hover{transform:none}}
/* Coleção de prompts: orientação curta no banner e sequências opcionais. */
.bib-page .bib-prompt-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:18px 20px;border:1px solid rgba(178,156,255,.24);border-radius:16px;background:rgba(99,70,177,.12)}
.bib-page .bib-prompt-intro b{font-size:15px;color:var(--texto,#f2efff)}
.bib-page .bib-prompt-intro p{margin:6px 0 0;font-size:14px;line-height:1.55;color:var(--muted,#b7afca)}
.bib-page .bib-prompt-intro a{flex-shrink:0}
.bib-page .bib-prompt-path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px}
.bib-page .bib-prompt-path-grid section{padding:20px;border:1px solid rgba(178,156,255,.16);border-radius:14px;background:rgba(110,85,180,.06);min-width:0}
.bib-page .bib-prompt-path-grid h3{margin:0 0 8px;font-size:17px;line-height:1.4}
.bib-page .bib-prompt-path-grid p{margin:0 0 16px;color:var(--muted,#b7afca);font-size:14px;line-height:1.6}
.bib-page .bib-prompt-path-grid ol{margin:0;padding-left:22px;display:grid;gap:12px}
.bib-page .bib-prompt-path-grid li{padding-left:4px;color:#b5a6d7;font-size:14px;line-height:1.5}
.bib-page .bib-prompt-path-grid a{color:#ddd3ff;text-decoration:underline;text-underline-offset:4px}
.bib-page .bib-prompt-path-grid a:hover{color:#fff}
@media(max-width:719px){.bib-page .bib-prompt-intro{align-items:flex-start;flex-direction:column;padding:16px}.bib-page .bib-prompt-intro a{max-width:100%;white-space:normal}.bib-page .bib-prompt-path-grid{grid-template-columns:1fr;padding:12px}.bib-page .bib-prompt-path-grid section{padding:16px}}

/* Capas Mestres Play: categorias de Prompts e Skills. */
.bib-page .bib-category-cover{background:#0c101b;border-color:#a8b4d52e}
.bib-page .bib-category-cover:hover{border-color:var(--cover-accent);box-shadow:0 12px 30px #0003}
.bib-page .bib-category-cover .bib-category-art{height:auto;aspect-ratio:16/9;padding:18px;align-items:flex-start;justify-content:flex-start;background:#080d17}
.bib-page .bib-category-cover .bib-category-art::after{background:linear-gradient(0deg,#0c101b 0%,transparent 27%)}
.bib-page .bib-category-cover .bib-category-art img{opacity:1;object-fit:cover;object-position:center;transition:transform .35s ease}
.bib-page .bib-category-cover:hover .bib-category-art img{transform:scale(1.025)}
.bib-page .bib-category-cover .bib-cover-number{display:grid;place-items:center;width:32px;height:32px;border:1px solid #a8b4d536;border-radius:10px;background:#080d1799;color:var(--cover-accent);font-size:12px;letter-spacing:.06em}
.bib-page .bib-category-cover .bib-category-body{padding-top:10px}
.bib-page .bib-category-cover .bib-category-count,.bib-page .bib-category-cover .link-acao{color:var(--cover-accent)}
.bib-page .cabecalho.bib-cover-hero{position:relative;isolation:isolate;overflow:hidden;background:#080d17;min-height:330px;padding:28px 34px 32px}
.bib-page .bib-cover-hero .bib-cover-hero-art{position:absolute;z-index:0;right:0;top:0;width:67%;height:100%;object-fit:contain;object-position:right center;pointer-events:none}
.bib-page .bib-cover-hero>:not(.bib-cover-hero-art){position:relative;z-index:1}
.bib-page .bib-cover-hero .cab-linha{max-width:60%}
.bib-page .bib-cover-hero h1{font-size:clamp(26px,3vw,36px);line-height:1.2}
.bib-page .bib-cover-hero .cab-desc{max-width:52%;line-height:1.7}
.bib-page .bib-cover-hero .cab-ic{color:var(--cover-accent);border-color:var(--cover-accent);background:#0d1424}
.bib-page .bib-cover-hero .bib-total{color:var(--cover-accent)}
@media(max-width:719px){
 .bib-page .bib-category-cover{display:flex;flex-direction:column}
 .bib-page .bib-category-cover .bib-category-art{width:100%;height:auto;aspect-ratio:16/9;padding:16px}
 .bib-page .bib-category-cover .bib-category-body{padding:10px 18px 20px}
 .bib-page .bib-category-cover h2{font-size:20px;line-height:1.3}
 .bib-page .cabecalho.bib-cover-hero{min-height:0;padding:20px 22px 24px}
 .bib-page .bib-cover-hero .trilha{order:0;margin-bottom:0;padding-bottom:10px}
 .bib-page .bib-cover-hero .bib-cover-hero-art{position:relative;order:1;right:auto;top:auto;width:calc(100% + 44px);max-width:none;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;margin:0 -22px 14px}
 .bib-page .bib-cover-hero .cab-linha{order:2;max-width:100%}
 .bib-page .bib-cover-hero .cab-desc{order:3;max-width:100%}
 .bib-page .bib-cover-hero .bib-total{order:4}
 .bib-page .bib-cover-hero h1{font-size:27px}
}
@media(prefers-reduced-motion:reduce){.bib-page .bib-category-cover .bib-category-art img{transition:none}.bib-page .bib-category-cover:hover .bib-category-art img{transform:none}}

/* Categorias com tutorial: arte na coluna do título, vídeo em destaque à direita. */
.bib-page .bib-cover-hero.bib-has-tutorial .bib-hero-copy{position:relative;isolation:isolate;min-height:260px;display:flex;flex-direction:column;justify-content:center}
.bib-page .bib-cover-hero.bib-has-tutorial .bib-cover-hero-art{top:0;right:-14px;width:83%;height:100%;object-fit:contain;object-position:right center;mask-image:radial-gradient(ellipse 66% 76% at 60% 50%,#000 55%,transparent 100%)}
.bib-page .bib-cover-hero.bib-has-tutorial .cab-linha,.bib-page .bib-cover-hero.bib-has-tutorial .cab-desc{max-width:54%}
.bib-page .bib-cover-hero .bib-hero-copy>:not(.bib-cover-hero-art){position:relative;z-index:1}
@media(max-width:1250px){
 .bib-page .bib-cover-hero.bib-has-tutorial .bib-hero-copy{min-height:0;padding-top:160px;display:block}
 .bib-page .bib-cover-hero.bib-has-tutorial .bib-cover-hero-art{top:-18px;right:0;width:100%;height:180px}
 .bib-page .bib-cover-hero.bib-has-tutorial .cab-linha,.bib-page .bib-cover-hero.bib-has-tutorial .cab-desc{max-width:100%}
}
@media(max-width:850px){
 .bib-page .bib-cover-hero.bib-has-tutorial .bib-hero-copy{padding-top:0;display:flex;flex-direction:column}
 .bib-page .bib-cover-hero.bib-has-tutorial .bib-cover-hero-art{position:relative;top:auto;right:auto;width:100%;height:220px;object-position:center;margin:0 0 14px}
}
@media(max-width:719px){
 .bib-page .bib-cover-hero.bib-has-tutorial .bib-cover-hero-art{width:calc(100% + 44px);height:auto;aspect-ratio:16/9;margin:0 -22px 14px}
 .bib-page .bib-cover-hero.bib-has-tutorial .bib-hero-main{order:1}
}

/* Prévias reais dos aplicativos: a interface inteira permanece visível. */
.app-preview.card.kit .card-media{aspect-ratio:16/10;background:#111319}
.app-preview-open{position:relative;display:block;width:100%;height:100%;padding:0 0 40px;border:0;background:transparent;color:#fff;cursor:zoom-in;text-align:left}
.app-preview.card.kit .card-media .app-preview-open img{position:static;display:block;width:100%;height:100%;object-fit:contain;transform:none}
.app-preview-open>span{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:center;gap:7px;height:40px;background:#161921;border-top:1px solid rgba(255,255,255,.09);font:600 12px/1 var(--fonte-texto);color:#dce2ec;transition:background .15s,color .15s}
.app-preview-open .ic{width:15px;height:15px}
.app-preview-open:hover>span{background:#252d3a;color:#fff}
.app-preview-open:focus-visible{outline:2px solid #d9c6ff;outline-offset:-3px}
#it-media.app-preview img{max-height:360px;object-fit:contain;background:#111319}
.galeria.app-screenshots.uma{grid-template-columns:minmax(0,1fr)}
.galeria.app-screenshots .ex-thumb img{aspect-ratio:2/1;object-fit:contain;background:#111319}
.galeria-aberta{overflow:hidden}
