* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Bohemian Font */
@font-face {
    font-family: 'Bohemian Soul';
    src: url('src/Bohemian Soul.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-primary: #f5f1e8;
    --bg-secondary: #fdfaf4;
    --text-primary: #2c2a27;
    --text-secondary: #6b6762;
    --accent: #8b7355;
    --accent-light: #a89080;
    --border: #e8e3d8;
    --shadow: rgba(44, 42, 39, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #E9E5E3;
    color: var(--text-primary);
}

#pixi-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

#pixi-container canvas {
    width: 100%;
    height: 100%;
}

.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Main Content (Bible) */
.main-content {
    flex: 1;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content-header {
    padding: 0.75rem 3rem;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: sticky;
    top: 0;
    z-index: 100;
    display: block;
}

/* Hide header when at very top (not scrolled) */
.content-header:not(.scrolled):not(.loading) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: 0;
    min-height: 0;
    border-bottom-width: 0;
}

/* Show header when scrolled down */
.content-header.scrolled,
.content-header.loading {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Header Chapter Title (hidden - using sticky chapter title instead) */
.header-chapter-title {
    display: none;
}

/* Reading Controls - Floating Pill Bar */
.reading-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0%, rgba(213, 206, 199, 0.55) 100%);
    border: 1px solid #FFFFFF;
    box-shadow: 0px 20px 8px rgba(41, 22, 10, 0.01), 0px 11px 7px rgba(41, 22, 10, 0.03), 0px 5px 5px rgba(41, 22, 10, 0.04), 0px 1px 3px rgba(41, 22, 10, 0.05);
    border-radius: 22px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem;
    box-sizing: border-box;
}

/* When scrolled down, show controls */
.content-header.scrolled .reading-controls {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.toolbar-logo {
    height: 18px;
    width: auto;
}

.control-btn {
    padding: 0.5rem 0.9rem;
    background: rgba(245, 241, 232, 0.6);
    border: 1px solid rgba(232, 227, 216, 0.8);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.control-btn:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 42, 39, 0.1);
}

.control-btn:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.control-btn.active {
    background: #2F3D52;
    color: white;
    border-color: #2F3D52;
}

.control-btn.active img {
    filter: brightness(0) invert(1);
}

.translation-selector {
    min-width: 160px;
}

.chapter-selector-btn {
    min-width: 120px;
}

.icon-btn svg {
    width: 14px;
    height: 14px;
}

.text-size-icon {
    font-size: 1rem;
    font-weight: 600;
}

.jedp-toggle-icon {
    font-size: 0.9rem;
    transition: color 0.2s;
}

#jedp-toggle {
    display: none;
}

.btn-label {
    font-size: 0.85rem;
}

/* Text Size Controls */
.text-size-controls {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-top: none;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    border: 1px solid rgba(232, 227, 216, 0.6);
}

.size-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(232, 227, 216, 0.8);
    background: rgba(245, 241, 232, 0.6);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    color: var(--text-primary);
}

.size-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 42, 39, 0.1);
}

.size-btn.active {
    background: #2F3D52;
    color: white;
    border-color: #2F3D52;
}

.size-btn[data-size="small"] {
    font-size: 0.75rem;
}

.size-btn[data-size="medium"] {
    font-size: 0.9rem;
}

.size-btn[data-size="large"] {
    font-size: 1.1rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.search-section {
    display: none;
    gap: 0.5rem;
    max-width: 500px;
}

#verse-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 1px solid rgba(232, 227, 216, 0.8);
    border-radius: 50px;
    outline: none;
    background: rgba(245, 241, 232, 0.6);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

#verse-input:focus {
    border-color: var(--accent);
}

#verse-input::placeholder {
    color: var(--text-secondary);
}

#search-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

#search-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

.bible-content {
    flex: 1;
    padding: 4rem 6rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Comparison Mode Layout */
.bible-content.comparison-mode {
    max-width: 1100px;
}

.bible-content.comparison-mode .chapter-illustrations {
    display: none;
}

.bible-content.comparison-mode .chapter-body.with-illustrations {
    display: block;
}

.bible-content.comparison-mode .chapter-body.with-illustrations .chapter-title {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    text-align: center;
    justify-content: center;
}

/* Parallel View Layout */
.bible-content.parallel-view {
    max-width: none;
    padding: 4rem 3rem;
    display: flex;
    justify-content: center;
}

.bible-content.parallel-view #verse-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1400px;
}

.parallel-column {
    flex: 1;
    max-width: 600px;
}

/* Reset chapter title width in parallel view - don't break out of columns */
.parallel-column .chapter-title {
    width: 100%;
    margin-left: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1.8rem !important;
}

/* Ensure consistent font sizing in parallel view for alignment */
.parallel-column .chapter-content {
    font-size: 1.3rem;
    line-height: 1.75;
}

/* Keep verse numbers visible and in margin */
.parallel-column .verse {
    position: relative;
    padding-left: 0;
}

.parallel-column .verse-number {
    position: absolute;
    left: -2.5em;
    top: 0.1em;
    text-align: right;
    width: 2em;
}

.parallel-column-header {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 2rem;
    z-index: 5;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}

#loading,
#error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
    width: auto;
}

#loading {
    color: var(--accent);
}

#error {
    color: #c75146;
}

#verse-content {
    line-height: 1.9;
    font-size: 1.05rem;
}

.chapter-section {
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.chapter-section:last-child {
    border-bottom: none;
}

.chapter-title {
    font-family: 'Bohemian Soul', serif;
    font-weight: normal;
    color: #2F3D52;
    margin-bottom: 2.5rem;
    font-size: 61px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    margin-top: -1rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    box-shadow: none;
    will-change: transform;
    position: relative;
}

/* Masked reveal animation for chapter titles */
.title-mask {
    display: block;
    position: relative;
    overflow: hidden;
}

.title-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    will-change: opacity, transform;
}

.chapter-title.reveal .title-char {
    animation: revealText 600ms cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.chapter-title::after {
    content: '';
    display: block;
    width: 100%;
    margin-top: 0.8rem;
    border-top: 3px solid currentColor;
    border-bottom: 0.8px solid currentColor;
    height: 0.25rem;
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

.chapter-title.reveal::after {
    animation: revealLine 600ms cubic-bezier(0.19, 1, 0.22, 1) forwards var(--line-delay, 400ms);
}

@keyframes revealText {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0%); }
}

@keyframes revealLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Body text + illustrations: fade-in and slide-up after title reveals */
.chapter-section .chapter-content,
.chapter-section .chapter-illustrations {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 800ms cubic-bezier(0.19, 1, 0.22, 1),
                transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
}

.chapter-section.content-reveal .chapter-content,
.chapter-section.content-reveal .chapter-illustrations {
    opacity: 1;
    transform: translateY(0);
}

/* First chapter title - large headline style */
.chapter-section:first-child .chapter-title {
    font-size: 5rem;
    font-weight: normal;
    letter-spacing: -0.03em;
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: -4rem;
    margin-bottom: 3rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* First chapter title when sticky - shrink to normal size */
.chapter-section:first-child .chapter-title.sticky-active {
    font-size: 61px;
    font-weight: normal;
    letter-spacing: -0.02em;
    height: auto;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    margin-top: -1rem;
    margin-bottom: 2.5rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.chapter-content {
    font-family: 'Crimson Text', Georgia, serif;
    color: #2F3D52;
    line-height: 1.75;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.003em;
}

/* Chapter with illustrations - two column layout */
.bible-content:has(.with-illustrations) {
    max-width: 1200px;
}

.chapter-body.with-illustrations {
    display: flex;
    gap: 3rem;
}

/* Even chapters: illustrations on the left */
.chapter-body.with-illustrations.illustrations-left {
    flex-direction: row-reverse;
}

.chapter-text-column {
    flex: 1;
    min-width: 0;
}

/* Title inside illustrated chapter stays within the text column */
.chapter-body.with-illustrations .chapter-title {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    text-align: left;
    justify-content: flex-start;
}

.chapter-body.with-illustrations.illustrations-left .chapter-title {
    text-align: right;
    justify-content: flex-end;
}

.chapter-illustrations {
    flex: 0 0 400px;
}

.illustration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    justify-items: center;
    margin-top: 8.5rem;
}

.illustration-grid img {
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1;
    width: 100%;
}

/* Day 1 - top center */
.illustration-grid img:nth-child(1) { grid-column: 2; }

/* Days 2, 3, 4 - horizontal row */
.illustration-grid img:nth-child(2) { grid-column: 1; }
.illustration-grid img:nth-child(3) { grid-column: 2; }
.illustration-grid img:nth-child(4) { grid-column: 3; }

/* Day 5 - below center */
.illustration-grid img:nth-child(5) { grid-column: 2; }

/* Day 6 - below Day 5, center */
.illustration-grid img:nth-child(6) { grid-column: 2; }

/* Language-specific fonts */
.bible-content.lang-english .chapter-content {
    font-family: 'Literata', Georgia, serif;
}

.bible-content.lang-bulgarian .chapter-content {
    font-family: 'Old Standard TT', Georgia, serif;
}

.bible-content.lang-hebrew .chapter-content {
    font-family: 'Noto Sans Hebrew', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 2;
    font-size: 1.4rem;
}

.bible-content.lang-hebrew .chapter-title {
    font-family: 'Noto Sans Hebrew', Arial, sans-serif;
    direction: rtl;
}

.bible-content.lang-greek .chapter-content {
    line-height: 1.9;
    font-size: 1.35rem;
}

/* Text Size Variations */
.bible-content.text-small .chapter-content {
    font-size: 1.1rem;
}

.bible-content.text-small .chapter-title {
    font-size: 1.2rem !important;
}

.bible-content.text-medium .chapter-content {
    font-size: 1.3rem;
}

.bible-content.text-large .chapter-content {
    font-size: 1.5rem;
}

.bible-content.text-large .chapter-title {
    font-size: 1.8rem !important;
}

.verse {
    display: block;
    margin-bottom: 0;
    position: relative;
    padding-left: 0;
}

.verse-number {
    font-weight: 600;
    color: #c75146;
    font-size: 0.7em;
    position: absolute;
    left: -2.5em;
    top: 0.1em;
    text-align: right;
    width: 2em;
}

/* Word underlines shown by default */
.word {
    cursor: pointer;
    padding: 2px 0;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: rgba(199, 81, 70, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.word:hover {
    text-decoration-style: solid;
    text-decoration-color: #c75146;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    color: #c75146;
}

/* Drop Cap for first verse of each chapter */
.drop-cap {
    display: flex;
    align-items: flex-end;
}

.drop-cap-letter {
    font-size: 2.75em;
    line-height: 0.8;
    margin-right: 0.06em;
    font-weight: 700;
    color: #2F3D52;
    flex-shrink: 0;
}

/* Documentary Hypothesis Source Color-Coding - Text Color Style */
/* Hidden by default */
.source-J,
.source-E,
.source-P,
.source-D,
.source-R {
    padding: 0 2px;
    margin: 0 -1.5px;
    transition: color 0.3s ease;
}

/* Source highlighting - always visible with text color */
.source-J {
    color: #dc3545; /* Jahwist - Red */
}

.source-E {
    color: #0d6efd; /* Elohist - Blue */
}

.source-P {
    color: #6f42c1; /* Priestly - Purple */
}

.source-D {
    color: #198754; /* Deuteronomist - Green */
}

.source-R {
    color: #fd7e14; /* Redactor - Orange */
}

/* Word Study Tooltip */
.word-tooltip {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(44, 42, 39, 0.2);
    z-index: 2000;
    max-width: 400px;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.2s;
}

.word-tooltip.visible {
    opacity: 1;
}

.word-tooltip .tooltip-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.word-tooltip .tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.word-tooltip .tooltip-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.word-tooltip .tooltip-section {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.word-tooltip .tooltip-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 90px;
}

.word-tooltip .tooltip-value {
    color: var(--text-primary);
}

.word-tooltip .original-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
}

.word-tooltip .tooltip-section p {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Chapter Selector Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 42, 39, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(44, 42, 39, 0.2);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testament-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 0.3rem;
    border-radius: 8px;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.close-btn:hover {
    background: var(--bg-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    gap: 1.5rem;
}

.books-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.book-item {
    padding: 0.7rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.book-item:hover {
    background: var(--bg-primary);
    border-color: var(--border);
}

.book-item.selected {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.chapters-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    align-content: start;
}

.chapter-item {
    padding: 0.8rem 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    color: var(--text-primary);
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: normal;
    word-break: break-word;
}

.chapter-item:hover {
    background: var(--accent-light);
    color: white;
    border-color: var(--accent-light);
}

/* Hidden utility class - must be after modal to override display */
.hidden {
    display: none !important;
}

/* Mobile close button - positioned on left side of sidebar */
.mobile-close-btn {
    display: none;
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(44, 42, 39, 0.1);
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-close-btn:hover {
    background: rgba(44, 42, 39, 0.2);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .content-header {
        padding: 1.5rem;
    }

    .bible-content,
    .bible-content:has(.with-illustrations) {
        padding: 2rem 2rem;
        max-width: 450px;
    }

    .chapter-body.with-illustrations {
        flex-direction: column;
    }

    .chapter-body.with-illustrations .chapter-title {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: calc(50vw - 50% + 1.5rem);
        padding-right: calc(50vw - 50% + 1.5rem);
    }

    .chapter-illustrations {
        flex: none;
        width: 100%;
    }

    .illustration-grid {
        margin-top: 0;
    }

    .drop-cap {
        display: flex;
        align-items: flex-end;
    }

    .drop-cap-letter {
        font-size: 2.75em;
    }

    .chapter-title {
        font-size: 1.25rem;
        height: 60px;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: calc(50vw - 50% + 1.5rem);
        padding-right: calc(50vw - 50% + 1.5rem);
        margin-top: -2rem;
        padding-top: 2rem;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .reading-controls {
        flex-direction: row;
        width: 100%;
        gap: 0.4rem;
        overflow-x: auto;
    }

    .control-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    .btn-label {
        display: none;
    }

    .icon-btn {
        min-width: 36px;
    }

    .translation-selector,
    .chapter-selector-btn {
        flex-shrink: 0;
        min-width: 0;
    }

    /* Parallel view on mobile - stack vertically */
    .bible-content.parallel-view {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .parallel-column {
        max-width: none;
    }

    .modal-body {
        flex-direction: column;
    }

    .chapters-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Comparison mode responsive - stack verses vertically */
    .verse-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 1.5rem;
        align-items: start;
    }

    .verse-column {
        align-items: start;
    }

    /* First column (primary translation) - normal size */
    .verse-column:first-child {
        margin-bottom: 0.5rem;
    }

    /* Second column (comparison translation) - smaller subtitle style */
    .verse-column:last-child {
        padding-left: 1.5rem;
        opacity: 0.75;
    }

    .verse-column:last-child .verse-number {
        display: none; /* Hide duplicate verse number on mobile */
    }

    .verse-column:last-child .verse-text {
        font-size: 0.9em;
        font-style: italic;
        color: var(--text-secondary);
    }

    .comparison-header {
        display: none; /* Hide translation headers on mobile */
    }
}

/* Desktop Comparison Mode Styles */
.verse-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: baseline; /* Align verse numbers at same baseline */
}

.verse-column {
    display: flex;
    align-items: baseline; /* Align verse numbers on same baseline */
    gap: 0.6rem;
    min-height: 1.5em;
}

.verse-column .verse-number {
    flex-shrink: 0;
    margin: 0;
    line-height: 1.6;
}

.verse-column .verse-text {
    flex: 1;
    line-height: 1.6;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.comparison-header-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}
