/**
 * ============================================================================
 * ĐỒ CÚNG THIÊN PHÚC — HỆ THỐNG TỜ SỚ VĂN KHẤN ĐÔNG SƠN & TRÌNH PHÁT SPOTIFY KARAOKE
 * Đồng bộ chuẩn 1:1 từ crmthienphuc.dev (Noto Serif • Giấy Ngà • Trống Đồng • Chu Sa)
 * ============================================================================
 */

.tp-prayer-card.tp-vk-crm-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0;
    margin: 26px 0;
    scroll-margin-top: 80px;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    color: #3d2217;
}

.ritual-accordion .tp-prayer-card.tp-vk-crm-card {
    margin: 10px 0 6px;
}

/* Thanh điều khiển bên ngoài Tờ Văn Khấn (Mẫu văn khấn + Bé Trai/Gái + Điền tên + Xuất sớ A4) */
.tp-vk-crm-card .vk-sheet-card-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fbf2e2 0%, #fffbf2 55%, #f7ead7 100%);
    border: 1px solid #dec39b;
    border-radius: 10px;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 13.5px;
    color: #4b2b20;
    box-shadow: 0 2px 8px rgba(122, 75, 42, 0.06);
}

.tp-vk-crm-card .vk-bar-left,
.tp-vk-crm-card .vk-QuickActions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tp-vk-crm-card .vk-bar-label {
    font-weight: 700;
    color: #4b2b20;
    font-size: 13.5px;
    margin: 0;
}

.tp-vk-crm-card .vk-sheet-select {
    border: 1px solid #d4b28a;
    border-radius: 8px;
    padding: 5px 12px;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #4b2b20;
    background: #fffdf9;
    max-width: 100%;
    cursor: pointer;
    line-height: 1.4;
}

.tp-vk-crm-card .vk-sheet-select:focus {
    outline: none;
    border-color: #c44512;
    box-shadow: 0 0 0 2px rgba(196, 69, 18, 0.14);
}

.tp-vk-crm-card .vk-gender-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fffdf9;
    border: 1px solid #d4b28a;
    border-radius: 8px;
    padding: 2px;
}

.tp-vk-crm-card .vk-gender-btn {
    border: none;
    background: transparent;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    color: #7a4b2a;
    line-height: 1.35;
}

.tp-vk-crm-card .vk-gender-btn.active {
    background: linear-gradient(135deg, #c44512 0%, #a24c29 100%);
    color: #fffbf2;
}

.tp-vk-crm-card .vk-btn-mini {
    appearance: none;
    border: 1px solid #d4b28a;
    background: #fffdf9;
    color: #4b2b20;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.35;
    transition: all 0.15s ease;
    text-decoration: none;
}

.tp-vk-crm-card .vk-btn-mini:hover,
.tp-vk-crm-card .vk-btn-mini.is-open {
    background: #f6e6ce;
    border-color: #ae673d;
    color: #c44512;
}

.tp-vk-crm-card .vk-btn-mini--primary {
    background: linear-gradient(135deg, #c44512 0%, #a24c29 100%);
    border-color: #a24c29;
    color: #fffbf2;
}

.tp-vk-crm-card .vk-btn-mini--primary:hover {
    background: linear-gradient(135deg, #d35418 0%, #b1542d 100%);
    color: #ffffff;
    border-color: #993f1d;
}

/* Khay Điền Thông Tin Tín Chủ Tự Động Đổi Âm Lịch & Ghép Giọng Đọc */
.tp-vk-crm-card .vk-fill-drawer {
    background: linear-gradient(135deg, #fdf6ea 0%, #fffdf8 55%, #f8ecda 100%);
    border: 1px solid #dec39b;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 10px 0;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    box-shadow: 0 3px 12px rgba(122, 75, 42, 0.07);
}

.tp-vk-crm-card .vk-fill-drawer[hidden] {
    display: none;
}

.tp-vk-crm-card .vk-fill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tp-vk-crm-card .vk-fill-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tp-vk-crm-card .vk-fill-field label {
    font-size: 12px;
    font-weight: 700;
    color: #5c3724;
}

.tp-vk-crm-card .vk-fill-input {
    border: 1px solid #d4b28a;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 13px;
    color: #3d2217;
    background: #fffdf9;
    width: 100%;
    box-sizing: border-box;
}

.tp-vk-crm-card .vk-fill-input:focus {
    outline: none;
    border-color: #c44512;
    box-shadow: 0 0 0 2px rgba(196, 69, 18, 0.14);
}

.tp-vk-crm-card .vk-fill-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(174, 103, 61, 0.3);
}

.tp-vk-crm-card .vk-fill-hint {
    font-size: 12px;
    color: #7a4b2a;
    font-style: italic;
}

/* ========================================================================
   SPOTIFY LAYOUT AUDIO PLAYER BAR — ĐỒNG BỘ FONT NOTO SERIF & TÔNG MÀU NGÀ - ĐỒNG - CHU SA
   ======================================================================== */
.vk-spotify-bar {
    display: grid;
    grid-template-columns: minmax(200px, 30%) minmax(260px, 42%) minmax(200px, 28%);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #f8eedc 0%, #fffbf2 50%, #f6ead7 100%);
    border: 1px solid #d8b78e;
    border-radius: 12px;
    padding: 10px 16px;
    margin: 0 0 12px 0;
    color: #3d2217;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    box-shadow: 0 4px 16px rgba(122, 75, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    user-select: none;
    box-sizing: border-box;
}

.vk-sp-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vk-sp-cover {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 181, 74, 0.16) 0%, rgba(255, 122, 53, 0.16) 100%);
    background-color: #fceede;
    border: 1px solid rgba(196, 69, 18, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(185, 56, 21, 0.08);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vk-spotify-bar.is-playing .vk-sp-cover {
    border-color: #c44512;
    box-shadow: 0 0 12px rgba(196, 69, 18, 0.25);
}

.vk-sp-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.vk-sp-title {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 700;
    color: #4b2b20;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vk-sp-subtitle {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 600;
    color: #7a4b2a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vk-sp-plus-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: #8c5838;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.vk-sp-plus-btn:hover {
    color: #c44512;
    background: rgba(196, 69, 18, 0.08);
    transform: scale(1.08);
}

.vk-sp-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.vk-sp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.vk-sp-ctrl-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: #7a4b2a;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: color 0.15s ease, transform 0.12s ease;
}

.vk-sp-ctrl-btn:hover {
    color: #c44512;
}

.vk-sp-ctrl-btn.is-active {
    color: #c44512;
}

.vk-sp-ctrl-btn.is-active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c44512;
}

.vk-sp-play-btn {
    appearance: none;
    border: none;
    background: linear-gradient(135deg, #d35418 0%, #a24c29 100%);
    color: #fffbf2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 3px 10px rgba(162, 76, 41, 0.32);
}

.vk-sp-play-btn:hover {
    transform: scale(1.07);
    filter: brightness(1.06);
    box-shadow: 0 4px 14px rgba(196, 69, 18, 0.40);
}

.vk-sp-play-btn:active {
    transform: scale(0.97);
}

.vk-sp-timeline {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.vk-sp-time {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #7a4b2a;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    line-height: 1;
}

.vk-sp-time.vk-sp-time-cur {
    text-align: right;
}

.vk-sp-time.vk-sp-time-tot {
    text-align: left;
}

.vk-player-seek,
.vk-sp-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #a24c29 0%, #a24c29 var(--vk-seek-pct, 0%), #e2cbb0 var(--vk-seek-pct, 0%), #e2cbb0 100%);
    outline: none;
    cursor: pointer;
    margin: 0;
    transition: background 0.1s ease;
}

.vk-player-seek {
    flex: 1;
    width: 100%;
}

.vk-sp-vol-slider {
    width: 82px;
    background: linear-gradient(90deg, #a24c29 0%, #a24c29 var(--vk-vol-pct, 100%), #e2cbb0 var(--vk-vol-pct, 100%), #e2cbb0 100%);
}

.vk-sp-timeline:hover .vk-player-seek,
.vk-player-seek:focus {
    background: linear-gradient(90deg, #c44512 0%, #c44512 var(--vk-seek-pct, 0%), #dcc1a1 var(--vk-seek-pct, 0%), #dcc1a1 100%);
}

.vk-sp-vol-wrap:hover .vk-sp-vol-slider,
.vk-sp-vol-slider:focus {
    background: linear-gradient(90deg, #c44512 0%, #c44512 var(--vk-vol-pct, 100%), #dcc1a1 var(--vk-vol-pct, 100%), #dcc1a1 100%);
}

.vk-player-seek::-webkit-slider-thumb,
.vk-sp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #c44512;
    border: 2px solid #fffbf2;
    box-shadow: 0 2px 5px rgba(75, 43, 32, 0.35);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.vk-sp-timeline:hover .vk-player-seek::-webkit-slider-thumb,
.vk-player-seek:focus::-webkit-slider-thumb,
.vk-sp-vol-wrap:hover .vk-sp-vol-slider::-webkit-slider-thumb,
.vk-sp-vol-slider:focus::-webkit-slider-thumb {
    opacity: 1;
}

.vk-player-seek::-moz-range-thumb,
.vk-sp-vol-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #c44512;
    border: 2px solid #fffbf2;
    box-shadow: 0 2px 5px rgba(75, 43, 32, 0.35);
    cursor: pointer;
}

.vk-sp-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.vk-sp-vol-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vk-sp-pill-dark {
    appearance: none;
    background: #fffdf9;
    border: 1px solid #d4b28a;
    color: #4b2b20;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.3;
    transition: all 0.15s ease;
}

.vk-sp-pill-dark:hover {
    background: #f6e6ce;
    color: #c44512;
    border-color: #ae673d;
}

/* ========================================================================
   TỜ SỚ VĂN KHẤN NỀN GIẤY NGÀ & TRỐNG ĐỒNG ĐÔNG SƠN - CHIM LẠC NGỌC LŨ
   ======================================================================== */
.tp-vk-crm-card .vk-sheet-card {
    margin: 0;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    color: #3d2217;
}

.tp-vk-crm-card .vk-ornate-frame {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #f8eedc 0%, #fffbf2 26%, #fffcf6 72%, #f6ead7 100%);
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(75, 43, 32, 0.10);
}

.tp-vk-crm-card .vk-dongson-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: block;
}

.tp-vk-crm-card .vk-ornate-inner {
    position: relative;
    z-index: 2;
    padding: 64px 44px 56px 44px;
    box-sizing: border-box;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
}

/* Cụm Thương hiệu Đầu trang chuẩn Logo Icon TP + Đồ Cúng THIÊN PHÚC + Slogan */
.tp-vk-crm-card .vk-brand-header {
    max-width: 68%;
    margin-bottom: 30px;
    padding-left: 32px;
}

.tp-vk-crm-card .vk-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.tp-vk-crm-card .vk-brand-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 181, 74, 0.15) 0%, rgba(255, 122, 53, 0.15) 100%);
    background-color: #fceede;
    box-shadow: 0 2px 8px rgba(185, 56, 21, 0.07);
    padding: 10.5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-vk-crm-card .vk-brand-logo-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(255, 122, 53, 0.16));
}

.tp-vk-crm-card .vk-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.15;
}

.tp-vk-crm-card .vk-brand-title-row {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.tp-vk-crm-card .vk-brand-line1 {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #c44512;
    letter-spacing: 0.3px;
}

.tp-vk-crm-card .vk-brand-line2 {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 17.5px;
    font-weight: 700;
    color: #53433f;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.tp-vk-crm-card .vk-brand-slogan {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #7a4b2a;
    letter-spacing: 0.45px;
    line-height: 1.35;
}

.tp-vk-crm-card .vk-brand-rule {
    height: 1.2px;
    width: 100%;
    background: linear-gradient(90deg, #ae673d 0%, #c79967 85%, rgba(199, 153, 103, 0) 100%);
}

/* Tiêu đề bài Văn Khấn kèm Hoa Sen Tâm Linh */
.tp-vk-crm-card .vk-header-title {
    text-align: center;
    margin: 18px 0;
}

.tp-vk-crm-card .vk-header-main,
.entry-content .tp-vk-crm-card .vk-header-main,
.content-inner .tp-vk-crm-card .vk-header-main {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 23px;
    font-weight: 700;
    color: #4b2b20;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.38;
    margin: 0 0 10px 0;
    padding: 0;
    border: 0;
    background: none;
}

.tp-vk-crm-card .vk-header-main::before,
.tp-vk-crm-card .vk-header-main::after {
    display: none;
}

.tp-vk-crm-card .vk-title-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Nội dung lời khấn đồng bộ font Noto Serif + Đường kẻ ngang như giấy vở dễ đọc */
.tp-vk-crm-card .vk-prayer-content {
    --vk-line-h: 42px;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 21px;
    line-height: var(--vk-line-h);
    color: #3d2217;
    text-align: justify;
    padding: 0 12px;
}

.tp-vk-crm-card .vk-prayer-content p,
.entry-content .tp-vk-crm-card .vk-prayer-content p,
.content-inner .tp-vk-crm-card .vk-prayer-content p {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: inherit;
    color: inherit;
    margin: 0 0 12px 0;
    padding: 0;
    line-height: var(--vk-line-h);
    background-image: linear-gradient(
        to bottom,
        transparent calc(var(--vk-line-h) - 1px),
        rgba(174, 103, 61, 0.28) calc(var(--vk-line-h) - 1px),
        rgba(174, 103, 61, 0.28) var(--vk-line-h)
    );
    background-size: 100% var(--vk-line-h);
    background-position: 0 0;
    cursor: pointer;
}

.tp-vk-crm-card .vk-prayer-content p.vk-nam-mo,
.entry-content .tp-vk-crm-card .vk-prayer-content p.vk-nam-mo,
.content-inner .tp-vk-crm-card .vk-prayer-content p.vk-nam-mo {
    background-image: none;
    text-align: center;
    font-weight: 700;
    color: #a24c29;
    font-size: 23px;
    margin: 14px 0;
}

.tp-vk-crm-card .vk-prayer-content ul,
.entry-content .tp-vk-crm-card .vk-prayer-content ul,
.content-inner .tp-vk-crm-card .vk-prayer-content ul {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    list-style: disc;
    margin: 0 0 12px 0;
    padding: 0 0 0 24px;
    line-height: var(--vk-line-h);
    background-image: linear-gradient(
        to bottom,
        transparent calc(var(--vk-line-h) - 1px),
        rgba(174, 103, 61, 0.28) calc(var(--vk-line-h) - 1px),
        rgba(174, 103, 61, 0.28) var(--vk-line-h)
    );
    background-size: 100% var(--vk-line-h);
    background-position: 0 0;
    cursor: pointer;
}

.tp-vk-crm-card .vk-prayer-content li,
.entry-content .tp-vk-crm-card .vk-prayer-content li,
.content-inner .tp-vk-crm-card .vk-prayer-content li {
    margin: 0;
    padding: 0;
    font-size: inherit;
    color: inherit;
    line-height: var(--vk-line-h);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.tp-vk-crm-card .vk-prayer-content li::before {
    display: none;
}

.tp-vk-crm-card .vk-prayer-content h4,
.entry-content .tp-vk-crm-card .vk-prayer-content h4,
.content-inner .tp-vk-crm-card .vk-prayer-content h4 {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    color: #a24c29;
    text-transform: uppercase;
    margin: 16px 0 8px 0;
    border-bottom: 1px dashed rgba(183, 134, 84, 0.55);
    padding: 0 0 3px 0;
    line-height: 1.45;
}

.tp-vk-crm-card .vk-fill {
    font-weight: 700;
    color: #4b2b20;
}

.tp-vk-crm-card .vk-prayer-content[contenteditable="true"]:focus {
    outline: 1px dashed #b78654;
    background: rgba(255, 251, 242, 0.5);
    cursor: text;
}

/* Chân trang Tờ Văn Khấn: Đường chỉ đồng + Đài Sen & Hào Quang Trống Đồng */
.tp-vk-crm-card .vk-sheet-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 4px 32px 0 32px;
}

.tp-vk-crm-card .vk-footer-left {
    flex: 1;
    max-width: 68%;
}

.tp-vk-crm-card .vk-footer-rule {
    height: 1.2px;
    width: 100%;
    background: linear-gradient(90deg, #ae673d 0%, #c79967 90%, rgba(199, 153, 103, 0) 100%);
    margin-bottom: 10px;
}

.tp-vk-crm-card .vk-footer-slogan {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 14.5px;
    font-style: italic;
    font-weight: 600;
    color: #754d3a;
    letter-spacing: 0.2px;
}

.tp-vk-crm-card .vk-footer-bird {
    flex-shrink: 0;
    color: #a9633d;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 6px;
    margin-bottom: -4px;
}

/* ========================================================================
   KARAOKE QUÉT TỪNG CHỮ MƯỢT MÀ (.vk-karaoke-word + .vk-tts-reading)
   ======================================================================== */
.tp-vk-crm-card .vk-tts-reading {
    background-color: rgba(217, 119, 6, 0.08);
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.07);
    border-radius: 8px;
    transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.tp-vk-crm-card .vk-karaoke-word {
    display: inline-block;
    position: relative;
    font-weight: 700;
    color: #3d2217;
    border-radius: 4px;
    transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), color 0.08s linear, text-shadow 0.14s ease, filter 0.14s ease;
    will-change: transform, background-image;
}

.tp-vk-crm-card .vk-karaoke-word.is-passed {
    color: #b91c1c;
    -webkit-text-fill-color: #b91c1c;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(185, 28, 28, 0.25), 0 0 0.45px rgba(153, 27, 27, 0.6);
}

.tp-vk-crm-card .vk-karaoke-word.is-active {
    font-weight: 700;
    background-image: linear-gradient(
        90deg,
        #991b1b 0%,
        #dc2626 var(--vk-kw-pct, 0%),
        #3d2217 var(--vk-kw-pct, 0%),
        #3d2217 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-1.5px) scale(1.06);
    filter: drop-shadow(0 2px 6px rgba(185, 28, 28, 0.32));
}

.tp-vk-crm-card .vk-karaoke-word.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 2.5px;
    width: var(--vk-kw-pct, 100%);
    background: linear-gradient(90deg, #b91c1c 0%, #ea580c 65%, #f59e0b 100%);
    border-radius: 999px;
    box-shadow: 0 1px 6px rgba(220, 38, 38, 0.45);
    pointer-events: none;
}

.tp-vk-crm-card .vk-nam-mo .vk-karaoke-word {
    color: #a24c29;
}

.tp-vk-crm-card .vk-nam-mo .vk-karaoke-word.is-passed {
    color: #b91c1c;
    -webkit-text-fill-color: #b91c1c;
}

.tp-vk-crm-card .vk-nam-mo .vk-karaoke-word.is-active {
    background-image: linear-gradient(
        90deg,
        #991b1b 0%,
        #dc2626 var(--vk-kw-pct, 0%),
        #a24c29 var(--vk-kw-pct, 0%),
        #a24c29 100%
    );
}

/* ========================================================================
   THANH SPOTIFY DOCK NỔI DƯỚI ĐÁY MÀN HÌNH KHI CUỘN ĐỌC VĂN KHẤN
   ======================================================================== */
.vk-floating-sticker {
    position: fixed;
    bottom: var(--tp-vk-dock-bottom, 0px);
    left: 0;
    right: 0;
    transform: translateY(115%);
    z-index: 9995;
    background: linear-gradient(180deg, rgba(251, 242, 226, 0.98) 0%, rgba(246, 234, 215, 0.99) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1.5px solid #d4b28a;
    padding: 10px 24px;
    box-shadow: 0 -8px 28px rgba(75, 43, 32, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    box-sizing: border-box;
}

.vk-floating-sticker .vk-spotify-bar {
    max-width: 1180px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.vk-floating-sticker.is-visible,
.vk-floating-sticker.vk-sticker-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Toast thông báo tinh tế đồng bộ phong cách CRM */
.vk-crm-toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translate(-50%, 16px);
    z-index: 10050;
    background: #3d2217;
    color: #fffbf2;
    border: 1px solid #d4b28a;
    border-radius: 999px;
    padding: 9px 20px;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(38, 22, 16, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    white-space: nowrap;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vk-crm-toast.is-shown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ========================================================================
   RESPONSIVE CHO TABLET & ĐIỆN THOẠI (width=device-width, initial-scale=1)
   ======================================================================== */
@media (max-width: 960px) {
    .tp-vk-crm-card .vk-fill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vk-spotify-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }
    .vk-sp-right {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .tp-vk-crm-card .vk-fill-grid {
        grid-template-columns: 1fr;
    }
    .tp-vk-crm-card .vk-ornate-inner {
        padding: 34px 18px 30px 18px;
    }
    .tp-vk-crm-card .vk-brand-header {
        max-width: 78%;
        margin-bottom: 18px;
        padding-left: 8px;
    }
    .tp-vk-crm-card .vk-brand-lockup {
        gap: 11px;
        margin-bottom: 10px;
    }
    .tp-vk-crm-card .vk-brand-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        padding: 8px;
    }
    .tp-vk-crm-card .vk-brand-line1 {
        font-size: 20px;
    }
    .tp-vk-crm-card .vk-brand-line2 {
        font-size: 13.5px;
        letter-spacing: 1.6px;
    }
    .tp-vk-crm-card .vk-brand-slogan {
        font-size: 12px;
    }
    .tp-vk-crm-card .vk-header-main,
    .entry-content .tp-vk-crm-card .vk-header-main,
    .content-inner .tp-vk-crm-card .vk-header-main {
        font-size: 18px;
    }
    .tp-vk-crm-card .vk-prayer-content {
        --vk-line-h: 34px;
        font-size: 17.5px;
        text-align: left;
        padding: 0 6px;
    }
    .tp-vk-crm-card .vk-prayer-content p.vk-nam-mo,
    .entry-content .tp-vk-crm-card .vk-prayer-content p.vk-nam-mo,
    .content-inner .tp-vk-crm-card .vk-prayer-content p.vk-nam-mo {
        font-size: 19px;
    }
    .tp-vk-crm-card .vk-prayer-content h4,
    .entry-content .tp-vk-crm-card .vk-prayer-content h4,
    .content-inner .tp-vk-crm-card .vk-prayer-content h4 {
        font-size: 17px;
    }
    .tp-vk-crm-card .vk-sheet-footer {
        padding: 4px 8px 0 8px;
        margin-top: 16px;
    }
    .tp-vk-crm-card .vk-footer-slogan {
        font-size: 12.5px;
    }
    .tp-vk-crm-card .vk-footer-bird svg {
        width: 118px;
        height: 66px;
    }
    .vk-floating-sticker {
        padding: 8px 12px;
    }
    .vk-floating-sticker .vk-sp-right {
        display: none;
    }
}

@media print {
    .tp-vk-crm-card .hide-on-print,
    .vk-floating-sticker,
    .vk-spotify-bar,
    .vk-crm-toast {
        display: none;
    }
    .tp-vk-crm-card .vk-tts-reading {
        background-color: transparent;
        box-shadow: none;
    }
    .tp-vk-crm-card .vk-karaoke-word,
    .tp-vk-crm-card .vk-karaoke-word.is-passed,
    .tp-vk-crm-card .vk-karaoke-word.is-active {
        color: inherit;
        background-image: none;
        -webkit-text-fill-color: inherit;
        text-shadow: none;
        transform: none;
        filter: none;
    }
    .tp-vk-crm-card .vk-ornate-frame {
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
