:root {
    color-scheme: dark;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(28, 33, 38, 0.96), rgba(14, 16, 18, 1) 52%),
        #101214;
    color: #f2f4f5;
}

.navbar {
    background: rgba(12, 14, 16, 0.88);
}

.nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.btn-icon svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.4;
}

.display-title,
.home-section-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 650;
    line-height: 1.05;
}

.presentation-body {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: var(--presentation-background, #080a0c);
    color: var(--presentation-font-color, #fff);
}

.presentation-stage,
.presentation-slide {
    width: 100vw;
    height: 100vh;
}

.presentation-slide {
    position: relative;
    display: none;
    box-sizing: border-box;
    align-items: center;
    padding: clamp(2rem, 7vw, 8rem);
}

.presentation-slide.is-active {
    display: flex;
}

.presentation-content {
    width: 100%;
    max-width: none;
    font-family: Inter, Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: var(--presentation-font-size, clamp(2rem, 5.2vw, 5.5rem));
    font-weight: 550;
    letter-spacing: -0.025em;
    line-height: 1.3;
    text-align: left;
}

.presentation-content p {
    margin: 0;
}

.presentation-slide:not(.presentation-title-slide) .presentation-content p {
    white-space: nowrap;
}

.presentation-book-reference,
.presentation-song-detail {
    color: var(--presentation-attributes-font-color, #fff);
    font-size: 0.42em;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.presentation-book-reference {
    margin-bottom: 0.7em;
    text-transform: uppercase;
}

.presentation-song-title {
    color: var(--presentation-font-color, #fff);
    margin-bottom: 0.75em !important;
}

.presentation-song-detail + .presentation-song-detail {
    margin-top: 0.25em;
}

.presentation-fullscreen {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    display: grid;
    width: 3rem;
    height: 3rem;
    padding: 0;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.4rem;
    place-items: center;
}

.presentation-fullscreen:hover,
.presentation-fullscreen:focus-visible {
    background: rgba(255, 255, 255, 0.24);
}

.presentation-fullscreen svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.presentation-progress {
    position: fixed;
    right: 1.5rem;
    bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.presentation-touch-navigation {
    display: none;
}

@media (max-width: 640px), (hover: none) {
    .presentation-touch-navigation {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
    }

    .presentation-touch-navigation button {
        width: 3rem;
        height: 3rem;
        padding: 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 1.7rem;
        line-height: 1;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        pointer-events: auto;
    }

    .presentation-progress {
        right: 50%;
        bottom: 1.9rem;
        transform: translateX(50%);
    }
}

.presentation-final-marker {
    position: absolute;
    bottom: clamp(1.5rem, 3vw, 3rem);
    left: clamp(1.5rem, 3vw, 3rem);
    width: clamp(1.25rem, 2vw, 2rem);
    aspect-ratio: 1;
    background: var(--presentation-font-color, #fff);
}

.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 460px); gap: 2rem; align-items: start; }
.theme-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.theme-presets button { color: #fff; background: var(--swatch); border: 1px solid rgba(255,255,255,.45); border-radius: .35rem; padding: .45rem .65rem; text-shadow: 0 1px 2px #000; }
.theme-presets .theme-preset-light { color: #000; border-color: rgba(0,0,0,.35); text-shadow: none; }
.presentation-theme-preview { min-height: 255px; padding: 2.25rem; color: #fff; background: #080a0c; border-radius: .5rem; font-family: Inter, Aptos, "Segoe UI", sans-serif; }
.presentation-theme-preview p { margin: 0; }.preview-book, .preview-detail { font-size: .85rem; font-weight: 600; letter-spacing: .04em; }.preview-book { margin-bottom: 1.1rem !important; text-transform: uppercase; }.preview-title { margin-bottom: 2.1rem !important; color: #fff; font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 650; letter-spacing: -.035em; }.preview-detail + .preview-detail { margin-top: .35rem !important; }
@media (max-width: 760px) { .settings-layout { grid-template-columns: 1fr; } }

.login-shell {
    max-width: 420px;
    margin-top: 10vh;
    padding: 2rem;
    background: #181c20;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.option-tile {
    position: relative;
    display: flex;
    align-items: end;
    min-height: 75px;
    padding: 1rem 1.25rem;
    color: #fff;
    text-decoration: none;
    background: #1b2228;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.option-tile:hover,
.option-tile:focus {
    color: #fff;
    background: #222b33;
    border-color: rgba(117, 183, 255, 0.7);
    transform: translateY(-2px);
}

.option-tile span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.35rem;
    font-weight: 650;
}

.option-tile-search {
    background: #34414d;
}

.option-tile-sing-psalms {
    background: #1d4568;
}

.option-tile-book-of-praise {
    background: #523963;
}

.option-tile-supplement {
    background: #25594c;
}

.option-tile-additional {
    background: #69502a;
}

.option-tile-search:hover,
.option-tile-search:focus {
    background: #405264;
}

.option-tile-sing-psalms:hover,
.option-tile-sing-psalms:focus {
    background: #27577f;
}

.option-tile-book-of-praise:hover,
.option-tile-book-of-praise:focus {
    background: #65487a;
}

.option-tile-supplement:hover,
.option-tile-supplement:focus {
    background: #2d6b5b;
}

.option-tile-additional:hover,
.option-tile-additional:focus {
    background: #806236;
}

.song-list .list-group-item {
    display: grid;
    grid-template-columns: minmax(4.5rem, 7rem) 1fr minmax(0, 14rem);
    gap: 1rem;
    align-items: center;
    background: rgba(25, 29, 33, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
}

.search-results .list-group-item {
    grid-template-columns: minmax(0, 14rem) minmax(4.5rem, 7rem) 1fr;
}

.song-list .list-group-item:hover,
.song-list .list-group-item:focus {
    background: #222930;
}

.song-reference {
    color: #9ec5fe;
    font-weight: 700;
}

.song-title {
    font-weight: 600;
}

.song-meta,
.song-detail-meta {
    color: #adb5bd;
    font-size: 0.95rem;
}

.song-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.song-reference-kicker {
    color: #9ec5fe;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.song-page {
    max-width: 760px;
}

.lyrics {
    font-size: 1.18rem;
    line-height: 1.75;
}

.lyric-line {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    margin: 0;
}

.verse-number {
    color: #9ec5fe;
    font-size: 0.8em;
    font-weight: 700;
    padding-top: 0.18rem;
}

.stanza-break {
    height: 1.25rem;
}

.note-line {
    color: #ced4da;
    font-style: italic;
    margin: 0 0 1rem;
}

.copyright-line {
    margin-top: 2rem;
    color: #8f979e;
    font-size: 0.95rem;
}

.empty-state {
    padding: 2rem;
    color: #adb5bd;
    background: rgba(25, 29, 33, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.category-item-jump {
    display: flex;
    gap: 0.5rem;
}

.category-item-jump input {
    width: 6.5rem;
}

@media (max-width: 640px) {
    .song-list .list-group-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .lyrics {
        font-size: 1.08rem;
    }
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.setup-panel {
    padding: 1.25rem;
    background: rgba(25, 29, 33, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.status-list div {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-list div:first-child {
    border-top: 0;
}

.status-list dt,
.status-list dd {
    margin: 0;
}

.status-list dd {
    color: #ced4da;
}

.lyric-line > span:last-child {
    grid-column: 2;
}

.chorus-label {
    display: inline-block;
    margin: 1rem 0 0.4rem 2.25rem;
    color: #9ec5fe;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.chorus-label-placeholder {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.chorus-line {
    font-style: italic;
}

.nominations-card {
    padding: 1.25rem;
    background: rgba(25, 29, 33, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.option-tile-cover {
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    object-fit: cover;
}

.option-tile:has(.option-tile-cover) {
    align-items: stretch;
    min-height: 104px;
    padding: 0;
}

.option-tile:has(.option-tile-cover) span {
    flex: 1;
    align-items: flex-end;
    padding: 1rem 1.25rem;
}

.book-cover-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.book-cover-admin-card {
    display: flex;
    flex-direction: column;
}

.book-cover-preview {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    object-fit: cover;
    background: #151a1f;
    border-radius: 5px;
}

.book-cover-placeholder {
    display: grid;
    place-items: center;
    color: #7b858e;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.book-cover-placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
}

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

.btn-download-slides {
    color: #fff;
    background: #d24726;
    border-color: #d24726;
}

.btn-download-slides:hover,
.btn-download-slides:focus-visible {
    color: #fff;
    background: #b9381b;
    border-color: #b9381b;
}

.nomination-like-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nomination-like-count {
    display: inline-grid;
    min-width: 1.5rem;
    min-height: 1.5rem;
    place-items: center;
    padding: 0 0.35rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    background: #0d6efd;
    border-radius: 999px;
}

.btn-outline-primary .nomination-like-count {
    background: #0d6efd;
}

@media (max-width: 640px) {
    .nominations-card a {
        font-size: 0.92rem;
    }
}

.now-singing-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #1f4d3b, #28634b);
    border: 1px solid rgba(116, 200, 151, 0.65);
    border-radius: 8px;
}

@media (max-width: 640px) {
    .now-singing-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

.option-tile-nominations {
    background: #755b16;
}

.option-tile-nominations:hover,
.option-tile-nominations:focus {
    background: #92721c;
}

.nominations-list {
    padding: 0;
    overflow: hidden;
}

.nominations-list > .nomination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nominations-list > .nomination-row:first-child {
    border-top: 0;
}

.nomination-link {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(3.5rem, 5rem) 1fr;
    gap: 0.75rem;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.nomination-link:hover .song-title,
.nomination-link:focus .song-title {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .nominations-list > .nomination-row {
        align-items: flex-start;
    }

    .nomination-link {
        grid-template-columns: max-content 1fr;
        gap: 0.15rem 0.5rem;
    }

    .nomination-link .song-title {
        grid-column: 1 / -1;
    }
}

.recent-songs-list {
    padding: 0;
    overflow: hidden;
}

.recent-song-row {
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-song-row:first-child {
    border-top: 0;
}

.recent-song-link {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(3.5rem, 5rem) 1fr;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.recent-song-link:hover .song-title,
.recent-song-link:focus .song-title {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .recent-song-link {
        grid-template-columns: max-content 1fr;
        gap: 0.15rem 0.5rem;
    }

    .recent-song-link .song-title {
        grid-column: 1 / -1;
    }
}

.recent-song-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.recent-song-link {
    flex: 1;
}

@media (max-width: 640px) {
    .recent-song-row {
        align-items: flex-start;
    }
}

.category-song-list .list-group-item {
    grid-template-columns: minmax(4.5rem, 7rem) 1fr;
}

.category-song-list .song-reference {
    grid-column: 1;
    grid-row: 1;
}

.category-song-list .song-meta {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
}

.category-song-list .song-title {
    grid-column: 1 / -1;
    grid-row: 2;
}

@media (max-width: 640px) {
    .category-song-list .list-group-item {
        grid-template-columns: minmax(4rem, max-content) 1fr;
    }

    .category-song-list .song-title {
        grid-column: 1 / -1;
    }
}
