
#detalhes {
    width: min(760px, 94vw);
    max-height: 90dvh;
    padding: 0;
    border: 1px solid #38334d;
    border-radius: 18px;
    background: #101424;
    color: #f7f7fc;
    box-shadow: 0 30px 100px #000;
    overflow-y: auto;
}
#detalhes::backdrop {
    background: rgba(0, 0, 0, .90);
    backdrop-filter: blur(7px);
}
#detalhes .dialog-body {
    padding: 24px;
    background: #101424;
}
#detalhes .dialog-close {
    position: sticky;
    top: 0;
    z-index: 3;
    float: right;
    background: #252b40;
    border: 1px solid #ffffff25;
    border-radius: 50%;
    width: 38px;
    height: 38px;
}
#detalhes .popup-banner {
    width: 100%;
    max-height: 330px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
}
#detalhes .popup-titulo {
    font-size: 26px;
    font-weight: 800;
    margin: 8px 0 12px;
}
#detalhes .popup-meta {
    color: #b8bdd0;
    font-size: 12px;
    line-height: 1.8;
}
#detalhes .popup-sinopse {
    font-size: 14px;
    line-height: 1.8;
    color: #e1e3ed;
}
#detalhes .popup-preco {
    color: #c7a8ff;
    font-weight: 800;
    margin-top: 18px;
}
#detalhes .popup-acoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
#detalhes .popup-acoes a,
#detalhes .popup-acoes button {
    padding: 13px 18px;
    border-radius: 9px;
    border: 0;
    background: #8754ee;
    color: white;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
#detalhes .popup-acoes button:disabled {
    background: #34394b;
    color: #c4c7d2;
    cursor: default;
}
@media(max-width:760px) {
    #detalhes .dialog-body { padding: 16px; }
    #detalhes .popup-titulo { font-size: 21px; }
    #detalhes .popup-banner { max-height: 220px; }
}



#detalhes {
    width: min(760px, 94vw);
    max-height: 92dvh;
    border: 1px solid #38334d;
    border-radius: 18px;
    background: #101424;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 35px 110px #000;
}

#detalhes::backdrop {
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(9px);
}

#detalhes[open] {
    animation: popupV3Entrada .32s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes popupV3Entrada {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#detalhes .dialog-body {
    padding: 0;
    background: #101424;
}

#detalhes .dialog-close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 5;
    float: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #080b18dd;
    border: 1px solid #ffffff44;
}

.popup-v3-topo {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #171c30;
}

.popup-v3-fundo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.popup-v3-degrade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        #10142410 0%,
        #10142435 45%,
        #101424 100%
    );
}

.popup-v3-logo {
    position: absolute;
    left: 26px;
    bottom: 12px;
    max-width: 55%;
    max-height: 105px;
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(0 3px 12px #000a);
}

.popup-v3-titulo {
    position: absolute;
    left: 26px;
    bottom: 12px;
    font-size: 27px;
    font-weight: 900;
    text-shadow: 0 3px 12px #000;
}

.popup-v3-corpo {
    padding: 8px 26px 24px;
}

.popup-v3-meta {
    color: #c5c9d9;
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.popup-v3-sinopse {
    color: #eef0f8;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 12px;
}

.popup-v3-elenco {
    color: #aeb5ca;
    font-size: 11px;
    line-height: 1.5;
    margin: 0 0 15px;
}

.popup-v3-acoes {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.popup-v3-acoes button,
.popup-v3-acoes a {
    padding: 12px 16px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.popup-v3-comprar {
    border: 0;
    background: #34394b;
    color: #c4c7d2;
    cursor: not-allowed;
}

.popup-v3-trailer {
    background: #8754ee;
    color: white;
}

.popup-v3-preco {
    margin-left: auto;
    color: #c7a8ff;
    font-weight: 900;
    font-size: 17px;
}

@media(max-width:760px) {
    .popup-v3-topo { height: 190px; }
    .popup-v3-logo {
        left: 16px;
        max-height: 80px;
    }
    .popup-v3-titulo { left: 16px; font-size: 21px; }
    .popup-v3-corpo { padding: 8px 16px 20px; }
    .popup-v3-preco { margin-left: 0; }
}

@media(prefers-reduced-motion:reduce) {
    #detalhes[open] { animation: none; }
}



/* Ajustes exclusivos para computadores */
@media (min-width: 761px) {

    /* Trailer em proporção cinematográfica 16:9 */
    #detalhes .popup-v3-topo {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Espaçamento das informações */
    #detalhes .popup-v3-corpo {
        padding: 22px 30px 34px;
    }

    #detalhes .popup-v3-meta {
        margin-bottom: 18px;
    }

    #detalhes .popup-v3-sinopse {
        line-height: 1.8;
        margin-bottom: 18px;
    }

    #detalhes .popup-v3-elenco {
        margin-bottom: 22px;
    }

    #detalhes .popup-v3-acoes {
        gap: 12px;
    }

    /* Opções semelhantes permanecem acessíveis pela rolagem */
    #detalhes .popup-v4-semelhantes {
        margin-top: 30px;
        padding-top: 24px;
    }
}



.popup-v4-topo {
    isolation: isolate;
}

.popup-v4-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 3;
    background: #000;
}

.popup-v4-som {
    background: #252c43 !important;
    color: #fff !important;
    border: 1px solid #ffffff25 !important;
    cursor: pointer;
}

@media(min-width:761px) {
    .popup-v3-meta { font-size: 13px; }
    .popup-v3-sinopse { font-size: 14px; }
    .popup-v3-elenco { font-size: 12px; }
    .popup-v3-acoes button,
    .popup-v3-acoes a { font-size: 13px; }
}

.popup-v4-semelhantes {
    margin-top: 24px;
    border-top: 1px solid #ffffff20;
    padding-top: 20px;
}

.popup-v4-semelhantes h3 {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .6px;
    margin: 0 0 15px;
}

.popup-v4-grade {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.popup-v4-card {
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.popup-v4-card img {
    display: block;
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ffffff25;
    transition: transform .2s, border-color .2s;
}

.popup-v4-card:hover img {
    transform: translateY(-4px);
    border-color: #9664ff;
}

.popup-v4-card span {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 8px;
}

@media(max-width:760px) {
    .popup-v4-grade { gap: 8px; }
    .popup-v4-card span { font-size: 9px; }
}



.pp-popup-conta {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin:16px 0 5px;
}
.pp-popup-botao {
    background:rgba(255,255,255,.07);
    color:#f5f5f7;
    border:1px solid rgba(255,255,255,.18);
    border-radius:9px;
    padding:11px 14px;
    font:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}
.pp-popup-botao:hover {
    background:rgba(255,255,255,.14);
}
.pp-popup-botao.pp-selecionado {
    border-color:#b48aff;
    color:#dccaff;
}
.pp-popup-botao:disabled {
    opacity:.55;
}
.pp-popup-aviso {
    margin-top:9px;
    color:#d9c7ff;
    font-size:13px;
}
.pp-trailer-overlay {
    position:fixed;
    inset:0;
    z-index:2147483647;
    background:rgba(0,0,0,.94);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
}
.pp-trailer-box {
    width:min(960px,100%);
}
.pp-trailer-fechar {
    display:block;
    margin:0 0 12px auto;
    padding:10px 16px;
    border:1px solid #76638f;
    border-radius:9px;
    background:#292236;
    color:white;
    cursor:pointer;
}
.pp-trailer-frame {
    width:100%;
    aspect-ratio:16/9;
    border:0;
    border-radius:12px;
    background:black;
}
@media(max-width:700px) {
    .pp-popup-botao {
        flex:1 1 auto;
    }
}



.popup-v3-topo {
    position: relative;
}
.popup-v3-topo > .pp-trailer-inline-v1 {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999 !important;
    border: 0 !important;
    background: #000 !important;
}



.pp-popup-conta-v2 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.popup-v3-acoes .pp-popup-icone-v2 {
    width: 43px;
    height: 43px;
    min-width: 43px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.07);
    color: #fff;
    cursor: pointer;
    transition:
        background .25s,
        border-color .25s,
        transform .25s;
}

.popup-v3-acoes .pp-popup-icone-v2:hover:not(:disabled) {
    background: rgba(135,84,238,.25);
    border-color: #a778e8;
    transform: translateY(-2px);
}

.popup-v3-acoes .pp-popup-icone-v2[aria-pressed="true"] {
    background: #8754ee;
    border-color: #b493ff;
}

.popup-v3-acoes .pp-popup-icone-v2:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pp-popup-icone-v2 span {
    font-size: 27px;
    line-height: 1;
    font-weight: 300;
    transition: transform .3s;
}

.pp-popup-icone-v2[aria-pressed="true"] span {
    transform: rotate(0deg);
}

.pp-popup-icone-v2 svg {
    width: 23px;
    height: 23px;
}

.pp-olho-risco-v2 {
    transition: opacity .3s, transform .3s;
    transform-origin: center;
}

.pp-popup-icone-v2[aria-pressed="true"] .pp-olho-risco-v2 {
    opacity: 0;
    transform: scale(.2);
}

.pp-popup-aviso-v2 {
    font-size: 12px;
    color: #cdb8ec;
    margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .pp-popup-icone-v2,
    .pp-popup-icone-v2 * {
        transition: none !important;
    }
}



.popup-v3-acoes .popup-v3-trailer {
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.popup-v3-acoes .popup-v3-trailer:focus-visible {
    outline: 2px solid #c6a7ff;
    outline-offset: 3px;
}

.pp-popup-icone-v2 .pp-fav-v2 {
    transform: none !important;
}

.pp-popup-icone-v2[aria-pressed="true"] .pp-fav-v2 {
    transform: none !important;
}




/* Cursor permanece como mao */
.popup-v3-acoes .pp-popup-icone-v2,
.popup-v3-acoes .pp-popup-icone-v2:disabled {
    cursor: pointer !important;
}

/* Evita aparencia de bloqueado durante a requisicao */
.popup-v3-acoes .pp-popup-icone-v2:disabled {
    opacity: 1 !important;
}

/* SVG */
.pp-fav-svg-v5 {
    width: 24px;
    height: 24px;
    overflow: visible;
}

/* Todos os tracos sao animaveis */
.pp-fav-svg-v5 path {
    transition:
        opacity 350ms ease,
        stroke-dashoffset 350ms ease,
        transform 350ms cubic-bezier(.22,1,.36,1);
    transform-origin: center;
}

/* Estado inicial: + */
.pp-fav-h-v5,
.pp-fav-v-v5 {
    opacity: 1;
    stroke-dasharray: 24;
    stroke-dashoffset: 0;
}

.pp-fav-check-v5 {
    opacity: 0;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

/* Estado selecionado: check */
.pp-popup-icone-v2[aria-pressed="true"] .pp-fav-h-v5 {
    opacity: 0;
    stroke-dashoffset: 24;
    transform: scale(.65);
}

.pp-popup-icone-v2[aria-pressed="true"] .pp-fav-v-v5 {
    opacity: 0;
    stroke-dashoffset: 24;
    transform: scale(.65);
}

.pp-popup-icone-v2[aria-pressed="true"] .pp-fav-check-v5 {
    opacity: 1;
    stroke-dashoffset: 0;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .pp-fav-svg-v5 path {
        transition: none !important;
    }
}



/* Minha Conta: refinamentos do popup mobile, alinhados ao catalogo principal. */
.pp-popup-etiquetas-acesso { padding: 0 0 8px; }
.pp-popup-etiquetas-acesso .pp-conteudo-seu {
  display: inline-flex; align-items: center; gap: 6px;
  color: #d9c9ff; font-size: 12px; font-weight: 700;
}
@media (max-width: 760px) {
  #detalhes { width: min(760px, 94vw); max-height: 92dvh; }
  #detalhes .dialog-body { padding: 0; }
  #detalhes .dialog-close {
    position: absolute; top: 14px; right: 14px; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box; width: 40px; height: 40px;
    padding: 0; margin: 0; float: none;
    border: 1px solid rgba(255,255,255,.4); border-radius: 50%;
    background: rgba(8,11,24,.88); color: white;
    font: 400 26px/1 Arial,sans-serif; outline: none;
    -webkit-appearance: none; appearance: none;
  }
  #detalhes .dialog-close::before, #detalhes .dialog-close::after { content: none !important; }
  #detalhes[open] { animation: ppAccountPopupIn 190ms cubic-bezier(.2,.75,.25,1) both; }
  @keyframes ppAccountPopupIn {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  #detalhes[open] { animation: none !important; }
}


/* Sincronização visual do pop-up de Minha Conta com a página inicial.
   Fonte: CSS do index.html, estilos de metadados e versão final do popup. */

@media (min-width:761px) and (hover:hover) {
  #catalogo .rail {padding-top:100px !important;padding-bottom:105px !important;overflow-y:visible !important}
  #catalogo .rail .poster:hover .art,
  #catalogo .rail .poster:focus-within .art {
    transform: scale(1.65) !important;
  }
  #catalogo .rail .poster .art .pp-poster-info {
    position:absolute !important;inset:0 !important;width:165% !important;height:165% !important;
    transform:scale(.606061) !important;transform-origin:top left !important;
  }
  #catalogo .pp-poster-titulo { font-size:17px !important; }
  #catalogo .pp-poster-genero,
  #catalogo .pp-poster-duracao { font-size:13px !important; }
  #catalogo .pp-poster-classificacao { font-size:11px !important; }
  #catalogo .pp-poster-mais { font-size:24px !important; }
}
.popup-v5-classificacao {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:25px;
  height:25px;
  padding:0 6px;
  margin:0 0 10px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:5px;
  color:#fff;
  background:rgba(255,255,255,.07);
  font-size:12px;
  font-weight:800;
}
.popup-v5-meta {
  margin:0 0 12px;
  color:#c5c9d9;
  font-size:13px;
  line-height:1.7;
}
.popup-v5-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 15px;
}
.popup-v5-tag {
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:6px;
  background:rgba(255,255,255,.07);
  color:#f3efff;
  font-size:11px;
  font-weight:700;
}
.popup-v5-meta-row{display:flex;align-items:center;gap:9px;flex-wrap:nowrap;margin:0 0 15px;color:#c5c9d9;font-size:13px;line-height:1.4;white-space:nowrap}
.popup-v5-meta-item{color:#c5c9d9}
.popup-v5-separador{color:#788097}
.popup-v5-meta-row .popup-v5-classificacao{margin:0;flex:0 0 auto}
.popup-v5-meta-row .popup-v5-tag{flex:0 0 auto}
.popup-v5-estrela{color:inherit}
#detalhes{width:min(720px,94vw)}
@media(max-width:600px){#detalhes{width:94vw}.popup-v5-meta-row{flex-wrap:wrap;white-space:normal;gap:7px}}


/* Ajuste único de escala: a arte cresce 65%, os controles não. */
@media (min-width:761px) and (hover:hover) {
  #catalogo .rail .poster .art {
    transform:scale(1) !important;
    transform-origin:center center !important;
    overflow:hidden !important;
  }
  #catalogo .rail .poster:first-child .art {
    transform-origin:left center !important;
  }
  #catalogo .rail .poster:hover .art,
  #catalogo .rail .poster:focus-within .art {
    transform:scale(1.65) !important;
  }
  #catalogo .rail .poster .art .pp-poster-info {
    position:absolute !important;
    top:auto !important;
    bottom:0 !important;
    left:0 !important;
    right:auto !important;
    inset:auto auto 0 0 !important;
    width:165% !important;
    height:165% !important;
    transform:scale(.6060606061) !important;
    transform-origin:bottom left !important;
    box-sizing:border-box !important;
    padding:15px 13px 11px !important;
    gap:6px !important;
  }
  #catalogo .rail .poster .art .tag {
    transform:scale(.6060606061) !important;
    transform-origin:top left !important;
  }
  #catalogo .pp-poster-titulo {
    font-size:17px !important;
    line-height:1.18 !important;
    max-width:calc(100% - 48px) !important;
    overflow-wrap:anywhere;
  }
  #catalogo .pp-poster-genero,
  #catalogo .pp-poster-duracao {
    font-size:13px !important;
    line-height:1.25 !important;
  }
  #catalogo .pp-poster-metadados {
    max-width:calc(100% - 44px) !important;
    min-width:0 !important;
    gap:7px !important;
  }
  #catalogo .pp-poster-classificacao {
    font-size:11px !important;
    flex-shrink:0 !important;
  }
  #catalogo .pp-poster-mais {
    right:12px !important;
    bottom:11px !important;
    font-size:24px !important;
    flex-shrink:0 !important;
  }
}
.popup-v5-meta-row {
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
  overflow-x:auto;
  scrollbar-width:thin;
  padding-bottom:3px;
}
.popup-v5-meta-row .popup-v5-classificacao {
  margin:0 !important;
  flex:0 0 auto !important;
}
.popup-v5-meta-row .popup-v5-estrela {
  color:#fff !important;
}
.popup-v5-meta-row .popup-v5-meta-item,
.popup-v5-meta-row .popup-v5-tag,
.popup-v5-meta-row .popup-v5-separador {
  flex-shrink:0;
}
@media(max-width:600px){
  .popup-v5-meta-row {
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
    gap:7px !important;
  }
}

/* PipocaPlus: metadados responsivos e acoes do popup no celular */
.popup-v5-meta-row .popup-v6-informacoes,
.popup-v5-meta-row .popup-v6-etiquetas {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.popup-v5-meta-row .popup-v6-etiquetas { flex-shrink:0; }
.popup-v5-meta-row .popup-v5-classificacao,
.popup-v5-meta-row .popup-v5-tag {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  line-height:1.1 !important;
  box-sizing:border-box;
  min-height:32px;
  margin:0 !important;
  padding:5px 12px !important;
}
.popup-v5-meta-row .popup-v5-classificacao {min-width:34px;padding:4px 7px !important;}
@media (max-width:760px) {
  .popup-v5-meta-row {
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:12px !important;
    overflow:visible !important;
    white-space:normal !important;
  }
  .popup-v5-meta-row .popup-v6-etiquetas {order:0;flex-wrap:wrap;gap:8px;}
  .popup-v5-meta-row .popup-v6-informacoes {
    order:1;
    flex-wrap:wrap;
    white-space:normal;
    gap:5px 8px;
    font-size:13px;
  }
  .popup-v3-acoes {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 43px 43px;
    align-items:center;
    gap:9px !important;
  }
  .popup-v3-acoes .popup-v3-comprar {grid-column:1/-1;justify-self:stretch;}
  .popup-v3-acoes .popup-v3-trailer {grid-column:1;min-width:0;text-align:center;}
  .popup-v3-acoes .pp-popup-conta-v2 {display:contents;}
  .popup-v3-acoes .pp-popup-icone-v2 {width:43px;min-width:43px;height:43px;}
}

/* Desktop: classificacao -> ano/genero/duracao/nota -> qualidade/idioma.
   Mobile: classificacao e etiquetas na primeira linha, demais dados abaixo. */
.popup-v5-meta-row {
  justify-content:flex-start !important;
  overflow:visible !important;
  gap:10px !important;
}
.popup-v5-meta-row > .popup-v5-classificacao {order:0;}
.popup-v5-meta-row > .popup-v6-informacoes {order:1;}
.popup-v5-meta-row > .popup-v6-etiquetas {order:2;}
.popup-v5-meta-row .popup-v5-classificacao,
.popup-v5-meta-row .popup-v5-tag {
  height:28px !important;
  min-height:28px !important;
  padding:3px 9px !important;
  line-height:20px !important;
  vertical-align:middle !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
.popup-v5-meta-row .popup-v5-classificacao {min-width:29px !important;padding:3px 6px !important;}
@media(max-width:760px) {
  .popup-v5-meta-row {
    display:grid !important;
    grid-template-columns:max-content minmax(0,1fr);
    column-gap:8px !important;
    row-gap:11px !important;
    align-items:center !important;
    overflow:visible !important;
  }
  .popup-v5-meta-row > .popup-v5-classificacao {grid-column:1;grid-row:1;order:unset;}
  .popup-v5-meta-row > .popup-v6-etiquetas {
    grid-column:2;grid-row:1;order:unset;
    display:flex !important;flex-wrap:wrap !important;
    gap:7px !important;min-width:0 !important;
  }
  .popup-v5-meta-row > .popup-v6-informacoes {
    grid-column:1/-1;grid-row:2;order:unset;
    display:flex !important;flex-wrap:wrap !important;
    white-space:normal !important;gap:5px 8px !important;
  }
}

/* Reserva area vertical real dentro do trilho rolavel para o zoom 165%.
   overflow-x:auto cria uma area de recorte vertical: overflow-y:visible
   sozinho nao elimina esse recorte. */
@media (min-width:761px) and (hover:hover) {
  #catalogo .rail {
    padding-top: 90px !important;
    padding-bottom: 95px !important;
    scroll-padding-top: 90px;
    scroll-padding-bottom: 95px;
  }
  #catalogo .rail .poster .art {
    border-radius: 9px !important;
  }
}

/* Espacamento compacto sem perder a folga interna contra recorte do hover.
   Margens negativas compensam o padding do trilho (nao reduzem a area de zoom). */
@media (min-width:761px) and (hover:hover) {
  #catalogo .section { margin-bottom: 24px !important; position:relative; }
  #catalogo .section h2 { margin-bottom: 10px !important; }
  #catalogo .rail {
    padding-top:90px !important;
    padding-bottom:95px !important;
    margin-top:-78px !important;
    margin-bottom:-85px !important;
  }
  #catalogo .section:has(.poster:hover),
  #catalogo .section:has(.poster:focus-within) { z-index:20; }
}

/* Mobile: quatro posters verticais completos por faixa. */
@media (max-width:760px) {
  #catalogo .section h2 {
    font-size:10px !important; /* 18px anteriores - 8px */
    line-height:1.35 !important;
    margin-bottom:10px !important;
    letter-spacing:0 !important;
  }
  #catalogo .rail {
    gap:6px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    padding-top:3px !important;
    padding-bottom:12px !important;
  }
  #catalogo .rail .poster {
    flex:0 0 calc((100% - 18px) / 4) !important;
    width:calc((100% - 18px) / 4) !important;
    min-width:0 !important;
    max-width:none !important;
  }
  #catalogo .rail .poster .art {
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:2 / 3 !important;
  }
}

/* Botao de trailer: altura constante ao alternar o texto no desktop. */
@media (min-width:761px) {
  .popup-v3-acoes .popup-v3-trailer {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    padding:0 16px !important;
    box-sizing:border-box !important;
    line-height:1 !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
  }
}
/* Mobile: 3 posters completos e metade do quarto. */
@media (max-width:760px) {
  #catalogo .section h2 {font-size:13px !important;}
  #catalogo .rail .poster {
    flex:0 0 calc((100% - 21px) / 3.5) !important;
    width:calc((100% - 21px) / 3.5) !important;
    min-width:0 !important;
    max-width:none !important;
  }
}

/* Mobile: espaco real entre a linha de metadados e a sinopse. */
@media (max-width:760px) {
  #detalhes .popup-v5-meta-row { margin-bottom:8px !important; }
  #detalhes .popup-v5-meta-row + .popup-v3-sinopse { margin-top:0 !important; }
}

/* Checkout pelo Telegram: botao ativo e acessivel em desktop e mobile. */
.popup-v3-comprar:not(:disabled) {
  background:#34394b;
  color:#fff;
  cursor:pointer;
  transition:background .2s ease;
}
.popup-v3-comprar:not(:disabled):hover,
.popup-v3-comprar:not(:disabled):focus-visible {background:#484f68;}

#pp-checkout-overlay{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.82);display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
.pp-checkout-card{background:#10121d;color:#fff;border:1px solid #36384a;border-radius:18px;width:min(100%,530px);max-height:92dvh;overflow:auto;padding:20px;box-sizing:border-box;box-shadow:0 25px 80px #0009}
.pp-checkout-head{display:flex;justify-content:space-between;align-items:center;font-size:19px}
.pp-checkout-close{background:transparent;border:0;color:#fff;font-size:30px;cursor:pointer}
.pp-checkout-desc{color:#b9b9c8;font-size:14px}
.pp-checkout-tabs{display:flex;gap:8px;margin:16px 0}
.pp-checkout-tabs button{flex:1;border:1px solid #45485e;background:#202333;color:#fff;border-radius:9px;padding:12px;cursor:pointer}
.pp-checkout-tabs button.ativo{background:#6442ad;border-color:#8861dd}
.pp-checkout-pix label{display:block;font-size:14px}
.pp-checkout-email,.pp-checkout-codigo{box-sizing:border-box;width:100%;padding:12px;margin:8px 0;background:#191d2c;color:#fff;border:1px solid #4a4d62;border-radius:8px;font:inherit}
.pp-checkout-gerar,.pp-checkout-copiar{width:100%;padding:13px;border:0;border-radius:9px;background:#7650c9;color:#fff;font-weight:700;cursor:pointer}
.pp-checkout-resultado{text-align:center;margin-top:18px}
.pp-checkout-qr{width:210px;max-width:100%;background:#fff;padding:10px;border-radius:9px}
.pp-checkout-cartao iframe{width:100%;height:min(65dvh,680px);border:0;background:#fff;border-radius:8px}
.pp-checkout-status{color:#c4bedb;font-size:13px}

/* Botoes do popup: compra roxa, trailer grafite; comprado permanece azul. */
#detalhes .popup-v3-comprar:not(:disabled):not([data-acesso="aprovado"]){background:#8754ee !important;color:#fff !important}
#detalhes .popup-v3-comprar:not(:disabled):not([data-acesso="aprovado"]):hover{background:#9566f1 !important}
#detalhes .popup-v3-trailer{background:#34394b !important;color:#fff !important}
#detalhes .popup-v3-comprar[data-acesso="aprovado"]{background:#229ED9 !important;color:#fff !important;display:flex;align-items:center;justify-content:center;gap:11px}
#detalhes .popup-v3-comprar[data-acesso="aprovado"]:hover{background:#229ED9 !important}
#detalhes .popup-v3-comprar[data-acesso="aprovado"] svg{display:block;flex:none;width:21px;height:21px;color:#fff}
#detalhes .popup-v3-comprar[data-acesso="aprovado"] span{display:inline-block}

/* Estado desmarcado sempre neutro, inclusive apos toque em telas touch. */
#detalhes .popup-v3-acoes .pp-popup-icone-v2[aria-pressed="false"],
#detalhes .popup-v3-acoes .pp-popup-icone-v2[aria-pressed="false"]:hover,
#detalhes .popup-v3-acoes .pp-popup-icone-v2[aria-pressed="false"]:focus {
 background:rgba(255,255,255,.07) !important;
 border-color:rgba(255,255,255,.25) !important;
 transform:none !important;
}
#detalhes .popup-v3-acoes .pp-popup-icone-v2[aria-pressed="true"]{
 background:#8754ee !important;
 border-color:#b493ff !important;
 transform:none !important;
}
/* Selo discreto de propriedade ao lado da etiqueta de idioma. */
#detalhes .popup-v6-etiquetas .pp-conteudo-seu{
 display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
 color:#42d991;font-size:clamp(9px,2.45vw,11px);font-weight:600;
 line-height:1;letter-spacing:0;margin-left:3px;flex-shrink:0;
}
#detalhes .pp-conteudo-seu-check{
 width:15px;height:15px;min-width:15px;border:1.5px solid currentColor;
 border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
 box-sizing:border-box;background:transparent;
}
#detalhes .pp-conteudo-seu-check svg{width:10px;height:10px;display:block}
#detalhes .popup-v6-etiquetas:has(.pp-conteudo-seu){display:flex;align-items:center;flex-wrap:nowrap;gap:6px}
#detalhes .popup-v6-etiquetas:has(.pp-conteudo-seu) .popup-v5-tag{flex-shrink:0}

/* Estado desligado deve ser neutro mesmo com hover/foco retido pelo Safari. */
.popup-v3-acoes .pp-popup-icone-v2[aria-pressed="false"],
.popup-v3-acoes .pp-popup-icone-v2[aria-pressed="false"]:hover,
.popup-v3-acoes .pp-popup-icone-v2[aria-pressed="false"]:active,
.popup-v3-acoes .pp-popup-icone-v2[aria-pressed="false"]:focus {
 background:rgba(255,255,255,.07) !important;
 border-color:rgba(255,255,255,.25) !important;
 box-shadow:none !important;
 transform:none !important;
}

/* PP_POPUP_SCROLLBAR_MINIMAL_V2
   Apenas indicador fino e arredondado, sem setas nem trilho visível.
   Rolagem do diálogo permanece funcional no computador. */
@media (min-width: 761px) {
  #detalhes {
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(188,176,212,.67) transparent !important;
    -ms-overflow-style: auto;
  }
  #detalhes::-webkit-scrollbar {
    display: block !important;
    width: 7px !important;
    height: 0 !important;
  }
  #detalhes::-webkit-scrollbar-track,
  #detalhes::-webkit-scrollbar-track-piece,
  #detalhes::-webkit-scrollbar-corner {
    background: transparent !important;
    border: 0 !important;
  }
  #detalhes::-webkit-scrollbar-thumb {
    background: rgba(188,176,212,.67) !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background-clip: padding-box !important;
  }
  #detalhes::-webkit-scrollbar-thumb:hover {
    background: rgba(225,214,248,.86) !important;
  }
  #detalhes::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}


/* PP_SERIE_EPISODIOS_ABAS_V1 - séries: episódios TMDB e opções semelhantes. */
#detalhes .pp-serie-explorar {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  min-width: 0;
}
#detalhes .pp-serie-abas {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,.17);
  gap: clamp(12px,3vw,30px);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
#detalhes .pp-serie-abas::-webkit-scrollbar {display:none}
#detalhes .pp-serie-aba {
  appearance: none;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(11px,2.5vw,14px);
  letter-spacing: .3px;
  white-space: nowrap;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #9c9aa8;
  min-height: 44px;
  padding: 10px 1px 13px;
  margin: 0;
  cursor: pointer;
  transition: color .18s ease,border-color .18s ease;
}
#detalhes .pp-serie-aba[aria-selected="true"] {
  color: #fff;
  border-bottom-color: #aa7dff;
}
#detalhes .pp-serie-aba:focus-visible,
#detalhes .pp-serie-temporada:focus-visible {
  outline: 2px solid #b99cff;
  outline-offset: 3px;
}
#detalhes .pp-serie-painel[hidden],
#detalhes .pp-serie-controles[hidden] {display:none!important}
#detalhes .pp-serie-controles {
  display:flex;
  align-items:center;
  margin-bottom:18px;
}
#detalhes .pp-serie-temporada {
  appearance:auto;
  display:block;
  max-width:100%;
  min-width:175px;
  min-height:43px;
  padding:10px 14px;
  border-radius:7px;
  border:1px solid rgba(255,255,255,.15);
  background:#292932;
  color:#f5f3fa;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
#detalhes .pp-serie-estado {
  margin:12px 0 18px;
  color:#aaa6b6;
  font-size:13px;
  line-height:1.5;
}
#detalhes .pp-serie-estado:empty {display:none}
#detalhes .pp-serie-episodios {
  display:flex;
  flex-direction:column;
  gap:0;
  min-width:0;
}
#detalhes .pp-serie-episodio {
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:4px 16px;
  padding:14px 0 20px;
  border-bottom:1px solid rgba(255,255,255,.10);
  color:#f2f0f5;
  min-width:0;
}
#detalhes .pp-serie-episodio:last-child {border-bottom:0}
#detalhes .pp-serie-episodio-imagem {
  grid-column:1;
  grid-row:1 / span 2;
  width:100%;
  aspect-ratio:16/9;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#232531;
  border-radius:9px;
}
#detalhes .pp-serie-episodio-imagem img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
#detalhes .pp-serie-sem-foto {
  display:block;
  padding:10px;
  color:#a4a1b2;
  font-size:11px;
  text-align:center;
}
#detalhes .pp-serie-episodio-info {grid-column:2;grid-row:1;min-width:0}
#detalhes .pp-serie-episodio-info h4 {
  margin:0 0 5px;
  color:#f5f4f8;
  font-size:14px;
  font-weight:800;
  line-height:1.4;
  overflow-wrap:anywhere;
}
#detalhes .pp-serie-episodio-tempo {
  color:#a9a7b4;
  font-size:12px;
}
#detalhes .pp-serie-episodio-sinopse {
  grid-column:2;
  grid-row:2;
  margin:4px 0 0;
  font-size:13px;
  line-height:1.55;
  color:#c2bdcb;
  overflow-wrap:anywhere;
}
#detalhes .pp-serie-painel .popup-v4-grade {margin-top:6px}
@media(max-width:760px) {
  #detalhes .pp-serie-explorar {margin-top:10px;padding-top:0}
  #detalhes .pp-serie-abas {gap:clamp(12px,4vw,28px);margin-bottom:17px}
  #detalhes .pp-serie-aba {font-size:clamp(10px,3vw,12px);min-height:41px}
  #detalhes .pp-serie-episodio {
    grid-template-columns:minmax(0,32%) minmax(0,1fr);
    gap:9px 12px;
    padding:10px 0 18px;
  }
  #detalhes .pp-serie-episodio-imagem {grid-row:1}
  #detalhes .pp-serie-episodio-info {grid-row:1;align-self:center}
  #detalhes .pp-serie-episodio-info h4 {font-size:13px}
  #detalhes .pp-serie-episodio-sinopse {
    grid-column:1 / -1;
    grid-row:2;
    font-size:12px;
    line-height:1.55;
    margin:0;
  }
}
@media(prefers-reduced-motion:reduce){
  #detalhes .pp-serie-aba{transition:none}
}
