﻿@charset "UTF-8";

.bookPage {
    width: min(var(--plus-shell, 1180px), calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 56px;
    color: var(--plus-text, #2f261f);
}

.bookBreadcrumbs {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--plus-muted, #746454);
    font-size: 13px;
}

.bookBreadcrumbs a {
    color: var(--plus-muted, #746454);
    transition: color var(--plus-ease, 180ms ease);
}

.bookBreadcrumbs a:hover {
    color: var(--plus-accent, #8a5a26);
}

.bookBreadcrumbs em {
    max-width: 36em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
    color: var(--plus-dim, #9a8876);
}

.bookHero,
.bookScoreBar,
.bookCatalog {
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: var(--plus-radius-lg, 20px);
    background: var(--plus-surface-strong, rgba(255, 253, 248, 0.98));
    box-shadow: var(--plus-shadow, 0 6px 18px rgba(92, 66, 43, 0.06));
}

.bookHero {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
    padding: 28px;
}

.bookCover {
    width: 190px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background: var(--plus-bg-soft, #f3eadc);
    box-shadow: 0 16px 32px rgba(92, 66, 43, 0.16);
}

.bookCover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bookMeta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bookTitleBlock h1 {
    margin: 0;
    color: var(--plus-text, #2f261f);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.bookSubline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 9px;
    color: var(--plus-muted, #746454);
    font-size: 14px;
}

.bookAuthorLink {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--plus-accent, #8a5a26);
    cursor: pointer;
}

.bookAuthorLink:hover {
    color: var(--plus-coral, #b85f42);
}

.bookTags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bookTags .tag {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: 999px;
    background: rgba(255, 248, 237, 0.86);
    color: var(--plus-muted, #746454);
    font-size: 13px;
    line-height: 1;
}

.bookTags .tag-status {
    border-color: rgba(184, 95, 66, 0.24);
    background: rgba(184, 95, 66, 0.1);
    color: var(--plus-coral, #b85f42);
}

.bookStats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bookStats span {
    min-width: 112px;
    padding: 10px 14px;
    border-radius: var(--plus-radius-sm, 8px);
    background: rgba(243, 234, 220, 0.55);
    color: var(--plus-muted, #746454);
}

.bookStats strong {
    display: block;
    margin-bottom: 2px;
    color: var(--plus-accent, #8a5a26);
    font-size: 18px;
    line-height: 1;
}

.bookDesc {
    --book-desc-clamp: 112px;
    position: relative;
    max-height: var(--book-desc-clamp);
    overflow: hidden;
    padding-bottom: 34px;
    color: var(--plus-muted, #746454);
    font-size: 15px;
    line-height: 1.8;
}

.bookDesc.show {
    max-height: none;
    padding-bottom: 34px;
}

.bookDescText {
    margin: 0;
}

.showAllBtn {
    display: none;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    min-height: 28px;
    padding: 0 2px 0 18px;
    border: 0;
    background: linear-gradient(90deg, rgba(255, 253, 248, 0), var(--plus-surface-strong, #fffdf8) 18%);
    color: var(--plus-accent, #8a5a26);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.showAllBtn.is-show {
    display: inline-flex;
}

.bookDesc:not(.show)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--plus-surface-strong, #fffdf8));
}

.bookActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.bookBtn {
    min-width: 132px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0 22px;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--plus-ease, 180ms ease), box-shadow var(--plus-ease, 180ms ease), color var(--plus-ease, 180ms ease), background var(--plus-ease, 180ms ease);
}

.bookBtn:hover {
    transform: translateY(-1px);
}

.bookBtnPrimary {
    background: linear-gradient(135deg, var(--plus-coral, #b85f42), var(--plus-accent, #8a5a26));
    color: #fffaf2;
    box-shadow: 0 12px 24px rgba(184, 95, 66, 0.18);
}

.bookBtnGhost {
    border-color: var(--plus-line-strong, rgba(172, 103, 43, 0.24));
    background: rgba(255, 248, 237, 0.88);
    color: var(--plus-accent, #8a5a26);
}

.bookBtnDisabled {
    display: none;
    cursor: default;
    color: var(--plus-dim, #9a8876);
}

.bookBtnDisabled.show {
    display: inline-flex;
}

.bookActions #addBook:not(.show) {
    display: none;
}

.bookToast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 30020;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    max-width: calc(100vw - 48px);
    padding: 0 18px;
    border: 1px solid rgba(222, 164, 84, 0.28);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.96);
    color: #5c3516;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(92, 54, 20, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -42%) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bookToast.is-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.bookToastIcon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fffaf2;
    background: linear-gradient(135deg, #b96b2d, #d69a45);
    flex: none;
}

.bookToastIcon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.bookScoreBar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 16px;
    overflow: hidden;
}

.bookScoreItem {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-right: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    background: transparent;
    color: var(--plus-text, #2f261f);
    cursor: pointer;
}

.bookScoreItem:last-child {
    border-right: 0;
}

.bookScoreItem strong,
#comment_num {
    color: var(--plus-coral, #b85f42);
}

.bookScoreItem em {
    font-style: normal;
    color: var(--plus-accent, #8a5a26);
}

.bookScoreStars {
    display: inline-flex;
    gap: 2px;
    color: var(--plus-gold, #b7791f);
    font-size: 15px;
    line-height: 1;
}

.bookCatalog {
    margin-top: 16px;
    padding: 24px 28px 30px;
}

.bookSectionHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.bookSectionHead div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bookSectionHead h2 {
    margin: 0;
    color: var(--plus-text, #2f261f);
    font-size: 22px;
    line-height: 1.2;
}

.bookSectionHead span {
    color: var(--plus-dim, #9a8876);
}

.chapterSort {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(255, 248, 237, 0.86);
    color: var(--plus-accent, #8a5a26);
    cursor: pointer;
}

.chapterSort img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    transition: transform var(--plus-ease, 180ms ease);
}

.catalogNoticeFigma {
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(183, 121, 31, 0.2);
    border-radius: var(--plus-radius-sm, 8px);
    background: rgba(183, 121, 31, 0.08);
    color: var(--plus-accent, #8a5a26);
    font-size: 14px;
}

.chapterList ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bookChapterItem {
    min-width: 0;
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
}

.bookChapterLink {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--plus-text, #2f261f);
    font-size: 14px;
    transition: color var(--plus-ease, 180ms ease);
}

.bookChapterLink span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookChapterLink:hover {
    color: var(--plus-coral, #b85f42);
}

.bookChapterItem.is-locked .bookChapterLink {
    color: var(--plus-dim, #9a8876);
}

.bookChapterLock {
    flex: 0 0 auto;
    color: var(--plus-gold, #b7791f);
}

.chapterListLoadingItem,
.chapterListEmptyItem {
    grid-column: 1 / -1;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plus-muted, #746454);
}

.chapterListLoadingWrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chapterListLoadingSpinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(138, 90, 38, 0.18);
    border-top-color: var(--plus-accent, #8a5a26);
    border-radius: 50%;
    animation: bookSpin 800ms linear infinite;
}

.bookScrollTop {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 30;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

#score_pop {
    width: min(420px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: var(--plus-radius-lg, 20px);
    background: var(--plus-surface-strong, #fffdf8);
    color: var(--plus-text, #2f261f);
    box-shadow: 0 -12px 34px rgba(92, 66, 43, 0.16);
}

#score_pop .score_pop_title {
    position: relative;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    background: linear-gradient(180deg, rgba(255, 248, 237, 0.96), rgba(255, 253, 248, 0.96));
    color: var(--plus-text, #2f261f);
    font-size: 17px;
    font-weight: 700;
}

#score_pop .score_pop_close_btn {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 18px;
    height: 18px;
    padding: 3px;
    transform: translateY(-50%);
    cursor: pointer;
}

#score_pop .score_pop_close_btn path {
    fill: var(--plus-muted, #746454);
}

#score_pop .score_pop_container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 18px 22px;
}

#score_pop .score_pop_container svg {
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: transform var(--plus-ease, 180ms ease), filter var(--plus-ease, 180ms ease);
}

#score_pop .score_pop_container svg:hover {
    transform: translateY(-2px) scale(1.04);
}

#score_pop .score_pop_container svg path {
    fill: #e0d4c5;
}

#score_pop .score_pop_container svg.select path,
#score_pop .score_pop_container svg.select_50 path {
    fill: var(--plus-coral, #b85f42);
    filter: drop-shadow(0 5px 10px rgba(184, 95, 66, 0.22));
}

#score_pop .score_pop_btn_pc {
    width: calc(100% - 36px);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 18px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--plus-coral, #b85f42), var(--plus-accent, #8a5a26));
    color: #fffaf2;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(184, 95, 66, 0.18);
}

#score_pop .score_pop_btn_container {
    display: none;
    border-top: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
}

#score_pop .score_pop_btn {
    min-height: 48px;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plus-accent, #8a5a26);
    font-size: 15px;
    cursor: pointer;
}

#score_pop .score_pop_btn_border {
    width: 1px;
    background: var(--plus-line, rgba(92, 66, 43, 0.13));
}

#comment_pop {
    width: min(420px, 100vw);
    height: 86vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: var(--plus-radius-lg, 20px) var(--plus-radius-lg, 20px) 0 0;
    background: var(--plus-surface-strong, #fffdf8);
    color: var(--plus-text, #2f261f);
    box-shadow: 0 -12px 34px rgba(92, 66, 43, 0.16);
}

#comment_pop .comment_bar {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    background: linear-gradient(180deg, rgba(255, 248, 237, 0.98), rgba(255, 253, 248, 0.98));
    color: var(--plus-text, #2f261f);
    font-size: 17px;
    font-weight: 700;
}

#comment_pop .comment_bar svg {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    cursor: pointer;
}

#comment_pop .comment_bar svg path {
    fill: var(--plus-muted, #746454);
}

#comment_pop .any-else-comment {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    background: linear-gradient(180deg, #fbf7ef 0%, #fffaf3 100%);
}

#comment_pop .any-else-comment input,
#comment_pop .any-else-comment textarea {
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: var(--plus-radius-sm, 8px);
    background: var(--plus-surface-strong, #fffdf8);
    color: var(--plus-text, #2f261f);
}

#comment_pop .any-else-comment button,
#comment_pop .any-else-comment .btn,
#comment_pop .any-else-comment [class*="submit"] {
    border-radius: 999px;
    border-color: transparent;
    background: linear-gradient(135deg, var(--plus-coral, #b85f42), var(--plus-accent, #8a5a26));
    color: #fffaf2;
}

#comment_pop .any-else-comment .any-else-comment-submit-btn {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
}

#comment_pop .any-else-comment a {
    color: var(--plus-accent, #8a5a26);
}

@keyframes bookSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .bookPage {
        width: 100%;
        padding: 12px 12px 80px;
    }

    .bookBreadcrumbs {
        display: none;
    }

    .bookHero,
    .bookScoreBar,
    .bookCatalog {
        border-radius: 14px;
    }

    .bookHero {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .bookCover {
        width: 96px;
        border-radius: 8px;
    }

    .bookTitleBlock h1 {
        font-size: 20px;
    }

    .bookSubline {
        gap: 6px 10px;
        font-size: 12px;
    }

    .bookTags {
        gap: 6px;
    }

    .bookTags .tag {
        min-height: 22px;
        padding: 0 8px;
        font-size: 12px;
    }

    .bookStats {
        display: none;
    }

    .bookDesc {
        --book-desc-clamp: 106px;
        grid-column: 1 / -1;
        padding-bottom: 32px;
        font-size: 14px;
        line-height: 1.75;
    }

    .bookDesc.show {
        padding-bottom: 32px;
    }

    .bookActions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .bookBtn {
        min-width: 0;
        min-height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .bookScoreBar {
        margin-top: 12px;
    }

    .bookScoreItem {
        min-height: 54px;
        flex-direction: column;
        gap: 2px;
        font-size: 13px;
    }

    .bookScoreStars {
        display: none;
    }

    .bookCatalog {
        margin-top: 12px;
        padding: 16px 14px 18px;
    }

    .bookSectionHead h2 {
        font-size: 18px;
    }

    .catalogNoticeFigma {
        font-size: 13px;
    }

    .chapterList ul {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bookChapterLink {
        min-height: 46px;
        font-size: 14px;
    }

    .bookScrollTop {
        right: 16px;
        bottom: 72px;
        width: 38px;
        height: 38px;
    }

    #comment_pop {
        width: 100vw;
        max-width: 100vw;
        height: 88vh;
        max-height: 90vh;
        margin: auto 0 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
    }

    #comment_pop .any-else-comment {
        padding: 16px 14px 18px;
    }
}

@media (min-width: 1025px) {
    #comment_pop {
        width: min(520px, calc(100vw - 64px));
        height: 100vh;
        max-height: 100vh;
        margin: 0 0 0 auto;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 22px 0 0 22px;
        box-shadow: -22px 0 52px rgba(47, 35, 24, 0.2);
    }

    #comment_pop .comment_bar {
        min-height: 64px;
    }

    #comment_pop .any-else-comment {
        padding: 20px;
    }
}

@media (max-width: 360px) {
    .bookHero {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .bookCover {
        width: 86px;
    }

    .bookTitleBlock h1 {
        font-size: 18px;
    }
}
