@import url('fonts/fonts.css');

:root {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --primary-gold: #b45309;
    --primary-blue: #2563eb;
    --primary-blue-glow: rgba(37, 99, 235, 0.15);
    --gold-glow: rgba(180, 83, 9, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-red: #ef4444;
    --accent-green: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: #f8fafc;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #0f172a;
}
.spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid #e2e8f0;
    border-top: 3.5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* App Layout */
.app-container {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
}

/* Top App Header */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    width: 254px;
}
.church-header-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}
.brand-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}
.church-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.2px;
}
.church-sub-title {
    font-size: 10px;
    font-weight: 700;
    color: #b45309;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Nav Mode Switcher */
.nav-mode-switcher {
    display: flex;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px;
    gap: 3px;
    flex-shrink: 0;
}
.nav-mode-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}
.nav-mode-btn:hover {
    color: #0f172a;
}
.nav-mode-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Search Bar */
.search-wrapper {
    flex: 1;
    max-width: 340px;
    min-width: 180px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-input {
    width: 100%;
    height: 34px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 17px;
    padding: 0 32px 0 32px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}
.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}
.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
.search-hint {
    position: absolute;
    right: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    color: var(--text-muted);
}

/* Header Action Controls */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-pill-wrap {
    display: flex;
    align-items: center;
}
.header-clean-select {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}
.header-clean-select:focus {
    border-color: #2563eb;
}

/* Segmented Control in Header */
.segmented-control {
    display: flex;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}
.segmented-control.full-width {
    width: 100%;
}
.seg-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.15s ease;
}
.seg-btn:hover {
    color: #0f172a;
}
.seg-btn.active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
}

.btn-header-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    height: 32px;
}
.btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    background: #1d4ed8;
}
.btn-blank {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: #334155;
}
.btn-blank:hover {
    background: #e2e8f0;
}
.btn-blank.blank-active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}
.btn-default-screen {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    color: #be185d;
}
.btn-default-screen:hover {
    background: #fce7f3;
}
.btn-default-screen.active {
    background: #be185d;
    border-color: #be185d;
    color: #ffffff;
}
.btn-icon-only {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #64748b;
    width: 32px;
    padding: 0;
    justify-content: center;
    font-size: 14px;
}
.btn-icon-only:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Main Workbench Layout: Clean 2-column layout (Left Navigator + Main Canvas) */
.workbench-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    height: calc(100vh - 54px);
    overflow: hidden;
    background: var(--bg-dark);
    transition: grid-template-columns 0.2s ease;
}
.workbench-grid.sidebar-collapsed {
    grid-template-columns: 0px 1fr !important;
}
.workbench-grid.sidebar-collapsed .books-sidebar {
    display: none !important;
}
.btn-sidebar-toggle {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 0;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn-sidebar-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Left Sidebar - Books Navigator */
.books-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* Sidebar Top Bar & Header */
.sidebar-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    height: 48px;
}
.sidebar-heading {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.sidebar-count-badge {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}
.btn-mini-add-song {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-mini-add-song:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Sidebar Search Box & Filter Tabs */
.book-search-container, .song-search-container {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.mini-search-icon {
    position: absolute;
    left: 10px;
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
    line-height: 1;
}
.sidebar-search-input {
    width: 100%;
    height: 34px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 0 28px 0 32px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.sidebar-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.sidebar-search-input::placeholder {
    color: #94a3b8;
}
.sidebar-clear-btn {
    position: absolute;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    color: #64748b;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.15s ease;
}
.sidebar-clear-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Filter Pills Segmented Control */
.filter-pill-group {
    display: flex;
    background: #e2e8f0;
    padding: 2.5px;
    border-radius: 7px;
    gap: 2px;
}
.pill-filter-btn {
    flex: 1;
    height: 26px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.pill-filter-btn:hover {
    color: #0f172a;
}
.pill-filter-btn.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.song-search-container .pill-filter-btn.active {
    background: #ffffff;
    color: #b45309;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-search-msg {
    padding: 32px 16px;
    text-align: center;
    color: #64748b;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Scrollable Books List */
.books-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 20px 10px;
    background: #ffffff;
}
.testament-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 6px 4px 6px;
    margin: 0;
}

/* Book Item Button - Precision Aligned */
.book-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 8px;
    margin-bottom: 2px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    transition: all 0.12s ease;
    color: #334155;
}
.book-btn:hover {
    background: #f8fafc;
    border-color: #f1f5f9;
    color: #0f172a;
}
.book-btn.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}
.book-btn-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.book-order-pill {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    border: 1px solid var(--border-color);
}
.book-btn.active .book-order-pill {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.book-names-col {
    display: flex;
    flex-direction: column;
    gap: 0px;
    min-width: 0;
    text-align: left;
    flex: 1;
}
.book-name-ml {
    font-family: 'Gayathri', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-name-en {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-btn.active .book-name-ml {
    color: #1d4ed8;
}
.book-btn.active .book-name-en {
    color: #2563eb;
}
.book-ch-pill {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 5px;
    flex-shrink: 0;
    margin-left: 4px;
}
.book-btn.active .book-ch-pill {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Center Panel - Full Chapter Verse Navigator */
.center-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-dark);
}

.chapter-nav-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.chapter-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chapter-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.chapter-header-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
}
.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}
.live-status-pill.live-here {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.live-status-pill.live-other {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.3);
}
.chapter-dropdown-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.chapter-select-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}
.chapter-select-box:focus {
    border-color: #2563eb;
}
.keyboard-shortcuts-hint {
    font-size: 12px;
    color: var(--text-muted);
}
.keyboard-shortcuts-hint kbd {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
    color: #334155;
}

/* Chapter Pill Selector */
.chapter-pills-container {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.chapter-pills-container::-webkit-scrollbar {
    height: 4px;
}
.chapter-pills-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.chapter-pill {
    min-width: 34px;
    height: 30px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.chapter-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.chapter-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
}

/* Recent Verses History Bar */
.history-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    min-height: 36px;
}
.history-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    font-size: 10.5px;
    color: var(--primary-gold);
    letter-spacing: 0.8px;
    white-space: nowrap;
}
.history-chips-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: thin;
}
.history-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #334155;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.history-chip:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateY(-1px);
}
.history-chip.current {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
    font-weight: 700;
}
.history-empty-hint {
    color: #64748b;
    font-size: 11px;
    font-style: italic;
}
.btn-clear-history {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-clear-history:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Verse Cards Scroll Area (The Heart of ChurchView) */
.verses-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-dark);
}

.verse-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.verse-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.verse-card.selected-live {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1.5px #3b82f6, 0 4px 14px rgba(37, 99, 235, 0.12);
}
.verse-num-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    min-width: 26px;
    padding-top: 2px;
}
.v-num {
    font-size: 14px;
    font-weight: 800;
    color: #b45309;
    font-family: 'Outfit', sans-serif;
}
.selected-live .v-num {
    color: #2563eb;
}
.live-tag {
    display: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.selected-live .live-tag {
    display: block;
}

.verse-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.verse-ml {
    font-family: 'Gayathri', 'Manjari', 'Nirmala UI', 'Kartika', 'Arial Unicode MS', sans-serif;
    color: #0f172a;
    font-size: 17px !important;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.1px;
}
.verse-en {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #475569;
    font-size: 13.5px !important;
    font-weight: 400;
    line-height: 1.5;
}
.selected-live .verse-en {
    color: #1e293b;
    font-weight: 500;
}

/* Right Panel - Live Preview & Controls (Hidden on desktop in favor of floating dock) */
.preview-sidebar {
    display: none !important;
}
.preview-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.preview-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
}
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.preview-content-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

/* Mirror Display Screen */
.preview-screen {
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.preview-mode-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.preview-watermark-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}
.preview-watermark-bg img {
    height: 90%;
    width: auto;
    object-fit: contain;
    opacity: 0.12;
}

.preview-screen-ref {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 6px;
}
.preview-screen-ml {
    position: relative;
    z-index: 2;
    font-family: 'Gayathri', 'Manjari', 'Nirmala UI', 'Kartika', 'Arial Unicode MS', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 4px;
    max-height: 52px;
    overflow: hidden;
    white-space: pre-line;
}
.preview-screen-en {
    position: relative;
    z-index: 2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    color: #cbd5e1;
    line-height: 1.3;
    max-height: 40px;
    overflow: hidden;
    white-space: pre-line;
}
.preview-corner-tag {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 7.5px;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 0.8px;
    opacity: 0.8;
    z-index: 3;
}

/* Mini Default Screen Card inside Preview */
.preview-default-card {
    background: #ffffff;
    border: 1.5px solid #d4af37;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 6px;
}
.mini-accent-bar {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2.5px;
    background: linear-gradient(90deg, #9d174d, #e11d48, #9d174d);
    border-radius: 2px;
}
.mini-top { top: 4px; }
.mini-bottom { bottom: 4px; }
.mini-emblem-box {
    background: #ffffff;
    border-radius: 6px;
    padding: 2px 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 2px;
}
.mini-emblem-box img {
    height: 30px;
    width: auto;
    object-fit: contain;
}
.mini-title-cog {
    font-size: 7px;
    font-weight: 800;
    color: #4a0e1c;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
.mini-title-town {
    font-size: 12px;
    font-weight: 900;
    color: #be185d;
    letter-spacing: 0.8px;
    line-height: 1.2;
}
.mini-divider {
    width: 50px;
    height: 1.5px;
    background: #c59b27;
    margin: 2px auto;
}
.mini-motto {
    font-size: 6px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 1px;
}
.mini-verse-quote {
    font-size: 5.5px;
    font-style: italic;
    color: #64748b;
    margin-top: 1px;
}

.preview-blank-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 10;
}

/* Quick Navigation Arrows */
.quick-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.btn-nav {
    background: #23293c;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-nav:hover {
    background: #2d354d;
}

/* Sidebar Quick Action Card */
.sidebar-action-card {
    background: #121624;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

/* Sidebar Screen Holding & Blackout Toggles */
.sidebar-screen-toggles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.btn-side-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: #141826;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-side-toggle:hover {
    background: #1e2438;
    color: #ffffff;
}
.btn-side-toggle.active {
    background: #be185d;
    border-color: #f472b6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(190, 24, 93, 0.4);
}
.btn-side-toggle.blank-active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Sidebar Bottom Modal Links */
.sidebar-bottom-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}
.btn-side-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-side-link:hover {
    background: #161b2b;
    border-color: #475569;
    color: #ffffff;
}

/* Modal Helpers: Clean Sliders & Keyboard Shortcuts Grid */
.clean-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    accent-color: #2563eb;
    cursor: pointer;
    margin-top: 6px;
}
.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.shortcut-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #1e293b;
}
.shortcut-item kbd {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ========================================================= */
/* AUDIENCE / PROJECTOR SCREEN STYLES (projector.html)       */
/* ========================================================= */
.projector-body {
    background: #000000;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: none; /* Hide mouse cursor on projector */
}

/* Projector Themes */
body.theme-dark-midnight {
    background: radial-gradient(circle at center, #0a1128 0%, #000000 100%);
}
body.theme-pure-black {
    background: #000000;
}
body.theme-church-blue {
    background: radial-gradient(circle at center, #172554 0%, #020617 100%);
}
body.theme-royal-maroon {
    background: radial-gradient(circle at center, #450a0a 0%, #000000 100%);
}

.projector-viewport {
    width: 90vw;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
    transition: opacity 0.15s ease-out;
}
.projector-viewport.verse-fade {
    opacity: 0.05;
}

.projector-ref-badge {
    display: inline-block;
    background: rgba(245, 176, 65, 0.15);
    border: 1.5px solid var(--primary-gold);
    color: var(--primary-gold);
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 30px;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 20px rgba(245, 176, 65, 0.2);
}

.projector-text-ml {
    font-family: 'Gayathri', 'Manjari', 'Nirmala UI', 'Kartika', 'Arial Unicode MS', sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.45;
    color: #ffffff;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.9);
    white-space: pre-line;
}

.projector-text-en {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.4;
    color: #cbd5e1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
    white-space: pre-line;
}

/* ========================================================= */
/* SCRIPTURE LAYOUT MODES (DUAL vs MALAYALAM vs ENGLISH)    */
/* ========================================================= */
body.layout-malayalam .projector-text-en {
    display: none !important;
}
body.layout-malayalam .projector-text-ml {
    font-size: 60px;
    line-height: 1.55;
    max-width: 1450px;
}

body.layout-english .projector-text-ml {
    display: none !important;
}
body.layout-english .projector-text-en {
    font-size: 50px;
    line-height: 1.45;
    color: #ffffff;
    max-width: 1450px;
}

/* Preview Screen Mirror Layout Modes */
.preview-screen.layout-malayalam .preview-screen-en {
    display: none !important;
}
.preview-screen.layout-malayalam .preview-screen-ml {
    font-size: 15px;
    line-height: 1.45;
    max-height: 80px;
}

.preview-screen.layout-english .preview-screen-ml {
    display: none !important;
}
.preview-screen.layout-english .preview-screen-en {
    font-size: 13.5px;
    line-height: 1.4;
    color: #ffffff;
    max-height: 80px;
}

/* ========================================================= */
/* SCRIPTURE WATERMARK STYLES                                */
/* ========================================================= */

/* Subtle Center Watermark behind Scripture text */
.projector-watermark-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}
.projector-watermark-bg img {
    height: 480px;
    width: auto;
    object-fit: contain;
    opacity: 0.08; /* Very subtle and non-intrusive */
    filter: drop-shadow(0 0 40px rgba(245, 176, 65, 0.2));
}

/* Corner Watermark (Bottom-Right) */
.projector-corner-watermark {
    position: absolute;
    bottom: 24px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}
.projector-corner-watermark img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}
.corner-watermark-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: 'Outfit', sans-serif;
}
.church-line {
    font-size: 11px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 1.2px;
}
.state-line {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 2px;
}

/* Hide watermarks if disabled */
.projector-watermark-bg.hidden,
.projector-corner-watermark.hidden {
    display: none !important;
}

/* ========================================================= */
/* AUTHENTIC ALAPPUZHA TOWN DEFAULT / HOLDING SCREEN         */
/* ========================================================= */
.default-holding-screen {
    position: fixed;
    inset: 0;
    background: #090b10;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.default-holding-screen.active {
    opacity: 1;
    pointer-events: auto;
}

.holding-card {
    width: 92vw;
    max-width: 1320px;
    height: 88vh;
    background: #ffffff;
    border: 2.5px solid #d4af37; /* Thin Golden Outer Border */
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-accent-bar {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 6px;
    background: linear-gradient(90deg, #9d174d, #e11d48, #9d174d);
    border-radius: 4px;
}
.top-bar { top: 16px; }
.bottom-bar { bottom: 16px; }

.holding-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 40px;
}

.logo-card-frame {
    background: #ffffff;
    border-radius: 24px;
    padding: 10px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
}
.holding-emblem-img {
    height: 190px;
    width: auto;
    object-fit: contain;
}

.holding-title-main {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #4a0e1c;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.holding-church-town {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: #be185d; /* Vibrant Magenta */
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.holding-gold-divider {
    width: 180px;
    height: 3.5px;
    background: linear-gradient(90deg, transparent, #d97706, #f59e0b, #d97706, transparent);
    margin: 14px auto 18px auto;
    border-radius: 2px;
}

.holding-motto {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.holding-verse-quote {
    font-family: 'Inter', serif;
    font-size: 15px;
    font-style: italic;
    color: #64748b;
    font-weight: 500;
}

/* ========================================================= */
/* BLACKOUT OVERLAY                                          */
/* ========================================================= */
#black-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
}
#black-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================================= */
/* DEFAULT SCREEN MODAL EDITOR STYLES                        */
/* ========================================================= */
.btn-edit-screen {
    background: #1e2437;
    border: 1px solid #3b82f6;
    color: #60a5fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-edit-screen:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.2s ease;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}
.modal-close-btn:hover {
    color: #0f172a;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.3px;
}
.form-control {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 9px 12px;
    color: #0f172a;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}
.form-control:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-row {
    display: flex;
    gap: 12px;
}
.file-input {
    font-size: 12px;
    padding: 6px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Live status pill indicators for workbench chapter header */
.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.live-status-pill.live-here {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.15);
}
.live-status-pill.live-other {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* ========================================================= */
/* FLOATING LIVE DOCK & FLOATING AUDIENCE PREVIEW            */
/* ========================================================= */
.floating-live-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 900;
    transition: all 0.2s ease;
}
.floating-live-dock:hover {
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16), 0 3px 10px rgba(0, 0, 0, 0.06);
}
.dock-live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dock-live-status:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
.dock-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
    animation: pulseDock 2s infinite;
}
@keyframes pulseDock {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.dock-status-tag {
    font-size: 10px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.dock-live-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dock-divider {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
}
.dock-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dock-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dock-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}
.dock-btn:active {
    transform: translateY(0);
}
.dock-btn-proj {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    font-weight: 700;
}
.dock-btn-proj:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
.dock-btn.active,
.dock-btn-holding.active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
}
.dock-btn-blackout.blank-active {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

/* Floating Mini Screen Preview Popover */
.floating-preview-card {
    position: fixed;
    bottom: 74px;
    right: 24px;
    width: 320px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
    z-index: 850;
    overflow: hidden;
    animation: fadeInModal 0.2s ease;
}
.floating-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.floating-preview-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.floating-preview-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}
.floating-preview-close:hover {
    color: #0f172a;
}
.floating-preview-card .preview-screen {
    border: none;
    border-radius: 0;
    aspect-ratio: 16 / 9;
    box-shadow: none;
}

/* ========================================================= */
/* VERSEVIEW SONGS SIDEBAR ITEMS                             */
/* ========================================================= */
.songs-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    background: #ffffff;
}
.song-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 8px;
    margin-bottom: 2px;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    transition: all 0.12s ease;
    color: #334155;
}
.song-item-btn:hover {
    background: #f8fafc;
    border-color: #f1f5f9;
    color: #0f172a;
}
.song-item-btn.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}
.song-item-btn.live-projecting {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}
.song-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.btn-song-star {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}
.btn-song-star:hover {
    color: #f59e0b;
    transform: scale(1.2);
}
.btn-song-star.starred {
    color: #f59e0b;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.35);
}
.song-num-badge {
    font-size: 10.5px;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 5px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-family: 'Outfit', sans-serif;
    min-width: 34px;
    text-align: center;
    flex-shrink: 0;
}
.song-item-btn.active .song-num-badge {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.song-titles-col {
    display: flex;
    flex-direction: column;
    gap: 0px;
    min-width: 0;
    text-align: left;
    flex: 1;
}
.song-item-title-ml {
    font-family: 'Gayathri', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.song-item-title-en {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.song-item-btn.active .song-item-title-ml {
    color: #1d4ed8;
}
.song-item-btn.active .song-item-title-en {
    color: #2563eb;
}
.song-meta-pill {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 5px;
    flex-shrink: 0;
    margin-left: 4px;
}

/* ========================================================= */
/* WORSHIP SERVICE SETLIST / PREPLANNED EVENT SCHEDULE       */
/* ========================================================= */
/* Sidebar Mode Switcher: All Songs vs Service Setlist */
.sidebar-mode-toggle-bar {
    display: flex;
    background: #f8fafc;
    padding: 6px 8px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-mode-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.sidebar-mode-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.sidebar-mode-btn.active {
    background: #ffffff;
    color: #2563eb;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.setlist-badge {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 800;
}

/* Service Setlist Event Bar */
.setlist-event-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}
.setlist-event-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.setlist-event-label {
    font-size: 9.5px;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.setlist-event-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 5px;
    padding: 4px 6px;
    outline: none;
    cursor: pointer;
    width: 100%;
}
.setlist-bar-actions {
    display: flex;
    align-items: center;
}
.btn-clear-setlist {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    border-radius: 4px;
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-clear-setlist:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Setlist Items Scroll Area */
.setlist-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
}
.setlist-item-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 8px 10px;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.setlist-item-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(2px);
}
.setlist-item-card.active {
    background: #eff6ff;
    border-color: #3b82f6;
}
.setlist-item-card.live-projecting {
    border-color: #2563eb;
    box-shadow: 0 0 0 1.5px #2563eb, 0 2px 8px rgba(37, 99, 235, 0.15);
}
.setlist-step-num {
    font-size: 11px;
    font-weight: 800;
    background: #eff6ff;
    color: #2563eb;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #bfdbfe;
}
.setlist-item-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.setlist-item-ml {
    font-family: 'Gayathri', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.setlist-item-en {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.setlist-item-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.btn-setlist-arrow, .btn-setlist-remove {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.1s ease;
}
.btn-setlist-arrow:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.btn-setlist-remove:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Star Bookmark Button inside Song List */
.btn-song-star {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
    margin-right: 4px;
    flex-shrink: 0;
}
.btn-song-star:hover {
    color: #b45309;
    transform: scale(1.2);
}
.btn-song-star.starred {
    color: #b45309;
}

/* Center Panel Preplanned Setlist Sequence Bar */
.setlist-sequence-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #eff6ff, #f8fafc);
    border-bottom: 1px solid #bfdbfe;
    padding: 6px 14px;
    gap: 10px;
}
.setlist-seq-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.setlist-seq-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-seq-nav {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-seq-nav:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.btn-seq-next-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
}
.btn-seq-next-primary:hover {
    background: #1d4ed8;
}

.btn-setlist-star {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.btn-setlist-star:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.btn-setlist-star.starred {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* ========================================================= */
/* SONGS CENTER PRESENTATION PANEL (VerseView style)         */
/* ========================================================= */
.song-nav-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.song-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.song-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.song-number-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.song-titles-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.song-active-title-ml {
    font-family: 'Gayathri', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.song-active-title-en {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.song-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.song-category-tag {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: #2563eb;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stanzas Navigation Pills */
.stanzas-pills-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.stanzas-pills-bar::-webkit-scrollbar {
    height: 4px;
}
.stanzas-pills-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.stanza-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.stanza-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}
.stanza-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}
.stanza-pill.live-projecting {
    border-color: #ef4444;
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* Stanzas Scroll Container & Cards */
.stanzas-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-dark);
}
.stanza-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.stanza-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.stanza-card.active {
    background: #f8fafc;
    border-color: #93c5fd;
}
.stanza-card.live-projecting {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1.5px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.12);
}
.stanza-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stanza-label-badge {
    font-size: 11px;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.stanza-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2563eb;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.stanza-text-ml {
    font-family: 'Gayathri', sans-serif;
    font-size: 17px !important;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
    white-space: pre-line;
}
.stanza-text-en {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px !important;
    color: #475569;
    line-height: 1.5;
    white-space: pre-line;
    border-top: 1px dashed var(--border-color);
    padding-top: 6px;
}
.stanza-card.live-projecting .stanza-text-en {
    color: #1e293b;
    font-weight: 500;
}

/* ========================================================= */
/* RESPONSIVE DESIGN FOR MOBILE & TABLETS                    */
/* ========================================================= */

/* Desktop defaults (hidden above 1024px) */
.mobile-nav-bar,
.mobile-bottom-bar,
.mob-back-btn {
    display: none;
}

/* Tablets & Mobile Devices (<= 1024px) */
@media (max-width: 1024px) {
    /* Enable mobile tab navigation bar */
    .mobile-nav-bar {
        display: flex;
        background: #141824;
        border-bottom: 1px solid var(--border-color);
        padding: 6px 10px;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    .mobile-nav-tab {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 8px;
        background: #0f121d;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: #94a3b8;
        font-size: 13.5px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 44px;
    }
    .mobile-nav-tab.active {
        background: linear-gradient(135deg, #1e293b, #1e3a8a);
        border-color: #3b82f6;
        color: #ffffff;
        box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    }
    .mob-live-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ef4444;
        box-shadow: 0 0 6px #ef4444;
        display: inline-block;
    }

    /* Back Button in Content Headers */
    .mob-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 7px 14px;
        border-radius: 7px;
        background: #1e2437;
        border: 1px solid var(--border-color);
        color: var(--primary-gold);
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        min-height: 38px;
        transition: all 0.15s ease;
    }
    .mob-back-btn:active {
        background: var(--primary-gold);
        color: #0b0f19;
    }

    /* Mobile Bottom Sticky Bar */
    .mobile-bottom-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(15, 17, 23, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-color);
        padding: 8px 14px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        height: 60px;
        gap: 10px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    }
    .mob-live-info {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        flex: 1;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.04);
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
    .mob-live-badge-text {
        font-size: 13.5px;
        font-weight: 700;
        color: #f1f5f9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-quick-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mob-btn-action {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #1e2437;
        border: 1px solid var(--border-color);
        color: #f1f5f9;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .mob-btn-action:active {
        transform: scale(0.95);
    }
    .mob-btn-action.mob-btn-blank.active {
        background: var(--accent-red);
        border-color: var(--accent-red);
        color: #fff;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }
    .mob-btn-proj {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        border-color: #3b82f6;
    }

    /* Outer Container & Body on Mobile */
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    .app-container {
        height: auto;
        min-height: 100vh;
        padding-bottom: 74px; /* Clearance for sticky bottom bar */
        display: block;
    }

    /* App Header Responsive Layout */
    .app-header {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 10px;
    }
    .brand-section {
        flex: 1 1 200px;
    }
    .church-header-logo {
        height: 38px;
    }
    .church-main-title {
        font-size: 13.5px;
    }
    .church-sub-title {
        font-size: 10.5px;
    }

    /* Mode Switcher full width */
    .nav-mode-switcher {
        width: 100%;
        order: 2;
        display: flex;
        gap: 6px;
    }
    .nav-mode-btn {
        flex: 1;
        justify-content: center;
        padding: 9px;
        font-size: 13px;
        min-height: 42px;
    }

    /* Search bar full width */
    .search-wrapper {
        width: 100%;
        max-width: 100%;
        order: 3;
    }
    .search-hint {
        display: none;
    }

    /* Selector Controls row */
    .version-selector-container,
    .display-mode-container {
        order: 4;
        flex: 1 1 150px;
    }
    .version-dropdown {
        width: 100%;
    }

    .header-actions {
        order: 5;
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
    .header-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
        min-height: 42px;
    }

    /* Workbench Grid on Mobile: switch between tabs */
    .workbench-grid {
        display: block;
        height: auto;
        overflow: visible;
    }

    /* Tab 1: Library (Books or Songs) */
    .workbench-grid[data-mob-tab="library"] .books-sidebar {
        display: flex !important;
        width: 100%;
        height: calc(100vh - 210px);
        min-height: 480px;
        border-right: none;
    }
    .workbench-grid[data-mob-tab="content"] .books-sidebar,
    .workbench-grid[data-mob-tab="live"] .books-sidebar {
        display: none !important;
    }

    /* Tab 2: Content (Verses or Stanzas) */
    .workbench-grid[data-mob-tab="content"] .center-panel {
        display: flex !important;
        width: 100%;
        height: calc(100vh - 210px);
        min-height: 480px;
    }
    .workbench-grid:not([data-mob-tab="content"]) .center-panel {
        display: none !important;
    }

    /* Mobile Floating Dock and Tab 3 Live Mirror */
    .floating-live-dock {
        display: none !important;
    }
    .workbench-grid[data-mob-tab="live"] ~ #floating-preview-card {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 600px;
        margin: 20px auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    /* Center Panel Header for Mobile */
    .chapter-header-row,
    .song-header-row {
        flex-wrap: wrap;
        gap: 10px;
        padding-bottom: 8px;
    }
    .chapter-title-group,
    .song-header-main {
        width: 100%;
    }
    .keyboard-shortcuts-hint {
        display: none;
    }

    /* Touch-friendly verse scroll */
    .verses-scroll-area,
    .stanzas-scroll-area {
        padding: 12px 14px;
        -webkit-overflow-scrolling: touch;
    }

    /* Responsive verse cards */
    .verse-card {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 10px;
    }
    .verse-ml {
        font-size: 21px !important;
        line-height: 1.55;
    }
    .verse-en {
        font-size: 15.5px !important;
        line-height: 1.45;
    }

    /* Responsive stanza cards */
    .stanza-card {
        padding: 14px 16px;
        border-radius: 10px;
    }
    .stanza-text-ml {
        font-size: 20px !important;
        line-height: 1.5;
    }
    .stanza-text-en {
        font-size: 14.5px !important;
        line-height: 1.45;
    }

    /* Audience Screen Mirror in Tab 3 */
    .preview-sidebar {
        padding: 16px 14px;
    }
    .preview-screen {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Quick navigation in Tab 3 */
    .quick-nav-row {
        margin: 14px 0;
    }
    .btn-nav {
        padding: 12px;
        font-size: 14px;
        min-height: 46px;
    }
}

/* Small Smartphone Screens (<= 640px) */
@media (max-width: 640px) {
    .brand-section {
        gap: 8px;
    }
    .church-main-title {
        font-size: 12.5px;
    }
    .church-sub-title {
        font-size: 9.5px;
    }
    .book-btn,
    .song-item-btn {
        padding: 10px 12px;
        min-height: 48px;
    }
    .filter-pill-group {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .pill-filter-btn {
        flex: 1 0 auto;
        min-width: 72px;
        text-align: center;
        padding: 7px 10px;
        font-size: 11.5px;
    }
    .chapter-pills-bar,
    .stanzas-pills-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px 2px;
    }
    .chapter-pill,
    .stanza-pill {
        min-width: 40px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
    }
    .modal-dialog {
        max-width: 95vw;
        border-radius: 12px;
    }
}

/* Projector Screen Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    .projector-viewport {
        padding: 16px;
    }
    .projector-ref-badge {
        font-size: 15px;
        padding: 6px 14px;
    }
    .projector-text-ml {
        font-size: clamp(22px, 5.8vw, 42px) !important;
        line-height: 1.45;
    }
    .projector-text-en {
        font-size: clamp(14px, 4vw, 24px) !important;
        line-height: 1.4;
    }
    .holding-card {
        width: 95vw;
        height: auto;
        min-height: 84vh;
        padding: 24px 14px;
        border-radius: 18px;
    }
    .holding-emblem-img {
        height: 110px;
    }
    .holding-title-main {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .holding-church-town {
        font-size: 28px;
        letter-spacing: 1.5px;
    }
    .holding-motto {
        font-size: 13px;
        letter-spacing: 2px;
    }
    .holding-verse-quote {
        font-size: 12px;
    }
}


