/*
Theme Name: Mp4Moviez Pro
Theme URI: https://www.mp4moviez5.com/
Author: Antigravity
Author URI: https://www.mp4moviez5.com/
Description: Fast, lightweight, and fully customizable responsive WordPress theme matching Mp4Moviez (https://www.mp4moviez5.com/) with Deep Magenta headers, Yellow announcement bars, Category folders, Movie item rows, Download buttons, and Dark Navy SEO Footer.
Version: 3.5.0
License: GNU General Public License v2 or later
Text Domain: mp4moviez
*/

/* ==========================================================================
   1. BASE & SIDE SPACING (Centered Mobile-First 650px Layout)
   ========================================================================== */
* {
    box-sizing: border-box;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f2f2f2 !important;
    color: #000000 !important;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif !important;
    line-height: 1.4;
    overflow-x: hidden;
}

main {
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-left: 1px solid #dddddd !important;
    border-right: 1px solid #dddddd !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.05) !important;
    display: block !important;
    box-sizing: border-box !important;
}

a {
    text-decoration: none;
    color: red;
}

a:hover, a:focus {
    text-decoration: underline;
    color: #000000;
}

/* ==========================================================================
   2. MP4MOVIEZ HEADER & LOGO SECTION
   ========================================================================== */
.header {
    background-color: #df0174 !important;
    border-bottom: 2px #df0174 solid !important;
    padding: 6px 10px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

.header h1 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #ffffff !important;
    display: inline !important;
    padding: 0 !important;
}

.header-logo-container {
    background-color: #ffffff !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    border: none !important;
    text-align: center !important;
}

.header-logo-container img {
    margin: 0 auto !important;
    padding: 0 !important;
    display: inline-block !important;
    max-width: 280px !important;
    height: auto;
}

.logo-text-backup {
    font-size: 30px;
    font-weight: 900;
    color: #df0174;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    padding: 5px 0;
}

/* ==========================================================================
   3. BACKUP DOMAIN BAR & YELLOW ANNOUNCEMENTS
   ========================================================================== */
.serch {
    background-color: #eeecec !important;
    text-align: center !important;
    border-bottom: 1px solid #ecd5d2 !important;
    border-top: 1px solid #ecd5d2 !important;
    padding: 6px 10px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

.serch a {
    color: blue !important;
    text-decoration: underline !important;
}

.fb {
    background-color: #ffffcc !important;
    color: #333333 !important;
    padding: 4px 6px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border: 1px solid #e1e1ff !important;
    margin: 1px 0 !important;
    text-align: center !important;
}

/* Telegram Button */
.tg-wrap {
    padding: 6px 0 !important;
    background: #ffffff !important;
    text-align: center !important;
    border-bottom: 1px solid #eeeeee !important;
}

.tg-btn-link {
    display: inline-block !important;
    background: #229ED9 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    border-radius: 18px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.tg-btn-link:hover {
    background: #1a80b2 !important;
    color: #ffffff !important;
}

/* 4 Yellow Tags */
.tags {
    background-color: #fff8dc !important;
    border-bottom: 1px dotted #bbbbbb !important;
    border-top: 1px dotted #bbbbbb !important;
    padding: 5px 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 1px 0 !important;
    text-align: left !important;
}

.tags a {
    color: red !important;
    text-decoration: none !important;
}

.tags a:hover {
    color: #000000 !important;
    text-decoration: underline !important;
}

/* Search Box Container */
.header-search-container {
    background-color: #eeecec !important; 
    padding: 6px 10px !important;
    margin: 0 !important;
    width: 100% !important;
    border-top: 1px solid #ecd5d2 !important; 
    border-bottom: 1px solid #ecd5d2 !important; 
    text-align: center !important;
}

form[action="/"], form[action*="?"], .search form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background-color: transparent !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.search input[type="text"] {
    background: #f9f9f9 !important;
    border: 1px solid #aeaeae !important;
    padding: 5px 8px !important;
    color: #333333 !important;
    box-shadow: inset 1px 1px 1px 1px rgba(0,0,0,0.06) !important;
    border-radius: 3px !important;
    font-size: 13.5px !important;
    width: 65% !important;
    max-width: 320px !important;
    outline: none !important;
}

.search input[type="submit"] {
    background: #d67728 !important;
    border: 1px solid #90c45f !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    transition: background 0.15s ease !important;
}

.search input[type="submit"]:hover {
    background: #4275ea !important;
}

/* ==========================================================================
   4. MP4MOVIEZ DEEP MAGENTA SECTION HEADERS (#df0174)
   ========================================================================== */
h2,
.latest-update,
.download-menu,
.download-update,
.category-menu,
.others-update,
.movie-info,
.header-title-magenta,
div[style*="background:#006699"]:has(h2),
div[style*="background:#e8f4f8"]:has(h2),
div[style*="background:#e8f4f8"]:has(h1) {
    background-color: #df0174 !important;
    border-bottom: 1px #df0174 solid !important;
    border-top: 1px #df0174 solid !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

h2 b,
.latest-update b,
.download-menu b,
.download-update b,
.category-menu b,
.others-update b,
.movie-info b,
h2, h1 {
    color: #ffffff !important;
}

/* ==========================================================================
   5. POST HEADINGS (H2 to H6 WITH #e8f4f8 BACKGROUND & DASHED BORDER)
   ========================================================================== */
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
div[style*="background:#e8f4f8"]:has(h2), 
div[style*="background:#e8f4f8"]:has(h3) {
    background: #ebf5fb !important; 
    padding: 6px 8px !important; 
    text-align: center !important; 
    margin: 15px 0 10px 0 !important; 
    font-size: 14px !important; 
    font-weight: bold !important; 
    color: #0b5188 !important; 
    border-top: 1px dashed #0a6ca7 !important; 
    border-bottom: 1px dashed #0a6ca7 !important; 
    border-left: none !important;
    border-right: none !important;
    display: block !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    width: 100% !important;
}

.post-content h2 strong,
.post-content h3 strong,
.post-content h4 strong,
.post-content h5 strong,
.post-content h6 strong {
    font-weight: bold !important;
    color: #0b5188 !important;
}

/* ==========================================================================
   6. MOVIE ITEM ROWS (.A10 & .fl - MP4MOVIEZ AUTHENTIC STYLING)
   ========================================================================== */
.A10, .fl {
    margin: 0 !important;
    padding: 4px 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: left !important;
    background: #fafafa !important;
    border-bottom: 1px solid #ecd5d2 !important;
    transition: background 0.1s ease !important;
}

.A10:nth-child(even), .fl:nth-child(even) {
    background: #eeecec !important;
}

.A10:hover, .fl:hover {
    background: #fef6c4 !important;
}

.A10 table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.A10 td {
    padding: 2px 4px !important;
    vertical-align: middle !important;
}

.row-thumb, .movie-thumb-img {
    border: 1px solid #cccccc !important;
    border-radius: 3px !important;
    padding: 1px !important;
    object-fit: cover !important;
    display: block !important;
    width: 60px !important;
    height: 75px !important;
    background: #f9f9f9 !important;
}

.row-title, .moviename {
    color: red !important;
    font-weight: bold !important;
    font-size: 13.5px !important;
    margin-bottom: 2px !important;
    line-height: 1.35 !important;
    display: inline !important;
}

.row-badge {
    display: inline-block !important;
    padding: 2px 5px !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border-radius: 2px !important;
    background-color: #c56d01 !important;
}

.duration {
    color: #c56d01 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    display: inline !important;
}

.description {
    color: #9a01fa !important;
    font-size: 12px !important;
    font-weight: bold !important;
    display: inline !important;
}

/* ==========================================================================
   7. DYNAMIC CATEGORIES (YELLOW FOLDER ICONS & FULL WIDTH)
   ========================================================================== */
.dynamic-categories {
    padding: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
}

.dynamic-categories ul,
.dynamic-categories .categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    width: 100% !important;
}

.dynamic-categories li.cat-item,
.movie,
.movies {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.dynamic-categories li.cat-item a,
.movie a,
.movies a {
    display: block !important;
    background: #fafafa !important;
    border-bottom: 1px #ecd5d2 solid !important;
    padding: 8px 10px 8px 38px !important;
    font-family: Arial, "Trebuchet MS", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: bold !important;
    color: red !important;
    text-decoration: none !important;
    text-align: left !important;
    transition: background 0.15s ease-in-out !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dynamic-categories li.cat-item:nth-child(even) a,
.movies a {
    background: #eeecec !important;
}

/* Yellow Folder Tab Back */
.dynamic-categories li.cat-item a::before {
    content: "" !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    width: 18px !important;
    height: 12px !important;
    transform: translateY(-40%) !important;
    background: linear-gradient(180deg, #ffe27a 0%, #f7c52e 50%, #e7a900 100%) !important;
    border: 1px solid #d39a00 !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 1px rgba(0,0,0,0.15) !important;
    display: block !important;
    z-index: 1 !important;
}

/* Yellow Folder Front Tab */
.dynamic-categories li.cat-item a::after {
    content: "" !important;
    position: absolute !important;
    left: 11px !important;
    top: calc(50% - 9px) !important;
    width: 8px !important;
    height: 5px !important;
    background: #ffe98d !important;
    border: 1px solid #d39a00 !important;
    border-bottom: 0 !important;
    border-radius: 2px 2px 0 0 !important;
    z-index: 0 !important;
}

.dynamic-categories li.cat-item a:hover,
.movie:hover a,
.movies:hover a {
    background: #fef6c4 !important;
    color: navy !important;
    text-decoration: none !important;
}

/* ==========================================================================
   8. PAGINATION (.pgn & FILMYFLY NAV LINKS)
   ========================================================================== */
.pgn,
.navigation.pagination {
    text-align: center !important;
    padding: 10px 5px !important;
    background: #eeeeee !important;
    font-weight: 700 !important;
    border-top: 1px solid #dddddd !important;
    border-bottom: 1px solid #dddddd !important;
    margin: 10px 0 !important;
}

.pgn a,
.pgn span,
.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
    display: inline-block !important;
    padding: 3px 8px !important;
    margin: 0 2px !important;
    background: #ffffff !important;
    border: 2px solid #2565a4 !important;
    color: #336699 !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.navigation.pagination .nav-links a:hover,
.navigation.pagination .nav-links span.current,
.pgn a:hover,
.pgn span.current {
    background: #2565a4 !important;
    color: #ffffff !important;
    border-color: #2565a4 !important;
}

/* ==========================================================================
   9. DOWNLOAD BUTTON OVERRIDES & ALL POST BUTTONS (PRESERVED 100% UNTOUCHED)
   ========================================================================== */
.post-content p:has(button),
.post-content p:has(a > button),
.post-content p:has(.btn),
.post-content p:has(a > .btn),
.post-content p:has(.dwd-button),
.post-content p:has(a > .dwd-button) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 12px 0 !important;
    text-align: center !important;
}

.post-content p a:has(> button),
.post-content p a:has(> .btn),
.post-content p a:has(> .dwd-button) {
    display: inline-flex !important;
    text-decoration: none !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
}

.post-content a button,
.post-content button,
.post-content .dwd-button,
.post-content .btn,
.post-content .btn-outline,
button.dwd-button,
button.btn,
button.btn-outline,
.btn.btn-sm.btn-outline,
html body a button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 130px !important;
    max-width: 100% !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    margin: 4px !important;
    text-align: center !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.post-content a button:hover,
.post-content button:hover,
.post-content .dwd-button:hover,
.post-content .btn:hover,
.post-content .btn-outline:hover,
html body a button:hover {
    filter: brightness(1.15) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
}

/* Base Green for dwd-button */
button.dwd-button,
.dwd-button,
html body div p a button.dwd-button {
    background-color: #146142 !important;
}

/* Linksdrive 5-color repeating series for multiple buttons */
a:nth-of-type(5n+1) button,
a:nth-of-type(5n+1) .btn,
a:nth-of-type(5n+1) .btn-outline {
    background-color: #146142 !important;
}

a:nth-of-type(5n+2) button,
a:nth-of-type(5n+2) .btn,
a:nth-of-type(5n+2) .btn-outline {
    background-color: #7b3e90 !important;
}

a:nth-of-type(5n+3) button,
a:nth-of-type(5n+3) .btn,
a:nth-of-type(5n+3) .btn-outline {
    background-color: #b38209 !important;
}

a:nth-of-type(5n+4) button,
a:nth-of-type(5n+4) .btn,
a:nth-of-type(5n+4) .btn-outline {
    background-color: #a81e1e !important;
}

a:nth-of-type(5n+5) button,
a:nth-of-type(5n+5) .btn,
a:nth-of-type(5n+5) .btn-outline {
    background-color: #1a56a6 !important;
}

/* Mobile Screen Responsive Optimization for Buttons */
@media (max-width: 600px) {
    .post-content p:has(button),
    .post-content p:has(a > button),
    .post-content p:has(.btn),
    .post-content p:has(a > .btn) {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .post-content button,
    .post-content a button,
    button.dwd-button,
    button.btn,
    button.btn-outline,
    .btn.btn-sm.btn-outline,
    html body a button {
        height: 35px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        min-width: 100px !important;
        margin: 3px 2px !important;
    }
}

/* ==========================================================================
   10. POST CONTENT & SINGLE MOVIE POSTER
   ========================================================================== */
.post-content {
    line-height: 1.6 !important;
    font-size: 14px !important;
    padding: 10px !important;
    width: 100% !important;
}

.post-content p {
    border-bottom: 1px solid #eeeeee !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
}

.post-content p:last-child {
    border-bottom: none !important;
}

.post-content img {
    display: inline-block !important;
    max-width: 98% !important;
    margin: 10px 1% !important;
    border: 1px solid #999999 !important;
    padding: 4px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    border-radius: 3px !important;
}

.post-content .aligncenter {
    display: block !important;
    margin: 10px auto !important;
    max-width: 98% !important;
}

.posterss, .single-movie-poster {
    display: block !important;
    margin: 0 auto 5px !important;
    max-width: 240px !important;
    height: auto !important;
    border: 3px solid #df0174 !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   11. BREADCRUMBS BAR (.down)
   ========================================================================== */
.down {
    background-color: #ffe5f1 !important;
    color: #990000 !important;
    border: 1px solid #ff99cc !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    text-align: center !important;
    margin: 10px 0 !important;
}

.down a {
    color: red !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.down a:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   12. SEO FOOTER & WELCOME COPYRIGHT
   ========================================================================== */
.footer-seo-wrapper {
    background: #0f172a !important;
    color: #e5e7eb !important;
    padding: 25px 15px !important;
    text-align: center !important;
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.8 !important;
    margin-top: 10px !important;
}

.footer-seo-wrapper h2, .footer-seo-wrapper h3 {
    font-size: 16px !important;
    margin: 20px 0 10px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

.footer-seo-wrapper p {
    font-size: 13px !important;
    margin: 10px auto !important;
    max-width: 1100px !important;
    color: #cbd5e1 !important;
    line-height: 1.6 !important;
}

.footer-seo-wrapper hr {
    border: 0 !important;
    height: 1px !important;
    background: linear-gradient(to right, transparent, #374151, transparent) !important;
    margin: 20px auto !important;
    max-width: 900px !important;
}

footer.welcome {
    background-color: #444242 !important;
    color: #edebeb !important;
    border-bottom: 3px groove #f6960d !important;
    padding: 12px 10px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

footer.welcome a,
footer.welcome em {
    color: #edebeb !important;
    text-decoration: none !important;
    font-style: normal !important;
}

footer.welcome a:hover {
    text-decoration: underline !important;
}
