/* ============================================================
   VUI HAT LE - KHO THÁNH CA PHỤNG VỤ ARCHIVE STYLES
   Giao diện chuyên nghiệp tra cứu & chia sẻ Thánh Ca
   ============================================================ */

/* Đảm bảo khung ngoài của WordPress không giới hạn full-width banner */
body.post-type-archive-vhl_thanh_ca {
    overflow-x: hidden !important;
}

body.post-type-archive-vhl_thanh_ca #primary,
body.post-type-archive-vhl_thanh_ca .site-main,
body.post-type-archive-vhl_thanh_ca #main,
body.post-type-archive-vhl_thanh_ca .content-area,
.vhl-archive-page-area,
.vhl-content-area.vhl-archive-page-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.vhl-archive-container {
    margin-top: 20px;
    margin-bottom: 60px;
    color: #1e293b;
}

/* ------------------------------------------------------------
   1. HERO BANNER TỔNG QUAN (CATHEDRAL NAVY & SACRED EDITORIAL)
   ------------------------------------------------------------ */
.vhl-archive-hero {
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 0 24px 0 !important;
    background: radial-gradient(130% 120% at 50% 0%, #1e293b 0%, #0f172a 60%, #090d16 100%) !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.08) !important;
    padding: 44px 0 46px 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.vhl-archive-hero::after {
    display: none !important;
}

.vhl-archive-hero-container {
    margin: 0 auto;
    box-sizing: border-box;
}

.vhl-archive-hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.vhl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.vhl-hero-badge svg {
    color: #60a5fa;
}

.vhl-hero-title {
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.vhl-hero-desc {
    margin: 0 0 22px 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #94a3b8;
}

/* Form tìm kiếm trong Hero (Cao cấp, Hiện đại, Focus Ring sắc nét) */
.vhl-hero-search-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 0;
    max-width: 660px;
}

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

.vhl-search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 19px !important;
    height: 19px !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-search-icon svg {
    width: 19px !important;
    height: 19px !important;
    display: block !important;
}

.vhl-hero-search-input {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    line-height: 44px !important;
    padding: 0 40px 0 44px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.vhl-hero-search-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.vhl-clear-search-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 22px !important;
    height: 22px !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    z-index: 2 !important;
    margin: 0 !important;
    transition: all 0.15s ease !important;
}

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

.vhl-hero-search-btn {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    line-height: 46px !important;
    padding: 0 22px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !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: all 0.2s ease !important;
    white-space: nowrap !important;
}

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

.vhl-hero-search-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45) !important;
}

/* ------------------------------------------------------------
   2. BỐ CỤC CHÍNH: SIDEBAR LỌC & DANH SÁCH BÀI HÁT (FLATSOME ROW & COL)
   ------------------------------------------------------------ */
.vhl-archive-main-layout {
    align-items: flex-start !important;
}

@media screen and (min-width: 992px) {
    .vhl-archive-sidebar {
        position: relative;
        top: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

#vhl-archive-filter-form {
    margin-top: 0 !important;
}

.vhl-filter-card {
    margin-top: 0 !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 18px;
    box-shadow: none;
}

.vhl-filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.vhl-filter-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

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

.vhl-filter-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.vhl-filter-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vhl-reset-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.vhl-reset-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.vhl-mobile-drawer-close {
    display: none;
}

.vhl-drawer-backdrop {
    display: none;
}

.vhl-filter-group {
    margin-bottom: 16px;
}

.vhl-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.vhl-filter-select {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 0 30px 0 10px;
    line-height: 34px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.vhl-filter-select:hover {
    border-color: #94a3b8;
}

.vhl-filter-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.vhl-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.vhl-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

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

.vhl-check-item input[type="checkbox"] {
    accent-color: #2563eb;
    cursor: pointer;
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
}

.vhl-check-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* ------------------------------------------------------------
   3. CỘT PHẢI: KẾT QUẢ DANH SÁCH BÀI HÁT
   ------------------------------------------------------------ */
.vhl-archive-results {
    min-width: 0;
    position: relative;
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    transition: opacity 0.2s ease;
}

.vhl-archive-results.is-loading {
    pointer-events: none;
}

.vhl-archive-results.is-loading .vhl-hymns-grid,
.vhl-archive-results.is-loading .vhl-results-bar,
.vhl-archive-results.is-loading .vhl-pagination-wrapper {
    opacity: 0.45;
    filter: blur(0.5px);
    transition: opacity 0.2s ease;
}

.vhl-results-loading-overlay {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    animation: vhlFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vhl-spinner-pulse {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #facc15;
    border-radius: 50%;
    animation: vhlSpin 0.7s linear infinite;
}

@keyframes vhlSpin {
    to { transform: rotate(360deg); }
}

@keyframes vhlFadeIn {
    from { opacity: 0; transform: translate(-50%, -6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Thanh số lượng & Sắp xếp & Chế độ xem (Gọn gàng, Hiện đại) */
.vhl-results-bar {
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.vhl-results-count {
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
}

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

.vhl-results-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Nút chuyển chế độ xem Grid / List (Đồng bộ chiều cao 34px, cân đối, chống đè style) */
.vhl-view-mode-toggle {
    display: inline-flex !important;
    align-items: center !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    box-sizing: border-box !important;
    gap: 2px !important;
}

.vhl-view-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    color: #64748b !important;
    cursor: pointer !important;
    line-height: 1 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}

.vhl-view-btn:hover:not(.active) {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.vhl-view-btn.active {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}

.vhl-view-btn svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    margin: 0 !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}

.vhl-sort-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 34px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.vhl-sort-wrap label {
    display: inline !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 34px !important;
}

.vhl-sort-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 28px 0 10px !important;
    margin: 0 !important;
    line-height: 32px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px !important;
    outline: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.vhl-sort-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

/* Grid các bài Thánh Ca */
.vhl-hymns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

@media (min-width: 1100px) {
    .vhl-hymns-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1099px) and (min-width: 640px) {
    .vhl-hymns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Card bài Thánh Ca (Hiện đại, Trang nhã, Nâng cao tương tác) */
.vhl-hymn-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.vhl-hymn-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.vhl-card-top {
    padding: 12px 14px 10px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.vhl-imprimatur-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    user-select: none;
    cursor: default;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.vhl-imprimatur-verified-badge.is-icon-only,
.vhl-imprimatur-verified-badge:not(.has-label) {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 5px;
    gap: 0;
}

.vhl-imprimatur-verified-badge.is-icon-only:hover,
.vhl-imprimatur-verified-badge:not(.has-label):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.vhl-imprimatur-verified-badge.has-label {
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.vhl-imprimatur-verified-badge.is-approved {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.vhl-imprimatur-verified-badge.is-approved.is-nihil-obstat {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.vhl-imprimatur-verified-badge.is-approved.is-nihil-obstat:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.vhl-imprimatur-verified-badge.is-approved.is-ubtn {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.vhl-imprimatur-verified-badge.is-approved.is-ubtn:hover {
    background: #fef3c7;
    border-color: #fcd34d;
}

.vhl-imprimatur-verified-badge.is-approved.is-diocese {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.vhl-imprimatur-verified-badge.is-approved.is-diocese:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.vhl-imprimatur-verified-badge.is-unapproved {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

.vhl-imprimatur-verified-badge.is-unapproved:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.vhl-imprimatur-verified-badge svg {
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.vhl-feature-chips {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vhl-ft-chip {
    font-size: 10px;
    font-weight: 600;
    padding: 1.5px 5px;
    border-radius: 3px;
    line-height: 1.2;
}

.vhl-ft-chip.pdf {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.vhl-ft-chip.mp3 {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.vhl-ft-chip.score {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.vhl-ft-chip.score svg {
    color: #059669;
    width: 10px;
    height: 10px;
    display: block;
}

.vhl-hymn-card-title {
    margin: 2px 0 3px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

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

.vhl-hymn-card-title a:hover {
    color: #2563eb;
}

.vhl-hymn-card-composer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.25;
}

.vhl-hymn-card-composer .name {
    font-weight: 500;
    color: #475569;
}

.vhl-hymn-card-composer svg {
    flex-shrink: 0;
    color: #64748b;
}

.vhl-hymn-card-excerpt {
    font-size: 11.5px;
    line-height: 1.35;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #64748b;
}

.vhl-excerpt-text {
    font-style: italic;
    color: #475569;
}

.vhl-excerpt-text.vhl-excerpt-placeholder {
    color: #94a3b8;
    font-style: normal;
}

.vhl-excerpt-meta {
    color: #64748b;
    font-style: normal;
}

.vhl-excerpt-meta strong {
    color: #334155;
    font-weight: 600;
}

.vhl-hymn-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-top: 4px;
}

.vhl-hymn-card-tags .tag-link {
    font-size: 10.5px;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: background 0.12s ease;
}

.vhl-hymn-card-tags .tag-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.vhl-hymn-card-tags .tag-link.tag-liturgy {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-weight: 600;
}

.vhl-hymn-card-tags .tag-link.tag-liturgy:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Nút hành động phía dưới Card (Đồng bộ tuyệt đối: Cao 34px, Bo góc 6px, Cân đối 100%) */
.vhl-card-bottom-actions {
    padding: 8px 12px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
}

.vhl-card-btn-play {
    flex: 1 !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: 34px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: 1px solid #2563eb !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-transform: none !important;
}

.vhl-card-btn-play:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.vhl-card-btn-play svg {
    flex-shrink: 0 !important;
    width: 12px !important;
    height: 12px !important;
    display: block !important;
}

.vhl-card-btn-taple {
    appearance: none !important;
    -webkit-appearance: none !important;
    flex: 1 !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: 32px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease !important;
    white-space: nowrap !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.vhl-card-btn-taple:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #2563eb !important;
}

.vhl-card-btn-taple .vhl-btn-icon-taple {
    flex-shrink: 0 !important;
    width: 13px !important;
    height: 13px !important;
    display: block !important;
}

.vhl-taple-btn-label {
    text-transform: none !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.vhl-card-btn-mini {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #64748b !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.vhl-card-btn-mini:hover {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}

.vhl-card-btn-mini svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* ------------------------------------------------------------
   CHẾ ĐỘ XEM DANH SÁCH (LIST VIEW - HÀNG GỌN GÀNG, NHANH CHÓNG)
   ------------------------------------------------------------ */
.vhl-hymns-grid.is-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.vhl-hymns-grid.is-list-view .vhl-hymn-card {
    flex-direction: row !important;
    align-items: center !important;
    height: auto !important;
    min-height: 62px !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    gap: 14px !important;
}

.vhl-hymns-grid.is-list-view .vhl-hymn-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.vhl-hymns-grid.is-list-view .vhl-card-top {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 0 !important;
    flex: 1 !important;
    min-width: 0 !important;
    row-gap: 4px !important;
    column-gap: 12px !important;
}

.vhl-hymns-grid.is-list-view .vhl-card-badges-row {
    order: 1 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    gap: 6px !important;
}

.vhl-hymns-grid.is-list-view .vhl-hymn-card-title {
    order: 2 !important;
    margin: 0 !important;
    font-size: 14.5px !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: fit-content !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.vhl-hymns-grid.is-list-view .vhl-hymn-card-composer {
    order: 3 !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.vhl-hymns-grid.is-list-view .vhl-hymn-card-tags {
    order: 4 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.vhl-hymns-grid.is-list-view .vhl-hymn-card-tags .tag-link {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.vhl-hymns-grid.is-list-view .vhl-hymn-card-excerpt {
    order: 10 !important;
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2px 0 0 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #64748b !important;
}

.vhl-hymns-grid.is-list-view .vhl-excerpt-text {
    color: #475569 !important;
    font-style: italic !important;
}

.vhl-hymns-grid.is-list-view .vhl-excerpt-text.vhl-excerpt-placeholder {
    color: #94a3b8 !important;
    font-style: normal !important;
}

.vhl-hymns-grid.is-list-view .vhl-excerpt-text.vhl-excerpt-meta {
    font-style: normal !important;
}

.vhl-hymns-grid.is-list-view .vhl-card-bottom-actions {
    padding: 0 !important;
    background: transparent !important;
    border-top: none !important;
    flex-shrink: 0 !important;
    gap: 6px !important;
    width: auto !important;
}

.vhl-hymns-grid.is-list-view .vhl-card-btn-play {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 30px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    border-radius: 5px !important;
    flex: none !important;
}

.vhl-hymns-grid.is-list-view .vhl-card-btn-taple {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    border-radius: 5px !important;
    flex: none !important;
}

.vhl-hymns-grid.is-list-view .vhl-card-btn-mini {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 28px !important;
    border-radius: 5px !important;
    padding: 0 !important;
}

@media (max-width: 1100px) {
    .vhl-hymns-grid.is-list-view .vhl-hymn-card-tags {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .vhl-hymns-grid.is-list-view .vhl-hymn-card-tags {
        display: none !important;
    }

    .vhl-hymns-grid.is-list-view .vhl-hymn-card-title {
        max-width: 220px !important;
    }
}

@media (max-width: 680px) {
    .vhl-hymns-grid.is-list-view .vhl-hymn-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px !important;
        gap: 8px !important;
    }

    .vhl-hymns-grid.is-list-view .vhl-card-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .vhl-hymns-grid.is-list-view .vhl-card-badges-row {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .vhl-hymns-grid.is-list-view .vhl-hymn-card-title,
    .vhl-hymns-grid.is-list-view .vhl-hymn-card-composer {
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    .vhl-hymns-grid.is-list-view .vhl-hymn-card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        white-space: normal !important;
        max-width: 100% !important;
        margin: 2px 0 4px 0 !important;
        font-size: 11.5px !important;
    }

    .vhl-hymns-grid.is-list-view .vhl-excerpt-text {
        white-space: normal !important;
        display: inline !important;
    }

    .vhl-hymns-grid.is-list-view .vhl-card-bottom-actions {
        width: 100% !important;
        padding-top: 8px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .vhl-hymns-grid.is-list-view .vhl-card-btn-play,
    .vhl-hymns-grid.is-list-view .vhl-card-btn-taple {
        flex: 1 !important;
    }
}

/* Phân trang (Pagination) */
.vhl-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 12px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.vhl-pagination-wrapper ul.page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !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;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    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;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

/* Không có kết quả */
.vhl-no-results-box {
    text-align: center;
    padding: 60px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.vhl-no-results-box .icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.vhl-no-results-box h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 800;
}

.vhl-no-results-box p {
    margin: 0;
    font-size: 14.5px;
    color: #475569;
}

/* Mobile Filter Bar & Drawer */
.vhl-mobile-filter-bar {
    display: none;
    margin-bottom: 18px;
}

.vhl-mobile-filter-toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1e1b4b;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.vhl-mobile-filter-toggle:hover {
    background: #f8fafc;
    border-color: #6366f1;
}

.vhl-active-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #6366f1;
    color: #ffffff;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

/* Icon Utilities & Focus Ring */
.vhl-hero-badge-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 4px;
    color: #facc15;
}

.vhl-composer-icon {
    color: #6366f1;
    flex-shrink: 0;
}

.vhl-btn-icon-taple {
    flex-shrink: 0;
}

.vhl-spin {
    animation: vhlSpin 0.9s linear infinite;
}

/* WCAG AA Focus Ring Visibility */
.vhl-archive-container a:focus-visible,
.vhl-archive-container button:focus-visible,
.vhl-archive-container select:focus-visible,
.vhl-archive-container input:focus-visible {
    outline: 2.5px solid #6366f1 !important;
    outline-offset: 2px !important;
}

/* ------------------------------------------------------------
   4. RESPONSIVE
   ------------------------------------------------------------ */
@media screen and (max-width: 991px) {
    .vhl-archive-main-layout {
        flex-direction: column;
    }

    .vhl-mobile-filter-bar {
        display: block;
    }

    .vhl-drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }

    body.vhl-filter-drawer-open .vhl-drawer-backdrop {
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .vhl-archive-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 320px !important;
        max-width: 86vw !important;
        height: 100% !important;
        max-height: 100vh !important;
        background: #ffffff !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .vhl-archive-sidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25) !important;
    }

    .vhl-filter-card {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 24px 20px 48px 20px !important;
        margin: 0 !important;
    }

    .vhl-mobile-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: #f1f5f9;
        border: none;
        border-radius: 50%;
        font-size: 20px;
        line-height: 1;
        color: #475569;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .vhl-mobile-drawer-close:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

    .vhl-archive-hero {
        padding: 24px 0 26px 0 !important;
    }

    .vhl-hero-title {
        font-size: 26px;
    }

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

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

/* ------------------------------------------------------------
   6. WIDGET VINH DANH NGƯỜI ĐÓNG GÓP (SIDEBAR LEADERBOARD)
   ------------------------------------------------------------ */
.vhl-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.vhl-contributors-widget .vhl-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.vhl-widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vhl-widget-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.vhl-contrib-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vhl-contrib-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    text-decoration: none !important;
    color: #1e293b;
    font-size: 12px;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.vhl-contrib-item:hover {
    background: #eff6ff;
    border-color: #dbeafe;
    transform: translateX(2px);
    color: #0f172a;
}

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

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

.vhl-contrib-item.rank-1 .vhl-rank-num {
    color: #b45309;
    font-weight: 800;
}

.vhl-contrib-item.rank-2 .vhl-rank-num {
    color: #64748b;
}

.vhl-contrib-item.rank-3 .vhl-rank-num {
    color: #92400e;
}

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

.vhl-contrib-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vhl-contrib-avatar img,
.vhl-contrib-avatar .avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
}

.vhl-contrib-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

.vhl-contrib-name {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.vhl-contrib-item:hover .vhl-contrib-name {
    color: #2563eb;
}

.vhl-contrib-count {
    font-size: 11px;
    color: #64748b;
}

.vhl-contrib-pts {
    font-size: 11px;
    font-weight: 600;
    color: #d97706;
    margin-left: auto;
    flex-shrink: 0;
}

.vhl-sidebar-contrib-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.vhl-sidebar-contrib-cta:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

