.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: #ffdd95;
    /* Gold color for sub */
    font-weight: 600;
    color: #111 !important;

}

.tick-item.tick-dub {
    background: #343637;
    font-weight: 600;
    color: #afbdd0 !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;
}

#filter-block .cfc-min-block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

#filter-block .cfc-min-block .cmb-item {
    float: none;
    display: flex;
    align-items: center;
    margin: 0;
    min-height: 40px;
    box-sizing: border-box;
    border-color: #34383f;
}

#filter-block .cfc-min-block .cmb-item .ni-head {
    float: none;
    margin: 0 8px 0 0;
    line-height: 32px;
    flex: 0 0 auto;
}

#filter-block .cfc-min-block .cmb-item .nl-item,
#filter-block .cfc-min-block .cmb-item .nli-select {
    float: none;
    height: auto;
}

#filter-block .cmb-item-keyword {
    min-width: 260px;
}

#filter-block .cmb-item-keyword .form-control {
    width: 220px;
    height: 32px;
    background-color: #0f0f12;
    border: 1px solid #2e3238;
    border-radius: 6px;
    color: #a6a6a6;
    padding: 0 10px;
}

#filter-block .cmb-item-keyword .form-control:focus {
    border-color: rgba(255,221,149,.45);
    color: #fff;
    box-shadow: none;
}

#filter-block .cmb-item-range .ni-head {
    margin: 0 8px 0 0;
    line-height: 32px;
}

#filter-block .filter-range-dropdown {
    position: relative;
}

#filter-block .filter-range-dropdown summary {
    display: flex;
    align-items: center;
    min-width: 108px;
    min-height: 32px;
    padding-right: 28px;
    background-image: none !important;
    cursor: pointer;
    list-style: none;
}

#filter-block form#filter-form > .cfc-min-block > .cmb-item-range > .filter-range-dropdown > summary.custom-select.filter-range-summary {
    background-color: #101112;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    color: #a6a6a6;
    font-size: 12px;
    padding: 0 28px 0 10px;
}

#filter-block .filter-range-dropdown summary::-webkit-details-marker {
    display: none;
}

#filter-block .filter-range-dropdown summary::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #a6a6a6;
    border-bottom: 2px solid #a6a6a6;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

#filter-block .filter-range-dropdown[open] summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

#filter-block .filter-range-summary span {
    display: block;
    font-size: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#filter-block .filter-range-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #34383f;
    border-radius: 6px;
    background: #1c1e20;
    box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

#filter-block .filter-range-menu .form-control {
    height: 34px;
    min-width: 84px;
    background-color: #0f0f12;
    border: 1px solid #2e3238;
    border-radius: 6px;
    color: #a6a6a6;
    padding: 0 10px;
}

#filter-block .filter-range-menu .form-control:focus {
    border-color: rgba(255,221,149,.45);
    color: #fff;
    box-shadow: none;
}

@media (min-width: 1200px) {
    #filter-block .cfc-min-block {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
    }

    #filter-block .cfc-min-block .cmb-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        width: 100%;
        min-width: 0;
        padding-right: 8px;
    }

    #filter-block .cfc-min-block .cmb-item .ni-head {
        min-width: 0;
        white-space: nowrap;
    }

    #filter-block .cfc-min-block .cmb-item .nl-item,
    #filter-block .cfc-min-block .cmb-item .nli-select {
        width: 100%;
        min-width: 0;
    }

    #filter-block .cfc-min-block .cmb-item .custom-select {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    #filter-block .cmb-item-keyword {
        grid-column: span 2;
        grid-template-columns: auto minmax(0, 1fr);
    }

    #filter-block .cmb-item-keyword .form-control {
        width: 100%;
    }

    #filter-block .cmb-item-range {
        grid-template-columns: auto minmax(0, 1fr);
    }

    #filter-block .filter-range-dropdown {
        width: 100%;
    }

    #filter-block .filter-range-dropdown summary {
        width: 100%;
        min-width: 0;
    }

    #filter-block .filter-range-menu {
        min-width: 220px;
    }
}

@media (max-width: 1199px) {
    #filter-block .cfc-min-block {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 991px) {
    #filter-block .cmb-item-keyword {
        min-width: 100%;
    }

    #filter-block .cmb-item-keyword .form-control {
        width: 100%;
    }
}

.filter-host-compact {
    clear: both;
    margin-bottom: 18px;
}

.filter-host-compact .category_filter-compact {
    padding: 14px 16px;
    border-radius: 14px;
    background: #17181c;
    border: 1px solid #202328;
}

.filter-host-compact .category_filter-compact .category_filter-content {
    padding: 0;
}

.filter-host-compact .category_filter-compact .cfc-min-block {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.filter-host-compact .category_filter-compact .cfc-min-block .cmb-item {
    float: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #272b31;
    border-radius: 8px;
    background: #111216;
    box-sizing: border-box;
}

.filter-host-compact .category_filter-compact .cfc-min-block .cmb-item .ni-head {
    float: none;
    display: block;
    width: auto;
    min-width: 0;
    margin: 0 8px 0 0;
    color: #9ea3ad;
    font-size: 11px;
    line-height: 32px;
    white-space: nowrap;
}

.filter-host-compact .category_filter-compact .cfc-min-block .cmb-item .nl-item,
.filter-host-compact .category_filter-compact .cfc-min-block .cmb-item .nli-select {
    float: none;
    width: 100%;
    min-width: 0;
    height: auto;
}

.filter-host-compact .category_filter-compact .cfc-min-block .cmb-item .custom-select {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 32px;
    padding: 0 26px 0 0;
    color: #d2d6de;
    background-color: transparent;
    border: none;
    box-shadow: none !important;
}

.filter-host-compact .category_filter-compact .cmb-item-keyword {
    grid-column: span 2;
}

.filter-host-compact .category_filter-compact .cmb-item-keyword .form-control {
    width: 100%;
    height: 32px;
    color: #d2d6de;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.filter-host-compact .category_filter-compact .cmb-item-keyword .form-control::placeholder {
    color: #707784;
}

.filter-host-compact .category_filter-compact .cmb-item-keyword .form-control:focus,
.filter-host-compact .category_filter-compact .cfc-min-block .cmb-item .custom-select:focus {
    color: #fff;
    box-shadow: none;
}

.filter-host-compact .category_filter-compact .cmb-item-range .ni-head {
    margin: 0 8px 0 0;
}

.filter-host-compact .category_filter-compact .filter-range-dropdown {
    position: relative;
    width: 100%;
}

.filter-host-compact .category_filter-compact .filter-range-dropdown summary {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0 26px 0 0;
    font-size: 12px;
    background-image: none !important;
    list-style: none;
    color: #d2d6de;
    cursor: pointer;
}

.filter-host-compact .category_filter-compact .filter-range-dropdown summary::-webkit-details-marker {
    display: none;
}

.filter-host-compact .category_filter-compact .filter-range-dropdown summary::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #8f95a0;
    border-bottom: 2px solid #8f95a0;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.filter-host-compact .category_filter-compact .filter-range-dropdown[open] summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

.filter-host-compact .category_filter-compact .filter-range-summary span {
    font-size: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#header #logo {
    height: 36px;
}

@media (max-width: 767px) {
    #header #logo {
        height: 30px;
    }
}

.filter-host-compact .category_filter-compact .filter-range-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid #272b31;
    border-radius: 8px;
    background: #1b1d22;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.filter-host-compact .category_filter-compact .filter-range-menu .form-control {
    min-width: 84px;
    height: 34px;
    background: #101114;
    border: 1px solid #24282e;
    border-radius: 6px;
    color: #d2d6de;
}

.filter-host-compact .category_filter-compact .cfc-button {
    margin-top: 10px !important;
}

.filter-host-compact .category_filter-compact .cfc-button .btn,
.filter-host-compact .category_filter-compact .cfc-button button {
    min-width: 110px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: #ffdd95;
    color: #111;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .filter-host-compact .category_filter-compact .cfc-min-block {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .filter-host-compact .category_filter-compact .cfc-min-block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-host-compact .category_filter-compact .cmb-item-keyword {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .block_area.block_area_category > .block_area-header {
        display: block;
        margin-bottom: 12px;
    }

    .block_area.block_area_category > .block_area-header .bah-heading {
        float: none;
        margin-right: 0 !important;
    }

    .filter-host-compact .category_filter-compact {
        padding: 12px;
    }

    .filter-host-compact .category_filter-compact .cfc-min-block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-host-compact .category_filter-compact .cmb-item-keyword {
        grid-column: span 2;
    }
}
