html, body {
    margin: 0;
    padding: 0;
    background-color: #121212;
}

/* Prevent horizontal scroll */
.mud-main-content {
    overflow-x: hidden;
}

/* Locked chapter row style */
.chapter-locked {
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* Reader images — crisp rendering */
#reader-container img {
    image-rendering: auto;
    max-width: 100%;
}

/* MudDataGrid row pointer */
.cursor-pointer td {
    cursor: pointer;
}

/* Novel drawer layout: Add Novel → scrollable list → NSFW toggle pinned at bottom */
.mud-drawer .mud-drawer-content {
    height: 100%;
}

.novel-drawer-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.novel-drawer-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.novel-drawer-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Reader bottom nav — sticky mode toggled by tapping an image */
.reader-nav-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    border-radius: 0 !important;
}

/* Error boundary */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}
