/* COURSE CARD */
.live-card-modern {
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(25, 35, 53, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.live-card-modern:hover {
    box-shadow: 0 14px 32px rgba(25, 35, 53, 0.13);
    transform: translateY(-3px);
}

/* MEDIA */
.live-card-media {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 0.75rem;
    flex: 0 0 auto;
    margin: 0.75rem 0.75rem 0;
    overflow: hidden;
    position: relative;
}
.live-card-thumb {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.course-preview {
    background: #000;
    display: none;
    inset: 0;
    overflow: hidden;
    position: absolute;
}

/* PLAY BUTTON OVERLAY */
.course-media-play {
    align-items: center;
    backdrop-filter: blur(4px);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    height: 52px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.2s ease;
    width: 52px;
    z-index: 2;
}
.course-media-play:hover {
    background: #109FC6;
    transform: translate(-50%, -50%) scale(1.05);
}
.live-card-media.is-playing .live-card-thumb {
    visibility: hidden;
}
.live-card-media.is-playing .course-media-play {
    display: none;
}
.live-card-media.is-playing .course-preview {
    display: block;
}
.live-card-media.is-playing .rating-badge,
.live-card-media.is-playing .category-badge,
.live-card-media.is-playing .heart {
    display: none;
}
.course-preview video,
.course-preview iframe {
    border: 0;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* BADGES */
.rating-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    bottom: 0.65rem;
    color: #192335;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    position: absolute;
    right: 0.65rem;
    z-index: 3;
}
.rating-badge .rating-top {
    align-items: center;
    display: flex;
    gap: 0.25rem;
}
.rating-badge .role {
    display: none;
}
.category-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    bottom: 0.65rem;
    color: #192335;
    font-size: 12px;
    font-weight: 600;
    left: 0.65rem;
    max-width: calc(100% - 6rem);
    overflow: hidden;
    padding: 0.35rem 0.65rem;
    position: absolute;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 3;
}

/* WISHLIST */
.heart {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    display: flex;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
    width: 36px;
    z-index: 3;
}
.heart.inList i {
    color: #109FC6;
}

/* BODY */
.live-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.125rem 1.125rem;
}

/* TITLE */
.live-card-heading {
    min-height: 3rem;
}
.meta-value {
    color: #023a51;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.live-card-count {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: flex-start;
    width: 100%;
}

.live-card-shedule {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    min-height: 1.5rem;
    width: 100%;
}

/* INSTRUCTOR */
.live-card-instructor {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    min-width: 0;
}
.live-card-instructor .avatar {
    border: 2px solid rgba(103,43,129,.25);
    border-radius: 50%;
    flex: 0 0 40px;
    height: 40px;
    overflow: hidden;
    width: 40px;
}
.live-card-instructor img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.live-card-instructor .details {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    min-width: 0;
}
.live-card-instructor .name {
    color: #023a51;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-card-instructor .role {
    color: #6b7280;
    line-height: 1.25;
}

/* RATING TAG */
.instructor-rating-tag {
    align-items: center;
    background: rgba(16,159,198,.15);
    border-radius: 999px;
    color: #023a51;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    gap: 0.25rem;
    margin-left: auto;
    padding: 0.3rem 0.55rem;
}

.member-count-tag {
    align-items: center;
    color: #6b7385;
    display: inline-flex;
    font-size: 13px;
    gap: 0.3rem;
    padding: 0;
}
.member-count-tag svg {
    height: 16px;
    width: 16px;
}

.shedule-count-tag {
    align-items: center;
    color: #109FC6;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 0.3rem;
    padding: 0;
}
.shedule-count-tag.video-paused {
    color: #dc2626;
}
.live-card-divider {
    background: #edf0f4;
    height: 1px;
    width: 100%;
}

/* META */
.live-card-meta-row {
    margin-top: auto;
    min-height: 27px;
}
.meta-inline-block-left {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.original-price {
    color: #6b7385;
    font-size: 13px;
    text-decoration: line-through;
}
.discount-badge {
    background: #109FC6;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 0.28rem 0.45rem;
}
.meta-inline-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
}
.meta-inline-block-right {
    display: inline-flex;
    align-items: center;
}
.meta-pill {
    color: #023a51;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0;
    white-space: nowrap;
}
.meta-pill.is-free {
    background: #dcfce7;
    border-radius: 999px;
    color: #065f46;
    font-size: 13px;
    padding: 0.35rem 0.7rem;
}

@media (max-width: 575.98px) {
    .live-card-body {
        padding: 0.95rem 1rem 1rem;
    }
    .live-card-heading {
        min-height: auto;
    }
}

