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

.ssl-item.watched::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  color: var(--color-success);
  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: var(--color-warning);
    color: var(--text-white);
    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 var(--border-light);
   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: var(--color-primary);
}

.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: var(--bg-surface);
    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: var(--bg-input);
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#episode-range:hover {
    background-color: var(--bg-item-hover);
    color: var(--text-white);
    border-color: var(--bg-item-hover);
}

.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: var(--bg-item);
    color: var(--color-secondary);
}

.episode-item:hover {
    background-color: var(--bg-item-hover);
    color: var(--text-white);
}


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

.episode-item.filler-highlight:hover {
    background: #9a6700;
    color: var(--text-white);
}

.episode-item.active {
    background: var(--color-primary);
    color: var(--text-white);
    font-weight: 600;
}

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

.tick-age {
    background-color: var(--color-warning);
    color: var(--text-white);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.tick-item.tick-sub {
    background: var(--color-sub);
    font-weight: 600;
    color: var(--text-dark) !important;

}

.tick-item.tick-dub {
    background: var(--color-dub);
    font-weight: 600;
    color: var(--text-dark) !important;

}

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

.qtip-content {
    color: var(--text-white);
}

.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: var(--color-rating);
}

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

.qtip-description {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.qtip-meta > div {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-light);
}

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

.btn-watch {
    flex: 1;
    background: var(--color-info);
    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;
}

/* ── Fix swiper-bundle.css overriding custom carousel arrows ── */
.deslide-wrap .swiper-button-prev,
.deslide-wrap .swiper-button-next {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 40px !important;
    height: 40px !important;
    margin-top: 0 !important;
    transform: none !important;
    display: inline-block !important;
    background: var(--border-light) !important;
    color: var(--text-white) !important;
    font-size: 18px !important;
    line-height: 40px !important;
    text-align: center !important;
    border-radius: 6px !important;
    margin: 3px 0 !important;
    cursor: pointer;
}

.deslide-wrap .swiper-button-prev:after,
.deslide-wrap .swiper-button-next:after {
    display: none !important;
}

.deslide-wrap .swiper-button-prev:hover,
.deslide-wrap .swiper-button-next:hover {
    background: var(--color-primary) !important;
    color: var(--text-dark) !important;
}

.deslide-wrap .swiper-navigation {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 40px;
    height: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Pagination styling ── */
#pagination-container {
    margin: 30px 0 10px;
}

#pagination-container .pagination {
    gap: 6px;
}

#pagination-container .pagination .page-item .page-link {
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    text-align: center;
    transition: all 0.2s ease;
}

#pagination-container .pagination .page-item .page-link:hover {
    background: var(--hover-primary-bg-lg);
    color: var(--color-primary);
}

#pagination-container .pagination .page-item .page-link:focus {
    box-shadow: none;
}

#pagination-container .pagination .page-item.active .page-link {
    background: var(--color-primary);
    color: var(--text-dark);
    cursor: default;
    box-shadow: var(--shadow-primary);
}

/* ===== Season Dropdown ===== */
.season-dropdown-wrap {
    background-color: var(--bg-card);
    padding: 12px 15px;
    border-top: 1px solid var(--border-subtle);
}

.season-dropdown-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.season-dropdown-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
}

.season-dropdown-select-wrap {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.season-dropdown-select {
    width: 100%;
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff !important;
    background-color: var(--bg-item) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.season-dropdown-select:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.season-dropdown-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(255, 210, 86, 0.15) !important;
    background-color: var(--bg-item) !important;
    color: #fff !important;
}

.season-dropdown-select option {
    background-color: var(--bg-card);
    color: #fff;
    padding: 8px 12px;
}

.season-dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.2s ease;
}

.season-dropdown-select:focus + .season-dropdown-arrow {
    color: var(--color-primary);
}

@media screen and (max-width: 576px) {
    .season-dropdown-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .season-dropdown-select-wrap {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== Schedule Banner ===== */
.schedule-banner {
    position: relative;
    background: var(--bg-color);
    border-radius: 0;
    padding: 16px 20px;
    overflow: hidden;
}

.schedule-banner-glow {
    display: none;
}

.schedule-banner-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 2;
    line-height: 1;
}

.schedule-banner-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.schedule-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.schedule-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.schedule-banner-icon i {
    font-size: 20px;
    color: var(--text-dark);
}

.schedule-banner-info {
    flex: 1;
    min-width: 0;
}

.schedule-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.schedule-banner-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.schedule-banner-date i {
    opacity: 0.7;
}

/* Countdown */
.schedule-banner-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.countdown-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.countdown-sep {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 210, 86, 0.5);
    margin-bottom: 14px;
    animation: sep-blink 1s ease-in-out infinite;
}

@keyframes sep-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Available state */
.schedule-banner-available {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-success, #5ddb6e);
    padding: 6px 0;
    position: relative;
    z-index: 1;
}

.schedule-banner--ready {
    background: var(--bg-card);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .schedule-banner {
        padding: 14px 16px;
    }

    .schedule-banner-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .schedule-banner-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .schedule-banner-icon i {
        font-size: 17px;
    }

    .schedule-banner-info {
        flex: 1;
        min-width: 120px;
    }

    .schedule-banner-countdown {
        width: 100%;
        justify-content: center;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .countdown-unit {
        min-width: 50px;
    }

    .countdown-value {
        font-size: 24px;
    }
}

@media screen and (max-width: 400px) {
    .schedule-banner-title {
        font-size: 13px;
    }

    .schedule-banner-date {
        font-size: 11px;
    }

    .countdown-value {
        font-size: 20px;
    }

    .countdown-unit {
        min-width: 40px;
    }
}

/* ===== View Detail Button ===== */
.btn-view-detail {
    background: var(--color-primary) !important;
    color: var(--text-dark) !important;
    border: none !important;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.btn-view-detail:hover {
    opacity: 0.85;
    color: var(--text-dark) !important;
}

/* ============================================================
   SEO: Screen reader only (visually hidden H1 for home page)
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   SEO: Breadcrumb styling
   ============================================================ */
.breadcrumb {
    background: transparent;
    padding: 8px 0;
    margin-bottom: 5px;
    font-size: 0.85em;
}
.breadcrumb-item a {
    color: #aaa;
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: #ddd;
}

/* ============================================================
   Sidebar menu - genre submenu
   ============================================================ */
.sidebar_menu-sub { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sidebar_menu-sub.show { max-height: 1000px; }
.nav-more { cursor: pointer; }
.nav-more:hover { background-color: var(--hover-primary-bg); }
