/* WEEGY v6 targeted corrections: WordPress homepage routing, centered single pages, lean search. */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}
root, rootinside {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Homepage always uses a centered canvas without legacy sidebar offsets. */
body.home #primary.wc-main,
body.front-page #primary.wc-main,
body.blog #primary.wc-main {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(10px, 2vw, 22px) !important;
    padding-right: clamp(10px, 2vw, 22px) !important;
}
body.home .wc-home,
body.front-page .wc-home,
body.blog .wc-home {
    display: block !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Single article/watch page: remove any residual legacy 300px/360px offsets. */
body.single #primary.wc-main,
body.single-post #primary.wc-main {
    display: block !important;
    float: none !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: clamp(10px, 2vw, 24px) clamp(10px, 2vw, 22px) 36px !important;
}
body.single singlecontainer.wc-single-container,
body.single-post singlecontainer.wc-single-container,
body.single singlecontainer,
body.single-post singlecontainer {
    display: block !important;
    float: none !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 1220px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}
body.single singlecontainerright,
body.single-post singlecontainerright,
body.single singlecontainerright.wc-single-main,
body.single-post singlecontainerright.wc-single-main {
    display: block !important;
    float: none !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
body.single singlecontainerleft,
body.single-post singlecontainerleft,
body.single .LeftUI,
body.single-post .LeftUI,
body.single .RightUI,
body.single-post .RightUI {
    display: none !important;
}
body.single wecima,
body.single-post wecima,
body.single .AsideContext,
body.single-post .AsideContext,
body.single singlesections,
body.single-post singlesections,
body.single singlesection,
body.single-post singlesection {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.single .Content--Single-begin,
body.single-post .Content--Single-begin,
body.single .Title--Content--Single-begin,
body.single-post .Title--Content--Single-begin,
body.single .AsideContext,
body.single-post .AsideContext {
    text-align: center !important;
}
body.single .WatchArea,
body.single-post .WatchArea,
body.single .WatchServers,
body.single-post .WatchServers,
body.single .WatchServersEmbed,
body.single-post .WatchServersEmbed,
body.single .Download--Wecima--Single,
body.single-post .Download--Wecima--Single {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}
body.single .WatchServersEmbed .Inner--WatchServersEmbed,
body.single-post .WatchServersEmbed .Inner--WatchServersEmbed {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 1100px !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 12px auto 0 !important;
    overflow: hidden !important;
}
body.single .WatchServersEmbed iframe,
body.single-post .WatchServersEmbed iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}
body.single .WecimaonSocialnetwork,
body.single-post .WecimaonSocialnetwork { display: none !important; }

/* Search: no taxonomy filter panel; keep the results and search heading centered. */
body.search #primary.wc-main {
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.wc-search-page {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.wc-search-results-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 760px) {
    body.single #primary.wc-main,
    body.single-post #primary.wc-main {
        padding: 12px 10px 26px !important;
    }
    body.single singlecontainer,
    body.single-post singlecontainer {
        max-width: 100% !important;
    }
    body.single .Single-begin,
    body.single-post .Single-begin {
        justify-content: center !important;
        text-align: center !important;
    }
    body.single .WatchServersEmbed .Inner--WatchServersEmbed,
    body.single-post .WatchServersEmbed .Inner--WatchServersEmbed {
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }
}
