:root {
    --bg: #071018;
    --panel: #0d1824;
    --panel-light: #132233;
    --text: #e8f1f8;
    --muted: #8aaabe;
    --border: #22384f;
    --accent: #7dd3fc;
    --accent-soft: rgba(125, 211, 252, 0.12);
    --danger: #f87171;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--panel);
    padding: 18px 24px;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.site-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.button {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
}

.button:hover {
    text-decoration: none;
    background: rgba(125, 211, 252, 0.18);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 760px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

.reader-controls {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.reader-controls label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.reader-controls select {
    background: var(--panel-light);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 180px;
    font-size: 1rem;
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.chapter-header h1 {
    margin: 0;
    text-align: center;
}

.chapter-header p {
    margin: 4px 0 0;
    text-align: center;
}

.reader-card {
    font-size: 1.08rem;
}

.verses {
    max-width: 850px;
    margin: 0 auto;
}

.verse {
    margin: 0 0 14px;
    padding: 8px 10px;
    border-radius: 10px;
}

.verse:hover {
    background: rgba(255, 255, 255, 0.04);
}

.verse-number {
    display: inline-block;
    min-width: 32px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    vertical-align: top;
}

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

@media (max-width: 760px) {
    .chapter-header {
        flex-direction: column;
    }

    .chapter-header .button {
        width: 100%;
        text-align: center;
    }

    .reader-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reader-controls select {
        width: 100%;
    }
}

.reader-bottom-nav {
    max-width: 850px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 760px) {
    .reader-bottom-nav {
        flex-direction: column;
    }

    .reader-bottom-nav .button {
        width: 100%;
        text-align: center;
    }
}