.ssl-item.watched {
    opacity: 0.8; 
     background: #4f553c !important; 
      }

.ssl-item.watched::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  color: #4CAF50; /* Green checkmark */
  font-size: 12px;
}

/* Keep active episode fully visible even if watched */
.ssl-item.active, 
.ssl-item.watched.active {
  opacity: 1;
  background-color: var(--color-primary);
}

/* Add this CSS to your existing styles */
.pc-toggle .tb-result {
    display: inline-block; /* Ensure the result is inline */
    margin-left: 5px; /* Add some space between the label and the result */
    font-weight: bold; /* Make the text bold for better visibility */
    white-space: nowrap; /* Prevent text wrapping */
}

.pc-toggle .tb-result span {
    margin-left: 5px; /* Add space between On/Off states */
}

.tick-age {
    background-color: #FF5700;
    /* Red color */
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;

    top: 0;
    left: 0;
}

.dropdown-menu {
   background: rgba(206, 211, 205, 0.568);
   backdrop-filter: blur(8px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   min-width: 160px;
   padding: 8px 0;
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
   border-radius: 8px;
   
}

.dropdown-menu .dropdown-item {
   color: rgba(0, 0, 0, 0.9);
   padding: 8px 15px;
   font-size: 14px;
   transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
   background: rgba(56, 56, 56, 0.5);
   color: #ffbade;
}

.dropdown-menu-model {
   margin-top: 5px;
}

.dropdown-menu.show {
   display: block;
   position: absolute;
   transform: translate3d(0px, 38px, 0px);
   top: 0px;
   left: 0px;
   will-change: transform;
   z-index: 1000;
   animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translate3d(0px, 30px, 0px);
   }
   to {
      opacity: 1;
      transform: translate3d(0px, 38px, 0px);
   }
}





.episode-container {
    width: 100%;
    padding: 5px;
    background-color: #1e1e24;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.filter {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

#episode-range {

    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2c2c34;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#episode-range:hover {
    background-color: #3b3b44;
    color: #fff;
    border-color: #67686f;
}

.episodes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 12px;
}

.episode-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease-in-out;
    background-color: #35373d;
    color: #9ca3af;
}

.episode-item:hover {
    background-color: #67686f;
    color: #fff;
}


.episode-item.filler-highlight {
    color: #d1d5db;
    background: #35373d;
    background-image: linear-gradient(to right, #5a4944, #645a4b);
    transition: all 0.3s ease-in-out;
}

.episode-item.filler-highlight:hover {
    background: #9a6700;
    color: #fff;
}

.episode-item.active {
    background: #ff007f;
    color: #fff;
    font-weight: 600;
}

.episodes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
}

.tick-age {
    background-color: #FF5700;
    /* Red color */
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.tick-item.tick-sub {
    background: #b0e3af;
    /* Blue color for sub */
    font-weight: 600;
    color: #111 !important;

}

.tick-item.tick-dub {
    background: #B9E7FF;
    /* Yellow color for dub */
    font-weight: 600;
    color: #111 !important;

}

.anime-qtip {
    position: absolute;
    z-index: 9999;
    width: 300px;
    background: #2b2b2b;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    padding: 15px;
}

.qtip-content {
    color: #fff;
}

.qtip-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.qtip-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating {
    color: #ffd700;
}

.quality-info {
    display: flex;
    gap: 5px;
}

.qtip-description {
    font-size: 14px;
    margin-bottom: 10px;
    color: #ccc;
}

.qtip-meta > div {
    font-size: 13px;
    margin-bottom: 5px;
    color: #ccc;
}

.qtip-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-watch {
    flex: 1;
    background: #7676ff;
    color: white;
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
}

.btn-add {
    width: 40px;
    background: #3a3a3a;
    border: none;
    border-radius: 4px;
    color: white;
}
/* ========== Menu: full black ========== */
#header,
#header.header-home,
#header.active {
    background: #000000 !important;
}

#header_menu,
#header_menu .header_menu-sub {
    background: #000000 !important;
}

#sidebar_menu {
    background: #000000 !important;
    border-right: 1px solid #1a1a1a !important;
    color: #fff !important;
}

#sidebar_menu_bg {
    background: rgba(0, 0, 0, 0.85) !important;
}

#sidebar_menu .sidebar_menu-list > .nav-item {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

#sidebar_menu .sidebar_menu-list > .nav-item > .nav-link,
#sidebar_menu .sidebar_menu-list > .nav-item > a.nav-link {
    color: #fff !important;
}

#sidebar_menu .sb-setting,
#sidebar_menu .header-setting,
#sidebar_menu .hs-toggles {
    background: transparent !important;
}

#header_menu ul.header_menu-list .nav-item > a {
    color: #fff !important;
}

#mobile_menu,
#mobile_search {
    color: #fff !important;
}

/* =========================================================
   Footer — full black + polished UI
   ========================================================= */
#footer,
#footer-about {
    background: #000000 !important;
    color: #c8c8d0 !important;
    border-top: 1px solid #1a1a1a !important;
}

#footer .container,
#footer-about .container {
    background: transparent !important;
}

#footer .footer-top {
    border-bottom: 1px solid #1c1c1c !important;
    padding-bottom: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

#footer .footer-logo {
    display: inline-block !important;
}

#footer .footer-logo img {
    max-height: 42px;
    width: auto;
    filter: brightness(1.05);
}

/* Social buttons */
.footer-joingroup .anw-group {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 0 !important;
}

.footer-joingroup .zr-social-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    background: #141414 !important;
    color: #fff !important;
    border: 1px solid #2a2a2a !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.footer-joingroup .zr-social-button:hover {
    background: #e50914 !important;
    border-color: #e50914 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* A-Z block — always visible */
.footer-az {
    display: block !important;
    visibility: visible !important;
    margin: 0 0 1.25rem !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid #1c1c1c !important;
}

.footer-az .ftaz {
    color: #e50914 !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

.footer-az .size-s {
    color: #888 !important;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.footer-az ul.az-list {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0.75rem -0.2rem 0 !important;
    padding: 0;
    list-style: none;
}

.footer-az ul.az-list li {
    margin: 0.2rem !important;
}

.footer-az ul.az-list li a {
    display: inline-block !important;
    min-width: 2rem;
    text-align: center;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1;
    padding: 0.45rem 0.55rem;
    background: #141414 !important;
    color: #e8e8ec !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 0.4rem !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.footer-az ul.az-list li a:hover,
.footer-az ul.az-list li.active a {
    background: #e50914 !important;
    border-color: #e50914 !important;
    color: #fff !important;
}

/* Links row */
.footer-links {
    margin-bottom: 1rem !important;
}

.footer-links ul li a {
    color: #aaa !important;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-links ul li a:hover {
    color: #e50914 !important;
}

#footer-about .about-text {
    color: #777 !important;
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    max-width: 720px;
}

#footer-about .copyright {
    color: #555 !important;
    font-size: 0.8rem !important;
    margin-top: 0.75rem !important;
}

/* Mobile polish */
@media screen and (max-width: 767px) {
    #footer .footer-logo {
        display: inline-block !important;
        float: none !important;
        margin-bottom: 0.75rem;
    }

    .footer-joingroup {
        float: none !important;
        margin: 0.5rem 0 0 !important;
    }

    .footer-az ul.az-list li a {
        font-size: 0.9em;
        padding: 0.4rem 0.5rem;
        min-width: 1.85rem;
    }
}

/* =========================================================
   Share section — visible on mobile the same as desktop
   (do not hide title / icon / buttons on small screens)
   ========================================================= */
.share-buttons,
.share-buttons.share-buttons-home,
.share-buttons.share-buttons-detail,
.share-buttons.share-buttons-watch,
.share-buttons.share-buttons-min {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.share-buttons .share-buttons-block {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.share-buttons .share-buttons-block .sbb-title,
.share-buttons .sbb-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.share-buttons .share-buttons-block .share-icon,
.share-buttons.share-buttons-home .share-buttons-block .share-icon {
    display: inline-block !important;
    visibility: visible !important;
}

.sharethis-inline-share-buttons,
.sharethis-inline-share-buttons.st-center,
.sharethis-inline-share-buttons.st-inline-share-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px;
    visibility: visible !important;
    opacity: 1 !important;
}

.sharethis-inline-share-buttons .st-btn,
.sharethis-inline-share-buttons .st-btn > img,
.sharethis-inline-share-buttons .st-btn > span {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile layout polish — same UI, just fits phone */
@media screen and (max-width: 767px) {
    .share-buttons .share-buttons-block {
        padding: 12px 0 !important;
    }

    .share-buttons.share-buttons-watch .share-buttons-block,
    .share-buttons.share-buttons-detail .share-buttons-block {
        padding: 12px 10px !important;
    }

    .share-buttons .share-buttons-block .sbb-title {
        margin-bottom: 0 !important;
        padding: 0 !important;
        border-left: none !important;
    }

    .share-buttons .share-buttons-block .sbb-title span {
        font-size: 14px !important;
    }

    .share-buttons .share-buttons-block .sbb-title p {
        display: block !important;
        margin: 0 !important;
        font-size: 12px;
    }

    .sharethis-inline-share-buttons .st-btn {
        margin: 2px !important;
    }
}


/* Share buttons always one row on phones */
.ac-share-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.sharethis-inline-share-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex: 1 1 auto;
    min-width: 0;
}
@media screen and (max-width: 767px) {
    .share-buttons .share-buttons-block {
        flex-wrap: nowrap !important;
    }
    .ac-share-btn {
        flex: 1 1 0;
        min-width: 0;
    }
    .ac-share-btn span {
        display: none !important;
    }
}


/* Share SEO helper text */
.sbb-seo-text {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px !important;
    max-width: 480px;
}
.sbb-title .share-ep-anime {
    color: #fff;
    font-weight: 600;
}
@media screen and (max-width: 575px) {
    .sbb-seo-text {
        font-size: 11px;
        max-width: 100%;
    }
}

/* =========================================================
   Share buttons — forced visible on ALL devices
   ========================================================= */
.share-buttons,
.share-buttons .container,
.share-buttons .share-buttons-block,
.share-buttons .ac-share-block,
.sharethis-inline-share-buttons,
.ac-share-target,
.ac-share-buttons {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
}

.share-buttons .share-buttons-block.ac-share-block {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 10px 12px;
    width: 100%;
}

.share-buttons .sbb-title {
    display: block !important;
    visibility: visible !important;
    flex: 1 1 180px;
    min-width: 0;
    max-width: 100%;
}

.sharethis-inline-share-buttons.ac-share-target,
.ac-share-target {
    display: block !important;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
    width: auto !important;
    box-sizing: border-box !important;
}

.ac-share-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ac-share-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.ac-share-btn:hover,
.ac-share-btn:focus {
    opacity: 0.92;
    color: #fff !important;
    text-decoration: none !important;
}

.ac-share-btn i { font-size: 16px; line-height: 1; }
.ac-share-btn span { font-size: 12px; white-space: nowrap; }

.ac-share-twitter { background: #1DA1F2 !important; }
.ac-share-whatsapp { background: #25D366 !important; }
.ac-share-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
}
.ac-share-copy { background: #6c757d !important; }

/* Phone: title full width on top, buttons one full row below */
@media screen and (max-width: 767px) {
    .share-buttons {
        display: block !important;
        width: 100% !important;
        padding: 8px 0 !important;
        margin: 0 !important;
    }
    .share-buttons .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .share-buttons .share-buttons-block.ac-share-block {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        padding: 12px 0 !important;
        gap: 10px;
    }
    .share-buttons .sbb-title {
        display: block !important;
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    .share-buttons .share-icon {
        display: none !important;
    }
    .sharethis-inline-share-buttons.ac-share-target {
        display: block !important;
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
    }
    .ac-share-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 6px;
    }
    .ac-share-btn {
        flex: 1 1 0 !important;
        height: 40px !important;
        min-width: 0 !important;
        padding: 0 6px !important;
    }
    .ac-share-btn span {
        display: none !important; /* icons only on narrow phones — 1 line */
    }
    .ac-share-btn i {
        font-size: 18px !important;
    }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
    .ac-share-btn span {
        display: inline !important;
        font-size: 11px !important;
    }
}

/* =========================================================
   Share block: (avatar) + title side-by-side, buttons next/below
   Avatar NEVER hidden on any device
   ========================================================= */
.share-buttons .share-icon,
.share-buttons .share-icon.ac-share-avatar,
.share-buttons.share-buttons-home .share-buttons-block .share-icon,
.ac-share-avatar {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    flex-shrink: 0 !important;
    margin: 0 12px 0 0 !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.ac-share-heading {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.ac-share-heading .sbb-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    flex: 1 1 auto;
    min-width: 0;
}

.ac-share-heading .sbb-title span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #ff0000;
    line-height: 1.25;
}

.ac-share-heading .sbb-title p {
    margin: 0 !important;
    line-height: 1.3;
    font-size: 13px;
    opacity: 0.85;
}

.sbb-seo-text {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: rgba(255,255,255,0.5) !important;
    margin-top: 3px !important;
    max-width: 360px;
}

.share-buttons .share-buttons-block.ac-share-block {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px 16px;
    width: 100%;
}

.sharethis-inline-share-buttons.ac-share-target {
    display: block !important;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
}

.ac-share-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    width: 100%;
}

.ac-share-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.ac-share-btn:hover { opacity: .92; color: #fff !important; text-decoration: none !important; }
.ac-share-twitter { background: #1DA1F2 !important; }
.ac-share-whatsapp { background: #25D366 !important; }
.ac-share-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888) !important; }
.ac-share-copy { background: #6c757d !important; }

/* Mobile: avatar + title on first row, buttons full width second row */
@media screen and (max-width: 767px) {
    .share-buttons .share-icon,
    .share-buttons .share-icon.ac-share-avatar,
    .share-buttons.share-buttons-home .share-buttons-block .share-icon {
        display: inline-block !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        margin-right: 10px !important;
    }
    .share-buttons .share-buttons-block.ac-share-block {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
        padding: 12px 0 !important;
    }
    .ac-share-heading {
        width: 100%;
        flex: none !important;
    }
    .sharethis-inline-share-buttons.ac-share-target {
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
    }
    .ac-share-buttons {
        width: 100%;
        gap: 6px;
    }
    .ac-share-btn {
        height: 40px !important;
        padding: 0 6px !important;
    }
    .ac-share-btn span { display: none !important; }
    .ac-share-btn i { font-size: 18px !important; }
    .sbb-seo-text { max-width: 100%; font-size: 10px !important; }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
    .ac-share-btn span { display: inline !important; font-size: 11px !important; }
}

/* =========================================================
   Horizontal scroll fix (UI-safe, all pages)
   Page-level only — does NOT touch header / dropdowns / logo
   ========================================================= */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Media that commonly overflow — exclude header logo & avatars */
.film-poster img,
.film-poster-img,
.flw-item img,
.anime-detail img,
.player-frame iframe,
.block_area img:not(#logo img):not(#avatar),
.container > img {
    max-width: 100%;
    height: auto;
}

/* Share row must never force page wider than viewport */
.share-buttons,
.share-buttons .container,
.share-buttons .share-buttons-block,
.sharethis-inline-share-buttons {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Header stays fully intact (logo, menus, search, dropdowns) */
#header,
#header .container,
#logo,
#logo img,
#search,
#header_menu,
#mobile_menu,
#mobile_search {
    max-width: none;
    overflow: visible;
}
#logo img {
    max-width: none !important;
    width: auto !important;
    height: 100% !important;
}
