/**
 * TMV Browse Experience 1.5.3
 * Fase 1: acabamento visual dos cards do DooPlay.
 */

:root {
    --tmv-card-radius: 14px;
    --tmv-card-scale: 1.055;
    --tmv-card-lift: -7px;
    --tmv-card-speed: 240ms;
    --tmv-card-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    --tmv-card-shadow-hover: 0 18px 44px rgba(0, 0, 0, .58);
    --tmv-card-ring: 0 0 0 1px rgba(229, 9, 20, .28);
}

/*
 * Seletores compatíveis com as listagens mais comuns do DooPlay.
 * O plugin não altera dimensões nem o formato vertical do pôster.
 */
.tmv-browse-experience :is(
    .items .item,
    .module .content .items .item,
    .slider .item,
    .owl-item .item,
    article.item,
    .result-item,
    .movies-list .item,
    .series-list .item
) {
    position: relative;
    isolation: isolate;
    z-index: 1;
    overflow: visible;
    transform: translateZ(0);
    transition:
        transform var(--tmv-card-speed) cubic-bezier(.2, .72, .2, 1),
        filter var(--tmv-card-speed) ease,
        z-index 0s linear var(--tmv-card-speed);
    will-change: transform;
}

.tmv-browse-experience :is(
    .items .item,
    .module .content .items .item,
    .slider .item,
    .owl-item .item,
    article.item,
    .result-item,
    .movies-list .item,
    .series-list .item
) :is(
    .poster,
    .image,
    .thumbnail,
    .poster-container,
    .poster-wrapper
) {
    overflow: hidden;
    border-radius: var(--tmv-card-radius);
    box-shadow: var(--tmv-card-shadow);
    transition:
        box-shadow var(--tmv-card-speed) ease,
        border-radius var(--tmv-card-speed) ease;
    backface-visibility: hidden;
}

.tmv-browse-experience :is(
    .items .item,
    .module .content .items .item,
    .slider .item,
    .owl-item .item,
    article.item,
    .result-item,
    .movies-list .item,
    .series-list .item
) :is(
    .poster img,
    .image img,
    .thumbnail img,
    img.poster,
    img.wp-post-image
) {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--tmv-card-radius);
    transform: translateZ(0);
    transition:
        transform var(--tmv-card-speed) cubic-bezier(.2, .72, .2, 1),
        filter var(--tmv-card-speed) ease;
    backface-visibility: hidden;
}

/* Elevação apenas em dispositivos que realmente possuem hover. */
@media (hover: hover) and (pointer: fine) {
    .tmv-browse-experience :is(
        .items .item,
        .module .content .items .item,
        .slider .item,
        .owl-item .item,
        article.item,
        .result-item,
        .movies-list .item,
        .series-list .item
    ):hover,
    .tmv-browse-experience :is(
        .items .item,
        .module .content .items .item,
        .slider .item,
        .owl-item .item,
        article.item,
        .result-item,
        .movies-list .item,
        .series-list .item
    ).tmv-card-active {
        z-index: 40;
        transform: translateY(var(--tmv-card-lift)) scale(var(--tmv-card-scale));
        transition-delay: 0s;
    }

    .tmv-browse-experience :is(
        .items .item,
        .module .content .items .item,
        .slider .item,
        .owl-item .item,
        article.item,
        .result-item,
        .movies-list .item,
        .series-list .item
    ):hover :is(.poster, .image, .thumbnail, .poster-container, .poster-wrapper),
    .tmv-browse-experience :is(
        .items .item,
        .module .content .items .item,
        .slider .item,
        .owl-item .item,
        article.item,
        .result-item,
        .movies-list .item,
        .series-list .item
    ).tmv-card-active :is(.poster, .image, .thumbnail, .poster-container, .poster-wrapper) {
        box-shadow: var(--tmv-card-shadow-hover), var(--tmv-card-ring);
    }

    .tmv-browse-experience :is(
        .items .item,
        .module .content .items .item,
        .slider .item,
        .owl-item .item,
        article.item,
        .result-item,
        .movies-list .item,
        .series-list .item
    ):hover :is(.poster img, .image img, .thumbnail img, img.poster, img.wp-post-image),
    .tmv-browse-experience :is(
        .items .item,
        .module .content .items .item,
        .slider .item,
        .owl-item .item,
        article.item,
        .result-item,
        .movies-list .item,
        .series-list .item
    ).tmv-card-active :is(.poster img, .image img, .thumbnail img, img.poster, img.wp-post-image) {
        transform: scale(1.018);
        filter: saturate(1.04) contrast(1.02);
    }
}

/* Evita que sliders e carrosséis cortem a sombra/zoom, sem mexer no eixo horizontal. */
.tmv-browse-experience :is(
    .owl-stage-outer,
    .swiper,
    .swiper-container,
    .slider,
    .items,
    .module .content
) {
    padding-top: 12px;
    padding-bottom: 22px;
}

.tmv-browse-experience :is(.owl-stage-outer, .swiper, .swiper-container) {
    overflow-y: visible !important;
}

/* Acessibilidade por teclado: o foco recebe o mesmo acabamento do hover. */
.tmv-browse-experience :is(
    .items .item,
    .module .content .items .item,
    .slider .item,
    .owl-item .item,
    article.item,
    .result-item,
    .movies-list .item,
    .series-list .item
) a:focus-visible {
    outline: 3px solid rgba(229, 9, 20, .82);
    outline-offset: 3px;
    border-radius: var(--tmv-card-radius);
}

/* Em celular/TV touch, mantém apenas os cantos e a sombra, sem zoom acidental. */
@media (hover: none), (pointer: coarse) {
    .tmv-browse-experience :is(
        .items .item,
        .module .content .items .item,
        .slider .item,
        .owl-item .item,
        article.item,
        .result-item,
        .movies-list .item,
        .series-list .item
    ) {
        transform: none !important;
    }
}

/* Respeita a preferência de redução de movimento do sistema. */
@media (prefers-reduced-motion: reduce) {
    .tmv-browse-experience *,
    .tmv-browse-experience *::before,
    .tmv-browse-experience *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
 * TMV Browse Experience 1.5.3 — ações no thumbnail original
 * O card flutuante foi removido. Os controles agora pertencem
 * ao próprio pôster e aparecem no hover ou no foco por teclado.
 * ======================================================= */
.tmv-card-media-host {
    position: relative !important;
    isolation: isolate;
}

.tmv-card-controls {
    position: absolute;
    z-index: 8;
    inset: 0;
    display: flex;
    align-items: flex-end;
    border-radius: inherit;
    overflow: hidden;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 170ms ease, visibility 170ms ease;
}

.tmv-card-controls-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 8, 8, .98) 0%,
        rgba(8, 8, 8, .88) 20%,
        rgba(8, 8, 8, .48) 42%,
        rgba(8, 8, 8, 0) 68%
    );
    pointer-events: none;
}

.tmv-card-controls-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 12px 11px 13px;
    transform: translateY(9px);
    transition: transform 190ms cubic-bezier(.2, .8, .2, 1);
}

.tmv-browse-card:hover .tmv-card-controls,
.tmv-browse-card.tmv-card-active .tmv-card-controls,
.tmv-card-controls:focus-within {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tmv-browse-card:hover .tmv-card-controls-content,
.tmv-browse-card.tmv-card-active .tmv-card-controls-content,
.tmv-card-controls:focus-within .tmv-card-controls-content {
    transform: translateY(0);
}

.tmv-card-actions {
    display: flex;
    align-items: center;
    gap: clamp(5px, .55vw, 8px);
    margin-bottom: 9px;
}

.tmv-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(29px, 2.25vw, 36px);
    height: clamp(29px, 2.25vw, 36px);
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid rgba(255,255,255,.66);
    border-radius: 50%;
    background: rgba(30,30,30,.9);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,.35);
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.tmv-action svg {
    width: clamp(15px, 1.25vw, 19px);
    height: clamp(15px, 1.25vw, 19px);
    fill: currentColor;
}

.tmv-action:hover,
.tmv-action:focus-visible,
.tmv-action.is-active {
    border-color: #fff;
    background: #3a3a3a;
    transform: scale(1.07);
    outline: none;
}

.tmv-action-primary {
    border-color: #fff;
    background: #fff;
    color: #111;
}

.tmv-action-primary:hover,
.tmv-action-primary:focus-visible {
    background: #dedede;
    color: #111;
}

.tmv-action-info { margin-left: auto; }

.tmv-card-quick-meta,
.tmv-card-quick-genres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #eee;
    font-size: clamp(10px, .78vw, 12px);
    line-height: 1.35;
    text-shadow: 0 2px 7px #000;
}

.tmv-card-quick-meta {
    margin-bottom: 5px;
    color: #b8f2b0;
    font-weight: 700;
}

.tmv-quality {
    padding: 0 4px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 3px;
    color: #eee;
    font-size: 9px;
    line-height: 15px;
}

.tmv-card-quick-genres i {
    color: #888;
    font-style: normal;
}

/* Em telas muito estreitas, mantém apenas as ações para não cobrir o pôster. */
@media (max-width: 760px), (hover: none), (pointer: coarse) {
    .tmv-card-controls {
        opacity: 0;
        visibility: hidden;
    }

    .tmv-browse-card.tmv-card-active .tmv-card-controls,
    .tmv-card-controls:focus-within {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .tmv-card-quick-meta,
    .tmv-card-quick-genres {
        display: none;
    }
}

/* =========================================================
 * TMV Browse Experience 1.2.0 — modal central de detalhes
 * ======================================================= */
html.tmv-details-open,
body.tmv-details-open {
    overflow: hidden !important;
}

.tmv-details-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vh, 42px) 18px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 190ms ease;
}

.tmv-details-overlay.is-visible { opacity: 1; }

.tmv-details-dialog {
    position: relative;
    width: min(880px, 76vw);
    max-height: 91vh;
    overflow: hidden;
    border-radius: 10px;
    background: #181818;
    color: #fff;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .86);
    transform: translateY(20px) scale(.975);
    transition: transform 230ms cubic-bezier(.2, .8, .2, 1);
}

.tmv-details-overlay.is-visible .tmv-details-dialog {
    transform: translateY(0) scale(1);
}

.tmv-details-scroll {
    max-height: 91vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #666 #181818;
}

.tmv-details-scroll::-webkit-scrollbar { width: 10px; }
.tmv-details-scroll::-webkit-scrollbar-track { background: #181818; }
.tmv-details-scroll::-webkit-scrollbar-thumb { background: #666; border-radius: 10px; border: 3px solid #181818; }

.tmv-details-close {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(24,24,24,.9);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.tmv-details-close svg { width: 21px; height: 21px; fill: currentColor; }
.tmv-details-close:hover,
.tmv-details-close:focus-visible { background: #333; outline: 2px solid #fff; outline-offset: 2px; }

.tmv-details-hero {
    position: relative;
    min-height: clamp(330px, 51vw, 520px);
    overflow: hidden;
    background: #090909 var(--tmv-details-image) center 20% / cover no-repeat;
}

.tmv-details-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.tmv-details-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.3) 54%, rgba(0,0,0,.02) 78%),
        linear-gradient(0deg, #181818 0%, rgba(24,24,24,.83) 10%, rgba(24,24,24,0) 46%);
}

.tmv-details-hero-content {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 5vw, 52px);
    right: clamp(24px, 5vw, 52px);
    bottom: clamp(52px, 8vw, 82px);
    max-width: 68%;
}

.tmv-details-hero h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(30px, 4.4vw, 58px);
    line-height: .98;
    text-wrap: balance;
    text-shadow: 0 3px 18px #000;
}

.tmv-details-main-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tmv-details-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 23px;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-weight: 800;
    text-decoration: none;
    transition: background 140ms ease, transform 140ms ease;
}

.tmv-details-watch svg { width: 22px; height: 22px; fill: currentColor; }
.tmv-details-watch:hover,
.tmv-details-watch:focus-visible { background: #d7d7d7; color: #111; transform: scale(1.025); outline: none; }

.tmv-details-body { padding: 0 clamp(24px, 5vw, 52px) 46px; }

.tmv-details-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, .75fr);
    gap: clamp(28px, 5vw, 54px);
    margin: 0 0 34px;
}

.tmv-details-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    color: #d8d8d8;
    font-weight: 700;
    font-size: 14px;
}

.tmv-details-meta span:not(.tmv-details-age) { white-space: nowrap; }
.tmv-details-age { padding: 2px 6px; border-radius: 3px; background: #e50914; color: #fff; }
.tmv-details-description { margin: 0; color: #f2f2f2; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; }

.tmv-details-facts { color: #ddd; font-size: 14px; line-height: 1.48; }
.tmv-details-facts p { margin: 0 0 9px; }
.tmv-details-facts b { color: #888; font-weight: 500; }

.tmv-details-related,
.tmv-details-about { margin-top: 32px; }
.tmv-details-related h3,
.tmv-details-about h3 { margin: 0 0 17px; color: #fff; font-size: 22px; }

.tmv-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.tmv-details-related-card {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #2f2f2f;
    color: #fff;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}

.tmv-details-related-card:hover,
.tmv-details-related-card:focus-visible { transform: translateY(-3px); background: #383838; outline: 2px solid rgba(255,255,255,.75); outline-offset: 2px; }
.tmv-details-related-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.tmv-details-related-image img { width: 100%; height: 100%; object-fit: cover; }
.tmv-details-related-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 11px 12px 13px; }
.tmv-details-related-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.tmv-details-related-copy small { color: #aaa; }

.tmv-details-about { padding-top: 8px; color: #cfcfcf; font-size: 13px; line-height: 1.55; }
.tmv-details-about p { margin: 0 0 6px; }
.tmv-details-about b { color: #777; font-weight: 500; }

.tmv-details-loading,
.tmv-details-error {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px;
    text-align: center;
    color: #ddd;
}
.tmv-details-error { flex-direction: column; }
.tmv-details-error a { color: #fff; text-decoration: underline; }
.tmv-details-spinner { width: 25px; height: 25px; border: 3px solid rgba(255,255,255,.22); border-top-color: #fff; border-radius: 50%; animation: tmv-spin .72s linear infinite; }
@keyframes tmv-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
    .tmv-details-dialog { width: min(920px, 92vw); }
}

@media (max-width: 700px) {
    .tmv-details-overlay { padding: 0; place-items: stretch; }
    .tmv-details-dialog,
    .tmv-details-scroll { width: 100%; max-height: 100dvh; border-radius: 0; }
    .tmv-details-hero { min-height: 58vh; }
    .tmv-details-hero-content { max-width: 88%; bottom: 42px; }
    .tmv-details-summary { grid-template-columns: 1fr; gap: 22px; }
    .tmv-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
 * TMV Browse Experience 1.5.3 — banner vivo e trilho horizontal
 * ======================================================= */
.tmv-details-trailer {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #050505;
    opacity: 0;
    transition: opacity 420ms ease;
}

.tmv-details-hero.has-trailer .tmv-details-trailer {
    opacity: 1;
}

.tmv-details-trailer iframe,
.tmv-details-trailer video {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    transform: scale(1.02);
}

.tmv-details-hero-shade,
.tmv-details-hero-content {
    z-index: 3;
}

.tmv-details-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(165px, 210px);
    grid-template-columns: none !important;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.tmv-details-rail .tmv-details-related-card {
    scroll-snap-align: start;
}

.tmv-details-rail::-webkit-scrollbar {
    height: 7px;
}

.tmv-details-rail::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.24);
    border-radius: 999px;
}

@media (max-width: 700px) {
    .tmv-details-rail {
        grid-auto-columns: minmax(145px, 72vw);
    }
}


/* =========================================================
 * TMV Browse Experience 1.5.3 — padronização dos pôsteres
 * A largura é calculada pelo JavaScript usando o maior cartão
 * vertical útil encontrado na página, respeitando a tela.
 * ======================================================= */
.tmv-browse-experience {
    --tmv-standard-card-width: 220px;
    --tmv-standard-card-ratio: 2 / 3;
}

.tmv-browse-experience .tmv-browse-card.tmv-card-standardized {
    box-sizing: border-box !important;
    width: var(--tmv-standard-card-width) !important;
    min-width: var(--tmv-standard-card-width) !important;
    max-width: var(--tmv-standard-card-width) !important;
    flex: 0 0 var(--tmv-standard-card-width) !important;
}

.tmv-browse-experience .tmv-browse-card.tmv-card-standardized :is(
    .poster,
    .image,
    .thumbnail,
    .poster-container,
    .poster-wrapper
) {
    width: 100%;
    aspect-ratio: var(--tmv-standard-card-ratio);
}

.tmv-browse-experience .tmv-browse-card.tmv-card-standardized :is(
    .poster img,
    .image img,
    .thumbnail img,
    img.poster,
    img.wp-post-image
) {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top;
}

.tmv-browse-experience .tmv-card-row-standardized {
    --tmv-row-gap: 16px;
    gap: var(--tmv-row-gap);
}

/* Linhas comuns do DooPlay passam a usar colunas iguais. O número
 * de cartões visíveis se adapta ao espaço, sem encolher os pôsteres. */
.tmv-browse-experience .tmv-card-row-standardized.tmv-row-is-grid {
    grid-template-columns: repeat(auto-fill, var(--tmv-standard-card-width)) !important;
    justify-content: start;
}

/* Quando uma linha comporta mais títulos do que a largura disponível,
 * ela preserva o tamanho padrão e permite navegação horizontal. */
.tmv-browse-experience .tmv-card-row-standardized.tmv-row-is-flex:not(.owl-stage):not(.swiper-wrapper):not(.tmv-carousel-track) {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
    .tmv-browse-experience .tmv-browse-card.tmv-card-standardized {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: initial !important;
    }
}


/* =========================================================
 * TMV Browse Experience 1.5.3 — bloqueio definitivo do card
 * flutuante das versões anteriores.
 * ======================================================= */
.tmv-browse-experience .tmv-expanded-card,
.tmv-expanded-card {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.tmv-browse-experience .tmv-card-expanded {
    transform: none;
}

/* Os controles pertencem exclusivamente ao thumbnail original. */
.tmv-browse-experience .tmv-card-media-host {
    position: relative !important;
    overflow: hidden !important;
    border-radius: var(--tmv-card-radius, 14px);
}

.tmv-browse-experience .tmv-card-controls {
    display: flex !important;
}


/* =========================================================
 * TMV Browse Experience 1.5.3 — correção Android/mobile
 * Não abre espaço na grade e não permite invasão entre cards.
 * ======================================================= */
@media (max-width: 900px) and (pointer: coarse) {
    /* Restaura integralmente o cálculo responsivo do tema. */
    .tmv-browse-experience .tmv-browse-card,
    .tmv-browse-experience .tmv-browse-card.tmv-card-standardized {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        flex: initial !important;
        transform: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .tmv-browse-experience .tmv-card-row-standardized,
    .tmv-browse-experience .tmv-card-row-standardized.tmv-row-is-grid,
    .tmv-browse-experience .tmv-card-row-standardized.tmv-row-is-flex {
        grid-template-columns: revert !important;
        grid-auto-columns: revert !important;
        gap: revert !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        scroll-snap-type: none !important;
    }

    /* O overlay fica estritamente dentro da imagem e nunca altera o fluxo. */
    .tmv-browse-experience .tmv-card-media-host {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        contain: paint;
    }

    .tmv-browse-experience .tmv-card-controls {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .tmv-browse-experience .tmv-card-controls-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 7px 6px 8px !important;
        box-sizing: border-box !important;
    }

    .tmv-browse-experience .tmv-card-actions {
        gap: 4px !important;
        margin: 0 !important;
        justify-content: center;
    }

    .tmv-browse-experience .tmv-action {
        width: 27px !important;
        height: 27px !important;
        min-width: 27px !important;
        flex: 0 0 27px !important;
        border-width: 1px !important;
        box-sizing: border-box !important;
    }

    .tmv-browse-experience .tmv-action svg {
        width: 14px !important;
        height: 14px !important;
    }

    .tmv-browse-experience .tmv-action-info {
        margin-left: 0 !important;
    }

    .tmv-browse-experience .tmv-card-quick-meta,
    .tmv-browse-experience .tmv-card-quick-genres {
        display: none !important;
    }
}

/* Em Android TV, mantém o tamanho do tema e mostra controles somente no foco. */
@media (min-width: 901px) and (pointer: coarse) {
    .tmv-browse-experience .tmv-browse-card {
        transform: none !important;
    }

    .tmv-browse-experience .tmv-card-controls {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .tmv-browse-experience .tmv-browse-card:focus-within .tmv-card-controls,
    .tmv-browse-experience .tmv-browse-card.tmv-card-active .tmv-card-controls {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}


/* =========================================================
 * TMV Browse Experience 1.6.0 — thumbnail como ação principal
 * ======================================================= */
.tmv-browse-experience .tmv-card-center-play {
    display: none !important;
}

.tmv-browse-experience .tmv-card-primary-link {
    cursor: pointer !important;
    touch-action: manipulation;
}

/* A área da imagem recebe a mesma marca visual do card, sem criar um segundo foco. */
.tmv-browse-experience .tmv-card-primary-link:hover,
.tmv-browse-experience .tmv-browse-card.tmv-card-active .tmv-card-primary-link,
html.tmv-dpad-active .tmv-browse-experience .tmv-browse-card.tmv-tv-focused .tmv-card-primary-link {
    outline: none !important;
}

/* =========================================================
 * HOTFIX 1.5.4 — páginas TMV por gênero
 * A faixa .tmv-carousel-track usa transform controlado por
 * tmv-generos.js e nunca deve virar uma área rolável própria.
 * Isso remove a segunda barra vertical ao lado do último card.
 * ======================================================= */
body.tmv-generos-page.tmv-browse-experience .tmv-carousel-track,
body.tmv-generos-page.tmv-browse-experience .items.tmv-carousel-track,
body.tmv-generos-page.tmv-browse-experience .tmv-carousel-track.tmv-card-row-standardized,
body.tmv-generos-page.tmv-browse-experience .tmv-carousel-track.tmv-row-is-flex {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overscroll-behavior: auto !important;
}

body.tmv-generos-page.tmv-browse-experience .tmv-carousel-track::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

body.tmv-generos-page.tmv-browse-experience .tmv-carousel-viewport {
    overflow: hidden !important;
}



/* =========================================================
 * TMV Browse Experience 1.6.2 — DooPlay Sidebar Popular
 * Mantém a lista compacta do widget, mas padroniza a miniatura,
 * o foco e o acionamento com os demais cards do site.
 * ======================================================= */
.tmv-browse-experience :is(
    #sidebar .widget .w_item_a,
    #sidebar .widget .w_item_b,
    #sidebar .widget .item,
    .sidebar .widget .w_item_a,
    .sidebar .widget .w_item_b,
    .sidebar .widget .item,
    .widget_dooplay_widget .w_item_a,
    .widget_dooplay_widget .w_item_b,
    .widget_dooplay_widget .item
).tmv-sidebar-popular-card {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.tmv-browse-experience .tmv-sidebar-popular-card :is(
    .poster,
    .image,
    .thumbnail,
    .poster-container,
    .poster-wrapper,
    .tmv-sidebar-popular-thumb
) {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--tmv-card-radius) !important;
    box-shadow: var(--tmv-card-shadow);
    cursor: pointer;
    transform: translateZ(0);
    transition: box-shadow var(--tmv-card-speed) ease,
                transform var(--tmv-card-speed) cubic-bezier(.2,.72,.2,1);
}

.tmv-browse-experience .tmv-sidebar-popular-card :is(
    .poster img,
    .image img,
    .thumbnail img,
    img.wp-post-image,
    .tmv-sidebar-popular-thumb img
) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit !important;
}

.tmv-browse-experience .tmv-sidebar-popular-card .tmv-sidebar-popular-thumb:focus,
.tmv-browse-experience .tmv-sidebar-popular-card .tmv-sidebar-popular-thumb:focus-visible,
.tmv-browse-experience .tmv-sidebar-popular-card.tmv-card-active .tmv-sidebar-popular-thumb {
    outline: 3px solid rgba(229, 9, 20, .88);
    outline-offset: 3px;
    box-shadow: var(--tmv-card-shadow-hover), var(--tmv-card-ring);
}

@media (hover: hover) and (pointer: fine) {
    .tmv-browse-experience .tmv-sidebar-popular-card:hover .tmv-sidebar-popular-thumb {
        transform: translateY(-3px) scale(1.025);
        box-shadow: var(--tmv-card-shadow-hover), var(--tmv-card-ring);
    }
}

/* O widget é pequeno: não injeta nem exibe o conjunto de quatro ações. */
.tmv-browse-experience .tmv-sidebar-popular-card > .tmv-card-controls,
.tmv-browse-experience .tmv-sidebar-popular-card .tmv-card-controls {
    display: none !important;
}
