﻿/* Online Discussion Detail Styles */
.breadcrumb-item {
    font-size: 16px;
}

    .breadcrumb-item a {
        overflow: hidden;
        color: var(--Theme-Gray-600, #718096);
        font-feature-settings: 'salt' on;
        text-overflow: ellipsis;
        font-family: Inter;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 162.023%;
    }

    .breadcrumb-item.active {
        overflow: hidden;
        color: var(--Theme-Gray-800, #2D3748);
        text-overflow: ellipsis;
        font-family: Inter;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
    }

.discussion-detail-header {
    padding: 20px;
    border-radius: 4px 4px 0 0;
    background: #FFF;
}

.discussion-detail-header-datetime {
    color: var(--Theme-Gray-800, #2D3748);
    font-feature-settings: 'salt' on;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.article-header {
    gap: 20px;
}

.discussion-detail-first {
    background: linear-gradient(180deg, rgba(182, 0, 2, 0.05) 0%, rgba(182, 0, 2, 0.05) 100%);
    padding-top: 32px;
}

.discussion-detail-second {
    background: var(--White-Default, #FFF);
}

.discussion-card {
    max-width: 880px;
    width: 100%;
}

.article-title {
    color: var(--Theme-Gray-900, #1A202C);
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 29px;
}

.discussion-detail-body {
    gap: 20px;
    background: #fff;
}

.discussion-detail-video {
    padding: 20px;
    border-radius: 4px 4px 0 0;
    background: var(--Theme-Gray-100, #F7F8FC);
}

.vods-player-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.vods-player-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.vods-player-media,
.vods-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vods-player-media {
    object-fit: cover;
    background: #0f172a;
}

.vods-player-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 0 24px;
    background: linear-gradient(180deg, rgba(0, 59, 142, 0.25) 0%, rgba(0, 59, 142, 0.05) 100%);
}

.vods-player-placeholder-text {
    max-width: 360px;
}

.vods-player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
    color: #fff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vods-player-overlay .play-view-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.vods-player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.01);
}

.vod-rating-actions {
    padding: 16px 0;
}

.vod-rating-section {
    margin-top: 24px;
}

/* ----- Rating summary & reviews layout (copied from documents detail, scoped for VOD) ----- */
.documents-section-title {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    font-size: 20px;
    font-weight: 700;
}

.documents-reviews-content {
    display: flex;
    column-gap: 20px;
}

.documents-reviews-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
    padding: 20px 30px;
    border-radius: 2px;
    background-color: #FBF2F2;
}

.documents-reviews-left-text {
    font-size: 12px;
}

.documents-reviews-rating-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary, #003B8E);
    line-height: normal;
}

.documents-reviews-right {
    flex: 4;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.documents-reviews-progress {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.documents-stars {
    white-space: nowrap;
}

.documents-reviews-progress-bar {
    flex: 1;
    height: 10px;
    border-radius: 20px;
    background-color: #D8D8D8;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.documents-reviews-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress-width, 0%);
    background-color: #D8D8D8;
    border-radius: 20px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.documents-reviews-progress-bar.reviews-progress-active::after {
    background-color: #003B8E;
}

.documents-reviews-percent {
    min-width: 36px;
    padding: 5px;
    border-radius: 2px;
    background-color: #F5F5F3;
    margin-left: auto;
    text-align: center;
}

.documents-review-list {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin: 30px 0 30px 0;
}

.documents-review-item {
    display: flex;
    column-gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D8D4CE;
}

.documents-review-avatar {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.documents-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.documents-review-info {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
    width: 100%;
}

.documents-review-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.documents-review-info-left {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.documents-review-info-left span {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: #4A5568;
}

.documents-review-info-left time {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.documents-review-info-right {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.documents-review-info-rating {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.documents-review-info-bottom {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.documents-review-btn {
    background: var(--color-primary, #003B8E);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.documents-review-btn:hover {
    opacity: 0.9;
}

.vod-rating-stars {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.vod-star-btn {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 36px;
    color: #d1d5db;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
    outline: none;
}

.vod-star-btn:hover {
    color: #ffd700;
    transform: scale(1.15);
}

.vod-star-btn.active {
    color: #ffd700;
    transform: scale(1.1);
}

.vod-rating-form {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.vod-reviews-list {
    margin-top: 24px;
}

.vod-review-item {
    padding-bottom: 16px;
}

.vod-review-item:last-child {
    border-bottom: none !important;
}

.comment-pagination .page-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E6E6E6;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s ease;
}

.comment-pagination .page-item.active .page-link {
    background: #003B8E;
    color: #fff;
    border-color: #003B8E;
}

.comment-pagination .page-link:hover {
    color: #003B8E;
    border-color: #003B8E;
}

.vod-review-item a {
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.vod-review-item a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

.vod-star-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.vod-rating-form textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.vod-rating-form .btn.disabled,
.vod-rating-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.article-meta i {
    font-size: 1rem;
}

.article-content ol,
.article-content ul {
    margin-left: 1.25rem;
}

.interaction-buttons .btn {
    min-width: 180px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .interaction-buttons .btn:active {
        transform: scale(0.98);
    }

.discussion-stats {
    padding: 20px 0;
    color: #4b5563;
    font-size: 14px;
}

.discussion-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

    .discussion-stat i {
        font-size: 16px;
    }

    .discussion-stat strong {
        font-weight: 600;
        color: #1f2937;
        margin-left: 4px;
    }

.comments-section {
    gap: 20px;
}

.comment-avatar-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
}

.comment-author {
    font-size: 16px;
}

.comment-date {
    font-size: 14px;
}

.comment-text {
    line-height: 1.7;
}

.comment-action-btn {
    font-weight: 500;
}

    .comment-action-btn i {
        font-size: 1rem;
    }

.comment-editor .form-control {
    border-radius: 12px;
    padding: 1rem;
    font-size: 15px;
}

.comment-editor-input {
    position: relative;
}

.comment-editor-avatar {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 34px;
    height: 34px;
    object-fit: cover;
}

.comment-editor .comment-input {
    padding-left: 70px !important;
    display: flex;
    height: 80px;
    padding: 16px;
    align-items: flex-start;
    gap: 10px;
    flex: 1 0 0;
    border-radius: 4px;
    border: 1px solid var(--Border-Default, #D7D7D7);
    background: #FFF;
    font-size: 15px;
}

.comment-editor .btn-submit-comment {
    min-width: 140px;
    display: flex;
    padding: 10px 28px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--Theme-Primary-Default, #003B8E);
    font-feature-settings: 'salt' on;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 162.023%;
}

.btn-submit-comment {
    color: var(--Theme-Primary-Default, #003B8E);
    border-color: var(--Theme-Primary-Default, #003B8E);
}

    .btn-submit-comment:hover {
        color: #fff;
        background: var(--Theme-Primary-Default, #003B8E);
        border-color: var(--Theme-Primary-Default, #003B8E);
    }

.discussion-comments {
    gap: 16px;
}

.discussion-comment {
    border-bottom: 1px solid var(--Border-Default, #D7D7D7);
    padding-bottom: 20px;
}

    .discussion-comment .comment-text {
        color: #4a5568;
        font-size: 15px;
    }

.comment-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 14px;
    color: #4a5568;
}

.comment-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .comment-meta-item i {
        font-size: 16px;
        color: #c53030;
    }

.pagination {
    padding: 0;
}

.pagination-wrapper .page-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-pagination .page-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E6E6E6;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s ease;
}

.comment-pagination .page-item:first-child .page-link,
.comment-pagination .page-item:last-child .page-link {
    border-radius: 50%;
}

.comment-pagination .page-item.active .page-link {
    background: #003B8E;
    color: #fff;
    border-color: #003B8E;
}

.comment-pagination .page-link i {
    font-size: 14px;
}

.comment-pagination .page-link:hover {
    color: #003B8E;
    border-color: #003B8E;
}

.comment-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

.discussion-comment-empty {
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}

#vodRatingFormStatus{
    font-size: 13px;
}

.form-label{
    font-size:13px;
}
#vodReviewContent{
    font-size:13px;
}
#vodSubmitRatingBtn{
    font-size:13px;
}
#vodCancelEditBtn{
        font-size:13px;
}
.info-review{
    font-size:14px;
}
.edit-review {
    color: #0d6efd !important;
}
#sectionRelated{
    margin:20px 0 20px 0;
}

@media (max-width: 768px) {
    .documents-reviews-content {
        flex-direction: column;
        row-gap: 20px;
    }

    .documents-reviews-left {
        padding: 15px 20px;
    }

    .documents-review-item {
        flex-direction: column;
    }

    .documents-review-avatar {
        width: 64px;
        height: 64px;
    }
}
@media (max-width: 768px) {
    .interaction-buttons .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .comment-avatar-img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 576px) {
    .interaction-buttons .btn span {
        display: none;
    }

    .interaction-buttons .btn {
        justify-content: center;
    }
}

/* Swal Toast nhỏ hơn */
.small-toast {
    font-size: 14px !important;
    padding: 0.5rem 0.75rem !important;
}

.small-toast-title {
    font-size: 14px !important;
    margin: 0 !important;
}

.swal2-popup.small-toast {
    width: auto !important;
    min-width: 200px !important;
    max-width: 300px !important;
}

.swal2-popup.small-swal {
    width: 400px !important;
    font-size: 14px !important;
}

    .swal2-popup.small-swal .swal2-title {
        font-size: 18px !important;
    }

    .swal2-popup.small-swal .swal2-content {
        font-size: 14px !important;
    }

.discussion-stat img {
    width: 16px;
    height: 16px;
}
.related-card .related-photo {
    aspect-ratio: 298.00/198.67;
    border-radius: 4px;
}

.related-direct {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}