body {
    padding-bottom: 40px;
    overflow-x: hidden;
    overflow-y: auto; /* explicitně */
}
main {
    padding-top: 0;
}


.navbar-brand { font-weight:700; }

.books-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

.books-scroll .navbar-nav {
    flex-wrap: nowrap;
}

.books-scroll .nav-item {
    white-space: nowrap;
}

.book-active { font-weight:700; text-decoration: underline; }
.album-card {
    color: wheat;
    background-color: gray;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1030;

    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    padding: 0.5rem;

    width: 100%;
    max-width: 100%;
    overflow-x: hidden;

    background-color: #f8f9fa;
}


.header-brand {
    grid-row: 1 / 3;          /* ← přes oba řádky */
    display: flex;
    align-items: center;
}

.header-top {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;      /* KLÍČOVÉ */
}
.header-top .navbar {
    min-width: 0;
    flex: 1 1 auto;
}

.brand-text {
    font-weight: 700;
    white-space: nowrap;
}


.header-bottom {
    grid-column: 2;
}

.header-logo {
    height: 64px;
    width: auto;
    max-width: 100%;
}

.books-scroll a { display:inline-block; margin-right:8px; padding:6px; }
/* horizontální scroll knih */
.books-scroll {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.header-bottom > .d-flex {
    min-width: 0; /* ← extrémně důležité */
}

.search-panel {
    position: fixed;
    top: var(--header-height, 0px);
    left: 0;
    right: 0;

    z-index: 1025; /* těsně pod headerem (1030) */

    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,.08);
}

.album-item {
    display: none;
}
.album-item.visible {
    display: block;
}