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

/* ========================================================
   Header Logo & Responsive Hero Slider Spacing
   ======================================================== */
#header #logo {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    margin: 15px 25px 15px 50px !important;
    float: left !important;
}

#header #logo img {
    max-height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.deslide-wrap {
    position: relative !important;
    width: 100% !important;
    margin-top: 85px !important;
    margin-bottom: 30px !important;
    padding-top: 0 !important;
    z-index: 10 !important;
}

@media (max-width: 991px) {
    #header #logo {
        margin: 15px 15px 15px 50px !important;
        max-width: 130px !important;
    }
    #header #logo img {
        max-height: 32px !important;
    }
    .deslide-wrap {
        margin-top: 75px !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 576px) {
    #header #logo {
        margin: 12px 10px 12px 45px !important;
        max-width: 110px !important;
    }
    #header #logo img {
        max-height: 28px !important;
    }
    .deslide-wrap {
        margin-top: 70px !important;
        margin-bottom: 15px !important;
    }
}

#slider .deslide-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #11131a;
    display: flex;
    align-items: center;
    min-height: 440px;
}

#slider .deslide-cover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#slider .deslide-cover-img,
#slider .deslide-cover-img picture {
    width: 100%;
    height: 100%;
    display: block;
}

#slider .deslide-cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Dark gradient overlay for high contrast text readability */
#slider .deslide-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #0d0e13 0%, rgba(13, 14, 19, 0.94) 35%, rgba(13, 14, 19, 0.6) 65%, rgba(13, 14, 19, 0.25) 100%),
                linear-gradient(0deg, #0d0e13 0%, rgba(13, 14, 19, 0.7) 30%, transparent 60%);
    pointer-events: none;
}

#slider .deslide-item-content {
    position: relative;
    z-index: 5;
    padding: 40px 45px;
    max-width: 640px;
    width: 100%;
}

#slider .desi-sub-text {
    font-size: 13px;
    font-weight: 700;
    color: #ffb43a;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#slider .desi-head-title {
    font-size: clamp(22px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#slider .desi-description {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 14px 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    max-width: 540px;
}

#slider .desi-buttons .btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
}

/* Mobile & Small Screen Adaptation */
@media (max-width: 767px) {
    #slider .deslide-item {
        min-height: 320px;
        align-items: flex-end;
    }
    #slider .deslide-cover-img img {
        object-position: center center;
    }
    #slider .deslide-cover::after {
        background: linear-gradient(0deg, #0d0e13 0%, rgba(13, 14, 19, 0.88) 60%, rgba(13, 14, 19, 0.45) 100%);
    }
    #slider .deslide-item-content {
        padding: 16px 16px 20px;
        max-width: 100%;
    }
    #slider .desi-sub-text {
        font-size: 11px;
        margin-bottom: 4px;
    }
    #slider .desi-head-title {
        font-size: 18px;
        margin-bottom: 8px;
        -webkit-line-clamp: 1;
    }
    #slider .desi-description {
        display: none; /* Hide heavy synopsis on mobile so title and buttons don't block viewport */
    }
    #slider .sc-detail {
        margin-bottom: 12px;
        font-size: 11px;
    }
    #slider .desi-buttons {
        display: flex;
        gap: 8px;
    }
    #slider .desi-buttons .btn {
        padding: 8px 14px;
        font-size: 12px;
        flex: 1;
        text-align: center;
        justify-content: center;
        margin-right: 0 !important;
    }
}