/**
 * Bible Presentation Skin - view.css
 * Version: 2.6.0
 * Updated: 2026-11-09
 */
/* =========================================================
   Bible4 Modern Theme & Responsive Presentation Stylesheet
/* ========================================================= */

/* FontAwesome 아이콘 서체 강제 보존 (서체 변경 및 * 셀렉터 덮어쓰기 방지) */
.fa,
i.fa,
[class^="fa-"],
[class*=" fa-"] {
    font-family: 'FontAwesome' !important;
}

/* =========================================================
   [싱글모드 & 전체 화면] 소프트 라이트그레이(#f1f5f9) 캔버스 및 스크롤바 디자인 (v2.5.25)
   양옆 흰색 여백 없이 body 전체를 일관된 흐린 회색으로 채우고 스크롤바 트랙도 동일 색상 연동
   (자막 모드 크로마키 녹색 및 블랙아웃/로고 화면에는 영향 없음)
/* ========================================================= */
html:not(.subtitle-mode),
body:not(.subtitle-mode) {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #1e293b;
}

body:not(.subtitle-mode) #wrapper,
body:not(.subtitle-mode) #container,
body:not(.subtitle-mode) #bo_v,
body:not(.subtitle-mode) #bo_v_atc,
body:not(.subtitle-mode) #bibleDiv,
body:not(.subtitle-mode) #bible_content_table {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
}

/* 전체(싱글모드 & 송출모드) 모던 슬림 스크롤바 디자인 - 배경(#f1f5f9)과 완벽 일체화 */
html:not(.subtitle-mode)::-webkit-scrollbar,
body:not(.subtitle-mode)::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
html:not(.subtitle-mode)::-webkit-scrollbar-track,
body:not(.subtitle-mode)::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}
html:not(.subtitle-mode)::-webkit-scrollbar-thumb,
body:not(.subtitle-mode)::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px;
    border: 2px solid #f1f5f9 !important;
}
html:not(.subtitle-mode)::-webkit-scrollbar-thumb:hover,
body:not(.subtitle-mode)::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}
html:not(.subtitle-mode),
body:not(.subtitle-mode) {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* 모달 기본 스타일 */
.modal {
    max-width: 600px;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
    padding: 24px 28px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.modal ul {
    list-style: disc;
    padding-left: 24px;
}

.modal ol {
    padding-left: 24px;
}

/* =========================================================
      [세련된 모던 환경설정 모달 디자인] (v2.4.8)
/* ========================================================= */
.modal.setting-modal-custom {
    max-width: 520px !important;
    width: 92% !important;
    padding: 24px 28px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25) !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.setting-modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.setting-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.setting-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.setting-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.setting-desc {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

.setting-group-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.setting-group-label i {
    color: #2563eb;
    margin-right: 4px;
}

/* 폰트 선택 카드 */
.setting-font-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.font-card-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.font-card-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.font-card-item.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.font-card-preview {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.font-card-desc {
    font-size: 12px;
    color: #64748b;
}

/* 폰트 크기 프리셋 */
.setting-size-select-wrap {
    width: 100%;
}

.setting-size-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.setting-size-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 라이브 미리보기 카드 */
.setting-preview-card {
    margin-top: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 16px 20px;
    box-sizing: border-box;
}

.setting-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.preview-tag {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    background: #dbeafe;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: -0.01em;
}

.preview-ref {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.setting-preview-content {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    word-break: keep-all;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: font-size 0.2s ease, font-family 0.2s ease;
}

/* 모달 푸터 버튼 */
.setting-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

.btn-setting-close {
    padding: 10px 18px !important;
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-setting-close:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.btn-setting-submit {
    padding: 10px 22px !important;
    border-radius: 10px !important;
    border: none !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease;
}

.btn-setting-submit:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

/* =========================================================
      상단 대형 라이브 버튼 및 반응형 컨트롤 드로어 (방안 A)
/* ========================================================= */
.btn-circle {
    width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
    border-radius: 50% !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 13px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-left: 3px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-circle:hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.btn-circle:active {
    transform: translateY(0);
}

.btn-circle.active {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

.controls-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.controls-drawer {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.btn-menu-toggle {
    display: none !important;
}

/* 854px 이하 반응형: 메뉴 패널 1개로 닫히고 호버/클릭 시 세로형 드로어로 펼쳐짐 */
@media (max-width: 854px) {
    .btn-menu-toggle {
        display: inline-flex !important;
        background-color: #ffffff !important;
        color: #1e293b !important;
    }

    .btn-menu-toggle:hover {
        background-color: #3b82f6 !important;
        color: #ffffff !important;
    }

    .controls-drawer {
        display: none !important;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 8px 10px;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.05);
        z-index: 9999;
        white-space: nowrap;
        gap: 6px;
    }

    /* 마우스 이동 시 틈새(gap)로 빠져나가지 않도록 투명 브릿지 영역 추가 */
    .controls-drawer::before {
        content: '';
        position: absolute;
        top: -14px;
        left: -10px;
        right: -10px;
        height: 14px;
        background: transparent;
    }

    .controls-wrapper:hover .controls-drawer,
    .controls-wrapper.open .controls-drawer {
        display: flex !important;
        animation: drawerSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .controls-drawer .btn-circle {
        margin-left: 0 !important;
    }
}

@keyframes drawerSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
      히스토리 슬라이더 (Sly) 알약형(Pill) 뱃지 디자인
/* ========================================================= */
#history_wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    height: 34px;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    padding: 3px 0 !important;
}

#history2 {
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: inline-block;
}

.history_item {
    height: 28px;
    line-height: 26px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 0 10px 0 4px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.history_item:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.history_item_text {
    cursor: pointer;
    padding-left: 2px;
    padding-right: 2px;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* 히스토리 번호 뱃지 스타일 */
.history_index {
    display: inline-block;
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    border: none;
    margin-right: 5px;
    vertical-align: middle;
    text-align: center;
    padding: 0;
}

.clearfix:before, .clearfix:after {
    display: table;
    content: " ";
}

.clearfix:after {
    clear: both;
}

.no-drag {
    -ms-user-select: none;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

/* =========================================================
   성경 선택 모던 드롭다운 패널 디자인 (tooltipster 완전 대체)
/* ========================================================= */
.bible-select-wrap {
    position: relative !important;
    padding: 0;
    background: transparent;
}

.bible-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    padding: 12px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 6px;
    min-width: 320px;
    max-width: 650px;
    width: max-content;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#newSelectWrap .bible-dropdown-panel {
    left: auto;
    right: 0;
}

.bible_list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    user-select: none;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.bible_list:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.bible_list:active {
    transform: translateY(0);
}

/* 현재 선택된 책 하이라이트 */
.bible_list.active-bible-item {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
    font-weight: 700;
}

/* =========================================================
      전체 타이포그래피 & 상단 텍스트바 모던 카드 디자인
/* ========================================================= */
#textBible, .bible-select, .title-td, .text-div, .list-table, .list-td {
    font-size: 16px;
    color: #1e293b;
    font-family: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#bible_content_table {
    width: 100%;
    table-layout: fixed;
}

/* 상단 성경선택 드롭다운 */
#selectTable {
    width: 100%;
    table-layout: fixed;
    background-color: transparent !important;
    border-collapse: separate;
    border-spacing: 8px 0;
    margin-bottom: 10px;
}

#oldSelectWrap, #newSelectWrap {
    padding: 0;
    background: transparent;
}

.bible-select {
    width: 100%;
    cursor: pointer;
    text-align: center;
    text-align-last: center;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 14px;
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    box-sizing: border-box;
}

.bible-select:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.bible-select:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.bible-option {
    background-color: #ffffff;
    color: #1e293b;
    font-weight: normal;
}

/* =========================================================
      상단 컨트롤 바 (#top_list_table)
/* ========================================================= */
.list-table {
    width: 100%;
    font-weight: bold;
    background-color: #ffffff;
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

#top_list_table {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s;
    padding: 6px 14px;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

#top_list_table > tbody,
#top_list_table > tbody > tr,
#top_list_table > tr {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#titleBible {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    padding-right: 12px;
    vertical-align: middle;
}

#history_td,
#top_list_table td:nth-child(2) {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 4px !important;
}

.top_list_controls {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
    padding-left: 10px;
    margin-left: auto;
}

/* 사이드바 성경 리스트 테이블 */
.title-td {
    text-align: center;
    font-weight: 800;
    background-color: #f8fafc;
    color: #1e293b;
    padding: 12px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 15px;
}

.list-td {
    text-align: center;
    background-color: #ffffff;
    color: #334155;
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s;
    font-size: 14px;
}

.list-td:hover {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

/* =========================================================
      성경 본문 컨테이너 (#textBible)
/* ========================================================= */
#textBible {
    padding: 16px 8px;
    background-color: transparent !important;
    margin-top: 10px;
    max-width: 100%;
    box-sizing: border-box;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#textBible img {
    max-width: 100% !important;
    width: auto !important;
    height: 100% !important;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.text-div {
    position: relative;
    margin-top: 12px;
    margin-left: 20px;
    margin-right: 20px;
    box-sizing: border-box;
}

.text-div ol > li > span,
.text-div:not(.verse-subject-wrap) > span {
    font-size: 2em;
    font-weight: 900;
    line-height: 160%;
    text-align: left;
    vertical-align: middle;
    color: #0f172a;
}

.text-div ol > li {
    list-style: none !important;
    position: relative;
}

.text-div ol > li::before {
    content: counter(list-item);
    position: absolute;
    right: 100%;
    margin-right: 8px;
    top: 0.35em;
    font-size: 0.6em !important;
    font-family: 'tahoma', sans-serif;
    font-weight: 900;
    color: #64748b;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

/* 폰트 및 크기 스타일 */
#textBible.ff1 .text-div span {
    font-family: 'Nanum Gothic', sans-serif !important;
}

#textBible.ff2 .text-div span {
    font-family: 'Nanum Myeongjo', serif !important;
}

/* =========================================================
      [bible3 비율 완벽 최적화] 폰트 크기 1~8단계 (v2.5.0)
      송출창(#projector_screen_root)과 일반창 모두에 고유 명시도 부여
      본문 li > span에만 적용하여 자막 뱃지(subtitle-badge) span 영향 차단
   절 숫자(마커)는 본문 50% 크기로 다음 줄 이동 시에도 완벽 유지!
/* ========================================================= */
#textBible.fs1 .text-div ol > li, #projector_screen_root #textBible.fs1 .text-div ol > li,
#textBible.fs1 .text-div ol > li > span, #projector_screen_root #textBible.fs1 .text-div ol > li > span { font-size: 26px !important; }
#textBible.fs1 .text-div ol, #projector_screen_root #textBible.fs1 .text-div ol { padding-left: 40px; margin-bottom: 20px; }
#textBible.fs1 .text-div ol > li::marker, #projector_screen_root #textBible.fs1 .text-div ol > li::marker { font-size: 14px !important; }

#textBible.fs2 .text-div ol > li, #projector_screen_root #textBible.fs2 .text-div ol > li,
#textBible.fs2 .text-div ol > li > span, #projector_screen_root #textBible.fs2 .text-div ol > li > span { font-size: 32px !important; }
#textBible.fs2 .text-div ol, #projector_screen_root #textBible.fs2 .text-div ol { padding-left: 40px; margin-bottom: 20px; }
#textBible.fs2 .text-div ol > li::marker, #projector_screen_root #textBible.fs2 .text-div ol > li::marker { font-size: 16px !important; }

#textBible.fs3 .text-div ol > li, #projector_screen_root #textBible.fs3 .text-div ol > li,
#textBible.fs3 .text-div ol > li > span, #projector_screen_root #textBible.fs3 .text-div ol > li > span { font-size: 38px !important; }
#textBible.fs3 .text-div ol, #projector_screen_root #textBible.fs3 .text-div ol { padding-left: 50px; margin-bottom: 25px; }
#textBible.fs3 .text-div ol > li::marker, #projector_screen_root #textBible.fs3 .text-div ol > li::marker { font-size: 19px !important; }

#textBible.fs4 .text-div ol > li, #projector_screen_root #textBible.fs4 .text-div ol > li,
#textBible.fs4 .text-div ol > li > span, #projector_screen_root #textBible.fs4 .text-div ol > li > span { font-size: 44px !important; }
#textBible.fs4 .text-div ol, #projector_screen_root #textBible.fs4 .text-div ol { padding-left: 55px; margin-bottom: 30px; }
#textBible.fs4 .text-div ol > li::marker, #projector_screen_root #textBible.fs4 .text-div ol > li::marker { font-size: 22px !important; }

#textBible.fs5 .text-div ol > li, #projector_screen_root #textBible.fs5 .text-div ol > li,
#textBible.fs5 .text-div ol > li > span, #projector_screen_root #textBible.fs5 .text-div ol > li > span { font-size: 50px !important; }
#textBible.fs5 .text-div ol, #projector_screen_root #textBible.fs5 .text-div ol { padding-left: 60px; margin-bottom: 35px; }
#textBible.fs5 .text-div ol > li::marker, #projector_screen_root #textBible.fs5 .text-div ol > li::marker { font-size: 25px !important; }

#textBible.fs6 .text-div ol > li, #projector_screen_root #textBible.fs6 .text-div ol > li,
#textBible.fs6 .text-div ol > li > span, #projector_screen_root #textBible.fs6 .text-div ol > li > span { font-size: 56px !important; }
#textBible.fs6 .text-div ol, #projector_screen_root #textBible.fs6 .text-div ol { padding-left: 70px; margin-bottom: 40px; }
#textBible.fs6 .text-div ol > li::marker, #projector_screen_root #textBible.fs6 .text-div ol > li::marker { font-size: 28px !important; }

#textBible.fs7 .text-div ol > li, #projector_screen_root #textBible.fs7 .text-div ol > li,
#textBible.fs7 .text-div ol > li > span, #projector_screen_root #textBible.fs7 .text-div ol > li > span { font-size: 62px !important; }
#textBible.fs7 .text-div ol, #projector_screen_root #textBible.fs7 .text-div ol { padding-left: 80px; margin-bottom: 45px; }
#textBible.fs7 .text-div ol > li::marker, #projector_screen_root #textBible.fs7 .text-div ol > li::marker { font-size: 31px !important; }

#textBible.fs8 .text-div ol > li, #projector_screen_root #textBible.fs8 .text-div ol > li,
#textBible.fs8 .text-div ol > li > span, #projector_screen_root #textBible.fs8 .text-div ol > li > span { font-size: 70px !important; }
#textBible.fs8 .text-div ol, #projector_screen_root #textBible.fs8 .text-div ol { padding-left: 90px; margin-bottom: 50px; }
#textBible.fs8 .text-div ol > li::marker, #projector_screen_root #textBible.fs8 .text-div ol > li::marker { font-size: 35px !important; }

/* =========================================================
      [성경 소제목 / 절 헤더 디자인 & 폰트 크기 비율 연동 조정] (v2.5.13)
      < > 감싼 소제목을 해당 절 위에 고급스러운 배너 형태로 표시
      본문 폰트보다 명확하고 세련된 모던 성경 대표 스타일 적용
/* ========================================================= */
.text-div.verse-subject-wrap,
#projector_screen_root #textBible .text-div.verse-subject-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    margin: 18px 0 6px 0 !important;
    padding: 0 0 0 40px !important;
    cursor: default;
    user-select: none;
}

.verse-subject-badge,
#projector_screen_root #textBible .verse-subject-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%) !important;
    border: 1px solid #fecaca !important;
    border-left: 3px solid #b91c1c !important;
    border-radius: 5px !important;
    padding: 3px 10px !important;
    box-shadow: 0 1px 3px rgba(185, 28, 28, 0.08) !important;
    line-height: 1.35 !important;
    transition: all 0.2s ease !important;
    max-width: 90% !important;
    word-break: keep-all !important;
    font-size: 20px !important; /* 기본 fallback: 본문(26px)보다 조금 작은 20px (약 78%) */
}

.verse-subject-icon,
#projector_screen_root #textBible .verse-subject-icon {
    display: inline-block !important;
    color: #b91c1c !important;
    font-size: 0.9em !important;
    opacity: 0.9 !important;
    font-style: normal !important;
}

.verse-subject-title,
#projector_screen_root #textBible .verse-subject-title,
.verse-subject-badge span,
#textBible .verse-subject-badge span {
    display: inline !important;
    font-weight: 700 !important;
    color: #991b1b !important;
    letter-spacing: -0.3px !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* 폰트 크기 단계별(fs1~fs8) 소제목 크기 및 여백 비율 연동 조정 (각 단계별 본문 크기보다 조금 작은 약 78~80% 비율) */
.fs1 .text-div.verse-subject-wrap, #textBible.fs1 .text-div.verse-subject-wrap, #projector_screen_root.fs1 #textBible .text-div.verse-subject-wrap, #projector_screen_root #textBible.fs1 .text-div.verse-subject-wrap, body.fs1 #textBible .text-div.verse-subject-wrap { padding-left: 40px !important; margin-top: 16px !important; margin-bottom: 4px !important; }
.fs1 .verse-subject-badge, #textBible.fs1 .verse-subject-badge, #projector_screen_root.fs1 .verse-subject-badge, #projector_screen_root #textBible.fs1 .verse-subject-badge, body.fs1 .verse-subject-badge { font-size: 20px !important; padding: 3px 10px !important; }

.fs2 .text-div.verse-subject-wrap, #textBible.fs2 .text-div.verse-subject-wrap, #projector_screen_root.fs2 #textBible .text-div.verse-subject-wrap, #projector_screen_root #textBible.fs2 .text-div.verse-subject-wrap, body.fs2 #textBible .text-div.verse-subject-wrap { padding-left: 40px !important; margin-top: 18px !important; margin-bottom: 5px !important; }
.fs2 .verse-subject-badge, #textBible.fs2 .verse-subject-badge, #projector_screen_root.fs2 .verse-subject-badge, #projector_screen_root #textBible.fs2 .verse-subject-badge, body.fs2 .verse-subject-badge { font-size: 25px !important; padding: 4px 12px !important; }

.fs3 .text-div.verse-subject-wrap, #textBible.fs3 .text-div.verse-subject-wrap, #projector_screen_root.fs3 #textBible .text-div.verse-subject-wrap, #projector_screen_root #textBible.fs3 .text-div.verse-subject-wrap, body.fs3 #textBible .text-div.verse-subject-wrap { padding-left: 50px !important; margin-top: 20px !important; margin-bottom: 6px !important; }
.fs3 .verse-subject-badge, #textBible.fs3 .verse-subject-badge, #projector_screen_root.fs3 .verse-subject-badge, #projector_screen_root #textBible.fs3 .verse-subject-badge, body.fs3 .verse-subject-badge { font-size: 30px !important; padding: 4px 14px !important; }

.fs4 .text-div.verse-subject-wrap, #textBible.fs4 .text-div.verse-subject-wrap, #projector_screen_root.fs4 #textBible .text-div.verse-subject-wrap, #projector_screen_root #textBible.fs4 .text-div.verse-subject-wrap, body.fs4 #textBible .text-div.verse-subject-wrap { padding-left: 55px !important; margin-top: 22px !important; margin-bottom: 6px !important; }
.fs4 .verse-subject-badge, #textBible.fs4 .verse-subject-badge, #projector_screen_root.fs4 .verse-subject-badge, #projector_screen_root #textBible.fs4 .verse-subject-badge, body.fs4 .verse-subject-badge { font-size: 35px !important; padding: 5px 16px !important; }

.fs5 .text-div.verse-subject-wrap, #textBible.fs5 .text-div.verse-subject-wrap, #projector_screen_root.fs5 #textBible .text-div.verse-subject-wrap, #projector_screen_root #textBible.fs5 .text-div.verse-subject-wrap, body.fs5 #textBible .text-div.verse-subject-wrap { padding-left: 60px !important; margin-top: 24px !important; margin-bottom: 8px !important; }
.fs5 .verse-subject-badge, #textBible.fs5 .verse-subject-badge, #projector_screen_root.fs5 .verse-subject-badge, #projector_screen_root #textBible.fs5 .verse-subject-badge, body.fs5 .verse-subject-badge { font-size: 40px !important; padding: 5px 18px !important; }

.fs6 .text-div.verse-subject-wrap, #textBible.fs6 .text-div.verse-subject-wrap, #projector_screen_root.fs6 #textBible .text-div.verse-subject-wrap, #projector_screen_root #textBible.fs6 .text-div.verse-subject-wrap, body.fs6 #textBible .text-div.verse-subject-wrap { padding-left: 70px !important; margin-top: 26px !important; margin-bottom: 8px !important; }
.fs6 .verse-subject-badge, #textBible.fs6 .verse-subject-badge, #projector_screen_root.fs6 .verse-subject-badge, #projector_screen_root #textBible.fs6 .verse-subject-badge, body.fs6 .verse-subject-badge { font-size: 45px !important; padding: 6px 20px !important; }

.fs7 .text-div.verse-subject-wrap, #textBible.fs7 .text-div.verse-subject-wrap, #projector_screen_root.fs7 #textBible .text-div.verse-subject-wrap, #projector_screen_root #textBible.fs7 .text-div.verse-subject-wrap, body.fs7 #textBible .text-div.verse-subject-wrap { padding-left: 80px !important; margin-top: 28px !important; margin-bottom: 10px !important; }
.fs7 .verse-subject-badge, #textBible.fs7 .verse-subject-badge, #projector_screen_root.fs7 .verse-subject-badge, #projector_screen_root #textBible.fs7 .verse-subject-badge, body.fs7 .verse-subject-badge { font-size: 50px !important; padding: 6px 22px !important; }

.fs8 .text-div.verse-subject-wrap, #textBible.fs8 .text-div.verse-subject-wrap, #projector_screen_root.fs8 #textBible .text-div.verse-subject-wrap, #projector_screen_root #textBible.fs8 .text-div.verse-subject-wrap, body.fs8 #textBible .text-div.verse-subject-wrap { padding-left: 90px !important; margin-top: 30px !important; margin-bottom: 10px !important; }
.fs8 .verse-subject-badge, #textBible.fs8 .verse-subject-badge, #projector_screen_root.fs8 .verse-subject-badge, #projector_screen_root #textBible.fs8 .verse-subject-badge, body.fs8 .verse-subject-badge { font-size: 56px !important; padding: 7px 24px !important; }

/* 자막 모드 시 소제목 숨김 */
body.subtitle-mode .verse-subject-wrap,
body.projector-mode.subtitle-mode .verse-subject-wrap {
    display: none !important;
}

/* 장 / 절 번호 버튼 */
.number-button {
    font-size: 14px;
    color: #334155;
    font-family: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    padding: 7px 4px;
    text-align: center;
    background-color: #ffffff;
    margin: 2px 1px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s ease;
    box-sizing: border-box;
    font-weight: 600;
}

.number-button:hover {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.sub-button:hover {
    background-color: #fef9c3;
    border-color: #fde047;
}

/* =========================================================
      하단 네비게이션 (#startDiv)
/* ========================================================= */
#startDiv {
    margin-top: 10px;
}

#startDiv .list-table {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 10px 16px;
}

#startDiv .list-table td {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s;
}

#startDiv .list-table td:hover {
    color: #1e293b;
}

#footPrev, #footNext {
    color: #2563eb;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

#footPrev:hover, #footNext:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* 구형 .focused-verse 스타일 제거 완료 (div.focused-verse-row 사용) */

/* ol.focused-verse 구형 도트 라인 스타일 제거됨 (div.focused-verse-row로 통합) */

/* 이전 위치로 돌아가기 (Undo) 플로팅 버튼 */
#btn_go_back {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #3b82f6;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    z-index: 9999;
    transition: all 0.25s ease;
}

#btn_go_back:hover {
    background-color: #2563eb;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* 우측 상단 돌아가기 뱃지 스타일 */
#return_badge {
    display: inline-flex;
    align-items: center;
    background-color: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 20px;
    padding: 2px 10px 2px 4px;
    font-size: 13px;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 8px;
    box-shadow: 0 1px 3px rgba(225, 29, 72, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
}

#return_badge:hover {
    background-color: #ffe4e6;
    border-color: #fecdd3;
    transform: translateY(-1px);
}

#return_badge .history_index {
    background-color: #e11d48 !important;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    margin-right: 5px;
}

#return_badge .history_item_text {
    font-weight: 700;
    color: #be123c;
    font-size: 12px;
}

    /* 마우스 이동 시 틈새(gap)로 빠져나가지 않도록 투명 브릿지 영역 추가 */
body.hide-cursor,
body.hide-cursor * {
    cursor: none !important;
}

/* =========================================================
      프로젝터 제어 (블랙아웃 및 로고 송출)
/* ========================================================= */
.presentation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    cursor: pointer;
    box-sizing: border-box;
    display: none;
}

.presentation-overlay.active {
    display: block !important;
}

#presentation_blackout {
    background-color: #000000;
}

#presentation_logo {
    background-color: #000000;
    display: none;
}

#presentation_logo.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.presentation-logo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#presentation_logo_img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: none !important;
}

/* =========================================================
      도움말 모달 (Help Modal) 프리미엄 디자인
/* ========================================================= */
.modal.help-modal {
    max-width: 860px !important;
    width: 95% !important;
    padding: 24px 28px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
    background: #ffffff !important;
    box-sizing: border-box;
    font-family: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.help-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.help-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-header h3 i {
    color: #3b82f6;
}

.help-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
    }
}

.help-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.help-card:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.help-card h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.help-card h4 i {
    color: #3b82f6;
    font-size: 15px;
}

.help-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 12.5px;
    line-height: 1.5;
    gap: 8px;
}

.help-label {
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    min-width: 82px;
    padding-top: 1px;
}

.help-desc {
    color: #475569;
    text-align: right;
    word-break: keep-all;
    flex: 1;
}

/* 키보드 뱃지 스타일 (kbd) */
kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 11px;
    font-family: inherit;
    line-height: 1.35;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-bottom: 2px solid #94a3b8;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    font-weight: 800;
    margin: 0 1px;
    vertical-align: baseline;
    letter-spacing: -0.2px;
}

/* =========================================================
   Subtitle Mode (Unified in Lower Third Pro section below)
/* ========================================================= */
body.subtitle-mode,
body.subtitle-mode * {
    cursor: none !important;
}

/* =========================================================
      프로젝터 듀얼 디스플레이 송출 모드 (Phase 1)
/* ========================================================= */

/* 조작창 상단 [LIVE] 상태 인디케이터 */
#live_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 10px 3px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
    user-select: none;
}
#live_badge:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
    display: inline-block;
}

/* 송출창 연결 시 (LIVE ON) */
#live_badge.live-active {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}
#live_badge.live-active .live-dot {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.8s infinite;
}

/* 블랙아웃 상태 */
#live_badge.live-blackout {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
#live_badge.live-blackout .live-dot {
    background-color: #ef4444;
    animation: none;
}

/* 로고 상태 */
#live_badge.live-logo {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}
#live_badge.live-logo .live-dot {
    background-color: #3b82f6;
    animation: none;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 프로젝터 송출창 열기 버튼 */
#btn_open_projector.active {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

/* =========================================================
      송출 전용 뷰 (Projector Window Clean View)
/* ========================================================= */

/* =========================================================
   [오퍼레이터 콘솔] 단일 모니터 조작창 제어 데스크
/* ========================================================= */
#operator_console {
    background: #0f172a;
    border-radius: 14px;
    padding: 20px;
    margin: 12px 0 30px 0;
    color: #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid #1e293b;
    font-family: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
}

/* 상단 상태 바 */
.op-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.op-status-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.op-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #064e3b;
    color: #34d399;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid #059669;
}

.op-live-glow {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: pulseGlow 1.5s infinite;
}

.op-current-target {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    background: #1e293b;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid #334155;
    letter-spacing: -0.3px;
}

.op-mode-tabs {
    display: flex;
    gap: 8px;
}

.op-tab-btn {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.op-tab-btn:hover {
    color: #ffffff;
    background: #334155;
}


.op-tab-btn.op-btn-exit-dual {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
    margin-left: 8px;
}
.op-tab-btn.op-btn-exit-dual:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.op-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* 2단 메인 그리드 */
.op-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .op-grid {
        grid-template-columns: 1fr;
    }
}

.op-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.op-box {
    background: #1e293b;
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid #334155;
}

.op-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.op-box-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.op-box-title-flex .op-box-title {
    margin-bottom: 0;
}

/* 프리뷰 화면 */
.op-preview-screen {
    background: #0b0f19;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #334155;
    min-height: 100px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.op-prev-header {
    font-size: 17px;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding-bottom: 6px;
}

.op-prev-content {
    font-size: 15px;
    line-height: 1.6;
    color: #e2e8f0;
    word-break: keep-all;
    min-height: 50px;
}

/* 실행 버튼 컨트롤 */
.op-btn-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.3fr 1fr;
    gap: 10px;
}

.op-large-btn {
    background: #334155;
    color: #f8fafc;
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 14px 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.op-large-btn:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.op-large-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.op-btn-verse {
    background: #1d4ed8;
    border-color: #2563eb;
}

.op-btn-verse:hover {
    background: #2563eb;
}

.op-kbd {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    color: #cbd5e1;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2px;
}

/* 즉각 제어 액션 버튼 */
.op-btn-actions {
    grid-template-columns: repeat(4, 1fr);
}

.op-action-btn {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.15s ease;
}

.op-action-btn:hover {
    background: #475569;
    color: #ffffff;
}

.op-action-btn.active {
    box-shadow: 0 0 12px currentColor;
}

.op-btn-black.active {
    background: #ef4444;
    border-color: #dc2626;
    color: #ffffff;
}

.op-btn-logo.active {
    background: #8b5cf6;
    border-color: #7c3aed;
    color: #ffffff;
}

.op-btn-sub.active {
    background: #0284c7;
    border-color: #0369a1;
    color: #ffffff;
}

.op-btn-font-row {
    grid-template-columns: 1fr 1fr;
}

.op-mini-btn {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

.op-mini-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* 절 입력창 및 순차 진행 */
.op-input-line {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.op-cue-input {
    flex: 1;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.op-cue-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.op-cue-add-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.op-cue-add-btn:hover {
    background: #0369a1;
}

.op-cue-play-bar {
    margin-bottom: 12px;
}

.op-cue-play-btn {
    width: 100%;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
    transition: all 0.15s ease;
}

.op-cue-play-btn:hover {
    background: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.4);
}

/* 절 리스트 */
.op-cue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.op-cue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s;
}

.op-cue-item:hover {
    border-color: #38bdf8;
    background: #131d31;
}

.op-cue-item.current-active {
    border-color: #10b981;
    background: #064e3b;
}

.op-cue-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    cursor: pointer;
    flex: 1;
}

.op-cue-badge {
    background: #334155;
    color: #94a3b8;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
}

.op-cue-btns {
    display: flex;
    gap: 6px;
}

.op-cue-play {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.op-cue-play:hover {
    background: #1d4ed8;
}

.op-cue-del {
    background: transparent;
    color: #94a3b8;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

.op-cue-del:hover {
    color: #ef4444;
}

/* 최근 히스토리 카드 목록 */
.op-history-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.op-history-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px 12px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.op-history-card:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.op-history-card.current {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
}

/* =========================================================
   [송출 모니터] 2번 모니터 프레젠테이션 스크린 스타일 (#textBible 스크롤)
/* ========================================================= */
/* =========================================================
/* =========================================================
   [2번 모니터 전용 송출 화면] 독립 풀 와이드 클린 레이아웃 (v2.4.1)
/* [fixed duplicate comment]
   max-width 해제 / 100% 가로폭 사용 / CSS 변수 기반 실시간 글자크기 조절 */
/* ========================================================= */
/* [fixed duplicate comment]
   max-width 해제 / 100% 가로폭 사용 / CSS 변수 기반 실시간 글자크기 조절 */
/* ========================================================= */
html.projector-mode,
body.projector-mode,
body.projector-mode * {
    cursor: none !important; /* 듀얼 송출창은 마우스 커서 영구 숨김 */
}

html.projector-mode,
body.projector-mode {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    height: auto !important;
    background-color: #f1f5f9 !important; /* 프로젝터 눈부심 방지 및 대비 강화를 위한 라이트 그레이 */
    background: #f1f5f9 !important;
    color: #1e293b !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    font-family: 'Nanum Gothic', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif !important;
}

body.projector-mode::-webkit-scrollbar {
    width: 6px;
}
body.projector-mode::-webkit-scrollbar-track {
    background: #f1f5f9;
}
body.projector-mode::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#projector_screen_root {
    --projector-font-size: 26px;
    --projector-marker-size: 20px;
    min-height: 100vh;
    width: 100% !important;
    max-width: none !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 상단 항상 고정 타이틀 바 */
#projector_header_bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 64px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
}

#projector_header_bar #titleBible {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
}

/* 본문 영역: 박스 감싸기 및 max-width 제한 해제, 가로 전체 100% 사용 */
#projector_screen_root #textBible {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 84px 36px 70vh 36px !important;
    background: #f1f5f9 !important;
    box-sizing: border-box !important;
}

#projector_screen_root #textBible .text-div {
    width: 100% !important;
    max-width: none !important;
    margin-top: 14px !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    border-left: 5px solid transparent !important;
    background: transparent !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

#projector_screen_root #textBible .text-div ol {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 52px !important;
    box-sizing: border-box !important;
}

#projector_screen_root #textBible .text-div ol > li {
    font-size: inherit !important;
    line-height: 1.75 !important;
    letter-spacing: -0.02em !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

#projector_screen_root #textBible .text-div ol > li > span {
    color: #1e293b !important;
}

#projector_screen_root #textBible .text-div ol > li::marker,
#projector_screen_root #textBible .text-div ol > li::before {
    color: #2563eb !important;
    font-weight: 700 !important;
}

/* 송출창 폰트 종류(서체) 연동 스타일 */
body.projector-mode.ff2,
body.projector-mode.ff2 *:not(.fa):not([class*=" fa-"]),
#projector_screen_root.ff2,
#projector_screen_root.ff2 *:not(.fa):not([class*=" fa-"]),
#projector_screen_root #textBible.ff2,
#projector_screen_root #textBible.ff2 *:not(.fa):not([class*=" fa-"]) {
    font-family: 'Nanum Myeongjo', serif !important;
}

body.projector-mode.ff1,
body.projector-mode.ff1 *:not(.fa):not([class*=" fa-"]),
#projector_screen_root.ff1,
#projector_screen_root.ff1 *:not(.fa):not([class*=" fa-"]),
#projector_screen_root #textBible.ff1,
#projector_screen_root #textBible.ff1 *:not(.fa):not([class*=" fa-"]) {
    font-family: 'Nanum Gothic', sans-serif !important;
}

/* =========================================================
   [선택된 절 하이라이트 포커스 디자인]
      div.focused-verse-row 및 div.projector-active-verse (v2.5.26)
/* ========================================================= */
body:not(.subtitle-mode) #textBible .text-div.focused-verse-row,
body:not(.subtitle-mode) #textBible .text-div.projector-active-verse,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.focused-verse-row,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.projector-active-verse {
    position: relative !important;
    z-index: 1 !important;
    background-color: transparent !important;
    border-left: none !important;
    padding-left: 0 !important;
    box-shadow: none !important;
}

body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.focused-verse-row,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.projector-active-verse {
    padding-left: 20px !important;
}

/* [제안 1] 포커스된 절: 순백색(#ffffff) 입체 카드 + 좌측 선명한 블루 인디케이터 */
body:not(.subtitle-mode) #textBible .text-div.focused-verse-row::before,
body:not(.subtitle-mode) #textBible .text-div.projector-active-verse::before,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.focused-verse-row::before,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.projector-active-verse::before {
    content: "";
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: -12px;
    right: -12px;
    background-color: #ffffff !important;
    border-left: 6px solid #2563eb !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08) !important;
    z-index: -1;
    pointer-events: none;
    transition: background-color 0.2s ease, border-left 0.2s ease, box-shadow 0.2s ease;
}

body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.focused-verse-row::before,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.projector-active-verse::before {
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
    border-radius: 12px !important;
    border-left: 7px solid #2563eb !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

body.subtitle-mode .text-div.focused-verse-row::before,
body.subtitle-mode .text-div.projector-active-verse::before,
body.subtitle-mode #textBible .text-div.focused-verse-row::before,
body.subtitle-mode #textBible .text-div.projector-active-verse::before,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div.focused-verse-row::before,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div.projector-active-verse::before {
    display: none !important;
}

body:not(.subtitle-mode) #textBible .text-div.focused-verse-row ol > li,
body:not(.subtitle-mode) #textBible .text-div.projector-active-verse ol > li,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.focused-verse-row ol > li,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.projector-active-verse ol > li {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body:not(.subtitle-mode) #textBible .text-div.focused-verse-row ol > li > span,
body:not(.subtitle-mode) #textBible .text-div.projector-active-verse ol > li > span,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.focused-verse-row ol > li > span,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.projector-active-verse ol > li > span {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body:not(.subtitle-mode) #textBible .text-div.focused-verse-row ol > li::marker,
body:not(.subtitle-mode) #textBible .text-div.focused-verse-row ol > li::before,
body:not(.subtitle-mode) #textBible .text-div.projector-active-verse ol > li::marker,
body:not(.subtitle-mode) #textBible .text-div.projector-active-verse ol > li::before,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.focused-verse-row ol > li::marker,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.focused-verse-row ol > li::before,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.projector-active-verse ol > li::marker,
body:not(.subtitle-mode) #projector_screen_root #textBible .text-div.projector-active-verse ol > li::before {
    color: #2563eb !important;
    font-weight: 900 !important;
}

/* 하단 절 번호 버튼 선택 활성화 스타일 */
.number-button.sub-button.active-sub-btn {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

/* 프레젠테이션 오버레이 (블랙아웃, 로고) */
html.has-presentation-overlay,
body.has-presentation-overlay {
    overflow: hidden !important;
}

.presentation-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none;
}

.presentation-overlay.active {
    display: block !important;
}

#presentation_blackout {
    background-color: #000000 !important;
}

#presentation_logo {
    background-color: #000000 !important;
    display: none;
}

#presentation_logo.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.presentation-logo-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.presentation-logo-content img,
#presentation_logo_img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
      [듀얼 모드 전용] 고정형 장/절 선택 탭스트립 바 & 패널 고정 (v2.4.6)
/* ========================================================= */
.op-quick-selector-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    height: 52px;
}

.op-select-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.op-select-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.op-control-select {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    cursor: pointer;
}

.op-control-select option[value=""] {
    color: #94a3b8;
}

.op-control-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: #ffffff;
}

/* 듀얼 모드 활성화 시 번거로운 버튼과 headGroup을 완전히 숨겨 오퍼레이터 패널 공간을 영구 고정 */
body.operator-tab-console #headGroup,
body.dual-mode-active:not(.operator-tab-bible) #headGroup,
body.has-operator-console:not(.operator-tab-bible) #headGroup,
body.operator-tab-console #selectTable,
body.dual-mode-active:not(.operator-tab-bible) #selectTable,
body.has-operator-console:not(.operator-tab-bible) #selectTable,
body.operator-tab-console #top_list_table,
body.dual-mode-active:not(.operator-tab-bible) #top_list_table,
body.has-operator-console:not(.operator-tab-bible) #top_list_table,
body.operator-tab-console #top_list_table-sticky-wrapper,
body.dual-mode-active:not(.operator-tab-bible) #top_list_table-sticky-wrapper,
body.has-operator-console:not(.operator-tab-bible) #top_list_table-sticky-wrapper {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.dual-mode-active #startDiv,
body.has-operator-console #startDiv,
body.dual-mode-active #footGroup,
body.has-operator-console #footGroup {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}




/* =========================================================
   [Professional Broadcast Lower-Third Subtitle Design (Pro)]
   - Deep Obsidian-Navy Gradient with Royal Blue Accent Bar
   - Two-Tone Integrated Floating Scripture Badge (Label | Ref)
   - Multi-Layered High-Contrast Drop Shadow for Broadcast Legibility
   - Word-break: keep-all for clean typography without awkward line splits
/* ========================================================= */
html.subtitle-mode,
body.subtitle-mode,
html.projector-mode.subtitle-mode,
body.projector-mode.subtitle-mode {
    background-color: #00FF00 !important; /* Chroma-Key Green Background */
    background: #00FF00 !important;
    overflow: hidden !important;
}

body.subtitle-mode::-webkit-scrollbar,
html.subtitle-mode::-webkit-scrollbar,
body.projector-mode.subtitle-mode::-webkit-scrollbar,
html.projector-mode.subtitle-mode::-webkit-scrollbar {
    display: none !important;
}

/* Hide non-essential headers, menus, navigation in subtitle mode */
body.subtitle-mode #selectTable,
body.subtitle-mode #top_list_table,
body.subtitle-mode #headGroup,
body.subtitle-mode #footGroup,
body.subtitle-mode #startDiv,
body.subtitle-mode #btn_go_back,
body.subtitle-mode #return_badge,
body.subtitle-mode #bo_v_title,
body.subtitle-mode #bo_v_info,
body.subtitle-mode #bo_v_atc_title,
body.subtitle-mode #bo_v_img,
body.subtitle-mode #bo_v_con,
body.subtitle-mode #bo_v_act,
body.subtitle-mode #bo_v_file,
body.subtitle-mode #bo_v_link,
body.subtitle-mode .bo_v_nb,
body.subtitle-mode header,
body.subtitle-mode #projector_header_bar,
body.projector-mode.subtitle-mode #projector_header_bar,
body.subtitle-mode #ft {
    display: none !important;
}

body.projector-mode.subtitle-mode #projector_screen_root {
    background: transparent !important;
    background-color: transparent !important;
}

/* =========================================
   Text Container & Broadcast Lower-Third Anchor
   ========================================= */
body.subtitle-mode #textBible,
body.projector-mode.subtitle-mode #textBible,
body.projector-mode.subtitle-mode #projector_screen_root #textBible {
    position: fixed !important;
    bottom: 38px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 9999 !important;
}

body.subtitle-mode .text-div,
body.projector-mode.subtitle-mode #textBible .text-div,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.subtitle-mode .text-div ol,
body.projector-mode.subtitle-mode #textBible .text-div ol,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol {
    display: none !important;
}

body.subtitle-mode .text-div > span,
body.projector-mode.subtitle-mode #textBible .text-div > span,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div > span {
    display: none !important;
}

body.subtitle-mode #bo_v_atc {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* =========================================
   [방송 자막 모드] 프리미엄 로우서드(Lower-Third) 카드
   - 첨부 이미지(다니엘 기도회) 스타일의 세련된 라운드 틸/네이비 프레임
   - 민트/스카이블루 이너 프레임 라인 및 우아한 따옴표 심볼
   ========================================= */
body.subtitle-mode .text-div ol.focused-verse,
body.projector-mode.subtitle-mode #textBible .text-div ol.focused-verse,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol.focused-verse {
    display: block !important;
    position: relative !important;
    width: 90% !important;
    max-width: 1580px !important;
    box-sizing: border-box !important;
    /* 딥 틸/네이비 고급 방송 그라데이션 */
    background: linear-gradient(135deg, rgba(8, 36, 52, 0.95) 0%, rgba(10, 48, 66, 0.92) 50%, rgba(13, 38, 56, 0.95) 100%) !important;
    backdrop-filter: blur(12px) !important;
    padding: 34px 52px 34px 92px !important; /* 좌측에 따옴표 심볼 공간 확보 */
    border-radius: 20px !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    text-align: left !important;
    margin: 0 auto !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 8px 20px rgba(0, 0, 0, 0.45) !important;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease !important;
    transform: translateY(0) !important;
}

/* 세련된 민트/스카이블루 이너 라인 프레임 (방송 그래픽 효과) */
body.subtitle-mode .text-div ol.focused-verse::after,
body.projector-mode.subtitle-mode #textBible .text-div ol.focused-verse::after,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol.focused-verse::after {
    content: '' !important;
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 14px !important;
    pointer-events: none !important;
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.1) !important;
}

/* 기본 ol marker 제거 */
body.subtitle-mode .text-div ol.focused-verse li,
body.projector-mode.subtitle-mode #textBible .text-div ol.focused-verse li,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol.focused-verse li {
    list-style: none !important;
}

body.subtitle-mode .text-div ol.focused-verse li::marker,
body.subtitle-mode .text-div ol li::before,
body.subtitle-mode #textBible .text-div ol li::before,
body.projector-mode.subtitle-mode #textBible .text-div ol.focused-verse li::marker,
body.projector-mode.subtitle-mode #textBible .text-div ol li::before,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol.focused-verse li::marker,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol li::before {
    display: none !important;
    content: '' !important;
    font-size: 0 !important;
    color: transparent !important;
}

body.subtitle-mode .text-div ol.focused-verse::before,
body.projector-mode.subtitle-mode #textBible .text-div ol.focused-verse::before,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol.focused-verse::before {
    display: none !important;
    content: '' !important;
}

/* =========================================
   [성경 말씀 뱃지 & 따옴표 포인트 그래픽]
   - 상단 플로팅 알약형(Capsule/Pill) 성경 출처 뱃지
   - 좌측 말씀 따옴표(Quote) 엠블럼
   ========================================= */
.subtitle-badge,
.subtitle-quote-mark {
    display: none !important;
}

body.subtitle-mode .subtitle-badge,
body.projector-mode.subtitle-mode .subtitle-badge {
    position: absolute !important;
    top: -24px !important; /* 상단 테두리에 자연스럽게 걸치도록 플로팅 */
    left: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 48px !important;
    border-radius: 24px !important; /* 세련된 알약 형태 */
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #075985 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(2, 132, 199, 0.4) !important;
    margin: 0 !important;
    padding: 0 6px 0 16px !important;
    z-index: 10001 !important;
    overflow: hidden !important;
}

/* 뱃지 좌측: 따옴표 미니 심볼 & 라벨 (선택적) */
body.subtitle-mode .subtitle-badge span.badge-label,
body.projector-mode.subtitle-mode .subtitle-badge span.badge-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #bae6fd !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin-right: 8px !important;
    line-height: 1 !important;
}

/* 뱃지 우측 알약 본체: 선명한 성경 장:절 출처 (예: 누가복음 8:46) */
body.subtitle-mode .subtitle-badge span.badge-ref,
body.projector-mode.subtitle-mode .subtitle-badge span.badge-ref {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #034f75 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    height: 36px !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* 자막 카드 좌측 성경 말씀 따옴표(Quote) 장식 아이콘 - 자막 모드에서만 표시 */
body.subtitle-mode .subtitle-quote-mark,
body.projector-mode.subtitle-mode .subtitle-quote-mark {
    display: block !important;
    position: absolute !important;
    top: 28px !important;
    left: 28px !important;
    font-size: 50px !important;
    line-height: 1 !important;
    color: rgba(56, 189, 248, 0.38) !important;
    font-family: Georgia, serif !important;
    font-weight: 900 !important;
    pointer-events: none !important;
    z-index: 2 !important;
    user-select: none !important;
}

/* =========================================
   Scripture Text (High-Contrast Shadow & Word Wrap)
   ========================================= */
body.subtitle-mode #textBible .text-div ol li,
body.subtitle-mode #textBible .text-div ol li span,
body.subtitle-mode #textBible .text-div.focused-verse-row ol li,
body.subtitle-mode #textBible .text-div.focused-verse-row ol li span,
body.subtitle-mode #textBible .text-div.projector-active-verse ol li,
body.subtitle-mode #textBible .text-div.projector-active-verse ol li span,
body.subtitle-mode .text-div ol.focused-verse li,
body.subtitle-mode .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible .text-div ol li,
body.projector-mode.subtitle-mode #textBible .text-div ol li span,
body.projector-mode.subtitle-mode #textBible .text-div ol.focused-verse li,
body.projector-mode.subtitle-mode #textBible .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol.focused-verse li,
body.projector-mode.subtitle-mode #projector_screen_root #textBible .text-div ol.focused-verse li span {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    letter-spacing: -0.015em !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.9) !important;
}

/* Font Family Synchronization */
body.subtitle-mode.ff2 .text-div ol.focused-verse li span,
body.subtitle-mode #textBible.ff2 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode.ff2 #textBible .text-div ol.focused-verse li span {
    font-family: 'Nanum Myeongjo', 'Batang', serif !important;
}

body.subtitle-mode.ff1 .text-div ol.focused-verse li span,
body.subtitle-mode #textBible.ff1 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode.ff1 #textBible .text-div ol.focused-verse li span {
    font-family: 'Nanum Gothic', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Font Size Steps */
body.subtitle-mode #textBible.fs1 .text-div ol.focused-verse li span,
body.subtitle-mode #textBible.fs2 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible.fs1 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible.fs2 .text-div ol.focused-verse li span { font-size: 36px !important; }

body.subtitle-mode #textBible.fs3 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible.fs3 .text-div ol.focused-verse li span { font-size: 40px !important; }

body.subtitle-mode #textBible.fs4 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible.fs4 .text-div ol.focused-verse li span { font-size: 44px !important; }

body.subtitle-mode #textBible.fs5 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible.fs5 .text-div ol.focused-verse li span { font-size: 48px !important; }

body.subtitle-mode #textBible.fs6 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible.fs6 .text-div ol.focused-verse li span { font-size: 52px !important; }

body.subtitle-mode #textBible.fs7 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible.fs7 .text-div ol.focused-verse li span { font-size: 56px !important; }

body.subtitle-mode #textBible.fs8 .text-div ol.focused-verse li span,
body.projector-mode.subtitle-mode #textBible.fs8 .text-div ol.focused-verse li span { font-size: 60px !important; }

/* Subtitle Fade/Hide Transition (ESC or x key) */
body.subtitle-mode.hide-subtitle-text .text-div ol.focused-verse,
body.projector-mode.subtitle-mode.hide-subtitle-text #textBible .text-div ol.focused-verse {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
}

/* 상단 헤더 오퍼레이터 패널 복귀 버튼 */
.btn-header-console {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    transition: all 0.2s;
}
.btn-header-console:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.5);
    transform: translateY(-1px);
}

/* 우측 하단 플로팅 오퍼레이터 복귀 바 */
.floating-operator-bar {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: floatingBarSlideUp 0.3s ease-out;
}

@keyframes floatingBarSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.floating-op-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.floating-op-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.floating-op-btn.floating-exit-btn {
    background: #ef4444;
    padding: 10px 14px;
    border-radius: 50%;
}
.floating-op-btn.floating-exit-btn:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.floating-op-btn.floating-nav-btn {
    background: #334155;
    padding: 10px 14px;
    font-size: 13px;
}
.floating-op-btn.floating-nav-btn:hover {
    background: #475569;
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.4);
    transform: translateY(-1px);
}
.floating-op-btn.floating-primary-btn {
    background: #2563eb;
    padding: 10px 16px;
    font-size: 13px;
}
.floating-op-btn.floating-primary-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* =========================================================
   [Dual Mode Bible View] Live On-Air Badge & Active Highlight
/* ========================================================= */
body.operator-tab-bible #textBible .text-div.projector-active-verse {
    position: relative !important;
    background-color: #eff6ff !important;
    border-left: 5px solid #2563eb !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12) !important;
    transition: all 0.2s ease !important;
}

body.operator-tab-bible #textBible .text-div.projector-active-verse::after {
    content: "● LIVE 송출중";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    font-weight: 800;
    color: #ef4444;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.15);
    z-index: 10;
    pointer-events: none;
}


/* =========================================================
   [v2.6.0] 오퍼레이터 프리뷰 상태 배지 & 큐 순서 이동 & 키보드 HUD
   ========================================================= */
@media (max-width: 600px) {
    .op-btn-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.op-btn-hide-sub.active {
    background: #f59e0b;
    border-color: #d97706;
    color: #ffffff;
}

.op-prev-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    transition: all 0.2s ease;
}

.op-prev-status-badge i {
    font-size: 9px;
}

.op-prev-status-badge.status-normal {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.op-prev-status-badge.status-subtitle {
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.op-prev-status-badge.status-subtitle-hidden {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.op-prev-status-badge.status-blackout {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.op-prev-status-badge.status-logo {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.45);
}

#op_preview_screen.preview-state-blackout {
    background: #000000;
    border-color: #ef4444;
    opacity: 0.75;
}

#op_preview_screen.preview-state-logo {
    background: #1e1b4b;
    border-color: #8b5cf6;
}

#op_preview_screen.preview-state-subtitle {
    background: linear-gradient(135deg, #082434 0%, #0a3042 100%);
    border-color: #0284c7;
}

#op_preview_screen.preview-state-subtitle-hidden {
    background: #1c1917;
    border-color: #f59e0b;
    opacity: 0.8;
}

/* 큐 아이템 위/아래 순서 이동 버튼 */
.op-cue-move {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.op-cue-move:hover:not(:disabled) {
    background: #334155;
    color: #f8fafc;
    border-color: #475569;
}

.op-cue-move:disabled {
    opacity: 0.3;
    cursor: default;
}

/* 실시간 키보드 단축키 입력 HUD 배지 */
.keyboard-hud-badge {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 100000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    color: #f8fafc;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    border-radius: 28px;
    padding: 10px 22px;
    font-family: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.keyboard-hud-badge .hud-icon {
    color: #38bdf8;
    font-size: 16px;
}

.keyboard-hud-badge .hud-input {
    color: #fde047;
    font-size: 17px;
    letter-spacing: 0.5px;
    padding: 1px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.keyboard-hud-badge .hud-hint {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.keyboard-hud-badge .hud-key {
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 2px;
}
