/* TopCinema-style homepage v3.0 — loaded after all previous WEEGY visual layers. */
:root {
    --wc-content: 1220px;
}

html, body { min-height: 100%; }
body {
    background-color: #080a0e !important;
    background-image: linear-gradient(180deg, rgba(5,7,11,.88), rgba(5,7,11,.95) 55%, rgba(5,7,11,.98)), url('../img/bg.jpg') !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}
rootinside { padding-top: 76px !important; }
.wc-main {
    width: min(100%, 1260px) !important;
    max-width: 1260px !important;
    margin: 0 auto !important;
    padding: 20px 18px 32px !important;
}
.LeftUI, .RightUI, .RightSideFlex--Openmenu, .Wecima--overlay { display: none !important; }

/* One centered header: brand on the right, menu center, social/search at the left. */
header.wc-site-header {
    min-height: 76px !important;
    height: 76px !important;
    padding: 0 16px !important;
    background: rgba(7,9,13,.94) !important;
    border-bottom: 1px solid rgba(255,255,255,.055) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.25) !important;
}
.wc-header-shell {
    display: flex !important;
    width: min(100%, 1240px) !important;
    min-height: 76px !important;
    margin: 0 auto !important;
    gap: clamp(10px, 1.6vw, 24px) !important;
    direction: rtl !important;
}
.wc-brand-wrap { order: 0 !important; flex: 0 0 auto !important; }
.wc-brand { gap: 8px !important; }
.wc-brand-mark { display: none !important; }
header.wc-site-header .HeaderLogo {
    color: #fff !important;
    font-family: 'Tajawal', Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: -.6px;
    text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
header.wc-site-header .HeaderLogo::first-letter { color: var(--theme-primary); }
header.wc-site-header .HeaderLogo logotext { color: #f1f1f1 !important; font-size: 12px !important; text-align: center !important; }
header.wc-site-header middle--header { order: 1 !important; flex: 1 1 auto !important; min-width: 0 !important; }
header.wc-site-header .NavigationMenu { justify-content: center !important; gap: 2px !important; }
header.wc-site-header .NavigationMenu > li > a {
    min-height: 42px !important;
    padding: 8px 10px !important;
    color: #f0f1f4 !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}
header.wc-site-header .NavigationMenu > li > a:hover,
header.wc-site-header .NavigationMenu > li.current-menu-item > a,
header.wc-site-header .NavigationMenu > li.current_page_item > a {
    color: #fff !important;
    background: transparent !important;
    box-shadow: inset 0 -2px 0 var(--theme-primary);
}
header.wc-site-header .NavigationMenu > li > a i { color: var(--theme-primary) !important; }
.wc-header-social { order: 2; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.wc-header-social a { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 28px; color: #fff; font-size: 16px; transition: color .18s ease, transform .18s ease; }
.wc-header-social a:hover { color: var(--theme-primary); transform: translateY(-2px); }
.wc-header-search {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 1 190px !important;
    min-width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 0 0 5px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
}
.wc-header-search > i { display: none !important; }
.wc-header-search input {
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 12px !important;
    color: #fff !important;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 20px 0 0 20px !important;
    font-size: 11px !important;
}
.wc-header-search input::placeholder { color: #a1a6b0 !important; }
.wc-header-search button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    color: #fff !important;
    background: var(--theme-primary) !important;
    border: 0 !important;
    border-radius: 50% !important;
    font-size: 15px !important;
}
.wc-menu-toggle { display: none !important; }

/* Slim ticker below the navigation. */
.wc-home-announcement {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 0 0 18px;
    padding: 4px 6px;
    overflow: hidden;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 24px;
}
.wc-news-label, .wc-news-discover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 5px 15px;
    color: #fff;
    background: var(--theme-primary);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}
.wc-news-label { gap: 7px; }
.wc-news-discover { color: #fff; background: rgba(255,255,255,.08); }
.wc-news-discover:hover { background: var(--theme-primary); }
.wc-news-window { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.wc-news-track { display: flex; align-items: center; width: max-content; animation: wc-news-marquee 35s linear infinite; }
.wc-news-track-group { display: flex; align-items: center; gap: 32px; padding-left: 32px; }
.wc-news-track:hover { animation-play-state: paused; }
.wc-news-track a { color: #e5e7ec; font-size: 11px; font-weight: 700; white-space: nowrap; }
.wc-news-track a::before { content: '•'; margin-left: 8px; color: var(--theme-primary); }
@keyframes wc-news-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Featured carousel: poster row, arrow controls and touch/trackpad scrolling. */
.wc-hero.wc-featured-slider {
    position: relative !important;
    min-height: 0 !important;
    margin: 0 0 26px !important;
    padding: 14px 0 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    isolation: isolate;
}
.wc-featured-slider .wc-hero-scrim {
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 45%, rgba(0,0,0,.2)) !important;
    border-radius: 18px;
}
.wc-featured-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; padding: 0 4px; }
.wc-featured-heading > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.wc-featured-heading .wc-eyebrow { margin: 0 !important; padding: 0 !important; color: var(--theme-primary) !important; background: none !important; border: 0 !important; font-size: 11px !important; }
.wc-featured-heading h2 { margin: 0; color: #fff; font-size: 17px; font-weight: 900; }
.wc-featured-controls { display: flex; gap: 8px; }
.wc-slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.wc-slider-arrow:hover { background: var(--theme-primary); transform: scale(1.05); }
.wc-featured-viewport { overflow-x: auto; overflow-y: hidden; direction: ltr; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.wc-featured-viewport::-webkit-scrollbar { display: none; }
.wc-featured-track { display: flex; align-items: stretch; gap: 14px; width: max-content; min-width: 100%; padding: 0 2px 4px; direction: ltr; }
.wc-featured-card { display: block; flex: 0 0 calc((min(1220px, 100vw - 40px) - 56px) / 5); min-width: 0; scroll-snap-align: start; direction: rtl; }
.wc-featured-poster { position: relative; display: block; aspect-ratio: 2/3; overflow: hidden; background: #151922; border-radius: 11px; box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.wc-featured-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease; }
.wc-featured-card:hover .wc-featured-poster img { transform: scale(1.045); }
.wc-featured-no-poster { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #778090; font-size: 32px; }
.wc-featured-ribbon { position: absolute; top: 12px; left: -30px; z-index: 2; width: 112px; padding: 5px 0; color: #fff; background: var(--theme-primary); font-size: 10px; font-weight: 900; text-align: center; transform: rotate(-45deg); box-shadow: 0 3px 9px rgba(0,0,0,.28); }
.wc-featured-shade { position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.9)); }
.wc-featured-title { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; display: -webkit-box; padding: 10px 9px 11px; overflow: hidden; color: #fff; font-size: 12px; font-weight: 900; line-height: 1.5; text-align: center; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Main content columns: latest episodes on the right and anime/series list on the left. */
.wc-home-columns { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(250px, .95fr); gap: 14px; align-items: start; margin: 0 0 25px; direction: rtl; }
.wc-home-panel { min-width: 0; padding: 12px; background: rgba(17,21,29,.76); border: 1px solid rgba(255,255,255,.055); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.wc-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 36px; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.wc-panel-heading h2 { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; color: #fff; font-size: 16px; font-weight: 900; }
.wc-panel-heading h2 i { color: var(--theme-primary); font-size: 15px; }
.wc-panel-heading > a { flex: 0 0 auto; padding: 5px 9px; color: #eceef2; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 8px; font-size: 10px; font-weight: 800; }
.wc-panel-heading > a:hover { color: #fff; background: var(--theme-primary); }
.wc-episodes-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 10px; }
.wc-episodes-grid .GridItem { min-width: 0 !important; }
.wc-episodes-grid .BG--GridItem { aspect-ratio: 2/3 !important; border-radius: 8px !important; }
.wc-episodes-grid .Thumb--GridItem > a > strong { min-height: 35px; margin-top: 6px; font-size: 11px !important; line-height: 1.4 !important; }
.wc-episodes-grid .wc-card-submeta { gap: 4px; font-size: 9px; }
.wc-episodes-grid .wc-card-submeta > span { padding: 2px 5px; }
.wc-panel-empty { padding: 22px 10px; color: var(--wc-muted); font-size: 12px; text-align: center; }
.wc-anime-list { display: flex; flex-direction: column; gap: 8px; }
.wc-anime-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.045); border-radius: 9px; transition: background .18s ease, border-color .18s ease; }
.wc-anime-item:hover { background: rgba(255,255,255,.06); border-color: color-mix(in srgb, var(--theme-primary) 35%, transparent); }
.wc-anime-thumb { display: flex; align-items: center; justify-content: center; flex: 0 0 82px; width: 82px; height: 60px; overflow: hidden; color: #8992a1; background: #181e29; border-radius: 7px; }
.wc-anime-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wc-anime-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wc-anime-info strong { display: -webkit-box; overflow: hidden; color: #f1f2f5; font-size: 11px; font-weight: 800; line-height: 1.45; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wc-anime-info small { color: #8e97a5; font-size: 9px; }

.wc-home-all-latest { margin-top: 20px; }
.wc-home-all-latest .wc-section-heading { margin-bottom: 14px; }
.wc-home-all-latest .wc-section-heading h2 { margin: 2px 0; font-size: 20px; }
.wc-home-all-latest .wc-section-kicker { color: var(--theme-primary); font-size: 10px; }
.wc-home-all-latest .wc-post-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 20px 13px; }
.wc-home-all-latest .wc-movie-card .BG--GridItem { border-radius: 9px; }
.wc-home-all-latest .wc-movie-card .Thumb--GridItem > a > strong { font-size: 12px; }

/* Minimal footer: only the rights line remains. */
.wc-minimal-copyright { display: block; width: min(100% - 36px, 1220px); margin: 24px auto 0; padding: 14px 10px 18px; color: #9ba2ae; border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; text-align: center; }
.GotoTop { z-index: 10000; }

@media (max-width: 1140px) {
    rootinside { padding-top: 68px !important; }
    header.wc-site-header { height: 68px !important; min-height: 68px !important; }
    .wc-header-shell { min-height: 68px !important; gap: 9px !important; }
    .wc-menu-toggle { display: block !important; order: 0; flex: 0 0 36px; width: 36px; height: 36px; padding: 7px; }
    .wc-brand-wrap { order: 1 !important; }
    header.wc-site-header middle--header { position: absolute !important; top: calc(100% + 6px) !important; right: 10px !important; left: 10px !important; display: none !important; max-height: calc(100dvh - 88px); padding: 10px !important; overflow-y: auto; background: #10141c !important; border: 1px solid rgba(255,255,255,.10) !important; border-radius: 12px !important; box-shadow: 0 18px 45px rgba(0,0,0,.5) !important; }
    header.wc-site-header.wc-menu-open middle--header { display: block !important; }
    header.wc-site-header .NavigationMenu { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 3px !important; }
    header.wc-site-header .NavigationMenu > li > a { width: 100%; min-height: 40px !important; padding: 8px 11px !important; font-size: 13px !important; }
    header.wc-site-header .NavigationMenu > li > ul, header.wc-site-header .NavigationMenu > li > .sub-menu { position: static !important; display: none !important; width: auto !important; max-width: none !important; max-height: none !important; margin: 4px 10px !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; }
    header.wc-site-header .NavigationMenu > li.open > ul, header.wc-site-header .NavigationMenu > li.open > .sub-menu, header.wc-site-header .NavigationMenu > li:focus-within > ul, header.wc-site-header .NavigationMenu > li:focus-within > .sub-menu { display: block !important; }
    .wc-header-social { order: 2; }
    .wc-header-search { order: 3 !important; }
    .wc-header-shell { gap: 9px !important; }
    header.wc-site-header .HeaderLogo { font-size: 23px !important; }
    header.wc-site-header .NavigationMenu > li > a { padding-inline: 7px !important; font-size: 11px !important; }
    .wc-header-search { flex-basis: 150px !important; }
    .wc-featured-card { flex-basis: calc((100vw - 76px) / 4); }
    .wc-home-columns { grid-template-columns: minmax(0, 1.8fr) minmax(220px, .9fr); }
    .wc-episodes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wc-home-all-latest .wc-post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
    body { background-attachment: scroll !important; }
    rootinside { padding-top: 66px !important; }
    header.wc-site-header { height: 66px !important; min-height: 66px !important; padding: 0 10px !important; }
    .wc-header-shell { min-height: 66px !important; gap: 8px !important; }
    .wc-menu-toggle { display: block !important; order: 0; flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; }
    .wc-brand-wrap { order: 1 !important; max-width: 130px; }
    header.wc-site-header .HeaderLogo { font-size: 20px !important; }
    header.wc-site-header .HeaderLogo logotext { font-size: 9px !important; }
    header.wc-site-header middle--header { position: absolute !important; top: calc(100% + 6px) !important; right: 9px !important; left: 9px !important; display: none !important; max-height: calc(100dvh - 84px); padding: 10px !important; overflow-y: auto; background: #10141c !important; border: 1px solid rgba(255,255,255,.10) !important; border-radius: 12px !important; box-shadow: 0 18px 45px rgba(0,0,0,.5) !important; }
    header.wc-site-header.wc-menu-open middle--header { display: block !important; }
    header.wc-site-header .NavigationMenu { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 3px !important; }
    header.wc-site-header .NavigationMenu > li > a { width: 100%; min-height: 40px !important; padding: 8px 11px !important; font-size: 13px !important; }
    header.wc-site-header .NavigationMenu > li > ul, header.wc-site-header .NavigationMenu > li > .sub-menu { position: static !important; display: none !important; width: auto !important; max-width: none !important; max-height: none !important; margin: 4px 10px !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; }
    header.wc-site-header .NavigationMenu > li.open > ul, header.wc-site-header .NavigationMenu > li.open > .sub-menu, header.wc-site-header .NavigationMenu > li:focus-within > ul, header.wc-site-header .NavigationMenu > li:focus-within > .sub-menu { display: block !important; }
    .wc-header-social { order: 2; gap: 7px; }
    .wc-header-social a { width: 17px; font-size: 13px; }
    .wc-header-search { order: 3 !important; flex: 0 1 150px !important; height: 35px !important; }
    .wc-header-search input { height: 34px !important; font-size: 10px !important; }
    .wc-header-search button { width: 35px !important; height: 35px !important; flex-basis: 35px !important; }
    .wc-main { padding: 15px 12px 28px !important; }
    .wc-home-announcement { min-height: 38px; gap: 7px; margin-bottom: 14px; }
    .wc-news-label, .wc-news-discover { min-height: 29px; padding: 4px 9px; font-size: 9px; }
    .wc-news-track a { font-size: 10px; }
    .wc-featured-card { flex-basis: calc((100vw - 64px) / 3); }
    .wc-featured-track { gap: 10px; }
    .wc-home-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .wc-home-anime { order: 2; }
    .wc-home-episodes { order: 1; }
    .wc-episodes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wc-home-all-latest .wc-post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
    .wc-header-shell { gap: 5px !important; }
    .wc-brand-wrap { max-width: 102px; }
    header.wc-site-header .HeaderLogo { font-size: 16px !important; }
    header.wc-site-header .HeaderLogo logotext { display: none !important; }
    .wc-header-social { gap: 5px; }
    .wc-header-social a { font-size: 11px; width: 14px; }
    .wc-header-search { flex: 1 1 88px !important; max-width: 120px; }
    .wc-header-search input { padding: 0 7px !important; font-size: 9px !important; }
    .wc-header-search button { flex-basis: 31px !important; width: 31px !important; height: 31px !important; }
    .wc-home-announcement { border-radius: 11px; }
    .wc-news-discover { display: none; }
    .wc-news-label { font-size: 8px; padding-inline: 8px; }
    .wc-hero.wc-featured-slider { margin-bottom: 18px !important; }
    .wc-featured-heading { margin-bottom: 9px; }
    .wc-featured-heading h2 { font-size: 14px; }
    .wc-featured-heading .wc-eyebrow { font-size: 9px !important; }
    .wc-slider-arrow { width: 30px; height: 30px; font-size: 11px; }
    .wc-featured-card { flex-basis: calc((100vw - 43px) / 2); }
    .wc-featured-track { gap: 9px; }
    .wc-featured-title { padding: 7px 6px 8px; font-size: 10px; }
    .wc-featured-ribbon { top: 9px; left: -34px; font-size: 8px; }
    .wc-home-panel { padding: 9px; }
    .wc-panel-heading { margin-bottom: 9px; }
    .wc-panel-heading h2 { font-size: 13px; }
    .wc-panel-heading > a { font-size: 9px; padding: 4px 6px; }
    .wc-episodes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 8px; }
    .wc-episodes-grid .Thumb--GridItem > a > strong { font-size: 10px !important; }
    .wc-home-all-latest .wc-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 15px 8px; }
    .wc-home-all-latest .wc-section-heading h2 { font-size: 17px; }
    .wc-home-all-latest .wc-section-heading > a { font-size: 9px; padding: 7px 8px; }
    .wc-anime-thumb { flex-basis: 72px; width: 72px; height: 54px; }
    .wc-minimal-copyright { width: calc(100% - 20px); margin-top: 14px; padding: 12px 6px 16px; font-size: 10px; }
}
@media (max-width: 380px) {
    .wc-menu-toggle { flex-basis: 30px; width: 30px; height: 30px; }
    .wc-brand-wrap { max-width: 88px; }
    header.wc-site-header .HeaderLogo { font-size: 14px !important; }
    .wc-header-social { display: none; }
    .wc-featured-card { flex-basis: calc((100vw - 34px) / 2); }
    .wc-episodes-grid, .wc-home-all-latest .wc-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .wc-news-track { animation: none !important; }
    .wc-featured-viewport { scroll-behavior: auto !important; }
    .wc-featured-poster img { transition: none !important; }
}
