/* WEEGY v9 refinements: archive spacing, watch/download controls, hover menus and mobile header. */

/* Archive pages: remove the legacy 60px wecimaslider top padding that creates an empty band. */
body.archive .wc-main,
body.category .wc-main,
body.taxonomy .wc-main,
body.tag .wc-main,
body[class*="tax-"] .wc-main {
    padding-top: 5px !important;
}
body.archive wecimaslider,
body.category wecimaslider,
body.taxonomy wecimaslider,
body.tag wecimaslider,
body[class*="tax-"] wecimaslider {
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}
body.archive wecimaslider > #my-breadcrumbs,
body.category wecimaslider > #my-breadcrumbs,
body.taxonomy wecimaslider > #my-breadcrumbs,
body.tag wecimaslider > #my-breadcrumbs,
body[class*="tax-"] wecimaslider > #my-breadcrumbs {
    margin: 0 !important;
    padding: 5px 0 8px !important;
    line-height: 1.4 !important;
}

/* Similar titles are clean; same-category grid, 14 cards, no filter tabs/term labels. */
singlerelated.wc-similar-posts {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px auto 0 !important;
    padding: 18px !important;
    background: rgba(17, 21, 29, .82) !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 16px !important;
}
singlerelated.wc-similar-posts > .titleArea {
    display: block !important;
    width: 100% !important;
    margin: 0 0 15px !important;
    text-align: right !important;
}
singlerelated.wc-similar-posts > .titleArea > span {
    display: inline-block !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}
singlerelated.wc-similar-posts .Grid--WecimaPosts {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
    width: 100% !important;
    margin: 0 !important;
}
singlerelated.wc-similar-posts .Grid--WecimaPosts > .GridItem {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Watch server selectors: clear icon and label, with comfortable touch targets. */
body.single .WatchServers,
body.single-post .WatchServers {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}
body.single .WatchServersList ul#watch,
body.single-post .WatchServersList ul#watch {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 10px auto 14px !important;
    padding: 0 !important;
    text-align: initial !important;
}
body.single .WatchServersList ul#watch > li,
body.single-post .WatchServersList ul#watch > li {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    overflow: hidden !important;
    color: #e7ebf2 !important;
    background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.025)) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.16) !important;
    font-family: 'Tajawal', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: right !important;
    text-transform: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}
body.single .WatchServersList ul#watch > li > i.fas.fa-play,
body.single-post .WatchServersList ul#watch > li > i.fas.fa-play {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    color: #fff !important;
    background: var(--theme-primary) !important;
    border: 0 !important;
    border-radius: 50% !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', FontAwesome !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}
body.single .WatchServersList ul#watch > li .wc-server-name,
body.single-post .WatchServersList ul#watch > li .wc-server-name {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
body.single .WatchServersList ul#watch > li.ISActive,
body.single-post .WatchServersList ul#watch > li.ISActive {
    color: #fff !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 28%, #151a23), #151a23) !important;
    border-color: color-mix(in srgb, var(--theme-primary) 65%, transparent) !important;
}
body.single .WatchServersList ul#watch > li.ISActive > i.fas.fa-play,
body.single-post .WatchServersList ul#watch > li.ISActive > i.fas.fa-play {
    color: #fff !important;
    background: var(--theme-primary) !important;
}
body.single .WatchServersList ul#watch > li:hover,
body.single-post .WatchServersList ul#watch > li:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--theme-primary) 50%, transparent) !important;
}

/* Download buttons: the resolution line is the only server label; no duplicate <quality>. */
body.single ul.List--Download--Wecima--Single,
body.single-post ul.List--Download--Wecima--Single {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.single ul.List--Download--Wecima--Single > li,
body.single-post ul.List--Download--Wecima--Single > li {
    min-width: 0 !important;
    margin: 0 !important;
}
body.single ul.List--Download--Wecima--Single > li > a,
body.single-post ul.List--Download--Wecima--Single > li > a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 60px !important;
    padding: 12px 14px !important;
    color: #f4fffb !important;
    background: linear-gradient(135deg, #176d55, #124b42) !important;
    border: 1px solid rgba(42, 210, 164, .24) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
}
body.single ul.List--Download--Wecima--Single > li > a > quality,
body.single-post ul.List--Download--Wecima--Single > li > a > quality { display: none !important; }
body.single ul.List--Download--Wecima--Single > li > a > resolution,
body.single-post ul.List--Download--Wecima--Single > li > a > resolution {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    gap: 9px !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #e2fff4 !important;
    font-family: 'Tajawal', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}
body.single ul.List--Download--Wecima--Single > li > a > resolution > i,
body.single-post ul.List--Download--Wecima--Single > li > a > resolution > i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 9px !important;
    font-size: 15px !important;
}
body.single ul.List--Download--Wecima--Single > li > a > i.fas.fa-download,
body.single-post ul.List--Download--Wecima--Single > li > a > i.fas.fa-download {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 17px !important;
}

/* Share buttons: slightly smaller and centered beneath the movie information. */
.single .-movie-info-share,
.single-post .-movie-info-share {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px auto 4px !important;
    padding: 0 !important;
    text-align: center !important;
}
.single .-movie-info-share > p,
.single-post .-movie-info-share > p {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 0 0 3px !important;
    text-align: center !important;
}
.single .-movie-info-share > a,
.single-post .-movie-info-share > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    font-size: 17px !important;
}

/* Remove the legacy Go-to-top control entirely. */
.GotoTop { display: none !important; }

/* Desktop dropdown: no gap between the parent item and its submenu. */
@media (min-width: 1141px) {
    header.wc-site-header,
    header.wc-site-header .wc-header-shell,
    header.wc-site-header middle--header,
    header.wc-site-header .NavigationMenu { overflow: visible !important; }
    header.wc-site-header .NavigationMenu > li.menu-item-has-children {
        position: relative !important;
        padding-bottom: 0 !important;
    }
    header.wc-site-header .NavigationMenu > li.menu-item-has-children > .sub-menu,
    header.wc-site-header .NavigationMenu > li.menu-item-has-children > ul {
        top: calc(100% - 1px) !important;
        margin-top: 0 !important;
        transform: translateY(0) !important;
        transition: opacity .14s ease, visibility .14s ease !important;
        pointer-events: none !important;
    }
    header.wc-site-header .NavigationMenu > li.menu-item-has-children > .sub-menu::before,
    header.wc-site-header .NavigationMenu > li.menu-item-has-children > ul::before {
        position: absolute !important;
        top: -10px !important;
        right: 0 !important;
        left: 0 !important;
        height: 11px !important;
        content: "" !important;
        background: transparent !important;
        pointer-events: auto !important;
    }
    header.wc-site-header .NavigationMenu > li.menu-item-has-children:hover > .sub-menu,
    header.wc-site-header .NavigationMenu > li.menu-item-has-children:hover > ul,
    header.wc-site-header .NavigationMenu > li.menu-item-has-children.open > .sub-menu,
    header.wc-site-header .NavigationMenu > li.menu-item-has-children.open > ul,
    header.wc-site-header .NavigationMenu > li.menu-item-has-children:focus-within > .sub-menu,
    header.wc-site-header .NavigationMenu > li.menu-item-has-children:focus-within > ul {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Mobile header: menu at the right, centered larger brand, search at the left. */
@media (max-width: 820px) {
    header.wc-site-header { height: 68px !important; min-height: 68px !important; padding: 0 9px !important; }
    rootinside { padding-top: 68px !important; }
    .wc-header-shell {
        display: grid !important;
        grid-template-columns: minmax(82px, .9fr) minmax(0, 1.5fr) 42px !important;
        grid-template-areas: "search brand menu" !important;
        align-items: center !important;
        gap: 7px !important;
        width: 100% !important;
        min-height: 68px !important;
        direction: ltr !important;
    }
    .wc-header-search {
        grid-area: search !important;
        display: flex !important;
        justify-self: start !important;
        order: initial !important;
        flex: initial !important;
        width: 100% !important;
        max-width: 158px !important;
        min-width: 0 !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        direction: ltr !important;
    }
    .wc-header-search input {
        display: block !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 34px !important;
        padding: 0 7px !important;
        font-size: 9px !important;
        direction: rtl !important;
        text-align: right !important;
    }
    .wc-header-search button {
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
    .wc-brand-wrap {
        grid-area: brand !important;
        order: initial !important;
        justify-self: center !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
    .wc-brand {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
    }
    header.wc-site-header .HeaderLogo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: 100% !important;
        color: #fff !important;
        font-size: clamp(20px, 4.8vw, 26px) !important;
        line-height: 1.02 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
    header.wc-site-header .HeaderLogo logotext {
        display: block !important;
        margin-top: 3px !important;
        font-size: 8px !important;
        line-height: 1.1 !important;
    }
    .wc-menu-toggle {
        grid-area: menu !important;
        display: flex !important;
        justify-self: end !important;
        align-items: center !important;
        justify-content: center !important;
        order: initial !important;
        flex: initial !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
    }
    .wc-header-social { display: none !important; }
}
@media (max-width: 380px) {
    .wc-header-shell {
        grid-template-columns: minmax(72px, .85fr) minmax(0, 1.35fr) 38px !important;
        gap: 5px !important;
    }
    header.wc-site-header .HeaderLogo { font-size: 19px !important; }
    header.wc-site-header .HeaderLogo logotext { font-size: 7px !important; }
    .wc-menu-toggle { width: 36px !important; height: 36px !important; }
    .wc-header-search { max-width: 118px !important; }
    .wc-header-search input { padding-inline: 5px !important; font-size: 8px !important; }
    .wc-header-search button { flex-basis: 32px !important; width: 32px !important; height: 32px !important; }
}

@media (max-width: 1100px) {
    singlerelated.wc-similar-posts .Grid--WecimaPosts { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
    singlerelated.wc-similar-posts { padding: 13px !important; }
    singlerelated.wc-similar-posts .Grid--WecimaPosts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px 8px !important; }
    body.single .WatchServersList ul#watch,
    body.single-post .WatchServersList ul#watch { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.single ul.List--Download--Wecima--Single,
    body.single-post ul.List--Download--Wecima--Single { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
    singlerelated.wc-similar-posts .Grid--WecimaPosts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.single .WatchServersList ul#watch,
    body.single-post .WatchServersList ul#watch { grid-template-columns: minmax(0, 1fr) !important; }
    body.single ul.List--Download--Wecima--Single,
    body.single-post ul.List--Download--Wecima--Single { grid-template-columns: minmax(0, 1fr) !important; }
    .single .-movie-info-share > a,
    .single-post .-movie-info-share > a { width: 36px !important; min-width: 36px !important; height: 35px !important; font-size: 15px !important; }
}


/* AJAX-loaded watch/download fragment uses the same responsive controls. */
.wc-ajax-servers .ServersList#WatchList ul#watch {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 10px auto 14px !important;
    padding: 0 !important;
    text-align: initial !important;
}
.wc-ajax-servers .ServersList#WatchList ul#watch > li {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    overflow: hidden !important;
    color: #e7ebf2 !important;
    background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.025)) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.16) !important;
    font-family: 'Tajawal', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: right !important;
    text-transform: none !important;
    cursor: pointer !important;
}
.wc-ajax-servers .ServersList#WatchList ul#watch > li > i.fas.fa-play {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    color: #fff !important;
    background: var(--theme-primary) !important;
    border-radius: 50% !important;
    font-size: 12px !important;
}
.wc-ajax-servers .ServersList#WatchList ul#watch > li .wc-server-name {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.wc-ajax-servers .ServersList#WatchList ul#watch > li.ISActive {
    color: #fff !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 28%, #151a23), #151a23) !important;
    border-color: color-mix(in srgb, var(--theme-primary) 65%, transparent) !important;
}
.wc-ajax-servers ul.List--Download--Wecima--Single {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.wc-ajax-servers ul.List--Download--Wecima--Single > li { min-width: 0 !important; margin: 0 !important; }
.wc-ajax-servers ul.List--Download--Wecima--Single > li > a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 60px !important;
    padding: 12px 14px !important;
    color: #f4fffb !important;
    background: linear-gradient(135deg, #176d55, #124b42) !important;
    border: 1px solid rgba(42, 210, 164, .24) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
}
.wc-ajax-servers ul.List--Download--Wecima--Single > li > a > resolution {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    gap: 9px !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #e2fff4 !important;
    font-family: 'Tajawal', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}
.wc-ajax-servers ul.List--Download--Wecima--Single > li > a > resolution > i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 9px !important;
    font-size: 15px !important;
}
.wc-ajax-servers ul.List--Download--Wecima--Single > li > a > i.fas.fa-download {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 17px !important;
}
@media (max-width: 480px) {
    .wc-ajax-servers .ServersList#WatchList ul#watch { grid-template-columns: 1fr !important; }
    .wc-ajax-servers ul.List--Download--Wecima--Single { grid-template-columns: 1fr !important; }
}


/* The season/archive download panel uses the same clean one-line download layout. */
.Download--Wecima--Single ul.List--Download--Wecima--Single,
.ServersList.Download ul.List--Download--Wecima--Single {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.Download--Wecima--Single ul.List--Download--Wecima--Single > li,
.ServersList.Download ul.List--Download--Wecima--Single > li { min-width: 0 !important; margin: 0 !important; }
.Download--Wecima--Single ul.List--Download--Wecima--Single > li > a,
.ServersList.Download ul.List--Download--Wecima--Single > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 11px 13px !important;
    color: #f4fffb !important;
    background: linear-gradient(135deg, #176d55, #124b42) !important;
    border: 1px solid rgba(42,210,164,.24) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
}
.Download--Wecima--Single ul.List--Download--Wecima--Single resolution,
.ServersList.Download ul.List--Download--Wecima--Single resolution {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    margin: 0 !important;
    color: #e2fff4 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}
.Download--Wecima--Single ul.List--Download--Wecima--Single resolution > i,
.ServersList.Download ul.List--Download--Wecima--Single resolution > i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 9px !important;
}
@media (max-width: 480px) {
    .Download--Wecima--Single ul.List--Download--Wecima--Single,
    .ServersList.Download ul.List--Download--Wecima--Single { grid-template-columns: 1fr !important; }
}
