/* Fullscreen player — edume theme polish */

/* Üst bar: logo + başlık sıkı */
.header_area .header__wrapper {
    align-items: center !important;
    gap: 8px !important;
    min-height: 52px;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.header_area .header__left {
    gap: 8px !important;
    align-items: center !important;
    min-width: 0;
    flex: 1 1 auto;
}

.header_area .logo_img {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}

/* İlerleme — logonun hemen sağı */
.header_area .fs-header-progress {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 4px 0 8px !important;
    padding: 0 !important;
    text-decoration: none !important;
    line-height: 0;
}

.header_area .fs-header-progress .progress {
    margin: 0 !important;
}

.header_area .logo_img img,
.header_area .logo_img a img {
    width: 72px !important;
    max-height: 36px !important;
    height: auto !important;
    padding: 0 !important;
    object-fit: contain;
}

.header_area .category_search,
.header_area .category_box_iner {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    flex: 1 1 auto;
}

.fs-course-title-wrap {
    padding-left: 4px !important;
    margin: 0 !important;
    min-width: 0;
}

.fs-course-title-wrap .headerTitle,
.fs-course-title-wrap a.headerTitle {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(48vw, 520px);
    display: block;
}

.header_area .header__right {
    flex-shrink: 0;
    margin-left: auto !important;
}

.header__right .contact_btn {
    gap: 6px !important;
    align-items: center;
}

.header_area .contact_btn .text-nowrap,
.header_area .contact_btn .theme_btn span#desktop,
.header_area .contact_btn .theme_btn span#mobile-hide,
.header_area .headerSub,
.header_area .headerSubProcess {
    font-size: 11px !important;
    line-height: 1.2 !important;
}

/* Otomatik Sonraki chip — kompakt */
.fs-autonext {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 8px 4px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.fs-autonext:hover {
    background: #eef2ff;
    border-color: color-mix(in srgb, var(--system_primery_color, #6347d1) 35%, #e2e8f0);
}

.fs-autonext.is-on {
    background: color-mix(in srgb, var(--system_primery_color, #6347d1) 12%, #fff);
    border-color: color-mix(in srgb, var(--system_primery_color, #6347d1) 40%, #e2e8f0);
    box-shadow: 0 3px 10px color-mix(in srgb, var(--system_primery_color, #6347d1) 14%, transparent);
}

.fs-autonext .lmsSwitch_toggle {
    width: 34px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.fs-autonext .lmsSwitch_toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.fs-autonext .lmsSwitch_toggle .slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: .2s;
    cursor: pointer;
}

.fs-autonext .lmsSwitch_toggle .slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
    transition: .2s;
}

.fs-autonext .lmsSwitch_toggle input:checked + .slider {
    background: var(--system_primery_color, #6347d1);
}

.fs-autonext .lmsSwitch_toggle input:checked + .slider:before {
    transform: translateY(-50%) translateX(14px);
}

.fs-autonext-label {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 0;
}

.fs-autonext-label strong {
    font-size: 11px !important;
    font-weight: 750;
    color: #0f172a;
    white-space: nowrap;
}

.fs-autonext-label small {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.fs-autonext.is-on .fs-autonext-label strong {
    color: var(--system_primery_color, #6347d1);
}

.fs-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.fs-nav-group .theme_btn.small_btn2,
.fs-nav-group .theme_btn.theme_button_disabled {
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
}

/* Tamamlandı — kompakt */
.fs-mark-complete.completeAndPlayNext,
.header_area .theme_btn.fs-mark-complete {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background: #16a34a !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.22);
    white-space: nowrap;
    min-height: 0 !important;
    position: relative !important;
    z-index: 10070 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(22, 163, 74, 0.35);
    cursor: pointer !important;
}

.fs-mark-complete.completeAndPlayNext:hover,
.header_area .theme_btn.fs-mark-complete:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.fs-mark-complete i {
    font-size: 11px;
}

/* Progress ring biraz küçült */
.header_area .progress {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    padding: 6px !important;
}

.header_area .headerSubProcess {
    font-size: 10px !important;
}

/* Video stage */
.fs-video-stage {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: #0f172a;
    z-index: 6;
    pointer-events: auto;
    isolation: isolate;
}

.fs-video-stage .video_iframe,
.fs-video-stage iframe,
.fs-video-stage video,
.fs-video-stage #video-id {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: auto !important;
    touch-action: manipulation;
    position: relative;
    z-index: 7;
    border: 0;
}

/* ========== Sidebar accordion redesign ========== */
.course_fullview_wrapper .course__play_warp {
    background: #fff;
    border-left: 1px solid #e8edf3;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.06);
}

    /* Desktop'ta backdrop yok */
    .fs-sidebar-backdrop {
        display: none !important;
    }

.course_fullview_wrapper .fs-sidebar-reopen,
.course_fullview_wrapper .course__play_warp .fs-sidebar-hide {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.course_fullview_wrapper .fs-sidebar-reopen {
    display: none;
}

/* Sticky header Menü butonu — otomatik oynatmanın solu */
.header_area #fsSidebarReopen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    min-height: 34px;
    margin: 0 4px 0 0;
    border: 0;
    border-radius: 8px;
    background: var(--system_primery_color, #6347d1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.header_area #fsSidebarReopen i {
    color: #fff;
    font-size: 12px;
}

.course__play_warp .play_warp_header {
    padding: 12px 14px !important;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    gap: 10px;
}

/* Menü paneli — Kurslarıma geri git (Kapat ile aynı buton dili) */
.fs-sidebar-mycourses-wrap,
body > .course__play_warp .fs-sidebar-mycourses-wrap {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.fs-sidebar-mycourses,
body > .course__play_warp .fs-sidebar-mycourses {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 7px 12px;
    min-height: 34px;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.fs-sidebar-mycourses:hover,
body > .course__play_warp .fs-sidebar-mycourses:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.fs-sidebar-mycourses > i {
    color: inherit !important;
    font-size: 11px;
    flex-shrink: 0;
    width: auto;
    height: auto;
    background: none !important;
    border-radius: 0;
}

.fs-sidebar-mycourses span {
    flex: 0 1 auto;
    min-width: 0;
}

.course__play_warp .play_warp_header .lesson_count {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    min-width: 0;
    flex: 1 1 auto;
}

.course__play_warp .play_warp_header .fs-sidebar-hide {
    display: none;
    flex-shrink: 0;
}

.course__play_list.fs-sidebar-list {
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 10px 8px 20px;
    background: #f7f9fc;
}

.fs-sidebar-list .theme_according {
    margin-bottom: 0 !important;
}

.fs-sidebar-list .card {
    border: 0 !important;
    background: transparent !important;
    margin-bottom: 8px;
    box-shadow: none !important;
    overflow: visible;
}

.fs-chapter-header,
.fs-chapter-header.pink_bg {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0 !important;
    overflow: hidden;
}

.fs-sidebar-list .collapse.show + .card-header,
.fs-sidebar-list .card:has(.collapse.show) .fs-chapter-header {
    border-color: color-mix(in srgb, var(--system_primery_color, #6347d1) 35%, #e2e8f0) !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--system_primery_color, #6347d1) 12%, transparent);
}

.fs-chapter-header .btn-link {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    padding: 12px 40px 12px 14px !important;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
}

/* Tema ::before + bizim ::after çift ok üretiyordu — tek ikon bırak */
.fs-sidebar-list .theme_according .fs-chapter-header .btn-link::after,
.fs-sidebar-list .theme_according .fs-chapter-header button::after {
    content: none !important;
    display: none !important;
}

.fs-sidebar-list .theme_according .fs-chapter-header .btn-link::before,
.fs-sidebar-list .theme_according .fs-chapter-header button::before,
.fs-sidebar-list .theme_according .fs-chapter-header button.collapsed::before {
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 14px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    transition: transform .2s ease, color .2s ease;
}

.fs-sidebar-list .theme_according .fs-chapter-header .btn-link:not(.collapsed)::before,
.fs-sidebar-list .theme_according .fs-chapter-header button:not(.collapsed)::before {
    transform: translateY(-50%) rotate(180deg) !important;
    color: var(--system_primery_color, #6347d1) !important;
}

.fs-chapter-header .course_length {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.fs-sidebar-list .card-body {
    padding: 8px 0 2px !important;
    background: transparent !important;
}

.fs-sidebar-list .curriculam_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Lesson row — classes are on the same element */
.fs-lesson-row.single_play_list,
.fs-lesson-row {
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.fs-lesson-row > a,
.fs-lesson-row.single_play_list > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
    min-height: 48px;
}

.fs-lesson-row > a:hover,
.fs-lesson-row.single_play_list > a:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.fs-lesson-row .course_play_name {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    font-size: 12.5px !important;
    font-weight: 650 !important;
    color: #334155 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.fs-lesson-row .course_play_name span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fs-lesson-row .course_play_duration {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.fs-lesson-row .primary_checkbox {
    margin: 0 !important;
    flex-shrink: 0;
}

.fs-lesson-row .primary_checkbox .checkmark {
    border-radius: 50% !important;
}

/* ACTIVE — currently watching */
.fs-lesson-row.is-active > a,
.fs-lesson-row.is-active.single_play_list > a,
.fs-lesson-row > a.active {
    background: color-mix(in srgb, var(--system_primery_color, #6347d1) 14%, #fff) !important;
    border-color: var(--system_primery_color, #6347d1) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--system_primery_color, #6347d1) 25%, transparent),
                0 8px 18px color-mix(in srgb, var(--system_primery_color, #6347d1) 16%, transparent) !important;
}

.fs-lesson-row.is-active .course_play_name,
.fs-lesson-row.is-active .course_play_name i,
.fs-lesson-row.is-active .quiz_name {
    color: var(--system_primery_color, #6347d1) !important;
    font-weight: 800 !important;
}

.fs-lesson-row.is-active .course_play_duration {
    color: var(--system_primery_color, #6347d1) !important;
}

/* DONE — completed lessons: green outline */
.fs-lesson-row.is-done > a,
.fs-lesson-row.is-done.single_play_list > a {
    background: #f0fdf4 !important;
    border-color: #22c55e !important;
    box-shadow: none !important;
}

.fs-lesson-row.is-done .course_play_name,
.fs-lesson-row.is-done .course_play_name i {
    color: #166534 !important;
}

.fs-lesson-row.is-done .course_play_duration {
    color: #16a34a !important;
}

.fs-lesson-row.is-done .primary_checkbox .checkmark {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

/* DONE + ACTIVE */
.fs-lesson-row.is-done.is-active > a,
.fs-lesson-row.is-done.is-active.single_play_list > a,
.fs-lesson-row.is-done > a.active {
    background: color-mix(in srgb, #16a34a 12%, #fff) !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.25),
                0 8px 18px rgba(22, 163, 74, 0.16) !important;
}

/*
 * Desktop: temanın orijinal düzeni
 * - video alanı: width calc(100% - sidebar)
 * - sidebar: position fixed; right: 0
 * Önceki flex/relative denemesi menüyü sola kaydırıyordu.
 */
@media (min-width: 1025px) {
    /* Absolute header iframe üstünü kesiyordu — akışta tut */
    body .header_area,
    body #sticky-header.header_area,
    body #sticky-header.header_area.navbar_fixed {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: 10060 !important;
        background: #fff !important;
        transform: none !important;
    }

    body .course_fullview_wrapper.fs-player-layout,
    body .course_fullview_wrapper {
        display: block !important;
        position: relative !important;
        width: calc(100% - 380px) !important;
        max-width: none !important;
        min-height: calc(100vh - 53px) !important;
        height: calc(100vh - 53px) !important;
        overflow: hidden !important;
        padding-right: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        transition: width .3s ease !important;
    }

    body .course_fullview_wrapper.fs-player-layout.active,
    body .course_fullview_wrapper.active {
        width: 100% !important;
    }

    /* Sidebar ekranın sağ kenarına sabit — header yüksekliği kadar aşağı */
    body .course_fullview_wrapper .course__play_warp,
    body .course_fullview_wrapper .course__play_warp.courseListPlayer {
        position: fixed !important;
        top: 53px !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 380px !important;
        max-width: 380px !important;
        height: calc(100vh - 53px) !important;
        min-height: calc(100vh - 53px) !important;
        margin: 0 !important;
        margin-top: 0 !important;
        transform: translateX(0) !important;
        z-index: 10040 !important;
        overflow: hidden !important;
        pointer-events: auto !important;
        background: #fff !important;
        border-left: 1px solid #e8edf3 !important;
        box-shadow: -8px 0 24px rgba(15, 23, 42, 0.06) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body .course_fullview_wrapper .course__play_warp.active,
    body .course_fullview_wrapper .course__play_warp.courseListPlayer.active {
        transform: translateX(100%) !important;
        pointer-events: none !important;
    }

    body .course_fullview_wrapper .course__play_warp .play_warp_header,
    body .course_fullview_wrapper .course__play_warp .fs-sidebar-mycourses-wrap {
        flex: 0 0 auto !important;
        background: #fff !important;
        position: relative !important;
        z-index: 2 !important;
    }

    body .course_fullview_wrapper .course__play_warp .course__play_list,
    body .course_fullview_wrapper .course__play_warp .fs-sidebar-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: #fff !important;
    }

    body .course_fullview_wrapper .fs-video-stage {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: calc(100vh - 53px) !important;
        min-height: calc(100vh - 53px) !important;
        z-index: 4 !important;
        pointer-events: auto !important;
        background: #0f172a !important;
        overflow: hidden !important;
    }

    body .course_fullview_wrapper .fs-video-stage .video_iframe,
    body .course_fullview_wrapper .fs-video-stage #video-id,
    body .course_fullview_wrapper .fs-video-stage iframe,
    body .course_fullview_wrapper #video-placeholder,
    body .course_fullview_wrapper #video-placeholder iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        padding-top: 0 !important;
        z-index: 5 !important;
        pointer-events: auto !important;
        border: 0 !important;
    }

    /* Toggle — header içinde "Gizle"; kapalıyken sticky menüde "Menü" */
    body .course_fullview_wrapper .course__play_warp .play_warp_header .fs-sidebar-hide,
    body .course_fullview_wrapper .course__play_warp.courseListPlayer .play_warp_header .fs-sidebar-hide {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        min-height: 32px !important;
        padding: 6px 12px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #334155 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        box-shadow: none !important;
        transform: none !important;
        z-index: 2 !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        cursor: pointer !important;
        white-space: nowrap;
    }

    body .course_fullview_wrapper .course__play_warp .play_warp_header .fs-sidebar-hide:hover {
        background: #e2e8f0 !important;
        color: #0f172a !important;
    }

    body .course_fullview_wrapper .course__play_warp .play_warp_header .fs-sidebar-hide i {
        color: inherit !important;
        font-size: 11px !important;
    }

    /* Menü — sticky header, otomatik oynatmanın solu */
    body.fs-sidebar-closed #fsSidebarReopen,
    body .header_area #fsSidebarReopen {
        display: inline-flex !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 10070 !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 8px 12px !important;
        min-height: 34px !important;
        margin: 0 4px 0 0 !important;
        border-radius: 8px !important;
        background: var(--system_primery_color, #6347d1) !important;
        color: #fff !important;
        border: 0 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        white-space: nowrap;
    }

    body.fs-sidebar-closed #fsSidebarReopen i,
    body .header_area #fsSidebarReopen i {
        color: #fff !important;
        font-size: 12px !important;
    }

    body:not(.fs-sidebar-closed) #fsSidebarReopen {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    body .header_area .contact_btn,
    body .header_area .fs-nav-group,
    body .header_area .completeAndPlayNext,
    body .header_area #fsMarkCompleteBtn {
        position: relative !important;
        z-index: 10070 !important;
        pointer-events: auto !important;
    }

    body .header_area .completeAndPlayNext,
    body .header_area #fsMarkCompleteBtn {
        min-height: 32px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 991px) {
    .fs-course-title-wrap {
        display: none !important;
    }

    /* Mobilde sadece toggle — yazıyı gizle */
    .fs-autonext-label {
        display: none !important;
    }

    .fs-autonext {
        padding: 4px 6px !important;
        gap: 0 !important;
    }
}


/* Tablet + mobil: video tam genişlik, ders menüsü sağdan drawer */
@media (max-width: 1024px) {
    body .header_area,
    body #sticky-header.header_area,
    body #sticky-header.header_area.navbar_fixed {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: 30 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        background: #fff !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .mobile_display_content {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        position: relative !important;
        z-index: 2 !important;
        pointer-events: auto;
    }

    body .course_fullview_wrapper,
    body .course_fullview_wrapper.fs-player-layout,
    body .course_fullview_wrapper.active {
        min-height: auto !important;
        height: auto !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        padding-right: 0 !important;
        position: relative !important;
        overflow: visible !important;
        z-index: 1 !important;
        pointer-events: auto !important;
    }

    /* Video — tam genişlik, menü altta değil */
    body .fs-video-stage,
    body .course_fullview_wrapper .fs-video-stage,
    body .course_fullview_wrapper.fs-player-layout .fs-video-stage,
    body #fsVideoStage {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        min-height: 62vh !important;
        height: 62vh !important;
        aspect-ratio: auto !important;
        max-height: none !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        isolation: isolate;
        overflow: hidden !important;
        background: #000 !important;
    }

    body .course_fullview_wrapper .fs-video-stage .video_iframe,
    body .course_fullview_wrapper .fs-video-stage #video-id,
    body .course_fullview_wrapper .video_iframe,
    body .course_fullview_wrapper #video-id,
    body .fs-video-stage iframe,
    body iframe.video_iframe#video-id,
    body #video-id {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        border: 0 !important;
        z-index: 21 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        padding-top: 0 !important;
    }

    /* Sağdan açılır drawer menü */
    body .course_fullview_wrapper .course__play_warp,
    body .course_fullview_wrapper .course__play_warp.courseListPlayer,
    body .course_fullview_wrapper.fs-player-layout .course__play_warp,
    body .course_fullview_wrapper.active .course__play_warp {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: min(88vw, 360px) !important;
        max-width: 360px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        margin: 0 !important;
        z-index: 10085 !important;
        background: #fff !important;
        border-left: 1px solid #e8edf3 !important;
        box-shadow: -12px 0 32px rgba(15, 23, 42, 0.18) !important;
        overflow: hidden !important;
        pointer-events: auto !important;
        transition: transform .28s ease !important;
        -webkit-transform: translateX(0) !important;
        transform: translateX(0) !important; /* açık */
        display: flex !important;
        flex-direction: column !important;
    }

    /* Kapalı (active) — sağa kaydır */
    body .course_fullview_wrapper .course__play_warp.active,
    body .course_fullview_wrapper .course__play_warp.courseListPlayer.active,
    body .course_fullview_wrapper.fs-player-layout .course__play_warp.active,
    body .course_fullview_wrapper.active .course__play_warp {
        -webkit-transform: translateX(105%) !important;
        transform: translateX(105%) !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }

    body .course_fullview_wrapper .course__play_warp .play_warp_header {
        flex: 0 0 auto !important;
        padding: 14px 14px 12px !important;
        padding-top: max(14px, env(safe-area-inset-top)) !important;
    }

    body .course_fullview_wrapper .course__play_warp .course__play_list,
    body .course_fullview_wrapper .course__play_warp .fs-sidebar-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }

    /* Header içi Kapat — body'ye taşınmış panel için de */
    body .course_fullview_wrapper .course__play_warp .play_warp_header .fs-sidebar-hide,
    body > .course__play_warp .play_warp_header .fs-sidebar-hide,
    body #fsSidebarHide {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        min-height: 34px !important;
        padding: 7px 12px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #334155 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
        transform: none !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        cursor: pointer !important;
        z-index: 10130 !important;
    }

    body .course_fullview_wrapper .course__play_warp.active .fs-sidebar-hide,
    body > .course__play_warp.active #fsSidebarHide {
        pointer-events: none !important;
    }

    /* Sticky menüde "Menü" — otomatik oynatmanın solu (mobil/tablet) */
    body .header_area #fsSidebarReopen,
    body #fsSidebarReopen,
    body.fs-sidebar-closed #fsSidebarReopen,
    body:not(.fs-drawer-open) #fsSidebarReopen {
        display: inline-flex !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 10070 !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 7px 12px !important;
        min-height: 34px !important;
        border-radius: 8px !important;
        background: var(--system_primery_color, #6347d1) !important;
        color: #fff !important;
        border: 0 !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        box-shadow: none !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        white-space: nowrap;
        margin: 0 4px 0 0 !important;
    }

    body .header_area #fsSidebarReopen i,
    body #fsSidebarReopen i {
        color: #fff !important;
        font-size: 12px !important;
    }

    body.fs-drawer-open #fsSidebarReopen {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    /* Masaüstünde header içi değil, sağ kenar fixed buton */
    body:not(.fs-sidebar-closed) #fsSidebarReopen {
        display: none !important;
    }

    .fs-complete-mobile {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    /* Drawer body'ye taşındığı için yüksek z-index */
    body.fs-drawer-open {
        overflow: hidden !important;
    }

    body.fs-drawer-open .header_area,
    body.fs-drawer-open #sticky-header {
        z-index: 20 !important;
    }

    body > .course__play_warp.courseListPlayer,
    body > .course__play_warp {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: min(88vw, 360px) !important;
        max-width: 360px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        margin: 0 !important;
        z-index: 10120 !important;
        background: #fff !important;
        border-left: 1px solid #e8edf3 !important;
        box-shadow: -12px 0 32px rgba(15, 23, 42, 0.22) !important;
        overflow: hidden !important;
        pointer-events: auto !important;
        transition: transform .28s ease !important;
        transform: translateX(0) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body > .course__play_warp.courseListPlayer.active,
    body > .course__play_warp.active {
        transform: translateX(105%) !important;
        pointer-events: none !important;
        box-shadow: none !important;
    }

    body > .fs-sidebar-backdrop,
    body .fs-sidebar-backdrop {
        display: none !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 10110 !important;
        background: rgba(15, 23, 42, 0.5) !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer;
    }

    body > .fs-sidebar-backdrop.is-open,
    body .fs-sidebar-backdrop.is-open {
        display: block !important;
    }

    /* İzledim — kompakt */
    body .header_area .fs-mark-complete,
    body .header_area #fsMarkCompleteBtn {
        min-height: 32px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
        z-index: 10070 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    body .fs-complete-desktop,
    body #desktop-complete {
        display: none !important;
    }

    body .fs-complete-mobile {
        display: inline !important;
    }

    body .course__play_warp .primary_checkbox {
        z-index: 1 !important;
    }

    body .top_right_btn {
        display: none !important;
        pointer-events: none !important;
    }

    body .course_fullview_wrapper::before,
    body .course_fullview_wrapper::after,
    body .fs-video-stage::before,
    body .fs-video-stage::after {
        content: none !important;
        display: none !important;
        pointer-events: none !important;
    }
}

@media (max-width: 767.98px) {
    #video-id {
        padding-top: 0 !important;
    }

    .mobile_display_content {
        margin-top: 12px !important;
        margin-bottom: 8px !important;
        position: relative;
        z-index: 2;
    }

    .fs-video-stage {
        min-height: 68vh !important;
        height: 68vh !important;
    }

    .fs-mark-complete span#desktop-complete,
    .fs-complete-desktop {
        display: none !important;
    }

    .fs-complete-mobile {
        display: inline !important;
    }
}

@media (min-width: 768px) {
    .fs-mark-complete span#mobile-complete {
        display: none;
    }
}
