/* Estilos isolados da galeria, sem interferência no tema. */
.ytgp{--ytgp-bg:#fff;--ytgp-fg:#172033;--ytgp-muted:#596579;--ytgp-line:#e1e5eb;--ytgp-soft:#f4f6f8;--ytgp-accent:#e11d48;color:var(--ytgp-fg);background:var(--ytgp-bg);font-family:inherit;line-height:1.5;padding:clamp(12px,2.2vw,26px);border-radius:16px;max-width:100%;box-sizing:border-box;container-type:inline-size}
.ytgp-theme-dark{--ytgp-bg:#141821;--ytgp-fg:#f2f4f8;--ytgp-muted:#b1bac9;--ytgp-line:#353c4a;--ytgp-soft:#222936}
@media(prefers-color-scheme:dark){.ytgp-theme-auto{--ytgp-bg:#141821;--ytgp-fg:#f2f4f8;--ytgp-muted:#b1bac9;--ytgp-line:#353c4a;--ytgp-soft:#222936}}
.ytgp *{box-sizing:border-box}.ytgp [hidden]{display:none!important}.ytgp .ytgp-heading{color:var(--ytgp-fg);font-size:clamp(1.25rem,3vw,1.7rem);margin:0 0 18px;font-weight:650}.ytgp .ytgp-panel+.ytgp-heading{margin-top:35px}.ytgp .ytgp-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.ytgp button{font-family:inherit;cursor:pointer;text-transform:none;letter-spacing:normal;line-height:1.4}.ytgp .ytgp-filter,.ytgp .ytgp-more{border:1px solid var(--ytgp-line);color:var(--ytgp-fg);background:var(--ytgp-soft);border-radius:999px;padding:10px 18px;font-size:14px;font-weight:600;box-shadow:none}.ytgp .ytgp-filter[aria-pressed=true]{background:var(--ytgp-fg);color:var(--ytgp-bg);border-color:var(--ytgp-fg);box-shadow:inset 0 -3px var(--ytgp-accent)}.ytgp .ytgp-grid{display:grid;grid-template-columns:repeat(var(--ytgp-cols,3),minmax(0,1fr));gap:clamp(12px,2vw,22px);align-items:start}.ytgp .ytgp-grid[data-format=short]{grid-template-columns:repeat(var(--ytgp-short-cols,4),minmax(0,1fr))}.ytgp .ytgp-card{min-width:0;margin:0;background:var(--ytgp-bg);border:1px solid var(--ytgp-line);border-radius:14px;overflow:hidden;transition:box-shadow .2s,transform .2s}.ytgp .ytgp-card:hover{box-shadow:0 8px 25px #0002;transform:translateY(-2px)}.ytgp .ytgp-thumb{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:#101218;text-decoration:none}.ytgp .ytgp-grid[data-format=short] .ytgp-thumb{aspect-ratio:9/16}.ytgp .ytgp-grid[data-format=all] .ytgp-card-short .ytgp-thumb img{object-fit:contain}.ytgp .ytgp-thumb img{display:block;width:100%;height:100%;object-fit:cover;max-width:none;margin:0;border-radius:0}.ytgp .ytgp-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#111d;color:white;box-shadow:0 0 0 1px #ffffff50;transition:transform .2s}.ytgp .ytgp-thumb:hover .ytgp-play{transform:translate(-50%,-50%) scale(1.12);background:#151515}.ytgp .ytgp-badge{position:absolute;top:10px;left:10px;padding:4px 9px;color:#fff;background:#121212e6;font-size:11px;font-weight:650;border-radius:6px}.ytgp .ytgp-card-short .ytgp-badge{border-left:3px solid var(--ytgp-accent)}.ytgp .ytgp-meta{padding:13px 14px}.ytgp .ytgp-title{font-size:15px;font-weight:620;line-height:1.45;color:var(--ytgp-fg);margin:0;overflow-wrap:anywhere}.ytgp .ytgp-meta time{display:block;color:var(--ytgp-muted);font-size:12px;margin-top:6px}.ytgp .ytgp-more{display:block;margin:24px auto 0}.ytgp .ytgp-more:disabled,.ytgp .ytgp-filter:disabled{opacity:.55;cursor:wait}.ytgp .ytgp-channel{display:block;width:fit-content;margin:22px auto 0;color:var(--ytgp-fg);font-weight:600;font-size:14px;text-decoration:underline;text-underline-offset:3px}.ytgp .ytgp-empty,.ytgp .ytgp-message{color:var(--ytgp-muted);font-size:14px;text-align:center;margin:12px 0}.ytgp .ytgp-message:empty{display:none}.ytgp a:focus-visible,.ytgp button:focus-visible{outline:3px solid var(--ytgp-accent);outline-offset:3px}
@container (max-width:720px){.ytgp .ytgp-grid{grid-template-columns:repeat(min(var(--ytgp-cols,3),2),minmax(0,1fr))}.ytgp .ytgp-grid[data-format=short]{grid-template-columns:repeat(min(var(--ytgp-short-cols,4),3),minmax(0,1fr))}}
@container (max-width:480px){.ytgp .ytgp-grid{grid-template-columns:1fr}.ytgp .ytgp-grid[data-format=short]{grid-template-columns:repeat(2,minmax(0,1fr))}.ytgp .ytgp-title{font-size:14px}.ytgp .ytgp-play{width:42px;height:42px}}
@media(max-width:720px){.ytgp .ytgp-grid{grid-template-columns:repeat(min(var(--ytgp-cols,3),2),minmax(0,1fr))}.ytgp .ytgp-grid[data-format=short]{grid-template-columns:repeat(min(var(--ytgp-short-cols,4),3),minmax(0,1fr))}}
@media(max-width:480px){.ytgp .ytgp-grid{grid-template-columns:1fr}.ytgp .ytgp-grid[data-format=short]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.ytgp *{transition:none!important;scroll-behavior:auto!important}}

/* Identidade visual das abas e dos cartões. */
.ytgp{border-radius:20px;padding:clamp(8px,2vw,24px)}
.ytgp .ytgp-filters{display:flex;gap:4px;align-items:center;padding:5px;background:var(--ytgp-soft);border:1px solid var(--ytgp-line);border-radius:14px;width:fit-content;max-width:100%;margin:0 0 26px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
.ytgp .ytgp-filter{white-space:nowrap;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ytgp-muted);padding:11px 19px;box-shadow:none;font-weight:650}
.ytgp .ytgp-filter:hover{color:var(--ytgp-fg);background:var(--ytgp-bg)}
.ytgp .ytgp-filter[aria-pressed=true]{color:var(--ytgp-fg);background:var(--ytgp-bg);border-color:var(--ytgp-line);box-shadow:0 2px 5px #0001,inset 0 -2px var(--ytgp-accent)}
.ytgp .ytgp-card{border-radius:16px;box-shadow:0 3px 12px #11182708;transition:transform .2s,box-shadow .2s}
.ytgp .ytgp-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #1118271a}
.ytgp .ytgp-thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0005,transparent 65%);pointer-events:none}
.ytgp .ytgp-play{z-index:1;background:#101218c9;border:1px solid #ffffff65;box-shadow:0 4px 20px #0005;backdrop-filter:blur(8px);width:56px;height:56px}
.ytgp .ytgp-badge{z-index:2;left:auto;right:10px;background:#0c101bcb;border:1px solid #ffffff24;backdrop-filter:blur(8px);font-size:11px;letter-spacing:.2px;border-radius:7px}
.ytgp .ytgp-meta{padding:15px 16px 17px}.ytgp .ytgp-title{font-size:15px;line-height:1.5;font-weight:650}
.ytgp .ytgp-more{border-radius:10px;background:var(--ytgp-bg);padding:12px 24px;box-shadow:0 3px 8px #0001}
.ytgp .ytgp-more:hover{border-color:var(--ytgp-accent)}
.ytgp .ytgp-list-cover{display:grid;place-items:center;width:100%;height:100%;color:#ffffff50;background:linear-gradient(135deg,#242c3d,#0c101b)}
.ytgp .ytgp-card-playlist .ytgp-thumb:before{content:"";position:absolute;z-index:1;top:0;right:0;width:28%;height:100%;background:#10131b88}
.ytgp .ytgp-grid[data-format=all]:has(.ytgp-card-short):not(:has(.ytgp-card:not(.ytgp-card-short))){grid-template-columns:repeat(var(--ytgp-short-cols,4),minmax(0,1fr))}
.ytgp .ytgp-grid[data-format=all]:has(.ytgp-card-short):not(:has(.ytgp-card:not(.ytgp-card-short))) .ytgp-thumb{aspect-ratio:9/16}
.ytgp .ytgp-grid[data-format=all]:has(.ytgp-card-short):not(:has(.ytgp-card:not(.ytgp-card-short))) .ytgp-thumb img{object-fit:cover}













@container(max-width:720px){.ytgp .ytgp-grid[data-format=all]:has(.ytgp-card-short):not(:has(.ytgp-card:not(.ytgp-card-short))){grid-template-columns:repeat(min(var(--ytgp-short-cols,4),3),minmax(0,1fr))}}
@container(max-width:480px){.ytgp .ytgp-grid[data-format=all]:has(.ytgp-card-short):not(:has(.ytgp-card:not(.ytgp-card-short))){grid-template-columns:repeat(2,minmax(0,1fr))}.ytgp .ytgp-filters{width:100%}.ytgp .ytgp-filter{padding:10px 14px}.ytgp .ytgp-meta{padding:12px}.ytgp .ytgp-play{width:44px;height:44px}}
.ytgp .ytgp-filter-count{display:inline-block;margin-left:4px;padding:1px 6px;min-width:21px;border-radius:6px;font-size:11px;font-weight:650;background:var(--ytgp-line);color:var(--ytgp-muted);line-height:1.5;vertical-align:1px}.ytgp .ytgp-filter[aria-pressed=true] .ytgp-filter-count{color:var(--ytgp-fg)}

/* Versão 1.4: janela sem cabeçalho, rodapé ou rolagem.
   O player é limitado simultaneamente pela largura e altura visíveis. */
html.ytgp-modal-aberto, html.ytgp-modal-aberto body { overflow:hidden !important; }
.ytgp .ytgp-dialog {
  position:fixed; inset:0; margin:0; padding:0; border:0; border-radius:0;
  width:100%; height:100%; max-width:none; max-height:none;
  background:transparent; color:#fff; box-shadow:none; overflow:hidden;
  box-sizing:border-box; overscroll-behavior:contain;
  --ytgp-altura:100vh; --ytgp-largura:100vw;
}
@supports(height:100dvh){.ytgp .ytgp-dialog{--ytgp-altura:100dvh;--ytgp-largura:100dvw}}
.ytgp .ytgp-dialog:not([open]) { display:none; }
.ytgp .ytgp-dialog[open] { display:grid; place-items:center; }
.ytgp .ytgp-dialog::backdrop { background:#080b13df; backdrop-filter:blur(7px); }
.ytgp .ytgp-dialog .ytgp-player {
  display:block; padding:0; border:0; margin:0; min-width:0; min-height:0;
  width:min(1120px, calc(var(--ytgp-largura) - 24px), calc((var(--ytgp-altura) - 100px) * 16 / 9));
  max-width:none; max-height:none; height:auto; aspect-ratio:16/9;
  background:#000; border-radius:12px; overflow:hidden; box-shadow:0 18px 65px #0009;
}
.ytgp .ytgp-dialog.is-short .ytgp-player {
  width:min(540px, calc(var(--ytgp-largura) - 24px), calc((var(--ytgp-altura) - 100px) * 9 / 16));
  aspect-ratio:9/16;
}
.ytgp .ytgp-dialog .ytgp-player iframe {
  display:block; width:100%; height:100%; max-width:none; max-height:none;
  min-width:0; min-height:0; margin:0; padding:0; border:0; border-radius:0;
}
/* Único controle externo ao vídeo: fechar. Posicionado fora do player. */
.ytgp .ytgp-dialog .ytgp-close {
  position:absolute; z-index:2; top:max(6px, env(safe-area-inset-top, 0px));
  right:max(12px, env(safe-area-inset-right, 0px));
  display:grid; place-items:center; width:40px; height:40px; min-width:0; min-height:0;
  margin:0; padding:0; border:1px solid #ffffff48; border-radius:50%;
  background:#171b24e6; color:#fff; font-size:28px; font-weight:400; line-height:1;
  box-shadow:none; text-decoration:none; cursor:pointer;
}
.ytgp .ytgp-dialog .ytgp-close:hover { background:#414b60; }
.ytgp .ytgp-dialog .ytgp-close:focus-visible { outline:2px solid #fff; outline-offset:2px; }
/* Compatibilidade temporária com HTML antigo armazenado em cache. */
.ytgp .ytgp-dialog .ytgp-dialog-bar { display:contents; }
.ytgp .ytgp-dialog .ytgp-dialog-bar > div, .ytgp .ytgp-dialog .ytgp-dialog-foot { display:none !important; }
@media(max-height:240px){
  .ytgp .ytgp-dialog .ytgp-player { width:min(1120px, calc(var(--ytgp-largura) - 24px), calc((var(--ytgp-altura) - 72px) * 16 / 9)); }
  .ytgp .ytgp-dialog.is-short .ytgp-player { width:min(540px, calc(var(--ytgp-largura) - 24px), calc((var(--ytgp-altura) - 72px) * 9 / 16)); }
  .ytgp .ytgp-dialog .ytgp-close { width:28px; height:28px; font-size:22px; }
}
