/* TR Dizi live search: desktop and mobile presentation layer. */
#wrapper-inner #primary-sidebar #search {
    z-index: 4;
    padding: 14px 18px 24px;
}

#wrapper-inner #primary-sidebar #search > div {
    border: 1px solid #262b39;
    border-radius: 11px;
    background: #141722;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .16);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#wrapper-inner #primary-sidebar #search > div:focus-within {
    border-color: rgba(255, 153, 0, .72);
    background: #181b27;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, .11), 0 10px 25px rgba(0, 0, 0, .2);
}

#wrapper-inner #primary-sidebar #search .form-control {
    height: 44px;
    padding: 0 38px 0 42px;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
}

#wrapper-inner #primary-sidebar #search button {
    width: 42px;
    height: 44px;
    pointer-events: none;
}

#wrapper-inner #primary-sidebar #search button .mofycon {
    width: 15px;
    height: 15px;
    fill: #a7acba;
    transition: fill .18s ease;
}

#wrapper-inner #primary-sidebar #search > div:focus-within button .mofycon {
    fill: #ff9900;
}

#search .deleteicon,
#mobile-search .deleteicon {
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 20px;
    height: 20px;
    border: 1px solid #3b4150;
    background-color: #292e3a;
    background-position: 5px 50%;
}

#search input[type="search"]::-webkit-search-cancel-button,
#mobile-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

#search-results {
    overflow: hidden;
    border: 1px solid #292e3c;
    border-radius: 0 12px 12px 12px;
    background: #11141e;
    box-shadow: 0 24px 60px rgba(3, 5, 12, .72);
}

#search-results::after {
    display: none;
}

#search-results .section-heading {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px !important;
    border-bottom: 1px solid #272c39;
    background: rgba(20, 23, 34, .98);
    color: #f4f5f8;
    font-size: 12px;
    letter-spacing: .55px;
}

#search-results .section-heading::before {
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: #ff9900;
    box-shadow: 0 0 0 4px rgba(255, 153, 0, .1);
    content: "";
}

#search-results .small-heading {
    margin: 0;
    padding: 12px 14px 7px;
    border: 0;
    background: transparent;
    color: #ffad32;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

#search-results .dark-segment {
    padding: 7px 12px 13px;
}

#search-results .dark-segment ul {
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

#search-results .dark-segment ul .segment-poster,
#search-results .dark-segment ul .segment-poster-sm {
    padding: 0 !important;
}

#search-results .dark-segment ul .segment-poster-sm .poster.poster-xs a {
    display: flex;
    height: 62px;
    min-height: 62px;
    align-items: center;
    flex-direction: row;
    padding: 7px;
    overflow: hidden;
    border: 1px solid #242936;
    border-radius: 8px;
    background: #191d28;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

#search-results .dark-segment ul .segment-poster-sm .poster.poster-xs a:hover {
    border-color: rgba(255, 153, 0, .55);
    background: #202532;
    transform: translateY(-1px);
}

#search-results .dark-segment ul .segment-poster-sm .poster.poster-xs img {
    order: -1;
    display: block;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    margin: 0 10px 0 0;
    border: 0;
    border-radius: 7px;
    opacity: 1;
    object-fit: cover;
}

#search-results .dark-segment ul .segment-poster-sm .poster.poster-xs .poster-subject {
    display: block;
    min-width: 0;
}

#search-results .dark-segment ul .segment-poster-sm .poster.poster-xs .poster-subject h2 {
    margin: 0;
    padding: 0;
    color: #f2f3f6;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

#search-results .dark-segment ul .segment-poster .poster.poster-md {
    display: flex;
    min-height: 62px;
    overflow: hidden;
    border: 1px solid #242936;
    border-radius: 8px;
    background: #191d28;
}

#search-results .dark-segment ul .segment-poster .poster.poster-md .poster-media {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    margin: 7px 0 7px 7px;
}

#search-results .dark-segment ul .segment-poster .poster.poster-md .poster-media img {
    display: block;
    width: 46px;
    height: 46px !important;
    border-radius: 7px;
    opacity: 1;
    object-fit: cover;
}

#search-results .dark-segment ul .segment-poster .poster.poster-md .poster-subject {
    height: auto;
    min-height: 60px;
    padding: 10px 11px;
    border: 0;
    background: transparent;
}

#search-results .dark-segment ul .segment-poster .poster.poster-md .poster-subject h2 {
    color: #f2f3f6;
    font-size: 14px;
}

#search-results .alert {
    position: static;
    margin: 12px !important;
    padding: 14px 15px;
    border: 1px solid #343949;
    border-radius: 8px;
    background: #191d28;
    color: #aeb4c3;
}

#search-results .alert p {
    margin: 0;
}

#search-results.is-loading #search-response:empty::before {
    display: block;
    padding: 22px 18px;
    color: #8f96a8;
    font-size: 13px;
    content: "Sonuçlar aranıyor…";
}

@media (min-width: 993px) {
    #search-results {
        top: 10px !important;
        left: 0 !important;
        z-index: 110 !important;
        width: min(570px, calc(100vw - 260px)) !important;
        max-width: 570px !important;
        max-height: calc(100vh - 110px);
        overflow-x: hidden;
        overflow-y: auto;
    }

    #search-results .dark-segment ul .segment-poster,
    #search-results .dark-segment ul .segment-poster-sm {
        width: calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
}

@media (max-width: 992px) {
    body.be-search-open {
        overflow: hidden;
    }

    #header .mobile-search {
        position: relative;
        z-index: 10000002;
        transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    #header .mobile-search.activated {
        background: #ff9900;
        box-shadow: 0 0 0 4px rgba(255, 153, 0, .14);
        transform: scale(1.06);
    }

    .be-search-backdrop {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999996;
        background: rgba(5, 7, 13, .72);
        backdrop-filter: blur(3px);
        animation: dizi-search-fade .16s ease-out both;
    }

    #mobile-search {
        position: fixed !important;
        top: 76px !important;
        right: 12px !important;
        left: 12px !important;
        z-index: 9999998 !important;
        width: auto !important;
        padding: 0;
        background: transparent;
        animation: dizi-search-pop .17s ease-out both;
    }

    #mobile-search > div {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
        border: 1px solid #313746;
        border-radius: 14px;
        background: #181c27;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 16px 38px rgba(0, 0, 0, .48);
    }

    #mobile-search > div:focus-within {
        border-color: #3a4050;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 16px 38px rgba(0, 0, 0, .48);
    }

    #mobile-search .form-control:focus {
        outline: 0;
        box-shadow: none;
    }

    #mobile-search .form-control {
        height: 52px;
        padding: 0 42px 0 46px;
        border-radius: 13px;
        background: transparent;
        font-size: 15px;
    }

    #mobile-search button {
        width: 46px;
        height: 52px;
        pointer-events: none;
    }

    #mobile-search button .mofycon {
        width: 16px;
        height: 16px;
        fill: #ff9900;
    }

    #mobile-search .deleteicon {
        top: 15px;
    }

    #search-results {
        position: fixed !important;
        top: 140px !important;
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
        z-index: 9999997 !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - 152px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border: 1px solid #292f3d;
        border-radius: 14px;
        box-shadow: 0 20px 55px rgba(0, 0, 0, .48);
        animation: dizi-search-pop .17s ease-out both;
        overscroll-behavior: contain;
    }

    #search-results .section-heading {
        min-height: 45px;
        padding: 0 14px !important;
    }

    #search-results .dark-segment {
        padding: 7px 10px 14px;
    }

    #search-results .dark-segment ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #search-results .dark-segment ul .segment-poster,
    #search-results .dark-segment ul .segment-poster-sm {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    #search-results .dark-segment ul .segment-poster-sm .poster.poster-xs a {
        height: 66px;
        min-height: 66px;
        padding: 8px;
        border-radius: 9px;
    }

    #search-results .dark-segment ul .segment-poster-sm .poster.poster-xs img {
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        height: 48px;
        margin-right: 11px;
    }

    #search-results .dark-segment ul .segment-poster-sm .poster.poster-xs .poster-subject h2 {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    #mobile-search {
        right: 9px !important;
        left: 9px !important;
    }

    #search-results {
        right: 9px !important;
        left: 9px !important;
    }

    #search-results .actor-list ul li {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

@keyframes dizi-search-pop {
    from { opacity: 0; transform: scale(.965); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes dizi-search-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    #mobile-search,
    #search-results,
    #header .mobile-search {
        animation: none !important;
        transition: none !important;
    }
}
