.book-detail {
    --book-detail-border: #e7ebf0;
    --book-detail-muted: #6c757d;
    --book-detail-text: #273444;
    --book-detail-surface: #ffffff;
    color: var(--book-detail-text);
    font-size: 1rem;
}

.book-detail h1,
.book-detail h2,
.book-detail h3,
.book-detail dt,
.book-detail dd,
.book-detail p {
    color: inherit;
}

.book-detail p {
    margin-top: 0;
    text-indent: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.book-detail a:focus-visible,
.book-detail button:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.25);
    outline-offset: 2px;
}

.book-detail__panel {
    background: var(--book-detail-surface);
    border: 1px solid var(--book-detail-border);
    border-radius: 1rem;
    box-shadow: 0 0.35rem 1.5rem rgba(33, 37, 41, 0.05);
}

.book-detail__cover {
    display: block;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 2 / 3;
    margin-inline: auto;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.12);
}

.book-detail__cover-placeholder {
    display: flex;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 2 / 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--book-detail-border);
    border-radius: 0.75rem;
    background: #f8f9fa;
    color: var(--book-detail-muted);
}

.book-detail__cover-placeholder .material-icons {
    font-size: 3rem;
}

.book-detail__cta {
    max-width: 320px;
}

.book-detail__title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.book-detail__author {
    font-size: 1rem;
}

.book-detail__rating {
    min-height: 2rem;
}

.book-detail__rating-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b7791f;
}

.book-detail__description {
    max-width: 76ch;
    font-size: 1.05rem;
    line-height: 1.7;
}

.book-detail__meta dt,
.book-detail__meta dd {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.book-detail__meta dt {
    font-weight: 500;
    color: var(--book-detail-muted);
}

.book-detail__meta dd {
    font-weight: 500;
}

.book-detail__tag {
    padding: 0.45rem 0.7rem;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
}

.book-detail__tag:hover {
    border-color: #aeb8c2 !important;
    color: #212529;
}

.book-detail__section-header {
    border-bottom: 1px solid var(--book-detail-border);
    padding-bottom: 1rem;
}

.book-detail__section-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
}

.book-reader__content {
    max-width: 74ch;
    margin-inline: auto;
    font-size: 1.075rem;
    line-height: 1.75;
}

.book-reader__content p,
.book-review__body p {
    margin-bottom: 1.25rem;
    color: var(--book-detail-text);
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    text-indent: 0;
}

.book-reader__content p:last-child,
.book-review__body p:last-child {
    margin-bottom: 0;
}

.book-reader__pagination {
    border-top: 1px solid var(--book-detail-border);
}

.book-reader__page-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
}

.book-reader__page-number {
    font-size: 0.9rem;
    font-weight: 600;
}

.book-review__body {
    max-width: 74ch;
    font-size: 1rem;
    line-height: 1.7;
}

.book-related-list {
    display: grid;
    gap: 1rem;
}

.book-related-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.book-related-card__cover-link {
    display: block;
}

.book-related-card__cover {
    display: flex;
    width: 76px;
    aspect-ratio: 2 / 3;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f8f9fa;
    object-fit: cover;
}

.book-related-card__cover--empty {
    border: 1px solid var(--book-detail-border);
    color: var(--book-detail-muted);
}

.book-related-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.book-related-card__title a {
    color: var(--book-detail-text);
}

.book-related-card__title a:hover {
    color: #198754;
}

.book-related-card__author,
.book-related-card__rating {
    font-size: 0.82rem;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .book-related {
        position: sticky;
        top: 1rem;
    }

    .book-related-list--wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .book-related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .book-detail__panel {
        border-radius: 0.75rem;
    }

    .book-detail__title {
        font-size: 1.75rem;
    }

    .book-reader__content {
        font-size: 1rem;
        line-height: 1.65;
    }

    .book-related-list {
        grid-template-columns: 1fr;
    }

    .book-reader__pagination-layout {
        align-items: stretch !important;
    }

    .book-reader__pagination-actions {
        flex: 1 1 100%;
        justify-content: center;
    }

    .book-reader__page-number {
        order: -1;
        width: 100%;
        text-align: center;
    }
}
