/* Netflix UI Override */
:root {
    --nf-black: #141414;
    --nf-black-deep: #0b0b0b;
    --nf-red: #e50914;
    --nf-red-hover: #f40612;
    --nf-text: #e5e5e5;
    --nf-text-muted: #8c8c8c;
    --nf-input: #333333;
    --nf-border: #333;
    --nf-card: rgba(0, 0, 0, 0.78);
    /* Altura reservada por baixo do menu fixo (ajuste fino se mudar padding da navbar) */
    --nf-nav-h: 68px;
}

body {
    background-color: var(--nf-black) !important;
    color: var(--nf-text) !important;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.standard-bg, .footer-background, .dark-bg, .channels-bg {
    background-color: #141414 !important;
    background: #141414 !important;
}

/* Navbar overrides */
.navbar-default {
    background: rgba(20,20,20,0.9) !important;
    border: none !important;
}

/* Netflix Rows */
.netflix-row-container {
    margin-bottom: 2vw;
}

.netflix-row-title {
    font-size: 1.6vw;
    color: #e5e5e5;
    font-weight: bold;
    margin: 0 4% 0.5em 4%;
}

.netflix-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 20px 4% 20px 4%;
}

.netflix-row::-webkit-scrollbar {
    display: none;
}

.netflix-item {
    flex: 0 0 auto;
    width: 220px;
    margin-right: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.netflix-item img {
    border-radius: 4px;
    width: 100%;
    height: 330px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.netflix-item:hover {
    transform: scale(1.10);
    z-index: 99;
}

.netflix-item-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(229,9,20, 0.9);
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 65vh;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0 4% 15vh 4%;
    margin-bottom: 20px;
    margin-top: -20px;
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #141414 0%, rgba(20,20,20,0.1) 40%, rgba(20,20,20,0.6) 100%),
                linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 50%;
}

.hero-title {
    font-size: 3.5vw;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
    margin-bottom: 20px;
}

.hero-buttons .btn {
    padding: 10px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 15px;
}

.btn-play {
    background-color: white !important;
    color: black !important;
    border: none;
}
.btn-play:hover { background-color: rgba(255,255,255,0.7) !important;}

.btn-info-netflix {
    background-color: rgba(109, 109, 110, 0.7) !important;
    color: white !important;
    border: none;
}
.btn-info-netflix:hover { background-color: rgba(109, 109, 110, 0.4) !important;}

/* -------------------------------------------
   NETFLIX PERFECT NAV CLONE
   (só esconde o header duplicado no layout #home1 — login #login mantém logo)
------------------------------------------- */
#home1 .header-top,
#single-video-fullwidth .header-top {
    display: none !important;
}

/* Barra principal: fixa, largura total, sem “cápsula” nem sombra do tema antigo */
.home-mega-menu.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.home-mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1040;
    padding-left: 0;
    padding-right: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.82) 55%,
        rgba(0, 0, 0, 0.35) 85%,
        rgba(0, 0, 0, 0) 100%
    ) !important;
}

.home-mega-menu .navbar-default {
    background: transparent !important;
    border: none !important;
    padding: 0 4%;
}

.home-mega-menu .navbar,
.home-mega-menu .navbar-default,
.home-mega-menu .navbar-default .navbar-collapse,
.home-mega-menu .navbar-default .navbar-form {
    border-radius: 0 !important;
}

/* Live / player: conteúdo começa abaixo do menu fixo */
#single-video-fullwidth {
    padding-top: var(--nf-nav-h) !important;
}

.navbar-nav > li > a {
    color: #e5e5e5 !important;
    font-size: 16px !important;
    font-weight: normal !important;
    letter-spacing: 0.5px;
    text-transform: none !important;
    transition: color 0.4s;
}
.navbar-nav > li > a:hover { color: #fff !important; }

/* The search bar transform to icon */
#busca_global {
    background: transparent;
    border: none; outline: none;
    color: white; font-size: 14px;
    width: 35px; height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/></svg>');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
#busca_global::-webkit-input-placeholder { color: transparent; }
#busca_global:focus, #busca_global:valid {
    width: 250px;
    background-color: rgba(0,0,0,0.8);
    border: 1px solid #fff;
    padding-left: 40px;
    background-position: 10px center;
    cursor: text;
}
#busca_global:focus::-webkit-input-placeholder, #busca_global:valid::-webkit-input-placeholder { color: #888; }

@media (min-width: 768px) {
    .js-navbar-collapse { position: relative; }
    .search-block {
        position: absolute;
        right: 80px;
        top: 8px;
    }
    .profile-dropdown {
        position: absolute !important;
        right: 0;
        top: 0;
    }
    .navbar-nav {
        padding-right: 250px;
        display: flex;
        align-items: center;
    }
    .navbar-nav > li { float: none !important; }
}

html, body { padding-top: 0 !important; }
body:not(:has(.hero-container)) #home-main {
    padding-top: calc(var(--nf-nav-h) + 28px);
}
body:not(:has(.hero-container)) .netflix-row-container {
    padding-top: calc(var(--nf-nav-h) + 28px);
}

/* User Avatar UI */
.profile-dropdown > a { 
    display: flex; align-items: center; gap: 8px;
    color: white !important; padding: 10px 0 !important;
}
.profile-dropdown .dropdown-menu.profile-menu {
    background: rgba(0,0,0, 0.9);
    border: 1px solid #333;
    padding: 10px 0; right: 0; left: auto; width: 250px;
}
.profile-menu li { padding: 5px 20px; color: #fff; font-size: 13px; }
.profile-menu li span { color: #888; display: inline-block; width: 80px; }
.profile-menu .profile-header { padding-bottom: 10px; border-bottom: 1px solid #333; margin-bottom: 10px; }
.profile-menu .divider { background-color: #333; margin: 10px 0; }
.profile-menu a:hover, .profile-menu > li > a:hover, .profile-menu > li > a:focus { 
    background-color: rgba(255,255,255,0.1) !important; 
    color: white !important; 
}
.profile-menu a, .profile-menu > li > a {
    color: #e5e5e5 !important;
    background: transparent !important;
}

/* -------------------------------------------
   NETFLIX AJAX MODAL
------------------------------------------- */
#netflix-modal-backdrop {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7); z-index: 10000; overflow-y: auto; padding-top: 30px; padding-bottom: 30px;
}
.netflix-modal-content {
    background: #181818; width: 90%; max-width: 850px; margin: 0 auto;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    position: relative; overflow: hidden; color: #fff;
}
.netflix-modal-close {
    position: absolute; top: 15px; right: 15px; z-index: 10002;
    background: rgba(0,0,0,0.6); color: white; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
}
.netflix-modal-close:hover { background: #fff; color: #000; }
.netflix-modal-hero {
    position: relative; width: 100%; height: 400px;
    background-size: cover; background-position: center top;
}
.netflix-modal-hero iframe { width: 100%; height: 100%; pointer-events:none; }
.netflix-modal-hero-vignette {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, #181818 0%, transparent 100%);
}
.netflix-modal-body { padding: 0 40px 40px 40px; display:flex; gap: 30px; position: relative; z-index: 10; margin-top: -60px; }
.netflix-modal-left { flex: 7; }
.netflix-modal-right { flex: 3; font-size: 14px; }
.netflix-modal-title { font-size: 3rem; font-weight: bold; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.netflix-modal-meta { display: flex; gap: 15px; align-items: center; font-size: 16px; margin-bottom: 20px; color: #a3a3a3; font-weight: bold; }
.netflix-modal-match { color: #46d369; }
.netflix-modal-btn-play { background: white; color: black; padding: 10px 25px; border-radius: 4px; font-weight: bold; font-size: 1.2rem; border: none; cursor:pointer; text-decoration: none; display: inline-flex; align-items:center; gap: 10px; }
.netflix-modal-btn-play:hover { background: rgba(255,255,255,0.7); color: black; text-decoration: none; }
.netflix-modal-btn-circle { background: rgba(42,42,42,0.6); color: white; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-left: 10px; cursor: pointer; transition: 0.2s;}
.netflix-modal-btn-circle:hover { border-color: white; }
.netflix-modal-plot { font-size: 16px; line-height: 1.6; margin-top: 20px; }
.netflix-modal-right span { color: #777; }
.netflix-modal-right p { margin-bottom: 10px; line-height: 1.4; color: #ddd; }

/* -------------------------------------------
   NETFLIX HOVER PORTAL
------------------------------------------- */
.netflix-item { transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; cursor: pointer; position: relative; border-radius: 4px; }
.netflix-item:hover {
    transform: scale(1.12);
    z-index: 120;
    box-shadow: 0 16px 34px rgba(0,0,0,0.75);
    filter: brightness(1.08);
}

#netflix-hover-portal {
    position: absolute; display: none; z-index: 10005;
    background: #141414; border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    transform: scale(0.9); opacity: 0; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.3s;
    width: 360px; overflow: hidden;
}
#netflix-hover-portal.active {
    transform: scale(1); opacity: 1; pointer-events: auto;
}
.hover-portal-img { width: 100%; height: 205px; object-fit: cover; }
.hover-portal-body { padding: 15px; }

.hover-portal-buttons { display: flex; gap: 8px; margin-bottom: 15px; align-items:center; }
.hover-portal-btn { 
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid rgba(255,255,255,0.4);
    background: rgba(30,30,30,0.8); color: white;
    width: 38px; height: 38px; font-size: 1.2rem; cursor: pointer; text-decoration:none; transition: 0.2s;
}
.hover-portal-btn:hover { border-color: white; color: white; background: rgba(255,255,255,0.1); }
.hover-portal-btn.play-btn { background: white; color: black; border-color: white; }
.hover-portal-btn.play-btn:hover { background: #e6e6e6; color: black; }
.hover-portal-btn.expand-btn { margin-left: auto; } /* pushes to far right */

.hover-portal-meta { font-size: 12px; margin-bottom: 10px; display:flex; align-items:center; gap:8px; font-weight: bold; }
.hover-portal-match { color: #46d369; }
.hover-portal-age { border: 1px solid rgba(255,255,255,0.4); padding: 1px 4px; border-radius: 2px; }
.hover-portal-hd { border: 1px solid rgba(255,255,255,0.4); padding: 1px 4px; border-radius: 2px; font-size:10px; color:#aaa; }

.hover-portal-genres { font-size: 12px; color: #fff; margin-bottom: 0; }
.hover-portal-genres span { display: inline-block; }
.hover-portal-genres span:not(:last-child)::after { content: ' • '; color: #555; padding: 0 4px; }

/* ========== Login Netflix (corpo dedicado) ========== */
.netflix-login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--nf-black-deep) !important;
}
.netflix-login-page #login {
    flex: 1;
}
.netflix-login-root {
    position: relative;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-x: hidden;
    background: transparent !important;
}
.nf-login-header {
    position: relative;
    z-index: 3;
    padding: 24px 4% 0;
}
.nf-login-logo {
    display: inline-block;
    line-height: 0;
}
.nf-login-logo img {
    height: auto;
    width: auto;
    max-height: clamp(72px, 14vw, 118px);
    max-width: min(320px, 88vw);
    object-fit: contain;
    display: block;
}
@media (max-width: 520px) {
    .nf-login-logo img {
        max-height: clamp(64px, 22vw, 92px);
        max-width: min(260px, 92vw);
    }
}
.nf-login-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: var(--nf-login-bg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(0.95) contrast(0.95);
    pointer-events: none;
}
.nf-login-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(229, 9, 20, 0.15) 0%, transparent 52%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0,0,0,0.74) 44%, rgba(0,0,0,0.92) 100%);
}
.nf-login-main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 24px 20px 48px;
}
.nf-login-hero-copy {
    text-align: center;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}
.nf-login-hero-copy h1 {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.8vw, 3.3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 18px rgba(0,0,0,0.75);
}
.nf-login-hero-copy p {
    margin: 12px 0 0;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.45rem);
    font-weight: 500;
    text-shadow: 0 3px 12px rgba(0,0,0,0.65);
}
.nf-login-card {
    width: 100%;
    max-width: 448px;
    padding: 56px 68px 42px;
    background: rgba(0, 0, 0, 0.78);
    border-radius: 4px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.72);
}
@media (max-width: 520px) {
    .nf-login-backdrop {
        background-position: center top;
    }
    .nf-login-main {
        justify-content: flex-start;
        gap: 16px;
        padding-top: 14px;
    }
    .nf-login-hero-copy h1 {
        font-size: 1.35rem;
    }
    .nf-login-hero-copy p {
        font-size: 0.94rem;
    }
    .nf-login-card {
        padding: 32px 22px 28px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
}
.netflix-login-page .registration {
    padding: 0;
    margin: 0;
    width: 100%;
}
.netflix-login-page .login-register-content {
    text-align: left;
}
.nf-login-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.netflix-login-page .nf-login-form {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.netflix-login-page .nf-float-field {
    position: relative;
    margin-bottom: 0;
}
.netflix-login-page .nf-float-field input {
    width: 100%;
    height: 50px;
    border-radius: 4px;
    border: 1px solid #333 !important;
    background: #333 !important;
    color: #fff !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    outline: none !important;
    box-shadow: none !important;
}
.netflix-login-page .nf-float-field input::placeholder {
    color: #8c8c8c;
    opacity: 1;
}
.netflix-login-page .nf-float-field input:focus {
    background: #454545 !important;
    border-color: #8c8c8c !important;
}
.netflix-login-page .nf-login-btn-wrap {
    margin-top: 0;
    margin-left: 0 !important;
}
.netflix-login-page .access-btn {
    width: 100%;
    margin-left: 0 !important;
    border-radius: 4px !important;
    background: var(--nf-red) !important;
    font-style: normal !important;
    text-transform: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    padding: 14px 20px !important;
    border: none !important;
    transition: background 0.2s, transform 0.15s !important;
}
.netflix-login-page .access-btn:hover {
    background: var(--nf-red-hover) !important;
    opacity: 1 !important;
}
.netflix-login-page .nf-login-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #b3b3b3;
    font-size: 13px;
}
.netflix-login-page .nf-login-meta a {
    color: #b3b3b3;
    text-decoration: none;
}
.netflix-login-page .nf-login-meta a:hover {
    text-decoration: underline;
}
.netflix-login-page .nf-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}
.netflix-login-page .nf-remember input {
    margin: 0;
}
.netflix-login-page .nf-login-signup {
    margin: 14px 0 0;
    color: #737373;
    font-size: 16px;
}
.netflix-login-page .nf-login-signup a {
    color: #fff;
    text-decoration: none;
}
.netflix-login-page .nf-login-signup a:hover {
    text-decoration: underline;
}
.netflix-login-page .nf-alert {
    background: rgba(229, 9, 20, 0.18);
    border: 1px solid rgba(229, 9, 20, 0.45);
    color: #fff;
    border-radius: 4px;
    margin-top: 12px;
    padding: 12px 14px;
}
.netflix-login-page #footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0, 0, 0, 0.72) !important;
    padding: 18px 0 20px;
}
.netflix-login-page #footer.footer-background {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
}
.netflix-login-page #footer .container {
    max-width: 980px;
}
.netflix-login-page .copyright-bottom img {
    display: none !important;
}
.netflix-login-page .copyright-bottom {
    text-align: left !important;
}
.netflix-login-page .copyright-bottom p,
.netflix-login-page .copyright-bottom a {
    color: var(--nf-text-muted) !important;
    font-size: 12px;
    text-decoration: none;
}

/* ========== Rodapé global (estilo Netflix) ========== */
.nf-site-footer {
    padding-top: 8px;
}
#footer.footer-background {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 36px;
    padding-bottom: 40px;
}
.copyright-bottom p,
.copyright-bottom a {
    color: var(--nf-text-muted) !important;
    font-size: 13px;
}
.copyright-bottom img {
    max-height: 80px;
    opacity: 0.85;
}

/* ========== Hub rápido (painel) ========== */
.nf-hub-strip {
    margin-bottom: 28px !important;
    padding: 0 4% !important;
}
.nf-hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    color: #fff !important;
    border: none;
    letter-spacing: 0.02em;
    transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}
.nf-hub-btn:hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.nf-hub-netflix {
    background: #e50914;
}
.nf-hub-prime {
    background: #00a8e1;
}
.nf-hub-hbo {
    background: #5a2e8d;
}
.nf-hub-disney {
    background: #113ccf;
}

/* ========== Catálogo: grades (filmes, séries, busca) ========== */
#home-main h2.icon {
    display: block;
    color: var(--nf-text) !important;
    font-size: 1.35vw;
    font-weight: 700;
    margin: 0 4% 0.6em;
    padding-top: 0.5rem;
    border: none;
    text-transform: none;
    letter-spacing: 0;
}
@media (max-width: 1200px) {
    #home-main h2.icon {
        font-size: 1.1rem;
    }
}
#home-main h2.icon i {
    margin-right: 10px;
    color: var(--nf-red);
}
#home1 .megabg,
#home1 .dropshd,
#single-video-fullwidth .megabg,
#single-video-fullwidth .dropshd,
.home-mega-menu .megabg,
.home-mega-menu .dropshd {
    background: transparent !important;
    box-shadow: none !important;
}
.navbar-default .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.25);
}
.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.08);
}
/* Dropdowns: screen.css usa .navbar-nav>li>.dropdown-menu com fundo branco e maior especificidade — forçar tema escuro legível */
.navbar-default .navbar-nav > li > .dropdown-menu,
.home-mega-menu .navbar-nav > li > .dropdown-menu,
.mega-dropdown > .dropdown-menu {
    background-color: #141414 !important;
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    z-index: 1060 !important;
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > a,
.home-mega-menu .dropdown-menu > li > a {
    background-color: transparent !important;
    background: transparent !important;
    color: #e5e5e5 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    padding: 10px 22px !important;
    white-space: nowrap;
}

.mega-dropdown .dropdown-menu > li > a {
    border-left: 3px solid transparent !important;
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav > li > .dropdown-menu > li > a:focus,
.home-mega-menu .dropdown-menu > li > a:hover,
.home-mega-menu .dropdown-menu > li > a:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.mega-dropdown .dropdown-menu > li > a:hover,
.mega-dropdown .dropdown-menu > li > a:focus {
    border-left-color: var(--nf-red) !important;
}

.home-mega-menu .dropdown-menu > li.msx > a,
.mega-dropdown .dropdown-menu > li.msx > a {
    background: rgba(229, 9, 20, 0.22) !important;
    color: #fff !important;
    border-left-color: var(--nf-red) !important;
}

.home-mega-menu .dropdown-menu .divider,
.mega-dropdown .dropdown-menu .divider {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

.home-mega-menu .dropdown-menu .dropdown-header,
.mega-dropdown .dropdown-menu .dropdown-header {
    color: #b3b3b3 !important;
}

@media (max-width: 767px) {
    .home-mega-menu .navbar-nav .open .dropdown-menu {
        background-color: #141414 !important;
        background: #141414 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
    }
    .home-mega-menu .navbar-nav .open .dropdown-menu > li > a {
        color: #e5e5e5 !important;
        background: transparent !important;
    }
    .home-mega-menu .navbar-nav .open .dropdown-menu > li > a:hover,
    .home-mega-menu .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }
}

/* Fallback genérico (outros .dropdown-menu fora da mega-nav) */
.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.94) !important;
    background: rgba(0, 0, 0, 0.94) !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}
.dropdown-menu > li > a {
    color: #e5e5e5 !important;
    padding: 10px 20px !important;
    background-color: transparent !important;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}
.item-box .post .infor,
.item-box .post .infor h4,
.item-box .post .infor .title,
.item-box .post .infor .title p {
    background: transparent !important;
    color: var(--nf-text) !important;
}
.item-box .post .infor .title a,
.item-box .post .infor .title a p {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
}
.item-box .post .infor .title a:hover,
.item-box .post .infor .title a:hover p {
    color: var(--nf-red) !important;
}
.item-box .posts-txt {
    color: var(--nf-text-muted) !important;
}
.item-box .thumbr,
.item-box .post-medium {
    border-radius: 4px;
    overflow: hidden;
}
.item-box .post-thumb img {
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.item-box .post-medium:hover .post-thumb img {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}
#btn-load-more,
#btn-load-more-box .btn-primary {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 4px;
    padding: 10px 28px;
    text-transform: none;
}
#btn-load-more:hover,
#btn-load-more-box .btn-primary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Título em cartão LIVE (painel) */
.netflix-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 10px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    border-radius: 0 0 4px 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Botões globais secundários estilo Netflix */
.btn-default {
    background: rgba(109, 109, 110, 0.55) !important;
    border: none !important;
    color: #fff !important;
}
.btn-default:hover {
    background: rgba(109, 109, 110, 0.35) !important;
    color: #fff !important;
}
.btn-primary {
    background: var(--nf-red) !important;
    border-color: var(--nf-red) !important;
    color: #fff !important;
}
.btn-primary:hover {
    background: var(--nf-red-hover) !important;
    border-color: var(--nf-red-hover) !important;
    color: #fff !important;
}

/* Links gerais */
a {
    color: inherit;
}
#home-main a.title,
.netflix-row a {
    transition: color 0.2s;
}

/* Scrollbar horizontal carrossel (WebKit) */
.netflix-row {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* canal.php — sidebar: abas EPG / relacionados / recentes */
.nf-canal-sidebar-tabs {
    padding: 16px 18px 20px;
}
.nf-canal-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 1px solid #333;
    margin-bottom: 14px;
}
.nf-canal-tab {
    flex: 1 1 0;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--nf-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 6px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.nf-canal-tab:hover {
    color: var(--nf-text);
}
.nf-canal-tab.is-active {
    color: #fff;
    border-bottom-color: var(--nf-red);
}
.nf-canal-tabpanel {
    display: none;
}
.nf-canal-tabpanel.is-active {
    display: block;
}
.nf-canal-epg-box {
    background: #222;
    border-radius: 4px;
    padding: 10px;
}
.nf-canal-epg-item {
    border-left: 3px solid var(--nf-red);
    padding-left: 10px;
    margin-bottom: 15px;
}
.nf-canal-epg-item:last-child {
    margin-bottom: 0;
}
.nf-canal-tab-empty {
    color: var(--nf-text-muted);
    text-align: center;
    font-size: 13px;
    margin: 16px 0;
    padding: 0 8px;
}
.nf-canal-ch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nf-canal-ch-link {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    background: #222;
    border-left: 3px solid transparent;
}
.nf-canal-ch-link:hover {
    background: #2a2a2a;
    text-decoration: none;
}
.nf-canal-ch-link--active {
    background: #333 !important;
    border-left-color: var(--nf-red) !important;
}
.nf-canal-ch-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #000;
    border-radius: 3px;
    margin-right: 15px;
    flex-shrink: 0;
}
.nf-canal-ch-name {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nf-canal-ch-play {
    color: var(--nf-red);
    flex-shrink: 0;
    margin-left: 6px;
}
@media (max-width: 991px) {
    .nf-canal-tab {
        font-size: 11px;
        padding: 10px 4px;
    }
}
