/* Explorar: biblioteca de vídeos de referência com prompt para recriar */
.explorar-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.exp-item { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--fundo-2); cursor: pointer; }
.exp-item.r34 { aspect-ratio: 3 / 4; align-self: start; }
.exp-item.h { aspect-ratio: 16 / 9; grid-column: span 2; align-self: start; }
.exp-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.exp-item:hover video { transform: scale(1.04); }
.exp-sobre { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; display: grid; gap: 3px; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / 82%)); }
.exp-sobre b { font-size: 15px; line-height: 1.15; }
.exp-sobre span { font-size: 11.5px; opacity: 0.8; }
.exp-botoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.exp-sobre .exp-botoes .pri { padding: 8px 14px; font-size: 13px; }
.exp-sobre .exp-botoes .sec { padding: 7px 12px; font-size: 12.5px; background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 25%); color: #fff; backdrop-filter: blur(6px); }
@media (hover: hover) {
  .exp-sobre .exp-botoes { opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
  .exp-item:hover .exp-botoes, .exp-item:focus-within .exp-botoes { opacity: 1; transform: none; }
}

.exp-detalhe { border: 0; padding: 0; border-radius: 20px; max-width: min(900px, calc(100vw - 32px)); width: 100%; background: var(--fundo); color: var(--texto); box-shadow: var(--sombra); overflow: hidden; }
.exp-detalhe[open] { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.exp-detalhe::backdrop { background: rgb(0 0 0 / 65%); backdrop-filter: blur(4px); }
.exp-detalhe-midia { background: #000; display: grid; place-items: center; max-height: 86vh; }
.exp-detalhe-midia video { width: 100%; max-height: 86vh; object-fit: contain; display: block; }
.exp-detalhe-texto { position: relative; padding: 22px 22px 18px; display: grid; gap: 8px; align-content: start; overflow: auto; max-height: 86vh; }
.exp-detalhe-texto small { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--texto-2); }
.exp-detalhe-texto h3 { margin: 0; font-size: 22px; }
.exp-detalhe-texto p { margin: 0; color: var(--texto-2); font-size: 14px; }
.exp-detalhe-texto label { font-weight: 800; font-size: 13px; margin-top: 6px; }
.exp-detalhe-texto textarea { width: 100%; resize: vertical; font: 13px/1.5 ui-monospace, Consolas, monospace; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo-2); color: var(--texto); }
.exp-detalhe-texto .exp-botoes .pri { padding: 11px 18px; font-size: 14px; }
.exp-detalhe-texto .exp-dica { font-size: 12.5px; }
.exp-fechar { position: absolute; top: 10px; right: 12px; border: 0; background: var(--fundo-2); color: var(--texto); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 700px) {
  .explorar-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .exp-detalhe[open] { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .exp-detalhe-midia, .exp-detalhe-midia video { max-height: 42vh; }
  .exp-detalhe-texto { max-height: none; }
}
