/*
 * 7starhd 4.2.10.26 — BollyFlix reference visual parity.
 * Scope:
 *  - Homepage listing visual parity with the supplied saved homepage HTML.
 *  - Single-post reading/content area visual parity with the supplied saved post HTML.
 * No importer, taxonomy, URL, database, query, sidebar, community or ranking behavior changes.
 */

:root{--nx-ref-bg:#09090b;--nx-ref-panel:#27272a;--nx-ref-text:#c4c4c4;--nx-ref-white:#fff;--nx-ref-muted:#948a8a;--nx-ref-green:#4caf50}

/* Reference page foundation. Header/nav/category logic remains the existing dynamic theme implementation. */
body.home,body.single-post{background:var(--nx-ref-bg);color:var(--nx-ref-text);font-family:Poppins,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.home .content-wrapper,body.single-post .content-wrapper{max-width:1170px;width:calc(100% - 20px);margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px}
body.home .primary-header > .navbar,body.home .primary-header > .nx-hnav,
body.single-post .primary-header > .navbar,body.single-post .primary-header > .nx-hnav{max-width:1170px}

/* HOME — source movie grid. */
body.home .nx-ref-home-main{display:block;width:100%;padding:40px 0 58px}
body.home .nx-ref-blog-wrapper{display:block;width:100%}
body.home .nx-ref-movie-grid{display:flex;flex-wrap:wrap;margin:0 -15px -40px;padding:0;align-items:flex-start}
body.home .nx-ref-post-item{float:none;width:20%;min-height:1px;padding:0 15px;margin:0 0 30px;box-sizing:border-box}
body.home .nx-ref-post-item-wrap{display:block;width:100%}
body.home .nx-ref-blog-pic{position:relative;border:2px solid transparent;border-radius:10px;box-shadow:0 0 5px #fff;background:var(--nx-ref-panel);overflow:hidden}
body.home .nx-ref-blog-pic-wrap{position:relative;width:100%;overflow:hidden;border-radius:8px}
body.home .nx-ref-blog-img{position:relative;display:block;width:100%;overflow:hidden;border-radius:8px;line-height:0;text-decoration:none!important;background:#1f1f22}
body.home .nx-ref-blog-img:after{content:"";position:absolute;inset:0;display:block;opacity:0;visibility:hidden;pointer-events:none;background:linear-gradient(to left bottom,rgba(0,0,0,0) 50%,rgba(0,0,0,.1) 50%);transition:opacity .3s,visibility .3s}
body.home .nx-ref-blog-pic-wrap:hover .nx-ref-blog-img:after{opacity:1;visibility:visible}
body.home .nx-ref-blog-picture{display:block;width:100%!important;max-width:100%;height:auto!important;aspect-ratio:2/3;object-fit:cover;border-radius:8px;transform:none!important;transition:none!important}
body.home .nx-ref-blog-img .ul-placeholder-bg{display:none!important}
body.home .nx-ref-listing-content{padding:.5px 0;margin-top:20px;text-align:left}
body.home .nx-ref-mytime{color:var(--nx-ref-muted)!important;text-align:center!important;font-size:12px;line-height:1.5;margin:0 0 10px}
body.home .nx-ref-post-title{margin:-5px 0 0;padding:0;background:none;border:0;box-shadow:none;font:500 15px/1.35 Poppins,Arial,sans-serif;word-break:break-word;text-align:left}
body.home .nx-ref-post-title a{display:inline;color:#fff!important;text-decoration:none!important}
body.home .nx-ref-post-title a:hover,body.home .nx-ref-post-title a:focus{color:#fff!important;text-decoration:none!important;opacity:.86}
body.home .nx-ref-blog-pagination{clear:both;margin-top:40px;padding-top:20px;text-align:center}
body.home .nx-ref-blog-pagination .pagination{margin:0;text-align:center}
body.home .nx-ref-blog-pagination .pagination>li>a,body.home .nx-ref-blog-pagination .pagination>li>span{border:1px solid rgba(255,255,255,.12);border-radius:0!important;background:var(--nx-ref-panel);color:#fff!important;padding:10px 15px;min-width:40px;min-height:40px;margin:3px;font-weight:500}
body.home .nx-ref-blog-pagination .pagination>.active>a,body.home .nx-ref-blog-pagination .pagination>.active>span,
body.home .nx-ref-blog-pagination .pagination>li>a:hover{background:linear-gradient(to left bottom,#cc0000 50%,#b80000 50%)!important;border-color:transparent!important;color:#fff!important}

@media(max-width:991px){body.home .nx-ref-post-item{width:25%}}
@media(max-width:767px){body.home .nx-ref-post-item{width:33.33333333%;padding-left:10px;padding-right:10px}body.home .nx-ref-movie-grid{margin-left:-10px;margin-right:-10px}}
@media(max-width:575px){body.home .nx-ref-post-item{width:50%;padding-left:7px;padding-right:7px;margin-bottom:25px}body.home .nx-ref-movie-grid{margin-left:-7px;margin-right:-7px;margin-bottom:-30px}body.home .nx-ref-listing-content{margin-top:14px}body.home .nx-ref-post-title{font-size:13px}body.home .nx-ref-mytime{font-size:11px;margin-bottom:7px}}

/* The supplied reference has no separate "Latest Movies" bar before its grid. */
body.home .category-name{display:none!important}

/* SINGLE — only the article-reading column changes to the supplied reference look. */
body.single-post .nx-ref-single-layout{display:flex;flex-wrap:wrap;align-items:flex-start;margin-left:-15px;margin-right:-15px}
body.single-post .nx-ref-single-main{margin-top:0;background:var(--nx-ref-panel);box-shadow:0 1px 2px rgba(0,0,0,.05);padding:40px 20px!important;border-right:2px solid rgba(0,0,0,.1)}
body.single-post .nx-ref-single-page-body{display:block;background:transparent!important;color:var(--nx-ref-text);box-shadow:none!important;margin:0!important;padding:0!important;text-align:left!important}
body.single-post .nx-ref-single-service-content{display:block;width:100%;max-width:100%;margin:0;padding:0}
body.single-post .nx-ref-single-title{margin:0 0 8px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;color:#fff!important;font:700 30px/1.35 Poppins,Arial,sans-serif!important;letter-spacing:0;text-transform:none;text-decoration:none;word-break:break-word;text-align:left}
body.single-post .nx-ref-single-meta{margin:0 0 26px;padding:0;color:rgba(255,255,255,.64);font:400 12px/1.8 Poppins,Arial,sans-serif;text-align:left}
body.single-post .nx-ref-single-meta .date-time{display:inline-flex;align-items:center;gap:6px}
body.single-post .nx-ref-entry-content{color:var(--nx-ref-text);font:400 14px/1.8 Poppins,Arial,sans-serif;text-align:left;overflow-wrap:anywhere}
body.single-post .nx-ref-entry-content:before,body.single-post .nx-ref-entry-content:after{content:"";display:table;table-layout:fixed}
body.single-post .nx-ref-entry-content:after{clear:both}
body.single-post .nx-ref-entry-content p{color:var(--nx-ref-text);margin:0 0 20px;line-height:1.8;text-align:left}
body.single-post .nx-ref-entry-content h1,body.single-post .nx-ref-entry-content h2,body.single-post .nx-ref-entry-content h3,body.single-post .nx-ref-entry-content h4,body.single-post .nx-ref-entry-content h5,body.single-post .nx-ref-entry-content h6{font-family:Poppins,Arial,sans-serif;color:#fff;line-height:1.35;text-transform:none}
body.single-post .nx-ref-entry-content h2{font-size:23px}
body.single-post .nx-ref-entry-content h3{font-size:20px;margin:24px 0 16px}
body.single-post .nx-ref-entry-content h5{font-size:16px;margin:24px 0 16px}
body.single-post .nx-ref-entry-content .has-text-align-center,body.single-post .nx-ref-entry-content center{text-align:center!important}
body.single-post .nx-ref-entry-content a{color:#fff;text-decoration:underline}
body.single-post .nx-ref-entry-content img{display:block!important;width:auto!important;max-width:100%!important;height:auto!important;margin:18px auto!important;object-fit:contain!important;cursor:default}
body.single-post .nx-ref-entry-content figure,body.single-post .nx-ref-entry-content .wp-block-image{max-width:100%;margin:18px auto;text-align:center}
body.single-post .nx-ref-entry-content hr{height:0;border:0;border-top:1px solid rgba(255,255,255,.25);margin:24px 0}
body.single-post .nx-ref-entry-content .container{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important}
body.single-post .nx-ref-entry-content .download-links-div{text-align:center}
body.single-post .nx-ref-entry-content .btn,body.single-post .nx-ref-entry-content .dwd-button{display:inline-block;min-width:210px!important;max-width:100%;margin:7px 5px 15px!important;padding:10px 18px!important;border:0!important;border-radius:3px!important;background:linear-gradient(135deg,rgba(103,223,3,.72),rgba(19,86,213,.72))!important;color:#fff!important;font-weight:600!important;line-height:1.45;text-align:center;text-decoration:none!important;box-shadow:none!important}
body.single-post .nx-ref-entry-content .btn:hover,body.single-post .nx-ref-entry-content .dwd-button:hover{filter:brightness(1.12);color:#fff!important}
body.single-post .nx-ref-entry-content iframe,body.single-post .nx-ref-entry-content video{display:block;max-width:100%;margin-left:auto;margin-right:auto}

/* Keep MoviePilot's imported screenshot block flush/full-width inside the reference content panel. */
body.single-post.mp-pc-imported-post .nx-ref-entry-content .mp-site2-reference-gallery{max-width:none}

@media(max-width:991px){
 body.single-post .nx-ref-single-layout{display:block}
 body.single-post .nx-ref-single-main{width:100%;border-right:0;padding:30px 20px!important}
 body.single-post .primary-sidebar{width:100%;margin-top:40px}
}
@media(max-width:767px){
 body.single-post .nx-ref-single-main{padding:24px 15px!important}
 body.single-post .nx-ref-single-title{font-size:26px!important}
 body.single-post .nx-ref-single-meta{margin-bottom:20px}
 body.single-post .nx-ref-entry-content{font-size:14px;line-height:1.75}
}
@media(max-width:480px){
 body.single-post .nx-ref-single-main{padding:20px 12px!important}
 body.single-post .nx-ref-single-title{font-size:23px!important}
 body.single-post .nx-ref-entry-content .btn,body.single-post .nx-ref-entry-content .dwd-button{display:block;width:100%;min-width:0!important;margin:7px 0 12px!important}
}

/* Footer tone from the supplied reference home. Existing dynamic footer text/links stay unchanged. */
body.home .primay-footer,body.single-post .primay-footer{background:#000;color:#cfcfcf;margin-top:0;border-top:0;padding:14px 0 10px}
body.home .primay-footer a,body.single-post .primay-footer a{color:#fff}
