/* AQWAS Video Player - Stage 1 */

/* Add comfortable spacing above the lesson video */
.tutor-course-topic-single-body .tutor-video-player-wrapper {
    margin-top: 24px;
}

/* Keep the player within its container */
.tutor-course-topic-single-body .tutor-video-player-wrapper {
    width: 100%;
    max-width: 100%;
}

/* AQWAS - Tutor Lesson Header Sizing */

/* Desktop: increase the blue lesson header height */
@media (min-width: 1200px) {

    .tutor-course-single-content-wrapper #tutor-single-entry-content
    .tutor-course-topic-single-header {
        min-height: 76px !important;
        padding: 14px 20px !important;
        gap: 14px;
    }

    .tutor-course-single-content-wrapper #tutor-single-entry-content
    .tutor-course-topic-single-header-title {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        line-height: 1.6;
        font-size: 14px;
    }

    .tutor-course-single-content-wrapper #tutor-single-entry-content
    .tutor-course-topic-single-header > .tutor-ml-auto.tutor-d-xl-flex {
        flex-shrink: 0;
        gap: 12px;
    }
}

/* Mobile and tablet */
@media (max-width: 1199px) {

    .tutor-course-single-content-wrapper #tutor-single-entry-content
    .tutor-course-topic-single-header {
        min-height: 60px !important;
        padding: 10px 12px !important;
        gap: 8px;
    }

    .tutor-course-single-content-wrapper #tutor-single-entry-content
    .tutor-course-topic-single-header-title {
        min-width: 0;
        white-space: normal;
        line-height: 1.5;
    }
}


/* AQWAS - Final lesson header proportions */

.tutor-course-single-content-wrapper #tutor-single-entry-content
.tutor-course-topic-single-header {
    min-height: 84px !important;
    height: auto !important;
    padding: 14px 20px !important;
    gap: 14px !important;
}

.tutor-course-single-content-wrapper #tutor-single-entry-content
.tutor-course-topic-single-header-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    white-space: normal !important;
}

.tutor-course-single-content-wrapper #tutor-single-entry-content
.tutor-course-topic-single-header .tutor-fs-7 {
    font-size: 13px !important;
    line-height: 1.6 !important;
}

@media (max-width: 767px) {
    .tutor-course-single-content-wrapper #tutor-single-entry-content
    .tutor-course-topic-single-header {
        min-height: 64px !important;
        padding: 10px 12px !important;
        gap: 7px !important;
    }

    .tutor-course-single-content-wrapper #tutor-single-entry-content
    .tutor-course-topic-single-header-title {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}


/* AQWAS: prevent the fixed academy header from covering Tutor lesson UI */
body:has(.tutor-course-topic-single-header)
.tutor-course-single-content-wrapper {
    margin-top: 78px !important;
}


/* =================================================
   AQWAS PLYR SETTINGS MENU FIX
   Fix oversized speed menu and buttons
================================================= */

.tutor-course-topic-single-body .tutor-video-player-wrapper .plyr__menu__container {
    width: 220px !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
}

.tutor-course-topic-single-body .tutor-video-player-wrapper .plyr__menu__container > div {
    width: 220px !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

.tutor-course-topic-single-body .tutor-video-player-wrapper .plyr__menu__container button.plyr__control {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.tutor-course-topic-single-body .tutor-video-player-wrapper .plyr__menu__container button[data-plyr="speed"] {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

