/* ============================================================
   APP-SPECIFIC ADDITIONS
   These styles cover behaviour added by the Flask clone (nav,
   dropdowns, search page, hero meta, detail CTAs). The base
   look comes from the real "animestream" theme CSS + wp-custom-css.
   ============================================================ */

/* ── Mobile nav menu (theme toggles via .inmshow) ── */
.sf-hidden { display: none !important; }
#menutwo .inmenu.sf-hidden { display: none; }
#menutwo .inmenu.inmshow { display: block; }

/* ── Quickfilter / browse dropdowns ──
   The app's menus use <a> links inside ul.dropdown-menu; the theme
   hides them with display:none and reveals them with .open. We keep
   the sf-hidden class for the genre mega menu (desktop hover). */
.quickfilter .filter.dropdown.open > ul,
.browse-filters .filter.dropdown.open > ul {
    display: block !important;
}
.quickfilter .filter.dropdown > ul li a,
.browse-filters .filter.dropdown > ul li a {
    display: block;
    padding: 5px;
    color: #3c3c3c;
}
body.darkmode .quickfilter .filter.dropdown > ul li a,
body.darkmode .browse-filters .filter.dropdown > ul li a { color: #ccc; }
.quickfilter .filter.dropdown > ul li a:hover,
.browse-filters .filter.dropdown > ul li a:hover { color: #5a2e98; }

/* ── Browse / listing filter bar (search page) ── */
.browse-filters {
    background: #fff;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 0 0 15px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
    position: relative;
    z-index: 50;
}
body.darkmode .browse-filters { background: #17151b; }
.browse-filters .filters .filter {
    width: auto;
    float: none;
    display: inline-block;
    margin: 0 6px 0 0;
    vertical-align: top;
}
.browse-filters .filters .filter button {
    min-width: 150px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    color: #333;
    font-size: 12px;
    padding: 8px 10px;
}
body.darkmode .browse-filters .filters .filter button {
    background: #262432;
    border-color: #3a3748;
    color: #ccc;
}
.browse-filters .filters .filter ul {
    width: 240px;
    left: 0;
    right: auto;
    max-height: 320px;
    overflow-y: auto;
}
.browse-filters .filters .filter.submit { float: right; margin-right: 0; }
.browse-filters .filters .filter.submit button {
    min-width: 110px;
    background: #5a2e98;
    border: none;
    color: #fff;
}
.browse-filters .filters .filter.submit button:hover { background: #0c70de; color: #fff; }

/* ── Hero slider: meta chips inside the info bar ── */
.slider-meta { margin: 6px 0 0; }
.sl-meta-item {
    display: inline-block;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 3px;
    padding: 2px 8px;
    margin: 0 6px 4px 0;
    font-size: 12px;
    line-height: 1.4;
}

/* ── Anime detail: CTA + share ── */
.cta-row { display: flex; gap: 6px; margin-top: 6px; }
.cta-row a {
    flex: 1;
    color: #fff;
    display: block;
    padding: 7px 10px;
    border-radius: 3px;
    font-size: 13px;
    text-align: center;
    transition: opacity .15s ease;
}
.cta-row a:hover { color: #fff; opacity: .85; }
.cta-row .cta-watch { background: #5a2e98; }
.cta-row .cta-latest { background: #0c70de; }

.socialts { display: flex; gap: 8px; margin-top: 12px; }
.socialts a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: #fff !important;
    background: #444;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease;
}
.socialts a:hover { color: #fff !important; }
.socialts a.fb:hover { background: #2f477b; }
.socialts a.twt:hover { background: #1781c3; }
.socialts a.wa:hover { background: #008f54; }
.socialts a.pntrs:hover { background: #b2132c; }
.socialts a.tlg:hover { background: #1e7eaf; }
body.darkmode .socialts a { background: #262432; }

.episode-jump { float: right; margin: 6px 15px 0 0; }
.episode-jump select {
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    font-size: 12px;
    padding: 6px 8px;
    max-width: 260px;
}
body.darkmode .episode-jump select {
    background: #262432;
    border-color: #3a3748;
    color: #ccc;
}

.ep-count-pill {
    display: inline-block;
    color: #fff !important;
    background: #5a2e98;
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 12px;
    margin-left: 10px;
    vertical-align: middle;
}

.related-shelf { margin-top: 20px; }

/* ── Footer ── */
#footer { margin-top: 30px; }
.footercopyright { margin: 0 20px; }

/* ── 404 / misc ── */
.notfound-box { text-align: center; padding: 60px 20px; }
