/*
 * assets/css/style.css
 * VegaMovies PHP — Main Stylesheet
 * Ported from VegaMovies Premium Blogger Template.
 * ALL original class names preserved for JS compatibility.
 *
 * Structure:
 *   1.  CSS Custom Properties (theme variables)
 *   2.  Reset & Base
 *   3.  Typography
 *   4.  Layout Wrappers
 *   5.  Notice Bar
 *   6.  Header & Logo
 *   7.  Navigation (main-menu-wrap, freebify-free-main-menu)
 *   8.  Mobile Menu (slide-menu)
 *   9.  Hero Section
 *   10. Category Quick-Bar (menu-cat)
 *   11. Ad Slots
 *   12. Movie Grid (index-post-wrap, index-post)
 *   13. Movie Detail (item-post)
 *   14. Download Buttons (mv_button_css)
 *   15. Pagination (blog-pager)
 *   16. Related Posts
 *   17. Trending Widget
 *   18. Post Footer (share, tags)
 *   19. Search (live dropdown)
 *   20. Footer
 *   21. Utilities & Badges
 *   22. Responsive
*/

/* =============================================================================
   1. CSS CUSTOM PROPERTIES
   Defaults match Blogger template values; overridden by footer.php inline style
   ============================================================================= */
:root {
    --main-color:             #fe6d62;
    --header-bg:              #000000;
    --header-color:           #ffffff;
    --header-hover-color:     #fe6d62;
    --hero-bg:                #191919;
    --hero-color:             #ffffff;
    --hero-search-color:      #ffffff;
    --submenu-bg:             #ffffff;
    --submenu-color:          #171c24;
    --submenu-hover-color:    #fe6d62;
    --megamenu-bg:            #ffffff;
    --megamenu-color:         #171c24;
    --megamenu-hover-color:   #6c6cfe;
    --mobilemenu-hover-color: #6c6cfe;
    --footer-bg:              #000000;
    --footer-color:           #ffffff;
    --footer-hover-color:     #6c6cfe;
    --footer-text-color:      #a4a4a4;
    --footerbar-bg:           #000000;
    --footerbar-color:        #ffffff;
    --button-bg:              #fe6d62;
    --button-color:           #ffffff;
    --button-hover-bg:        #c73707;
    --post-title-hover-color: #6c6cfe;
    --title-hover-color:      #6c6cfe;
    --border-color:           rgba(255,255,255,0.08);
    --body-bg:                #111111;
    --outer-bg:               #141414;
    --text-color:             #cccccc;
    --title-color:            #ffffff;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
*,*::before,*::after { box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: 'Poppins', 'Josefin Sans', Arial, sans-serif;
    font-size: 14px; font-weight: 400;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--main-color); text-decoration: none; transition: color .17s; }
a:hover { color: var(--main-color); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 600; color: var(--title-color); }
p { margin: 0 0 12px; }

/* =============================================================================
   3. LAYOUT WRAPPERS
   ============================================================================= */
#outer-wrapper { position: relative; float: left; width: 100%; background: var(--outer-bg); }
.container { max-width: 1104px; margin: 0 auto; padding: 0 16px; }
.row-x1 { position: relative; float: left; width: 100%; }
#content-wrapper { position: relative; float: left; width: 100%; padding: 20px 0 40px; }
#main-wrapper { position: relative; float: left; width: 100%; }

/* =============================================================================
   4. NOTICE BAR
   ============================================================================= */
#Bar {
    position: relative; float: left; width: 100%;
    background: var(--main-color); color: #fff;
    padding: 8px 40px 8px 16px; font-size: 13px;
    text-align: center; z-index: 100;
}
#Bar #right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
#Bar #right a { color: #fff; font-size: 18px; font-weight: 700; opacity: .8; }
#Bar #right a:hover { opacity: 1; }

/* =============================================================================
   5. HEADER
   ============================================================================= */
#freebify-free-header-wrapper {
    position: relative; float: left; width: 100%;
    background: var(--header-bg); z-index: 50;
}
.headerify-wrap, .headerify { position: relative; float: left; width: 100%; }
.headerify-inner { position: relative; float: left; width: 100%; }
.headerify-items {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 16px;
}
.main-logo-wrap { flex-shrink: 0; }
.logo-img { display: flex; align-items: center; gap: 10px; }
.logo-img img { height: 44px; width: auto; object-fit: contain; }

/* Desktop search */
#searchb { position: relative; flex: 1; max-width: 480px; }
#hbz-searchbox {
    display: flex; align-items: center;
    background: rgba(255,255,255,.07); border-radius: 8px;
    overflow: hidden; border: 1px solid rgba(255,255,255,.1);
    transition: border-color .2s;
}
#hbz-searchbox:focus-within { border-color: var(--main-color); }
#hbz-input {
    flex: 1; background: transparent; border: 0; outline: none;
    color: var(--header-color); font-size: 14px;
    padding: 10px 14px; font-family: inherit;
}
#hbz-input::placeholder { color: rgba(255,255,255,.4); }
.hbz-buttonwrap { padding: 0 8px; }
.hbz-submit {
    background: transparent; border: 0; cursor: pointer;
    color: var(--header-color); opacity: .6; font-size: 16px;
    width: 32px; height: 32px;
}
.hbz-submit::before { content: '\f002'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.hbz-submit:hover { opacity: 1; }

/* Toggle buttons */
.main-toggle-wrap { display: flex; align-items: center; gap: 4px; }
.main-toggle-style {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: var(--header-color);
    font-size: 18px; cursor: pointer; border-radius: 6px;
    transition: color .17s, background .17s;
}
.main-toggle-style:hover { color: var(--header-hover-color); background: rgba(255,255,255,.06); }
.search-toggle.show::after  { content: '\f002'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.search-toggle.hide::after  { content: '\f00d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.mobile-menu-toggle::before { content: '\f0c9'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.search-toggle.hide { display: none; }
.search-active .search-toggle.show { display: none; }
.search-active .search-toggle.hide { display: inline-flex; }

/* Nav search overlay */
#nav-search-wrap {
    display: none; position: absolute; top: 0; left: 0;
    width: calc(100% - 58px); height: 58px;
    background: var(--header-bg); z-index: 25;
    padding: 10px 20px 10px 0; box-sizing: border-box;
}
#nav-search-wrap .search-form { position: relative; width: 100%; height: 36px; }
#nav-search-wrap .search-input {
    float: left; width: 100%; height: 36px;
    background: transparent; border: 0; outline: none;
    color: var(--header-color); font-size: 14px; padding: 0;
}
#nav-search-wrap .search-input::placeholder { color: rgba(255,255,255,.4); }
#nav-search-wrap .search-action {
    position: absolute; right: 0; top: 0;
    width: 36px; height: 36px; background: transparent; border: 0;
    color: var(--header-color); font-size: 18px; cursor: pointer; opacity: .5;
}
#nav-search-wrap .search-action::before { content: '\f002'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }

/* Sticky nav */
.headerify.is-fixed {
    position: fixed; top: -100%; left: 0; right: 0; z-index: 200;
    background: var(--header-bg); box-shadow: 0 2px 10px rgba(0,0,0,.5);
    transition: top .25s ease;
}
.headerify.is-fixed.show { top: 0; }

/* =============================================================================
   6. NAVIGATION — .main-menu-wrap / #freebify-free-main-menu-nav
   ============================================================================= */
.main-menu-wrap {
    position: relative; float: left; width: 100%;
    background: rgba(0,0,0,.6);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.mtext { display: none; } /* mobile only */
#freebify-free-main-menu-nav {
    display: flex; align-items: center; flex-wrap: wrap;
    list-style: none; margin: 0; padding: 0;
}
#freebify-free-main-menu-nav > li {
    position: relative; border-right: 1px solid rgba(255,255,255,.06);
}
#freebify-free-main-menu-nav > li > a {
    display: block; height: 46px; line-height: 46px;
    padding: 0 18px; font-size: 13px; font-weight: 600;
    color: #ececec; text-transform: uppercase;
    transition: color .17s, background .17s; white-space: nowrap;
}
#freebify-free-main-menu-nav > li:hover > a,
#freebify-free-main-menu-nav > li > a:hover { color: var(--main-color); }

/* Dropdown submenu */
#freebify-free-main-menu-nav > li > ul {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--submenu-bg); box-shadow: 0 8px 24px rgba(0,0,0,.35);
    border-radius: 0 0 8px 8px; z-index: 100;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .17s, transform .17s, visibility .17s;
    list-style: none; padding: 6px 0; margin: 0;
}
#freebify-free-main-menu-nav > li:hover > ul {
    opacity: 1; visibility: visible; transform: translateY(0);
}
#freebify-free-main-menu-nav > li > ul > li > a {
    display: block; padding: 9px 16px;
    color: var(--submenu-color); font-size: 13px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: color .17s, padding-left .17s;
}
#freebify-free-main-menu-nav > li > ul > li > a:hover {
    color: var(--submenu-hover-color); padding-left: 20px;
}
#freebify-free-main-menu-nav > li.has-sub > a::after {
    content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 9px; margin-left: 5px;
}

/* =============================================================================
   7. CATEGORY QUICK-BAR
   ============================================================================= */
.menu-cat-wrap {
    position: relative; float: left; width: 100%;
    background: #0a0a0a; padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    overflow-x: auto; white-space: nowrap;
}
.menu-cat-wrap .container { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.headbt {
    display: inline-block; padding: 5px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
    background: rgba(255,255,255,.07); color: #ccc;
    border: 1px solid rgba(255,255,255,.1); cursor: pointer;
    transition: all .17s; white-space: nowrap;
}
.headbt:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }
.buttontg { background: rgba(0,136,204,.15); border-color: rgba(0,136,204,.3); color: #29b6f6; }
.buttontg:hover { background: #0088cc; border-color: #0088cc; }
.howtodl { background: rgba(254,109,98,.1); border-color: rgba(254,109,98,.3); color: var(--main-color); }

/* =============================================================================
   8. HERO SECTION
   ============================================================================= */
#hero-wrapper {
    position: relative; float: left; width: 100%;
    background: var(--hero-bg);
    padding: 60px 0;
    overflow: hidden;
}
#hero-wrapper::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(254,109,98,.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section { position: relative; z-index: 1; text-align: center; }
.hero-title {
    font-size: 36px; font-weight: 700; color: var(--hero-color);
    margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-description { color: rgba(255,255,255,.65); font-size: 15px; margin-bottom: 28px; }
.hero-search-form { max-width: 620px; margin: 0 auto; }
.hero-search-wrap { display: flex; background: rgba(255,255,255,.1); border-radius: 50px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.hero-search-input {
    flex: 1; background: transparent; border: 0; outline: none;
    padding: 14px 20px; color: #fff; font-size: 15px; font-family: inherit;
}
.hero-search-input::placeholder { color: rgba(255,255,255,.5); }
.hero-search-btn {
    background: var(--main-color); border: 0; color: #fff;
    padding: 0 28px; font-size: 15px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: background .17s;
}
.hero-search-btn:hover { background: var(--button-hover-bg); }

/* =============================================================================
   9. SORT BAR
   ============================================================================= */
.sort-bar { float: left; width: 100%; margin-bottom: 16px; }
.sort-bar-inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; }
.sort-label { color: rgba(255,255,255,.5); font-size: 12px; }
.sort-link {
    padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,.6); background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1); transition: all .17s;
}
.sort-link:hover,.sort-link.active {
    background: var(--main-color); color: #fff; border-color: var(--main-color);
}

/* =============================================================================
   10. MOVIE GRID — index-post-wrap, index-post
       Preserves all Blogger class names for JS compatibility
   ============================================================================= */
.blog-posts-title.title-wrap { float: left; width: 100%; margin-bottom: 16px; }
.blog-posts-title .title {
    font-size: 18px; font-weight: 700; color: var(--title-color);
    padding-bottom: 10px; border-bottom: 2px solid var(--main-color);
    display: inline-block;
}

.blog-posts.index-post-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    float: left; width: 100%; margin-bottom: 24px;
}

/* article.blog-post — base card */
.blog-post.index-post {
    position: relative; background: #1a1a1a;
    border-radius: 8px; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid rgba(255,255,255,.06);
}
.blog-post.index-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
}

/* Poster — .entry-image-wrap .entry-thumb */
.entry-image-wrap {
    position: relative; display: block; width: 100%;
    padding-top: 150%; /* 2:3 poster ratio */
    overflow: hidden; background: #111;
}
.entry-image-wrap.is-image .entry-thumb {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-color: #1a1a1a;
    transition: transform .3s ease, opacity .3s;
}
.entry-image-wrap:hover .entry-thumb { transform: scale(1.05); }
.entry-image-wrap .entry-thumb.loaded { background-color: transparent; }

/* Overlaid badges */
.quality-badge {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
    color: #fff; letter-spacing: .5px; text-transform: uppercase;
}
.badge-4k   { background: #8b5cf6; }
.badge-fhd  { background: #3b82f6; }
.badge-hd   { background: #10b981; }
.badge-sd   { background: #f59e0b; }
.badge-default { background: #6b7280; }

.trending-badge {
    position: absolute; top: 8px; left: 8px; z-index: 5;
    background: var(--main-color); color: #fff;
    padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
}
.featured-badge {
    position: absolute; bottom: 8px; right: 8px; z-index: 5;
    background: #f59e0b; color: #000; border-radius: 50%;
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}

/* Entry header */
.entry-header { padding: 10px 10px 12px; }
.entry-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.entry-category.m-item a {
    font-size: 11px; font-weight: 600; color: var(--main-color);
    text-transform: uppercase; letter-spacing: .5px;
}
.entry-time.m-item, .published.m-item {
    font-size: 11px; color: rgba(255,255,255,.4);
}
.t-label.m-item { color: rgba(255,255,255,.3); }

/* entry-title — preserving Blogger class */
.entry-title { font-size: 13px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; color: #fff; }
.entry-title a { display: block; color: #fff; transition: color .17s; }
.entry-title a:hover { color: var(--post-title-hover-color); }
.entry-title-link { display: block; }

/* Extra info row */
.entry-info-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: rgba(255,255,255,.45); margin-top: 4px; }
.entry-info-row span i { margin-right: 3px; }
.info-rating i { color: #f5c518; }

/* No results */
.no-results {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
    color: rgba(255,255,255,.4);
}
.no-results i { font-size: 48px; opacity: .3; margin-bottom: 16px; }

/* =============================================================================
   11. MOVIE DETAIL PAGE — item-post
   ============================================================================= */
article.item-post { float: left; width: 100%; }

#breadcrumb {
    float: left; width: 100%; padding: 10px 0; margin-bottom: 16px;
    font-size: 13px; color: rgba(255,255,255,.4);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
#breadcrumb a { color: rgba(255,255,255,.5); }
#breadcrumb a:hover { color: var(--main-color); }
#breadcrumb .delimiter::before {
    content: '/'; margin: 0 6px; color: rgba(255,255,255,.3);
}
#breadcrumb .current { color: rgba(255,255,255,.7); }

.item-post-inner { float: left; width: 100%; }

.blog-entry-header { float: left; width: 100%; margin-bottom: 24px; }

/* H1 on detail page */
h1.entry-title {
    font-size: 26px; font-weight: 700; line-height: 1.3;
    color: var(--title-color); margin-bottom: 12px;
}

.entry-meta.has-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.entry-views.m-item { font-size: 12px; color: rgba(255,255,255,.4); }

/* Movie info layout */
.entry-content-wrap { float: left; width: 100%; }
.post-body.entry-content { float: left; width: 100%; }

.movie-info-wrap { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.movie-poster-wrap { flex-shrink: 0; width: 200px; }
.movie-poster-wrap .entry-image-wrap { padding-top: 0; height: auto; }
.movie-poster-wrap .entry-image-wrap img { width: 100%; border-radius: 8px; }

.movie-details-wrap { flex: 1; min-width: 240px; }
.movie-info-table { width: 100%; border-collapse: collapse; }
.movie-info-table th,
.movie-info-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; text-align: left; }
.movie-info-table th { color: rgba(255,255,255,.5); font-weight: 500; width: 110px; white-space: nowrap; }
.movie-info-table td { color: rgba(255,255,255,.85); }
.imdb-rating { font-weight: 700; color: #f5c518; }

.movie-description { float: left; width: 100%; margin-bottom: 24px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.75); }

.trailer-btn { display: inline-flex; margin-top: 10px; font-size: 13px; }

/* =============================================================================
   12. DOWNLOAD BUTTONS — .mv_button_css (Blogger original class preserved)
   ============================================================================= */
.download-section-wrap { float: left; width: 100%; margin-bottom: 24px; }
.download-section-title { margin-bottom: 14px; }
.download-section-title h3 { font-size: 16px; font-weight: 700; color: #fff; }

.download-group { margin-bottom: 20px; }
.download-group-header { margin-bottom: 10px; }
.quality-section-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: .5px;
}

.download-buttons-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* THE ORIGINAL mv_button_css CLASS — preserved exactly */
.mv_button_css {
    display: inline-flex; align-items: center;
    background: var(--button-bg); color: var(--button-color) !important;
    padding: 10px 18px; border-radius: 6px;
    font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; border: none; text-decoration: none;
    transition: background .17s, transform .1s;
    min-width: 140px;
}
.mv_button_css:hover { color: #fff !important; background: var(--button-hover-bg); transform: translateY(-1px); }
.mv_button_css img { width: 13px; }
.mv_button_css span {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 2px 8px; background: rgba(0,0,0,.42);
    margin-right: 10px; border-radius: 3px; font-size: 11px;
    position: relative;
}
.mv_button_css span::after {
    content: ''; position: absolute; top: 50%; left: 100%;
    border: solid transparent; height: 0; width: 0; pointer-events: none;
    border-left-color: rgba(0,0,0,.42); border-width: 5px; margin-top: -5px;
}
.mv_button_css small { font-size: 11px; opacity: .8; margin-left: 6px; }
.mv_button_css.btn-stream { background: #1565c0; }
.mv_button_css.btn-stream:hover { background: #0d47a1; }

/* Embed modal */
#embed-modal {
    position: fixed; inset: 0; z-index: 1000;
    align-items: center; justify-content: center;
    display: none;
}
#embed-modal.active { display: flex; }
.embed-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.embed-modal-inner {
    position: relative; z-index: 1; width: 90%; max-width: 900px;
    background: #111; border-radius: 12px; overflow: hidden;
}
.embed-container { position: relative; padding-top: 56.25%; }
.embed-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-close {
    position: absolute; top: 10px; right: 14px; z-index: 10;
    background: rgba(0,0,0,.6); border: 0; color: #fff;
    font-size: 22px; cursor: pointer; border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}

/* =============================================================================
   13. POST FOOTER — tags, share
   ============================================================================= */
.post-footer { float: left; width: 100%; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }
.entry-tags { margin-bottom: 14px; }
.tags-label { color: rgba(255,255,255,.4); font-size: 12px; margin-right: 6px; }
.label-link {
    display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px;
    background: rgba(255,255,255,.07); color: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.1); margin: 3px 4px 3px 0;
    transition: all .17s;
}
.label-link:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }

/* Share buttons — .freebify-free-share-links (preserving class) */
.freebify-free-share-links { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; }
.freebify-free-share-links li a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600;
    color: #fff; cursor: pointer; transition: opacity .17s;
}
.freebify-free-share-links li a:hover { opacity: .85; }
.freebify-free-share-links .facebook-f a  { background: #1877f2; }
.freebify-free-share-links .twitter a     { background: #1da1f2; }
.freebify-free-share-links .whatsapp a    { background: #25d366; }
.freebify-free-share-links .telegram a    { background: #0088cc; }

/* =============================================================================
   14. RELATED POSTS — .freebify-free-related-content
   ============================================================================= */
#related-wrap { float: left; width: 100%; margin-top: 36px; }
.related-title h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.related-posts.index-post-wrap { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* =============================================================================
   15. PAGINATION — .blog-pager (Blogger class preserved)
   ============================================================================= */
#blog-pager { float: left; width: 100%; margin: 24px 0; text-align: center; }
.pagination-wrap { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: 6px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.07); color: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.1); transition: all .17s;
}
.page-link:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }
.page-link.current-page { background: var(--main-color); color: #fff; border-color: var(--main-color); }
.page-link.disabled { opacity: .3; cursor: not-allowed; pointer-events: none; }
.page-ellipsis { color: rgba(255,255,255,.3); padding: 0 4px; }
.pagination-info { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.35); }

/* =============================================================================
   16. TRENDING WIDGET
   ============================================================================= */
.trending-widget-wrap { float: left; width: 100%; margin-top: 36px; }
.trending-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.trending-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border-radius: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.06); }
.trending-rank { min-width: 26px; height: 26px; border-radius: 50%; background: var(--main-color); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trending-thumb { width: 52px; height: 72px; flex-shrink: 0; padding-top: 0; border-radius: 4px; overflow: hidden; position: relative; display: block; background: #111; }
.trending-thumb .entry-thumb { position: absolute; inset: 0; background-size: cover; background-position: center; }
.trending-info { flex: 1; min-width: 0; }
.trending-title { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trending-title:hover { color: var(--main-color); }
.trending-meta { font-size: 11px; color: rgba(255,255,255,.4); }

/* =============================================================================
   17. LIVE SEARCH DROPDOWN
   ============================================================================= */
.live-search-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 500;
    background: #1e1e1e; border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px; box-shadow: 0 16px 48px rgba(0,0,0,.6); overflow: hidden;
}
.ls-list { list-style: none; padding: 6px 0; margin: 0; }
.ls-item a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; transition: background .15s; }
.ls-item a:hover, .ls-item.active a { background: rgba(255,255,255,.07); }
.ls-poster { width: 36px; height: 50px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #111; }
.ls-poster img { width: 100%; height: 100%; object-fit: cover; }
.ls-no-poster { width: 100%; height: 100%; background: #222; }
.ls-info { flex: 1; min-width: 0; }
.ls-title { display: block; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-meta { font-size: 11px; color: rgba(255,255,255,.4); }
.ls-footer { padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.ls-footer a { font-size: 13px; color: var(--main-color); }
.ls-no-results { padding: 14px; font-size: 13px; color: rgba(255,255,255,.4); text-align: center; }

/* =============================================================================
   18. SEARCH PAGE
   ============================================================================= */
.search-header-wrap { float: left; width: 100%; margin-bottom: 24px; }
.search-count { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 4px; display: block; }
.search-page-form { margin: 20px 0; }
.search-page-input-wrap { display: flex; max-width: 640px; gap: 8px; }
.search-page-input {
    flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px; padding: 12px 16px; color: #fff; font-size: 15px;
    font-family: inherit; outline: none;
}
.search-page-input:focus { border-color: var(--main-color); }

/* =============================================================================
   19. FOOTER
   ============================================================================= */
#footer-wrapper { position: relative; float: left; width: 100%; background: var(--footer-bg); }
.footer-widgets-wrap { padding: 40px 0 30px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-widgets-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.footer-widget .widget-title { font-size: 14px; font-weight: 700; color: var(--footer-color); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--main-color); display: inline-block; }
.footer-widget .widget-content { font-size: 13px; color: var(--footer-text-color); }
.footer-widget .link-list li { margin-bottom: 8px; }
.footer-widget .link-list a { color: var(--footer-text-color); transition: color .17s; }
.footer-widget .link-list a:hover { color: var(--footer-hover-color); }

/* Tag cloud */
.ktag {
    display: inline-block; padding: 4px 10px; margin: 3px;
    border-radius: 4px; font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.1); transition: all .17s;
}
.ktag:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }

/* Social */
.social { display: flex; gap: 8px; }
.social li a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    font-size: 15px; transition: all .17s;
}
.social.social-bg-hover li.telegram a:hover  { background: #0088cc; }
.social.social-bg-hover li.facebook-f a:hover { background: #1877f2; }
.social.social-bg-hover li.twitter a:hover    { background: #1da1f2; }

/* Footer bar */
.footerbar { padding: 14px 0; background: var(--footerbar-bg); }
.footer-copyright { text-align: center; font-size: 12px; color: var(--footerbar-color); opacity: .6; }

/* =============================================================================
   20. MOBILE SLIDE MENU
   ============================================================================= */
#slide-menu {
    position: fixed; top: 0; left: -280px; width: 280px; height: 100vh;
    background: #fff; z-index: 9999; transition: left .25s ease;
    overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.4);
    display: flex; flex-direction: column;
}
body.nav-active #slide-menu { left: 0; }
.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998;
    opacity: 0; visibility: hidden; transition: all .25s;
}
body.nav-active .overlay { opacity: 1; visibility: visible; }
.slide-menu-header { background: #1a1a1a; padding: 12px 16px; display: flex; align-items: center; }
.mobile-search { flex: 1; }
.mobile-search .search-form { display: flex; background: rgba(255,255,255,.1); border-radius: 20px; overflow: hidden; }
.mobile-search .search-input { flex: 1; background: transparent; border: 0; outline: none; padding: 8px 12px; color: #fff; font-size: 13px; }
.mobile-search .search-action { background: transparent; border: 0; color: #fff; padding: 0 10px; cursor: pointer; opacity: .6; }
.mobile-search .search-action::before { content: '\f002'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.hide-freebify-free-mobile-menu { cursor: pointer; color: #fff; font-size: 20px; padding: 0 8px; }
.hide-freebify-free-mobile-menu::before { content: '\f00d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.freebify-free-mobile-menu { flex: 1; }
#main-mobile-nav { list-style: none; padding: 8px 0; margin: 0; }
#main-mobile-nav li a { display: block; padding: 12px 20px; color: #333; font-size: 13px; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
#main-mobile-nav li a:hover,
#main-mobile-nav li.show > a { color: var(--main-color); }
#main-mobile-nav .m-sub { display: none; background: #f8f8f8; }
#main-mobile-nav .m-sub li a { padding-left: 34px; font-weight: 400; }
.submenu-toggle { display: inline-block; float: right; width: 40px; height: 40px; line-height: 40px; text-align: center; cursor: pointer; color: #999; }
.submenu-toggle::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 11px; }
#main-mobile-nav li.has-sub.show .submenu-toggle::after { content: '\f077'; }

/* Back to top */
#back-top {
    position: fixed; bottom: 24px; right: 20px; z-index: 500;
    width: 40px; height: 40px; background: var(--main-color); color: #fff;
    border-radius: 50%; display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.35); cursor: pointer; transition: background .17s;
}
#back-top::before { content: '\f077'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 14px; }
#back-top:hover { background: var(--button-hover-bg); }

/* =============================================================================
   21. UTILITY CLASSES
   ============================================================================= */
.text-center { text-align: center; }
.text-muted   { color: rgba(255,255,255,.4) !important; }
.text-small   { font-size: 12px; }
.ad-wrap      { float: left; width: 100%; text-align: center; margin: 16px 0; }
.responsive-video-wrap { position: relative; padding-top: 56.25%; overflow: hidden; border-radius: 8px; }
.responsive-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =============================================================================
   22. RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
    .headerify-items { height: 56px; }
    .logo-img img { height: 36px; }
    #searchb { display: none; } /* hidden on mobile — use slide menu search */

    .main-menu-wrap { display: none; } /* hidden on mobile */
    .mobile-menu-toggle { display: inline-flex !important; }

    h1.entry-title { font-size: 20px; }
    .hero-title { font-size: 24px; }
    .blog-posts.index-post-wrap { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .movie-info-wrap { flex-direction: column; }
    .movie-poster-wrap { width: 140px; }
    .download-buttons-row { flex-direction: column; }
    .mv_button_css { width: 100%; max-width: 100%; }
    .footer-widgets-row { grid-template-columns: 1fr 1fr; gap: 20px; }
    #Bar { font-size: 12px; }
}

@media (max-width: 480px) {
    .blog-posts.index-post-wrap { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .trending-list { grid-template-columns: 1fr; }
    .footer-widgets-row { grid-template-columns: 1fr; }
    .freebify-free-share-links li a span { display: none; }
}

@media (min-width: 769px) {
    .mobile-menu-toggle { display: none !important; }
    #searchb { display: block; }
}

/* =============================================================================
   STATIC PAGES (DMCA, Disclaimer, Privacy, Contact, How To Download)
   ============================================================================= */
.static-page { float: left; width: 100%; }

.static-page-header {
    float: left; width: 100%;
    padding-bottom: 16px; margin-bottom: 24px;
    border-bottom: 2px solid var(--main-color);
}
.static-page-header .entry-title {
    font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.static-page-date { font-size: 12px; color: rgba(255,255,255,.4); }

.static-page-body {
    float: left; width: 100%;
    font-size: 14px; line-height: 1.8;
    color: rgba(255,255,255,.75);
}
.static-page-body h2 {
    font-size: 20px; font-weight: 700; color: #fff;
    margin: 28px 0 12px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.static-page-body h3 {
    font-size: 16px; font-weight: 600; color: #fff;
    margin: 20px 0 8px;
}
.static-page-body p  { margin-bottom: 14px; }
.static-page-body ul,
.static-page-body ol {
    padding-left: 20px; margin-bottom: 14px;
    list-style: disc;
}
.static-page-body ol { list-style: decimal; }
.static-page-body li { margin-bottom: 6px; }
.static-page-body a  { color: var(--main-color); }
.static-page-body a:hover { text-decoration: underline; }
.static-page-body strong { color: #fff; }
.static-page-body em { color: rgba(255,255,255,.6); font-style: italic; }

/* SEO footer block */
.seo-footer-block {
    float: left; width: 100%;
    margin-top: 40px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.seo-footer-block h2 {
    font-size: 15px; font-weight: 600; color: rgba(255,255,255,.5);
    margin-bottom: 10px;
}
.seo-footer-block p {
    font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.7;
    margin-bottom: 12px;
}
.seo-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-tag-cloud .ktag { font-size: 11px; opacity: .7; }
