/* =========================================================
   DIZIRELLA - MAIN CLEAN
   Ortak tema, kart duzeni ve temel responsive kurallar
   Yukleme sirasi: main-clean.css -> rella-clean.css
   ========================================================= */

/* ---------- KART DUZENI ---------- */
.diziler,
.films,
.episodes {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
}

/* Masaustu: Dizi / Film 6 kart */
.diziler .list-series,
.films .list-series {
    flex: 0 0 calc(100% / 6) !important;
    width: calc(100% / 6) !important;
    max-width: calc(100% / 6) !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Masaustu: Bolumler 5 kart */
.episodes .list-series,
.episodes .list-episodes {
    flex: 0 0 calc(100% / 5) !important;
    width: calc(100% / 5) !important;
    max-width: calc(100% / 5) !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.episodes .episode-box {
    width: 100% !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
}

/* Mobil: Dizi / Film 3 kart, bolumler tek kart */
@media screen and (max-width: 768px) {
    .diziler .list-series,
    .films .list-series {
        flex: 0 0 calc(100% / 3) !important;
        width: calc(100% / 3) !important;
        max-width: calc(100% / 3) !important;
    }

    .episodes .list-series,
    .episodes .list-episodes {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .episodes .episode-box {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
}

/* Mobil/tablet hizli arama */
@media screen and (max-width: 1000px) {
    input.search-series,
    span.series-close {
        display: none !important;
    }
}

/* ---------- GENEL KOYU TEMA ---------- */
body {
    background: #000 !important;
    color: #fff;
}

#wrap {
    background: linear-gradient(
        rgba(59, 59, 59, 0.85) 0%,
        rgba(0, 0, 0, 0.30) 0%
    ) !important;
    box-shadow: 0 0 10px 3px rgb(0 0 0 / 50%);
}

#header,
.topnav {
    background: rgba(0, 0, 0, 0.30) !important;
    color: #fff;
    box-shadow: 0 0 10px 3px rgb(0 0 0 / 50%);
}

#footer {
    background: rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 0 10px 3px rgb(0 0 0 / 50%);
}

#content {
    color: #fff;
}

a,
a:visited {
    color: rgba(255, 255, 255, 0.80);
    text-decoration: none;
}

a:hover {
    color: #ababab;
    text-decoration: none;
}

/* ---------- MENU ---------- */
.topnav a {
    color: #fff !important;
}

.topnav a:hover {
    color: #d5d5d5 !important;
}

ul.sub-menu {
    background: #170d38 !important;
}

ul.sub-menu li {
    border-bottom: 1px dashed rgba(205, 194, 255, 0.10);
}

ul.sub-menu li a {
    color: #fff !important;
}

/* ---------- BASLIKLAR ---------- */
.title {
    border-bottom: 2px solid rgba(255, 255, 255, 0.65) !important;
}

.title .title-border {
    color: #fff !important;
    border-bottom: 2px solid rgb(175 2 2 / 75%) !important;
}

.bd-blue { border-color: #007afc !important; }
.bd-purple { border-color: #f40303 !important; }
.bd-green { border-color: #26c850 !important; }

.tumunugor a {
    color: #fff !important;
}

.tumunugor a:hover {
    color: #ffd70d !important;
}

/* ---------- KART / POSTER ---------- */
.poster,
.episode-box .poster,
.cat-img-main,
.search-card {
    background: rgba(25, 25, 25, 0.70) !important;
    border: 1px solid #373737;
    border-radius: 6px;
    overflow: hidden;
}

.episode-box .poster {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.28);
}

.episode-box .poster .img {
    background: rgba(5, 1, 26, 0.58) !important;
}

.episode-title,
.cat-title-main {
    background: linear-gradient(to top, rgb(0, 0, 0) 0%, transparent 100%) !important;
    color: #fff !important;
    text-shadow: 3px 2px 1px #000;
}

.cat-title-main {
    background: rgba(0, 0, 0, 0.75) !important;
}

.cat-title-main a {
    color: #ffd70d !important;
}

.cat-imdb-main,
.episode-date {
    color: #ccc !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

.serie-name,
.serie-name a,
.episode-name,
.episode-name a {
    color: #fff !important;
}

.episode-lang i.far.fa-closed-captioning {
    color: #ffae0d !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

/* ---------- ARAMA ---------- */
form.example input[type="text"],
form.example button {
    background-color: rgba(0, 0, 0, 0.25) !important;
    color: #fff !important;
}

form.example input[type="text"]::placeholder,
#searchInput::placeholder {
    color: #fff !important;
}

#header i.fas.fa-search {
    background-color: rgba(0, 0, 0, 0.25) !important;
    color: #fff !important;
}

#datafetch {
    background-color: #1b1c20 !important;
    border: 1px solid #373737 !important;
    border-top: none !important;
    color: #fff;
}

.search-item:hover {
    background-color: #252630 !important;
}

.search-item-title,
.search-card-title {
    color: #fff !important;
}

.search-no-results {
    color: #9e9e9e !important;
}

.search-card {
    background: rgba(25, 25, 25, 0.70) !important;
    border: 1px solid #373737 !important;
}

.search-card-type {
    background: rgba(0, 0, 0, 0.70) !important;
    color: #ffd700 !important;
}

.search-card-romaji {
    color: #a8eef1 !important;
}

.search-card-summary {
    color: #ccc !important;
}

.searchelement {
    border-bottom: 1px dashed rgba(205, 194, 255, 0.10);
}

.searchelementnf a {
    color: #fff !important;
}

/* ---------- MOBIL PANEL ---------- */
@media only screen and (max-width: 1000px) {
    .alphabetical-category-wrapper {
        background: #190b38 !important;
    }

    .topnav {
        background-color: rgb(0 0 0 / 20%) !important;
    }

    #wrap {
        overflow-x: hidden;
    }
}

/* ---------- LOADER ---------- */
.loading,
.loading-placeholder {
    color: #a8eef1 !important;
}

.loading-gif {
    background: rgb(0 0 0 / 30%) url(images/loading.gif) no-repeat center !important;
}

/* ---------- TELEGRAM BANNER ---------- */
.telegram-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    margin: 20px 0;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, #3b0000 0%, #8b0000 48%, #f40303 100%) !important;
    color: #fff;
    border: 1px solid rgba(244, 3, 3, 0.40);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.telegram-banner:hover {
    background: linear-gradient(135deg, #4a0000 0%, #a80000 48%, #ff2b2b 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(244, 3, 3, 0.25);
}

.telegram-banner-icon {
    font-size: 34px;
    min-width: 40px;
    color: #ffd70d;
}

.telegram-banner-content {
    flex: 1;
    min-width: 0;
}

.telegram-banner-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
    color: #fff;
}

.telegram-banner-content span {
    font-size: 14px;
    opacity: 0.95;
    color: #fff;
}

.telegram-banner-button {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.telegram-banner-button:hover {
    background: #ffd70d;
    color: #000;
}

@media screen and (max-width: 768px) {
    .telegram-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}

/* ---------- BOLUM META ---------- */
.episode-meta {
    font-size: 13px;
    color: #aaa;
    margin-top: 6px;
    line-height: 1.5;
}
/* =========================================================
   DIZIRELLA - RELLA CLEAN
   Sayfa detaylari + Owl/Grid duzenleri
   main-clean.css dosyasindan SONRA yuklenmelidir.
   ========================================================= */

/* ---------- DETAY SAYFASI ---------- */
.footerleft,
.footerleft p,
.footerleft span,
.footerleft a {
    color: #fff !important;
}

#respond {
    margin-bottom: 1px;
    padding-top: 5px;
    padding-bottom: 3px;
    background-color: rgb(0 0 0 / 88%);
}

#icerikcat {
    position: relative;
    display: block;
    width: 100%;
    max-width: 940px;
    margin-top: 3px;
    margin-bottom: -2px;
    padding: 10px;
    box-sizing: border-box;
    color: #fff;
    background-color: rgb(0 0 0 / 58%);
    font-family: 'Noto Sans', Arial, serif;
    font-size: 14px;
}

.dizimeta {
    color: #fff;
    font-family: Poppins, Arial, serif;
}

.genres {
    float: left;
    margin: 8px 5px 0 0;
    padding: 2px 7px;
    color: #fff;
    background-color: rgb(175 2 2 / 45%);
    border-radius: 3px;
    font-family: Poppins, Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.btn.active {
    font-weight: normal;
    border: 2px solid #fff;
}

#gorunum {
    float: right;
    width: 120px;
    margin-top: 3px;
    padding: 0 10px 2px;
    background: rgb(175 2 2 / 45%);
    border-radius: 3px;
    box-sizing: border-box;
}

.listhead {
    width: 100%;
    height: 28px;
    margin: 10px auto 0;
    padding-top: 10px;
    color: #fff;
    background-color: rgb(175 2 2 / 45%);
    font-family: Poppins, Arial, serif !important;
    font-size: 14px;
    font-weight: normal;
    box-sizing: content-box;
}

.bolumust {
    position: relative;
    width: 100%;
    height: 28px;
    padding-top: 10px;
    color: #fff;
    background-color: rgb(0 0 0 / 58%);
    border-bottom: 1px dashed rgba(205, 194, 255, 0.10);
    font-family: 'Noto Sans', Arial, serif;
    font-size: 13px;
    font-weight: normal;
}

.container .bolum-ismi {
    float: none;
    margin-left: -15px;
    color: #fff;
}

#alt {
    display: flex;
    width: 100%;
    height: 40px;
    margin-top: -19px;
    margin-bottom: 5px;
    padding-top: 6px;
    background-color: #000;
    box-sizing: content-box;
}

.nexpre a {
    padding: 3px 5px;
    color: #fff !important;
    background-color: rgb(175 2 2 / 45%);
    border-radius: 3px;
    font-family: Poppins, Arial, serif;
    font-size: 13px !important;
    font-weight: normal !important;
    text-transform: none !important;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.episode-seo-content {
    margin-top: 25px;
    padding: 25px;
    background: transparent;
    border-radius: 10px;
    line-height: 1.7;
}

.episode-seo-content h2 {
    margin: 25px 0 12px;
    font-size: 22px;
}

.episode-seo-content h2:first-child {
    margin-top: 0;
}

.episode-seo-content p {
    margin-bottom: 15px;
}

.episode-faq {
    margin-top: 15px;
}

.episode-faq details {
    margin-bottom: 10px;
    padding: 12px 15px;
    background: #181818;
    border-radius: 8px;
}

.episode-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.episode-faq p {
    margin-top: 10px;
    margin-bottom: 0;
}

.lets_comment {
    color: #fff;
    font-size: 12px;
}

.comment_spoiler,
.comment_send {
    height: 30px;
    border: 0;
    color: #fff;
    background-color: rgb(175 2 2 / 45%);
    font-family: 'Noto Sans', Arial, serif;
    font-size: 12px;
    font-weight: normal;
    cursor: pointer;
}

.comment_spoiler {
    float: left;
    width: 116px;
    margin-right: 7px;
}

.comment_send {
    float: right;
    width: 130px;
    border-radius: 0;
}

.current_dil {
    margin-right: 1px;
    background-color: rgb(175 2 2 / 45%);
}

.hatali,
.wl_add {
    display: inline-block;
    float: right;
    margin-top: 1px;
    margin-right: 4px;
    padding: 4px 5px;
    border: 0;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.80);
    font-family: Poppins, Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hatali {
    background: transparent;
}

.wl_add {
    background-color: rgba(82, 41, 204, 0.45);
}

.ac-kapa:hover,
.hatali:hover,
.wl_add:hover {
    background: #4d4279;
    color: #fff;
}

/* =========================================================
   NORMAL DIZI OWL -> SABIT GRID
   Masaustu: 6 sutun. Zoom out ile 7/8 karta cikmaz.
   Asya slideri bu kurallardan harictir.
   ========================================================= */
.diziler .slider.owl-carousel:not(.asya-dizileri-slider) {
    display: block !important;
    width: 100% !important;
}

.diziler .slider.owl-carousel:not(.asya-dizileri-slider) .owl-stage-outer {
    width: 100% !important;
    overflow: visible !important;
}

.diziler .slider.owl-carousel:not(.asya-dizileri-slider) .owl-stage {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
}

.diziler .slider.owl-carousel:not(.asya-dizileri-slider) .owl-item {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.diziler .slider.owl-carousel:not(.asya-dizileri-slider) .owl-item.cloned {
    display: none !important;
}

.diziler .slider.owl-carousel:not(.asya-dizileri-slider) .owl-nav,
.diziler .slider.owl-carousel:not(.asya-dizileri-slider) .owl-dots {
    display: none !important;
}

.diziler .slider.owl-carousel:not(.asya-dizileri-slider) .list-series {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.diziler .episode-box {
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.diziler .episode-box:hover {
    transform: translateY(-3px);
}

.diziler .poster img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.diziler .episode-date {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    padding: 4px 7px;
    color: #ffc107;
    background: rgb(0 0 0 / 75%);
    border-radius: 5px;
    font-size: 12px;
}

.diziler .episode-title {
    padding: 8px;
    text-align: center;
    background: #181818;
}

.diziler .serie-name a {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.diziler .episode-name {
    margin-top: 3px;
    color: #aaa;
    font-size: 12px;
}

/* =========================================================
   ASYA DIZILERI - OWL CAROUSEL KORUNUR
   Owl'in inline width/transform degerlerini EZME.
   ========================================================= */
.asya-dizileri-slider.owl-carousel {
    display: block !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

.asya-dizileri-slider .owl-stage-outer {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
}

.asya-dizileri-slider .owl-stage {
    display: flex !important;
    gap: 0 !important;
    touch-action: pan-y !important;
}

.asya-dizileri-slider .owl-item {
    display: block !important;
    float: left !important;
    flex: none !important;
    touch-action: pan-y !important;
    -webkit-tap-highlight-color: transparent;
}

.asya-dizileri-slider .list-series {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.asya-dizileri-slider .episode-box {
    position: relative;
    width: calc(100% - 8px) !important;
    max-width: none !important;
    margin: 0 4px !important;
    overflow: hidden;
    background: #111;
    border-radius: 10px;
    box-sizing: border-box !important;
}

.asya-dizileri-slider .poster img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.asya-dizileri-slider .episode-date {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 3;
    padding: 4px 7px;
    color: #ffc107;
    background: rgb(0 0 0 / 75%);
    border-radius: 5px;
    font-size: 12px;
}

.asya-dizileri-slider .episode-title {
    padding: 8px;
    text-align: center;
    background: #181818;
}

.asya-dizileri-slider .serie-name a {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asya-dizileri-slider .episode-name {
    margin-top: 3px;
    color: #aaa;
    font-size: 12px;
}

/* =========================================================
   ANASAYFA ALT WIDGET - SABIT 7 KART
   index.php'de .anasayfa-alt-widget wrapper'i gerektirir.
   21 kart = 7 x 3 satir.
   ========================================================= */
.anasayfa-alt-widget .slider.owl-carousel {
    display: block !important;
    width: 100% !important;
}

.anasayfa-alt-widget .slider.owl-carousel .owl-stage-outer {
    width: 100% !important;
    overflow: visible !important;
}

.anasayfa-alt-widget .slider.owl-carousel .owl-stage {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
}

.anasayfa-alt-widget .slider.owl-carousel .owl-stage > .owl-item {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.anasayfa-alt-widget .slider.owl-carousel .owl-item.cloned {
    display: none !important;
}

.anasayfa-alt-widget .slider.owl-carousel .list-series,
.anasayfa-alt-widget .slider.owl-carousel .episode-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.anasayfa-alt-widget .poster img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.anasayfa-alt-widget .owl-nav,
.anasayfa-alt-widget .owl-dots {
    display: none !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    /* Normal dizi gridi mobilde tam 3 sutun */
    .diziler .slider.owl-carousel:not(.asya-dizileri-slider) .owl-stage {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .diziler .serie-name a,
    .asya-dizileri-slider .serie-name a {
        font-size: 12px;
    }

    .diziler .episode-date,
    .asya-dizileri-slider .episode-date {
        padding: 3px 6px;
        font-size: 11px;
    }

    /* Asya slider swipe olarak kalir */
    .asya-dizileri-slider.owl-carousel,
    .asya-dizileri-slider .owl-stage-outer {
        overflow: hidden !important;
        touch-action: pan-y !important;
    }

    .asya-dizileri-slider .owl-nav,
    .asya-dizileri-slider .owl-dots {
        display: none !important;
    }

    /* Alt widget mobilde 3 sutun */
    .anasayfa-alt-widget .slider.owl-carousel .owl-stage {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .episode-seo-content {
        margin-top: 18px;
        padding: 16px;
    }

    .episode-seo-content h2 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    #icerikcat {
        padding: 8px;
        font-size: 13px;
    }

    .telegram-banner-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
/* =========================================================
   ALT WIDGET - OWL YÜKLENME FLASH FIX
   ========================================================= */

.anasayfa-alt-widget .owl-carousel {
    opacity: 0;
    visibility: hidden;
}

.anasayfa-alt-widget .owl-carousel.owl-loaded {
    opacity: 1;
    visibility: visible;
}