/* ============================================================
   VUI HAT LE - TẬP LỄ / BỘ LỄ (SETLIST) CSS STYLES
   Chế độ Công khai (Public) & Riêng tư (Private)
   ============================================================ */

/* ------------------------------------------------------------
   1. MODAL DIALOG: THÊM VÀO TẬP LỄ
   ------------------------------------------------------------ */
.vhl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.vhl-modal-box {
    background: #ffffff;
    width: 100%;
    border-radius: 10px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

.vhl-taple-modal-box {
    max-width: 480px !important;
    width: 100% !important;
    max-height: calc(100vh - 48px);
    margin: auto !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Modal trên Mobile / Màn hình hẹp */
@media (max-width: 640px) {
    .vhl-modal-backdrop {
        padding: 16px 12px !important;
        background: rgba(15, 23, 42, 0.6) !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .vhl-taple-modal-box {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: calc(100vh - 32px) !important;
        margin: auto !important;
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25) !important;
    }

    .vhl-taple-modal-box .vhl-modal-header {
        padding: 14px 16px 12px 16px !important;
    }

    .vhl-taple-modal-box .vhl-modal-body {
        padding: 16px !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
    }

    .vhl-taple-modal-box .vhl-modal-footer {
        padding: 12px 16px !important;
    }
}

/* Định kiểu riêng và chuẩn xác cho .vhl-taple-modal-box */
.vhl-taple-modal-box .vhl-modal-header {
    margin: 0 !important;
    padding: 18px 22px 14px 22px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.vhl-taple-modal-box .vhl-modal-body {
    margin: 0 !important;
    padding: 20px 22px !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.vhl-taple-modal-box .vhl-modal-footer {
    margin: 0 !important;
    padding: 14px 22px !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

.vhl-taple-modal-box .vhl-modal-footer:has(.vhl-modal-footer-left) {
    justify-content: space-between !important;
}

.vhl-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 18px 22px 14px 22px;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
}

.vhl-modal-header-info {
    min-width: 0;
    flex: 1;
}

.vhl-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.3;
}

.vhl-modal-icon {
    flex-shrink: 0;
    color: #2563eb;
}

.vhl-taple-modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vhl-modal-close {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin: 0 0 0 12px;
    padding: 0;
}

.vhl-modal-close:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vhl-modal-body {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    box-sizing: border-box;
    padding: 20px 22px;
}

.vhl-taple-auth-prompt {
    text-align: center;
    padding: 24px 16px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.vhl-auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-bottom: 8px;
}

.vhl-taple-auth-prompt h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.vhl-taple-auth-prompt p {
    margin: 0 0 14px 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
}

/* Các trường Form tối giản, phẳng */
.vhl-form-group {
    margin-bottom: 16px;
}

.vhl-form-group:last-child {
    margin-bottom: 0;
}

.vhl-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.vhl-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.vhl-field-label-row label {
    margin-bottom: 0 !important;
}

.vhl-btn-link-toggle {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    transition: color 0.15s ease !important;
}

.vhl-btn-link-toggle:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.vhl-btn-link-toggle.is-active {
    color: #dc2626 !important;
}

.vhl-btn-link-toggle.is-active:hover {
    color: #b91c1c !important;
}

.vhl-taple-status-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 3px;
    vertical-align: 1px;
}

/* Chiều cao đồng đều 38px cho tất cả các Input & Select */
.vhl-input,
.vhl-select {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 36px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.15s ease !important;
    box-shadow: none !important;
}

.vhl-input:focus,
.vhl-select:focus {
    border-color: #2563eb;
    box-shadow: none;
}

.vhl-select {
    cursor: pointer;
}

/* Form tạo Tập Lễ mới (phẳng, không lồng hộp) */
.vhl-taple-new-form {
    margin: 8px 0 14px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
}

.vhl-new-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.vhl-btn-icon-close-inline {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.vhl-btn-icon-close-inline:hover {
    color: #0f172a;
}

.vhl-vis-toggle-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 8px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
}

.vhl-vis-toggle-group {
    display: inline-flex !important;
    align-items: stretch !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vhl-vis-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    background: transparent !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.15s ease !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    border: none !important;
}

.vhl-vis-pill input[type="radio"] {
    display: none !important;
}

.vhl-vis-pill.selected {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

#vhl-btn-submit-create-taple {
    flex: 1 !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 36px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    border: 1px solid #2563eb !important;
    border-radius: 4px !important;
}

/* Modal Footer & Buttons - Chiều cao đồng nhất 38px */
.vhl-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
    box-sizing: border-box;
    gap: 8px;
}

.vhl-modal-footer-left {
    display: flex;
    align-items: center;
}

.vhl-modal-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.vhl-btn-secondary,
.vhl-btn-primary-purple,
.vhl-btn-danger-text {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    text-transform: none !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    vertical-align: middle !important;
}

.vhl-btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.vhl-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.vhl-btn-primary-purple {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff !important;
    gap: 6px;
}

.vhl-btn-primary-purple:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.vhl-btn-primary-purple.is-update {
    background: #059669;
    border-color: #059669;
}

.vhl-btn-primary-purple.is-update:hover {
    background: #047857;
    border-color: #047857;
}

.vhl-btn-danger-text {
    background: transparent;
    border: 1px solid #fecaca;
    color: #dc2626;
    gap: 5px;
    padding: 0 10px;
}

.vhl-btn-danger-text:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.w-full {
    width: 100%;
}

/* ------------------------------------------------------------
   2. TRANG CHI TIẾT TẬP LỄ (SINGLE TAP LE VIEW) - PHẲNG & TỐI GIẢN
   ------------------------------------------------------------ */
.content-area.vhl-single-taple-page,
#content.vhl-single-taple-page {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 60px 0 !important;
    box-sizing: border-box !important;
}

.vhl-taple-single-wrapper {
    margin: 24px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Màn hình thông báo riêng tư */
.vhl-taple-private-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 48px 24px;
    text-align: center;
    max-width: 520px;
    margin: 40px auto;
}

.vhl-lock-large-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.vhl-private-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.vhl-private-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.vhl-private-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 1. KHUNG THÔNG TIN TẬP LỄ (PHẲNG, GỌN GÀNG, KHÔNG VIỀN LỒNG VIỀN) */
.vhl-single-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.vhl-header-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vhl-header-title-col {
    flex: 1;
    min-width: 0;
}

.vhl-header-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    max-width: 100%;
}

.vhl-taple-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.01em;
}

.vhl-taple-badge.public {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.vhl-taple-badge.private {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.vhl-taple-song-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    line-height: 1;
}

.vhl-box-header-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vhl-single-taple-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

.vhl-single-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #64748b;
}

.vhl-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #334155;
    font-weight: 500;
}

.vhl-meta-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
}

.vhl-single-desc {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 4px;
    border-left: 2px solid #818cf8;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

.vhl-single-desc p {
    margin: 0;
}

/* ==========================================================================
   NHÓM NÚT THAO TÁC TRONG HEADER (EXPANDING ACCORDION ACTIONS - UI/UX PRO MAX)
   ========================================================================== */
.vhl-header-actions-col {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    align-self: flex-start !important;
    margin-top: 2px !important;
}

.vhl-flat-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    height: 36px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    /* Transition mở rộng và thu gọn siêu êm */
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease !important;
}

.vhl-flat-action-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
}

.vhl-flat-action-btn:active {
    transform: scale(0.97) !important;
}

/* Kích thước Icon SVG chuẩn xác, đồng đều tuyệt đối trên mọi nút */
.vhl-flat-action-btn svg,
.vhl-flat-action-btn .vhl-action-icon {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    stroke-width: 2px !important;
    margin: 0 !important;
}

/* Phần chữ bọc (Label Wrapper) có hiệu ứng trượt mở rộng */
.vhl-btn-label-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    transition: max-width 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.18s ease,
        margin 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.vhl-btn-label-text,
.vhl-fav-text {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.vhl-fav-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    height: 18px !important;
    min-width: 18px !important;
    padding: 0 6px !important;
    border-radius: 9px !important;
    line-height: 18px !important;
    box-sizing: border-box !important;
    margin-left: 2px !important;
}

/* 1. MẶC ĐỊNH CHO TẤT CẢ CÁC NÚT (bao gồm Yêu thích, Chép về, Chia sẻ, In, Sửa):
   - Đều ở dạng icon-only hình vuông 36x36 đồng nhất 100%, ẩn tiêu đề */
.vhl-flat-action-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    flex: 0 0 36px !important;
    border-radius: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}

.vhl-flat-action-btn .vhl-btn-label-wrap {
    max-width: 0 !important;
    opacity: 0 !important;
    margin-left: 0 !important;
    pointer-events: none !important;
}

/* 2. KHI HOVER VÀO BẤT KỲ NÚT NÀO:
   - Nút đó mở rộng mượt mà hiển thị tiêu đề của nút đó */
.vhl-flat-action-btn:hover {
    width: auto !important;
    max-width: 220px !important;
    height: 36px !important;
    padding: 0 12px !important;
    flex: 0 0 auto !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    justify-content: center !important;
    align-items: center !important;
}

.vhl-flat-action-btn:hover .vhl-btn-label-wrap {
    max-width: 160px !important;
    opacity: 1 !important;
    margin-left: 6px !important;
    pointer-events: auto !important;
}

/* 2. DANH SÁCH BÀI HÁT PHỤNG VỤ (BẢNG PHẲNG LIỀN MẠCH, KHÔNG VIỀN CON) */
.vhl-single-songs-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

.vhl-songs-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 8px;
    flex-wrap: nowrap;
}

.vhl-box-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
}

.vhl-box-header-title svg {
    color: #6366f1;
}

.vhl-box-header-hint {
    font-size: 12px;
    color: #94a3b8;
}

.vhl-single-songs-list {
    display: flex;
    flex-direction: column;
}

/* Từng hàng bài hát (Không có border riêng, chỉ có border-bottom phân cách) */
.vhl-song-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    transition: background 0.12s ease;
    box-sizing: border-box;
}

.vhl-song-row:last-child {
    border-bottom: none;
}

.vhl-song-row:hover {
    background: #f8fafc;
}

.vhl-srow-num {
    width: 22px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    flex-shrink: 0;
}

.vhl-srow-ritual {
    flex-shrink: 0;
    min-width: 62px;
}

.vhl-srow-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vhl-srow-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.vhl-srow-title:hover {
    color: #4f46e5;
}

.vhl-srow-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vhl-srow-author {
    font-size: 12.5px;
    color: #64748b;
    white-space: nowrap;
}

.vhl-srow-author::before {
    content: "•";
    margin-right: 6px;
    color: #cbd5e1;
}

.vhl-srow-note {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    color: #6366f1;
    background: #eef2ff;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.vhl-srow-imprimatur {
    display: none !important;
}

.vhl-srow-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.vhl-srow-btn,
button.vhl-srow-btn,
a.vhl-srow-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    gap: 4px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.vhl-srow-btn span {
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vhl-srow-btn svg {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.vhl-srow-btn.view {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border-color: #e0e7ff !important;
}

.vhl-srow-btn.view:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.vhl-srow-btn.outline {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

.vhl-srow-btn.outline:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.vhl-srow-btn.is-playing {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.vhl-srow-btn.is-playing:hover {
    background: #0369a1 !important;
    color: #ffffff !important;
    border-color: #0369a1 !important;
}

.vhl-srow-btn .vhl-icon-pause {
    display: none !important;
}

.vhl-srow-btn.is-playing .vhl-icon-play {
    display: none !important;
}

.vhl-srow-btn.is-playing .vhl-icon-pause {
    display: inline-block !important;
}

/* Đảm bảo nút điều khiển player mini luôn hiển thị icon rõ ràng */
.vhl-mp-toggle,
#vhl-sc-mini-player .vhl-mp-toggle {
    background: #ffffff !important;
    color: #0f172a !important;
}

.vhl-mp-toggle svg,
#vhl-sc-mini-player .vhl-mp-toggle svg {
    color: #0f172a !important;
    fill: #0f172a !important;
}

.vhl-srow-btn.danger {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
    padding: 0 !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
}

.vhl-srow-btn.danger:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

.vhl-single-empty-box {
    text-align: center;
    padding: 36px 16px;
    color: #64748b;
    font-size: 13.5px;
}

@media (max-width: 768px) {
    .vhl-single-header-card {
        padding: 14px 16px;
    }

    .vhl-header-card-top {
        flex-direction: column;
        gap: 12px;
    }

    .vhl-header-title-col {
        width: 100%;
        min-width: 0;
    }

    .vhl-header-badges-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        max-width: 100%;
    }

    .vhl-sunday-feast-badge {
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
        line-height: 1.35;
        padding: 4px 8px;
    }

    .vhl-taple-date-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .vhl-songs-box-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding: 6px 10px;
        gap: 6px;
    }

    .vhl-box-header-title {
        width: auto;
        min-width: 0;
        flex: 1;
    }

    .vhl-box-header-right {
        width: auto;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .vhl-header-actions-col {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .vhl-flat-action-btn {
        height: 36px !important;
    }

    .vhl-song-row {
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 9px 12px !important;
        gap: 10px !important;
    }

    .vhl-srow-num {
        display: none !important;
    }

    .vhl-srow-ritual {
        order: 1 !important;
        flex-shrink: 0 !important;
        min-width: 50px !important;
    }

    .vhl-srow-ritual .vhl-preview-ritual {
        display: inline-block !important;
        font-size: 11px !important;
        padding: 2.5px 6px !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }

    .vhl-srow-info {
        order: 2 !important;
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        overflow: hidden !important;
    }

    .vhl-srow-title {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #0f172a !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
    }

    .vhl-srow-meta {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .vhl-srow-author {
        font-size: 11.5px !important;
        color: #64748b !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .vhl-srow-author::before {
        display: none !important;
    }

    .vhl-srow-note {
        font-size: 10.5px !important;
        padding: 1px 5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .vhl-srow-actions {
        order: 3 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .vhl-srow-btn {
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
    }

    .vhl-srow-btn.view {
        padding: 0 9px !important;
        font-size: 11.5px !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    .vhl-srow-btn.outline {
        padding: 0 6px !important;
        font-size: 10.5px !important;
        gap: 2px !important;
    }

    .vhl-srow-btn.danger {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        padding: 0 !important;
    }
}

@media (max-width: 380px) {
    .vhl-song-row {
        padding: 8px 8px !important;
        gap: 6px !important;
    }

    .vhl-srow-ritual {
        min-width: 44px !important;
    }

    .vhl-srow-ritual .vhl-preview-ritual {
        font-size: 10.5px !important;
        padding: 2px 4px !important;
    }

    .vhl-srow-title {
        font-size: 13px !important;
    }

    .vhl-srow-btn.view {
        padding: 0 6px !important;
        font-size: 11px !important;
    }
}

/* ------------------------------------------------------------
   4. SHORTCODE DASHBOARD
   ------------------------------------------------------------ */
.vhl-taple-dashboard-wrapper {
    max-width: 1060px;
    margin: 30px auto;
    padding: 0 16px;
}

.vhl-taple-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.vhl-taple-dash-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.vhl-taple-dash-sub {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #64748b;
}

.vhl-taple-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.vhl-taple-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.vhl-taple-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.vhl-taple-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vhl-taple-card-count {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

.vhl-taple-card-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.vhl-taple-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.vhl-taple-card-title a:hover {
    color: #6366f1;
}

.vhl-taple-card-desc {
    margin: 0 0 16px 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
}

.vhl-taple-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

.vhl-card-btn.view {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
}

.vhl-card-btn.view:hover {
    text-decoration: underline;
}

.vhl-card-actions-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vhl-card-icon-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.vhl-card-icon-btn:hover {
    background: #f1f5f9;
}

.vhl-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.vhl-taple-empty-card {
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1.5px dashed #cbd5e1;
}

.vhl-taple-empty-card h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #1e293b;
}

.vhl-taple-empty-card p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Toast thông báo */
.vhl-toast-notification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
}

.vhl-toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .vhl-taple-hero-top {
        padding: 20px 16px;
    }

    .vhl-taple-toolbar-row {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .vhl-taple-tools-left,
    .vhl-taple-tools-right {
        width: 100%;
        flex-direction: column;
    }

    .vhl-taple-tool-btn {
        width: 100%;
        justify-content: center;
    }

    .vhl-taple-songs-container {
        padding: 20px 16px;
    }

    .vhl-taple-song-item {
        flex-direction: column;
        padding: 14px;
    }

    .vhl-song-actions-col {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        border-top: 1px solid #f1f5f9;
        padding-top: 10px;
        margin-top: 8px;
    }

    .vhl-vis-radio-group {
        grid-template-columns: 1fr;
    }
}

/* Print CSS */
@media print {

    .vhl-taple-toolbar-row,
    .vhl-song-actions-col,
    .vhl-taple-tool-btn,
    .vhl-btn-toggle-vis-single,
    #header,
    #footer,
    .header,
    .footer {
        display: none !important;
    }

    .vhl-taple-single-wrapper {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    .vhl-taple-hero-card,
    .vhl-taple-songs-container {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}



/* ------------------------------------------------------------
   5. TRANG LƯU TRỮ TẬP LỄ (/tap-le/) - THIẾT KẾ PHẲNG & TỐI GIẢN
   ------------------------------------------------------------ */
.content-area.vhl-taple-archive-page,
#content.vhl-taple-archive-page {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 60px 0 !important;
    box-sizing: border-box !important;
    background: #f8fafc;
}

/* 1. HERO BANNER TỔNG QUAN (FULL-WIDTH 100%, PHẲNG & TỐI GIẢN) */
.vhl-taple-archive-page .vhl-archive-hero {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: #1e1b4b !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 34px 0 38px 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
}

.vhl-taple-archive-page .vhl-archive-hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.vhl-taple-archive-page .vhl-archive-hero-content {
    max-width: 760px;
}

.vhl-taple-archive-page .vhl-hero-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.vhl-taple-archive-page .vhl-hero-desc {
    margin: 0 0 20px 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #cbd5e1;
}

/* Form tìm kiếm trong Hero */
.vhl-taple-archive-page .vhl-hero-search-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 0;
    max-width: 620px;
}

.vhl-taple-archive-page .vhl-search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    height: 42px;
}

.vhl-taple-archive-page .vhl-search-icon {
    position: absolute !important;
    left: 13px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2 !important;
}

.vhl-taple-archive-page .vhl-search-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.vhl-taple-archive-page .vhl-hero-search-input {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 40px !important;
    padding: 0 38px 0 40px !important;
    border-radius: 4px !important;
    border: 1px solid #475569 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: border-color 0.15s ease !important;
}

.vhl-taple-archive-page .vhl-hero-search-input:focus {
    border-color: #f59e0b !important;
}

.vhl-taple-archive-page .vhl-clear-search-btn {
    position: absolute !important;
    right: 11px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    z-index: 2 !important;
    margin: 0 !important;
}

.vhl-taple-archive-page .vhl-clear-search-btn:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

.vhl-taple-archive-page .vhl-hero-search-btn {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 42px !important;
    padding: 0 20px !important;
    background: #f59e0b !important;
    color: #0f172a !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
    white-space: nowrap !important;
}

.vhl-taple-archive-page .vhl-hero-search-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.vhl-taple-archive-page .vhl-hero-search-btn:hover {
    background: #d97706 !important;
}

/* 2. CONTAINER CHÍNH CỦA TRANG */
.vhl-taple-archive-page .vhl-archive-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 3. BẢNG VINH DANH NGƯỜI ĐÓNG GÓP NHIỀU TẬP LỄ (PHẲNG & TỐI GIẢN) */
.vhl-taple-archive-page .vhl-top-contributors-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 7px 14px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.vhl-taple-archive-page .vhl-contrib-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.vhl-taple-archive-page .vhl-contrib-bar-icon {
    font-size: 15px;
    line-height: 1;
}

.vhl-taple-archive-page .vhl-contrib-bar-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}

.vhl-taple-archive-page .vhl-contrib-bar-items::-webkit-scrollbar {
    display: none;
}

.vhl-taple-archive-page .vhl-flat-contrib-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    color: #1e293b;
    font-size: 12.5px;
    line-height: 1.2;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vhl-taple-archive-page .vhl-flat-contrib-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vhl-taple-archive-page .vhl-flat-contrib-item.rank-1 {
    background: #fffbeb;
    border-color: #fef08a;
}

.vhl-taple-archive-page .vhl-flat-contrib-item.rank-1:hover {
    background: #fef9c3;
    border-color: #fde047;
}

.vhl-taple-archive-page .vhl-flat-contrib-item.rank-1 .vhl-flat-rank-num {
    color: #d97706;
}

.vhl-taple-archive-page .vhl-flat-rank-num {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
}

.vhl-taple-archive-page .vhl-flat-avatar-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e2e8f0;
}

.vhl-taple-archive-page .vhl-flat-avatar-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.vhl-taple-archive-page .vhl-flat-name {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.vhl-taple-archive-page .vhl-flat-contrib-item:hover .vhl-flat-name {
    color: #4f46e5;
}

.vhl-taple-archive-page .vhl-flat-count {
    font-size: 11px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.vhl-taple-archive-page .vhl-contrib-bar-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0px;
}

.vhl-taple-archive-page .vhl-flat-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4f46e5;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #4f46e5;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.15s ease;
    margin: 0px;
}

.vhl-taple-archive-page .vhl-flat-btn-upload:hover {
    background: #4338ca;
    border-color: #4338ca;
}

/* 4. THANH HEADER THỐNG KÊ & SẮP XẾP */
.vhl-taple-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vhl-taple-archive-count {
    font-size: 14.5px;
    color: #475569;
}

.vhl-taple-archive-count strong {
    color: #0f172a;
    font-weight: 700;
}

.vhl-taple-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vhl-sort-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.vhl-sort-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.vhl-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 6px 30px 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    height: 34px;
    transition: border-color 0.15s ease;
}

.vhl-sort-select:focus {
    border-color: #4f46e5;
}

.vhl-sort-arrow-icon {
    position: absolute;
    right: 10px;
    pointer-events: none;
    color: #64748b;
}

/* 5. LƯỚI CARD TẬP LỄ (PHẲNG & TỐI GIẢN) */
.vhl-taple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

@media (max-width: 1024px) {
    .vhl-taple-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .vhl-taple-grid {
        grid-template-columns: 1fr;
    }
}

.vhl-taple-grid .vhl-taple-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vhl-taple-grid .vhl-taple-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.vhl-taple-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 9px;
}

.vhl-card-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.vhl-taple-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.vhl-taple-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.vhl-taple-card-title a:hover {
    color: #4f46e5;
}

.vhl-taple-card-count {
    font-size: 11.5px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
}

.vhl-taple-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.vhl-taple-card-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}

.vhl-taple-card-author:hover {
    color: #4f46e5;
}

.vhl-card-author-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
}

.vhl-meta-public {
    display: inline-flex;
    align-items: center;
    color: #059669;
    font-size: 11.5px;
    font-weight: 500;
}

.vhl-dot {
    color: #cbd5e1;
}

.vhl-taple-card-date {
    color: #94a3b8;
}

/* Thân card: Danh sách bài hát preview */
.vhl-taple-card-body {
    flex: 1;
    margin-bottom: 14px;
}

.vhl-taple-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vhl-taple-preview-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vhl-preview-ritual {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1.4;
}

.vhl-preview-ritual.nhap_le {
    background: #e0f2fe;
    color: #0369a1;
}

.vhl-preview-ritual.bo_le {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fef3c7;
}

.vhl-preview-ritual.dap_ca {
    background: #fef3c7;
    color: #92400e;
}

.vhl-preview-ritual.alleluia {
    background: #fef9c3;
    color: #854d0e;
}

.vhl-preview-ritual.dang_le {
    background: #f3e8ff;
    color: #6b21a8;
}

.vhl-preview-ritual.hiep_le {
    background: #dcfce7;
    color: #166534;
}

.vhl-preview-ritual.ta_le {
    background: #ffe4e6;
    color: #9f1239;
}

.vhl-preview-ritual.khac {
    background: #f1f5f9;
    color: #475569;
}

.vhl-preview-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1e293b;
    font-weight: 500;
}

.vhl-taple-preview-more {
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #6366f1;
}

.vhl-taple-preview-empty {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
    padding: 10px 0;
}

/* Footer card: Nút xem chi tiết */
.vhl-taple-grid .vhl-taple-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vhl-btn-view-taple {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.vhl-btn-view-taple:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

/* 6. PHÂN TRANG (PAGINATION) */
.vhl-pagination-wrapper {
    margin: 32px 0;
    display: flex;
    justify-content: center;
}

.vhl-pagination-wrapper ul.page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    height: auto !important;
    min-width: 0 !important;
}

.vhl-pagination-wrapper ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: inline-flex !important;
}

.vhl-pagination-wrapper li .page-numbers,
.vhl-pagination-wrapper a.page-numbers,
.vhl-pagination-wrapper span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}

.vhl-pagination-wrapper a.page-numbers:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.vhl-pagination-wrapper .page-numbers.current {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

/* 7. EMPTY STATE */
.vhl-taple-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 20px 0 40px 0;
}

.vhl-taple-empty-state h3 {
    margin: 14px 0 6px 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
}

.vhl-taple-empty-state p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #64748b;
}

@media (max-width: 768px) {
    .vhl-taple-archive-page .vhl-top-contributors-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
    }

    .vhl-taple-archive-page .vhl-contrib-bar-items {
        width: 100%;
    }

    .vhl-taple-archive-page .vhl-contrib-bar-action {
        width: 100%;
    }

    .vhl-taple-archive-page .vhl-flat-btn-upload {
        width: 100%;
        justify-content: center;
    }

    .vhl-taple-archive-page .vhl-hero-search-form {
        flex-direction: column;
    }

    .vhl-taple-archive-page .vhl-hero-search-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Hạn mức Tập Lễ & Thông báo Tiêu Nốt Nhạc (Limit & Points Hint)
   ========================================================================== */
.vhl-taple-new-limit-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.vhl-taple-new-limit-hint .vhl-limit-icon {
    font-size: 14px;
    line-height: 1.2;
    flex-shrink: 0;
}

.vhl-taple-new-limit-hint.is-free {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.vhl-taple-new-limit-hint.is-chargeable {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.vhl-taple-new-limit-hint.is-insufficient {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   GỢI Ý CHÚA NHẬT, PRESET NGÀY & YÊU THÍCH TẬP LỄ
   ========================================================================== */
.vhl-liturgical-date-box,
.vhl-liturgical-picker-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}

.vhl-feast-preset-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .vhl-feast-preset-buttons {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
}

.vhl-btn-preset-feast {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    line-height: 1.3 !important;
    height: auto !important;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.vhl-btn-preset-feast:hover {
    border-color: #3b82f6 !important;
    background: #f8faff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.08) !important;
}

.vhl-btn-preset-feast.is-active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}

.vhl-preset-feast-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #1e40af;
    background: #dbeafe;
    padding: 2px 7px;
    border-radius: 4px;
}

.vhl-preset-feast-badge.is-rehearse {
    color: #6b21a8;
    background: #f3e8ff;
}

.vhl-preset-top-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.vhl-preset-date-pill {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 10px;
    flex-shrink: 0;
    line-height: 1.4;
}

.vhl-btn-preset-feast.is-active .vhl-preset-date-pill {
    background: #dbeafe;
    color: #1e40af;
}

.vhl-preset-feast-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vhl-btn-preset-feast.is-active .vhl-preset-feast-title {
    color: #1d4ed8;
}

.vhl-preset-feast-cycle {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    margin-top: 1px;
}

.vhl-btn-preset-feast.is-active .vhl-preset-feast-cycle {
    color: #2563eb;
    font-weight: 600;
}

.vhl-preset-feast-sub {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.vhl-btn-preset-feast.is-active .vhl-preset-feast-sub {
    color: #3b82f6;
    font-weight: 600;
}

.vhl-btn-toggle-other {
    background: transparent !important;
    border: none !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    color: #2563eb !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: all 0.15s ease !important;
    height: auto !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}

.vhl-btn-toggle-other:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
    background: #eff6ff !important;
}

.vhl-other-feasts-accordion {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    margin-bottom: 4px;
}

/* Hàng chia sẻ inline siêu gọn cho Modal Tập Lễ */
.vhl-share-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.vhl-share-inline-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vhl-share-globe-icon {
    font-size: 16px;
    line-height: 1;
}

.vhl-share-inline-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-right: 6px;
}

.vhl-share-status-desc {
    font-size: 12px;
    color: #64748b;
}

.vhl-share-status-desc.is-private {
    color: #d97706;
    font-weight: 500;
}

.vhl-date-preset-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vhl-btn-preset-date {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1.3 !important;
    height: auto !important;
}

.vhl-btn-preset-date:hover {
    border-color: #94a3b8 !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.vhl-btn-preset-date.is-active {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
    box-shadow: 0 0 0 1px #2563eb !important;
}

.vhl-btn-preset-date small {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.vhl-btn-preset-date.is-active small {
    color: #2563eb !important;
}

/* Badge Ngày Phụng Vụ */
.vhl-taple-card-liturgy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    margin: 0 0 10px 0;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vhl-taple-card-liturgy-badge svg {
    color: #2563eb;
    flex-shrink: 0;
}

/* Nút Thả tim / Yêu thích */
.vhl-btn-fav-card {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 10px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.vhl-btn-fav-card:hover {
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.vhl-btn-fav-card.is-active {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.vhl-btn-fav-card.is-active .vhl-icon-heart {
    transform: scale(1.1);
}

.vhl-icon-heart {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   NÚT THẢ TIM / YÊU THÍCH & CHÉP VỀ (UI/UX PRO MAX)
   ========================================================================== */
.vhl-btn-fav-taple {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    padding: 3px 8px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    text-decoration: none !important;
    line-height: 1 !important;
    margin: 0px;
}

.vhl-btn-fav-taple:hover {
    border-color: #fecaca !important;
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

.vhl-btn-fav-taple.is-favorited {
    border-color: #fecaca !important;
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

.vhl-btn-fav-taple.is-favorited .vhl-fav-heart {
    animation: vhlHeartPulse 0.3s ease;
}

/* Nút Yêu thích trên header trang chi tiết (Single Setlist Page) - Đồng bộ trạng thái hover / is-favorited */
.vhl-flat-action-btn.vhl-btn-fav-taple:hover {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.vhl-flat-action-btn.vhl-btn-fav-taple.is-favorited {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.vhl-flat-action-btn.vhl-btn-fav-taple .vhl-fav-count {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* Nút Chép về (Clone) trên thẻ tập lễ */
.vhl-sunday-btn-clone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 9px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    color: #334155 !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    margin: 0px;
}

.vhl-sunday-btn-clone:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.vhl-sunday-btn-clone svg {
    flex-shrink: 0;
}

/* Huy hiệu Phụng Vụ / Ngày Chúa Nhật */
.vhl-sunday-feast-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vhl-taple-date-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
}

@keyframes vhlHeartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   MODAL CHỈNH SỬA TẬP LỄ TRỰC TIẾP (SINGLE EDIT TAP LE MODAL)
   ========================================================================== */
#vhl-single-edit-taple-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px 16px;
    box-sizing: border-box;
}

#vhl-single-edit-taple-modal .vhl-taple-modal-box {
    max-width: 500px !important;
    width: 100% !important;
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: vhlModalPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vhlModalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#vhl-single-edit-taple-modal .vhl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

#vhl-single-edit-taple-modal .vhl-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

#vhl-single-edit-taple-modal .vhl-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

#vhl-single-edit-taple-modal .vhl-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

#vhl-single-edit-taple-modal .vhl-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    box-sizing: border-box;
}

#vhl-single-edit-taple-modal .vhl-modal-form-group {
    margin-bottom: 14px;
}

#vhl-single-edit-taple-modal .vhl-modal-form-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

#vhl-single-edit-taple-modal .vhl-modal-input,
#vhl-single-edit-taple-modal .vhl-modal-select,
#vhl-single-edit-taple-modal .vhl-modal-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.15s ease;
}

#vhl-single-edit-taple-modal .vhl-modal-input:focus,
#vhl-single-edit-taple-modal .vhl-modal-select:focus,
#vhl-single-edit-taple-modal .vhl-modal-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* 2 Nút gợi ý Chúa Nhật */
#vhl-single-edit-taple-modal .vhl-btn-preset-feast {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#vhl-single-edit-taple-modal .vhl-btn-preset-feast:hover {
    border-color: #818cf8;
    background: #eef2ff;
}

#vhl-single-edit-taple-modal .vhl-btn-preset-feast.is-active {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

#vhl-single-edit-taple-modal .vhl-preset-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

#vhl-single-edit-taple-modal .vhl-preset-feast-badge {
    font-weight: 700;
    color: #4f46e5;
}

#vhl-single-edit-taple-modal .vhl-preset-feast-badge.is-rehearse {
    color: #0284c7;
}

#vhl-single-edit-taple-modal .vhl-preset-date-pill {
    color: #64748b;
    font-weight: 500;
}

#vhl-single-edit-taple-modal .vhl-preset-feast-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#vhl-single-edit-taple-modal .vhl-preset-feast-cycle {
    font-size: 11px;
    color: #64748b;
}

/* Hàng chia sẻ dạng Switch */
#vhl-single-edit-taple-modal .vhl-share-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 14px;
}

#vhl-single-edit-taple-modal .vhl-share-inline-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#vhl-single-edit-taple-modal .vhl-share-globe-icon {
    font-size: 18px;
}

#vhl-single-edit-taple-modal .vhl-share-inline-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

#vhl-single-edit-taple-modal .vhl-share-status-desc {
    display: block;
    font-size: 11.5px;
    color: #10b981;
    font-weight: 500;
}

#vhl-single-edit-taple-modal .vhl-share-status-desc.is-private {
    color: #f59e0b;
}

/* Công tắc switch */
#vhl-single-edit-taple-modal .vhl-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
    margin: 0;
}

#vhl-single-edit-taple-modal .vhl-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#vhl-single-edit-taple-modal .vhl-switch-slider {
    position: absolute;
    inset: 0;
    background-color: #cbd5e1;
    border-radius: 24px;
    transition: 0.2s ease;
}

#vhl-single-edit-taple-modal .vhl-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#vhl-single-edit-taple-modal .vhl-switch input:checked+.vhl-switch-slider {
    background-color: #6366f1;
}

#vhl-single-edit-taple-modal .vhl-switch input:checked+.vhl-switch-slider:before {
    transform: translateX(20px);
}

/* Footer Modal */
#vhl-single-edit-taple-modal .vhl-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

#vhl-single-edit-taple-modal .vhl-modal-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#vhl-single-edit-taple-modal .vhl-btn-secondary {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
}

#vhl-single-edit-taple-modal .vhl-btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#vhl-single-edit-taple-modal .vhl-btn-primary-purple {
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #6366f1;
    border: 1px solid #6366f1;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

#vhl-single-edit-taple-modal .vhl-btn-primary-purple:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

#vhl-single-edit-taple-modal .vhl-btn-primary-purple:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   CHẾ ĐỘ XEM TRỌN BỘ TẬP HÁT & IN ẤN CHO CA ĐOÀN (UI/UX PRO MAX)
   ========================================================================== */

/* Nút chuyển đổi chế độ xem trên thanh tiêu đề danh sách (Segmented Control Pro Max) */
.vhl-view-mode-tabs {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 3px;
    flex-shrink: 0;
}

.vhl-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    margin: 0;
    white-space: nowrap !important;
    text-transform: none !important;
}

.vhl-view-tab:hover {
    color: #1e293b;
}

.vhl-view-tab.is-active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Ẩn hiện nhãn chữ linh hoạt chống tràn dòng */
.vhl-tab-text-short,
.vhl-count-text-short {
    display: none;
}

.vhl-tab-text-full,
.vhl-count-text-full {
    display: inline;
}

@media (max-width: 640px) {

    .vhl-tab-text-full,
    .vhl-count-text-full {
        display: none !important;
    }

    .vhl-tab-text-short,
    .vhl-count-text-short {
        display: inline !important;
    }

    .vhl-view-tab {
        padding: 6px 8px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }

    .vhl-taple-song-count-pill {
        padding: 4px 8px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}



/* Khi xem trên màn hình ở chế độ Book (Xem trọn bộ tập hát) */
.vhl-single-songs-box.is-book-mode .vhl-single-songs-list {
    display: none !important;
}

.vhl-taple-single-wrapper.is-book-active #vhl-print-setlist-book {
    display: block !important;
}

/* Style hiển thị trên màn hình cho #vhl-print-setlist-book khi xem trước */
@media screen {
    #vhl-print-setlist-book {
        background: #ffffff;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .vhl-print-cover-header {
        text-align: cente
    }

    .vhl-print-cover-header {
        text-align: center;

    }

    .vhl-cover-emblem-wrap {
        display: flex;
        justify-content: center;
        margin-bottom: 14px;
    }

    .vhl-cover-emblem {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #eef2ff;
        border: 1px solid #e0e7ff;
        color: #4f46e5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .vhl-cover-emblem:hover {
        transform: scale(1.06);
    }

    .vhl-print-main-title {
        font-size: 26px;
        font-weight: 800;
        color: #0f172a;
        margin: 0 0 10px;
        line-height: 1.3;
        letter-spacing: -0.3px;
    }

    .vhl-cover-liturgical-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 14px;
        background: #f5f3ff;
        border: 1px solid #ede9fe;
        border-radius: 9999px;
        font-size: 13.5px;
        font-weight: 600;
        color: #5b21b6;
        margin-bottom: 16px;
        box-shadow: 0 1px 2px rgba(91, 33, 182, 0.04);
    }

    .vhl-cycle-pill {
        background: #6d28d9;
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 9999px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .vhl-cover-meta-pills {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 12.5px;
        color: #475569;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }

    .vhl-meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 9999px;
        font-size: 12.5px;
        color: #475569;
        transition: all 0.2s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .vhl-meta-pill:hover {
        background: #ffffff;
        border-color: #cbd5e1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }

    .vhl-meta-pill.highlight {
        background: #eff6ff;
        border-color: #dbeafe;
        color: #1d4ed8;
        font-weight: 600;
    }

    .vhl-meta-date-short,
    .vhl-meta-count-short {
        display: none;
    }

    .vhl-meta-date-full,
    .vhl-meta-count-full,
    .vhl-meta-author-label {
        display: inline;
    }

    @media (max-width: 640px) {
        .vhl-cover-meta-pills {
            flex-wrap: nowrap !important;
            justify-content: center !important;
            gap: 6px !important;
            overflow-x: auto;
            max-width: 100%;
            padding: 0 4px 4px;
        }

        .vhl-meta-pill {
            padding: 4px 8px !important;
            font-size: 11.5px !important;
            gap: 4px !important;
        }

        .vhl-meta-date-full,
        .vhl-meta-count-full,
        .vhl-meta-author-label {
            display: none !important;
        }

        .vhl-meta-date-short,
        .vhl-meta-count-short {
            display: inline !important;
        }

        .vhl-meta-author-name {
            max-width: 110px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: inline-block;
            vertical-align: middle;
        }
    }

    /* Mục Lục Tương Tác Hiện Đại (Interactive TOC) */
    .vhl-print-toc {
        margin: 16px auto 0;
        max-width: 840px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        text-align: left;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        box-sizing: border-box;
    }

    .vhl-print-toc-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid #f1f5f9;
        flex-wrap: wrap;
        gap: 8px;
    }

    .vhl-print-toc-title {
        font-size: 12.5px;
        font-weight: 800;
        color: #1e293b;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin: 0;
    }

    .vhl-print-toc-hint {
        font-size: 12px;
        color: #94a3b8;
        font-style: italic;
    }

    .vhl-print-toc-grid {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .vhl-toc-card-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 8px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        color: #1e293b;
        text-decoration: none !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        cursor: pointer;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .vhl-toc-card-item:hover {
        background: #ffffff;
        border-color: #cbd5e1;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
        transform: translateY(-1px);
    }

    .vhl-toc-card-item:active {
        transform: translateY(0);
    }

    .vhl-toc-idx {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: #e2e8f0;
        color: #475569;
        font-size: 11.5px;
        font-weight: 700;
        flex-shrink: 0;
    }

    .vhl-toc-badge {
        font-size: 11px;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        flex-shrink: 0;
        min-width: 72px;
        text-align: center;
        white-space: nowrap;
    }

    /* Bảng màu nghi thức Phụng Vụ cao cấp */
    .vhl-toc-badge.ritual-nhap_le {
        background: #dbeafe;
        color: #1e40af;
    }

    .vhl-toc-badge.ritual-bo_le {
        background: #e0e7ff;
        color: #3730a3;
    }

    .vhl-toc-badge.ritual-dap_ca {
        background: #fef3c7;
        color: #92400e;
    }

    .vhl-toc-badge.ritual-alleluia {
        background: #fdf4ff;
        color: #86198f;
    }

    .vhl-toc-badge.ritual-dang_le {
        background: #ffedd5;
        color: #9a3412;
    }

    .vhl-toc-badge.ritual-hiep_le {
        background: #fee2e2;
        color: #991b1b;
    }

    .vhl-toc-badge.ritual-ta_le {
        background: #ccfbf1;
        color: #115e59;
    }

    .vhl-toc-badge.ritual-khac {
        background: #f1f5f9;
        color: #475569;
    }

    .vhl-toc-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

    .vhl-toc-song-name {
        font-size: 14.5px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: break-word;
        transition: color 0.15s ease;
    }

    .vhl-toc-card-item:hover .vhl-toc-song-name {
        color: #4f46e5;
    }

    .vhl-toc-submeta {
        font-size: 12px;
        color: #64748b;
        font-style: italic;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .vhl-toc-arrow {
        color: #94a3b8;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.2s ease;
        margin-left: auto;
    }

    .vhl-toc-card-item:hover .vhl-toc-arrow {
        color: #4f46e5;
        transform: translate(2px, -2px);
    }

    /* Tối ưu Mobile chuyên sâu cho TOC Grid (Không vỡ giao diện kể cả khi Title rất dài) */
    @media (max-width: 640px) {
        .vhl-print-toc {
            padding: 14px 10px !important;
            border-radius: 10px !important;
        }

        .vhl-print-toc-top {
            padding-bottom: 8px !important;
            margin-bottom: 8px !important;
        }

        .vhl-print-toc-hint {
            display: none !important;
        }

        .vhl-toc-card-item {
            padding: 8px 10px !important;
            gap: 8px !important;
            align-items: flex-start !important;
        }

        .vhl-toc-idx {
            width: 20px !important;
            height: 20px !important;
            font-size: 11px !important;
            margin-top: 2px !important;
        }

        .vhl-toc-badge {
            min-width: 58px !important;
            padding: 2px 6px !important;
            font-size: 10px !important;
            margin-top: 2px !important;
        }

        .vhl-toc-song-name {
            font-size: 13.5px !important;
            line-height: 1.35 !important;
        }

        .vhl-toc-submeta {
            font-size: 11.5px !important;
            margin-top: 1px !important;
        }

        .vhl-toc-arrow {
            margin-top: 3px !important;
        }

        .vhl-toc-arrow svg {
            width: 12px !important;
            height: 12px !important;
        }
    }

    /* Hiệu ứng chớp highlight nhẹ khi nhảy tới bản nhạc */
    @keyframes vhlSectionFlash {
        0% {
            background: rgba(79, 70, 229, 0.08);
            border-radius: 8px;
        }

        100% {
            background: transparent;
        }
    }

    .vhl-print-song-section.is-highlighted {
        animation: vhlSectionFlash 1.5s ease-out;
    }

    .vhl-print-song-section {
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-bottom: 24px;
        background: transparent !important;
        box-shadow: none !important;
    }

    .vhl-print-song-header,
    .vhl-lyrics-secondary,
    .abcjs-voice-name,
    .abcjs-vocal-name,
    .vhl-print-abc-sheet .abcjs-voice-name,
    .vhl-print-abc-sheet text[class*="voice-name"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .vhl-print-abc-sheet {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .vhl-print-abc-sheet svg {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 auto;
        overflow: visible !important;
    }

    .vhl-print-lyrics-block {
        margin-top: 16px;
        padding: 16px;
        background: #f8fafc;
        border-radius: 6px;
        font-size: 14px;
        line-height: 1.7;
        color: #1e293b;
    }

    .vhl-print-lyrics-block .vhl-lyrics-title {
        font-size: 14px;
        font-weight: 700;
        color: #475569;
        margin: 0 0 8px;
    }
}

/* ==========================================================================
   CSS DÀNH RIÊNG CHO MÁY IN VÀ FILE PDF XUẤT RA (@media print)
   ========================================================================== */
@media print {

    /* 1. Kích thước trang chuẩn A4 */
    @page {
        size: A4 portrait;
        margin: 12mm 10mm 15mm 10mm;
    }

    /* 2. Reset các thuộc tính nền và ẩn hoàn toàn phần website */
    html,
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11.5pt !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Ẩn header theme, footer theme, thanh sidebar, admin bar, các nút bấm, audio player nổi */
    #header,
    #footer,
    .header-wrapper,
    .footer-wrapper,
    #adminbar,
    .top-bar,
    .nav,
    .breadcrumbs,
    .mobile-sidebar,
    .widget-area,
    .vhl-single-header-card,
    .vhl-single-songs-box,
    #vhl-single-edit-taple-modal,
    .vhl-header-actions-col,
    .vhl-srow-actions,
    .vhl-toast-container,
    .vhl-view-mode-tabs,
    .vhl-btn-bar-print,
    .vhl-print-loading-msg,
    #vhl-sc-mini-player,
    .vhl-mini-player-bar,
    .vhl-mini-player-inner,
    #vhl-sheet-player-bar,
    .vhl-sheet-player,
    .mejs-container,
    audio,
    video {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Đưa container chính về dạng in phẳng tràn khổ giấy */
    #wrapper,
    #main,
    #content,
    .content-area,
    .vhl-content-area,
    .vhl-taple-single-wrapper {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* 3. Hiển thị trọn bộ tập hát in ấn */
    #vhl-print-setlist-book {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Ẩn trang bìa / mục lục khỏi bản in theo yêu cầu */
    .vhl-print-cover-header {
        display: none !important;
    }

    /* Từng bài hát: Sang trang in mới (bài đầu tiên in ngay trang 1, không ngắt trang trắng) */
    .vhl-print-song-section {
        page-break-before: always;
        break-before: page;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .vhl-print-songs-stream>.vhl-print-song-section:first-child,
    .vhl-print-song-section:first-of-type {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }

    .vhl-print-song-header,
    .vhl-lyrics-secondary,
    .abcjs-voice-name,
    .abcjs-vocal-name,
    .vhl-print-abc-sheet .abcjs-voice-name,
    .vhl-print-abc-sheet text[class*="voice-name"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Khuôn nốt nhạc SVG sắc nét */
    .vhl-print-abc-sheet {
        width: 100% !important;
        overflow: visible !important;
    }

    .vhl-print-abc-sheet svg {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }

    /* Lời bài hát in ấn */
    .vhl-print-lyrics-block {
        margin-top: 15px;
        font-size: 11pt;
        line-height: 1.6;
    }

    .vhl-print-lyrics-block .vhl-lyrics-title {
        font-size: 11pt;
        font-weight: 800;
        margin: 0 0 6px;
    }
}