/* Nevilix Player - lesson carousel layout */
.nev-lesson-carousel-nav {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #d9e7fb;
    border-radius: 999px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 14px;
    min-height: 48px;
    padding: 7px 9px;
    user-select: none;
}

.nev-lesson-carousel-nav__hint {
    color: #2674f4;
    flex: 1 1 auto;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.nev-lesson-carousel-nav__button {
    align-items: center;
    background: #fff;
    border: 1px solid #cfe0f8;
    border-radius: 50%;
    color: #2674f4;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.nev-lesson-carousel-nav__button:disabled {
    cursor: default;
    opacity: .35;
}

/*
 * Mobile lesson metadata:
 * title is one clean left-aligned line/block;
 * Beginner and 50 sentences sit on their own line with visible spacing.
 */
@media (max-width: 767.98px) {

    .nev-related-grid {
        width: 100%;
        overflow: hidden;
    }

    /* Card: ảnh bên trái, nội dung sát bên phải */
    .nev-related-card {
        display: flex !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 12px !important;
        padding: 10px !important;
        box-sizing: border-box;
    }

    /* Ảnh nhỏ, cố định */
    .nev-related-card__image {
        flex: 0 0 80px !important;
        width: 80px !important;
        height: 80px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        border-radius: 4px;
    }

    .nev-related-card__image img {
        display: block;
        width: 100% !important;
        height: 80% !important;
        object-fit: cover;
    }

    /* Nội dung nằm sát ảnh */
    .nev-related-card__content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Title */
    .nev-related-card__top {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nev-related-card__top strong {
        display: block !important;
        margin: 0 0 3px !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 50 sentences */
    .nev-related-card__top span {
        display: block !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    /* Description */
    .nev-related-card__description {
        margin: 0 0 4px !important;
        padding: 0 !important;
        font-size: 10px !important;
        line-height: 1.35 !important;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    /* Beginner */
    .nev-related-card__level {
        display: inline-flex !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
    }
}