#yay-app {
    display: none;
    position: relative;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    background-color: #000;
    color: #fff;
    height: 100dvh;
    font-size: 16px;
    line-height: 1.2;
}

#yay-app p {
    margin-top: 0;
}

#yay-app .swiper {
    width: 100%;
    height: 100%;
}

#yay-app .swiper-button-prev,
#yay-app .swiper-button-next {
    width: 10%;
    height: 50%;
    top: 25%;
    bottom: 25%;
    opacity: 0;
}

#yay-app .not-found {
    padding: 50px 20px;
    text-align: center;
}

.course-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.progress-bars {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-bar,
.progress-buffer {
    height: 3px;
    border-radius: 10px;
}

.progress-bar {
    background: rgba(255, 255, 255, .4);
}

.progress-buffer {
    background: #fff;
}

.profile {
    display: flex;
    align-items: center;
}

.profile-info {
    padding-left: 10px;
}

.profile-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-title {
    font-weight: bold;
}

.profile-sub-title {
    opacity: 0.7;
}

.course-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.page-hidden {
    display: none;
}

.page-info {
    padding: 10px 0;
}

.page-info .summary {
    width: 70%;
}

.course-info .content,
.course-info .overview {
    display: none;
}

.course-info.expand {
    left: 10px;
    right: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(0, 0, 0, .5);
    z-index: 3;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: 'none';
    transition: max-height .5s;
}

.course-info.expand::-webkit-scrollbar {
    display: none;
}

.course-info.expand::before {
    display: block;
    position: absolute;
    top: 5px;
    left: 40%;
    right: 40%;
    width: 20%;
    content: '';
    height: 4px;
    background: rgba(255, 255, 255, .4);
    border-radius: 20px;
}

.course-info.expand .summary {
    display: none;
}

.course-info.expand .content,
.course-info.expand .overview {
    display: block;
}

.course-info .content {
    position: relative;
    line-height: 1.4rem;
}

.course-info.expand .page-info.truncate .content {
    overflow: hidden;
    max-height: 2.8rem;
}

.course-info .page-info .readmore {
    display: none;
    cursor: pointer;
    width: 100%;
    height: 30px;
    background-image: url(/yay_app/icons/arrow.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-size: 25px;
    transform: rotate(180deg);
}

.course-info.expand .page-info.long-text .readmore {
    display: block;
}

.course-info.expand .page-info.truncate .readmore {
    transform: rotate(0deg);
}

.overview {
    margin-top: 20px;
}

.overview-heading {
    font-size: 20px;
    margin-bottom: 10px;
}

.overview .chapter {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
}

.overview .chapter.active {
    border-radius: 8px;
    background: rgba(0, 0, 0, .5);
}

.overview .chapter-radio {
    width: 18px;
    height: 18px;
    background-image: url(/yay_app/icons/uncheck.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.overview .chapter.active .chapter-radio {
    background-image: url(/yay_app/icons/check.svg);
}

.overview .chapter-title {
    padding-left: 10px;
}

.controls {
    position: relative;
    z-index: 2;
}

.controls .sound {
    position: absolute;
    right: 10px;
    bottom: 30px;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(/yay_app/icons/sound_off.svg);
}

.controls .sound.on {
    background-image: url(/yay_app/icons/sound_on.svg);
}

.controls .playback {
    position: absolute;
    right: 10px;
    bottom: 55px;
    padding: 0 10px;
    height: 70px;
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
}

.controls .playback.open {
    left: 10px;
    border-radius: 50px;
    backdrop-filter: blur(20px);
}

.controls .playback .btn-icon {
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(/yay_app/icons/playback.svg);
}

.controls .playback.open .rates {
    display: flex;
}

.controls .playback .rates {
    flex: 1;
    display: none;
    justify-content: space-around;
}

.controls .playback .rate {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
}

.controls .playback .rate.active {
    background: rgba(0, 0, 0, .7);
}

.controls .playback .rate:hover {
    background: rgba(0, 0, 0, .3);
}

.page {
    position: relative;
}

.page.pause::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%);
    content: '';
    width: 50px;
    height: 50px;
    background: url(/yay_app/icons/play.svg) no-repeat center;
    background-size: cover;
    opacity: .2;
    transition: all .5s;
}

.page.pause:hover::before {
    opacity: 0.3;
}


.page .background-picture {
    width: 100%;
    height: 100dvh;
    object-fit: cover;
}

.page video {
    width: 100%;
    height: 100dvh;
    object-fit: cover;
}

/* Loading */
.loading {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #ccc;
    color: #ccc;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
}

.loading::before,
.loading::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
}

.loading::before {
    left: -10px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #ccc;
    color: #ccc;
    animation: loading-before 2s infinite ease-in;
}

.loading::after {
    left: 10px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #ccc;
    color: #ccc;
    animation: loading-after 2s infinite ease-in;
    animation-delay: 1s;
}

@keyframes loading-before {

    0%,
    50%,
    75%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-15px);
    }
}

@keyframes loading-after {

    0%,
    50%,
    75%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(15px);
    }
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0;
}