/**
 * StarBr Play — Estilos Globais & Design System Futurista Cinematográfico (Clean Glass)
 * Inspirado nas melhores interfaces de Smart TV e IPTV (PlaySim, Blessed Player, TiviMate).
 * Arquitetura Ultra-Leve & Rápida para Smart TVs (LG webOS, Samsung Tizen, Android TV e Web).
 * Projetado para 1080p (Full HD) nativo, com responsividade total para 720p (HD 32"), 4K (UHD) e múltiplos aspect ratios.
 */

@font-face {
    font-family: 'AppFont';
    src: url('../assets/fonts/AppFont-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AppFont';
    src: url('../assets/fonts/AppFont-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AppFont';
    src: url('../assets/fonts/AppFont-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AppFont';
    src: url('../assets/fonts/AppFont-Bold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* =========================================================================
       1. PALETA CINEMATOGRÁFICA & FUTURISTA CLEAN (SEM CORES FORTES/BERRANTES)
       ========================================================================= */
    /* Fundo Preto Espacial Profundo (100% Paridade com ThemeData scaffoldBackgroundColor: Color(0xFF081120)) */
    --bg-dark: #081120;
    --bg-scaffold: #081120;
    --bg-amoled: #040810;
    --bg-surface: #0B1628;

    /* Superfícies Aero-Glass Translúcidas */
    --bg-card: rgba(19, 27, 38, 0.70);
    --bg-card-hover: rgba(255, 255, 255, 0.12);
    --bg-card-active: rgba(255, 255, 255, 0.18);
    --bg-glass-card: rgba(11, 22, 40, 0.88);
    --bg-glass-overlay: rgba(8, 17, 32, 0.92);
    --sidebar-bg: rgba(6, 12, 24, 0.96);

    /* Bordas Finas e Tecnológicas */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-glass: rgba(255, 255, 255, 0.18);

    /* Acentos e Assinatura Flutter Nativo (primary: Color(0xFFFF1E1E), secondary: Color(0xFF00E676)) */
    --primary-red: #FF1E1E;
    --primary-red-hover: #FF4D4D;
    --primary-red-glow: rgba(255, 30, 30, 0.45);
    --secondary-green: #00E676;
    --accent-gold: #FFC107;
    --accent-cyan: #38BDF8;
    --accent-cyan-glow: rgba(56, 189, 248, 0.35);
    --accent-ice: #E0F2FE;
    --accent-green: #00E676;

    /* =========================================================================
       2. TIPOGRAFIA EM ALTO CONTRASTE (Legibilidade Perfeita em TVs 32" a 3m)
       Inspirado nos aplicativos oficiais Netflix e Globoplay.
       ========================================================================= */
    --text-white: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #F8FAFC;
    --text-muted: #E2E8F0;
    --text-subtle: #CBD5E1;

    /* Efeitos de Projeção de Fontes e Ícones (Sem desfoque - Nitidez Cristalina) */
    --tv-text-shadow: none;
    --tv-title-shadow: none;
    --tv-glow-shadow: none;
    --tv-icon-shadow: none;

    /* Sistema de Foco no Controle Remoto TV (Estilo Netflix / Globoplay: Borda Marcante) */
    --focus-border: var(--tv-primary-color, var(--primary-red, #FF1E1E));
    --focus-outline-width: 3.5px;
    --focus-glow: var(--tv-focus-glow, rgba(255, 30, 30, 0.70));
    --focus-shadow: 0 0 0 3.5px var(--focus-border, var(--primary-red, #FF1E1E)), 0 0 24px var(--focus-glow, rgba(255, 30, 30, 0.85)), 0 6px 28px rgba(0, 0, 0, 0.95);

    /* Raios de Borda Modernos */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Safe Area TV Padding Proporcional */
    --tv-safe-padding-x: clamp(24px, 3.2vw, 48px);
    --tv-safe-padding-y: clamp(16px, 2.4vh, 28px);

    /* Tipografia Oficial Smart TV com Nitidez Cristalina (AppFont Prioritária) */
    --font-family: 'AppFont', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-title: 'AppFont', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'AppFont', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Escalas de Tamanho Base Proporcional via Viewport Width (vw) e rem */
    --base-font-size: clamp(16px, 1.15vw, 40px);
    --sidebar-width-collapsed: clamp(70px, 4.5vw, 88px);
    --sidebar-width-expanded: clamp(230px, 14vw, 280px);
    --poster-width: clamp(170px, 11vw, 215px);
    --poster-height: clamp(255px, 16.5vw, 322px);

    /* Variáveis Dinâmicas de Branding & Layout (Subdepartamento 2: TV Box, Smart TV & Desktop) */
    --tv-primary-color: #FF1E1E;
    --tv-secondary-color: #081120;
    --tv-accent-color: #00E676;
    --tv-text-color: #FFFFFF;
    --tv-focus-scale: 1.12;
    --tv-focus-border: var(--tv-primary-color, var(--primary-red, #FF1E1E));
    --tv-focus-glow: rgba(255, 30, 30, 0.70);
    --tv-hero-style: 'cinematic';
}

/* Base Root Responsivo: Todo o app escala dinamicamente com vw através de rem */
html,
body {
    font-size: clamp(16px, 1.15vw, 38px);
    font-family: var(--font-family) !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* =========================================================================
   3. RESPONSIVIDADE ADAPTATIVA COMPLETA PARA SMART TVS E PROPORÇÕES DE TELA
   Suporte a: 720p (HD 32"), 1080p (Full HD), 4K UHD, 4:3 (Telas antigas),
   16:10, 16:9 padrão e 21:9 Ultrawide, com Overscan Safe-Area nativo.
   ========================================================================= */

/* Overscan TV Safe Area Universal (env.safe-area-inset para TVs modernas + clamp dinâmico) */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --tv-safe-padding-x: clamp(1.2rem, calc(2.8vw + var(--safe-left)), 3.2rem);
    --tv-safe-padding-y: clamp(0.8rem, calc(2.2vh + var(--safe-top)), 2rem);
}

/* TV HD Pequena / 720p / 768p (TVs de 24" a 32", como a LG 32LB650B) - Escala Ampliada para Leitura Clara */
@media (max-width: 1366px) or (max-height: 768px) {
    :root {
        --base-font-size: clamp(16px, 1.35vw, 22px);
        --tv-safe-padding-x: clamp(1.1rem, 2.6vw, 2.2rem);
        --tv-safe-padding-y: clamp(0.7rem, 2.0vh, 1.5rem);
        --sidebar-width-collapsed: clamp(68px, 5.2vw, 82px);
        --sidebar-width-expanded: clamp(220px, 16vw, 260px);
        --poster-width: clamp(165px, 13vw, 205px);
        --poster-height: clamp(248px, 19.5vw, 308px);
    }

    html {
        font-size: clamp(16px, 1.35vw, 22px);
    }
}

/* TV Full HD 1080p (Padrão ouro de Smart TVs 40" a 55" — Proporções Globoplay) */
@media (min-width: 1367px) and (max-width: 1920px) and (min-height: 769px) {
    :root {
        --base-font-size: clamp(18px, 1.15vw, 24px);
        --tv-safe-padding-x: clamp(1.8rem, 2.2vw, 2.6rem);
        --tv-safe-padding-y: clamp(1.1rem, 1.6vh, 1.7rem);
        --sidebar-width-collapsed: 82px;
        --sidebar-width-expanded: 270px;
        --poster-width: 205px;
        --poster-height: 308px;
    }

    html {
        font-size: clamp(18px, 1.15vw, 24px);
    }
}

/* TV 4K UHD / 8K (3840x2160 e superiores em 55"+)
   Em WebViews Smart TV que operam com viewport nativo de 1080p ou escala por hardware (Tizen/webOS),
   mantemos os tamanhos consistentes para evitar fonte gigante e layout estourado. */
@media (min-width: 2400px) or (min-height: 1400px) {
    :root {
        --base-font-size: 16px;
        --tv-safe-padding-x: 48px;
        --tv-safe-padding-y: 32px;
        --sidebar-width-collapsed: 82px;
        --sidebar-width-expanded: 270px;
        --poster-width: 198px;
        --poster-height: 289px;
    }

    html {
        font-size: 16px;
    }
}

/* Proporção 4:3 ou Telas Quase Quadradas (TVs CRT antigas / Monitores legados) */
@media (max-aspect-ratio: 4/3) {
    :root {
        --tv-safe-padding-x: 16px;
        --tv-safe-padding-y: 12px;
        --sidebar-width-collapsed: 48px;
        --sidebar-width-expanded: 160px;
    }

    .login-center-wrapper {
        max-width: 94vw !important;
        padding: 8px 12px !important;
    }
}

/* Proporção 16:10 (Resoluções como 1280x800, 1440x900, 1680x1050, 1920x1200) */
@media (min-aspect-ratio: 16/10) and (max-aspect-ratio: 16/9) {
    :root {
        --tv-safe-padding-y: clamp(14px, 2.8vh, 26px);
    }
}

/* Telas Ultrawide 21:9 / 32:9 (Cinema e Monitores Ultrawide) */
@media (min-aspect-ratio: 21/10) {
    :root {
        --tv-safe-padding-x: clamp(60px, 8vw, 160px);
    }

    .home-main-area,
    .details-screen-container,
    .tv-live-channels-view {
        max-width: 2560px;
        margin: 0 auto;
    }
}

/* Telas de Celular/Tablet ou Proporção Vertical (Fallback Multiplataforma) */
@media (max-width: 768px) {
    :root {
        --base-font-size: clamp(14px, 1vw, 24px);
        --tv-safe-padding-x: 12px;
        --tv-safe-padding-y: 10px;
        --sidebar-width-collapsed: 0px;
        --sidebar-width-expanded: 100vw;
    }
}

/* Reset Global de Alta Performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

input,
textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =========================================================================
   LAYOUT RESPONSIVO UNIVERSAL & CENTRALIZADO (SMART TVS & MONITORES)
   Compatível com 720p, 1080p, 1440p, 4K UHD, 8K e proporções 16:9, 16:10, 21:9, 4:3.
   Sem hacks de scale artificial, garantindo alinhamento nativo e coordenadas 1:1.
   ========================================================================= */
html,
body {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
    position: relative;
    box-sizing: border-box;
}

.screen,
.modal-overlay,
.tv-modal-overlay,
#splash-screen,
#splash-offline-modal,
#login-screen,
#home-screen,
#profiles-screen,
#settings-screen,
#search-screen,
#content-loading-screen,
#details-modal,
.details-modal-fullscreen,
.details-screen-container,
#player-screen-container,
.details-skeleton-container,
.profile-edit-overlay-screen,
#exit-confirm-modal,
.exit-modal-fullscreen-card,
#mac-activation-modal,
#mac-expired-screen,
.cinematic-login-bg,
.live-video-player-container.is-fullscreen-live {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Projeção de Títulos e Destaques — Nitidez 100% sem Desfoque */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.screen-title,
.hero-title,
.netflix-title {
    font-family: var(--font-title);
    font-weight: 800 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    letter-spacing: -0.015em;
}

/* Ícones SVG com Contraste Otimizado para TV */
svg {
    shape-rendering: geometricPrecision;
}

/* Textos com Nitidez Cristalina (Fim do Efeito Desfoque) */
p,
span,
label,
div {
    text-shadow: none !important;
}

/* Remoção total de barras de rolagem nativas (Zero Distração) */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
}

.hidden {
    display: none !important;
}

/* Estrutura Base das Telas (Acelerada por GPU) */
.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    contain: strict;
    transform: translateZ(0);
}

/* Modais Universais em Aero-Glass Futurista Clean */
.modal-overlay,
.tv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    contain: layout style;
}

.modal-content {
    background: rgba(14, 18, 28, 0.94);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 2.5vw, 36px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

/* Botões Globais Clean & Futuristas */
.btn-primary {
    background: #FFFFFF;
    color: #06080F;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: clamp(0.85rem, 1.1vw, 1.25rem);
    letter-spacing: 0.5px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: clamp(0.85rem, 1.1vw, 1.25rem);
    letter-spacing: 0.5px;
    padding: 10px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* =========================================================================
   Otimizações de Fluidez para Smart TVs e Navegadores Antigos
   (Samsung Tizen 3/4/5, LG webOS 3/4/5, Android TV WebViews legadas)
   ========================================================================= */
* {
    -webkit-tap-highlight-color: transparent;
}

.horizontal-cards-scroller,
.vod-grid-col,
.vod-categories-scroll,
.home-main-area,
.home-subview,
.home-sidebar,
.details-content-column,
.details-screen-container {
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

body.live-fullscreen-active .home-main-area,
body.live-fullscreen-active #home-sidebar,
body.player-fullscreen-active .home-main-area,
body.player-fullscreen-active #home-sidebar {
    transform: none !important;
    -webkit-transform: none !important;
}

img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* =========================================================================
   PERFORMANCE & INSTANT NAVIGATION OPTIMIZATION — webOS Chromium 53
   Transições instantâneas entre telas sem travamentos ou delay
   ========================================================================= */
.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.app-screen.hidden {
    display: none !important;
    pointer-events: none !important;
}

.modal-overlay {
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.modal-overlay.hidden {
    display: none !important;
    pointer-events: none !important;
}

/* Scroll e foco de alta performance e posicionamento relativo para offsetTop imediato */
.horizontal-cards-scroller,
.live-channel-list-container,
#live-channels-list,
#live-categories-list,
.vod-categories-scroll,
.vod-cats-wrapper,
#vod-posters-grid,
.vod-grid-col,
#live-epg-programs-list,
.sidebar-items-nav,
.home-subview {
    position: relative;
    scroll-behavior: auto !important;
    will-change: scroll-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.tv-focusable {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

body.live-fullscreen-active .home-main-area,
body.live-fullscreen-active #home-sidebar,
body.player-fullscreen-active .home-main-area,
body.player-fullscreen-active #home-sidebar {
    transform: none !important;
    -webkit-transform: none !important;
}

.tv-focusable:focus {
    outline: none;
}

/**
 * StarBr Play — Sistema de Foco Otimizado para Smart TV (Inspirado no PlaySim & Blessed App)
 * - Ultra Alto Contraste: Borda branca pura e nítida visível sob qualquer condição de iluminação da sala
 * - Efeito Futurista Clean: Micro-glow ciano espacial sutil sem peso excessivo de GPU no webOS da LG
 * - Fluidez Máxima (Zero-Lag): Aceleração pura de hardware via transform: translateZ(0) sem reflow de layout
 */

.tv-focusable {
    cursor: pointer;
    outline: none;
    transition: none !important;
    animation: none !important;
    contain: layout style;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* =========================================================================
   ESTADO DE FOCO ATIVO DO CONTROLE REMOTO (D-PAD / AIR MOUSE)
   ========================================================================= */
.tv-focusable.tv-focused,
.tv-focusable:focus-visible {
    outline: none !important;
    border-color: var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    z-index: 25;
    position: relative;
}

/* 1. Foco em Pôsteres VOD e Cards Horizontais (Borda nítida apenas na capa/mídia sem pegar o texto) */
.horizontal-cards-scroller > .tv-focusable:first-child.tv-focused,
.horizontal-cards-scroller > :first-child.tv-focused,
.btn-hero-pill-play.tv-focused,
#hero-play-btn.tv-focused {
    transform-origin: left center !important;
}

.tv-poster-card.tv-focused,
.tv-continue-card.tv-focused,
.tv-top10-card.tv-focused {
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: scale(var(--tv-focus-scale, 1.10)) translateZ(0) !important;
    z-index: 30;
    overflow: visible !important;
}

.tv-poster-card.tv-focused .poster-media-wrapper,
.tv-continue-card.tv-focused .poster-media-wrapper,
.tv-continue-card.tv-focused .continue-media-wrapper,
.tv-top10-card.tv-focused .top10-poster-wrapper {
    border: none !important;
    outline: none !important;
    box-shadow: 0 0 22px rgba(229, 9, 20, 0.75), 0 6px 20px rgba(0, 0, 0, 0.8) !important;
    border-radius: 10px !important;
    transform: none !important;
    transition: none !important;
}

.tv-live-channel-card.tv-focused,
.tv-live-channel-card:focus,
.tv-live-channel-card:focus-visible {
    border: 3px solid #FF1E1E !important;
    outline: 4px solid #FFFFFF !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 25px rgba(255, 30, 30, 0.75), 0 8px 30px rgba(0, 0, 0, 0.9) !important;
    border-radius: 10px !important;
    transform: scale(var(--tv-focus-scale, 1.04)) translateZ(0) !important;
    z-index: 35 !important;
}

.tv-live-channel-card.tv-focused .live-card-body {
    border: 4px solid var(--focus-border, #FFFFFF) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.65)), 0 6px 20px rgba(0, 0, 0, 0.8) !important;
    border-radius: 8px !important;
    transform: none !important;
}

.tv-poster-card.tv-focused .poster-title,
.tv-continue-card.tv-focused .continue-title,
.tv-top10-card.tv-focused .top10-title {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.tv-top10-card.tv-focused .top10-rank-number {
    color: #FFFFFF;
    -webkit-text-stroke: 1.5px #38BDF8;
    text-shadow: none !important;
}

/* 2. Foco em Canais Ao Vivo (Lista Vertical e Cards) */
.live-channel-list-item.tv-focused,
.tv-channel-card.tv-focused {
    transform: scale(var(--tv-focus-scale, 1.03)) translateZ(0) !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
    outline: none !important;
}

.live-channel-list-item.tv-focused .channel-num-badge {
    background: var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
}

.live-channel-list-item.tv-focused .channel-main-title {
    color: #FFFFFF !important;
    font-weight: 800 !important;
}

/* 3. Foco nos Itens da Sidebar Retrátil - 100% Fidelidade a Tizen home_tv_view.dart:1901-1930 */
.sidebar-item.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    transform: none !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
}

.home-sidebar:not(.expanded) .sidebar-item.tv-focused,
.home-sidebar:not(.expanded):not(:hover) .sidebar-item.tv-focused {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    margin: 4px auto !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 12px !important;
}

.home-sidebar.expanded .sidebar-item.tv-focused,
.home-sidebar:hover .sidebar-item.tv-focused {
    width: calc(100% - 16px) !important;
    min-width: unset !important;
    max-width: unset !important;
    margin: 2px 8px !important;
    padding: 0 14px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
    border-radius: 14px !important;
}

.sidebar-item.tv-focused .sidebar-icon,
.sidebar-item.tv-focused .sidebar-icon svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
    fill: currentColor !important;
}

.sidebar-item.tv-focused .sidebar-label {
    font-weight: 900 !important;
    color: #FFFFFF !important;
}

/* Foco no Rodapé do Usuário na Sidebar */
.sidebar-user-footer.tv-focused {
    background: rgba(229, 9, 20, 0.3) !important;
    border: 4px solid #FFFFFF !important;
    border-radius: 12px !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
    transform: none !important;
}

.sidebar-user-footer.tv-focused .sidebar-user-avatar {
    border-color: #FFFFFF !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 4. Foco nos Hubs de Plataformas */
.hub-card.tv-focused {
    transform: scale(var(--tv-focus-scale, 1.08)) translateZ(0) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* 5. Foco em Botões de Ação */
.btn-primary.tv-focused,
.btn-roku-primary.tv-focused,
.btn-hero-pill-play.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    transform: scale(var(--tv-focus-scale, 1.06)) translateZ(0) !important;
    box-shadow: 0 0 24px var(--focus-glow, rgba(255, 30, 30, 0.85)) !important;
}

.btn-primary.tv-focused svg,
.btn-roku-primary.tv-focused svg,
.btn-hero-pill-play.tv-focused svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.btn-secondary.tv-focused,
.btn-roku-secondary.tv-focused,
.btn-hero-pill-details.tv-focused {
    background: rgba(255, 255, 255, 0.22) !important;
    border: 4px solid var(--focus-border, #FFFFFF) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    transform: scale(var(--tv-focus-scale, 1.05)) translateZ(0) !important;
    box-shadow: 0 0 16px var(--focus-glow, rgba(255, 30, 30, 0.5)) !important;
}

.btn-activate-green.tv-focused {
    background: var(--accent-green, #00E676) !important;
    border: 4px solid var(--focus-border, #FFFFFF) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    transform: scale(var(--tv-focus-scale, 1.06)) translateZ(0) !important;
    box-shadow: 0 0 20px var(--tv-accent-glow, rgba(0, 230, 118, 0.70)) !important;
}

/* 6. Foco em Categorias de VOD e Canais */
.category-item-btn.tv-focused,
.live-category-btn.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
    transform: scale(var(--tv-focus-scale, 1.04)) translateZ(0) !important;
    outline: none !important;
}

.category-item-btn.tv-focused .cat-item-title,
.category-item-btn.tv-focused .cat-item-chevron,
.category-item-btn.tv-focused .cat-nav-arrow,
.category-item-btn.tv-focused span,
.category-item-btn.tv-focused svg,
.live-category-btn.tv-focused .live-cat-title,
.live-category-btn.tv-focused .cat-nav-arrow,
.live-category-btn.tv-focused span,
.live-category-btn.tv-focused svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
    font-weight: 900 !important;
}

/* 7. Foco em Campos de Entrada e Checkboxes */
.roku-input-field.tv-focused,
.roku-input-field:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.65)) !important;
    color: #FFFFFF !important;
}

.roku-tab-btn.tv-focused {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 4px solid #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

.icon-btn-circle.tv-focused,
.btn-settings-back.tv-focused,
.home-search-pill.tv-focused,
.vod-sort-actions .home-search-pill.tv-focused {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 4px solid #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

/* 8. Foco nas Categorias de Configurações */
.settings-category-tile.tv-focused {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 4px solid #FFFFFF !important;
    border-left: 6px solid var(--accent-cyan) !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

.settings-category-tile.tv-focused .cat-tile-title {
    color: #FFFFFF !important;
    font-weight: 800 !important;
}

/* 9. Foco nos Controles do Player HUD */
.player-ctrl-btn.tv-focused,
.player-fullscreen-icon.tv-focused,
#player-btn-back.tv-focused,
#player-btn-aspect.tv-focused {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 4px solid #FFFFFF !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

.player-ctrl-btn.tv-focused svg,
.player-fullscreen-icon.tv-focused svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* =========================================================================
   10. FOCO ULTRA-VISÍVEL: ESCOLHA DE PERFIL (CONTRASTE MÁXIMO)
   ========================================================================= */
.profile-card-item {
    transition: none !important;
    transform: translateZ(0);
}

.profile-card-item.tv-focused .profile-avatar-box,
.profile-card-item:focus .profile-avatar-box {
    transform: none !important;
    border: 4px solid #FFFFFF !important;
    background: linear-gradient(135deg, #FF1E1E 0%, #B9090B 100%) !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    z-index: 50 !important;
}

.profile-card-item.tv-focused .profile-name-label,
.profile-card-item:focus .profile-name-label {
    color: #FFFFFF !important;
    font-weight: 900 !important;
    font-size: clamp(1.2rem, 1.5vw, 1.8rem) !important;
    text-shadow: none !important;
    transform: none !important;
}

.profiles-action-btn.tv-focused,
.profiles-action-btn:focus {
    background: #FFFFFF !important;
    color: #07090E !important;
    border: 4px solid #FFFFFF !important;
    font-weight: 900 !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    z-index: 40 !important;
}

.profiles-action-btn.tv-focused svg,
.profiles-action-btn:focus svg {
    fill: #07090E !important;
    color: #07090E !important;
}

.profiles-action-btn.btn-logout-profiles.tv-focused,
.profiles-action-btn.btn-logout-profiles:focus {
    background: #FF1E1E !important;
    color: #FFFFFF !important;
    border: 4px solid #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

.profiles-action-btn.btn-logout-profiles.tv-focused svg,
.profiles-action-btn.btn-logout-profiles:focus svg {
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
}

/* =========================================================================
   11. FOCO ULTRA-VISÍVEL: TELA DE LOGIN (CONTRASTE MÁXIMO)
   ========================================================================= */
.login-tab-btn.tv-focused,
.login-tab-btn:focus {
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    font-weight: 900 !important;
    transform: scale(1.04) translateZ(0) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
    text-shadow: none !important;
    z-index: 30 !important;
}

.login-tab-btn.tv-focused span,
.login-tab-btn:focus span {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

.login-tab-btn.tv-focused svg,
.login-tab-btn:focus svg {
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
}

.login-input-card.tv-focused,
.login-input-card:focus-within {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 3.5px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    transform: none !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.65)) !important;
    z-index: 35 !important;
}

.login-input-card.tv-focused .login-input-icon,
.login-input-card:focus-within .login-input-icon {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.btn-login-action-primary.tv-focused,
.btn-login-action-primary:focus,
#btn-submit-login-xtream.tv-focused,
#btn-submit-login-xtream:focus {
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    font-weight: 900 !important;
    transform: scale(1.03) translateZ(0) !important;
    box-shadow: 0 0 24px var(--focus-glow, rgba(255, 30, 30, 0.85)) !important;
    text-shadow: none !important;
    z-index: 40 !important;
}

.btn-login-action-primary.tv-focused span,
.btn-login-action-primary:focus span,
#btn-submit-login-xtream.tv-focused span,
#btn-submit-login-xtream:focus span {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

.btn-login-action-primary.tv-focused svg,
.btn-login-action-primary:focus svg,
#btn-submit-login-xtream.tv-focused svg,
#btn-submit-login-xtream:focus svg {
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
}

.btn-verify-compact.tv-focused,
.btn-verify-compact:focus,
#btn-verify-mac-playlist.tv-focused,
#btn-verify-mac-playlist:focus {
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    font-weight: 900 !important;
    transform: scale(1.03) translateZ(0) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.75)) !important;
    text-shadow: none !important;
    z-index: 40 !important;
}

.btn-verify-compact.tv-focused span,
.btn-verify-compact:focus span,
#btn-verify-mac-playlist.tv-focused span,
#btn-verify-mac-playlist:focus span {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

.btn-verify-compact.tv-focused svg,
.btn-verify-compact:focus svg,
#btn-verify-mac-playlist.tv-focused svg,
#btn-verify-mac-playlist:focus svg {
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
}

.btn-login-demo.tv-focused,
.btn-login-demo:focus,
#btn-demo-mode-login.tv-focused,
#btn-demo-mode-login:focus,
#btn-login-demo.tv-focused,
#btn-login-demo:focus,
#btn-login-demo-m3u.tv-focused,
#btn-login-demo-m3u:focus {
    background: rgba(255, 255, 255, 0.22) !important;
    border: 4px solid #FFFFFF !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    text-shadow: none !important;
}

/* Checkbox Salvar Login, Botão Sair e Olho de Senha (Instantâneo) */
.login-remember-container.tv-focused,
#chk-remember-container.tv-focused,
#chk-remember-container:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 4px solid #FFFFFF !important;
    border-radius: 10px !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
    transform: none !important;
}

.login-eye-toggle.tv-focused,
#btn-toggle-pass-visibility.tv-focused,
#btn-toggle-pass-visibility:focus {
    background: #FFFFFF !important;
    color: #07090E !important;
    border: 4px solid #FFFFFF !important;
    border-radius: 8px !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
}

.btn-login-exit.tv-focused,
#btn-login-exit-app.tv-focused,
#btn-login-exit-app:focus {
    background: rgba(239, 68, 68, 0.3) !important;
    border: 4px solid #FFFFFF !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
}

/* Teclado Virtual QWERTY na Smart TV: Foco de Alto Contraste 60 FPS */
.tv-kb-key.tv-focused,
.tv-kb-key:focus {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 4px solid #FFFFFF !important;
    font-weight: 900 !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    z-index: 50 !important;
    outline: none !important;
}

.tv-kb-field-tab.tv-focused,
.tv-kb-field-tab:focus,
.tv-kb-btn-esc.tv-focused,
.tv-kb-btn-esc:focus {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 4px solid #FFFFFF !important;
    font-weight: 900 !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
}

/* Desativação de transições CSS na tela de login para resposta INSTANTÂNEA ao controle da TV */
#login-screen,
#login-screen *,
#tv-virtual-keyboard-modal,
#tv-virtual-keyboard-modal * {
    transition: none !important;
    animation-duration: 0s !important;
}

/* =========================================================================
   12. FOCO ULTRA-VISÍVEL: TELA E MODAL DE RENOVAÇÃO / EXPIRAÇÃO MAC
   ========================================================================= */
.btn-expired-pay.tv-focused,
.btn-expired-pay:focus,
#btn-expired-pay.tv-focused,
#btn-expired-success-login.tv-focused,
#btn-expired-success-login:focus,
#mac-lock-btn-pay.tv-focused,
#mac-lock-btn-pay:focus {
    background: var(--accent-green, #00E676) !important;
    color: #050B14 !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    font-weight: 900 !important;
    transform: scale(1.04) translateZ(0) !important;
    box-shadow: 0 0 20px var(--tv-accent-glow, rgba(0, 230, 118, 0.70)) !important;
    z-index: 50 !important;
    outline: none !important;
}

.btn-expired-verify.tv-focused,
.btn-expired-verify:focus,
#btn-expired-verify.tv-focused,
#mac-lock-btn-verify.tv-focused,
#mac-lock-btn-verify:focus {
    background: #FFFFFF !important;
    color: #050B14 !important;
    border: 4px solid #FFFFFF !important;
    font-weight: 900 !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    z-index: 45 !important;
    outline: none !important;
}

.btn-expired-back.tv-focused,
.btn-expired-back:focus,
#btn-expired-back-login.tv-focused,
#mac-lock-btn-server-login.tv-focused,
#mac-lock-btn-server-login:focus,
#mac-lock-btn-dismiss.tv-focused,
#mac-lock-btn-dismiss:focus {
    background: #00E5FF !important;
    color: #050B14 !important;
    border: 4px solid #FFFFFF !important;
    font-weight: 900 !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    z-index: 45 !important;
    outline: none !important;
}

.expired-copy-btn.tv-focused,
.expired-copy-btn:focus,
#expired-copy-mac-btn.tv-focused,
#expired-copy-key-btn.tv-focused,
#mac-lock-btn-copy.tv-focused,
#mac-lock-btn-copy:focus,
#mac-lock-btn-close.tv-focused,
#mac-lock-btn-close:focus {
    background: #FFFFFF !important;
    color: #050B14 !important;
    border: 4px solid #FFFFFF !important;
    transform: none !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    z-index: 50 !important;
    outline: none !important;
}

/* =========================================================================
   ZERO-LAG TV: ELIMINAÇÃO TOTAL DE TRANSIÇÕES DE FOCO E TROCA RÁPIDA
   ========================================================================= */
:root {
    --focus-transition: none !important;
}

* {
    --focus-transition: none !important;
}

.tv-focusable,
.tv-focusable.tv-focused,
.category-item-btn,
.sidebar-item,
.nav-item,
.login-tab-btn,
.login-input,
.login-submit-btn,
.profile-card-item,
.profiles-action-btn,
.tv-poster-card,
.poster-media-wrapper,
.tv-continue-card,
.continue-media-wrapper,
.tv-top10-card,
.top10-poster-wrapper,
.live-channel-list-item,
.tv-live-channel-card,
.settings-item,
.settings-category-tile,
.details-btn,
.keyboard-key,
.modal-btn,
.tv-modal-btn,
.player-ctrl-btn,
.player-fullscreen-icon {
    transition: none !important;
    animation-duration: 0s !important;
}



/**
 * StarBr Play — Estilos das Telas da Aplicação (Screens Layout)
 * Replicação precisa 1:1 de todas as telas, widgets e efeitos do app Flutter StarBr Play.
 */

/* ==========================================================================
   1. SPLASH SCREEN (Fidelidade a splash_screen.dart)
   ========================================================================== */
/* ==========================================================================
   1. SPLASH SCREEN (Fidelidade 100% idêntica a splash_screen.dart)
   ========================================================================== */
#splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030712;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 9999;
}

.splash-intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    background-color: #030712;
    pointer-events: none;
}

#splash-screen.fade-out {
    opacity: 0;
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.splash-ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 30, 30, 0.12) 0%, rgba(3, 7, 18, 0.95) 75%, #02040A 100%);
    z-index: 1;
}

.splash-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: splashEnterAnim 500ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes splashEnterAnim {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    100% {
        opacity: 1;
        transform: scale(1.0);
    }
}

.splash-logo-container {
    max-width: 520px;
    max-height: 220px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 38px;
}

.splash-logo {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.splash-loading-box {
    width: 480px;
    max-width: 82vw;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.splash-progress-fill {
    width: 5%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 30, 30, 0.7) 0%, #FF1E1E 50%, #FFFFFF 100%);
    box-shadow: 0 0 14px 2px rgba(255, 30, 30, 0.8);
    transition: width 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.splash-info-row {
    width: 100%;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.splash-status-text {
    font-size: clamp(0.85rem, 1.05vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-shadow: none;
}

.splash-percentage-text {
    font-size: clamp(0.95rem, 1.2vw, 1.35rem);
    color: var(--primary-red, #FF1E1E);
    font-weight: 900;
    white-space: nowrap;
}

/* Modal Impeditivo Sem Conexão (Fidelidade 100% splash_screen.dart:391-498) */
.splash-offline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10000;
}

.splash-offline-card {
    max-width: 580px;
    width: 100%;
    background: #0F172A;
    border-radius: 24px;
    border: 2px solid rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 36px 4px rgba(239, 68, 68, 0.3);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.splash-offline-icon-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 2.5px solid rgba(239, 68, 68, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.splash-offline-title {
    color: #FFFFFF;
    font-size: clamp(1.2rem, 1.55vw, 1.75rem);
    font-weight: 900;
    letter-spacing: 0.8px;
    margin: 0 0 12px 0;
}

.splash-offline-desc {
    color: #E2E8F0;
    font-size: clamp(0.85rem, 1.05vw, 1.15rem);
    line-height: 1.5;
    margin: 0 0 28px 0;
}

.splash-offline-actions {
    display: flex;
    width: 100%;
    gap: 12px;
}

.btn-splash-exit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.813rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-splash-exit:focus,
.btn-splash-exit.tv-focused {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transform: scale(1.03);
    outline: none;
}

.btn-splash-retry {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: var(--primary-red, #FF1E1E);
    border: none;
    color: #FFFFFF;
    font-size: 0.813rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 30, 30, 0.4);
    transition: all 0.2s ease;
}

.btn-splash-retry:focus,
.btn-splash-retry.tv-focused {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 4px 20px rgba(255, 30, 30, 0.8);
    outline: 2px solid #FFFFFF;
}

.splash-spinner {
    animation: splashSpin 1s linear infinite;
}

@keyframes splashSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   2. LOGIN SCREEN (FIDELIDADE 100% IDÊNTICO A login_screen.dart & cinematic_login_bg.dart)
   ========================================================================== */
#login-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg-dark, #081120);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--tv-safe-padding-y) var(--tv-safe-padding-x);
}

/* Fundo Cinematográfico com Imagem e Gradientes (cinematic_login_bg.dart) */
.cinematic-login-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cinematic-bg-base {
    position: absolute;
    inset: 0;
    background-color: #030712;
}

.cinematic-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: brightness(0.65) contrast(1.1);
}

.cinematic-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.75) 0%, rgba(4, 8, 20, 0.85) 50%, rgba(2, 4, 10, 0.95) 100%);
}

.cinematic-bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(2, 4, 10, 0.85) 100%);
}

/* =========================================================================
   NETFLIX TV SIGN-IN DESIGN (FIDELIDADE 100% À FOTO DA NETFLIX)
   ========================================================================= */

.netflix-cinematic-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(160, 20, 30, 0.45) 0%, rgba(20, 12, 16, 0.95) 55%, #0B0C10 100%);
    pointer-events: none;
    z-index: 1;
}

.netflix-login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 1650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(12px, 2.2vh, 26px) clamp(20px, 3.5vw, 64px);
    box-sizing: border-box;
    overflow: hidden;
}

/* Header Topo: Escolha como entrar (Centro) + Logo STAR BR (Direita) */
.netflix-login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: clamp(10px, 2vh, 22px);
    flex-shrink: 0;
}

.netflix-header-spacer {
    width: clamp(100px, 12vw, 150px);
}

.netflix-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1vh, 12px);
}

.netflix-header-title {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    margin: 0;
}

.netflix-pill-selector {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 4px;
    gap: 6px;
}

.netflix-pill-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 1.15vw, 1.18rem);
    font-weight: 700;
    padding: clamp(8px, 1.2vh, 12px) clamp(18px, 2vw, 32px);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.netflix-pill-tab.active {
    background: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    box-shadow: 0 0 14px var(--focus-glow, rgba(255, 30, 30, 0.5));
}

.netflix-pill-tab.tv-focused,
.netflix-pill-tab:focus {
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    border: 2.5px solid var(--focus-border, #FFFFFF) !important;
    box-shadow: 0 0 18px var(--focus-glow, rgba(255, 30, 30, 0.75)) !important;
    outline: none !important;
}

.netflix-header-right {
    min-width: clamp(150px, 15vw, 220px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.netflix-header-logo-img {
    max-height: clamp(44px, 5.5vh, 66px);
    max-width: clamp(160px, 16vw, 240px);
    object-fit: contain;
    display: inline-block;
}

.netflix-header-logo {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 900;
    color: #E50914;
    letter-spacing: 1.5px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Layout Duas Colunas: Teclado na Esquerda | Formulário na Direita */
.netflix-login-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    gap: clamp(24px, 3.5vw, 60px);
    flex: 1;
    min-height: 0;
    padding-top: clamp(4px, 1vh, 12px);
}

/* COLUNA ESQUERDA: Teclado Virtual Netflix */
.netflix-keyboard-column {
    flex: 1 1 58%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.netflix-kb-title-wrap {
    height: clamp(30px, 3.8vh, 40px);
    margin-bottom: clamp(10px, 1.4vh, 16px);
    display: flex;
    align-items: center;
}

.netflix-kb-field-title {
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.2px;
}

/* Grade de Teclas Estilo Netflix */
.netflix-kb-keys-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.45vh, 5px);
    width: 100%;
}

.netflix-kb-row {
    display: flex;
    gap: clamp(3px, 0.45vw, 5px);
    width: 100%;
}

.netflix-kb-key {
    height: clamp(46px, 5.8vh, 64px);
    min-height: 44px;
    background: #343842;
    color: #FFFFFF;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    font-weight: 700;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: none;
}

/* FOCO NETFLIX: RETÂNGULO BRANCO SÓLIDO COM TEXTO PRETO */
.netflix-kb-key.tv-focused,
.netflix-kb-key:focus {
    background: #FFFFFF !important;
    color: #000000 !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 5px !important;
    z-index: 2;
}

.netflix-kb-key.tv-kb-flex-09 {
    flex: 0.9;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

.netflix-kb-key.tv-kb-flex-1 {
    flex: 1;
}

.netflix-kb-key.tv-kb-flex-11 {
    flex: 1.1;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

.netflix-kb-key.tv-kb-flex-12 {
    flex: 1.2;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

.netflix-kb-key.tv-kb-flex-14 {
    flex: 1.4;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

.netflix-kb-key.tv-kb-flex-15 {
    flex: 1.5;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

.netflix-kb-key.tv-kb-flex-16 {
    flex: 1.6;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

.netflix-kb-key.tv-kb-flex-18 {
    flex: 1.8;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

.netflix-kb-key.tv-kb-flex-2 {
    flex: 2;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

.netflix-kb-key.tv-kb-flex-23 {
    flex: 2.3;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

.netflix-kb-key.tv-kb-flex-28 {
    flex: 2.8;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

/* Botões de Ação Imediatamente Abaixo do Teclado: Voltar | Próxima */
.netflix-kb-actions-row {
    display: flex;
    gap: clamp(4px, 0.5vw, 6px);
    width: 100%;
    margin-top: clamp(8px, 1.2vh, 14px);
}

.netflix-kb-action-btn {
    height: clamp(44px, 5.2vh, 56px);
    background: #343842;
    color: #FFFFFF;
    font-size: clamp(0.95rem, 1.15vw, 1.15rem);
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netflix-kb-action-btn#btn-netflix-kb-voltar {
    flex: 1;
}

.netflix-kb-action-btn#btn-netflix-kb-toggle-pass {
    flex: 1.3;
    background: #252a35;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 600;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.netflix-kb-action-btn#btn-netflix-kb-toggle-pass.is-visible {
    background: #1b3a2f;
    border-color: #00E676;
    color: #00E676;
}

.netflix-kb-action-btn#btn-netflix-kb-proxima {
    flex: 1.4;
}

.netflix-kb-action-btn.tv-focused,
.netflix-kb-action-btn:focus {
    background: #FFFFFF !important;
    color: #000000 !important;
    outline: none !important;
    border: none !important;
    transform: none !important;
    border-radius: 5px !important;
}

/* Linha Inferior: Modo Demonstração & Salvar Login */
.netflix-kb-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: clamp(8px, 1.4vh, 16px);
}

.netflix-kb-pill-btn {
    height: clamp(36px, 4.4vh, 46px);
    background: #343842;
    color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 23px;
    padding: 0 clamp(16px, 1.8vw, 24px);
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.netflix-kb-pill-btn.tv-focused,
.netflix-kb-pill-btn:focus {
    background: #FFFFFF !important;
    color: #000000 !important;
    outline: none !important;
    transform: none !important;
}

.netflix-kb-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: clamp(4px, 0.8vh, 8px) clamp(8px, 1vw, 14px);
    border-radius: 6px;
}

.netflix-custom-checkbox {
    width: clamp(22px, 2.6vh, 28px);
    height: clamp(22px, 2.6vh, 28px);
    background: #334155;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.netflix-custom-checkbox.checked,
.netflix-custom-checkbox:not(:empty) {
    background: #E50914;
    border-color: #E50914;
    color: #FFFFFF;
}

.netflix-chk-label {
    color: #FFFFFF;
    font-size: clamp(0.9rem, 1.05vw, 1.05rem);
    font-weight: 500;
}

.netflix-kb-checkbox-row.tv-focused,
.netflix-kb-checkbox-row:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: 2px solid #FFFFFF;
}

/* COLUNA DIREITA: Inputs e Informações de Suporte */
.netflix-form-column {
    flex: 1 1 42%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.netflix-form-title-wrap {
    height: clamp(30px, 3.8vh, 40px);
    margin-bottom: clamp(10px, 1.4vh, 16px);
    display: flex;
    align-items: center;
}

.netflix-form-field-title {
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.2px;
}

.netflix-pane-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.netflix-inputs-list {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vh, 14px);
    width: 100%;
}

.netflix-input-card {
    width: 100%;
    height: clamp(48px, 5.8vh, 62px);
    min-height: 46px;
    background: #343842;
    border-radius: 8px;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    padding: 0 clamp(14px, 1.6vw, 22px);
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.netflix-input-card.is-current-target {
    border-color: rgba(255, 255, 255, 0.5);
    background: #3B404C;
}

.netflix-input-card.tv-focused,
.netflix-input-card:focus {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 3px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    box-shadow: 0 0 18px var(--focus-glow, rgba(255, 30, 30, 0.55)) !important;
}

.netflix-input-card.tv-focused .netflix-input-field,
.netflix-input-card:focus .netflix-input-field {
    color: #FFFFFF !important;
}

.netflix-input-card.tv-focused .netflix-input-icon-btn,
.netflix-input-card:focus .netflix-input-icon-btn {
    color: #FFFFFF !important;
}

.netflix-input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: clamp(1.1rem, 1.3vw, 1.35rem);
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.netflix-input-field::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.netflix-input-icon-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.netflix-submit-wrap {
    margin-top: clamp(10px, 1.4vh, 16px);
}

.netflix-btn-submit {
    width: 100%;
    height: clamp(48px, 5.8vh, 62px);
    min-height: 46px;
    background: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    font-size: clamp(0.92rem, 1.1vw, 1.14rem);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netflix-btn-submit.tv-focused,
.netflix-btn-submit:focus {
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    box-shadow: 0 0 24px var(--focus-glow, rgba(255, 30, 30, 0.85)) !important;
    transform: scale(var(--tv-focus-scale, 1.04)) translateZ(0) !important;
    outline: none !important;
}

/* Card QR Code no modo "Usar celular" */
.netflix-qr-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #252830;
    padding: clamp(12px, 1.8vh, 18px);
    border-radius: 10px;
    margin-top: 14px;
}

.netflix-qr-box {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netflix-qr-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.netflix-qr-title {
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 700;
}

.netflix-qr-sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.75rem, 0.9vw, 0.88rem);
}

/* Rodapé Direito */
.netflix-right-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(6px, 1vh, 12px);
    margin-top: clamp(16px, 2.5vh, 34px);
    text-align: right;
}

.netflix-subscribe-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.netflix-footer-hint-text {
    color: #8C929E;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

.netflix-help-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.netflix-footer-help-text {
    color: #8C929E;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

.netflix-footer-device-row {
    color: #C8CCD6;
    font-size: clamp(0.85rem, 1vw, 1.05rem);
    font-weight: 600;
    display: flex;
    gap: 8px;
}

.netflix-footer-dot {
    opacity: 0.5;
}

.netflix-exit-section {
    margin-top: 2px;
}

.login-input-card.is-current-target .login-input-icon {
    color: #38BDF8 !important;
}

.login-input-card.is-current-target .login-input-floating-hint {
    color: #38BDF8 !important;
}

.login-typing-badge {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38BDF8;
    color: #38BDF8;
    font-size: 0.531rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
    }
}

/* Header: Logo / StarBr + Subtítulo */
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.login-brand-logo {
    max-height: 56px;
    max-width: 240px;
    object-fit: contain;
}

.login-brand-logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-tv-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 30, 30, 0.15);
    border: 1.5px solid rgba(255, 30, 30, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-text {
    font-size: 2rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 2px;
}

.login-partner-subtitle {
    font-size: 0.688rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* Card Principal (login_screen.dart:1636-1731) */
.login-main-card {
    background: rgba(10, 13, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 0 30px 5px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Seletor de Abas em Pílula (login_screen.dart:1647-1695) */
.login-tabs-pill {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-tab-btn.active {
    background: var(--primary-red, #FF1E1E);
    border-color: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    box-shadow: 0 0 12px var(--focus-glow, rgba(255, 30, 30, 0.45));
}

.login-tab-btn:focus,
.login-tab-btn.tv-focused {
    border: 3px solid var(--focus-border, #FFFFFF) !important;
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px var(--focus-glow, rgba(255, 30, 30, 0.65)) !important;
    outline: none;
    transform: scale(1.04) translateZ(0) !important;
}

.login-tab-btn:focus svg,
.login-tab-btn.tv-focused svg {
    fill: #000000 !important;
}

.login-tab-pane {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

/* Alerta de Erro */
.login-error-alert {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #FCA5A5;
    font-size: 0.719rem;
    line-height: 1.35;
    text-align: center;
}

/* ABA 0: LISTA M3U TOTALMENTE UNIFICADA (login_screen.dart:1786-1930) */
.login-section-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 2px;
    margin-bottom: 2px;
}

.login-section-title {
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.781rem;
    letter-spacing: 0.3px;
}

/* Divisor Elegante "OU ENVIE A LISTA PELO CELULAR (QR CODE)" */
.login-or-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.divider-text {
    font-size: 0.563rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Card Celular (QR Code + Botão Compacto Verificar Lista) */
.login-qr-mobile-card {
    background: #111827;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-qr-thumb-box {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-qr-thumb-box img {
    width: 96px;
    height: 96px;
    display: block;
}

.login-qr-mobile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.qr-mobile-title {
    margin: 0;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.781rem;
}

.qr-mobile-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.594rem;
    line-height: 1.25;
}

/* Botão Compacto Verificar Lista */
.btn-verify-compact {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--primary-red, #EF4444);
    border: none;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.656rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    margin-top: 4px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    transition: all 0.15s ease;
}

.btn-verify-compact:focus,
.btn-verify-compact.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 4px solid #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.7) !important;
    outline: none;
    transform: none !important;
}

.btn-verify-compact:focus svg,
.btn-verify-compact.tv-focused svg {
    fill: #000000 !important;
}

/* Formulário de Campos (login_screen.dart:2519-2620) */
.login-form-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-input-card {
    background: #000000;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.login-input-card:focus-within,
.login-input-card.tv-focused {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #FFFFFF !important;
    border-width: 2.5px !important;
    box-shadow: 0 0 14px 1px rgba(255, 255, 255, 0.35) !important;
    outline: none;
}

.login-input-icon {
    color: rgba(255, 255, 255, 0.38);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.login-input-card.tv-focused .login-input-icon {
    color: #FFFFFF;
}

.login-input-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.login-input-floating-hint {
    font-size: 0.594rem;
    color: rgba(255, 255, 255, 0.54);
    font-weight: 700;
    margin-bottom: 2px;
}

.login-input-raw {
    width: 100%;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 0.813rem;
    font-weight: 800;
    outline: none;
    padding: 0;
}

.login-input-raw::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.login-eye-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-eye-toggle:focus,
.login-eye-toggle.tv-focused {
    color: #FFFFFF;
    outline: none;
}

/* Checkbox Salvar Login (login_screen.dart:2019-2075) */
.login-remember-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.719rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.login-remember-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red, #EF4444);
    cursor: pointer;
}

.login-remember-container:focus,
.login-remember-container.tv-focused {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border: 4px solid #FFFFFF !important;
    outline: none;
}

/* Botão de Ação Principal (ENTRAR NO SISTEMA) */
.btn-login-action-primary {
    width: 100%;
    height: 42px;
    background: var(--primary-red, #EF4444);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.813rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login-action-primary:focus,
.btn-login-action-primary.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    box-shadow: 0 0 24px var(--focus-glow, rgba(255, 30, 30, 0.85)) !important;
    outline: none;
    transform: scale(var(--tv-focus-scale, 1.04)) translateZ(0) !important;
}

.btn-login-action-primary:focus svg,
.btn-login-action-primary.tv-focused svg {
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
}

/* Modo Demonstração (login_screen.dart:1918-1928 e 2093-2104) */
.login-demo-row {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

.btn-login-demo {
    width: 100%;
    height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-login-demo svg {
    color: #FFFFFF;
}

.btn-login-demo:focus,
.btn-login-demo.tv-focused {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 4px solid #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    outline: none;
    transform: none !important;
}

/* Device Footer (login_screen.dart:1580-1626) */
.login-device-footer {
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-label {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.625rem;
    font-weight: 700;
}

.footer-val {
    color: #FFFFFF;
    font-family: monospace;
    font-size: 0.813rem;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Botão Sair do Aplicativo */
.login-exit-row {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

.btn-login-exit {
    padding: 6px 14px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.719rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-login-exit:focus,
.btn-login-exit.tv-focused {
    border: 4px solid #FFFFFF !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    outline: none;
    transform: none !important;
}

/* ==========================================================================
   TECLADO VIRTUAL QWERTY TV OVERLAY (login_screen.dart:1802-2146)
   ========================================================================== */
.tv-keyboard-overlay-card {
    width: 100%;
    max-width: 960px;
    background: #090D16;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 30, 30, 0.6);
    box-shadow: 0 0 36px 8px rgba(0, 0, 0, 0.95), 0 0 24px 2px rgba(255, 30, 30, 0.15);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tv-kb-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tv-kb-field-tabs {
    display: flex;
    gap: 8px;
}

.tv-kb-field-tab {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.688rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tv-kb-field-tab.active {
    background: var(--primary-red, #FF1E1E);
    border-color: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(255, 30, 30, 0.4);
}

.tv-kb-field-tab:focus,
.tv-kb-field-tab.tv-focused {
    border-color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    outline: none;
}

.tv-kb-btn-esc {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.688rem;
    font-weight: 700;
    cursor: pointer;
}

.tv-kb-btn-esc:focus,
.tv-kb-btn-esc.tv-focused {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border-color: #FFFFFF;
    outline: none;
}

/* Caixa com Texto Digitado e Cursor Caret */
.tv-kb-live-box {
    background: #000000;
    border-radius: 12px;
    border: 1.5px solid var(--primary-red, #FF1E1E);
    box-shadow: 0 0 10px rgba(255, 30, 30, 0.2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-kb-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red, #FF1E1E);
}

.tv-kb-text-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.tv-kb-live-text {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1px;
}

.tv-kb-live-text.empty {
    color: rgba(255, 255, 255, 0.24);
    font-weight: 500;
}

.tv-kb-caret {
    width: 2px;
    height: 18px;
    background: var(--primary-red, #FF1E1E);
    animation: tvCaretBlink 1s infinite;
}

@keyframes tvCaretBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Layout das Linhas de Teclas */
.tv-keyboard-keys-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tv-kb-row {
    display: flex;
    gap: 4px;
    width: 100%;
}

.tv-kb-key {
    flex: 1;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.tv-kb-key:focus,
.tv-kb-key.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    border-width: 2.5px !important;
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.04);
    outline: none;
    z-index: 10;
}

.tv-kb-key.tv-kb-btn-primary {
    background: rgba(255, 30, 30, 0.35);
    border-color: rgba(255, 30, 30, 0.8);
    color: #FFFFFF;
}

.tv-kb-key.active-toggle {
    background: rgba(255, 30, 30, 0.45);
    border-color: var(--primary-red, #FF1E1E);
}

.tv-kb-flex-2 {
    flex: 2;
    font-size: 0.75rem;
}

.tv-kb-flex-3 {
    flex: 3;
    font-size: 0.75rem;
}

.tv-kb-flex-5 {
    flex: 5;
    font-size: 0.813rem;
}

/* ==========================================================================
   3. HOME TV VIEW (Fidelidade Total a home_tv_view.dart)
   ========================================================================== */
#home-screen {
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Sidebar TV: Gaveta flutuante ultra-rápida (Zero-Lag, Sem Blur, Foco Instantâneo) */
.home-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width-collapsed);
    height: 100%;
    background: var(--sidebar-bg, var(--bg-dark, #081120));
    border-right: none !important;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: none !important;
    overflow: hidden;
    white-space: nowrap;
    transform: translateZ(0);
}

.home-sidebar.expanded,
.home-sidebar:hover {
    width: var(--sidebar-width-expanded);
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.85);
}

.sidebar-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0 8px 0;
}

.sidebar-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #FFFFFF;
}

.sidebar-menu-btn svg {
    width: 28px !important;
    height: 28px !important;
}

.sidebar-brand-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 1.2px;
    margin-top: 6px;
}

.sidebar-brand-logo {
    max-height: 28px;
    max-width: 48px;
    object-fit: contain;
    transition: max-height 0.22s cubic-bezier(0.2, 0, 0, 1), max-width 0.22s cubic-bezier(0.2, 0, 0, 1), transform 0.22s ease;
}

.home-sidebar.expanded .sidebar-brand-logo,
.home-sidebar:hover .sidebar-brand-logo {
    max-height: 52px;
    max-width: 175px;
    transform: scale(1.05);
}

.home-sidebar.expanded .sidebar-brand-box,
.home-sidebar:hover .sidebar-brand-box {
    margin-top: 10px;
    margin-bottom: 6px;
    transform: scale(1.06);
}

.brand-star {
    color: #FFFFFF;
}

.brand-br {
    color: var(--primary-red);
}

.brand-iptv-sub {
    font-size: 0.688rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 3px;
    letter-spacing: 2px;
}

.sidebar-items-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 8px;
    overflow-y: auto;
}

/* Sidebar Item: 100% Fidelidade a Tizen home_tv_view.dart:1895-1930 */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 12px);
    margin: 3px 6px;
    height: 52px;
    border-radius: 14px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: 1.5px solid transparent;
    font-size: 1.125rem;
    font-weight: 700;
    transition: none !important;
    cursor: pointer;
    box-sizing: border-box;
}

.sidebar-item.active {
    color: #FFFFFF;
    background: rgba(var(--primary-red-rgb, 255, 30, 30), 0.25);
    border: 1.5px solid var(--primary-red);
    box-shadow: 0 0 10px var(--focus-glow, rgba(255, 30, 30, 0.45));
    font-weight: 800;
}

.sidebar-item.active .sidebar-icon {
    color: var(--primary-red);
}

.sidebar-icon {
    min-width: 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.sidebar-label {
    display: none;
    opacity: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: inherit;
    transition: none !important;
}

.sidebar-item.active .sidebar-label {
    font-weight: 800;
    color: #FFFFFF;
}

.home-sidebar.expanded .sidebar-label,
.home-sidebar:hover .sidebar-label {
    display: block;
    opacity: 1;
}

/* Centralização perfeita do foco nos ícones quando o menu lateral estiver recolhido */
.home-sidebar:not(.expanded) .sidebar-items-nav,
.home-sidebar:not(.expanded):not(:hover) .sidebar-items-nav {
    padding: 6px 0;
    align-items: center;
}

.home-sidebar:not(.expanded) .sidebar-item,
.home-sidebar:not(.expanded):not(:hover) .sidebar-item {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    height: 52px;
    margin: 3px auto;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.home-sidebar:not(.expanded) .sidebar-item .sidebar-icon,
.home-sidebar:not(.expanded):not(:hover) .sidebar-item .sidebar-icon {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quando o menu lateral estiver expandido ou ao passar o mouse: alinhamento 100% à esquerda, espaçamento e largura total */
.home-sidebar.expanded .sidebar-item,
.home-sidebar:hover .sidebar-item {
    width: calc(100% - 16px) !important;
    min-width: unset !important;
    max-width: unset !important;
    margin: 3px 8px !important;
    padding: 0 16px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 16px !important;
}

.home-sidebar.expanded .sidebar-item .sidebar-icon,
.home-sidebar:hover .sidebar-item .sidebar-icon {
    margin: 0 !important;
}

.sidebar-user-footer {
    padding: 16px 14px;
    border-top: none !important;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: none !important;
}

.home-sidebar:not(.expanded):not(:hover) .sidebar-user-footer {
    padding: 12px 0;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.home-sidebar:not(.expanded):not(:hover) .sidebar-user-avatar {
    margin: 0 auto;
}

.home-sidebar.expanded .sidebar-user-footer,
.home-sidebar:hover .sidebar-user-footer {
    padding: 14px 16px !important;
    justify-content: flex-start !important;
    gap: 14px !important;
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: #991B1B;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(185, 28, 28, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-avatar svg {
    width: 28px !important;
    height: 28px !important;
}

.sidebar-user-text {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    opacity: 0;
    transition: none !important;
}

.sidebar-user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-user-name-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0.9;
    flex-shrink: 0;
}

.sidebar-user-name-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.home-sidebar.expanded .sidebar-user-text,
.home-sidebar:hover .sidebar-user-text {
    display: flex;
    opacity: 1;
}

.sidebar-user-name {
    font-size: 1.125rem;
    font-weight: 900;
    color: #FFFFFF;
}

.sidebar-user-badge {
    font-size: 0.813rem;
    font-weight: 900;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Área de Conteúdo Dinâmica (Largura Estável 100% sem Reflow ao expandir Sidebar) */
.home-main-area {
    margin-left: var(--sidebar-width-collapsed);
    width: calc(100% - var(--sidebar-width-collapsed));
    height: 100%;
    position: relative;
    overflow: hidden;
}

.home-subview {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* --- SUB-VIEW 1: INÍCIO (Palco Hero Banner Fixo no Topo com Rolagem de Fileiras estilo v_rokuos) --- */
#subview-inicio {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 16px 0;
    position: relative;
    z-index: 15;
    background: transparent;
    pointer-events: auto;
    width: 100%;
}

.home-greeting-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    text-shadow: none;
}

.home-greeting-subtitle {
    font-size: 0.813rem;
    font-weight: 800;
    color: var(--primary-red, #FF1E1E);
    letter-spacing: 1.2px;
    text-shadow: none;
    display: block !important;
    margin-top: 3px;
    text-transform: uppercase;
}

.home-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-badge-trial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(13, 40, 24, 0.85) 0%, rgba(4, 24, 36, 0.85) 100%);
    border: 1.5px solid rgba(0, 230, 118, 0.55);
    color: #00E676;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 30px;
    letter-spacing: 0.6px;
    cursor: pointer;
    outline: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-badge-trial.is-expired {
    background: linear-gradient(135deg, rgba(51, 8, 16, 0.90) 0%, rgba(26, 5, 10, 0.90) 100%);
    border-color: rgba(255, 82, 82, 0.65);
    color: #FF5252;
}

.home-badge-trial .trial-dot {
    font-size: 0.625rem;
    color: #00E676;
    line-height: 1;
}

.home-badge-trial .trial-days {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.813rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-badge-trial:hover,
.home-badge-trial:focus,
.home-badge-trial.focused {
    border-color: #FFFFFF !important;
    border-width: 2.5px !important;
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.7), 0 4px 14px rgba(0, 0, 0, 0.9);
}

.home-badge-trial.is-expired:hover,
.home-badge-trial.is-expired:focus,
.home-badge-trial.is-expired.focused {
    box-shadow: 0 0 18px rgba(255, 82, 82, 0.8), 0 4px 14px rgba(0, 0, 0, 0.9);
}

.home-search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.2px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 10px 22px;
    color: #E2E8F0;
    font-size: 0.938rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-search-pill:hover,
.home-search-pill.tv-focused {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--primary-red);
    color: #FFFFFF;
}

/* --- BOTÃO + ADICIONAR LISTA NO CABEÇALHO (home_tv_view.dart:2260-2263) --- */
.btn-header-add-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 1.5px solid rgba(255, 30, 30, 0.6);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 30, 30, 0.25);
    color: #FFFFFF;
    font-size: 0.938rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-header-add-list:hover,
.btn-header-add-list:focus,
.btn-header-add-list.tv-focused {
    border-color: #FFFFFF !important;
    background: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%) !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 30, 30, 0.6), 0 4px 14px rgba(0, 0, 0, 0.9) !important;
}

/* --- DEMO WELCOME CARD (FIDELIDADE 100% IDÊNTICA A demo_welcome_card.dart) --- */
.home-demo-welcome-container {
    padding: 10px 32px 40px 32px;
    width: 100%;
    box-sizing: border-box;
}

.demo-welcome-card {
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 22px;
    border: 1.5px solid rgba(255, 30, 30, 0.4);
    padding: 28px;
    box-sizing: border-box;
    margin-top: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 30, 30, 0.15);
    cursor: pointer;
    outline: none;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-welcome-card:focus,
.demo-welcome-card.tv-focused {
    border-color: #FFFFFF;
    border-width: 2.2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 32px rgba(255, 30, 30, 0.35);
    transform: translateY(-2px);
}

.demo-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-independent {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 30, 30, 0.15);
    border: 1.2px solid rgba(255, 30, 30, 0.6);
    color: #FFFFFF;
    font-size: 0.688rem;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-red, #FF1E1E);
    box-shadow: 0 0 6px var(--primary-red, #FF1E1E);
}

.badge-store-compliant {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #4ADE80;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.badge-store-compliant svg {
    width: 14px;
    height: 14px;
    fill: #4ADE80;
}

.demo-title {
    margin-top: 16px;
    font-size: 1.875rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.demo-subtitle {
    margin-top: 6px;
    font-size: 0.906rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    max-width: 900px;
}

.demo-legal-box {
    margin-top: 20px;
    background: rgba(3, 7, 18, 0.75);
    border-radius: 14px;
    border: 1.2px solid rgba(251, 191, 36, 0.4);
    padding: 18px;
    box-sizing: border-box;
}

.legal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FBBF24;
    font-size: 0.781rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.legal-header svg {
    width: 18px;
    height: 18px;
    fill: #FBBF24;
}

.legal-points-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-point {
    font-size: 0.781rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}

.legal-point strong {
    color: #FFFFFF;
    font-weight: 700;
}

.demo-features-title {
    margin-top: 24px;
    color: var(--primary-red, #FF1E1E);
    font-size: 0.688rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.demo-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.demo-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.feature-icon-box {
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 30, 30, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-box svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-red, #FF1E1E);
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 0.844rem;
    font-weight: 700;
    color: #FFFFFF;
}

.feature-desc {
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 3px;
}

.demo-cta-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(255, 30, 30, 0.12);
    border: 1px dashed rgba(255, 30, 30, 0.5);
}

.demo-cta-text {
    font-size: 0.813rem;
    font-weight: 700;
    color: #FFFFFF;
}

.demo-cta-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 20px;
    background: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 30, 30, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-cta-btn:hover,
.demo-cta-btn:focus,
.demo-cta-btn.tv-focused {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
    .demo-features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- BANNER DE ALERTA DE VENCIMENTO / EXPIRAÇÃO (Posicionado à direita abaixo da caixa de pesquisa) --- */
.home-expiry-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: absolute;
    top: 84px;
    right: var(--tv-safe-padding-x);
    max-width: 580px;
    width: auto;
    margin: 0;
    padding: 16px 22px;
    min-height: 82px;
    box-sizing: border-box;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.95) 0%, rgba(69, 26, 3, 0.95) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 40;
    pointer-events: auto !important;
    flex-shrink: 0;
}

.home-expiry-alert-banner.hidden {
    display: none !important;
}

.home-expiry-alert-banner.tv-focused,
.home-expiry-alert-banner:focus {
    background: linear-gradient(90deg, #B91C1C 0%, #7F1D1D 100%) !important;
    border: 2px solid #FFD54F !important;
    box-shadow: 0 0 24px rgba(255, 213, 79, 0.55), 0 8px 24px rgba(0, 0, 0, 0.75) !important;
    transform: scale(1.015);
}

.expiry-alert-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.expiry-alert-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.20);
    border: 1px solid rgba(245, 158, 11, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expiry-alert-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.expiry-alert-tags-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expiry-badge-pill {
    background: #FBBF24;
    color: #000000;
    font-size: 0.688rem;
    font-weight: 900;
    padding: 2.5px 8px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.expiry-date-label {
    font-size: 0.719rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.expiry-message-text {
    font-size: 0.813rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.35;
    text-shadow: none;
}

.btn-expiry-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #FBBF24;
    color: #000000;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.35);
    transition: all 0.2s ease;
}

.btn-expiry-action:hover,
.btn-expiry-action.tv-focused,
.btn-expiry-action:focus {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
    transform: scale(1.05);
}

/* --- CAMADA DE BACKDROP FULL SCREEN DA PÁGINA INICIAL (ESTILO V_ROKUOS) --- */
.home-backdrop-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--hero-bg-color, var(--tv-secondary-color, #081120));
}

/* --- PALCO UNIFICADO DO HERO BANNER (FIXO NO TOPO ESTILO V_ROKUOS & SINOPSE) --- */
.hero-banner-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 380px;
    z-index: 20;
    pointer-events: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.hero-banner-stage.demo-stage {
    position: relative;
    height: auto;
    min-height: auto;
    margin-bottom: 0;
    pointer-events: auto;
}

.hero-banner-stage.demo-stage #hero-backdrop-img,
.hero-banner-stage.demo-stage .hero-gradient-side,
.hero-banner-stage.demo-stage .hero-gradient-bottom,
.hero-banner-stage.demo-stage .hero-seam-cap,
.hero-banner-stage.demo-stage #hero-banner-section,
.demo-stage .home-backdrop-stage,
.demo-mode .home-backdrop-stage {
    display: none !important;
}

.hero-banner-stage .home-top-header {
    position: relative;
    z-index: 15;
    padding: 10px var(--tv-safe-padding-x) 10px var(--tv-safe-padding-x);
    width: 100%;
    pointer-events: auto;
}

.hero-banner-stage .hero-banner-section {
    position: relative;
    z-index: 10;
    padding: 0 var(--tv-safe-padding-x) 14px var(--tv-safe-padding-x);
    min-height: auto;
    margin-bottom: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-banner-stage .hero-actions-row,
.hero-banner-stage .hero-action-btn,
.hero-banner-stage .btn-netflix-white,
.hero-banner-stage .btn-netflix-dark,
.hero-banner-stage .header-focus-item,
.hero-banner-stage .top-search-pill-btn,
.hero-banner-stage .header-icon-btn,
.hero-banner-stage .home-notify-btn,
.hero-banner-stage .home-search-pill {
    pointer-events: auto;
}

/* CONTAINER DE CONTEÚDO AUTENTICADO: ROLA ABAIXO DO BANNER FIXO COM ESPAÇAMENTO CONFORTÁVEL */
#home-authenticated-content,
.home-authenticated-content {
    position: absolute;
    top: 470px;
    left: 0;
    width: 100%;
    height: calc(100% - 470px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: 90px;
    box-sizing: border-box;
    z-index: 5;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

.hero-banner-section {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    contain: layout style;
}

/* Linha Flex Principal do Banner: Alinhamento Direto à Esquerda estilo v_rokuos (Sem Mini Capa 3D) */
.hero-body-row {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 18px;
}

/* No v_rokuos original, o mini pôster é descartado para dar espaço total ao Backdrop e aos Detalhes */
.hero-poster-wrapper {
    display: none !important;
}

.hero-poster-img {
    display: none !important;
}

/* VARIAÇÃO 2: SPOTLIGHT GLASSMORPHISM (cinematic_hero_banner.dart:268) */
.hero-banner-section.style-glass .hero-info-overlay {
    background: rgba(10, 16, 29, 0.94);
    border: 1.5px solid rgba(255, 30, 30, 0.45);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    max-width: 700px;
}

/* VARIAÇÃO 3: MINIMALISTA COMPACTO (cinematic_hero_banner.dart:345) */
.hero-banner-section.style-minimal {
    height: 320px;
}

.hero-banner-section.style-minimal .hero-poster-wrapper {
    width: 110px;
    height: 165px;
}

.hero-banner-section.style-minimal .hero-title-text {
    font-size: 1.75rem;
    margin-bottom: 6px;
}

.hero-banner-section.style-minimal .hero-description-text {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.813rem;
    margin-bottom: 12px;
}

/* VARIAÇÃO 4: IMERSIVO PANORAMA / TRAILER */
.hero-banner-section.style-trailer {
    height: 440px;
}

.hero-banner-section.style-trailer .hero-info-overlay {
    max-width: 860px;
}

.hero-banner-section.style-trailer .hero-title-text {
    font-size: 2.375rem;
    text-shadow: none;
}

/* VARIAÇÃO 5: MODERN SPLIT NEO */
.hero-banner-section.style-split-card {
    height: 410px;
    background: linear-gradient(90deg, rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.98) 0%, rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.85) 45%, rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.2) 100%);
}

.hero-banner-section.style-split-card .hero-info-overlay {
    border-left: 4px solid var(--primary-red, #FF1E1E);
    padding-left: 20px;
    max-width: 650px;
}

/* Backdrop da Home cobre 100% da área visível da tela, caindo na cor de fundo se ausente */
.hero-backdrop-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 1;
    filter: brightness(0.96) contrast(1.08) saturate(1.12);
    transition: opacity 0.25s ease-out, transform 0.8s ease-out;
    transform: translateZ(0);
    will-change: transform, opacity;
    pointer-events: none;
    background-color: var(--hero-bg-color, var(--tv-secondary-color, #081120));
}

.hero-banner-section:hover ~ .home-backdrop-stage .hero-backdrop-img,
.hero-banner-section:focus-within ~ .home-backdrop-stage .hero-backdrop-img,
.home-backdrop-stage:hover .hero-backdrop-img {
    transform: scale(1.03);
}

/* ShaderMask Esquerdo e Sombra Geral / Efeito Fumaça Atmosférica dos Conteúdos */
.hero-gradient-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to right,
        var(--hero-bg-color, var(--tv-secondary-color, #081120)) 0%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.98) 22%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.88) 42%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.65) 62%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.35) 78%,
        transparent 94%
    );
}

/* ShaderMask Inferior / Névoa de Conteúdos (Mesclagem Suave com os Trilhos) */
.hero-gradient-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.15) 15%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.50) 35%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.82) 58%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.98) 78%,
        var(--hero-bg-color, var(--tv-secondary-color, #081120)) 100%
    );
}

.hero-seam-cap {
    display: none !important;
}

.hero-radial-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(circle at 18% 70%, rgba(var(--primary-red-rgb, 255, 30, 30), 0.16) 0%, transparent 55%);
}

.hero-info-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    flex: 1;
    max-width: 860px;
    padding-left: 10px;
}

.hero-info-overlay::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -20px;
    width: 100%;
    height: 100%;
    max-width: 780px;
    z-index: -1;
    pointer-events: none;
    border-radius: 20px;
    background: radial-gradient(
        ellipse at 25% 60%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.55) 0%,
        rgba(var(--hero-smoke-rgb, 8, 17, 32), 0.25) 55%,
        transparent 85%
    );
    filter: blur(12px);
}

/* 1. Logo Oficial Transparente TMDB / Servidor */
.hero-logo-img {
    max-width: 480px;
    max-height: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    display: block;
    margin-bottom: 14px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.95));
}

.hero-logo-img.hidden {
    display: none !important;
}

/* 2. Título Tipográfico Dinâmico (Fallback Estilo v_rokuos) */
.hero-title-text {
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--tv-text-color, #FFFFFF);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.98), 0 2px 8px rgba(0, 0, 0, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 900px;
}

/* 3. Linha de Metadados: 2026 • 1h 55min • Cinema, Entretenimento [14] [4K] ★ 8 */
.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    font-size: 1.05rem;
    font-weight: 700;
    color: #CBD5E1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-meta-item {
    color: #CBD5E1;
    font-size: 1.05rem;
    font-weight: 700;
}

.hero-meta-dot {
    color: #64748B;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0 2px;
}

.hero-age-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 900;
    color: #FFFFFF;
    background-color: #FB8C00;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-age-box.age-18 { background-color: #111111; }
.hero-age-box.age-16 { background-color: #E50914; }
.hero-age-box.age-14 { background-color: #FB8C00; }
.hero-age-box.age-12 { background-color: #FBC02D; }
.hero-age-box.age-10 { background-color: #0288D1; }
.hero-age-box.age-l, .hero-age-box.age-L { background-color: #00C853; }

.hero-quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    height: 22px;
    border-radius: 4px;
    background: rgba(51, 65, 85, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 800;
    color: #E2E8F0;
    letter-spacing: 0.5px;
}

.hero-rating-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #FFD700;
    font-weight: 800;
    font-size: 1.05rem;
    margin-left: 2px;
}

.hero-description-text {
    font-size: 1.15rem;
    color: #E2E8F0;
    margin-bottom: 22px;
    line-height: 1.5;
    font-weight: 400 !important;
    letter-spacing: 0.2px;
    max-width: 840px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.98), 0 1px 4px rgba(0, 0, 0, 0.92);
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Botões Netflix TV (Fidelidade ao v_rokuos e Screenshot) */
.btn-netflix-white {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 28px !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.btn-netflix-white svg {
    color: #000000 !important;
    fill: #000000 !important;
}

.btn-netflix-white:hover,
.btn-netflix-white:focus,
.btn-netflix-white.tv-focused {
    transform: scale(1.05) translateZ(0) !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.85), 0 0 32px rgba(229, 9, 20, 0.6) !important;
    outline: none !important;
    border: 3px solid #FFFFFF !important;
}

.btn-netflix-dark {
    background: rgba(45, 55, 72, 0.8) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px !important;
    padding: 10px 28px !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.btn-netflix-dark svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.btn-netflix-dark:hover,
.btn-netflix-dark:focus,
.btn-netflix-dark.tv-focused {
    transform: scale(1.05) translateZ(0) !important;
    background: rgba(74, 85, 104, 0.95) !important;
    border: 3px solid #E50914 !important;
    box-shadow: 0 0 24px rgba(229, 9, 20, 0.85) !important;
    outline: none !important;
}

.hero-slide-dots {
    display: none !important;
}

/* Relógio Digital no Cabeçalho */
.home-top-clock {
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
    font-variant-numeric: tabular-nums;
    margin-right: 14px;
    letter-spacing: 0.8px;
    user-select: none;
}

.hero-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.hero-dot.active {
    width: 22px !important;
    background: #E50914 !important;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.75) !important;
}

.content-row-section {
    padding: 0 var(--tv-safe-padding-x);
    margin-bottom: 22px;
}

.row-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    width: 100%;
}

.row-header-title .header-icon-fire {
    color: #FF9800;
    font-size: 1.3rem;
}

.horizontal-cards-scroller {
    display: flex;
    gap: var(--shelf-card-gap, 14px);
    overflow-x: auto;
    padding: 8px 18px 16px 18px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    scroll-padding-left: 18px;
}

/* Hubs de Streaming Estilo v_android_box e v_rokuos com Cores de Marca Oficiais */
.hub-card {
    min-width: var(--shelf-hub-width, 226px);
    width: var(--shelf-hub-width, 226px);
    height: var(--shelf-hub-height, 95px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: none !important;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    padding: 6px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    background: #0E1626;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.hub-card.hub-netflix {
    background: linear-gradient(135deg, #1A0507 0%, #0A0001 100%) !important;
    border: 1.5px solid rgba(229, 9, 20, 0.4) !important;
}

.hub-card.hub-disney {
    background: linear-gradient(135deg, #0D256B 0%, #040C26 100%) !important;
    border: 1.5px solid rgba(17, 60, 207, 0.45) !important;
}

.hub-card.hub-max {
    background: linear-gradient(135deg, #131036 0%, #060317 100%) !important;
    border: 1.5px solid rgba(153, 23, 255, 0.45) !important;
}

.hub-card.hub-prime {
    background: linear-gradient(135deg, #05192D 0%, #010A14 100%) !important;
    border: 1.5px solid rgba(0, 168, 225, 0.45) !important;
}

.hub-card.hub-globoplay {
    background: linear-gradient(135deg, #2D0A00 0%, #100200 100%) !important;
    border: 1.5px solid rgba(255, 79, 0, 0.45) !important;
}

.hub-card.hub-apple {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%) !important;
    border: 1.5px solid rgba(203, 213, 225, 0.35) !important;
}

.hub-card.hub-starplus {
    background: linear-gradient(135deg, #260515 0%, #0D0008 100%) !important;
    border: 1.5px solid rgba(255, 183, 0, 0.45) !important;
}

.hub-card.hub-paramount {
    background: linear-gradient(135deg, #001C47 0%, #000B1D 100%) !important;
    border: 1.5px solid rgba(0, 100, 255, 0.45) !important;
}

.hub-card.hub-telecine {
    background: linear-gradient(135deg, #2A0407 0%, #0F0102 100%) !important;
    border: 1.5px solid rgba(237, 28, 36, 0.45) !important;
}

.hub-logo-img {
    max-height: 52px;
    max-width: 88%;
    object-fit: contain;
    transition: transform 0.15s ease;
}

.hub-label {
    color: #FFFFFF;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hub-card:hover,
.hub-card.tv-focused {
    transform: scale(1.08) translateZ(0);
    border-color: #FFFFFF !important;
    border-width: 2.8px !important;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.6), 0 10px 28px rgba(0, 0, 0, 0.9) !important;
    z-index: 50;
}

.hub-card.hub-netflix:hover,
.hub-card.hub-netflix.tv-focused {
    border-color: #E50914 !important;
    box-shadow: 0 0 26px rgba(229, 9, 20, 0.88), 0 10px 28px rgba(0, 0, 0, 0.9) !important;
}

.hub-card.hub-disney:hover,
.hub-card.hub-disney.tv-focused {
    border-color: #113CCF !important;
    box-shadow: 0 0 26px rgba(17, 60, 207, 0.88), 0 10px 28px rgba(0, 0, 0, 0.9) !important;
}

.hub-card.hub-max:hover,
.hub-card.hub-max.tv-focused {
    border-color: #9917FF !important;
    box-shadow: 0 0 26px rgba(153, 23, 255, 0.88), 0 10px 28px rgba(0, 0, 0, 0.9) !important;
}

.hub-card.hub-prime:hover,
.hub-card.hub-prime.tv-focused {
    border-color: #00A8E1 !important;
    box-shadow: 0 0 26px rgba(0, 168, 225, 0.88), 0 10px 28px rgba(0, 0, 0, 0.9) !important;
}

.hub-card.hub-globoplay:hover,
.hub-card.hub-globoplay.tv-focused {
    border-color: #FF4F00 !important;
    box-shadow: 0 0 26px rgba(255, 79, 0, 0.88), 0 10px 28px rgba(0, 0, 0, 0.9) !important;
}

.hub-card.hub-apple:hover,
.hub-card.hub-apple.tv-focused {
    border-color: #FFFFFF !important;
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.8), 0 10px 28px rgba(0, 0, 0, 0.9) !important;
}

.hub-card.hub-starplus:hover,
.hub-card.hub-starplus.tv-focused {
    border-color: #FFB700 !important;
    box-shadow: 0 0 26px rgba(255, 183, 0, 0.88), 0 10px 28px rgba(0, 0, 0, 0.9) !important;
}

.hub-card.tv-focused .hub-logo-img {
    transform: scale(1.06);
}

/* Cards Limpos de Lançamento estilo v_rokuos (Organização Inteligente sem Vazio) */
.tv-top10-card {
    min-width: var(--shelf-poster-width, 174px) !important;
    width: var(--shelf-poster-width, 174px) !important;
    max-width: var(--shelf-poster-width, 174px) !important;
    height: var(--shelf-poster-height, 254px) !important;
    display: flex;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    border-radius: 10px !important;
    overflow: hidden;
    background: #0E1B30;
    border: 1.8px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65) !important;
    transition: none !important;
}

.tv-top10-card .top10-rank-number {
    display: none !important;
}

.tv-top10-card .top10-poster-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tv-top10-card:hover,
.tv-top10-card.tv-focused {
    transform: scale(1.06) translateZ(0) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    z-index: 50;
}

.tv-top10-card.tv-focused .top10-poster-wrapper {
    border: none !important;
    outline: none !important;
}

.top10-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Continue Assistindo (100% Fidelidade ao Tizen: Proporção 2:3 vertical com TvPosterItem) */
.tv-continue-card {
    min-width: 205px;
    width: 205px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm, 10px);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--focus-transition);
}

.poster-meta-subtitle {
    font-size: 0.844rem;
    font-weight: 800;
    color: #FF5252;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

/* =========================================================================
   LIVE CHANNEL CARD (HOME SCREEN - WIDESCREEN SMART TV STYLE)
   ========================================================================= */
.live-channels-cards-row {
    padding-top: 4px;
    padding-bottom: 8px;
}

.tv-live-channel-card {
    min-width: var(--shelf-poster-width, 174px) !important;
    width: var(--shelf-poster-width, 174px) !important;
    max-width: var(--shelf-poster-width, 174px) !important;
    height: var(--shelf-poster-height, 254px) !important;
    display: flex;
    flex-direction: column;
    border-radius: 10px !important;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #0E1B30;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
    transition: var(--focus-transition);
    position: relative;
    box-sizing: border-box;
}

.tv-live-channel-card:hover,
.tv-live-channel-card.tv-focused {
    border: 3px solid #FF1E1E !important;
    outline: 4px solid #FFFFFF !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 25px rgba(255, 30, 30, 0.75), 0 8px 30px rgba(0, 0, 0, 0.9) !important;
    border-radius: 10px !important;
    z-index: 35 !important;
}

/* Metade Superior (50% da altura): Logo do Canal */
.channel-vod-top-half {
    width: 100%;
    height: 50%;
    min-height: 50%;
    max-height: 50%;
    position: relative;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    box-sizing: border-box;
}

.channel-vod-badge-row {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #EF4444;
    font-size: 0.594rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.6px;
}

.live-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 8px #EF4444;
    animation: livePulse 1.4s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.channel-vod-quality-badge {
    font-size: 0.563rem;
    font-weight: 800;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.channel-vod-logo-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    box-sizing: border-box;
}

.channel-vod-logo-img {
    max-height: 68px;
    max-width: 130px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
    transition: transform 0.2s ease;
}

.tv-live-channel-card.tv-focused .channel-vod-logo-img {
    transform: scale(1.08);
}

.channel-vod-badge-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Divisória sutil entre as duas metades */
.channel-vod-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    flex-shrink: 0;
}

/* Metade Inferior (50% da altura): Relacionado ao tipo de canal com arte temática de fundo */
.channel-vod-bottom-half {
    width: 100%;
    height: 50%;
    min-height: 50%;
    max-height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(14, 23, 42, 0.95) 0%, rgba(8, 13, 24, 0.98) 100%);
}

.channel-vod-content-box {
    position: relative;
    z-index: 2;
}

/* Camada de Arte Temática no fundo da metade inferior (GPU-accelerated) */
.channel-vod-art-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.38;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.tv-live-channel-card.tv-focused .channel-vod-art-bg {
    opacity: 0.60;
    transform: scale(1.06);
}

/* 1. FUTEBOL: Gramado com iluminação e bola de futebol estilizada */
.futebol-art {
    background-color: #064e3b;
    background-image: 
        radial-gradient(circle at 86% 82%, #ffffff 0px, #ffffff 13px, #0f172a 14px, #0f172a 17px, transparent 18px),
        radial-gradient(circle at 86% 82%, transparent 0px, transparent 8px, #0f172a 9px, #0f172a 12px, transparent 13px),
        linear-gradient(rgba(8, 26, 18, 0.60), rgba(3, 14, 10, 0.90)),
        repeating-linear-gradient(90deg, rgba(16, 185, 129, 0.22) 0px, rgba(16, 185, 129, 0.22) 18px, rgba(5, 150, 105, 0.10) 18px, rgba(5, 150, 105, 0.10) 36px),
        radial-gradient(ellipse at 50% 100%, rgba(52, 211, 153, 0.45) 0%, transparent 70%);
}

/* 2. ESPORTES: Arena, quadra e refletores esportivos dinâmicos */
.esportes-art {
    background-color: #0c4a6e;
    background-image: 
        radial-gradient(circle at 82% 25%, rgba(56, 189, 248, 0.45) 0%, transparent 45%),
        linear-gradient(rgba(10, 25, 45, 0.60), rgba(2, 12, 26, 0.92)),
        repeating-linear-gradient(45deg, rgba(14, 165, 233, 0.16) 0px, rgba(14, 165, 233, 0.16) 12px, transparent 12px, transparent 24px),
        radial-gradient(ellipse at 30% 90%, rgba(56, 189, 248, 0.35) 0%, transparent 60%);
}

/* 3. NOTÍCIAS: Estúdio de jornalismo global, ondas de sinal e grid breaking news */
.noticias-art {
    background-color: #450a0a;
    background-image: 
        radial-gradient(circle at 80% 30%, rgba(239, 68, 68, 0.45) 0%, transparent 45%),
        linear-gradient(rgba(30, 8, 12, 0.65), rgba(12, 3, 6, 0.94)),
        radial-gradient(circle at 50% 50%, rgba(248, 113, 113, 0.20) 0%, transparent 70%),
        repeating-linear-gradient(0deg, rgba(239, 68, 68, 0.10) 0px, rgba(239, 68, 68, 0.10) 2px, transparent 2px, transparent 6px);
}

/* 4. DOCUMENTÁRIOS: Natureza selvagem, cosmos e relevo dourado */
.documentarios-art {
    background-color: #451a03;
    background-image: 
        radial-gradient(circle at 82% 28%, rgba(251, 191, 36, 0.40) 0%, transparent 45%),
        linear-gradient(rgba(26, 15, 6, 0.62), rgba(10, 5, 2, 0.94)),
        radial-gradient(circle at 20% 85%, rgba(217, 119, 6, 0.30) 0%, transparent 60%);
}

.geral-art {
    background-color: #1e293b;
    background-image: linear-gradient(rgba(15, 23, 42, 0.65), rgba(8, 13, 24, 0.95));
}

.channel-vod-theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    font-size: 0.594rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.theme-futebol {
    background: rgba(16, 185, 129, 0.22);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.5);
}

.theme-esportes {
    background: rgba(14, 165, 233, 0.22);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.theme-noticias {
    background: rgba(239, 68, 68, 0.22);
    color: #F87171;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.theme-documentarios {
    background: rgba(245, 158, 11, 0.22);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.theme-geral {
    background: rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.channel-vod-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.channel-vod-desc {
    font-size: 0.656rem;
    font-weight: 500;
    color: #94A3B8;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.channel-vod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.563rem;
    color: #64748B;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-live-channel-card.tv-focused .channel-vod-name {
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.tv-live-channel-card.tv-focused .channel-vod-desc {
    color: #CBD5E1;
}

.tv-live-channel-card.tv-focused .channel-vod-footer {
    color: #94A3B8;
}

/* Cards Pôster VOD (Organização Inteligente Adaptativa por Resolução) */
.tv-poster-card {
    min-width: var(--shelf-poster-width, 174px) !important;
    width: var(--shelf-poster-width, 174px) !important;
    max-width: var(--shelf-poster-width, 174px) !important;
    height: var(--shelf-poster-height, 254px) !important;
    display: flex;
    flex-direction: column;
    border-radius: 10px !important;
    overflow: hidden;
    cursor: pointer;
    transition: var(--focus-transition);
}

.poster-media-wrapper {
    position: relative;
    width: 100% !important;
    height: var(--shelf-poster-height, 254px) !important;
    aspect-ratio: auto !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #0E1B30;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
    transition: var(--focus-transition);
}

.poster-media-wrapper::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 10px !important;
    border: 1.8px solid rgba(255, 255, 255, 0.28) !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    z-index: 10 !important;
    display: block !important;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.vod-grid-container .tv-poster-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}

.vod-grid-container .poster-media-wrapper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
}

.poster-shimmer-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B1628;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: posterCardShimmer 1.4s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes posterCardShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.poster-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
}

.poster-img.loaded {
    opacity: 1 !important;
}

.poster-badge-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.938rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 10px;
    border-radius: 6px;
    color: #FBBF24;
}

.poster-badge-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 30, 64, 0.85);
    color: #FF1E40;
    font-size: 0.813rem;
}

.poster-badge-duration {
    position: absolute;
    bottom: 7px;
    left: 6px;
    background: rgba(0, 0, 0, 0.88);
    border-radius: 5px;
    border: 1px solid rgba(255, 30, 30, 0.6);
    padding: 3px 7px;
    font-size: 0.719rem;
    font-weight: 900;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.poster-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.65);
    z-index: 5;
}

.poster-progress-fill {
    height: 100%;
    background: var(--primary-red);
    border-radius: 2px;
}

.channel-sub-program {
    font-size: 0.813rem;
    color: #FFC107;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-info {
    display: none !important;
}

.poster-title {
    display: none !important;
}

.poster-meta {
    font-size: 0.75rem;
    color: #CBD5E1;
    font-weight: 600;
    margin-top: 2px;
}

/* --- SUB-VIEW 2: CANAIS AO VIVO (3 COLUNAS INTEGRADO) --- */
.live-integrated-container {
    display: flex;
    height: 100%;
    gap: 12px;
    padding: 16px;
    box-sizing: border-box;
}

.live-categories-col {
    width: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.live-channels-col {
    width: 270px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.live-col-header {
    padding: 12px 14px;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 1px;
}

.live-scroll-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Item de Categoria (Fidelidade 100% ao Tizen home_tv_view.dart:4275 - 13px) */
.category-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    min-height: 52px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.2rem, 1.45vw, 1.65rem) !important;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.category-item-btn.active {
    background: rgba(var(--primary-red-rgb, 255, 30, 30), 0.28);
    border-color: var(--primary-red, #FF1E1E);
    box-shadow: 0 0 10px var(--focus-glow, rgba(255, 30, 30, 0.45));
    color: #FFFFFF;
    font-weight: 900;
}

.category-counter-badge {
    font-size: 0.875rem;
    font-weight: 900;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

/* Item de Canal Vertical (tv_channel_item.dart - Tipografia em Alto Contraste para TV) */
/* Item de Canal Vertical (tv_channel_item.dart - Tipografia em Alto Contraste para TV) */
.live-channel-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    min-height: 60px;
    border-radius: 12px;
    background: rgba(21, 29, 41, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: none !important;
}

.live-channel-list-item.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent-cyan);
}

.channel-num-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.live-channel-list-item.active .channel-num-badge {
    background: var(--accent-cyan);
    color: #07090E;
}

.channel-logo-square {
    width: 64px;
    height: 42px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.channel-logo-square img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Badges Oficiais das Emissoras para TV LG webOS */
.channel-brand-badge {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.688rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-shadow: none;
}

.badge-globo {
    background: linear-gradient(135deg, #FF5500 0%, #FF0055 50%, #6A00F4 100%);
    color: #FFFFFF;
}

.badge-sportv {
    background: linear-gradient(135deg, #0052D4 0%, #4364F7 100%);
    color: #FFFFFF;
}

.badge-premiere {
    background: linear-gradient(135deg, #004D40 0%, #00796B 100%);
    color: #FFD54F;
}

.badge-espn {
    background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 100%);
    color: #FFFFFF;
}

.badge-telecine {
    background: linear-gradient(135deg, #8B0000 0%, #E50914 100%);
    color: #FFFFFF;
}

.badge-hbo {
    background: linear-gradient(135deg, #1B0033 0%, #3C0066 100%);
    color: #FFFFFF;
}

.badge-cnn {
    background: #CC0000;
    color: #FFFFFF;
}

.badge-band {
    background: linear-gradient(135deg, #00796B 0%, #388E3C 100%);
    color: #FFFFFF;
}

.badge-sbt {
    background: linear-gradient(135deg, #1976D2 0%, #FBC02D 50%, #D32F2F 100%);
    color: #FFFFFF;
}

.badge-record {
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
    color: #FFFFFF;
}

.badge-discovery {
    background: linear-gradient(135deg, #004D40 0%, #009688 100%);
    color: #FFFFFF;
}

.badge-cartoon {
    background: #000000;
    border: 1.5px solid #FFFFFF;
    color: #FFFFFF;
}

.badge-warner {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: #FFFFFF;
}

.badge-tnt {
    background: linear-gradient(135deg, #E65100 0%, #F57C00 100%);
    color: #FFFFFF;
}

.badge-megapix {
    background: linear-gradient(135deg, #E50914 0%, #B71C1C 100%);
    color: #FFFFFF;
}

.badge-generic {
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
}

.channel-text-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.channel-main-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-sub-program {
    font-size: 0.906rem;
    color: #CBD5E1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botão Favoritar Canal (Interativo para TV) */
.channel-btn-fav {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.channel-btn-fav:hover,
.channel-btn-fav.tv-focused,
.channel-btn-fav:focus {
    background: rgba(251, 191, 36, 0.25) !important;
    border-color: #FBBF24 !important;
    color: #FBBF24 !important;
    transform: scale(1.15);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
}

.channel-btn-fav.is-fav {
    color: #FBBF24;
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.5);
}

/* Coluna Direita: Mini-Player + EPG */
.live-player-epg-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-miniplayer-frame {
    flex: 11;
    position: relative;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.live-miniplayer-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.live-miniplayer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-mini-title {
    font-size: 1rem;
    font-weight: 900;
    display: block;
    color: #FFFFFF;
}

.live-mini-genre {
    font-size: 0.813rem;
    color: var(--accent-green);
    font-weight: 700;
}

.live-fullscreen-btn {
    padding: 8px 18px;
    font-size: 0.844rem;
    font-weight: 800;
    border-radius: 8px;
}

.live-epg-schedule-card {
    flex: 9;
    background: rgba(10, 13, 20, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.epg-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.epg-live-pulse-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    font-weight: 800;
    color: var(--accent-green);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.epg-active-channel-name {
    font-size: 1.375rem;
    color: #FFFFFF;
    font-weight: 900;
}

.epg-current-program-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1.2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.epg-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.063rem;
    color: #CBD5E1;
    margin-bottom: 6px;
    font-weight: 700;
}

.epg-progress-pct {
    color: var(--accent-green);
    font-weight: 800;
}

.epg-program-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.epg-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.epg-progress-bar-fill {
    height: 100%;
    background: var(--accent-green);
    width: 0%;
}

.epg-upcoming-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.epg-upcoming-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.063rem;
}

.epg-upcoming-time {
    color: #CBD5E1;
    font-weight: 800;
    min-width: 115px;
    font-size: 1rem;
}

.epg-upcoming-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    color: #FFFFFF;
}

/* --- SUB-VIEW 3: VOD (FILMES / SÉRIES / KIDS) --- */
.vod-module-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 24px;
    box-sizing: border-box;
}

.vod-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.vod-module-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.vod-item-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

.vod-body-row {
    display: flex;
    flex: 1;
    gap: 16px;
    overflow: hidden;
}

.vod-categories-col {
    width: 210px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 8px;
    box-sizing: border-box;
}

.vod-grid-col {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding-right: 6px;
}

.vod-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding-bottom: 50px;
}

.vod-grid-container .tv-poster-card {
    width: 100%;
    min-width: 0;
}

.vod-grid-container .poster-media-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;
    height: auto;
}

/* ==========================================================================
   4. DETALHES MODAL (100% Fidelidade a details_screen.dart do Flutter)
   ========================================================================== */
.details-modal-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    z-index: 2000 !important;
    background: var(--bg-dark, #081120) !important;
    overflow: hidden !important;
    display: flex !important;
    padding: 0 !important;
    border: none !important;
}

.details-modal-fullscreen.hidden {
    display: none !important;
}

.details-screen-container {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: relative !important;
    display: flex;
    overflow: hidden;
    background: var(--bg-dark, #081120);
}

/* ==========================================================================
   SKELETON EFETIVO DA PÁGINA SINOPSE (DETALHES)
   ========================================================================== */
.details-skeleton-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background: #050B18;
    z-index: 50;
    overflow: hidden;
    display: flex;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.details-skeleton-container.hidden {
    display: none !important;
}

.details-skeleton-backdrop {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, #091224 0%, #111e38 50%, #091224 100%);
    background-size: 200% 100%;
    animation: shimmerSkeleton 1.6s infinite linear;
    z-index: 1;
}

.details-skeleton-overlay-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #050B18 0%, #050B18 42%, rgba(5, 11, 24, 0.88) 60%, rgba(5, 11, 24, 0.3) 100%),
        linear-gradient(0deg, #050B18 0%, rgba(5, 11, 24, 0.7) 35%, transparent 60%);
    z-index: 2;
}

.details-skeleton-content {
    position: relative;
    z-index: 3;
    padding: 38px 0 38px 56px;
    width: 62%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.details-skeleton-backbtn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-bottom: 24px;
}

.details-skeleton-title {
    width: 420px;
    height: 38px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.details-skeleton-badges-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.details-skeleton-badge {
    width: 80px;
    height: 24px;
    border-radius: 6px;
}

.details-skeleton-plot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.details-skeleton-line {
    height: 14px;
    border-radius: 4px;
}

.details-skeleton-line.w-95 {
    width: 95%;
}

.details-skeleton-line.w-85 {
    width: 85%;
}

.details-skeleton-line.w-60 {
    width: 60%;
}

.details-skeleton-line.w-20 {
    width: 140px;
    height: 18px;
    margin-bottom: 14px;
}

.details-skeleton-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.details-skeleton-action-btn.primary {
    width: 190px;
    height: 48px;
    border-radius: 12px;
}

.details-skeleton-action-btn.secondary {
    width: 150px;
    height: 48px;
    border-radius: 12px;
}

.details-skeleton-related-row {
    display: flex;
    gap: 14px;
    overflow: hidden;
}

.details-skeleton-card {
    width: 110px;
    height: 160px;
    border-radius: 10px;
    flex-shrink: 0;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: shimmerSkeleton 1.6s infinite linear;
}

@keyframes shimmerSkeleton {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Backdrop à Direita: 75% da Largura da Tela (details_screen.dart:535) */
.details-backdrop-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 75%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.details-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ShaderMask Esquerdo (details_screen.dart:551-561) */
.details-backdrop-mask-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #050B18 0%, rgba(5, 11, 24, 0.75) 45%, transparent 100%);
    pointer-events: none;
}

/* ShaderMask Inferior (details_screen.dart:565-575) */
.details-backdrop-mask-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 65%, #050B18 100%);
    pointer-events: none;
}

/* Dark Gradient Overlay Geral (details_screen.dart:581-590) */
.details-overlay-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #050B18 35%, rgba(5, 11, 24, 0.5) 70%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Coluna de Conteúdo Scrollável (details_screen.dart:600-608) */
.details-content-column {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 32px 50px 60px 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: none;
}

.details-content-column::-webkit-scrollbar {
    display: none;
}

/* Top Bar: Botão Voltar (details_screen.dart:609 + 1413-1442) */
.details-top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.details-back-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: transform 0.2s, color 0.2s;
    outline: none;
}

.details-back-btn.tv-focused {
    color: var(--primary-red) !important;
    transform: scale(1.15) !important;
}

/* Título em Caixa Alta (details_screen.dart:613-622) */
.details-title-heading {
    font-size: 2.875rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    max-width: 900px;
}

.details-subtitle-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

/* Badges de Metadados (details_screen.dart:633-643 + 1444-1456) */
.details-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 24px 0;
}

.details-badge {
    font-size: 0.938rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 8px 18px;
    border-radius: 8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.details-badge.badge-year,
.details-badge.badge-duration {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.details-badge.badge-genre {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--primary-red);
}

.details-badge.badge-rating {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #FF5252;
}

.details-badge.badge-4k {
    background: var(--primary-red);
    color: #FFFFFF;
    border: none;
}

/* Sinopse (details_screen.dart:647-658) */
.details-synopsis-section {
    margin-bottom: 32px;
    max-width: 800px;
}

.details-synopsis-label {
    color: #FFFFFF;
    font-size: 1.375rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.details-plot-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    font-weight: 500;
    margin: 0;
}

/* Barra de Progresso do Continue Assistindo na Sinopse */
.details-continue-progress-row {
    margin-top: -16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 580px;
}

.details-continue-progress-row.hidden {
    display: none !important;
}

.details-continue-progress-bar {
    height: 7px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.details-continue-progress-fill {
    height: 100%;
    background: var(--primary-red);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.details-continue-progress-text {
    font-size: 0.844rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Botões de Ação (details_screen.dart:662-803) */
.details-actions-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Botão Principal: ASSISTIR AGORA (details_screen.dart:1459-1518) */
.details-btn-main {
    background: var(--primary-red);
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    border-radius: 22px;
    padding: 14px 44px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}

.details-btn-main.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    transform: scale(var(--tv-focus-scale, 1.06)) translateZ(0) !important;
    box-shadow: 0 0 24px var(--focus-glow, rgba(255, 30, 30, 0.85)) !important;
}

.details-btn-main.tv-focused svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Botão Secundário: MINHA LISTA (details_screen.dart:1520-1576) */
.details-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    padding: 14px 34px;
    font-size: 1rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    outline: none;
}

.details-btn-secondary.active {
    background: rgba(var(--primary-red-rgb, 255, 30, 30), 0.25);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.details-btn-secondary.tv-focused {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    transform: scale(var(--tv-focus-scale, 1.05)) translateZ(0) !important;
    box-shadow: 0 0 16px var(--focus-glow, rgba(255, 30, 30, 0.5)) !important;
}

.details-btn-secondary.tv-focused svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Seção de Séries (details_screen.dart:1162-1386) */
.details-series-box {
    margin-top: 10px;
    margin-bottom: 30px;
}

.details-series-header-title {
    font-size: 1.375rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.details-seasons-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 18px;
    padding: 2px 0;
}

.season-tab-btn,
.details-season-chip {
    padding: 10px 26px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    outline: none;
}

.season-tab-btn:hover,
.details-season-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
}

.season-tab-btn.active,
.details-season-chip.active {
    background: var(--primary-red, #FF1E1E);
    border-color: var(--primary-red, #FF1E1E);
    box-shadow: 0 0 12px var(--focus-glow, rgba(255, 30, 30, 0.45));
    color: #FFFFFF;
}

.season-tab-btn.tv-focused,
.details-season-chip.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    color: #FFFFFF !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    transform: scale(var(--tv-focus-scale, 1.04)) translateZ(0) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
}

.details-episodes-scroller {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0;
}

/* Card de Episódio (details_screen.dart:1298-1375) */
.tv-episode-card {
    width: 360px;
    height: 120px;
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    transition: transform 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.tv-episode-card.tv-focused {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 3px solid #FFFFFF !important;
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.6) !important;
    transform: scale(1.03) !important;
}

.episode-thumb-box {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #000000;
}

.episode-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.episode-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.18s;
}

.episode-play-icon svg {
    width: 32px;
    height: 32px;
}

.tv-episode-card.tv-focused .episode-play-icon {
    color: var(--primary-red) !important;
}

.episode-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.episode-item-title {
    font-size: 1.063rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-item-sub {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

/* Seção de Relacionados (details_screen.dart:812-855) */
.details-related-section {
    margin-top: 20px;
    margin-bottom: 40px;
}

.details-related-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.details-related-title {
    font-size: 1.625rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #FFFFFF;
}

.details-see-all-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    outline: none;
}

.details-see-all-btn.tv-focused {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border: 1.5px solid #FFFFFF !important;
}

.details-section-label {
    font-size: 0.813rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* ==========================================================================
   5. ATIVAÇÃO / MAC EXPIRED SCREEN (FIDELIDADE 100% mac_expired_screen.dart)
   ========================================================================== */
#mac-expired-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #111C33 0%, #060B15 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--tv-safe-padding-y) var(--tv-safe-padding-x);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.expired-scroll-wrapper {
    width: 100%;
    max-width: 1240px;
    max-height: 96vh;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    justify-content: center;
}

.expired-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.expired-card-container {
    width: 100%;
    background: #0B1220;
    border: 2px solid rgba(239, 68, 68, 0.65);
    border-radius: 24px;
    padding: 30px 36px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.95);
    box-sizing: border-box;
}

.expired-card-container.activated {
    border-color: #00E676;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.3), 0 20px 48px rgba(0, 0, 0, 0.95);
}

/* Header Status (Wrap) */
.expired-header-status-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.expired-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.22);
    border: 1.5px solid #EF4444;
    border-radius: 22px;
    padding: 8px 20px;
}

.expired-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 10px #EF4444;
}

.expired-status-title {
    color: #FCA5A5;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.expired-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 230, 118, 0.18);
    border: 1.5px solid #00E676;
    border-radius: 20px;
    padding: 8px 18px;
    color: #00E676;
    font-size: 1.15rem;
    font-weight: 800;
}

/* Grid de Conteúdo 2 Colunas */
.expired-content-grid {
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

.expired-col-info {
    flex: 12;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.expired-col-action {
    flex: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.expired-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.expired-desc {
    font-size: 1.25rem;
    color: #E2E8F0;
    line-height: 1.45;
    margin: 0;
    font-weight: 600;
}

/* Badges MAC e KEY */
.expired-device-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.expired-device-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 1.2rem;
}

.expired-device-badge .device-label {
    color: #94A3B8;
    font-weight: 800;
}

.expired-device-badge .device-value {
    color: #FFFFFF;
    font-family: monospace;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.expired-copy-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.expired-copy-btn:hover,
.expired-copy-btn:focus,
.expired-copy-btn.tv-focused {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

/* Card de Preço */
.expired-price-card {
    background: rgba(0, 230, 118, 0.07);
    border: 1.5px solid rgba(0, 230, 118, 0.35);
    border-radius: 18px;
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expired-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-header-label {
    color: #00E676;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.price-header-badge {
    background: rgba(0, 230, 118, 0.22);
    border: 1.2px solid #00E676;
    border-radius: 8px;
    padding: 4px 12px;
    color: #00E676;
    font-size: 1.05rem;
    font-weight: 900;
}

.expired-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-amount {
    color: #FFFFFF;
    font-size: 2.6rem;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: -0.5px;
}

.price-period {
    color: #E2E8F0;
    font-size: 1.25rem;
    font-weight: 700;
}

.price-divider {
    height: 1.5px;
    background: rgba(255, 255, 255, 0.15);
    margin: 2px 0;
}

.price-bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
}

.price-bullet svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Guia Passo a Passo */
.expired-guide-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-title {
    color: #00E5FF;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.2);
    border: 1.5px solid #00E5FF;
    color: #00E5FF;
    font-size: 1.05rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
}

/* QR Code */
.expired-qr-card {
    background: #FFFFFF;
    padding: 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.expired-qr-card img {
    display: block;
    width: 210px;
    height: 210px;
}

.expired-qr-caption {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.3px;
}

.expired-check-message-box {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    background: rgba(0, 229, 255, 0.15);
    border: 1.5px solid #00E5FF;
    color: #00E5FF;
    box-sizing: border-box;
}

/* Botões da Tela Expired */
.btn-expired-verify {
    width: 100%;
    min-height: 58px;
    border-radius: 14px;
    border: none;
    background: #00E676;
    color: #050B14;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 18px rgba(0, 230, 118, 0.5);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-expired-verify svg {
    width: 24px;
    height: 24px;
}

.btn-expired-verify:hover,
.btn-expired-verify:focus,
.btn-expired-verify.tv-focused {
    background: #FFFFFF;
    color: #050B14;
    transform: scale(1.03);
    outline: none;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.95) !important;
}

.btn-expired-back {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-expired-back svg {
    width: 20px;
    height: 20px;
}

.btn-expired-back:hover,
.btn-expired-back:focus,
.btn-expired-back.tv-focused {
    background: #FFFFFF;
    color: #050B14;
    border-color: #FFFFFF;
    transform: scale(1.02);
    outline: none;
}

.expired-success-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    gap: 16px;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 32px rgba(0, 230, 118, 0.4);
}

.success-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0;
}

.success-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   6. BOTÕES GLOBAIS INSPIRADOS EM STREAMING (NETFLIX, GLOBOPLAY, PRIME VIDEO)
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    background: linear-gradient(135deg, #FF1E1E 0%, #D80000 100%);
    color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.844rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 30, 30, 0.45);
    transition: var(--focus-transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF3B3B 0%, #E50914 100%);
    box-shadow: 0 6px 22px rgba(255, 30, 30, 0.65);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    background: rgba(255, 255, 255, 0.20);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: var(--focus-transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: #FFFFFF;
}

.btn-pill {
    border-radius: var(--radius-full);
}

.btn-globoplay {
    background: linear-gradient(135deg, #FF1744 0%, #FF5252 100%);
    box-shadow: 0 4px 18px rgba(255, 23, 68, 0.45);
}

.btn-prime {
    background: linear-gradient(135deg, #00A8E1 0%, #007EB9 100%);
    box-shadow: 0 4px 18px rgba(0, 168, 225, 0.45);
}

.login-error-alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #FCA5A5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.813rem;
    margin-bottom: 14px;
    text-align: center;
}

/* ==========================================================================
   7. TELA DE CARREGAMENTO DOS CONTEÚDOS (DESIGN MODERNO, MINIMALISTA E CLEAN)
   ========================================================================== */
#content-loading-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #060B14;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fundo Cinematográfico Sutil */
.sync-ambient-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255, 30, 30, 0.12) 0%, rgba(8, 14, 26, 0.96) 60%, #050811 100%);
    pointer-events: none;
    z-index: 1;
}

.sync-screen-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: clamp(520px, 52vw, 760px);
    width: 90%;
    padding: clamp(28px, 4.5vh, 48px) clamp(30px, 4vw, 54px);
    background: rgba(11, 18, 32, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: clamp(18px, 2vw, 28px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

/* Logo Minimalista Central */
.sync-logo-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(12px, 2vh, 18px);
}

.sync-brand-logo {
    max-height: clamp(48px, 6.5vh, 70px);
    max-width: clamp(180px, 20vw, 260px);
    object-fit: contain;
}

.sync-logo-s {
    font-size: clamp(1.4rem, 1.8vw, 1.85rem);
    font-weight: 900;
    color: var(--primary-red, #FF1E1E);
}

/* Título Oficial: STARBR PLAY */
.sync-brand-title {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: clamp(6px, 1vh, 10px);
}

.sync-star {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.sync-br {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 900;
    color: #FF1E1E;
    letter-spacing: 1px;
}

.sync-play {
    font-size: clamp(1.4rem, 2.1vw, 2.1rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
    margin-left: 6px;
    letter-spacing: 1.5px;
}

.sync-subtext {
    font-size: clamp(0.95rem, 1.15vw, 1.15rem);
    color: #94A3B8;
    font-weight: 500;
    margin: 0 0 clamp(20px, 3vh, 30px) 0;
    letter-spacing: 0.2px;
}

/* Barra de Progresso Fina e Moderna com Indicador de Porcentagem */
.sync-progress-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 18px);
    margin-bottom: clamp(20px, 3vh, 30px);
}

.sync-progress-bar-track {
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.sync-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF1E1E 0%, #FF5252 70%, #FFFFFF 100%);
    border-radius: 4px;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 12px rgba(255, 30, 30, 0.7);
}

.sync-progress-meta {
    flex-shrink: 0;
}

.sync-percentage-badge {
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    font-weight: 800;
    color: #FFFFFF;
    min-width: 44px;
    text-align: right;
    display: inline-block;
}

/* Categorias com Ícones para TV, Filmes e Séries + Animação de Verificação */
.sync-categories-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 28px);
    width: 100%;
    margin-top: clamp(6px, 1vh, 12px);
}

.sync-cat-item {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    padding: clamp(8px, 1.2vh, 12px) clamp(14px, 1.8vw, 22px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sync-cat-icon-wrap {
    position: relative;
    width: clamp(24px, 3vh, 30px);
    height: clamp(24px, 3vh, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.sync-cat-icon {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sync-cat-name {
    font-size: clamp(0.85rem, 1.05vw, 1.05rem);
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

/* Estado Ativo / Carregando */
.sync-cat-item.is-loading {
    background: rgba(255, 30, 30, 0.12);
    border-color: rgba(255, 30, 30, 0.4);
    box-shadow: 0 0 16px rgba(255, 30, 30, 0.25);
}

.sync-cat-item.is-loading .sync-cat-icon-wrap {
    color: #FF5252;
}

.sync-cat-item.is-loading .sync-cat-name {
    color: #FFFFFF;
}

.sync-spinner-ring {
    display: none;
    position: absolute;
    inset: -3px;
    border: 2px solid transparent;
    border-top-color: #FF1E1E;
    border-radius: 50%;
    animation: syncSpin 0.9s linear infinite;
}

.sync-cat-item.is-loading .sync-spinner-ring {
    display: block;
}

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

/* Badge de Verificação (Checkmark animado) */
.sync-check-badge {
    position: absolute;
    inset: 0;
    background: #00E676;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    opacity: 0;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Estado Concluído com Animação de Verificação */
.sync-cat-item.is-completed {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.35);
}

.sync-cat-item.is-completed .sync-cat-icon {
    opacity: 0;
    transform: scale(0.4);
}

.sync-cat-item.is-completed .sync-spinner-ring {
    display: none !important;
}

.sync-cat-item.is-completed .sync-check-badge {
    transform: scale(1);
    opacity: 1;
}

.sync-cat-item.is-completed .sync-cat-name {
    color: #FFFFFF;
}

.sync-cat-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   8. TELA DE CONFIGURAÇÕES DO SISTEMA (FIDELIDADE A configurações.jpg & settings_screen.dart)
   ========================================================================== */
#settings-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark, #081120);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 25;
}

.roku-settings-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    background: #030712;
}

.roku-settings-header {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 48px 14px 48px;
    background: #0A0F1D;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-settings-back {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.btn-settings-back:hover,
.btn-settings-back.tv-focused {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.settings-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-header-icon {
    color: #00E676;
}

.settings-title-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #FFFFFF;
}

/* 2-COLUMN LAYOUT CENTRALIZADO E PROJETADO PARA 1080PX (settings_screen.dart:543) */
.settings-layout-row {
    flex: 1;
    display: flex;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

/* COLUNA 1 (ESQUERDA): MENU DE CATEGORIAS (width: 320px, background: #060A13) */
.settings-left-col {
    width: 320px;
    background: #060A13;
    border-right: 1.5px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    padding: 16px 12px;
    box-sizing: border-box;
}

/* --- CONFIGURAÇÕES DO SISTEMA (settings_screen.dart FIDELIDADE TOTAL) --- */
.settings-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.settings-category-tile {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    margin-bottom: 8px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    text-align: left;
    transition: all 0.16s ease;
    min-height: 76px;
    box-sizing: border-box;
}

.settings-category-tile .cat-tile-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    transition: all 0.16s ease;
}

.settings-category-tile .cat-tile-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.settings-category-tile .cat-tile-texts {
    flex: 1;
    min-width: 0;
}

.settings-category-tile .cat-tile-title {
    font-size: 1.375rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.settings-category-tile .cat-tile-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-category-tile .cat-tile-arrow {
    display: none;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
}

/* Quando selecionado / ativo */
.settings-category-tile:hover,
.settings-category-tile.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.settings-category-tile.active .cat-tile-icon {
    background: rgba(229, 9, 20, 0.15);
    color: #E50914;
}

.settings-category-tile.active .cat-tile-title {
    color: #FFFFFF;
    font-weight: 900;
}

.settings-category-tile.active .cat-tile-sub {
    color: rgba(255, 255, 255, 0.7);
}

.settings-category-tile.active .cat-tile-arrow {
    display: block;
    color: rgba(255, 255, 255, 0.4);
}

/* Quando focado com o controle remoto / teclado (D-Pad) */
.settings-category-tile.tv-focused {
    background: rgba(229, 9, 20, 0.22) !important;
    border-color: #FFFFFF !important;
    border-width: 3.5px !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

.settings-category-tile.tv-focused .cat-tile-icon {
    background: #E50914 !important;
    color: #FFFFFF !important;
}

.settings-category-tile.tv-focused .cat-tile-title {
    color: #FFFFFF !important;
    font-weight: 900 !important;
}

.settings-category-tile.tv-focused .cat-tile-sub {
    color: rgba(255, 255, 255, 0.9) !important;
}

.settings-category-tile.tv-focused .cat-tile-arrow {
    display: block !important;
    color: #FFFFFF !important;
}

/* Compatibilidade com classes anteriores */
.settings-cat-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    text-align: left;
    transition: all 0.16s ease;
}

.settings-cat-tile .tile-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
}

.settings-cat-tile .tile-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
}

/* Cabeçalho da Categoria Ativa (settings_screen.dart:770) */
.settings-active-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    width: 100%;
}

.settings-active-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.active-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E50914;
    width: 32px;
    height: 32px;
}

.active-cat-icon svg {
    width: 32px;
    height: 32px;
    fill: #E50914;
}

.active-cat-texts {
    display: flex;
    flex-direction: column;
}

.active-cat-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0;
}

.active-cat-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 4px 0 0 0;
    font-weight: 600;
}

.settings-back-menu-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.settings-back-menu-chip svg {
    color: rgba(255, 255, 255, 0.7);
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.settings-back-menu-chip:hover,
.settings-back-menu-chip.tv-focused {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* Coluna da Direita e Container de Scroll (settings_screen.dart:578-607) */
.settings-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #030712;
    overflow: hidden;
    position: relative;
}

.settings-right-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 36px 64px 36px;
    display: flex;
    justify-content: center;
    scroll-behavior: auto;
    box-sizing: border-box;
}

/* Projeção e Centralização 1080px (Flutter BoxConstraints maxWidth: 880) */
.settings-detail-wrapper {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.settings-category-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
    align-items: stretch;
}

/* ==========================================================================
   CONFIGURAÇÕES DO SISTEMA: CARDS & COMPONENTES (FIDELIDADE TOTAL ÀS SCREENSHOTS)
   ========================================================================== */

/* Card Padrão com Borda Vermelha das Telas de Configurações */
.settings-card-border-red {
    background: rgba(13, 21, 38, 0.75);
    border: 1.5px solid rgba(229, 9, 20, 0.45);
    border-radius: 16px;
    padding: 26px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    width: 100%;
}

.settings-card-divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    margin: 18px 0;
}

/* Botões Padrão das Telas de Configurações */
.btn-action-white {
    background: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease;
}

.btn-action-white:hover,
.btn-action-white.tv-focused {
    background: #F1F5F9 !important;
    color: #000000 !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.03);
}

.btn-outline-dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    color: #FFFFFF;
    padding: 12px 22px;
    font-size: 0.938rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    transition: all 0.15s ease;
}

.btn-outline-dark:hover,
.btn-outline-dark.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.02);
}

.btn-activate-bright-green {
    background: #00E676;
    color: #050B18;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-activate-bright-green:hover,
.btn-activate-bright-green.tv-focused {
    background: #69F0AE;
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.7) !important;
    transform: scale(1.04);
}

.btn-action-teal {
    background: #0D9488;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
}

.btn-action-teal:hover,
.btn-action-teal.tv-focused {
    background: #14B8A6;
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.7) !important;
    transform: scale(1.02);
}

/* 1. SISTEMA & APARELHO (media_1792356168088.png) */
.device-main-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.device-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.device-icon-box svg {
    width: 28px;
    height: 28px;
}

.device-meta-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.device-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.device-name-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.2px;
}

.device-vip-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid #10B981;
    color: #10B981;
    font-size: 0.875rem;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.device-subtext-line {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    font-weight: 500;
}

.device-access-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.access-label {
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: 800;
}

.expiration-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.expiration-label strong {
    color: #EF4444;
    font-weight: 900;
    margin-left: 4px;
}

.device-actions-row {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.settings-trial-box-amber {
    background: rgba(245, 158, 11, 0.08);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.trial-clock-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trial-clock-circle svg {
    width: 24px;
    height: 24px;
}

.trial-texts-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trial-title-amber {
    font-size: 0.875rem;
    font-weight: 900;
    color: #F59E0B;
    letter-spacing: 0.8px;
}

.trial-days-highlight {
    font-size: 1.188rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-top: 3px;
}

.trial-expire-date-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

/* 2. GERENCIADOR DE PERFIL (media_1792356183762.png) */
.profile-card-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.profile-card-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar-red-box {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: rgba(229, 9, 20, 0.15);
    border: 2px solid rgba(229, 9, 20, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.profile-info-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-title-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.profile-title-text strong {
    font-weight: 900;
    color: #FFFFFF;
}

.profile-tags-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-pill-family {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #FCA5A5;
    font-size: 0.844rem;
    font-weight: 800;
}

.tag-pill-pin-status {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.844rem;
    font-weight: 800;
}

/* 3. TELA INICIAL (media_1792356192436.png) */
.startup-select-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.063rem;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 18px;
}

.startup-tabs-5grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    width: 100%;
}

.startup-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 86px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1rem;
    font-weight: 800;
}

.startup-grid-btn svg {
    width: 26px;
    height: 26px;
}

.startup-grid-btn.active {
    background: rgba(229, 9, 20, 0.22);
    border-color: #E50914;
    color: #FFFFFF;
}

.startup-grid-btn:hover,
.startup-grid-btn.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

/* 4. CONTROLE PARENTAL (media_1792356210002.png) */
.parental-card-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.parental-card-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.parental-icon-red-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(229, 9, 20, 0.15);
    border: 2px solid rgba(229, 9, 20, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parental-icon-red-box svg {
    width: 26px;
    height: 26px;
}

.parental-texts-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.parental-title-text {
    font-size: 1.188rem;
    font-weight: 800;
    color: #FFFFFF;
}

.parental-desc-text {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
}

.parental-actions-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.parental-toggle-pill {
    width: 54px;
    height: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.parental-toggle-pill.active {
    background: #EF4444;
}

.parental-toggle-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: all 0.2s ease;
}

.parental-toggle-pill.active .parental-toggle-circle {
    left: 28px;
}

.parental-toggle-pill.tv-focused {
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
    border: 2px solid #FFFFFF;
    transform: scale(1.08);
}

/* 5. SINCRONIZAÇÃO & CACHE (media_1792356218397.png) */
.sync-top-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sync-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sync-icon-circle-amber {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sync-titles-col {
    display: flex;
    flex-direction: column;
}

.sync-title-text {
    font-size: 1.188rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.sync-status-sub {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 3px;
}

.sync-active-badge-green {
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid #10B981;
    color: #10B981;
    font-size: 0.875rem;
    font-weight: 800;
}

.stat-chips-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.938rem;
    font-weight: 800;
}

.stat-chip-red {
    background: rgba(239, 68, 68, 0.12);
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
}

.stat-chip-blue {
    background: rgba(59, 130, 246, 0.12);
    border: 1.5px solid rgba(59, 130, 246, 0.35);
    color: #93C5FD;
}

.stat-chip-purple {
    background: rgba(168, 85, 247, 0.12);
    border: 1.5px solid rgba(168, 85, 247, 0.35);
    color: #D8B4FE;
}

.stat-chip-amber {
    background: rgba(245, 158, 11, 0.12);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    color: #FDE68A;
}

.stat-chip strong {
    color: #FFFFFF;
    font-weight: 900;
}

.cache-monitor-section {
    background: rgba(10, 16, 28, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.cache-quota-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.cache-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cache-bar-fill {
    height: 100%;
    background: #EF4444;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cache-details-legend {
    display: flex;
    gap: 24px;
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.cache-details-legend strong {
    color: #FFFFFF;
}

.cache-quota-hint {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.sync-actions-2grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* 6. REPRODUÇÃO & BUFFER (media_1792356229416.png) */
.buffer-top-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.buffer-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.buffer-icon-circle-teal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-main-title {
    font-size: 1.188rem;
    font-weight: 900;
    color: #FFFFFF;
}

.card-main-sub {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 3px;
}

.gpu-native-badge {
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(6, 182, 212, 0.15);
    border: 1.5px solid #22D3EE;
    color: #22D3EE;
    font-size: 0.875rem;
    font-weight: 800;
}

.buffer-section-label {
    font-size: 0.781rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.buffer-buttons-4row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.btn-buffer-opt {
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.938rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-buffer-opt.active {
    background: rgba(229, 9, 20, 0.22);
    border-color: #E50914;
    color: #FFFFFF;
}

.btn-buffer-opt:hover,
.btn-buffer-opt.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

/* 7. DNS SEGURO DoH (media_1792356242020.png) */
.doh-top-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.doh-icon-circle-purple {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doh-titles-col {
    display: flex;
    flex-direction: column;
}

.doh-buttons-5row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.btn-doh-opt {
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.938rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-doh-opt.active {
    background: rgba(229, 9, 20, 0.22);
    border-color: #E50914;
    color: #FFFFFF;
}

.btn-doh-opt:hover,
.btn-doh-opt.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

/* 8. ENCERRAR SESSÃO (media_1792356252282.png) */
.logout-card-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.logout-top-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logout-icon-circle-red {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logout-titles-col {
    display: flex;
    flex-direction: column;
}

.logout-desc-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

.btn-logout-wide {
    width: 100%;
    justify-content: center;
    height: 54px;
    font-size: 1.063rem;
    font-weight: 800;
    margin-top: 10px;
}

/* ==========================================================================
   MODAIS DE PIN PARENTAL (pin_lock_dialog.dart & ModernChangePinDialog FIDELIDADE)
   ========================================================================== */
.pin-dialog-card {
    width: 440px;
    max-width: 90vw;
    background: rgba(12, 22, 37, 0.98);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.pin-dialog-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.pin-dialog-title {
    font-size: 1.375rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.8px;
    margin: 0 0 6px 0;
    text-align: center;
}

.pin-dialog-subtitle {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin: 0 0 22px 0;
}

.pin-dots-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 22px;
}

.pin-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}

.pin-dot.is-filled {
    background: #00E676;
    border-color: #00E676;
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.7);
}

.pin-error-text {
    font-size: 0.875rem;
    font-weight: 800;
    color: #EF4444;
    margin-bottom: 14px;
    text-align: center;
}

.pin-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.pin-keypad-btn {
    height: 58px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.pin-keypad-btn:hover,
.pin-keypad-btn.tv-focused {
    background: #E50914 !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: scale(1.06);
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.8) !important;
}

.pin-keypad-btn.action-clear {
    color: #F59E0B;
    font-size: 1.125rem;
}

.pin-keypad-btn.action-backspace {
    color: #EF4444;
    font-size: 1.125rem;
}

.pin-dialog-actions {
    width: 100%;
}

@keyframes pinShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.pin-shake-anim {
    animation: pinShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ==========================================================================
   MODAL DE ATIVAÇÃO INFINITEPAY (100% mac_activation_lock_dialog.dart)
   ========================================================================== */
.mac-lock-dialog-card {
    width: 820px;
    max-width: 94vw;
    background: #0B1220;
    border-radius: 28px;
    border: 2.5px solid #00E676;
    box-shadow: 0 0 50px rgba(0, 230, 118, 0.35), 0 30px 60px rgba(0, 0, 0, 0.95);
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.mac-lock-top-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.trial-pill-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.18);
    border: 1.5px solid #F59E0B;
    color: #FCD34D;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.trial-icon {
    font-size: 1.2rem;
}

.mac-lock-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mac-lock-close-btn:hover,
.mac-lock-close-btn:focus,
.mac-lock-close-btn.tv-focused {
    background: #FFFFFF;
    color: #050B14;
    border-color: #FFFFFF;
    transform: scale(1.1);
    outline: none;
}

.mac-lock-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.mac-lock-subtitle {
    font-size: 1.3rem;
    color: #E2E8F0;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

.mac-lock-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 16px;
    background: rgba(0, 230, 118, 0.2);
    border: 1.2px solid #00E676;
    color: #00E676;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.mac-address-pill-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 10px 20px;
    margin-bottom: 22px;
}

.mac-text-mono {
    font-family: monospace;
    font-size: 1.35rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.mac-lock-copy-btn {
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(0, 230, 118, 0.15);
    border: 1.2px solid #00E676;
    color: #00E676;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mac-lock-copy-btn:hover,
.mac-lock-copy-btn:focus,
.mac-lock-copy-btn.tv-focused {
    background: #00E676;
    color: #050B14;
    outline: none;
    transform: scale(1.05);
}

.mac-lock-checkout-box {
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(0, 230, 118, 0.06);
    border: 1.5px solid rgba(0, 230, 118, 0.35);
    border-radius: 20px;
    padding: 22px 28px;
    margin-bottom: 22px;
    width: 100%;
    box-sizing: border-box;
}

.mac-qr-wrapper {
    background: #FFFFFF;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mac-qr-code-img {
    display: block;
    width: 210px;
    height: 210px;
}

.mac-price-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.price-super-label {
    font-size: 1.15rem;
    font-weight: 900;
    color: #00E676;
    letter-spacing: 1px;
}

.price-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

#mac-lock-price-text {
    font-family: monospace;
    font-size: 2.6rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.price-sub-info {
    font-size: 1.2rem;
    color: #CBD5E1;
    font-weight: 600;
}

.price-instant-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #00E676;
    margin-top: 4px;
}

.price-qr-instruction {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 6px;
}

.mac-lock-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-infinitepay-verify {
    width: 100%;
    min-height: 58px;
    border-radius: 14px;
    border: none;
    background: #00E676;
    color: #050B14;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(0, 230, 118, 0.5);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-infinitepay-verify:hover,
.btn-infinitepay-verify:focus,
.btn-infinitepay-verify.tv-focused {
    background: #FFFFFF;
    color: #050B14;
    transform: scale(1.02);
    outline: none;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.95) !important;
}

.btn-infinitepay-back {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-infinitepay-back:hover,
.btn-infinitepay-back:focus,
.btn-infinitepay-back.tv-focused {
    background: #FFFFFF;
    color: #050B14;
    border-color: #FFFFFF;
    transform: scale(1.02);
    outline: none;
}

.mac-lock-status-msg {
    margin-top: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #FCD34D;
    text-align: center;
}

.mac-lock-footer-hint {
    margin-top: 12px;
    font-size: 1.15rem;
    color: #94A3B8;
    text-align: center;
    font-weight: 600;
}

/* ==========================================================================
   9. VOD GRID & POSTER CARDS (FIDELIDADE A filmes.jpg, series.jpg & kids.jpg)
   ========================================================================== */
.vod-module-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 28px;
    box-sizing: border-box;
}

.vod-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vod-module-title {
    font-size: 1.375rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.vod-body-row {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}

.vod-categories-col {
    width: 280px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.vod-categories-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 6px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.vod-categories-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #EF4444;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.category-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    min-height: 52px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.2rem, 1.45vw, 1.65rem) !important;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    transition: none !important;
    gap: 10px;
}

.category-item-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-weight: 900;
    border: 1px solid transparent;
}

.category-item-btn.tv-focused,
.live-category-btn.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    transform: scale(var(--tv-focus-scale, 1.04)) translateZ(0) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
}

.category-item-btn.tv-focused span,
.category-item-btn.tv-focused svg,
.category-item-btn.tv-focused .cat-arrow-indicator,
.live-category-btn.tv-focused span,
.live-category-btn.tv-focused svg,
.live-category-btn.tv-focused .cat-arrow-indicator {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

.vod-grid-col {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    contain: layout style;
}

.vod-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px;
    padding: 14px 20px 80px 20px;
    box-sizing: border-box;
}

/* Poster Card TV (Foco nítido apenas na capa, todas as 4 bordas 100% visíveis sem corte) */
.tv-poster-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: visible !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    transition: none !important;
}

.horizontal-cards-scroller .tv-poster-card {
    min-width: var(--shelf-poster-width, 174px) !important;
    width: var(--shelf-poster-width, 174px) !important;
    max-width: var(--shelf-poster-width, 174px) !important;
    height: var(--shelf-poster-height, 254px) !important;
}

.poster-media-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #081120;
    box-sizing: border-box;
    border: none !important;
    transition: none !important;
}

.horizontal-cards-scroller .poster-media-wrapper {
    width: 100% !important;
    height: var(--shelf-poster-height, 254px) !important;
    aspect-ratio: auto !important;
    border-radius: 10px !important;
}

.poster-shimmer-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B1628;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: posterCardShimmer 1.4s infinite;
    z-index: 1;
    pointer-events: none;
    border-radius: 10px !important;
}

@keyframes posterCardShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.poster-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
    border-radius: 10px !important;
}

.poster-img.loaded {
    opacity: 1 !important;
}

.poster-badge-rating {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: #F59E0B;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
}

.poster-badge-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #EF4444;
    font-size: 0.875rem;
}

.poster-info {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.poster-title {
    font-size: 0.719rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    letter-spacing: 0.1px;
}

.poster-meta {
    font-size: 0.813rem;
    font-weight: 600;
    color: #38BDF8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-poster-card.tv-focused {
    transform: none !important;
    z-index: 50;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Foco em Filmes & Séries: Borda Vermelha Alta Fidelidade (Imagem 1 e 2) */
.tv-poster-card.tv-focused .poster-media-wrapper {
    border: none !important;
    box-shadow: 0 0 22px rgba(229, 9, 20, 0.75), 0 8px 26px rgba(0, 0, 0, 0.95) !important;
    transform: scale(1.05) translateZ(0);
}

.tv-poster-card.tv-focused .poster-media-wrapper::after {
    border: 3.5px solid #E50914 !important;
    box-shadow: inset 0 0 10px rgba(229, 9, 20, 0.4), 0 0 22px rgba(229, 9, 20, 0.75) !important;
}

/* ==========================================================================
   MODO KIDS RECONSTRUÍDO (100% Fidelidade à Imagem 3)
   ========================================================================== */
#subview-vod.kids-mode {
    background: linear-gradient(180deg, #0284C7 0%, #38BDF8 45%, #60A5FA 70%, #22C55E 100%) !important;
    position: relative;
    overflow: hidden;
}

#subview-vod.kids-mode::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: radial-gradient(ellipse 70% 60px at 50% 100%, #16A34A 0%, #15803D 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

#subview-vod.kids-mode .vod-module-header {
    display: none !important;
}

/* Top Bar Exclusiva do Kids (Imagem 3) */
.vod-kids-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px 14px 14px;
    z-index: 10;
}

.kids-category-headline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kids-cat-dot {
    color: #4ADE80;
    font-size: 1rem;
    text-shadow: none;
}

.kids-active-cat-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.kids-active-cat-count {
    font-size: 1.125rem;
    font-weight: 700;
    color: #BAE6FD;
    text-shadow: none;
    margin-left: 6px;
}

.kids-search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 7px 18px;
    border-radius: 20px;
    color: #E2E8F0;
    font-size: 0.813rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.kids-search-pill.tv-focused {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #FBBF24 !important;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.04);
}

/* Coluna de Categorias Kids (Imagem 3) */
#subview-vod.kids-mode .vod-categories-col {
    background: rgba(14, 80, 120, 0.85) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Plaquinha Madeira / Nuvem de Título Kids */
.kids-sign-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: 2.5px solid #FEF08A;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border-radius: 22px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.kids-sign-stars {
    display: flex;
    gap: 4px;
    color: #FEF08A;
    font-size: 0.813rem;
}

.kids-sign-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1.5px;
    text-shadow: none;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Botões em Pílula Cheios de Cores Vivas (Imagem 3) */
#subview-vod.kids-mode .category-item-btn {
    border-radius: 24px !important;
    font-size: clamp(1.15rem, 1.35vw, 1.55rem) !important;
    font-weight: 900 !important;
    padding: 12px 20px !important;
    min-height: 52px !important;
    margin-bottom: 8px !important;
    color: #1E293B !important;
    background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%) !important;
    border: 1.5px solid #FEF08A !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    justify-content: center !important;
    text-align: center !important;
}

#subview-vod.kids-mode .category-item-btn.active {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important;
    color: #FFFFFF !important;
    border-color: #BAE6FD !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.6) !important;
}

#subview-vod.kids-mode .category-item-btn.tv-focused {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #FBBF24 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.95) !important;
    transform: scale(1.05) translateZ(0) !important;
}

/* Grade Kids: 5 Colunas (Imagem 3) */
#subview-vod.kids-mode .vod-grid-container {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
    padding: 6px 14px 60px 14px !important;
}

/* Card Kids com Cantos Arredondados e Banner Inferior */
.kids-card {
    border-radius: 14px !important;
    overflow: hidden !important;
}

.kids-media-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px !important;
    overflow: hidden;
    background: #0F172A;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    transition: transform 0.12s ease !important;
}

.kids-badge-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #38BDF8;
    font-size: 0.688rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.kids-card-bottom-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 10px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
    z-index: 2;
}

.kids-card-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: none;
}

.kids-card.tv-focused .kids-media-wrapper {
    border: 3.5px solid #FBBF24 !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.85), 0 8px 24px rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.05) translateZ(0) !important;
}

/* Campo de Pesquisa Embutido na Coluna de Categorias (Filmes & Séries: Imagem 1 e 2) */
.vod-cat-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 10px 18px;
    min-height: 48px;
    margin: 6px 0 10px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 1.25vw, 1.45rem);
    font-weight: 700;
    cursor: pointer;
}

.vod-cat-search-box.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.7) !important;
}

.vod-cat-search-box.tv-focused span,
.vod-cat-search-box.tv-focused svg {
    color: #000000 !important;
}

.category-fav-gold {
    color: #FBBF24 !important;
}

/* ==========================================================================
   10. CANAIS AO VIVO INTEGRADOS (FIDELIDADE A Canais.jpg)
   ========================================================================== */
.live-integrated-container {
    display: flex;
    height: 100%;
    width: 100%;
    gap: 14px;
    padding: 14px 18px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Coluna 1: Categorias (280px Padrão Globoplay) */
.live-categories-sidebar {
    width: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.live-categories-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #EF4444;
    font-size: 0.938rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.live-categories-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 6px;
    box-sizing: border-box;
}

.live-category-btn {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.063rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: none !important;
    gap: 8px;
}

.live-category-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-weight: 900;
}

.live-category-btn.is-fav {
    color: #F59E0B;
}

.live-category-btn.is-fav svg {
    fill: #F59E0B;
}

.live-category-btn.is-search {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}

/* Coluna 2: Lista de Canais (330px Padrão Globoplay) */
.live-channels-list-col {
    width: 330px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.live-channels-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #EF4444;
    font-size: 0.938rem;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.live-channels-scroll-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px 6px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    contain: layout style;
}

.cat-nav-arrow {
    font-size: 1.125rem;
    color: #94A3B8;
}

/* Coluna 2: Itens da Lista de Canais (Proporção Confortável para TV) */
.live-channel-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    min-height: 58px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.12s ease !important;
    transform: translateZ(0);
    will-change: transform;
    color: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    outline: none;
}

.live-channel-num {
    background: #1E293B;
    color: #94A3B8;
    font-size: 0.875rem;
    font-weight: 800;
    min-width: 32px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.live-channel-logo {
    width: 46px;
    height: 34px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.live-channel-name {
    flex: 1;
    font-size: 1.063rem;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.live-channel-list-item:hover,
.live-channel-list-item.tv-focused {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #FFFFFF !important;
    transform: scale(1.02) translateZ(0) !important;
    outline: 2px solid #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7) !important;
}

.live-channel-list-item:hover .live-channel-num,
.live-channel-list-item.tv-focused .live-channel-num {
    background: #EF4444;
    color: #FFFFFF;
}

.live-channel-list-item.active-channel {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: #EF4444 !important;
}

.live-channel-list-item.active-channel .live-channel-num {
    background: #EF4444;
    color: #FFFFFF;
}

/* Coluna 3: Mini Player no Topo e EPG na Base */
.live-player-epg-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    height: 100%;
}

.live-miniplayer-frame {
    flex: 11;
    min-height: 0;
    background: #0A0E17;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-tutorial-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 36px 24px;
    width: 100%;
}

.live-tutorial-logo-box {
    width: clamp(80px, 6vw, 115px);
    height: clamp(80px, 6vw, 115px);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.starbr-s-logo-badge {
    font-size: clamp(2.8rem, 3.8vw, 4.4rem);
    font-weight: 900;
    color: #EF4444;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1;
}

.live-tutorial-title {
    font-size: clamp(1.2rem, 1.6vw, 1.85rem);
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: none;
}

.live-tutorial-desc-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    padding: 14px 28px;
    border-radius: 24px;
    font-size: clamp(0.85rem, 1.05vw, 1.15rem);
    color: #F1F5F9;
    font-weight: 600;
    max-width: 85%;
    line-height: 1.4;
}

.live-tutorial-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(0.85rem, 1.05vw, 1.15rem);
    font-weight: 800;
    color: #EF4444;
}

.live-tutorial-prompt svg {
    width: 24px;
    height: 24px;
}

.live-video-player-container,
#live-video-container,
#subview-canais,
.live-integrated-container,
#live-miniplayer-box,
#home-sidebar {
    transition: none !important;
    animation: none !important;
}

.live-video-player-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000000;
}

.live-video-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Modo Tela Cheia Contínuo para Canais ao Vivo e VOD (Instantâneo / Zero Reflow / Zero Efeito / Zero Delay) */
body.live-fullscreen-active #home-sidebar,
body.live-fullscreen-active .home-sidebar,
body.player-fullscreen-active #home-sidebar,
body.player-fullscreen-active .home-sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.live-fullscreen-active #home-main-content-area,
body.live-fullscreen-active .home-main-area {
    margin-left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    transform: none !important;
    -webkit-transform: none !important;
}

body.live-fullscreen-active #subview-canais {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    transform: none !important;
    -webkit-transform: none !important;
}

body.live-fullscreen-active .live-integrated-container,
body.live-fullscreen-active .live-player-epg-col,
body.live-fullscreen-active .live-miniplayer-frame {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    overflow: visible !important;
}

.live-video-player-container.is-fullscreen-live,
body.live-fullscreen-active .live-video-player-container.is-fullscreen-live {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    z-index: 2147483647 !important;
    background: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: none !important;
    animation: none !important;
}

.live-video-player-container.is-fullscreen-live video,
body.live-fullscreen-active .live-video-player-container.is-fullscreen-live video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000000 !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: none !important;
    animation: none !important;
}

/* Ocultação forçada dos badges e relógio do mini player durante tela cheia */
.live-video-player-container.is-fullscreen-live .player-top-left-badge,
.live-video-player-container.is-fullscreen-live .player-top-right-badges,
.live-video-player-container.is-fullscreen-live .player-bottom-left-time,
body.live-fullscreen-active .player-top-left-badge,
body.live-fullscreen-active .player-top-right-badges,
body.live-fullscreen-active .player-bottom-left-time {
    display: none !important;
}

/* Barra de Ações do Mini Player (SALVAR CANAL) */
.live-player-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    margin-top: -4px;
    margin-bottom: 2px;
}

.live-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 7px 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.live-action-btn .star-icon {
    color: #94A3B8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.live-action-btn:focus,
.live-action-btn.tv-focused {
    background: var(--prefix-red, #FF1E1E) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(255, 30, 30, 0.6);
}

.live-action-btn:focus .star-icon,
.live-action-btn.tv-focused .star-icon {
    color: #FFFFFF !important;
}

.live-action-btn.is-saved {
    background: rgba(245, 158, 11, 0.16);
    border-color: #F59E0B;
    color: #F59E0B;
}

.live-action-btn.is-saved .star-icon {
    color: #F59E0B !important;
}

.live-action-btn.is-saved:focus,
.live-action-btn.is-saved.tv-focused {
    background: #F59E0B !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
}

.live-action-btn.is-saved:focus .star-icon,
.live-action-btn.is-saved.tv-focused .star-icon {
    color: #000000 !important;
}

/* OSD HUD de Tela Cheia para Canais ao Vivo */
.live-fullscreen-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 52px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.92) 100%);
    opacity: 1;
    pointer-events: none;
    transition: none !important;
    animation: none !important;
}

.live-fullscreen-hud.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
    transition: none !important;
    animation: none !important;
}

.live-fullscreen-hud button,
.live-fullscreen-hud .tv-focusable {
    pointer-events: auto;
}

.live-fs-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.live-fs-circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none !important;
    animation: none !important;
}

.live-fs-circle-btn:focus,
.live-fs-circle-btn.tv-focused {
    background: #EF4444 !important;
    border-color: #FFFFFF !important;
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

.live-fs-top-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-fs-badge-live {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #FFFFFF;
    font-size: 0.813rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.live-fs-badge-quality {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E2E8F0;
    font-size: 0.813rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

.live-fs-clock {
    font-size: 1.125rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}

.live-fs-bottom-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.live-fs-channel-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.live-fs-channel-num {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.live-fs-channel-logo {
    width: 64px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
}

.live-fs-channel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-fs-channel-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.live-fs-program-title {
    font-size: 1rem;
    font-weight: 600;
    color: #38BDF8;
    text-shadow: none;
}

.live-fs-epg-progress-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.live-fs-epg-time {
    font-size: 0.813rem;
    font-weight: 700;
    color: #94A3B8;
    white-space: nowrap;
}

.live-fs-epg-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.live-fs-epg-fill {
    height: 100%;
    background: linear-gradient(90deg, #38BDF8, #00E676);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.live-fs-epg-percent {
    font-size: 0.813rem;
    font-weight: 700;
    color: #38BDF8;
    white-space: nowrap;
}

.live-fs-hint-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 0.3px;
}

.player-top-left-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.688rem;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.badge-dot-red {
    color: #EF4444;
    font-size: 0.75rem;
    animation: liveDotPulse 1.5s infinite;
}

@keyframes liveDotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.player-top-right-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-quality-tag {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.688rem;
    font-weight: 800;
    color: #FFFFFF;
}

.player-fullscreen-icon {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.813rem;
    cursor: pointer;
}

.player-bottom-left-time {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.75);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.688rem;
    font-weight: 800;
    color: #E2E8F0;
    font-family: monospace;
}

/* Guia de Programação EPG na Base (Flex 9) */
.live-epg-schedule-card {
    flex: 9;
    min-height: 0;
    background: #0A0E17;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.epg-schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.epg-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.epg-status-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.epg-header-title-text {
    font-size: clamp(0.85rem, 1.05vw, 1.2rem);
    font-weight: 900;
    color: #10B981;
    letter-spacing: 0.8px;
}

.epg-active-channel-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: clamp(0.75rem, 0.9vw, 1.05rem);
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 14px;
    letter-spacing: 0.5px;
}

.epg-current-program-card {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.epg-now-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.epg-badge-agora {
    background: #EF4444;
    color: #FFFFFF;
    font-size: clamp(0.7rem, 0.85vw, 0.95rem);
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.epg-time-range {
    font-size: clamp(0.8rem, 0.95vw, 1.1rem);
    font-weight: 800;
    color: #CBD5E1;
}

.epg-program-name-headline {
    font-size: clamp(1.05rem, 1.3vw, 1.55rem);
    font-weight: 900;
    color: #FFFFFF;
}

.epg-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.epg-progress-fill {
    height: 100%;
    background: #EF4444;
    border-radius: 3px;
}

/* Lista Completa e Organizada do EPG */
.epg-programs-scroller {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
    margin-top: 6px;
}

.epg-program-roku-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.15s ease;
    min-height: 58px;
}

.epg-program-roku-row.active-program {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.epg-program-roku-row.tv-focused {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: #000000 !important;
    transform: scale(1.02);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.7) !important;
}

.epg-program-roku-row.tv-focused .epg-time-orange-pill {
    background: #000000 !important;
    color: #FBBF24 !important;
    border-color: #000000 !important;
}

.epg-program-roku-row.tv-focused .epg-program-name-bold {
    color: #000000 !important;
}

.epg-program-roku-row.tv-focused .epg-program-synopsis {
    color: #334155 !important;
}

.epg-program-roku-row.tv-focused .epg-row-arrow {
    color: #000000 !important;
}

.epg-time-orange-pill {
    background: rgba(245, 158, 11, 0.16);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 900;
    font-size: clamp(0.75rem, 0.9vw, 1.05rem);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.epg-program-info-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.epg-program-name-bold {
    font-size: clamp(0.9rem, 1.1vw, 1.25rem);
    font-weight: 900;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epg-program-synopsis {
    font-size: clamp(0.75rem, 0.9vw, 1.05rem);
    color: #CBD5E1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.epg-row-arrow {
    font-size: clamp(0.8rem, 1.0vw, 1.15rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
    flex-shrink: 0;
}

.live-tutorial-partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    border-radius: 12px;
}

/* Configurações do Sistema: Perfil de Rede Social do Parceiro (Instagram-like Card) */
.settings-partner-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.settings-partner-avatar-wrapper,
.settings-partner-logo-container,
.settings-partner-logo-box {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    border-radius: 50% !important;
    padding: 2.5px !important;
    background: linear-gradient(135deg, #0095F6, #38BDF8, #E50914) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.settings-partner-avatar-img,
.settings-partner-logo-img {
    width: 66px !important;
    height: 66px !important;
    min-width: 66px !important;
    min-height: 66px !important;
    max-width: 66px !important;
    max-height: 66px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    background: #0F172A;
    box-sizing: border-box !important;
}

.settings-partner-avatar-fallback,
.settings-partner-logo-fallback {
    width: 66px !important;
    height: 66px !important;
    min-width: 66px !important;
    min-height: 66px !important;
    max-width: 66px !important;
    max-height: 66px !important;
    border-radius: 50% !important;
    background: #1E293B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    color: #38BDF8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
}

.settings-partner-profile-col,
.settings-partner-info,
.settings-partner-details,
.settings-partner-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.settings-partner-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.settings-partner-title,
.settings-partner-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.instagram-verified-badge {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
}

.settings-partner-handle {
    font-size: 1rem;
    font-weight: 600;
    color: #CBD5E1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-partner-bio {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-partner-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.settings-partner-code-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(56, 189, 248, 0.14);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.settings-partner-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.settings-partner-exempt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.16);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 800;
    width: fit-content;
}

/* ==========================================================================
   11. TAMANHO DE ÍCONES E TIPOGRAFIA DE ALTO IMPACTO NA SMART TV
   ========================================================================== */
.sidebar-icon svg,
.sidebar-menu-btn svg {
    width: 28px !important;
    height: 28px !important;
}

.hero-actions-row .btn-primary svg,
.hero-actions-row .btn-glass svg,
.details-actions-row svg {
    width: 26px !important;
    height: 26px !important;
}

.top-bar-action-btn svg {
    width: 26px !important;
    height: 26px !important;
}

.live-cat-nav-btn svg {
    width: 28px !important;
    height: 28px !important;
}

.search-pill-icon svg {
    width: 26px !important;
    height: 26px !important;
}

/* ==========================================================================
   12. FILEIRA DAS PLATAFORMAS DE STREAMING (FIDELIDADE EXATA À IMAGEM)
   ========================================================================== */
.hubs-strip-section {
    margin-top: 8px;
    margin-bottom: 18px;
    padding: 0 var(--tv-safe-padding-x);
}

#section-top10 {
    margin-bottom: 12px;
}

.hubs-cards-row {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px;
}

/* ==========================================================================
   13. TELA DE ESCOLHA DE PERFIL (100% FIDELIDADE A profiles_screen.dart)
   ========================================================================== */
#profiles-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: var(--bg-dark, #081120);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profiles-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.profiles-backdrop-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) contrast(1.15);
    opacity: 0;
    transition: none !important;
}

.profiles-backdrop-img.active {
    opacity: 1;
}

.profiles-bg-content-title {
    font-size: 0.813rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    color: rgba(255, 255, 255, 0.50);
    text-transform: uppercase;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 22px;
    min-height: 22px;
    text-shadow: none;
    transition: none !important;
}

.profiles-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.78) 60%, #000000 100%);
}

.profiles-content-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px var(--tv-safe-padding-x);
    box-sizing: border-box;
}

.profiles-brand-header {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.profiles-star {
    color: #FFFFFF;
    text-shadow: none;
}

.profiles-br {
    color: var(--primary-red, #EF4444);
    text-shadow: none;
}

.profiles-play {
    color: #38BDF8;
    font-size: clamp(0.9rem, 1.25vw, 1.35rem);
    font-weight: 800;
    margin-left: 8px;
    letter-spacing: 3px;
}

.profiles-heading {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    margin-bottom: 44px;
    text-transform: uppercase;
    text-shadow: none;
}

.profiles-list-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
    margin-bottom: 52px;
    flex-wrap: wrap;
    max-width: 90vw;
}

.profile-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: none !important;
    transform: none !important;
    position: relative;
}

.profile-avatar-box {
    width: clamp(150px, 11vw, 200px);
    height: clamp(150px, 11vw, 200px);
    border-radius: 28px;
    background: linear-gradient(135deg, #7F1D1D 0%, #450A0A 100%);
    border: 3px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3.2rem, 4.8vw, 5.2rem);
    position: relative;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
}

.profile-name-label {
    margin-top: 16px;
    font-size: clamp(1.05rem, 1.35vw, 1.45rem);
    font-weight: 900;
    color: #E2E8F0;
    letter-spacing: 0.5px;
    transition: none !important;
}

.profile-kids-badge {
    position: absolute;
    bottom: -8px;
    background: #38BDF8;
    color: #000000;
    font-size: clamp(0.75rem, 0.9vw, 0.95rem);
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 10px;
    letter-spacing: 0.8px;
}

.profile-card-item:hover .profile-avatar-box,
.profile-card-item.tv-focused .profile-avatar-box {
    transform: none !important;
    border: 3.5px solid #FFFFFF !important;
    background: #DC2626 !important;
    box-shadow: none !important;
}

.profile-card-item:hover .profile-name-label,
.profile-card-item.tv-focused .profile-name-label {
    color: #FFFFFF !important;
    font-weight: 900 !important;
}

.profile-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.70);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.688rem;
    font-weight: 900;
    gap: 4px;
}

.profile-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #DC2626;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: none !important;
    z-index: 10;
}

.profile-card-quick-edit-btn {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1E293B;
    color: #F8FAFC;
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
    z-index: 6;
    opacity: 0.85;
}

.profile-card-item:hover .profile-card-quick-edit-btn,
.profile-card-item.tv-focused .profile-card-quick-edit-btn {
    opacity: 1;
    transform: none !important;
    background: var(--primary-red, #EF4444) !important;
    border-color: #FFFFFF !important;
    box-shadow: none !important;
}

.profiles-actions-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profiles-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    min-height: 54px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.profiles-action-btn svg {
    width: 22px;
    height: 22px;
}

.profiles-action-btn:hover,
.profiles-action-btn.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    box-shadow: none !important;
    transform: none !important;
}

.profiles-action-btn.btn-logout-profiles {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #F87171;
}

.profiles-action-btn.btn-logout-profiles:hover,
.profiles-action-btn.btn-logout-profiles.tv-focused {
    background: #DC2626 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: none !important;
    transform: none !important;
}

.profiles-brand-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.profiles-brand-logo {
    max-height: 52px;
    max-width: 240px;
    object-fit: contain;
}

/* ==========================================================================
   13.5 MODAL / TELA DE EDIÇÃO E CRIAÇÃO DE PERFIL (profile_edit_screen.dart)
   ========================================================================== */
.profile-edit-overlay-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    background: rgba(2, 5, 16, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 50px;
    box-sizing: border-box;
}

.profile-edit-modal-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(6, 9, 20, 0.99) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    width: 100%;
    max-width: 1120px;
    max-height: 90vh;
    padding: 30px 40px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(239, 68, 68, 0.18);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.profile-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.profile-edit-header-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #FCA5A5;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.profile-edit-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    text-shadow: none;
}

.profile-edit-subtitle {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    margin: 0;
}

.profile-edit-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.profile-edit-close-btn:focus,
.profile-edit-close-btn.tv-focused {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    outline: none;
}

.profile-edit-columns {
    display: grid;
    grid-template-columns: 1.15fr 1.35fr;
    gap: 36px;
    margin-bottom: 26px;
}

@media (max-width: 900px) {
    .profile-edit-columns {
        grid-template-columns: 1fr;
    }
}

.profile-edit-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-edit-field-group {
    display: flex;
    flex-direction: column;
}

.profile-edit-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.813rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.profile-edit-field-label .label-req {
    color: #EF4444;
    margin-left: 4px;
    font-weight: 900;
}

.profile-edit-field-label .label-opt {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.profile-edit-input-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-edit-input-box:focus-within,
.profile-edit-input-box.tv-focused {
    border-color: #EF4444;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.profile-field-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.profile-edit-input-box:focus-within .profile-field-icon-wrap,
.profile-edit-input-box.tv-focused .profile-field-icon-wrap {
    background: rgba(239, 68, 68, 0.25);
    color: #EF4444;
}

.profile-field-icon {
    flex-shrink: 0;
}

.profile-edit-input-raw {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex: 1;
    padding: 10px 0;
    outline: none;
}

.profile-edit-input-raw::placeholder {
    color: rgba(255, 255, 255, 0.28);
    font-weight: 600;
}

#profile-edit-pin-input {
    font-size: 1.125rem;
    letter-spacing: 5px;
    font-weight: 900;
    color: #FCA5A5;
}

.profile-edit-pin-hint {
    font-size: 0.688rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
    display: block;
}

.profile-edit-keyboard-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.688rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.profile-edit-keyboard-badge:focus,
.profile-edit-keyboard-badge.tv-focused {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
    transform: scale(1.04);
}

.profile-btn-pin-keypad {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.28) 0%, rgba(185, 28, 28, 0.35) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.6);
    color: #FFFFFF;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.688rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.profile-btn-pin-keypad:focus,
.profile-btn-pin-keypad.tv-focused {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
    transform: scale(1.05);
}

/* Tipos de Perfil (Família, Kids, Completo) */
.profile-types-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-type-select-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.profile-type-select-card.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--primary-red, #EF4444);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.profile-type-select-card:focus,
.profile-type-select-card.tv-focused {
    border-color: #FFFFFF;
    background: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
    transform: scale(1.02);
}

.prof-type-icon-box {
    font-size: 1.625rem;
    line-height: 1;
}

.prof-type-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prof-type-title {
    font-size: 0.938rem;
    font-weight: 800;
    color: #FFFFFF;
}

.prof-type-desc {
    font-size: 0.688rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.prof-type-check-icon {
    color: var(--primary-red, #EF4444);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.profile-type-select-card.active .prof-type-check-icon {
    opacity: 1;
}

/* Coluna Direita: Galeria de Avatares Netflix */
.profile-avatar-gallery-box {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-avatar-gallery-caption {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 16px 0;
}

.profile-avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .profile-avatar-picker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.prof-avatar-pick {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prof-avatar-pick.selected {
    background: rgba(220, 38, 38, 0.35);
    border-color: #EF4444;
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.45);
}

.prof-avatar-pick:focus,
.prof-avatar-pick.tv-focused {
    border-color: #FFFFFF;
    background: rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
    transform: scale(1.1);
}

.prof-avatar-emoji {
    font-size: 1.875rem;
    line-height: 1;
}

.prof-avatar-label {
    font-size: 0.688rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
}

.prof-avatar-pick.selected .prof-avatar-label,
.prof-avatar-pick.tv-focused .prof-avatar-label {
    color: #FFFFFF;
}

/* Rodapé de Ações de Edição */
.profile-edit-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.btn-profile-save {
    flex: 1.6;
    background: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 0.875rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(229, 9, 20, 0.5);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-profile-save:focus,
.btn-profile-save.tv-focused {
    background: #FFFFFF;
    color: #E50914;
    border-color: #E50914;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.85);
    transform: scale(1.04);
}

.btn-profile-delete {
    flex: 1;
    background: rgba(220, 38, 38, 0.15);
    color: #FCA5A5;
    border: 2px solid rgba(220, 38, 38, 0.45);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 0.813rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-profile-delete:focus,
.btn-profile-delete.tv-focused {
    background: #DC2626;
    color: #FFFFFF;
    border-color: #FFFFFF;
    box-shadow: 0 0 26px rgba(220, 38, 38, 0.8);
    transform: scale(1.04);
}

.btn-profile-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 0.813rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-profile-cancel:focus,
.btn-profile-cancel.tv-focused {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    border-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
}

/* ==========================================================================
   13.6 DIÁLOGO DE TECLADO NUMÉRICO PARA PIN DO PERFIL (profile_edit_screen.dart)
   ========================================================================== */
.tv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 16, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-sizing: border-box;
}

.tv-pin-dialog-card {
    background: #0F172A;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 26px 32px;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tv-pin-dialog-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    letter-spacing: 1px;
}

.tv-pin-dialog-caption {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 16px 0;
}

.tv-pin-dots-row {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.tv-pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}

.tv-pin-dot.filled {
    background: var(--primary-red, #EF4444);
    border-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    transform: scale(1.15);
}

.tv-pin-error-msg {
    font-size: 0.719rem;
    font-weight: 800;
    color: #EF4444;
    margin-bottom: 12px;
    animation: shake 0.3s ease-in-out;
}

.tv-pin-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.pin-key-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    height: 48px;
    font-size: 1.125rem;
    font-weight: 900;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-key-btn:focus,
.pin-key-btn.tv-focused {
    background: #FFFFFF;
    color: #000000;
    border-color: var(--primary-red, #EF4444);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
    transform: scale(1.08);
}

.pin-key-btn.pin-key-fn {
    font-size: 0.688rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
}

.pin-key-btn.pin-key-fn:focus,
.pin-key-btn.pin-key-fn.tv-focused {
    color: #000000;
}

.tv-pin-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 24px;
    cursor: pointer;
}

.tv-pin-close-btn:focus,
.tv-pin-close-btn.tv-focused {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* ==========================================================================
   13.7 DIÁLOGO DE CONFIRMAÇÃO DE EXCLUSÃO (profiles_screen.dart:349-392)
   ========================================================================== */
.tv-confirm-dialog-card {
    background: #0F172A;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px 28px;
    width: 440px;
    max-width: 90vw;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
}

.tv-confirm-dialog-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tv-confirm-dialog-title {
    font-size: 1.063rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.tv-confirm-dialog-desc {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.tv-confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tv-confirm-btn-cancel {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.813rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.tv-confirm-btn-cancel:focus,
.tv-confirm-btn-cancel.tv-focused {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.tv-confirm-btn-danger {
    background: #DC2626;
    border: none;
    color: #FFFFFF;
    font-size: 0.813rem;
    font-weight: 900;
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.tv-confirm-btn-danger:focus,
.tv-confirm-btn-danger.tv-focused {
    background: #EF4444;
    border: 1.5px solid #FFFFFF;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
    transform: scale(1.05);
}

/* ==========================================================================
   14. AJUSTES ESPECÍFICOS DE PROPORÇÃO E NITIDEZ PARA SMART TV 720p / 768p
   (Ex: LG 32LB650BPSA e similares — evita elementos pequenos e sem nitidez)
   ========================================================================== */
@media (max-width: 1366px) or (max-height: 768px) {
    .hero-banner-section {
        min-height: 330px !important;
        max-height: 360px !important;
        padding: 6px var(--tv-safe-padding-x) 12px var(--tv-safe-padding-x) !important;
        margin-bottom: 6px !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .hero-body-row {
        gap: 24px !important;
        padding-bottom: 12px !important;
    }

    .hero-poster-wrapper {
        width: 130px !important;
        height: 195px !important;
        border-radius: 10px !important;
    }

    .hero-title-text {
        font-size: 1.6rem !important;
        margin: 2px 0 6px 0 !important;
    }

    .hero-description-text {
        font-size: 0.813rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        max-width: 620px !important;
        margin-bottom: 12px !important;
    }

    .btn-hero-pill-play,
    .btn-hero-pill-details {
        padding: 8px 20px !important;
        font-size: 0.875rem !important;
    }

    /* Paginação Horizontal do Hero Banner em 720p */
    .hero-slide-dots {
        position: absolute !important;
        right: var(--tv-safe-padding-x, 24px) !important;
        bottom: 12px !important;
        z-index: 25 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    .hero-dot {
        display: inline-block !important;
        width: 7px !important;
        height: 7px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.4) !important;
        flex-shrink: 0 !important;
    }

    .hero-dot.active {
        width: 20px !important;
        background: var(--primary-red, #FF1E1E) !important;
        box-shadow: 0 0 8px rgba(255, 30, 30, 0.8) !important;
    }

    .home-top-header {
        padding: 4px 0 8px 0 !important;
    }

    .home-greeting-title {
        font-size: 1.25rem !important;
    }

    .home-expiry-alert-banner {
        top: 68px !important;
        right: var(--tv-safe-padding-x) !important;
        max-width: 480px !important;
        min-height: 72px !important;
        padding: 12px 18px !important;
        margin: 0 !important;
    }

    .expiry-alert-icon-box {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .expiry-badge-pill {
        font-size: 0.656rem !important;
        padding: 2px 6px !important;
    }

    .expiry-date-label {
        font-size: 0.719rem !important;
    }

    .expiry-message-text {
        font-size: 0.75rem !important;
    }

    .btn-expiry-action {
        font-size: 0.719rem !important;
        padding: 6px 14px !important;
    }

    /* Hubs de Streaming em 720p */
    .hub-card {
        min-width: 145px !important;
        width: 145px !important;
        height: 78px !important;
        border-radius: 10px !important;
    }

    .hub-logo-img {
        max-height: 38px !important;
        max-width: 110px !important;
    }

    /* Cards Pôster VOD & Continue Assistindo em 720p (Proporção 2:3 padrão cinema: 165x248px) */
    .tv-card,
    .tv-poster-card,
    .tv-continue-card {
        min-width: 165px !important;
        width: 165px !important;
        height: 248px !important;
        flex-shrink: 0 !important;
    }

    .poster-media-wrapper {
        width: 100% !important;
        height: 248px !important;
        aspect-ratio: 2 / 3 !important;
        border-radius: 8px !important;
    }

    .poster-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Top 10 Hoje em 720p: Pôster idêntico em tamanho aos outros cards (165x248px) + numeral elegante */
    .tv-top10-card {
        min-width: 213px !important;
        width: 213px !important;
        height: 255px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
    }

    .top10-poster-wrapper {
        margin-left: 48px !important;
        width: 165px !important;
        height: 248px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
    }

    .top10-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .top10-rank-number {
        font-size: 7.5rem !important;
        left: -6px !important;
        bottom: 6px !important;
        line-height: 1 !important;
    }

    /* Canais Ao Vivo em 720p */
    .tv-live-channel-card {
        min-width: 220px !important;
        width: 220px !important;
        height: 125px !important;
    }

    /* Modal de Detalhes / Sinopse em 720p */
    .details-screen-container {
        padding: 12px var(--tv-safe-padding-x) 24px var(--tv-safe-padding-x) !important;
    }

    .details-hero-title {
        font-size: 1.75rem !important;
    }

    .details-synopsis-text {
        font-size: 0.813rem !important;
        max-width: 90% !important;
    }

    /* Canais Ao Vivo em 720p */
    .tv-live-channels-view {
        padding: 10px var(--tv-safe-padding-x) !important;
    }

    .live-categories-col {
        width: 220px !important;
    }

    .live-channels-col {
        width: 300px !important;
    }

    /* Grade VOD em 720p */
    .vod-grid-cards-container {
        gap: 12px !important;
    }

    /* Card de Login em 720p */
    .login-main-card {
        padding: 18px !important;
        border-radius: 18px !important;
        gap: 12px !important;
    }

    .login-brand-text {
        font-size: 1.625rem !important;
    }

    .login-qr-white-card img {
        width: 130px !important;
        height: 130px !important;
    }
}

/* ==========================================================================
   14. MODAL DE EDIÇÃO DE PERFIL & PIN ADULTO (profile_edit_screen.dart)
   ========================================================================== */
.profile-edit-dialog-card {
    background: linear-gradient(145deg, #0d1527 0%, #060a14 100%);
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(220, 38, 38, 0.25);
    border-radius: 24px;
    padding: 32px 38px;
    width: 90%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-sizing: border-box;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile-edit-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding-bottom: 16px;
}

.profile-edit-modal-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.profile-edit-modal-sub {
    font-size: 0.844rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.profile-edit-body-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 32px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.profile-form-label {
    font-size: 0.781rem;
    font-weight: 800;
    color: #94A3B8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-form-help {
    font-size: 0.719rem;
    color: rgba(255, 255, 255, 0.40);
    line-height: 1.4;
}

.profile-type-toggle-row {
    display: flex;
    gap: 12px;
}

.profile-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #E2E8F0;
    font-size: 0.813rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-type-btn.active {
    background: rgba(220, 38, 38, 0.22);
    border-color: #EF4444;
    color: #FFFFFF;
}

.profile-type-btn:hover,
.profile-type-btn.tv-focused {
    transform: scale(1.04);
    border-color: #FFFFFF !important;
    background: #DC2626 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.7);
}

.profile-avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.prof-avatar-pick {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    outline: none;
    padding: 6px;
}

.prof-avatar-emoji {
    font-size: 2rem;
    line-height: 1;
}

.prof-avatar-label {
    font-size: 0.656rem;
    font-weight: 700;
    color: #94A3B8;
    margin-top: 4px;
}

.prof-avatar-pick.selected {
    border-color: #EF4444;
    background: rgba(220, 38, 38, 0.25);
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.5);
}

.prof-avatar-pick:hover,
.prof-avatar-pick.tv-focused {
    transform: scale(1.10);
    border-color: #FFFFFF !important;
    border-width: 2.5px !important;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%) !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.8) !important;
}

.prof-avatar-pick:hover .prof-avatar-label,
.prof-avatar-pick.tv-focused .prof-avatar-label {
    color: #FFFFFF !important;
}

.profile-edit-actions-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 18px;
    margin-top: 6px;
}

.btn-profile-delete-red {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
    font-size: 0.813rem;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-profile-delete-red:hover,
.btn-profile-delete-red.tv-focused {
    background: #DC2626 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.8);
    transform: scale(1.05);
}

/* ==========================================================================
   ÍCONE DO SINO DE NOTIFICAÇÃO (HOME TOP HEADER - 100% home_tv_view.dart:2408)
   ========================================================================== */
.home-notify-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.home-notify-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.home-notify-btn:hover,
.home-notify-btn.tv-focused {
    background: #FF1E1E !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 30, 30, 0.75) !important;
}

.home-notify-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #E50914;
    color: #FFFFFF;
    font-size: 0.625rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #070B14;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   CENTRAL DE NOTIFICAÇÕES (100% notifications_screen.dart DA PASTA TIZEN)
   ========================================================================== */
.notifications-container {
    width: 100%;
    height: 100%;
    background: #081120;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 36px 14px 36px;
    background: #0B172A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.notifications-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notifications-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-header-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-title-text {
    font-size: 1.188rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin: 0;
}

.notif-unread-pill {
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.688rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.4px;
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.719rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notif-action-btn svg {
    fill: currentColor;
}

.notif-action-btn:hover,
.notif-action-btn.tv-focused {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.4) !important;
}

.notif-action-danger {
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.notif-action-danger:hover,
.notif-action-danger.tv-focused {
    background: #EF4444 !important;
    color: #FFFFFF !important;
    border-color: #EF4444 !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.6) !important;
}

.notifications-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 24px 32px 64px 32px;
}

.notifications-wrapper {
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notifications-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.notif-empty-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.notif-empty-title {
    font-size: 1.063rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.notif-empty-sub {
    font-size: 0.844rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.notif-card {
    background: rgba(15, 28, 48, 0.7);
    border: 1.2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.16s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.notif-card.unread {
    border-left: 4px solid #EF4444;
    background: rgba(239, 68, 68, 0.06);
}

.notif-card:hover,
.notif-card.tv-focused {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #FFFFFF !important;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7) !important;
}

.notif-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
}

.notif-card-title {
    font-size: 0.938rem;
    font-weight: 800;
    color: #FFFFFF;
}

.notif-card-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.notif-card-msg {
    font-size: 0.844rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin: 0;
}

.notif-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-btn-pay-pix {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #00E676;
    color: #050B18;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notif-btn-pay-pix:hover,
.notif-btn-pay-pix.tv-focused {
    background: #69F0AE;
    transform: scale(1.05);
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.8);
}

.notif-btn-del-single {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
}

.notif-btn-del-single:hover,
.notif-btn-del-single.tv-focused {
    color: #EF4444;
}

/* Modal PIX via Notificação (notifications_screen.dart:52-179) */
.notif-pix-card {
    background: #0F1C30;
    border: 1.5px solid rgba(0, 230, 118, 0.4);
    border-radius: 20px;
    width: 440px;
    max-width: 90vw;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
}

.notif-pix-header {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.notif-pix-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2DD4BF;
    font-size: 1.25rem;
}

.notif-pix-title {
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
}

.notif-pix-receiver {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.notif-pix-qr-container {
    display: flex;
    justify-content: center;
    padding: 14px;
    background: #FFFFFF;
    border-radius: 16px;
    margin: 4px auto;
    width: fit-content;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.25);
}

.notif-pix-qr-image {
    width: 170px;
    height: 170px;
    display: block;
}

.notif-pix-hint {
    text-align: center;
    font-size: 0.781rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
    margin: 0;
}

.notif-pix-key-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
}

.notif-pix-key-text {
    font-size: 0.813rem;
    font-weight: 800;
    color: #2DD4BF;
    word-break: break-all;
}

.btn-copy-pix-icon {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.notif-pix-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

/* ==========================================================================
   RESPONSIVIDADE: CONFIGURAÇÕES & NOTIFICAÇÕES PARA TODAS AS RESOLUÇÕES
   ========================================================================== */
@media (max-width: 1200px) {
    .settings-left-col {
        width: 270px;
    }

    .settings-right-scroll-container {
        padding: 18px 24px 48px 24px;
    }

    .plans-selector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-chips-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 860px) {
    .settings-layout-row {
        flex-direction: column !important;
    }

    .settings-left-col {
        width: 100% !important;
        max-height: 160px;
        border-right: none !important;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
        padding: 8px 0;
    }

    .settings-categories-list {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 4px 10px;
        gap: 8px;
    }

    .settings-category-tile {
        min-width: 155px;
        flex-shrink: 0;
    }

    .settings-right-scroll-container {
        padding: 14px 16px 40px 16px;
    }

    .settings-device-main-box {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 16px !important;
    }

    .settings-row-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 16px !important;
    }

    .device-access-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .device-actions-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 20px;
    }
}

@media (max-width: 520px) {
    .plans-selector-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-chips-wrap {
        grid-template-columns: 1fr !important;
    }

    .roku-settings-header {
        padding: 12px 16px;
    }

    .settings-title-text {
        font-size: 1rem;
    }

    .active-cat-title {
        font-size: 0.875rem;
    }
}

/* =========================================================================
   14. SKELETON SCREEN (NATIVO ESTÁTICO / ULTRA-LEVE - IMERSIVO 0ms)
   ========================================================================= */
.app-skeleton-view {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #02050D !important;
    z-index: 99 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.22s ease-out;
    overflow: hidden;
}

.app-skeleton-view.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -10 !important;
}

.app-skeleton-view.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
}

.skeleton-shimmer-bar,
.skeleton-cat-item,
.skeleton-chan-item,
.skeleton-card,
.skeleton-poster-card,
.skeleton-player-box,
.skeleton-epg-box,
.skeleton-hub-pill,
.skeleton-vod-title,
.skeleton-vod-pill {
    background: linear-gradient(90deg, #0e1422 0%, #1c273e 50%, #0e1422 100%) !important;
    background-size: 200% 100% !important;
    animation: tvShimmerMove 1.5s infinite linear !important;
    border-radius: 8px;
}

@keyframes tvShimmerMove {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* --- Início Skeleton --- */
#inicio-skeleton {
    padding: 16px 28px;
    gap: 16px;
    overflow: hidden;
}

.skeleton-hero-banner {
    height: 290px;
    width: 100%;
    background: #0c111c;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    flex-shrink: 0;
}

.skeleton-hero-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-title-bar {
    width: 320px;
    height: 34px;
}

.skeleton-meta-bar {
    width: 200px;
    height: 16px;
    opacity: 0.7;
}

.skeleton-desc-bar {
    width: 480px;
    height: 14px;
    opacity: 0.5;
}

.skeleton-hero-actions-row {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.skeleton-btn-pill {
    width: 150px;
    height: 42px;
    background: rgba(239, 68, 68, 0.45) !important;
    border-radius: 10px;
}

.skeleton-btn-pill-sec {
    width: 130px;
    background: rgba(255, 255, 255, 0.12) !important;
}

.skeleton-hubs-track {
    display: flex;
    gap: 12px;
    margin: 4px 0;
    overflow: hidden;
    flex-shrink: 0;
}

.skeleton-hub-pill {
    width: 125px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}

.skeleton-row-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.skeleton-section-header {
    width: 180px;
    height: 20px;
    border-radius: 4px;
}

.skeleton-cards-track {
    display: flex;
    gap: 14px;
    overflow: hidden;
}

.skeleton-card {
    min-width: 135px;
    width: 135px;
    height: 200px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.skeleton-card-top10 {
    display: flex;
    align-items: flex-end;
    padding: 8px 12px;
}

.skeleton-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}

/* --- Canais Skeleton --- */
#canais-skeleton {
    width: calc(100% - 200px) !important;
    left: 200px !important;
    height: 100% !important;
    padding: 0;
    z-index: 50 !important;
}

.skeleton-canais-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 12px;
    padding: 10px 14px;
    box-sizing: border-box;
}

.skeleton-col-channels {
    width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.skeleton-chan-item {
    height: 48px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    box-sizing: border-box;
}

.skeleton-chan-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1) !important;
}

.skeleton-chan-info {
    flex: 1;
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08) !important;
}

.skeleton-col-player-epg {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-player-box {
    width: 100%;
    height: 52%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-player-badge {
    width: 70px;
    height: 24px;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.45) !important;
}

.skeleton-epg-box {
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.skeleton-epg-line {
    height: 16px;
}

/* --- VOD Skeleton (Filmes, Séries, Kids) - Scoped Strictly to Content Area --- */
.vod-grid-col {
    position: relative !important;
}

#vod-skeleton,
.vod-content-skeleton {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10px 14px !important;
    background: #081120 !important;
    z-index: 50 !important;
    box-sizing: border-box !important;
}

.skeleton-vod-main-col {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.skeleton-vod-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.skeleton-vod-title {
    width: 150px;
    height: 28px;
    border-radius: 6px;
}

.skeleton-vod-pill {
    width: 140px;
    height: 32px;
    border-radius: 16px;
}

.skeleton-vod-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
    overflow: hidden;
}

.skeleton-poster-card {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

/* Kids Mode Skeleton */
#vod-skeleton.is-kids .skeleton-vod-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
}

#vod-skeleton.is-kids .skeleton-poster-card {
    border-radius: 16px !important;
}

/* ==========================================================================
   MODAL DE CONFIRMAÇÃO DE SAÍDA / LOGOUT (TELA CHEIA IMERSIVA 100VW x 100VH)
   ========================================================================== */
#exit-confirm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background: rgba(3, 5, 10, 0.96) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

#exit-confirm-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(3, 4, 7, 0.92) !important;
    z-index: 99999 !important;
}

#exit-confirm-modal.hidden {
    display: none !important;
}

#exit-confirm-modal .exit-modal-fullscreen-card {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background: radial-gradient(circle at 50% 50%, rgba(22, 28, 44, 0.98) 0%, rgba(6, 8, 14, 0.99) 70%, #030407 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 40px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

#exit-confirm-modal .exit-modal-logo-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 28px !important;
}

#exit-confirm-modal .exit-modal-logo-wrap img {
    max-height: 72px !important;
    max-width: 240px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

#exit-confirm-modal #exit-modal-title {
    font-size: 2.375rem !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 16px 0 !important;
    text-shadow: none;
    text-align: center !important;
}

#exit-confirm-modal #exit-modal-desc {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 0 44px 0 !important;
    text-align: center !important;
    max-width: 640px !important;
    line-height: 1.5 !important;
}

#exit-confirm-modal .exit-modal-btn-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 32px !important;
    justify-content: center !important;
    align-items: center !important;
}

#exit-confirm-modal .exit-modal-btn {
    min-width: 260px !important;
    height: 64px !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
    outline: none !important;
    border: 2px solid transparent !important;
    text-transform: uppercase !important;
}

#btn-exit-cancel {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
}

#btn-exit-cancel.has-focus,
#btn-exit-cancel.tv-focused,
#btn-exit-cancel:focus {
    background: #FFFFFF !important;
    color: #0A0D14 !important;
    border-color: #FFFFFF !important;
    transform: scale(1.06) !important;
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.6), 0 8px 24px rgba(0, 0, 0, 0.8) !important;
}

#btn-exit-confirm {
    background: #E50914 !important;
    color: #FFFFFF !important;
    border: 1.5px solid #FF3B30 !important;
}

#btn-exit-confirm.has-focus,
#btn-exit-confirm.tv-focused,
#btn-exit-confirm:focus {
    background: #FF1E1E !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    transform: scale(1.06) !important;
    box-shadow: 0 0 32px rgba(255, 30, 30, 0.8), 0 8px 24px rgba(0, 0, 0, 0.8) !important;
}

/* ==========================================================================
   TELA DE PESQUISA (SEARCH SCREEN) - PROJEÇÃO GLOBOPLAY 10-FOOT UI
   ========================================================================== */
#search-screen {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #030407;
}

#search-screen.hidden {
    display: none !important;
}

#search-input-field {
    height: 64px !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 0 24px !important;
    color: #FFFFFF !important;
    outline: none !important;
}

#search-input-field.tv-focused,
#search-input-field:focus {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 4px solid #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
}

#search-results-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    padding-bottom: 40px !important;
}

/* ==========================================================================
   MODAL DE RENOVAÇÃO DE PLANOS VIA PIX (100% v_rokuos PixRenewDialog)
   ========================================================================== */
#pix-renew-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.pix-renew-dialog-container {
    width: 1460px;
    max-width: 95vw;
    max-height: 92vh;
    background: #0A0F1E;
    border-radius: 24px;
    border: 1.5px solid rgba(220, 38, 38, 0.35);
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.25), 0 24px 60px rgba(0, 0, 0, 0.95);
    padding: 30px 45px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pix-renew-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.pix-renew-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #EF4444;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pix-renew-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pix-renew-close-btn:hover,
.pix-renew-close-btn.tv-focused {
    background: #EF4444 !important;
    border-color: #FFFFFF !important;
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.8) !important;
}

.pix-renew-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 4px 0 6px 0;
    letter-spacing: -0.5px;
}

.pix-renew-subtitle {
    font-size: 1.15rem;
    color: #94A3B8;
    margin: 0 0 24px 0;
}

/* ETAPA 1: Grid de Cards de Planos */
.pix-renew-cards-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.pix-plan-card {
    flex: 1;
    max-width: 410px;
    background: #0B1220;
    border-radius: 18px;
    border: 1.5px solid rgba(30, 45, 72, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pix-plan-card.is-popular {
    border-color: rgba(245, 158, 11, 0.6);
}

.pix-plan-card.tv-focused,
.pix-plan-card:hover {
    transform: scale(1.04) translateY(-4px);
    border-color: #EF4444 !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.65), 0 12px 32px rgba(0, 0, 0, 0.9) !important;
}

.pix-plan-ribbon {
    background: #F59E0B;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: center;
    padding: 6px 0;
    letter-spacing: 1px;
}

.pix-plan-card-header {
    background: #DC2626;
    color: #FFFFFF;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pix-plan-card-header.header-alt {
    background: #1E2D48;
}

.pix-plan-header-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.pix-plan-header-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #DC2626;
    font-size: 1.15rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-plan-body {
    padding: 24px 22px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pix-plan-validity {
    font-size: 1.2rem;
    font-weight: 800;
    color: #38BDF8;
    margin-bottom: 10px;
}

.pix-plan-description {
    font-size: 1.05rem;
    color: #CBD5E1;
    line-height: 1.45;
    min-height: 72px;
    margin-bottom: 20px;
}

.pix-plan-price-box {
    text-align: center;
    margin: auto 0 20px 0;
}

.pix-plan-price-val {
    font-size: 2.8rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
}

.pix-plan-price-sub {
    font-size: 0.95rem;
    color: #94A3B8;
    margin-top: 6px;
}

.btn-select-plan {
    width: 100%;
    padding: 14px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pix-plan-card.tv-focused .btn-select-plan {
    background: #EF4444 !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.8) !important;
}

/* ETAPA 2: Checkout PIX */
.pix-checkout-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 20px 0;
}

.pix-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #030712;
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.pix-qr-img {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 8px;
    box-sizing: border-box;
}

.pix-instant-notice {
    color: #00E676;
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 14px;
}

.pix-checkout-details {
    display: flex;
    flex-direction: column;
    max-width: 580px;
    gap: 12px;
}

.pix-plan-name-label {
    font-size: 1.5rem;
    font-weight: 900;
    color: #38BDF8;
    text-transform: uppercase;
}

.pix-plan-price-large {
    font-size: 3.2rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
}

.pix-receiver-info,
.pix-key-info {
    font-size: 1.15rem;
    color: #94A3B8;
}

.pix-receiver-info strong {
    color: #FFFFFF;
}

.pix-key-info code {
    color: #FCD34D;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 1.05rem;
}

.pix-copia-cola-box {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.pix-copia-cola-text {
    flex: 1;
    background: #060A14;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #CBD5E1;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.btn-pix-copy {
    padding: 10px 18px;
    border-radius: 10px;
    background: #1E2D48;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.btn-pix-copy.tv-focused {
    background: #38BDF8 !important;
    color: #000000 !important;
}

.pix-checkout-actions {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.btn-pix-confirm {
    flex: 2;
    padding: 15px 20px;
    border-radius: 12px;
    background: #00E676;
    border: 2px solid #00E676;
    color: #050B18;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}

.btn-pix-confirm.tv-focused {
    background: #FFFFFF !important;
    border-color: #00E676 !important;
    transform: scale(1.04);
}

.btn-pix-back {
    flex: 1;
    padding: 15px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.btn-pix-back.tv-focused {
    background: #EF4444 !important;
    border-color: #FFFFFF !important;
}

/* ETAPA 3: WhatsApp Receipt */
.pix-wa-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.pix-wa-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.15);
    border: 2px solid #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pix-wa-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.pix-wa-desc {
    font-size: 1.2rem;
    color: #94A3B8;
    margin-bottom: 24px;
}

.pix-wa-number-badge {
    background: rgba(37, 211, 102, 0.12);
    border: 1.5px solid #25D366;
    border-radius: 30px;
    padding: 10px 26px;
    font-size: 1.25rem;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.pix-wa-number-badge strong {
    color: #25D366;
    margin-left: 8px;
}

.btn-pix-finish {
    padding: 16px 40px;
    border-radius: 14px;
    background: #EF4444;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.6);
}

.btn-pix-finish.tv-focused {
    background: #FFFFFF !important;
    color: #EF4444 !important;
    transform: scale(1.05);
}

/* ==========================================================================
   OTIMIZAÇÃO DE NAVEGAÇÃO INSTANTÂNEA PARA SMART TV (SEM ENGASGOS / ZERO LAG)
   ========================================================================== */
.tv-card, .tv-poster-card, .tv-top10-card, .hub-card, .live-channel-card, .tv-focusable {
    transition: none !important;
}

.tv-card:hover, .tv-card.tv-focused,
.tv-top10-card:hover, .tv-top10-card.tv-focused,
.hub-card:hover, .hub-card.tv-focused,
.live-channel-card:hover, .live-channel-card.tv-focused,
.btn-expiry-action:hover, .btn-expiry-action.tv-focused {
    transition: none !important;
}

/* ==========================================================================
   ESTILOS ETAPA 3 MODAL WHATSAPP COMPROVANTE (PADRÃO V_ROKUOS)
   ========================================================================== */
.pix-wa-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.pix-wa-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pix-wa-content-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px 30px;
    box-sizing: border-box;
    width: 100%;
}

.pix-wa-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.pix-wa-qr-img {
    width: 220px;
    height: 220px;
    display: block;
    border-radius: 6px;
}

.pix-wa-qr-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0F172A;
    text-align: center;
}

.pix-wa-info-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    max-width: 440px;
}

.pix-wa-preview-box {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pix-wa-preview-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #25D366;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pix-wa-preview-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    font-style: italic;
}

/* ==========================================================================
   ACELERAÇÃO DE HARDWARE E ULTRA-PERFORMANCE NATIVA (TIZEN / SMART TV 60FPS)
   ========================================================================== */
.content-row-section {
    contain: style;
}

.horizontal-cards-scroller {
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 0, 0);
    scroll-behavior: auto !important;
}

.tv-card, .tv-poster-card, .tv-top10-card, .hub-card, .live-channel-card {
    contain: layout paint;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.poster-media-wrapper, .poster-img {
    contain: paint;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.tv-card.tv-focused {
    transform: translate3d(0, 0, 0) scale(1.05) !important;
    z-index: 10 !important;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.5) !important;
    transition: none !important;
    -webkit-transition: none !important;
}

/* ==========================================================================
   NAVEGAÇÃO INSTANTÂNEA ULTRA-RÁPIDA (0ms TRANSITION / ZERO DELAY NO FOCO)
   ========================================================================== */
.tv-card, 
.tv-poster-card, 
.tv-top10-card, 
.hub-card, 
.tv-live-channel-card, 
.tv-continue-card, 
.poster-media-wrapper, 
.top10-poster-wrapper, 
.hub-logo-img,
.channel-vod-art-bg,
.channel-vod-bottom-half,
.channel-vod-logo-img,
.media-card,
.vod-card,
.live-channel-list-item,
.kids-media-wrapper,
.tv-focusable {
    transition: none !important;
    -webkit-transition: none !important;
    animation-duration: 0s !important;
}

.tv-card:hover, .tv-card.tv-focused, .tv-card:focus,
.tv-poster-card:hover, .tv-poster-card.tv-focused, .tv-poster-card:focus,
.tv-top10-card:hover, .tv-top10-card.tv-focused, .tv-top10-card:focus,
.hub-card:hover, .hub-card.tv-focused, .hub-card:focus,
.tv-live-channel-card:hover, .tv-live-channel-card.tv-focused, .tv-live-channel-card:focus,
.tv-continue-card:hover, .tv-continue-card.tv-focused, .tv-continue-card:focus,
.poster-media-wrapper:hover, .tv-poster-card.tv-focused .poster-media-wrapper,
.top10-poster-wrapper:hover, .tv-top10-card.tv-focused .top10-poster-wrapper,
.hub-card.tv-focused .hub-logo-img,
.tv-live-channel-card.tv-focused .channel-vod-art-bg,
.live-channel-list-item:focus, .live-channel-list-item.tv-focused,
.kids-media-wrapper:hover, .kids-card.tv-focused .kids-media-wrapper,
.tv-focusable:focus, .tv-focusable.tv-focused {
    transition: none !important;
    -webkit-transition: none !important;
    animation-duration: 0s !important;
}

/* =========================================================================
   MODO DESEMPENHO MÁXIMO (SMART TV 60 FPS ULTRA PERFORMANCE)
   ========================================================================= */

/* 1. Componente de Configuração em Sistema & Aparelho */
.settings-performance-mode-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.perf-mode-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.perf-mode-icon-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.perf-mode-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.16);
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.perf-mode-texts {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.perf-mode-title {
    font-size: 0.938rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.6px;
}

.perf-mode-subtitle {
    font-size: 0.813rem;
    color: #94A3B8;
    line-height: 1.35;
}

.perf-toggle-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #94A3B8;
    transition: background-color 0.2s ease;
}

#btn-toggle-max-performance {
    min-width: 10.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
}

#btn-toggle-max-performance.active {
    border-color: #10B981 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10B981 !important;
}

#btn-toggle-max-performance.active .perf-toggle-dot {
    background: #10B981 !important;
}

/* 2. Regras Globais com Modo Desempenho Ativado (ULTRARRÁPIDO 60 FPS) */
html.max-performance-mode,
body.max-performance-mode {
    --tv-focus-scale: 1 !important;
    --focus-transition: none !important;
    scroll-behavior: auto !important;
}

html.max-performance-mode *,
html.max-performance-mode *::before,
html.max-performance-mode *::after,
body.max-performance-mode *,
body.max-performance-mode *::before,
body.max-performance-mode *::after {
    transition: none !important;
    -webkit-transition: none !important;
    animation: none !important;
    -webkit-animation: none !important;
    animation-duration: 0s !important;
    -webkit-animation-duration: 0s !important;
    animation-delay: 0s !important;
    -webkit-animation-delay: 0s !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    scroll-behavior: auto !important;
}

/* Desativa filtros pesados de desfoque (blur) e glows */
html.max-performance-mode [style*="blur"],
body.max-performance-mode [style*="blur"],
html.max-performance-mode .profiles-ambient-bg,
body.max-performance-mode .profiles-ambient-bg,
html.max-performance-mode .splash-ambient-glow,
body.max-performance-mode .splash-ambient-glow,
html.max-performance-mode .hero-banner-ambient,
body.max-performance-mode .hero-banner-ambient {
    display: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Modais, menus e gavetas com cores sólidas estáveis para evitar repaints */
html.max-performance-mode .player-audio-subs-card,
html.max-performance-mode .player-audio-subs-modal,
html.max-performance-mode .netflix-player-toast,
html.max-performance-mode .exit-modal-card,
html.max-performance-mode .details-dialog-card,
html.max-performance-mode .profile-edit-dialog-card,
html.max-performance-mode .roku-kb-wrapper,
html.max-performance-mode .splash-offline-card,
html.max-performance-mode .mac-activation-dialog-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    background-color: rgba(8, 17, 32, 0.98) !important;
}

/* Foco ultrarrápido: Zero transform scale, apenas outline limpo de alto contraste */
html.max-performance-mode .tv-focusable,
html.max-performance-mode .tv-card,
html.max-performance-mode .tv-poster-card,
html.max-performance-mode .tv-continue-card,
html.max-performance-mode .tv-top10-card,
html.max-performance-mode .hub-card,
html.max-performance-mode .tv-live-channel-card,
html.max-performance-mode .hero-action-btn,
html.max-performance-mode .live-channel-list-item {
    transition: none !important;
    -webkit-transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto !important;
}

html.max-performance-mode .tv-focusable.tv-focused,
html.max-performance-mode .tv-focusable:focus,
html.max-performance-mode .tv-focusable:focus-visible,
html.max-performance-mode .tv-card.tv-focused,
html.max-performance-mode .tv-card:hover,
html.max-performance-mode .tv-poster-card.tv-focused,
html.max-performance-mode .tv-continue-card.tv-focused,
html.max-performance-mode .tv-top10-card.tv-focused,
html.max-performance-mode .hub-card.tv-focused,
html.max-performance-mode .tv-live-channel-card.tv-focused {
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    -webkit-transition: none !important;
    box-shadow: none !important;
    outline: 4px solid #FFFFFF !important;
    outline-offset: 2px !important;
    z-index: 20 !important;
}

html.max-performance-mode .tv-poster-card.tv-focused .poster-media-wrapper,
html.max-performance-mode .tv-continue-card.tv-focused .poster-media-wrapper,
html.max-performance-mode .tv-continue-card.tv-focused .continue-media-wrapper,
html.max-performance-mode .tv-top10-card.tv-focused .top10-poster-wrapper {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
    outline: 4px solid #FFFFFF !important;
    border: 3px solid #E50914 !important;
}

html.max-performance-mode .tv-live-channel-card.tv-focused .live-card-body {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
    border: 4px solid #FFFFFF !important;
}

html.max-performance-mode .poster-shimmer-placeholder,
html.max-performance-mode .skeleton-shimmer-bar,
html.max-performance-mode .skeleton-cards-track {
    animation: none !important;
    -webkit-animation: none !important;
    background: #1E293B !important;
}


/**
 * StarBr Play — Player de Vídeo com Layout Netflix & Controles IPTV
 * Reprodução cinematográfica com alta fidelidade visual da interface oficial Netflix.
 * Otimizado para Smart TVs (LG webOS, Samsung Tizen), Android TV e Desktop/Web.
 */

#player-screen-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background: #000000;
    z-index: 99999;
    contain: strict;
    transform: translateZ(0);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    overflow: hidden;
}

/* Player Container Cinematográfico (Preto Absoluto #000000 Estilo Netflix) */
#player-screen-container {
    background: #000000 !important;
    background-color: #000000 !important;
}

/* =========================================================================
   DECODIFICADOR NATIVO SAMSUNG TIZEN (AVPLAY HARDWARE UNDERLAY)
   Permite que o vídeo decodificado por hardware (VPU Samsung) seja exibido
   através da camada transparente da webview sem tela preta.
   ========================================================================= */
html.avplay-active,
body.avplay-active {
    background: transparent !important;
    background-color: transparent !important;
}

body.avplay-active .app-screen,
body.avplay-active #home-screen,
body.avplay-active .home-backdrop-stage,
body.avplay-active .home-main-area,
body.avplay-active #details-modal,
body.avplay-active .details-modal-fullscreen,
body.player-fullscreen-active .app-screen,
body.player-fullscreen-active #home-screen,
body.player-fullscreen-active .home-backdrop-stage,
body.player-fullscreen-active .home-main-area,
body.player-fullscreen-active #details-modal,
body.player-fullscreen-active .details-modal-fullscreen {
    visibility: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
}

#player-screen-container.avplay-active {
    background: transparent !important;
    background-color: transparent !important;
}

#player-screen-container.avplay-active #main-video-player {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Objeto Nativo Samsung AVPlay */
#av-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

#av-player.hidden {
    display: none !important;
}

#player-screen-container.hidden {
    display: none !important;
}

#main-video-player {
    width: 100%;
    height: 100%;
    object-position: center center;
    background: #000000;
}

/* Aspect Ratios Profissionais de IPTV & Cinema */
.aspect-fit {
    object-fit: contain !important;
}

.aspect-fill {
    object-fit: fill !important;
}

.aspect-16-9 {
    object-fit: contain;
    aspect-ratio: 16/9;
}

.aspect-4-3 {
    object-fit: contain;
    aspect-ratio: 4/3;
}

.aspect-zoom {
    object-fit: cover !important;
}

/* =========================================================================
   OVERLAY OSD HUD NETFLIX (Gradiente Cinematográfico Autêntico)
   ========================================================================= */
.netflix-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3.5vw, 44px) clamp(32px, 5vw, 64px);
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.45) 18%,
            rgba(0, 0, 0, 0) 38%,
            rgba(0, 0, 0, 0) 62%,
            rgba(0, 0, 0, 0.45) 82%,
            rgba(0, 0, 0, 0.94) 100%);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    z-index: 50;
}

.netflix-hud-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.netflix-hud-overlay * {
    pointer-events: auto;
}

/* =========================================================================
   1. TOP BAR NETFLIX (Título, Subtítulo, Metadados e Badges)
   ========================================================================= */
.netflix-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-bottom: auto;
    z-index: 100;
}

.netflix-back-btn {
    width: 56px;
    height: 56px;
    background: rgba(20, 20, 24, 0.88) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    transition: transform 0.15s ease;
}

.netflix-back-btn svg {
    width: 28px;
    height: 28px;
}

.netflix-title-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    margin-left: 10px;
}

.netflix-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.netflix-title-text {
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 900;
    letter-spacing: -0.3px;
    color: #FFFFFF;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    margin: 0;
}

.netflix-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E50914;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 900;
    padding: 5px 14px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
}

.netflix-live-dot {
    font-size: 0.75rem;
    animation: netflix-pulse 1.2s infinite ease-in-out;
}

@keyframes netflix-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.8);
    }
}

.netflix-subtitle-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.netflix-subtitle-text {
    font-size: 1.063rem;
    font-weight: 700;
    color: #CCCCCC;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.netflix-specs-badges {
    display: none !important;
}

.netflix-spec-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #E6E6E6;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.netflix-top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Botões Circulares Padrão Netflix */
.netflix-circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(24, 24, 28, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.netflix-circle-btn svg {
    width: 26px;
    height: 26px;
}

.netflix-circle-btn:hover,
.netflix-circle-btn.tv-focused,
.netflix-circle-btn:focus {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: var(--focus-border, #FFFFFF) !important;
    color: #FFFFFF !important;
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.9)), 0 0 6px #FFFFFF;
    outline: none;
}

.netflix-pill-btn {
    padding: 10px 20px;
    border-radius: 22px;
    background: rgba(24, 24, 28, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 0.938rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.netflix-pill-btn:hover,
.netflix-pill-btn.tv-focused,
.netflix-pill-btn:focus {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: var(--focus-border, #FFFFFF) !important;
    transform: scale(1.1);
    box-shadow: 0 0 18px var(--focus-glow, rgba(255, 30, 30, 0.85));
    outline: none;
}

.netflix-close-btn {
    background: rgba(40, 10, 10, 0.7) !important;
    border-color: rgba(229, 9, 20, 0.4) !important;
}

.netflix-close-btn:hover,
.netflix-close-btn.tv-focused,
.netflix-close-btn:focus {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: var(--focus-border, #FFFFFF) !important;
}

/* =========================================================================
   2. MIDDLE CONTROLS HERO NETFLIX (Play/Pause, Rewind 10s, Forward 10s)
   ========================================================================= */
.netflix-middle-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3.5vw, 44px);
    margin: auto 0;
    z-index: 80;
}

.netflix-middle-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(20, 20, 24, 0.88);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.netflix-middle-btn svg {
    width: 32px;
    height: 32px;
}

.netflix-middle-btn:hover,
.netflix-middle-btn.tv-focused,
.netflix-middle-btn:focus {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: var(--focus-border, #FFFFFF) !important;
    transform: scale(1.18);
    box-shadow: 0 0 22px var(--focus-glow, rgba(255, 30, 30, 0.9)), 0 0 6px #FFFFFF;
    outline: none;
}

/* Botão Central Hero Play / Pause da Netflix */
.netflix-hero-play-btn,
.player-hud-hero-play {
    width: clamp(86px, 8.5vw, 106px);
    height: clamp(86px, 8.5vw, 106px);
    border-radius: 50%;
    background: rgba(18, 18, 22, 0.92);
    border: 3px solid rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
    transition: transform 0.15s ease;
}

.netflix-hero-play-btn svg,
.player-hud-hero-play svg {
    width: 44px;
    height: 44px;
}

.netflix-hero-play-btn:hover,
.netflix-hero-play-btn.tv-focused,
.netflix-hero-play-btn:focus,
.player-hud-hero-play:hover,
.player-hud-hero-play.tv-focused,
.player-hud-hero-play:focus {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: var(--focus-border, #FFFFFF) !important;
    transform: scale(1.18);
    box-shadow: 0 0 32px var(--focus-glow, rgba(255, 30, 30, 0.95)), 0 0 10px #FFFFFF;
    outline: none;
}

/* =========================================================================
   3. BOTTOM BAR NETFLIX (Scrubber Vermelho, Tempo Restante e Controles IPTV)
   ========================================================================= */
.netflix-bottom-bar,
.player-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: auto;
    z-index: 100;
}

/* Scrubber Row com tempo decorrido e tempo restante negativo (-01:23:45) */
.netflix-scrubber-row {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.netflix-scrubber-row:hover,
.netflix-scrubber-row.tv-focused,
.netflix-scrubber-row:focus {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.netflix-time-label {
    font-size: 1.125rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'Roboto Mono', monospace, sans-serif;
    letter-spacing: 0.6px;
    min-width: 80px;
}

.netflix-time-remaining {
    text-align: right;
    color: #CCCCCC;
}

.netflix-progress-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: height 0.15s ease;
}

.netflix-scrubber-row:hover .netflix-progress-track,
.netflix-scrubber-row.tv-focused .netflix-progress-track {
    height: 12px;
}

.netflix-progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    width: 0%;
}

.netflix-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #E50914;
    border-radius: 4px;
    width: 0%;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.85);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Bolinha (Thumb) do Scrubber Netflix */
.netflix-scrubber-thumb {
    width: 18px;
    height: 18px;
    background: #E50914;
    border: 2.5px solid #FFFFFF;
    border-radius: 50%;
    transform: scale(0);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 8px rgba(229, 9, 20, 0.9);
    transition: transform 0.15s ease;
    margin-right: -9px;
}

.netflix-scrubber-row:hover .netflix-scrubber-thumb,
.netflix-scrubber-row.tv-focused .netflix-scrubber-thumb {
    transform: scale(1);
}

/* Linha de Controles Inferiores Netflix + IPTV */
.netflix-bottom-controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    gap: 14px;
    width: 100%;
}

.netflix-controls-group-left {
    display: none !important;
}

.netflix-volume-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 26px;
    background: rgba(24, 24, 28, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.netflix-volume-box svg {
    width: 22px;
    height: 22px;
}

.netflix-volume-box:hover,
.netflix-volume-box.tv-focused,
.netflix-volume-box:focus {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: var(--focus-border, #FFFFFF) !important;
    transform: scale(1.08);
    box-shadow: 0 0 18px var(--focus-glow, rgba(255, 30, 30, 0.85));
    outline: none;
}

.netflix-volume-slider-track {
    width: 84px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.netflix-volume-slider-fill {
    height: 100%;
    background: var(--primary-red, #FF1E1E);
    border-radius: 3px;
}

.netflix-volume-box:hover .netflix-volume-slider-fill,
.netflix-volume-box.tv-focused .netflix-volume-slider-fill {
    background: #FFFFFF;
}

.netflix-controls-center-hint {
    display: flex;
    align-items: center;
    justify-content: center;
}

.netflix-nav-tip {
    font-size: 0.938rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.netflix-controls-group-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 0;
}

.netflix-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 22px;
    background: rgba(24, 24, 28, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-size: 0.938rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.netflix-text-btn svg {
    width: 20px;
    height: 20px;
}

.netflix-text-btn:hover,
.netflix-text-btn.tv-focused,
.netflix-text-btn:focus {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: var(--focus-border, #FFFFFF) !important;
    transform: scale(1.08);
    box-shadow: 0 0 18px var(--focus-glow, rgba(255, 30, 30, 0.85));
    outline: none;
}

/* =========================================================================
   4. CHANNEL ZAPPING BANNER AO VIVO IPTV (Design Netflix Live)
   ========================================================================= */
.netflix-live-banner {
    position: absolute;
    bottom: clamp(28px, 4vh, 56px);
    left: clamp(28px, 4.5vw, 72px);
    right: clamp(28px, 4.5vw, 72px);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    background: rgba(14, 14, 18, 0.96);
    border: 2px solid #E50914;
    border-radius: 18px;
    padding: 20px 32px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95);
    animation: netflix-slide-up 0.2s ease;
}

.netflix-live-banner.hidden {
    display: none !important;
}

@keyframes netflix-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.netflix-live-banner-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.netflix-live-num {
    font-size: 1.875rem;
    font-weight: 900;
    color: #FFFFFF;
    background: #E50914;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.55);
}

.netflix-live-logo-box {
    width: 88px;
    height: 62px;
    border-radius: 10px;
    background: #000000;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.netflix-live-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.netflix-live-info-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.netflix-live-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.netflix-live-title {
    font-size: 1.625rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.netflix-live-genre-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #CCCCCC;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
}

.netflix-live-prog-now {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
}

.netflix-live-prog-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0;
}

.netflix-live-prog-fill {
    height: 100%;
    background: #E50914;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

.netflix-live-prog-next {
    font-size: 1rem;
    font-weight: 600;
    color: #A3A3A3;
}

.netflix-live-tag-live {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(229, 9, 20, 0.25);
    border: 2px solid #E50914;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 900;
    padding: 10px 20px;
    border-radius: 10px;
    letter-spacing: 0.8px;
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
}

.netflix-live-pulse-dot {
    color: #E50914;
    font-size: 0.938rem;
    animation: netflix-pulse 1.2s infinite ease-in-out;
}

/* =========================================================================
   5. SPINNER & MODAIS NETFLIX
   ========================================================================= */
.netflix-spinner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.netflix-spinner-ring {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #E50914;
    border-radius: 50%;
    animation: netflix-spin 0.7s linear infinite;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

@keyframes netflix-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal de Erro do Player — 100% Fidelidade a _buildErrorView em video_player_screen.dart */
.player-error-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    padding: 24px;
}

.player-error-card {
    max-width: 600px;
    width: 100%;
    background: rgba(10, 16, 29, 0.96);
    border-radius: 24px;
    border: 2px solid rgba(255, 193, 7, 0.4);
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.87), 0 0 20px rgba(255, 193, 7, 0.12);
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-error-icon-box {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.player-error-title {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.player-error-item-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #CAD5E2;
    font-size: 0.938rem;
    font-weight: 700;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 16px;
}

.player-error-desc {
    color: #CBD5E1;
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.player-error-suggestion {
    color: #94A3B8;
    font-size: 0.938rem;
    line-height: 1.45;
    white-space: pre-line;
    text-align: left;
    background: rgba(0, 0, 0, 0.35);
    padding: 12px 18px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
    border-left: 4px solid #FFC107;
}

.player-error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.btn-error-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 26px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 30, 30, 0.4);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-error-retry:hover,
.btn-error-retry.tv-focused {
    background: #FFFFFF;
    color: #000000;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    outline: none;
}

.btn-error-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 26px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-error-close:hover,
.btn-error-close.tv-focused {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
    outline: none;
}

/* Next Episode Modal Netflix */
.netflix-next-ep-card {
    position: absolute;
    bottom: clamp(36px, 5vh, 68px);
    right: clamp(36px, 5vw, 68px);
    background: rgba(18, 18, 18, 0.96);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 28px 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
    z-index: 2000;
    animation: netflix-slide-up 0.25s ease-out;
}

.netflix-next-ep-header {
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.netflix-next-ep-sub {
    font-size: 1.063rem;
    color: #CCCCCC;
    margin-bottom: 20px;
}

.netflix-next-ep-sub strong {
    color: #E50914;
}

.netflix-next-ep-actions {
    display: flex;
    gap: 14px;
}

.netflix-btn-primary {
    background: #E50914;
    border: 1.5px solid transparent;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.netflix-btn-primary:hover,
.netflix-btn-primary.tv-focused {
    border-color: #FFFFFF;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.9);
}

.netflix-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.netflix-btn-secondary:hover,
.netflix-btn-secondary.tv-focused {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
    transform: scale(1.08);
}

.netflix-btn-secondary:hover,
.netflix-btn-secondary.tv-focused {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
    transform: scale(1.08);
}

/* Toast Temporário */
.netflix-player-toast {
    position: fixed;
    bottom: clamp(36px, 5vh, 60px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.95);
    border: 1.5px solid #E50914;
    border-radius: 24px;
    padding: 12px 28px;
    color: #FFFFFF;
    font-size: 0.938rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 9, 20, 0.4);
    z-index: 100000;
    pointer-events: none;
    animation: netflix-toast-fade 0.2s ease-out;
}

@keyframes netflix-toast-fade {
    from {
        opacity: 0;
        transform: translate(-50%, 12px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Numeric Zapping Badge Flutuante */
.tv-numeric-zapping-badge {
    position: fixed;
    top: 40px;
    right: 50px;
    background: rgba(14, 14, 14, 0.95);
    border: 2px solid #E50914;
    border-radius: 16px;
    padding: 12px 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    z-index: 100000;
    box-shadow: 0 0 28px rgba(229, 9, 20, 0.5), 0 8px 32px rgba(0, 0, 0, 0.95);
    animation: netflix-slide-up 0.15s ease-out;
}

/* Ocultação forçada da barra superior em modo Live TV contínuo */
.live-fullscreen-mode .player-top-bar,
.player-top-bar.hidden-on-live {
    display: none !important;
}

/* =========================================================================
   AÇÕES INFERIORES VOD (RELACIONADOS / EPISÓDIOS / PRÓXIMO CAPÍTULO)
   ========================================================================= */
.netflix-bottom-actions-group {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.netflix-pill-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    font-size: 0.938rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.netflix-pill-action-btn svg {
    flex-shrink: 0;
}

.netflix-pill-action-btn:hover,
.netflix-pill-action-btn.tv-focused,
.netflix-pill-action-btn:focus {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: #FFFFFF !important;
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.85));
    outline: none;
    color: #FFFFFF !important;
}

/* =========================================================================
   GAVETA INFERIOR (BOTTOM DRAWER): FILMES RELACIONADOS E EPISÓDIOS
   ========================================================================= */
.player-bottom-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 380px;
    background: linear-gradient(0deg, rgba(8, 8, 12, 0.98) 0%, rgba(14, 14, 20, 0.96) 75%, rgba(14, 14, 20, 0.88) 100%);
    backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.92);
    z-index: 500;
    display: flex;
    flex-direction: column;
    padding: 20px 48px 28px 48px;
    box-sizing: border-box;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
    transform: translateY(0);
    opacity: 1;
}

.player-bottom-drawer.hidden {
    transform: translateY(105%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.player-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    width: 100%;
}

.player-drawer-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-drawer-badge {
    background: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.player-drawer-title {
    font-size: 1.188rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.6px;
    margin: 0;
    text-transform: uppercase;
}

.player-drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.player-drawer-tip {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.5px;
}

.player-drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.player-drawer-close-btn:hover,
.player-drawer-close-btn.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: #FFFFFF !important;
    transform: scale(1.12);
    box-shadow: 0 0 14px var(--focus-glow, rgba(255, 30, 30, 0.85));
    outline: none;
}

/* Scroller Horizontal de Itens */
.player-drawer-items-scroller {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 8px 4px 14px 4px;
    scrollbar-width: none;
}

.player-drawer-items-scroller::-webkit-scrollbar {
    display: none;
}

/* Card de Filme Relacionado */
.player-drawer-movie-card {
    flex: 0 0 135px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #18181E;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.player-drawer-movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-drawer-movie-card .drawer-movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 70%);
    box-sizing: border-box;
}

.player-drawer-movie-card .drawer-movie-title {
    font-size: 0.813rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-drawer-movie-card:hover,
.player-drawer-movie-card.tv-focused {
    transform: scale(1.08) translateY(-4px);
    border-color: #FFFFFF !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.9));
    outline: none;
    z-index: 10;
}

/* Card de Episódio de Série */
.player-drawer-episode-card {
    flex: 0 0 240px;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #18181E;
    border: 2px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.player-drawer-episode-thumb {
    width: 100%;
    height: 115px;
    object-fit: cover;
    display: block;
    background: #202028;
}

.player-drawer-episode-info {
    padding: 8px 10px;
    background: rgba(18, 18, 24, 0.95);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-drawer-episode-num {
    font-size: 0.688rem;
    font-weight: 800;
    color: var(--primary-red, #FF1E1E);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.player-drawer-episode-title {
    font-size: 0.813rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.player-drawer-episode-card.is-current {
    border-color: var(--primary-red, #FF1E1E);
}

.player-drawer-episode-card.is-current::after {
    content: "REPRODUZINDO";
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    font-size: 0.625rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.player-drawer-episode-card:hover,
.player-drawer-episode-card.tv-focused {
    transform: scale(1.06) translateY(-4px);
    border-color: #FFFFFF !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.9));
    outline: none;
    z-index: 10;
}

/* =========================================================================
   MODAL DE ÁUDIO E LEGENDAS (DESIGN CINEMATOGRÁFICO ESTILO NETFLIX)
   ========================================================================= */
.player-audio-subs-modal {
    position: absolute;
    inset: 0;
    z-index: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: netflix-fade-in 0.2s ease;
}

.player-audio-subs-modal.hidden {
    display: none !important;
}

.player-audio-subs-card {
    width: min(780px, 90vw);
    max-height: 82vh;
    background: rgba(20, 20, 26, 0.96);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-audio-subs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 18px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
}

.player-audio-subs-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-audio-subs-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.player-audio-subs-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.player-audio-subs-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-audio-subs-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.player-audio-subs-col-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #CCCCCC;
    font-size: 0.688rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.6px;
}

.player-audio-subs-col-title {
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.8px;
}

.player-audio-subs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-audio-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #E6E6E6;
    font-size: 0.938rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.player-audio-track-item.is-selected {
    background: rgba(229, 9, 20, 0.22);
    border-color: var(--primary-red, #FF1E1E);
    color: #FFFFFF;
    font-weight: 800;
}

.player-audio-track-check {
    font-size: 1rem;
    color: var(--primary-red, #FF1E1E);
    font-weight: 900;
}

.player-audio-track-item:hover,
.player-audio-track-item.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: scale(1.03);
    box-shadow: 0 0 16px var(--focus-glow, rgba(255, 30, 30, 0.85));
    outline: none;
}

.player-audio-track-item:hover .player-audio-track-check,
.player-audio-track-item.tv-focused .player-audio-track-check {
    color: #FFFFFF !important;
}

.player-audio-subs-footer {
    padding: 14px 28px 18px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.813rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}


/**
 * StarBr Play — Módulo de Alto Contraste, Nitidez Cristalina & Projeção 10-Foot UI
 * Especialmente calibrado para Smart TVs LG (32" a 65" / HD 720p, 1080p e 4K).
 * Elimina 100% do efeito Gaussian Blur: ZERO blur radius em sombras de texto.
 * Escala cinematográfica proporcional: preenchimento correto da tela sem vazios.
 */

/* =========================================================================
   1. TIPOGRAFIA CRISTALINA (ZERO GAUSSIAN BLUR - NITIDEZ 100%)
   ========================================================================= */

body,
html {
    font-family: 'AppFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Todos os Títulos com Peso Forte e Nitidez Cristalina */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-title,
.hero-title-text,
.screen-title,
.channel-main-title,
.details-title,
.login-title,
.modal-title,
.epg-header-title {
    font-family: 'AppFont', sans-serif !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    letter-spacing: -0.01em !important;
}

/* =========================================================================
   2. REESTRUTURAÇÃO COMPLETA DA TELA DE LOGIN (OCUPA A TELA, FONTE GRANDE)
   ========================================================================= */

/* Expande o container central para preencher a tela de TV confortavelmente */
.login-center-wrapper {
    max-width: 660px !important;
    width: 80vw !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    margin: auto !important;
}

/* Logo do Topo com Escala Otimizada para Não Cortar */
.login-brand-logo {
    max-height: 60px !important;
    max-width: 260px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) !important;
    margin-bottom: 2px !important;
}

.login-partner-subtitle {
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    color: #CBD5E1 !important;
    letter-spacing: 2px !important;
}

/* Card Principal de Login com Proporção de Smart TV de Verdade */
.login-main-card {
    background: rgba(8, 12, 22, 0.97) !important;
    border: 2px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 20px !important;
    padding: 24px 28px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 0, 0, 0.8) !important;
    gap: 16px !important;
}

/* Seletor de Abas de Login */
.login-tabs-pill {
    gap: 12px !important;
    padding: 6px !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

.login-tab-btn {
    font-size: 1.094rem !important;
    font-weight: 800 !important;
    padding: 14px 20px !important;
    color: #F8FAFC !important;
    border-radius: 12px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    text-shadow: none !important;
}

.login-tab-btn.active {
    background: #E50914 !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.login-tab-btn.tv-focused {
    border-color: #FFFFFF !important;
    border-width: 4px !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

/* Campos de Formulário (Inputs) em Tamanho Amplo para Leitura a 3 Metros */
.login-input-card {
    min-height: 64px !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    background: #000000 !important;
    gap: 16px !important;
}

.login-input-card.tv-focused,
.login-input-card:focus-within {
    background: #0E1626 !important;
    border-color: #FFFFFF !important;
    border-width: 4px !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

.login-input-icon svg {
    width: 26px !important;
    height: 26px !important;
    color: #FFFFFF !important;
    filter: drop-shadow(0 1px 2px #000) !important;
}

.login-input-raw {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.5px !important;
    text-shadow: none !important;
}

/* FIM DOS TEXTOS APAGADOS: Placeholders com Alto Brilho e Zero Blur */
.login-input-raw::placeholder {
    color: #E2E8F0 !important;
    /* Cinza-gelo quase branco */
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    opacity: 0.95 !important;
    text-shadow: none !important;
}

.login-input-floating-hint {
    font-size: 0.844rem !important;
    font-weight: 700 !important;
    color: #38BDF8 !important;
    /* Ciano de Alta Legibilidade */
    text-shadow: none !important;
}

/* Botão ENTRAR NO SISTEMA Gigante e Convidativo */
.btn-login-action-primary {
    height: 66px !important;
    font-size: 1.313rem !important;
    font-weight: 900 !important;
    letter-spacing: 1.2px !important;
    background: #E50914 !important;
    color: #FFFFFF !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(229, 9, 20, 0.6) !important;
    text-shadow: none !important;
}

.btn-login-action-primary.tv-focused {
    border: 4px solid #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

/* Botão Acessar Modo Demonstração */
.btn-login-demo-access {
    font-size: 1.031rem !important;
    font-weight: 800 !important;
    color: #F8FAFC !important;
    text-shadow: none !important;
    padding: 10px 18px !important;
}

.btn-login-demo-access.tv-focused {
    color: #FFFFFF !important;
    border: 4px solid #FFFFFF !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

/* Rodapé: MAC e KEY em Alto Contraste */
.login-footer-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    margin-top: 10px !important;
}

.login-footer-info span,
.login-footer-info strong {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
}

.login-footer-info strong {
    color: #00E676 !important;
    /* Verde Brilhante para o MAC */
}

/* Botão Sair do Aplicativo */
.btn-login-exit-app {
    font-size: 1rem !important;
    font-weight: 800 !important;
    padding: 10px 24px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 10px !important;
    color: #FFFFFF !important;
}

.btn-login-exit-app.tv-focused {
    border: 4px solid #FFFFFF !important;
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

/* =========================================================================
   3. TECLADO VIRTUAL DE TV LG (TECLAS GIGANTES E NÍTIDAS)
   ========================================================================= */

.tv-keyboard-overlay {
    background: rgba(4, 7, 14, 0.98) !important;
}

.tv-keyboard-key {
    font-family: 'AppFont', sans-serif !important;
    font-size: 1.313rem !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    background: #141E30 !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.tv-keyboard-key.tv-focused {
    background: #E50914 !important;
    border: 4px solid #FFFFFF !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

/* =========================================================================
   4. HOME DASHBOARD & CARDS DE FILMES/SÉRIES/CANAIS
   ========================================================================= */

/* Hero Showcase (Destaque aos textos da sinopse e título com sombra de alto contraste) */
.hero-title-text {
    font-size: 2.85rem !important;
    font-weight: 900 !important;
    color: var(--tv-text-color, #FFFFFF) !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.98), 0 2px 6px rgba(0, 0, 0, 0.95) !important;
}

.hero-description-text {
    font-size: 1.125rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #F8FAFC !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.98), 0 1px 4px rgba(0, 0, 0, 0.92) !important;
}

/* Ocultar nome dos conteudos dos posteres para a imagem preencher 100% o card no grid */
.poster-info,
.poster-title,
.kids-card-bottom-banner {
    display: none !important;
}

.tv-poster-card {
    height: auto !important;
    overflow: hidden !important;
    background: transparent !important;
}

.tv-poster-card .poster-media-wrapper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin: 0 !important;
    display: block !important;
}

.tv-poster-card .poster-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
}

/* Canais Ao Vivo */
.channel-main-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
}

.channel-sub-program {
    font-size: 0.938rem !important;
    font-weight: 700 !important;
    color: #38BDF8 !important;
    /* Ciano de Alto Destaque */
    text-shadow: none !important;
}

.channel-num-badge {
    font-size: 1.063rem !important;
    font-weight: 900 !important;
    background: #E50914 !important;
    color: #FFFFFF !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px #000 !important;
}

/* Top 10 Netflix 3D Metálico */
.top10-rank-number {
    font-family: 'AppFont', 'Impact', sans-serif !important;
    font-size: 8.75rem !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    -webkit-text-stroke: 3px #000000 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* =========================================================================
   5. DESTAQUE CINEMATOGRÁFICO DE FOCO (D-PAD)
   ========================================================================= */

.tv-focused,
.tv-focusable:focus {
    outline: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* O FOCO ATINGE APENAS AS BORDAS DOS PÔSTERES OU DOS BOTÕES - NUNCA O GRID INTEIRO */
.tv-poster-card.tv-focused,
.tv-continue-card.tv-focused,
.tv-top10-card.tv-focused,
.tv-live-channel-card.tv-focused {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: scale(var(--tv-focus-scale, 1.10)) translateZ(0) !important;
}

.tv-poster-card.tv-focused .poster-media-wrapper,
.tv-continue-card.tv-focused .poster-media-wrapper,
.tv-continue-card.tv-focused .continue-media-wrapper,
.tv-top10-card.tv-focused .top10-poster-wrapper {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 8px !important;
}

.tv-live-channel-card.tv-focused .live-card-body {
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    outline: none !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)), 0 6px 20px rgba(0, 0, 0, 0.8) !important;
    transform: none !important;
    border-radius: 8px !important;
}

.live-channel-list-item.tv-focused {
    background: rgba(255, 255, 255, 0.22) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    outline: none !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
    transform: scale(var(--tv-focus-scale, 1.03)) translateZ(0) !important;
}

.sidebar-item.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border: 3.5px solid var(--focus-border, #FFFFFF) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
    transform: none !important;
}

.category-item-btn.tv-focused,
.live-category-btn.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
    transform: scale(var(--tv-focus-scale, 1.04)) translateZ(0) !important;
}

.category-item-btn.tv-focused span,
.category-item-btn.tv-focused svg,
.category-item-btn.tv-focused .cat-arrow-indicator,
.live-category-btn.tv-focused span,
.live-category-btn.tv-focused svg,
.live-category-btn.tv-focused .cat-arrow-indicator {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

.btn-hero-pill-play.tv-focused,
.details-btn-main.tv-focused {
    background: var(--primary-red, #FF1E1E) !important;
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 24px var(--focus-glow, rgba(255, 30, 30, 0.85)) !important;
    transform: scale(var(--tv-focus-scale, 1.06)) translateZ(0) !important;
}

.btn-hero-pill-play.tv-focused svg,
.details-btn-main.tv-focused svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.hub-card.tv-focused {
    border: 4px solid var(--focus-border, var(--primary-red, #FF1E1E)) !important;
    box-shadow: 0 0 20px var(--focus-glow, rgba(255, 30, 30, 0.70)) !important;
    transform: scale(var(--tv-focus-scale, 1.08)) translateZ(0) !important;
}

/* Logos de Canais com Alta Visibilidade e Contraste na TV */
.live-channel-logo {
    width: 38px !important;
    height: 28px !important;
    border-radius: 4px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 2px !important;
}

.channel-logo-square {
    width: 48px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.channel-logo-square img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Ícones SVG */
svg {
    filter: drop-shadow(0 1px 2px #000000) !important;
    stroke-width: 2.5 !important;
}