:root {
    --bg: #05070D;
    --bg2: #0B1020;
    --card: #121828;
    --card2: #1A2133;
    --gold: #FF8C24;
    --gold-soft: #CC6F12;
    --text-soft: #B9C2D0;
    --border: #2D364A;
    --danger: #FF7070;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: Roboto, Arial, sans-serif;
    color: white;
    background: #05070D;
}

#login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #05070D,
        #0A1020,
        #18120C,
        #05070D
    );
}

.login-card {
    width: 90%;
    max-width: 1120px;
    display: flex;
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 32px;
    background: rgba(17,23,38,.86);
}

.login-form {
    flex: 1;
    min-width: 0;
    margin-right: 24px;
}

h1 {
    margin: 0;
    color: #FF8C24;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
}

.login-form p {
    color: #B9C2D0;
    font-size: 14px;
    margin: 8px 0 24px;
}

.field {
    border: 1px solid #364052;
    border-radius: 22px;
    background: #101622;
    margin-bottom: 12px;
    padding: 9px 16px;
}

.field label {
    display: block;
    font-size: 12px;
    color: #B9C2D0;
}

input {
    width: 100%;
    border: 0;
    background: transparent;
    color: white;
    font-size: 17px;
    padding: 7px 0;
    outline: none;
}

.password-row {
    display: flex;
    align-items: center;
}

#togglePassword {
    color: #FF8C24;
    background: transparent;
    border: 0;
    padding: 8px;
}

#enter {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 32px;
    background: #FF8C24;
    color: black;
    font-weight: 900;
    font-size: 14px;
    margin-top: 6px;
}

#enter:disabled {
    background: #363C48;
    color: #9298A4;
}

.brand-card {
    width: 40%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.2);
    background: linear-gradient(
        #121827,
        #0A0F1B,
        #20150D
    );
}

.brand-card img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    border-radius: 24px;
}

.brand-card h2 {
    color: #FF8C24;
    font-size: 28px;
    letter-spacing: 4px;
    margin: 18px 0 4px;
}

.brand-card span {
    color: #B9C2D0;
    font-size: 12px;
    letter-spacing: 3px;
}

small {
    display: block;
    color: #8F98AA;
    font-size: 12px;
    margin-top: 18px;
}

#loginMessage {
    color: #FF7070;
    font-size: 13px;
    margin-top: 10px;
}

.field:focus-within {
    border-color: #FF8C24;
    background: #141B29;
}

button:focus {
    outline: 3px solid #FF8C24;
    outline-offset: 4px;
}

#novaHome {
    min-height: 100vh;
    background: #05080F;
}

.nova-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #090E18;
}

.nova-brand {
    color: #FF8C24;
    font-size: 26px;
    font-weight: 900;
}

.nova-brand-small {
    font-size: 9px;
    margin: 0 12px 0 5px;
}

.nova-space {
    flex: 1;
}

.nova-nav {
    border: 1px solid #2D364A;
    border-radius: 24px;
    color: white;
    background: #121828;
    padding: 10px 17px;
    margin: 4px;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
}

.nova-nav.selected {
    background: #FF8C24;
    color: black;
    border-color: #FF8C24;
}

.nova-content {
    padding: 12px 24px 25px;
}

.nova-content h1 {
    color: white;
    font-size: 29px;
    margin: 12px 0;
}

.nova-content h2 {
    font-size: 20px;
    margin: 18px 0 9px;
}

.nova-hero {
    height: 255px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(
        90deg,#18110B,#222C40,#080D17);
    background-position: center right;
    background-size: cover;
}

.nova-hero-text {
    padding: 24px;
    max-width: 65%;
}

.nova-hero-text small,
.nova-detail small,
.nova-meta {
    color: #FF8C24;
    font-weight: bold;
}

.nova-row {
    display: flex;
    overflow-x: auto;
    padding: 8px 4px;
}

.nova-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 4px;
}

.nova-poster {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 15%;
    min-width: 130px;
    margin: 5px;
    background: #121828;
    border: 1px solid #2D364A;
    color: white;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
}

.nova-poster img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    background: #1A2133;
}

.nova-poster.wide {
    width: 18%;
}

.nova-poster.wide img {
    height: 115px;
    object-fit: contain;
}

.nova-poster span {
    display: block;
    width: 100%;
    padding: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.nova-categories {
    display: flex;
    overflow-x: auto;
    padding: 8px 4px;
}

.nova-detail {
    display: flex;
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(90deg,#080C15,#241509);
}

.nova-detail > img {
    width: 265px;
    height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin-right: 25px;
}

.nova-detail-body {
    flex: 1;
    line-height: 1.5;
}

.nova-search {
    width: 430px;
    border: 1px solid #364052;
    border-radius: 24px;
    padding: 15px;
    background: #121828;
}

.nova-poster:focus,
.nova-nav:focus {
    outline: 3px solid #FF8C24;
    outline-offset: 2px;
}


#novaVideoPlayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
}

#novaVideoPlayer video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nova-video-title {
    position: absolute;
    top: 25px;
    left: 30px;
    color: white;
    background: rgba(5,8,15,.8);
    padding: 15px 24px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: bold;
}

.nova-video-status {
    position: absolute;
    top: 48%;
    left: 10%;
    width: 80%;
    text-align: center;
    color: #FF8C24;
    font-size: 22px;
}

.nova-video-tools {
    position: absolute;
    bottom: 25px;
    left: 25px;
    display: flex;
    padding: 10px;
    background: rgba(9,14,24,.86);
    border-radius: 20px;
}

.nova-video-menu {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 340px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(5,8,15,.97);
    border-right: 2px solid #FF8C24;
}

.nova-video-menu button {
    display: block;
    width: 100%;
    text-align: left;
    white-space: normal;
}


#novaHome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    color: #FFFFFF;
}

#novaHome button:focus,
#novaHome input:focus,
#novaVideoPlayer button:focus {
    outline: 3px solid #FF8C24;
    outline-offset: 2px;
    box-shadow: 0 0 12px rgba(255,140,36,.35);
}

#novaHome input {
    color: #FFFFFF;
}

#novaHome .nova-header {
    position: sticky;
    top: 0;
    z-index: 10;
}



/* NOVA PLAYER SMART V2 PREMIUM */

#novaVideoPlayer {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #000 !important;
    overflow: hidden;
    outline: none;
}

#novaVideoPlayer video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.nova-video-touch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

#novaVideoPlayer .nova-video-title {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    border-radius: 0;
    background: linear-gradient(
        transparent, rgba(0,0,0,.90)
    );
    font-size: 24px;
    z-index: 3;
    pointer-events: none;
    transition: opacity .25s;
}

.nova-video-title strong {
    display: block;
    color: #fff;
    font-weight: 700;
}

.nova-video-title small {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    color: #FF8C24;
}

.nova-live-player .nova-video-tools {
    display: none !important;
}

#novaVideoPlayer .nova-video-status {
    z-index: 4;
    pointer-events: none;
    color: #FF8C24;
    font-size: 20px;
}

#novaVideoPlayer .nova-video-menu {
    z-index: 6;
    width: 48%;
    max-width: 480px;
    box-sizing: border-box;
    background: rgba(11,16,29,.95);
    border-right: 1px solid #2D364A;
    padding: 20px;
}

#novaVideoPlayer .nova-video-menu button {
    margin-bottom: 8px;
    border-radius: 10px;
    padding: 14px;
    color: #fff;
    background: #1A2133;
    border: 2px solid transparent;
}

#novaVideoPlayer .nova-video-menu button:focus {
    border-color: #FF8C24;
    background: #2D364A;
    outline: none;
}

/* NOVA SMART - Navegacao interna */
#novaVideoPlayer .nova-live-back {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 8;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    background: rgba(10,15,25,.85);
    color: #ffad42;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

#novaVideoPlayer .nova-live-back:focus {
    outline: 2px solid #ffad42;
}


/* NOVA PREMIUM - VOD limpo */

#novaVideoPlayer.nova-vod-player .nova-video-tools {
    top: 18px;
    bottom: auto;
    left: 18px;
    z-index: 8;
    padding: 4px;
    background: rgba(0,0,0,.45);
    transition: opacity .3s;
}

#novaVideoPlayer.nova-vod-player .nova-video-title {
    top: 22px;
    bottom: auto;
    left: 165px;
    right: 20px;
    padding: 10px;
    background: transparent;
    font-size: 20px;
    text-shadow: 0 2px 8px #000;
}

/* NOVA PREMIUM - Velocidade LIVE */

.nova-speed-box {
    position: absolute;
    top: 18px;
    right: 145px;
    z-index: 9;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #ff9b24;
    pointer-events: none;
    font-size: 10px;
}

.nova-speed-ring {
    width: 76px;
    height: 76px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(9,14,24,.88);
    box-sizing: border-box;
}

.nova-speed-ring:before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255,155,36,.2);
    border-top-color: #ff9b24;
    border-right-color: #ff9b24;
    border-radius: 50%;
    animation: novaSpeedSpin 1s linear infinite;
}

.nova-speed-ring span {
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.nova-speed-ring small {
    color: #ddd;
    font-size: 11px;
}

@keyframes novaSpeedSpin {
    to { transform: rotate(360deg); }
}

/* NOVA - Indicador circular minimalista */

.nova-speed-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    top: 18px;
    right: 145px;
}

.nova-speed-box > small,
.nova-network-info {
    display: none !important;
}

.nova-speed-ring {
    width: 68px;
    height: 68px;
}

.nova-speed-ring:before {
    border: 3px solid rgba(255,155,36,.18);
    border-top-color: #ff9b24;
    border-right-color: #ff9b24;
    animation: novaSpeedSpin 2s linear infinite;
}

.nova-speed-ring span {
    font-size: 19px;
}

/* NOVA PREMIUM - Plataformas */

.nova-platform-row {
    display: flex;
    overflow-x: auto;
    padding: 12px 5px 20px;
}

.nova-platform-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 136px;
    margin: 0 9px;
    padding: 5px;
    color: white;
    background: transparent;
    border: none;
    border-radius: 18px;
    cursor: pointer;
}

.nova-platform-circle {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.5px;
    box-shadow: 0 5px 16px rgba(0,0,0,.4);
    border: 2px solid rgba(255,255,255,.1);
    box-sizing: border-box;
}

.nova-platform-card > span {
    margin-top: 11px;
    font-size: 14px;
    font-weight: 600;
}

.nova-platform-card:focus {
    outline: 3px solid #FF8C24;
    outline-offset: 2px;
}


/* NOVA PLAYER - Logo redonda final */

.nova-round-logo {
    width: 76px;
    height: 76px;
    min-width: 76px;
    flex-shrink: 0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-round-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nova-hero {
    background-color: #080D17;
    background-size: cover;
    background-position: center;
}



/* NOVA PREMIUM - Smart TV responsiva */

.nova-tv-mode #novaHome {
    font-size: 20px;
}

.nova-tv-mode .nova-header {
    flex-wrap: wrap;
}

.nova-tv-mode .nova-header button {
    font-size: 20px;
    padding: 12px 18px;
}

.nova-tv-mode .nova-content h1 {
    font-size: 36px;
}

.nova-tv-mode .nova-content h2 {
    font-size: 27px;
}

.nova-tv-mode .nova-hero h1 {
    font-size: 40px;
}

.nova-tv-mode .nova-hero p {
    font-size: 20px;
}

.nova-tv-mode .nova-nav {
    font-size: 20px;
}

.nova-tv-mode .nova-poster span {
    font-size: 19px;
    box-sizing: border-box;
}

.nova-tv-mode .nova-platform-card > span {
    font-size: 20px;
}

.nova-tv-mode .nova-detail-body {
    font-size: 22px;
    line-height: 1.6;
}

.nova-tv-mode .nova-detail-body small,
.nova-tv-mode .nova-meta {
    font-size: 19px;
}

.nova-tv-mode #novaVideoPlayer
.nova-video-title strong {
    font-size: 30px;
}

.nova-tv-mode #novaVideoPlayer
.nova-video-title small {
    font-size: 19px;
}

.nova-tv-mode .nova-video-menu button {
    font-size: 20px;
}

.nova-tv-mode .nova-speed-ring span {
    font-size: 21px;
}

.nova-tv-mode .nova-search {
    font-size: 22px;
    max-width: 95%;
    box-sizing: border-box;
}

.nova-tv-mode .nova-poster:focus,
.nova-tv-mode .nova-nav:focus,
.nova-tv-mode .nova-platform-card:focus {
    outline: 4px solid #FF9824;
    outline-offset: 3px;
}

/* Ajuste para telas de TV menores */

@media (max-width: 1280px) {
    .nova-tv-mode .nova-header button {
        font-size: 17px;
        padding: 10px 13px;
    }

    .nova-tv-mode .nova-content h1 {
        font-size: 30px;
    }

    .nova-tv-mode .nova-detail-body {
        font-size: 19px;
    }
}

/* Celulares em orientacao vertical */

@media (max-width: 600px) and (orientation: portrait) {

    .nova-mobile-mode .nova-header {
        flex-wrap: wrap;
    }

    .nova-mobile-mode .nova-header button {
        font-size: 13px;
        padding: 8px;
    }

    .nova-mobile-mode .nova-round-logo {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .nova-mobile-mode .nova-detail {
        flex-direction: column;
        padding: 16px;
    }

    .nova-mobile-mode .nova-detail > img {
        width: 150px;
        height: 225px;
        margin: 0 auto 16px;
    }

    .nova-mobile-mode .nova-search {
        width: 100%;
        box-sizing: border-box;
    }

    .nova-mobile-mode .nova-poster {
        min-width: 108px;
    }

    .nova-mobile-mode .nova-poster img {
        height: 165px;
    }

    .nova-mobile-mode .nova-poster.wide img {
        height: 90px;
    }

    .nova-mobile-mode .nova-platform-card {
        width: 104px;
    }

    .nova-mobile-mode .nova-platform-circle {
        width: 84px;
        height: 84px;
        font-size: 13px;
    }
}


/* NOVA - Foco dos detalhes na Smart TV */

.nova-detail-body button:focus {
    outline: 4px solid #FF9824;
    outline-offset: 4px;
    box-shadow: 0 0 15px rgba(255,152,36,.45);
}



/* NOVA LIVE - Tela limpa */

.nova-live-player .nova-speed-box {
    top: 18px;
    right: 18px;
}

.nova-live-player .nova-live-back {
    top: 18px;
    right: 108px;
}



/* NOVA - Navegacao VOD definitiva */

.nova-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 15px 0 20px;
}

.nova-detail-body {
    min-width: 0;
    overflow-wrap: break-word;
}

.nova-detail > img {
    flex-shrink: 0;
}



/* NOVA PREMIUM - Controle proprio VOD */

#novaVideoPlayer.nova-vod-player .nova-video-tools {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    pointer-events: none;
    z-index: 8;
}

.nova-vod-back {
    position: absolute;
    top: 18px;
    left: 18px;
    pointer-events: auto;
}

.nova-vod-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 5%;
    background: linear-gradient(
        transparent, rgba(0,0,0,.97)
    );
    pointer-events: auto;
}

.nova-vod-progress {
    width: 100%;
    height: 12px;
    accent-color: #FF9824;
    cursor: pointer;
}

.nova-vod-clock {
    color: white;
    font-size: 16px;
    text-align: right;
    padding: 8px 0;
}

.nova-vod-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-vod-buttons button {
    margin: 0 10px;
}

.nova-tv-mode .nova-vod-clock {
    font-size: 22px;
}

.nova-history-track {
    width: 100%;
    height: 5px;
    background: #303849;
}

.nova-history-fill {
    height: 100%;
    background: #FF9824;
}

.nova-history-card small {
    padding: 0 10px 12px;
    color: #BFC6D2;
    text-align: left;
}



/* NOVA PREMIUM - Acompanhamento automatico do foco */

#novaHome {
    scroll-behavior: auto !important;
    scroll-padding-top: 110px;
    scroll-padding-bottom: 24px;
    overflow-anchor: none;
}

#novaHome .nova-row,
#novaHome .nova-platform-row,
#novaHome .nova-categories {
    scroll-behavior: auto !important;
    scroll-padding-left: 18px;
    scroll-padding-right: 18px;
}

#novaHome button {
    scroll-margin-top: 24px;
    scroll-margin-bottom: 24px;
}



/* ====================================
   NOVA PLAYER ULTRA PREMIUM V1
   ==================================== */

.nova-ultra-home {
    position: relative;
    isolation: isolate;
    --nova-ambient: none;
}

.nova-ultra-home::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(5,8,15,.90),
            rgba(5,8,15,.97)
        ),
        var(--nova-ambient);
    background-size: cover;
    background-position: center;
}

#novaHome .nova-ultra-hero {
    min-height: 340px;
    height: auto;
    background-color: #080D17;
    background-size: cover;
    background-position: center 35%;
    border: 1px solid rgba(255,152,36,.13);
    border-radius: 18px;
}

.nova-ultra-hero .nova-hero-text {
    padding: 30px;
    width: 58%;
    box-sizing: border-box;
}

.nova-ultra-hero h1 {
    font-weight: 800;
    line-height: 1.15;
    margin: 14px 0;
}

.nova-ultra-meta {
    color: #FFBD78;
    font-size: 17px;
    margin: 12px 0;
}

.nova-ultra-synopsis {
    color: #D2D7E0;
    font-size: 17px;
    line-height: 1.5;
    margin: 12px 0 18px;
}

.nova-ultra-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nova-ultra-actions button {
    padding: 13px 20px;
}

.nova-ultra-dots {
    display: flex;
    align-items: center;
    margin-top: 22px;
}

.nova-ultra-dots span {
    display: block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    background: rgba(255,255,255,.30);
    border-radius: 10px;
}

.nova-ultra-dots span.active {
    width: 23px;
    background: #FF9824;
}

.nova-ultra-home .nova-section {
    margin-top: 22px;
}

.nova-ultra-home .nova-row {
    padding-top: 12px;
    padding-bottom: 14px;
}

#novaHome .nova-ultra-home .nova-poster:focus {
    outline: 3px solid #FF9824;
    outline-offset: 3px;
    box-shadow: 0 0 15px rgba(255,152,36,.55);
    background: #211910;
}

.nova-ultra-home .nova-poster img {
    transition: transform 160ms ease;
}

.nova-ultra-home .nova-poster:focus img {
    transform: scale(1.035);
}

.nova-ultra-enter {
    animation: novaUltraFade 250ms ease-out;
}

@keyframes novaUltraFade {
    from { opacity: .65; }
    to { opacity: 1; }
}

@media (max-width: 600px) {

    #novaHome .nova-ultra-hero {
        min-height: 270px;
    }

    .nova-ultra-hero .nova-hero-text {
        width: 100%;
        padding: 20px;
    }

    .nova-ultra-synopsis {
        font-size: 14px;
    }

    .nova-ultra-meta {
        font-size: 13px;
    }

    .nova-ultra-actions button {
        padding: 10px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .nova-ultra-enter {
        animation: none;
    }

    .nova-ultra-home .nova-poster img {
        transition: none;
    }
}



/* NOVA PLAYER ULTRA PREMIUM V2 */

.nova-library-empty {
    color: #A9B2C2;
    padding: 15px 0;
}

.nova-ranking-card {
    position: relative;
}

.nova-rank-number {
    position: absolute;
    bottom: 36px;
    left: 5px;
    z-index: 2;
    font-size: 62px;
    font-weight: 900;
    line-height: 1;
    color: #FF9824;
    text-shadow:
        2px 2px 0 #080D17,
        -2px -2px 0 #080D17,
        0 0 12px #000;
    pointer-events: none;
}

.nova-detail-actions
button[data-nova-action="favorite"] {
    border-color: #FF9824;
}

.nova-detail-actions
button[aria-pressed="true"] {
    background: #392314;
    color: #FFB668;
}

.nova-premium-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 12px;
    color: #C6CEDA;
}

.nova-premium-spinner {
    width: 29px;
    height: 29px;
    border: 3px solid #303849;
    border-top-color: #FF9824;
    border-radius: 50%;
    margin-right: 14px;
    animation: novaPremiumSpin .9s linear infinite;
}

@keyframes novaPremiumSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .nova-premium-spinner {
        animation: none;
    }
}

@media (max-width: 600px) {
    .nova-rank-number {
        font-size: 42px;
    }
}



/* NOVA ULTRA PREMIUM V3 - PROXIMO EPISODIO */

#novaVideoPlayer .nova-next-panel {
    position: absolute;
    right: 4%;
    bottom: 7%;
    z-index: 100;
    width: 420px;
    max-width: 85%;
    max-height: 85%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 24px;
    background: #10151F;
    border: 1px solid rgba(255,152,36,.50);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,.8);
    color: #FFFFFF;
}

.nova-next-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
}

.nova-next-panel small {
    color: #FF9824;
    font-weight: bold;
    letter-spacing: 1px;
}

.nova-next-panel h2 {
    font-size: 23px;
    margin: 10px 0;
}

.nova-next-panel h3 {
    font-size: 20px;
    margin: 10px 0;
}

.nova-next-panel p {
    color: #CED5E0;
    margin: 10px 0;
}

.nova-next-track {
    background: #303747;
    height: 5px;
    margin: 16px 0;
    border-radius: 5px;
    overflow: hidden;
}

.nova-next-fill {
    background: #FF9824;
    width: 100%;
    height: 100%;
}

.nova-next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nova-next-actions button {
    padding: 13px 16px;
    border-radius: 8px;
}

.nova-next-actions button:focus,
.nova-next-button:focus {
    outline: 3px solid #FF9824;
    outline-offset: 3px;
    background: #FF9824;
    color: #10151F;
}

@media (max-width: 600px) {
    #novaVideoPlayer .nova-next-panel {
        width: 85%;
        right: 5%;
        bottom: 5%;
        padding: 16px;
    }

    .nova-next-image {
        height: 90px;
    }

    .nova-next-panel h2 {
        font-size: 18px;
    }

    .nova-next-panel h3 {
        font-size: 16px;
    }
}



/* NOVA ULTRA PREMIUM V4 - EPG */

#novaVideoPlayer .nova-epg-panel {
    position: absolute;
    right: 3%;
    bottom: 5%;
    width: 36%;
    max-width: 480px;
    max-height: 72%;
    overflow: hidden;
    z-index: 35;
    pointer-events: none;
    box-sizing: border-box;
    padding: 22px;
    border-radius: 15px;
    background: rgba(8,13,23,.95);
    color: #FFFFFF;
    border: 1px solid rgba(255,152,36,.40);
    box-shadow: 0 8px 30px rgba(0,0,0,.45);
}

.nova-epg-channel {
    display: block;
    font-size: 23px;
    margin-bottom: 18px;
}

.nova-epg-label {
    display: block;
    color: #FF9824;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-top: 15px;
}

.nova-epg-panel h3 {
    margin: 7px 0;
    font-size: 18px;
    font-weight: 700;
}

.nova-epg-hours {
    font-size: 14px;
    color: #C4CCDB;
    margin: 7px 0;
}

.nova-epg-track {
    background: #343C4A;
    height: 5px;
    border-radius: 5px;
    overflow: hidden;
    margin: 12px 0;
}

.nova-epg-fill {
    background: #FF9824;
    height: 100%;
}

.nova-epg-description {
    font-size: 14px;
    line-height: 1.5;
    color: #C4CCDB;
    max-height: 63px;
    overflow: hidden;
}

.nova-epg-empty {
    color: #B1B9C7;
    font-size: 15px;
}

@media (max-width: 600px) {

    #novaVideoPlayer .nova-epg-panel {
        width: 43%;
        right: 2%;
        padding: 12px;
    }

    .nova-epg-channel {
        font-size: 15px;
    }

    .nova-epg-panel h3 {
        font-size: 13px;
    }

    .nova-epg-description {
        display: none;
    }
}



/* NOVA VIP SMART ALERT */

#novaVipAlert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.86);
    box-sizing: border-box;
    padding: 20px;
}

.nova-vip-panel {
    width: 620px;
    max-width: 100%;
    max-height: 94vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 32px;
    text-align: center;
    background: linear-gradient(
        145deg, #20232A, #101116
    );
    border: 2px solid #FF9824;
    border-radius: 24px;
    color: #FFF;
    box-shadow: 0 0 45px rgba(255,152,36,.22);
    font-family: Arial, sans-serif;
}

.nova-vip-brand {
    color: #FF9824;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.nova-vip-symbol {
    width: 58px;
    height: 58px;
    line-height: 54px;
    border: 3px solid #FF9824;
    color: #FF9824;
    font-weight: bold;
    font-size: 36px;
    border-radius: 50%;
    margin: 0 auto 18px;
    box-sizing: border-box;
}

.nova-vip-panel h2 {
    color: #FFF;
    font-size: 26px;
    margin: 12px 0;
}

.nova-vip-countdown {
    color: #FF9824;
    font-size: 34px;
    font-weight: bold;
    margin: 18px 0;
}

.nova-vip-panel p {
    color: #E1E1E1;
    font-size: 20px;
    line-height: 1.5;
    margin: 16px 0;
}

.nova-vip-date {
    color: #BABFC9;
    font-size: 16px;
    margin: 16px 0;
}

#novaVipAlert .nova-vip-ok {
    display: block;
    width: 230px;
    max-width: 90%;
    height: 55px;
    background: #FF9824;
    color: #101010;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 23px;
    font-weight: bold;
    margin: 22px auto;
    cursor: pointer;
}

#novaVipAlert .nova-vip-ok:focus {
    outline: 3px solid #FFF;
    outline-offset: 4px;
    box-shadow: 0 0 25px rgba(255,152,36,.65);
}

.nova-vip-panel small {
    color: #A4A9B3;
    font-size: 13px;
}

.nova-vip-expired {
    border-color: #E85454;
}

.nova-vip-expired .nova-vip-countdown,
.nova-vip-expired .nova-vip-symbol {
    color: #FF7070;
}

.nova-vip-expired .nova-vip-symbol {
    border-color: #FF7070;
}

@media (max-width: 600px) {

    .nova-vip-panel {
        padding: 22px;
        border-radius: 18px;
    }

    .nova-vip-panel h2 {
        font-size: 21px;
    }

    .nova-vip-countdown {
        font-size: 27px;
    }

    .nova-vip-panel p {
        font-size: 16px;
    }

}


/* NOVA V5 SIDEBAR DESIGN */

html .nova-v5-catalog {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

html .nova-v5-catalog .nova-catalog-categories {
    display: flex;
    flex-direction: column;
    flex: 0 0 23%;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    box-sizing: border-box;
    background: #0D182B;
    border-radius: 14px;
}

html .nova-v5-catalog .nova-catalog-categories button {
    flex-shrink: 0;
    width: 100%;
    min-height: 44px;
    margin: 0 0 7px;
    padding: 10px 14px;
    text-align: left;
    white-space: normal;
    background: linear-gradient(135deg,#172B49,#101C31);
    color: #FFFFFF;
    border: 1px solid #29415F;
    border-radius: 10px;
    box-sizing: border-box;
}

html .nova-v5-catalog .nova-catalog-categories button.selected {
    border: 2px solid #FF9824;
    background: #203550;
    color: #FFFFFF;
}

html .nova-v5-catalog .nova-catalog-results {
    flex: 1;
    min-width: 0;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

html .nova-v5-catalog .nova-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
    padding: 8px;
}

html .nova-v5-catalog[data-catalog-type="LIVE"] .nova-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

html .nova-v5-catalog .nova-grid .nova-poster {
    width: 100%;
    min-width: 0;
    margin: 0;
    background: #14243D;
    border-radius: 12px;
    box-sizing: border-box;
}

html .nova-v5-catalog .nova-grid .nova-poster img {
    height: 190px;
    object-fit: cover;
}

html .nova-v5-catalog[data-catalog-type="LIVE"] .nova-grid .nova-poster img {
    height: 105px;
    object-fit: contain;
}

html .nova-v5-catalog button:focus {
    outline: 3px solid #FFAA38;
    outline-offset: 1px;
    box-shadow: 0 0 12px rgba(255,152,36,.45);
}



/* NOVA V5 MINI PLAYER DESIGN */

html.nova-v5-mode #novaVideoPlayer.nova-live-player.nova-v5-mini {
    background: #0B1528;
}

#novaVideoPlayer.nova-v5-mini video {
    position: absolute;
    left: 33%;
    top: 3%;
    width: 64%;
    height: 54%;
    object-fit: contain;
    background: #000;
    border: 2px solid #FF9824;
    border-radius: 14px;
    box-sizing: border-box;
}

#novaVideoPlayer.nova-v5-mini .nova-video-menu {
    top: 3%;
    bottom: 3%;
    left: 1%;
    width: 30%;
    max-width: none;
    padding: 12px;
    background: #101D33;
    border: 1px solid #29415F;
    border-radius: 14px;
}

#novaVideoPlayer.nova-v5-mini .nova-video-menu button {
    background: linear-gradient(135deg,#203857,#14243D);
    border: 1px solid #29415F;
    border-radius: 10px;
    padding: 12px;
}

#novaVideoPlayer.nova-v5-mini .nova-video-menu button:focus {
    border: 2px solid #FF9824;
    box-shadow: 0 0 10px rgba(255,152,36,.45);
}

#novaVideoPlayer.nova-v5-mini .nova-epg-panel {
    left: 33%;
    right: 3%;
    top: 60%;
    bottom: 3%;
    width: auto;
    max-width: none;
    max-height: none;
    padding: 14px 20px;
    overflow-y: auto;
    background: #14243D;
    border-radius: 14px;
    box-shadow: none;
}

#novaVideoPlayer.nova-v5-mini .nova-epg-channel {
    font-size: 20px;
    margin-bottom: 5px;
}

#novaVideoPlayer.nova-v5-mini .nova-epg-label {
    margin-top: 6px;
}

#novaVideoPlayer.nova-v5-mini .nova-epg-panel h3 {
    margin: 4px 0;
    font-size: 16px;
}

#novaVideoPlayer.nova-v5-mini .nova-epg-description {
    font-size: 13px;
    max-height: 40px;
}

#novaVideoPlayer.nova-v5-mini .nova-video-touch {
    left: 33%;
    right: 3%;
    top: 3%;
    bottom: 43%;
}

#novaVideoPlayer.nova-v5-mini .nova-video-title {
    left: 34%;
    right: 4%;
    top: 4%;
    bottom: auto;
    padding: 10px;
    font-size: 18px;
    background: rgba(0,0,0,.60);
}

#novaVideoPlayer.nova-v5-mini .nova-video-status {
    left: 33%;
    width: 64%;
    top: 28%;
}



/* NOVA V6 PREMIUM ACCOUNT */

.nova-v6-account {
    max-width: 1000px;
    margin: 20px auto;
    padding: 16px;
}

.nova-v6-account-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.nova-v6-avatar {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #FF9824;
    object-fit: cover;
}

.nova-v6-identity {
    flex: 1;
}

.nova-v6-identity h1 {
    margin: 0 0 6px;
}

.nova-v6-identity p {
    color: #FF9824;
    margin: 0;
    font-weight: bold;
}

.nova-v6-status {
    border: 1px solid currentColor;
    border-radius: 30px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: bold;
}

.nova-v6-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.nova-v6-account-card {
    background: linear-gradient(135deg, #172B49, #101C31);
    border: 1px solid #344B69;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 12px;
}

.nova-v6-account-card small {
    color: #BBC8DA;
    display: block;
    margin-bottom: 12px;
}

.nova-v6-account-card strong {
    display: block;
    font-size: 26px;
}

.nova-v6-remaining {
    color: #FF9824;
}

.nova-v6-account-card h2 {
    font-size: 17px;
    margin: 0 0 20px;
}

.nova-v6-setting {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #14243D;
    color: white;
    border: 1px solid #344B69;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    font-size: 16px;
}

.nova-v6-setting:focus {
    outline: 3px solid #FF9824;
}

.nova-v6-switch {
    width: 44px;
    height: 24px;
    border-radius: 20px;
    background: #526078;
    position: relative;
    flex-shrink: 0;
}

.nova-v6-switch:after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
}

.nova-v6-setting[aria-pressed="true"] .nova-v6-switch {
    background: #FF9824;
}

.nova-v6-setting[aria-pressed="true"] .nova-v6-switch:after {
    left: 23px;
}

.nova-v6-footer {
    text-align: center;
    color: #889AB2;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 24px 0;
}

@media (max-width: 600px) {
    .nova-v6-account-grid {
        grid-template-columns: 1fr;
    }

    .nova-v6-account-heading {
        flex-wrap: wrap;
    }

    .nova-v6-account-card {
        padding: 16px;
    }
}


/* NOVA V6 CINEMA PREVIEW */

#novaHome .nova-ultra-hero {
    position: relative;
    overflow: hidden;
}

.nova-cinema-preview {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.nova-cinema-preview.nova-preview-ready {
    opacity: 1;
}

.nova-ultra-hero .nova-hero-text {
    position: relative;
    z-index: 2;
}

@supports (mask-image: linear-gradient(90deg, transparent, black)) {
    .nova-cinema-preview {
        mask-image: linear-gradient(
            90deg, transparent, black 40%
        );
    }
}


/* NOVA V6 PREVIEW AUDIO */

.nova-preview-audio {
    position: absolute;
    bottom: 16px;
    right: 18px;
    z-index: 5;
    background: rgba(8,13,23,.85);
    border: 1px solid rgba(255,255,255,.30);
    color: white;
    border-radius: 30px;
    padding: 10px 16px;
    font-size: 13px;
}

.nova-preview-audio:focus {
    outline: 3px solid #FF9824;
}


/* NOVA V6 TRAILER EMBED */

.nova-trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5,8,15,.97);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-trailer-panel {
    width: 90%;
    max-width: 1100px;
}

.nova-trailer-panel button {
    margin-bottom: 14px;
}

.nova-trailer-panel iframe {
    display: block;
    width: 100%;
    height: 70vh;
    border: 0;
    border-radius: 14px;
    background: black;
}


/* NOVA V6 SMART RELEASES */

.nova-poster {
    position: relative;
}

.nova-poster .nova-release-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.2;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0,0,0,.45);
}

.nova-release-new {
    background: #16A765;
    color: #FFFFFF;
}

.nova-release-recent {
    background: #FF9824;
    color: #080D17;
}


/* NOVA SMART EXIT V6 */

#novaExitModal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(0,0,0,.86);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-exit-card {
    width: 560px;
    max-width: 88%;
    box-sizing: border-box;
    padding: 32px;
    border-radius: 22px;
    border: 1px solid #55729b;
    background: #162a47;
    color: white;
    text-align: center;
    box-shadow: 0 20px 80px rgba(0,0,0,.6);
}

.nova-exit-card img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.nova-exit-brand {
    color: #ffae54;
    font-size: 17px;
    font-weight: bold;
    margin: 12px 0;
}

.nova-exit-card h2 {
    font-size: 26px;
    margin: 16px 0;
}

.nova-exit-card p {
    color: #c5d2e6;
    font-size: 17px;
}

.nova-exit-actions {
    display: flex;
    margin-top: 28px;
}

.nova-exit-actions button {
    flex: 1;
    padding: 16px 8px;
    margin: 6px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #304a70;
    color: white;
    font-size: 17px;
    font-weight: bold;
}

.nova-exit-actions button:focus {
    background: #ffae54;
    color: #101a2d;
    border-color: white;
    outline: none;
}



/* NOVA SMART NAVIGATION V6 */

.nova-video-menu button.nova-current-channel,
.nova-video-menu button.nova-current-category {
    border: 2px solid #49d68b !important;
    box-shadow: inset 4px 0 0 #49d68b;
}

.nova-video-menu button.nova-current-channel:focus,
.nova-video-menu button.nova-current-category:focus {
    border-color: #ffae54 !important;
    outline: 2px solid #ffae54;
}

#novaVideoPlayer.nova-v5-mini.nova-video-focused video {
    outline: 3px solid #ffae54;
    outline-offset: -3px;
}



/* NOVA_DETAIL_PREVIEW_V1 */

#novaHome .nova-detail-preview {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 14px;
    margin: 16px 0;
    background-color: #080D17;
    background-size: cover;
    background-position: center;
    border: 1px solid #364052;
}

#novaHome .nova-detail-preview .nova-cinema-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mask-image: none;
    -webkit-mask-image: none;
}

#novaHome .nova-detail-preview-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    color: #FF9824;
    background: rgba(0,0,0,.75);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

#novaHome .nova-detail-preview {
    padding-bottom: 0;
    height: auto;
}

#novaHome .nova-detail-preview:before {
    content: "";
    display: block;
    padding-top: 56.25%;
}



/* NOVA_FOX_BRAND_V2 */

.brand-card {
    background: #000 !important;
    overflow: hidden;
}

.brand-card img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.brand-card h2,
.brand-card span {
    display: none !important;
}

.nova-round-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}



/* NOVA MOBILE BACK BUTTON V1 */

html.nova-mobile-mode:not(.nova-tv-mode)
#novaVideoPlayer.nova-live-player .nova-live-back {
    display: block !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 9999 !important;
    min-height: 44px;
    padding: 10px 16px;
    background: #101D33;
    color: #FF9824;
    border: 2px solid #FF9824;
    border-radius: 10px;
    font-weight: bold;
    pointer-events: auto;
    touch-action: manipulation;
}
