    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    :root {
        --primary: #26ADF7;
        --rl: #12af56;
        --r10: #0f7dc2;
        --r12: #e7b40c;
        --r14: #e67824;
        --r16: #db2827;
        --r18: #1d1815;
    }

    html,
    body {
        width: 100%;
        height: 100%;
        background: #000;
        overflow: hidden;
        font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    }

    /* ── TV CONTAINER ── */
    #tv {
        width: 100vw;
        height: 100vh;
        position: relative;
        overflow: hidden;
        color: #fff;
        outline: none;
        /* user-select: none;
        cursor: none; */
        background: #000000;
    }

    /* ── HERO BACKGROUND ── */

    /*         #hero-bg {
        position: absolute;
        inset: 0;
        left: 0;
        top: 70%;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        transform: scaleY(0.80) translateY(-100%);
        width: 100dvw;
        height: 100dvh;
        z-index: 0;
    } */

    #hero-bg {
        position: absolute;
        inset: 0;
        left: 0;
        top: 55%;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        transform: scaleY(0.70) translateY(-100%);
        width: 100%;
        height: 100dvh;
        z-index: 0;
    }

    #hero-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        width: clamp(300px, 100vw, 1100px);
        height: 100%;
        background-image: url('/img/overlay3.png');
        background-size: 100% 100%;
        opacity: 0.87;
        background-position: center;
        background-repeat: no-repeat;
    }

    #hero-bg::before {
        content: '';
        position: absolute;
        inset: 0;
        bottom: -1px;
        left: 0;
        background:
            linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.4) 20%, transparent 45%);
    }

    /* ── LOADING ── */
    #loading {
        position: absolute;
        inset: 0;
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #080808;
        font-size: clamp(12px, 2vw, 20px);
        opacity: .5;
        letter-spacing: .08em;
        transition: opacity .4s;
    }

    /* ── NAVBAR ── */
    #nav-home {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 3.5% 10px 3.5%;
        width: 100%;
        z-index: 10;
        background-color: rgba(255, 0, 0, 0);
        gap: .3%;
    }

    .ni {
        background: none;
        border: none;
        color: #fff;
        font-size: clamp(10px, 1.65vw, 14px);
        font-family: 'Inter', sans-serif;
        font-weight: 100 !important;
        opacity: 0.85;
        cursor: pointer;
        padding: .28em .7em;
        height: clamp(20px, 3vw, 32px);
        margin-right: .2%;
        border-bottom: 2px solid transparent;
        transition: opacity .12s, transform .12s;
        outline: none;
        white-space: nowrap;
    }

    .ni.active {
        border-bottom: 2px solid #26ADF7;
    }

    .ni.focused {
        font-weight: 500;
        opacity: 0.9;
        border-bottom: 2px solid #26ADF7;
        transform: scale(1.06);
    }

    .nav-icons {
        position: relative;
        display: flex;
        height: clamp(20px, 3vw, 32px);
        margin-left: auto;
        gap: 18px;
        width: fit-content;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .search-icon {
        position: relative;
        width: clamp(20px, 3vw, 32px);
        height: clamp(20px, 3vw, 32px);
        border-radius: 50%;
        margin: auto;
        background: transparent;
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        background-color: #0000006c;
    }

    .search-icon.focused {
        background-color: #000000bb;
    }

    .search-icon.focused svg {
        scale: 0.92;
    }

    .search-icon svg {
        transform: scale(0.92);
        margin-bottom: 1;
        width: clamp(15px, 2vw, 22px);
        height: clamp(15px, 2vw, 22px);
    }

    .box-nav-avatar {
        position: relative;
        width: clamp(20px, 3vw, 32px);
        height: clamp(20px, 3vw, 32px);
        border-radius: 50%;
        background: rgb(20, 20, 20);
        display: flex;
        align-items: center;
        justify-content: center;
    }


    #nav-avatar {
        display: flex;
        flex-shrink: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }


    /* ── HERO ── */
    .hero {
        position: absolute;
        left: 3.5%;
        top: 16%;
        width: 42%;
        z-index: 5;
    }

    #hero-logo {
        max-width: clamp(120px, 28vw, 340px);
        max-height: clamp(40px, 8vw, 100px);
        object-fit: contain;
        object-position: left;
        margin-bottom: 3%;
    }

    #hero-title-text {
        margin-bottom: 3%;
        line-height: .92;
    }

    #hero-title-text .prefix {
        font-size: clamp(5px, .82vw, 10px);
        font-weight: 700;
        letter-spacing: .28em;
        opacity: .72;
        margin-bottom: 3%;
        text-transform: uppercase;
    }

    #hero-title-text .main {
        font-size: clamp(19px, 4.2vw, 52px);
        font-weight: 900;
        color: #26adf7;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    #hero-title-text .sub {
        font-size: clamp(16px, 3.6vw, 44px);
        font-weight: 900;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .hero-meta-group {
        display: flex;
        flex-direction: column;
        gap: 0.2vw;
    }

    #hero-meta {
        display: flex;
        align-items: center;
        gap: clamp(6px, 1.2%, 14px);
    }

    #hero-meta span {
        font-size: clamp(10px, 1.45vw, 13.2px);
        opacity: .72;
    }

    #hero-meta .badge {
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        width: clamp(11px, 2vw, 21.5px);
        height: clamp(10px, 2vw, 20.5px);
        background-color: #7a09d6;
        font-size: clamp(6px, .95vw, 11px);
        opacity: 1;
    }

    .rL {
        background-color: var(--rl) !important;
    }

    .r10 {
        background-color: var(--r10) !important;
    }

    .r12 {
        background-color: var(--r12) !important;
    }

    .r14 {
        background-color: var(--r14) !important;
    }

    .r16 {
        background-color: var(--r16) !important;
    }

    .r18 {
        background-color: var(--r18) !important;
    }

    #hero-meta .dot {
        opacity: .4;
    }

    #hero-evaluation {
        line-height: 1.55;
        display: inline-block;
        font-size: clamp(10px, 1.4vw, 13.2px);
        display: -webkit-box;
        font-weight: 500;
        color: #10c75f;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #hero-desc {
        font-size: clamp(10px, 1.45vw, 13.2px);
        opacity: .78;
        line-height: 1.55;
        max-width: clamp(180px, 31vw, 350px);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        font-weight: 500;
        -webkit-box-orient: vertical;
        font-family: 'Inter', sans-serif !important;
        overflow: hidden;
    }

    .hero-actions {
        display: flex;
        display: none;
        align-items: center;
        width: fit-content;
        height: fit-content;
        gap: 24px;
    }


    .hb {
        transition: transform .12s, outline .1s;
        outline: none;
    }

    .hb.focused {
        outline: 3px solid #ffffff;
        outline-offset: 3px;
    }

    .btn-play {
        background: #fff;
        color: #090909;
        border: none;
        border-radius: 4px;
        width: 6.8em;
        height: 2.8em;
        font-size: clamp(8px, 1.25vw, 15px);
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        white-space: nowrap;
    }

    .btn-ghost {
        background: transparent;
        color: #ffffffc2;
        border: none;
        font-size: clamp(6px, 1.1vw, 12px);
        cursor: pointer;
        display: flex;
        height: 100%;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: auto;
        height: 3.3em;
        border-radius: 4px;
    }

    .btn-ghost .ti {
        font-size: clamp(10px, 1.7vw, 20px);
    }

    .card {
        width: clamp(140px, 16vw, 246px);
        height: clamp(85px, 8vw, 140px);
        border-radius: 7px;
        background-size: 100% 100%;
        background-position: center top;
        background-repeat: no-repeat;
        background-color: #1a1a2e;
        display: flex;
        flex-shrink: 0;
        margin-bottom: 30px;
        padding: 5% 4%;
        position: relative;
        transition: transform .2s cubic-bezier(.4, 0, .2, 1), outline .15s;
        outline: 4px solid transparent;
        outline-offset: 2px;
        cursor: pointer;
        overflow: hidden;
    }



    .card .cov {
        position: absolute;
        inset: 0;
        /* sombra no card */
        width: 100%;
        bottom: -2px;
        border-radius: 6px;
        overflow: hidden;
        background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .2) 45%, transparent 90%);
    }

    .card .card-title {
        position: relative;
        font-size: clamp(5px, .82vw, 8.5px);
        font-weight: 600;
        line-height: 1.25;
        text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        display: none;
    }

    .card.focused {
        outline: 2px solid rgba(255, 255, 255, 0.774);
        outline-offset: 2px;
        will-change: transform;
        /*  margin: 0 10px 0 10px; */
        /*   box-shadow: 0 0 10px 5px #ffffff59; */
        /*  transform: translateY(-10px) scale(1.1); */

    }

    /* rating badge on card */
    .card .card-rating {
        position: absolute;
        top: 5%;
        right: 5%;
        font-size: clamp(4px, .7vw, 9px);
        font-weight: 700;
        background: rgba(0, 0, 0, 0.521);
        border-radius: 3px;
        padding: .35em .65em;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .card .card-rating .star {
        color: #f5c22a;
    }

    /* ── ERROR ── */
    #error-msg {
        position: absolute;
        inset: 0;
        z-index: 50;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: rgba(8, 8, 8, .92);
        font-size: clamp(10px, 1.5vw, 16px);
        opacity: .7;
        text-align: center;
        padding: 5%;
    }

    #error-msg i {
        font-size: clamp(24px, 4vw, 48px);
        opacity: .5;
    }

    /* ── ZONE BADGE ── */
    #zonebadge {
        position: absolute;
        bottom: .4%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
        font-size: clamp(4px, .6vw, 7px);
        opacity: .25;
        letter-spacing: .06em;
        white-space: nowrap;
        pointer-events: none;
    }







    /* sobe a rowlist de filmes pra abrir espaço pra série embaixo */
    /*     .rows-viewport {
        width: 100%;
        height: clamp(200px, 20vw, 280px);
        position: absolute;
        display: flex;
        flex-direction: column;
        bottom: 40px;
        overflow-y: auto;
        display: none;
        background-color: rgba(105, 0, 0, 0);
    }
 */

    .rows-viewport {
        width: 100%;
        height: 40vh;
        position: absolute;
        display: flex;
        flex-direction: column;
        bottom: 0%;
        bottom: clamp(20px, 2.08vw, 40px);
        overflow: auto;
        background-color: rgba(105, 0, 0, 0);
        display: none;
    }


    .rows-viewport::-webkit-scrollbar {
        display: none;
    }


    .card-row-clip,
    .series-row-clip,
    .top10-row-clip,
    .top10-movies-row-clip,
    .animes-row-clip,
    .comedy-row-clip,
    .drama-row-clip,
    .terror-row-clip {
        position: relative;
        padding: 0 2.95%;
        z-index: 5;
    }







    #cardrow,
    #cardrow-series,
    #cardrow-top10,
    #cardrow-top10-movies,
    #cardrow-animes,
    #cardrow-comedy,
    #cardrow-drama,
    #cardrow-terror {
        scroll-behavior: smooth;
        display: flex !important;
        gap: clamp(7px, .7%, 9px);
        will-change: transform;
        transition: transform .22s cubic-bezier(.4, 0, .2, 1);
    }

    .card-row-clip,
    .series-row-clip,
    .top10-row-clip,
    .top10-movies-row-clip,
    .animes-row-clip,
    .comedy-row-clip,
    .drama-row-clip,
    .terror-row-clip {
        /* Define uma altura máxima base ou use max-height para animar */
        max-height: 250px;
        opacity: 1;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
    }

    /* Classe que vai colapsar a linha suavemente */
    .row-collapsed {
        max-height: 0px !important;
        opacity: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        pointer-events: none;
    }



    .rowLabel {
        color: #dddddd;
        padding-left: 10px;
        padding-bottom: 7px;
        font-size: clamp(10px, 1.35vw, 14px);
    }



    .overlay-rowlist {
        position: absolute;
        bottom: 0;
        height: 150px;
        width: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 4%, transparent 60%);
        z-index: 5;
    }


























    /* 1. Remove QUALQUER outline/border nativo do container principal do Top 10 */
    .top10-card,
    .top10-card:focus,
    .top10-card:focus-visible,
    .top10-card:focus-within,
    .top10-card.focused {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }


    /* Container do Card Top 10 */
    .top10-card {
        position: relative;
        display: flex;
        flex-shrink: 0;
        margin-top: clamp(30px, 2vh, 5px);
        margin-right: clamp(50px, 2.6vw, 50px);
        z-index: 10 !important;
        width: clamp(75px, 7.29vw, 140px);
        /* Largura total reservada para [Número + Poster] */
        height: clamp(105px, 10.42vw, 200px);
        overflow: visible !important;
        background: transparent !important;
        /* Remove background padrão do card */
    }

    /* O Número Gigante Estilo Netflix (vazado com stroke) */
    .top10-number {
        position: absolute;
        top: clamp(18px, 1.82vw, 35px);
        font-size: clamp(64px, 6.25vw, 120px);
        font-weight: 900;
        line-height: 0.8;
        font-family: 'Impact', 'Trebuchet MS', 'Arial Black', sans-serif;
        color: #000;
        -webkit-text-stroke: 1px #595959;
        text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.9);
        z-index: 1;
        pointer-events: none;
        user-select: none;
    }

    /* O Poster (deslocado para a direita para dar espaço ao número) */
    /*     .top10-poster {
        position: relative;
        width: 130px;
        height: 190px;
        margin-left: 40px;
        z-index: 10 !important;
        border-radius: 6px;
        background-size: cover;
        display: flex;
        flex-shrink: 0;
        background-position: center;
        transition: transform 0.2s ease;
    } */
    .top10-poster {
        position: relative;
        width: clamp(90px, 6.77vw, 130px);
        height: clamp(130px, 9.89vw, 190px);
        margin-left: clamp(20px, 2.08vw, 40px);
        z-index: 10 !important;
        border-radius: 6px;
        background-size: cover;
        display: flex;
        flex-shrink: 0;
        background-position: center;
        transition: transform 0.2s ease;
    }

    /* Efeito ao FOCAR no card com o controle remoto */
    .top10-card.focused .top10-poster {
        transform: scale(1.08);
        outline: solid 2px;
        outline-offset: 1px;
        /*     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8); */
    }

    .top10-card.focused .top10-number {
        /* Troca a borda para branco e destaca ao receber foco */
        -webkit-text-stroke: 1px #ffffff;
        color: #26ADF7;
        /* Vermelho Netflix ou a cor do seu app */
    }



    .top10-icon {
        background-color: #00a6ff;
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 0px 6px 0px 5px;
        width: 35px;
        height: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .top10-icon span {
        color: #ffffff;
        font-weight: 900;
        font-size: 0.7em;
    }

























    /* Alvo: Largura lógica de até 960px COM densidade de pixels igual ou maior a 2 */
    @media screen and (max-width: 960px) and (-webkit-min-device-pixel-ratio: 2),
    screen and (max-width: 960px) and (min-resolution: 192dpi) {

        /*         .hero-meta-group {
            transform: scale(0.95) translateX(0.5%);
        }
        
        #hero-logo {
            transform: scale(0.70) translateX(0.50%);
        } */
        .hero {
            position: absolute;
            left: -1%;
            top: 14%;
            width: 42%;
            z-index: 5;
            transform: scale(0.77);
        }

        #tv nav .ni {
            font-size: clamp(10px, 1.65vw, 11px);
        }



        .nav-icons {
            height: clamp(20px, 3vw, 29px);
        }

        .search-icon {
            width: clamp(20px, 3vw, 29px);
            height: clamp(20px, 3vw, 29px);
        }

        .search-icon svg {
            width: clamp(15px, 2vw, 22px);
            height: clamp(15px, 2vw, 22px);
        }

        .box-nav-avatar {
            width: clamp(20px, 3vw, 29px);
            height: clamp(20px, 3vw, 29px);
        }


        .rowLabel {
            font-size: clamp(10px, 1.35vw, 11px);
        }


        .rows-viewport {
            bottom: 0%;
            height: 42vh;
        }


        #hero-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            width: clamp(300px, 100vw, 1000px);
            height: 100%;
            background-image: url('/img/overlay3.png');
            background-size: 100% 100%;
            opacity: 0.98;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* search */
        .search-left {
            width: clamp(200px, 26.5vw, 280px);
            min-width: clamp(200px, 26.5vw, 280px);
            max-width: clamp(200px, 26.5vw, 280px);
            display: flex;
            flex-direction: column;
            scrollbar-width: none;
        }
    }