/* Dizi profil sayfasi: bolum araclari tum ekranlarda, profil yerlesimi mobilde. */
body.single-diziler .be-episode-list-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
}

body.single-diziler .be-episode-search {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}

body.single-diziler .be-episode-order-toggle.ui.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #303544 !important;
    border-radius: 6px !important;
    background: #1a1e29 !important;
    color: #b8bfce !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

body.single-diziler .be-episode-order-toggle.ui.button:hover,
body.single-diziler .be-episode-order-toggle.ui.button:focus {
    border-color: rgba(255, 152, 0, .7) !important;
    background: rgba(255, 152, 0, .08) !important;
    color: #ffad33 !important;
    outline: none;
}

body.single-diziler .be-episode-order-toggle[aria-pressed="true"] {
    border-color: rgba(255, 152, 0, .55) !important;
    color: #ffad33 !important;
}

body.single-diziler .be-episode-order-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 4px;
    background: rgba(255, 152, 0, .12);
    color: #ff9800;
    font-size: 14px;
    line-height: 1;
}

.be-series-action-anchor {
    display: none !important;
}

body.single-diziler #series-action-buttons .be-serie-actions {
    border: 1px solid #ffb13b !important;
    background: #ff9800 !important;
    color: #171a22 !important;
    box-shadow: 0 5px 16px rgba(255, 152, 0, .2) !important;
    font-weight: 600 !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.single-diziler #series-action-buttons .be-serie-actions:hover,
body.single-diziler #series-action-buttons .be-serie-actions:focus {
    border-color: #ffc15f !important;
    background: #ffad33 !important;
    color: #11141b !important;
    box-shadow: 0 7px 20px rgba(255, 152, 0, .3) !important;
    transform: translateY(-1px);
    outline: none;
}

body.single-diziler #series-action-buttons .be-serie-actions.active {
    border: 1px solid #ffc15f !important;
    background: #ffad33 !important;
    color: #11141b !important;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, .12) !important;
}

.be-summary-dialog[hidden] {
    display: none !important;
}

.be-summary-dialog {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.be-summary-dialog-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(4, 6, 12, .84);
    backdrop-filter: blur(4px);
    cursor: default;
}

.be-summary-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(72vh, 620px);
    overflow: auto;
    padding: 22px 20px 20px;
    border: 1px solid #303647;
    border-radius: 11px;
    background: #151925;
    color: #b9c0cf;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(10px) scale(.985);
    transition: opacity .16s ease, transform .16s ease;
}

.be-summary-dialog.is-open .be-summary-dialog-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.be-summary-dialog-panel h2 {
    margin: 0 32px 14px 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.be-summary-dialog-content,
.be-summary-dialog-content p {
    margin: 0;
    color: #b9c0cf;
    font-size: 13px;
    line-height: 1.7;
}

.be-summary-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #343a49;
    border-radius: 50%;
    background: #1d222e;
    color: #fff;
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
}

body.be-summary-dialog-open {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    body.single-diziler .series-genres {
        min-height: 36px !important;
        padding: 5px 0 !important;
        gap: 6px !important;
        align-items: center !important;
    }

    body.single-diziler .series-status,
    body.single-diziler .series-genre-list a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        min-height: 22px !important;
        height: 22px !important;
        margin: 0 !important;
        padding: 0 9px !important;
        border-radius: 999px !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    body.single-diziler .series-genre-list {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    body.single-diziler #series-tabs {
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
    }

    body.single-diziler #series-tabs #series-action-buttons {
        display: block !important;
        flex: 0 0 auto;
        width: auto !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        text-align: right !important;
    }

    body.single-diziler #series-tabs #series-action-buttons .button-group {
        display: block !important;
        margin: 0 !important;
    }

    body.single-diziler #series-tabs #series-action-buttons .be-serie-actions {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        border-radius: 5px !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    body.single-diziler .series-genres + .ui.grid {
        display: flex !important;
        align-items: center !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.single-diziler .series-genres + .ui.grid > .left.floated.column {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 3px 0 5px !important;
    }

    body.single-diziler .page-title {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
    }

    body.single-diziler .sub-title:empty {
        display: none !important;
    }

    body.single-diziler #series-tabs {
        min-height: 31px !important;
        margin: 3px 0 4px !important;
    }

    body.single-diziler #series-tabs .item {
        flex: 1 1 auto !important;
        min-height: 31px !important;
        padding: 0 12px !important;
        font-size: 9px !important;
    }

    body.single-diziler .ui.tab.tab-segment.active {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.single-diziler #series-profile-wrapper {
        position: relative;
        display: grid !important;
        grid-template-columns: 112px minmax(0, 1fr) !important;
        grid-auto-rows: auto;
        align-items: start;
        gap: 10px 12px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    body.single-diziler #series-profile-wrapper::before {
        content: "";
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: stretch;
        height: 100%;
        min-height: 178px;
        box-sizing: border-box;
        border: 1px solid #242a38;
        border-radius: 10px;
        background: linear-gradient(145deg, #151925, #11141d);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
        z-index: 0;
    }

    body.single-diziler #series-profile-sidebar,
    body.single-diziler #series-profile-content-wrapper,
    body.single-diziler #series-profile-content-wrapper > .series-summary {
        display: contents !important;
    }

    body.single-diziler #series-profile-wrapper #series-profile-image-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        grid-column: 1;
        grid-row: 1;
        align-self: stretch;
        width: 112px !important;
        max-width: 112px !important;
        height: 168px !important;
        margin: 5px 0 5px 5px !important;
        overflow: hidden;
        border: 0 !important;
        border-radius: 7px !important;
        background: #0b0d13;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
        z-index: 1;
    }

    body.single-diziler #series-profile-image-wrapper .series-profile-thumb {
        display: block;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 7px !important;
    }

    body.single-diziler #series-profile-content-wrapper .series-summary-wrapper {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        min-width: 0;
        margin: 0 !important;
        padding: 13px 12px 11px 2px !important;
        z-index: 1;
    }

    body.single-diziler .series-summary-wrapper .section-heading {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0 0 8px !important;
        padding: 0 !important;
        color: #dfe3ec !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: .03em;
    }

    body.single-diziler .series-summary-wrapper .section-heading::before {
        content: "";
        width: 6px;
        height: 6px;
        flex: 0 0 6px;
        border-radius: 50%;
        background: #ff9800;
        box-shadow: 0 0 0 3px rgba(255, 152, 0, .1);
    }

    body.single-diziler #tv-series-desc {
        display: -webkit-box;
        margin: 0 !important;
        overflow: hidden;
        color: #aeb6c7 !important;
        font-size: 11.5px !important;
        line-height: 1.52 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
    }

    body.single-diziler #tv-series-desc.is-expanded {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 6;
    }

    body.single-diziler .series-summary-wrapper > small,
    body.single-diziler .series-summary-wrapper > .tv-more {
        display: none !important;
    }

    body.single-diziler .be-summary-toggle {
        display: inline-flex;
        align-items: center;
        margin: 7px 0 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #ffad33;
        font-size: 10.5px;
        font-weight: 700;
        cursor: pointer;
    }

    body.single-diziler #tv-series-desc .moreClick {
        display: none !important;
    }

    body.single-diziler #rate-mobile-slot,
    body.single-diziler .series-summary > .media-meta,
    body.single-diziler .series-summary > .first_and_last,
    body.single-diziler .series-profile-episodes,
    body.single-diziler #series-profile-sidebar > .common-lists,
    body.single-diziler #comments,
    body.single-diziler .be-related-series,
    body.single-diziler #common-cast-list {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.single-diziler #rate-mobile-slot { grid-row: 2; }
    body.single-diziler .series-summary > .media-meta { grid-row: 3; margin-top: 0 !important; }
    body.single-diziler .series-summary > .first_and_last { grid-row: 4; }
    body.single-diziler .series-profile-episodes { grid-row: 5; margin-top: 2px !important; }
    body.single-diziler #series-profile-sidebar > .common-lists { grid-row: 6; margin-top: 5px !important; }
    body.single-diziler #common-cast-list { grid-row: 6 !important; margin-top: 5px !important; }
    body.single-diziler #comments { grid-row: 7; }
    body.single-diziler .be-related-series { grid-row: 8; }

    body.single-diziler #season-episode-list-title {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 0 13px !important;
        border: 1px solid #252b39;
        border-bottom: 0;
        border-radius: 9px 9px 0 0;
        background: #151925;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-transform: none !important;
    }

    body.single-diziler .series-profile-episodes .episodes-box {
        overflow: hidden;
        border: 1px solid #252b39;
        border-radius: 0 0 9px 9px;
        background: #10131c;
    }

    body.single-diziler .series-profile-episodes .episodes-box > .ui.grid,
    body.single-diziler .series-profile-episodes .season-list-column {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.single-diziler .be-episode-list-tools {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px !important;
        margin: 0 !important;
        padding: 10px !important;
        border-bottom: 1px solid #232936;
        background: #131722;
    }

    body.single-diziler .be-episode-search {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px !important;
        width: 100%;
        margin: 0 !important;
    }

    body.single-diziler .be-episode-search input {
        min-width: 0 !important;
        width: 100% !important;
        height: 38px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        border: 1px solid #303646 !important;
        border-radius: 5px !important;
        background: #191d28 !important;
        color: #fff !important;
        font-size: 11px !important;
        box-shadow: none !important;
    }

    body.single-diziler .be-episode-search input:focus {
        border-color: #555d70 !important;
        outline: none;
    }

    body.single-diziler .be-episode-search .ui.button {
        min-height: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        padding: 0 11px !important;
        border-radius: 5px !important;
        font-size: 10.5px !important;
    }

    body.single-diziler .be-episode-search-clear:not([hidden]) {
        grid-column: 1 / -1;
        width: 100%;
    }

    body.single-diziler .be-episode-order-toggle.ui.button {
        min-height: 38px;
        height: 38px;
        padding: 0 8px !important;
        font-size: 9.5px !important;
    }

    body.single-diziler .be-episode-order-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        font-size: 13px;
    }

    body.single-diziler .be-episode-items .ajax_post {
        min-height: 45px;
        padding-left: 9px !important;
        padding-right: 9px !important;
        border-bottom-color: #222735 !important;
    }

    body.single-diziler #common-cast-list .sidebar-heading {
        margin-bottom: 9px !important;
        color: #dfe3ec !important;
    }
}

@media (max-width: 350px) {
    body.single-diziler #series-profile-wrapper {
        grid-template-columns: 100px minmax(0, 1fr) !important;
        column-gap: 10px !important;
    }

    body.single-diziler #series-profile-wrapper #series-profile-image-wrapper {
        width: 100px !important;
        max-width: 100px !important;
        height: 150px !important;
    }

    body.single-diziler .be-episode-order-label { display: none; }
}
