.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;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out forwards;
}

.header_right-user .dropdown-menu,
.dropdown-menu-right {
    left: auto !important;
    right: 0 !important;
}

#watch-list-content .dropdown-menu {
    left: 0 !important;
    right: auto !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-more-desc {
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    font-size: 12px;
    display: inline-block;
    color: #ffbade !important;
    margin-left: 4px;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.btn-more-desc:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Login Page Layout & Centering - Desktop Only */
@media (min-width: 992px) {
    body[data-page="page_login"] #main-wrapper {
        min-height: calc(100vh - 420px);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
    }

    body[data-page="page_login"] .container-404 {
        padding: 60px 0;
        width: 100%;
    }
}

/* Remove bottom space below footer in Mobile UI */
@media (max-width: 991px) {

    body[data-page="page_login"] #wrapper,
    body[data-page="page_register"] #wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    body[data-page="page_login"] #main-wrapper,
    body[data-page="page_register"] #main-wrapper {
        flex: 1 0 auto;
        margin-bottom: 30px;
    }

    body[data-page="page_login"] #footer,
    body[data-page="page_register"] #footer {
        margin-top: auto;
    }
}

@media (max-width: 479px) {

    body[data-page="page_login"] #main-wrapper,
    body[data-page="page_register"] #main-wrapper {
        min-height: calc(100vh - 323px);
        min-height: calc(100dvh - 323px);
    }
}

/* Profile Header Gray Blur */
.profile-header-cover {
    filter: blur(20px) grayscale(100%);
    opacity: 0.35;
}

/* Profile Page Layout & Centralization - Desktop (PC) Only */
@media (min-width: 992px) {

    body[data-page="page_profile"] .profile-header,
    body[data-page="page_changepass"] .profile-header {
        margin-bottom: 15px !important;
    }

    body[data-page="page_profile"] .profile-box-account .h2-heading,
    body[data-page="page_changepass"] .profile-box-account .h2-heading {
        text-align: center;
        margin-bottom: 20px !important;
    }

    body[data-page="page_profile"] .profile-content,
    body[data-page="page_changepass"] .profile-content {
        min-height: calc(100vh - 540px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 0 20px;
    }

    body[data-page="page_profile"] #main-wrapper,
    body[data-page="page_changepass"] #main-wrapper {
        margin-bottom: 25px !important;
    }

    body[data-page="page_profile"] .profile-box-account,
    body[data-page="page_changepass"] .profile-box-account {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}



#sidebar_menu_bg.active {
    display: block !important;
}

.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;
}

/* Zanora-style comments */
.block_area-header.justify-content-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .75rem;
}

.guidelines {
    border: 1px solid var(--main-color, #cae265);
    font-size: 12px;
    line-height: 1.2;
    padding: .3rem .3rem .3rem .6rem;
    background-color: #fff1;
    border-radius: .4rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: inherit;
    text-decoration: none;
}

.guidelines span {
    background-color: var(--main-color, #cae265);
    font-size: 10px;
    font-weight: 500;
    padding: .15rem .2rem;
    border-radius: 4px;
    color: #000;
    animation: guidelines-tag 1s infinite;
}

@keyframes guidelines-tag {
    0% {
        background-color: #fff;
        transform: scale(1);
    }

    50% {
        background-color: var(--main-color, #cae265);
        transform: scale(1.1);
    }

    100% {
        background-color: #fff;
        transform: scale(1);
    }
}

.no-comments {
    padding: 1.5rem 0;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.comment-input .ci-emo {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}

.comment-input .ci-emo .cb-icon {
    font-size: 16px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    color: #9d9fa6;
}

.dropdown-menu-emo {
    padding: .25rem;
    min-width: 320px;
}

.cw_l-line.comment-focus {
    outline: 1px solid var(--main-color, #cae265);
    border-radius: 6px;
}

/* ==========================================================================
   Hero Section & Navigation Bar Collision & Spacing Fixes
   ========================================================================== */

#header {
    background: rgba(32, 31, 49, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

#header.header-home {
    background: rgba(32, 31, 49, 0.90) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

#header.header-home.fixed,
#header.fixed {
    background: #1a1928 !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 999 !important;
}

/* Information Pages (Terms of Service, DMCA) */
body[data-page="page_infor"] #header {
    background: #201f31 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    z-index: 999 !important;
}

body[data-page="page_infor"] #header.fixed {
    background: #1a1928 !important;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 999 !important;
}

body[data-page="page_infor"] .article-infor a {
    color: #ffbade;
    text-decoration: underline;
}

body[data-page="page_infor"] .article-infor a:hover {
    color: #fff;
}

/* Hero Slider Wrapper & Cover Styling */
.deslide-wrap {
    margin-top: -70px !important;
    position: relative;
    z-index: 1;
}

.deslide-wrap .deslide {
    padding-top: 90px !important;
    padding-bottom: 480px;
}

.deslide-item .deslide-cover {
    top: 0;
    left: 28%;
    right: 0;
    bottom: 0;
    -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%) !important;
    mask-image: linear-gradient(270deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%) !important;
}

.deslide-item .deslide-cover .deslide-cover-img:after {
    content: "";
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, #201f31 0%, rgba(32, 31, 49, 0) 30%, rgba(32, 31, 49, 0.45) 70%, #201f31 100%) !important;
}

.deslide-item .deslide-cover .deslide-cover-img img {
    object-position: center top;
    image-rendering: -webkit-optimize-contrast;
}

.deslide-item .deslide-item-content {
    max-width: 720px;
    bottom: 45px;
    z-index: 5;
}

.deslide-item .desi-sub-text {
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.deslide-item .desi-head-title {
    font-size: 2.6em;
    line-height: 1.25em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.deslide-item .desi-description {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments across all device aspect ratios */
@media screen and (max-width: 1400px) {
    .deslide-item .deslide-item-content {
        max-width: 600px;
    }

    .deslide-item .desi-head-title {
        font-size: 2.2em;
    }
}

@media screen and (max-width: 1199px) {
    .deslide-wrap .deslide {
        padding-top: 80px !important;
        padding-bottom: 420px;
    }

    .deslide-item .deslide-item-content {
        max-width: 520px;
        bottom: 30px;
    }

    .deslide-item .desi-head-title {
        font-size: 1.9em;
    }

    .deslide-item .desi-description {
        -webkit-line-clamp: 2;
    }
}

@media screen and (max-width: 991px) {
    .deslide-wrap {
        margin-top: -65px !important;
    }

    .deslide-wrap .deslide {
        padding-top: 75px !important;
        padding-bottom: 380px;
    }

    .deslide-item .deslide-cover {
        left: 15%;
        opacity: 0.85;
    }

    .deslide-item .deslide-item-content {
        max-width: 100%;
        padding-right: 80px;
        bottom: 25px;
    }

    .deslide-item .desi-head-title {
        font-size: 1.6em;
    }
}

@media screen and (max-width: 767px) {
    .deslide-wrap {
        margin-top: -60px !important;
    }

    .deslide-wrap .deslide {
        padding-top: 70px !important;
        padding-bottom: 340px;
    }

    .deslide-item .deslide-cover {
        left: 0;
        opacity: 0.55;
    }

    .deslide-item .deslide-item-content {
        padding-left: 15px;
        padding-right: 60px;
        bottom: 20px;
    }

    .deslide-item .desi-head-title {
        font-size: 1.35em;
        margin-bottom: 0.6rem;
    }

    .deslide-item .desi-sub-text {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .deslide-item .desi-buttons .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .deslide-wrap .deslide {
        padding-bottom: 300px;
    }

    .deslide-item .desi-head-title {
        font-size: 1.2em;
    }
}

/* Clickable Non-Redirecting Social Media Buttons */
.zr-social-button,
.zr-social-button:hover,
.zr-social-button:focus,
.zr-social-button:active {
    cursor: pointer !important;
    text-decoration: none !important;
    outline: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.zr-social-button:active {
    transform: scale(0.92);
}

/* ==========================================================================
   Estimated Schedule Section Styling & Collision Fixes
   ========================================================================== */

.table_schedule .table_schedule-list li {
    padding: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: background 0.2s ease !important;
}

.table_schedule .table_schedule-list li:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.table_schedule .table_schedule-list li .tsl-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.85rem 0.5rem !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    min-height: 52px !important;
}

.table_schedule .table_schedule-list li .time {
    position: static !important;
    transform: none !important;
    min-width: 65px !important;
    width: 65px !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-align: left !important;
    margin-right: 15px !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
}

.table_schedule .table_schedule-list li:hover .time {
    color: #ffbade !important;
}

.table_schedule .table_schedule-list li .film-detail {
    position: static !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.table_schedule .table_schedule-list li .film-detail .film-name {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    line-height: 1.4 !important;
}

.table_schedule .table_schedule-list li:hover .film-detail .film-name {
    color: #ffbade !important;
}

.table_schedule .table_schedule-list li .film-detail .fd-play {
    position: static !important;
    transform: none !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.table_schedule .table_schedule-list li .film-detail .fd-play .btn-play {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table_schedule .table_schedule-list li:hover .film-detail .fd-play .btn-play {
    background: #ffbade !important;
    color: #111 !important;
}

/* Responsive adjustments for schedule on mobile & tablets */
@media screen and (max-width: 767px) {
    .table_schedule .table_schedule-list li .tsl-link {
        padding: 0.75rem 0.25rem !important;
    }

    .table_schedule .table_schedule-list li .time {
        min-width: 50px !important;
        width: 50px !important;
        font-size: 12px !important;
        margin-right: 10px !important;
    }

    .table_schedule .table_schedule-list li .film-detail .film-name {
        font-size: 13px !important;
    }

    .table_schedule .table_schedule-list li .film-detail .fd-play .btn-play {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
}

@media screen and (max-width: 480px) {
    .table_schedule .table_schedule-list li .time {
        min-width: 45px !important;
        width: 45px !important;
        font-size: 11px !important;
        margin-right: 8px !important;
    }

    .table_schedule .table_schedule-list li .film-detail .film-name {
        font-size: 12px !important;
    }
}

/* Layout spacing for anime category & listing pages - PC UI only */
@media (min-width: 768px) {
    body[data-page="page_anime"] #main-wrapper {
        margin-bottom: 10px !important;
    }

    body[data-page="page_anime"] .block_area_category {
        margin-bottom: 0px !important;
    }

    body[data-page="page_anime"] .pre-pagination {
        margin-top: 65px !important;
        margin-bottom: 15px !important;
    }
}

/* Hero Spotlight Slider - Remove pagination dots */
#slider .swiper-pagination,
.deslide-wrap .swiper-pagination {
    display: none !important;
}

/* Fix image flickering in trending section */
#trending-home .film-poster-img {
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
}

#trending-home .film-poster-img.lazyloaded {
    transition: opacity 0.3s ease !important;
    -webkit-transition: opacity 0.3s ease !important;
    -moz-transition: opacity 0.3s ease !important;
}