/* ===== CSS VARIABLES AND THEMES ===== */
:root {
    --primary-color: #2C5282;
    --secondary-color: #4A5568;
    --accent-color: #4299E1;
    --bg-color: #F7FAFC;
    --surface-color: #FFFFFF;
    --text-color: #1A202C;
    --text-secondary: #4A5568;
    --border-color: #E2E8F0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

[data-theme="dark"] {
    --primary-color: #4299E1;
    --secondary-color: #718096;
    --accent-color: #63B3ED;
    --bg-color: #1A202C;
    --surface-color: #2D3748;
    --text-color: #F7FAFC;
    --text-secondary: #CBD5E0;
    --border-color: #4A5568;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}

[data-theme="sepia"] {
    --primary-color: #8B4513;
    --secondary-color: #A0826D;
    --accent-color: #CD853F;
    --bg-color: #F4F1E8;
    --surface-color: #FBF8F1;
    --text-color: #3E2723;
    --text-secondary: #5D4037;
    --border-color: #D7CCC8;
    --shadow: 0 2px 8px rgba(139,69,19,0.15);
    --shadow-lg: 0 4px 16px rgba(139,69,19,0.2);
}

[data-theme="blue"] {
    --primary-color: #0C4A6E;
    --secondary-color: #0369A1;
    --accent-color: #0EA5E9;
    --bg-color: #F0F9FF;
    --surface-color: #FFFFFF;
    --text-color: #0C4A6E;
    --text-secondary: #075985;
    --border-color: #BAE6FD;
    --shadow: 0 2px 8px rgba(12,74,110,0.1);
    --shadow-lg: 0 4px 16px rgba(12,74,110,0.15);
}

[data-theme="forest"] {
    --primary-color: #0F3D2E;
    --secondary-color: #1F6F4A;
    --accent-color: #2FBF71;
    --bg-color: #F3FBF6;
    --surface-color: #FFFFFF;
    --text-color: #0F3D2E;
    --text-secondary: #3A7F5A;
    --border-color: #CFEFE0;
    --shadow: 0 2px 8px rgba(15,61,46,0.10);
    --shadow-lg: 0 4px 16px rgba(15,61,46,0.16);
}

[data-theme="sunset"] {
    --primary-color: #92400E;
    --secondary-color: #C2410C;
    --accent-color: #F97316;
    --bg-color: #FFF7ED;
    --surface-color: #FFFFFF;
    --text-color: #7C2D12;
    --text-secondary: #92400E;
    --border-color: #FED7AA;
    --shadow: 0 2px 8px rgba(146,64,14,0.1);
    --shadow-lg: 0 4px 16px rgba(146,64,14,0.15);
}

[data-theme="kids-bright"] {
    --primary-color: #BE185D;
    --secondary-color: #7C3AED;
    --accent-color: #F59E0B;
    --bg-color: #FEF3C7;
    --surface-color: #FFFFFF;
    --text-color: #7C2D12;
    --text-secondary: #92400E;
    --border-color: #FBBF24;
    --shadow: 0 2px 8px rgba(190,24,93,0.15);
    --shadow-lg: 0 4px 16px rgba(190,24,93,0.2);
}

[data-theme="kids-pastel"] {
    --primary-color: #7C3AED;
    --secondary-color: #EC4899;
    --accent-color: #10B981;
    --bg-color: #FBE8FF;
    --surface-color: #FFFFFF;
    --text-color: #581C87;
    --text-secondary: #7C3AED;
    --border-color: #E9D5FF;
    --shadow: 0 2px 8px rgba(124,58,237,0.12);
    --shadow-lg: 0 4px 16px rgba(124,58,237,0.18);
}

/* ===== FONT FAMILIES ===== */
.font-system { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.font-georgia { font-family: Georgia, serif; }
.font-times { font-family: "Times New Roman", Times, serif; }
.font-arial { font-family: Arial, Helvetica, sans-serif; }
.font-verdana { font-family: Verdana, Geneva, sans-serif; }
.font-comic { font-family: "Comic Sans MS", cursive; }
.font-opendyslexic { font-family: OpenDyslexic, sans-serif; }
.font-century { font-family: "Century Gothic", sans-serif; }

/* ===== FONT SIZES ===== */
.size-small { --bible-font-size: 14px; }
.size-medium { --bible-font-size: 16px; }
.size-large { --bible-font-size: 18px; }
.size-xlarge { --bible-font-size: 20px; }
.size-xxlarge { --bible-font-size: 24px; }

/* ===== LINE HEIGHTS ===== */
.line-compact { --bible-line-height: 1.4; }
.line-normal { --bible-line-height: 1.6; }
.line-relaxed { --bible-line-height: 1.8; }
.line-loose { --bible-line-height: 2.0; }

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--surface-color);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    flex: 1;
}

.site-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.church-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.icon-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 1rem;
}

/* ===== DAY CARD ===== */
.day-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Semi-transparent overlay to keep text readable over images */
.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.8), rgba(66, 153, 225, 0.5));
    z-index: 0;
    border-radius: 16px;
}

/* Keep content above overlay */
.day-card > * {
    position: relative;
    z-index: 1;
}

/* Category-specific background images */
.day-card.category-epistles {
    background-image: url('images/headers/epistles.jpg');
}

.day-card.category-law {
    background-image: url('images/headers/law.jpg');
}

.day-card.category-history {
    background-image: url('images/headers/history.jpg');
}

.day-card.category-psalms {
    background-image: url('images/headers/psalms.jpg');
}

.day-card.category-poetry {
    background-image: url('images/headers/poetry.jpg');
}

.day-card.category-prophecy {
    background-image: url('images/headers/prophecy.jpg');
}

.day-card.category-gospels {
    background-image: url('images/headers/gospels.jpg');
}

.day-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    min-width: 100px;
}

.day-number .label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-number .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.day-number .date-display {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.day-info {
    flex: 1;
}

.category {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.chapters {
    font-size: 1.125rem;
    opacity: 0.95;
    margin: 0;
}

/* ===== AUDIO PLAYER ===== */
.audio-player-container {
    position: sticky;
    top: 90px;
    z-index: 90;
    margin-bottom: 1.5rem;
    transition: top 0.3s;
}

.audio-player-container.bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    margin: 0;
}

.audio-player-container.static {
    position: static;
    top: auto;
    margin-bottom: 1.5rem;
}

/* Add padding to bible content when player is at bottom to prevent text overlap */
body.player-bottom .bible-content {
    padding-bottom: 95px !important;
}

.audio-player {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: visible;
}

.player-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.play-pause {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.play-pause:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    overflow: visible;
    font-size: 0.95rem;
    line-height: 1.3;
}

.player-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.player-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.player-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.player-btn:hover {
    background: var(--bg-color);
    border-color: var(--accent-color);
}

.skip-btn {
    position: relative;
}

.skip-time {
    position: absolute;
    font-size: 0.625rem;
    font-weight: 700;
    bottom: 10px;
}

.speed-control {
    min-width: 50px;
}

#speedDisplay {
    font-size: 0.875rem;
    font-weight: 600;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
}

/* ===== BIBLE CONTENT ===== */
.bible-content {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    font-size: var(--bible-font-size, 16px);
    line-height: var(--bible-line-height, 1.6);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-style: italic;
}

.bible-passage {
    margin-bottom: 2rem;
}

.bible-passage:last-child {
    margin-bottom: 0;
}

.bible-reference {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.bible-text {
    color: var(--text-color);
}

.bible-verse {
    margin-bottom: 0.75em;
}

.verse-number {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85em;
    margin-right: 0.25em;
}

body.hide-verse-numbers .verse-number {
    display: none;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface-color);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

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

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

.modal-body {
    padding: 1.5rem;
}

/* ===== NAVIGATION MODAL ===== */
.quick-jump {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quick-jump label {
    font-weight: 600;
    color: var(--text-color);
}

.day-select {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Calendar */
.calendar-container {
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.btn-icon {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-color);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--accent-color);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-color);
    font-size: 0.875rem;
    padding: 4px;
}

.calendar-day.has-reading {
    background: var(--surface-color);
    font-weight: 600;
}

.calendar-day.empty {
    border: none;
    cursor: default;
    opacity: 0.4;
}

.calendar-day.today {
    border: 2px solid var(--accent-color);
    background: var(--accent-color);
}

/* Default text colors */
.calendar-day-number {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-color);
}

.calendar-day-label {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-top: 2px;
    color: var(--text-secondary);
}

/* Today text colors - white */
.calendar-day.today .calendar-day-number {
    color: #FFFFFF;
}

.calendar-day.today .calendar-day-label {
    color: #FFFFFF;
}

/* Hover effect - blue background */
.calendar-day:hover:not(.empty) {
    background: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Hover text colors - white (CRITICAL - must come after default) */
.calendar-day:hover:not(.empty) .calendar-day-number {
    color: #FFFFFF;
}

.calendar-day:hover:not(.empty) .calendar-day-label {
    color: #FFFFFF;
}

/* Empty cells - no hover effect */
.calendar-day.empty:hover {
    background: var(--bg-color);
    transform: none;
    box-shadow: none;
}

/* Day Grid */
.day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
}

.day-btn {
    padding: 0.75rem 0.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
}

.day-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

.day-btn.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== SETTINGS MODAL ===== */
.settings-body {
    max-height: 70vh;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.setting-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.theme-btn {
    padding: 0.75rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--text-color);
}

.theme-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.theme-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .day-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .day-number {
        min-width: auto;
    }
    
    .category {
        font-size: 1.5rem;
    }
    
    /* Mobile Audio Player Optimizations */
    .audio-player-container {
        margin-bottom: 1rem;
        top: 70px;
    }
    
    .audio-player {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .player-main {
        gap: 0.5rem;
    }
    
    .play-pause {
        width: 44px;
        height: 44px;
    }
    
    .play-pause svg {
        width: 20px;
        height: 20px;
    }
    
    .player-title {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
        line-height: 1.2;
    }
    
    .progress-bar {
        height: 5px;
    }
    
    .progress-bar::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
    
    .progress-bar::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
    
    .time-display {
        font-size: 0.7rem;
    }
    
    .player-controls {
        gap: 0.35rem;
        justify-content: space-between;
    }
    
    .player-btn {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem;
        border-radius: 6px;
    }
    
    .player-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .skip-time {
        font-size: 0.55rem;
        bottom: 1px;
    }
    
    #speedDisplay {
        font-size: 0.75rem;
    }
    
    .volume-control {
        width: 100%;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .volume-slider {
        flex: 1;
        max-width: 120px;
    }
    
    /* Ensure player doesn't take too much space */
    .audio-player-container.bottom .audio-player {
        padding: 0.6rem;
    }
    
    .bible-content {
        padding: 1.5rem 1rem;
    }
    
    /* Less padding needed on mobile for bottom player */
    body.player-bottom .bible-content {
        padding-bottom: 80px !important;
    }
    
    .calendar-grid {
        gap: 0.2rem;  /* Even smaller gap */
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    /* Fix for 3-digit day numbers on mobile - AGGRESSIVE */
    .calendar-day {
        padding: 2px;  /* Minimal padding */
        font-size: 0.7rem;
        overflow: hidden;  /* CRITICAL - hide overflow text */
        min-width: 0;  /* Allow flexbox to shrink */
    }
    
    .calendar-day-label {
        font-size: 0.45rem;  /* Very small */
        line-height: 1;
        white-space: nowrap;  /* Don't wrap */
        overflow: hidden;  /* Hide overflow */
        text-overflow: ellipsis;  /* Show ... if too long */
        max-width: 100%;
    }
    
    .calendar-day-number {
        font-size: 0.8rem;  /* Smaller number */
        line-height: 1.1;
    }
    
    .day-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
}

/* Extra compact for very small screens (iPhone SE, etc) */
@media (max-width: 400px) {
    .audio-player {
        padding: 0.6rem;
    }
    
    .play-pause {
        width: 40px;
        height: 40px;
    }
    
    .play-pause svg {
        width: 18px;
        height: 18px;
    }
    
    .player-title {
        font-size: 0.8rem;
    }
    
    .player-btn {
        min-width: 32px;
        height: 32px;
        padding: 0.35rem;
    }
    
    .player-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .time-display {
        font-size: 0.65rem;
    }
    
    #speedDisplay {
        font-size: 0.7rem;
    }
    
    /* Extra compact calendar for tiny screens - SUPER AGGRESSIVE */
    .calendar-grid {
        gap: 0.15rem;  /* Tiny gap */
    }
    
    .calendar-day {
        padding: 1px;  /* Absolute minimum */
        border-radius: 4px;  /* Smaller radius */
    }
    
    .calendar-day-label {
        font-size: 0.4rem;  /* Tiny text */
        line-height: 1;
    }
    
    .calendar-day-number {
        font-size: 0.7rem;  /* Smaller */
        line-height: 1;
    }
}

@media (min-width: 769px) {
    .main-content {
        padding: 2rem;
    }
    
    .player-main {
        flex-direction: row;
        align-items: center;
    }
    
    .player-controls {
        justify-content: flex-end;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .audio-player-container,
    .day-card {
        display: none;
    }
    
    .bible-content {
        box-shadow: none;
        border: none;
    }
}

/* Native Audio Player Styling */
.native-player-wrapper {
    margin-top: 0.75rem;
}

.speed-selector {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speed-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.speed-select {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.speed-select:hover {
    border-color: var(--accent-color);
}

.speed-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.player-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

/* Text button for Settings */
.text-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.text-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.text-btn:active {
    transform: translateY(0);
}


/* Logo styling */
.site-logo {
    max-width: 310px;
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .site-logo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        max-width: 225px;
    }
}