.hbc-book {
    --hbc-book-blue: #2d5ea8;
    --hbc-book-blue-2: #3f7fe0;
    --hbc-book-bg: #f9f5e9;
    --hbc-book-text: #444;
    --hbc-book-border: #dfe6f2;
    position: relative;
    background: var(--hbc-book-bg);
    padding: 20px;
    overflow: hidden;
}

.hbc-book::before,
.hbc-book::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* .hbc-book::before {
    width: 220px;
    height: 220px;
    background: rgba(255, 225, 108, 0.45);
    right: 110px;
    top: 10px;
}

.hbc-book::after {
    width: 260px;
    height: 260px;
    border: 2px solid rgba(81, 196, 255, 0.6);
    right: 170px;
    top: 40px;
} */

.hbc-book-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 530px);
    align-items: center;
    gap: 24px;
    padding-bottom: 30px;
}

.hbc-book-hero-content {
    position: relative;
    z-index: 1;
}

.hbc-book-title {
    margin: 0 0 14px;
    color: #2f2f2f;
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
}

.hbc-book-title-link {
    color: inherit;
    text-decoration: none;
}

.hbc-book-description {
    margin: 0 0 16px;
    max-width: 560px;
    color: var(--hbc-book-text);
    font-size: 1rem;
    line-height: 1.7;
}

.hbc-book-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hbc-book-blue-2);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.hbc-book-author-icon {
    font-size: 1rem;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hbc-book-author-icon-img {
    object-fit: contain;
}

.hbc-book-actions,
.hbc-book-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hbc-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid var(--hbc-book-blue-2);
    text-decoration: none;
    background: #fff;
    color: var(--hbc-book-blue);
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.hbc-book-btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.hbc-book-btn-label {
    line-height: 1;
}

.hbc-book-btn-read {
    border-color: var(--hbc-book-blue-2);
}

.hbc-book-btn-unavailable {
    border-style: dashed;
}

.hbc-book-btn-audio {
    border-color: #f0bf41;
}

.hbc-book-hero-visual {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hbc-book-cover-large {
    position: relative;
    z-index: 3;
    width: min(78%, 280px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
    transform: rotate(-6deg);
    width: 100%;
}

.hbc-book-cover-link {
    display: block;
}

.hbc-book-cover-fallback {
    background: linear-gradient(135deg, #c8d8f0, #88b2eb);
    min-height: 340px;
}

.hbc-book-shape-one,
.hbc-book-shape-two {
    position: absolute;
    border-radius: 50%;
}

.hbc-book-shape-one {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(64, 209, 255, 0.75);
    top: 38px;
    right: 120px;
    z-index: 1;
}

.hbc-book-shape-two {
    width: 210px;
    height: 210px;
    background: rgba(255, 226, 125, 0.55);
    top: 24px;
    right: 42px;
    z-index: 0;
}

.hbc-book-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.hbc-book-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
}

.hbc-book-card-cover {
    width: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.hbc-book-card-content {
    padding-top: 8px;
}

.hbc-book-card-title {
    margin: 0 0 8px;
    font-size: 1.02rem;
    color: #2f2f2f;
    font-weight: 700;
}

.hbc-book-card-title a {
    color: inherit;
    text-decoration: none;
}

.hbc-book-page-title {
    color: #0c55b8;
    font-size: 2rem;
    margin: 6px 0 18px;
}

.hbc-book-detail-main {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding: 0 8%;
}

.hbc-book-detail-cover {
    width: 100%;
    min-height: 250px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hbc-book-detail-title {
    margin: 0 0 14px;
    font-size: 2rem;
    text-transform: uppercase;
    color: #202020;
}

.hbc-book-detail-meta {
    margin: 0 0 20px;
}

.hbc-book-detail-meta div {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    color: #333;
}

.hbc-book-detail-meta dt {
    min-width: 120px;
    font-weight: 600;
}

.hbc-book-detail-meta dd {
    margin: 0;
}

.hbc-book-detail-description {
    margin-top: 30px;
}

.hbc-book-detail-description h4,
.hbc-book-detail-related h4 {
    color: #0c55b8;
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.hbc-book-detail-description p {
    margin: 0;
    color: #2a2a2a;
    line-height: 1.7;
}

.hbc-book-detail-related {
    margin-top: 30px;
}

.hbc-book-reader {
    background: var(--hbc-book-bg);
}

.hbc-book-reader-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hbc-book-reader-back {
    color: var(--hbc-book-blue-2);
    text-decoration: none;
    font-weight: 600;
}

.hbc-book-reader-title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    color: #1f1f1f;
}

.hbc-book-reader-stage {
    margin-top: 18px;
    background: #f7f5ee;
    border: 1px solid var(--hbc-book-border);
    min-height: 640px;
    position: relative;
}

.hbc-book-flipbook {
    width: 100%;
    min-height: 840px;
}

.hbc-book-reader-fallback {
    width: 100%;
    min-height: 840px;
    border: 0;
    display: none;
}

.hbc-book-reader-stage.is-fallback .hbc-book-reader-fallback {
    display: block;
}

.hbc-book-reader-stage.is-fallback .hbc-book-flipbook {
    display: none;
}

.hbc-book-flipbook canvas {
    height: 790px !important;
}

.hbc-book-audio-detail {
    padding-bottom: 0;
}

.hbc-book-audio-sticky-player {
    margin-top: 24px;
    background: #d6e4f5;
    border-top: 1px solid #bfd2ef;
    border-radius: 6px;
    padding: 12px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hbc-book-audio-sticky-player.is-hidden {
    display: none;
}

.hbc-book-audio-top-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(320px, 1fr) minmax(160px, 220px);
    align-items: center;
    gap: 10px;
}

.hbc-book-audio-book {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hbc-book-audio-book-cover {
    width: 44px;
    height: 62px;
    object-fit: cover;
    display: block;
}

.hbc-book-audio-book-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #1a325f;
}

.hbc-book-audio-book-meta strong {
    font-size: 0.95rem;
}

.hbc-book-audio-book-meta span {
    font-size: 0.86rem;
}

.hbc-book-audio-center-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hbc-book-audio-right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.hbc-book-audio-sticky-player.is-meta-collapsed .hbc-book-audio-book-meta {
    display: none;
}

.hbc-book-player-btn {
    border: 0;
    background: transparent;
    color: #1f4a8f;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.hbc-book-player-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hbc-book-player-speed {
    width: auto;
    min-width: 46px;
    height: 26px;
    border-radius: 999px;
    background: transparent;
    font-size: 1rem;
    color: #1f4a8f;
}

.hbc-book-player-play {
    width: 38px;
    height: 38px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 59, 117, 0.2);
}

.hbc-book-player-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.hbc-book-player-icon-fallback {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #1f4a8f;
}

.hbc-book-player-play .hbc-book-player-icon-fallback {
    font-size: 15px;
}

.hbc-book-icon-pause,
.hbc-book-icon-mute {
    display: none;
}

.hbc-book-icon-play,
.hbc-book-icon-pause,
.hbc-book-icon-volume,
.hbc-book-icon-mute {
    align-items: center;
    justify-content: center;
}

.hbc-book-audio-sticky-player.is-playing .hbc-book-icon-play {
    display: none;
}

.hbc-book-audio-sticky-player.is-playing .hbc-book-icon-pause {
    display: inline-flex;
}

.hbc-book-audio-sticky-player.is-muted .hbc-book-icon-volume {
    display: none;
}

.hbc-book-audio-sticky-player.is-muted .hbc-book-icon-mute {
    display: inline-flex;
}

.hbc-book-volume-range,
.hbc-book-progress-range {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.hbc-book-volume-range {
    width: 84px;
}

.hbc-book-progress-range {
    width: 100%;
}

.hbc-book-volume-range::-webkit-slider-runnable-track,
.hbc-book-progress-range::-webkit-slider-runnable-track {
    height: 3px;
    background: #89aada;
    border-radius: 999px;
}

.hbc-book-volume-range::-moz-range-track,
.hbc-book-progress-range::-moz-range-track {
    height: 3px;
    background: #89aada;
    border-radius: 999px;
}

.hbc-book-volume-range::-webkit-slider-thumb,
.hbc-book-progress-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f4a8f;
    margin-top: -3px;
}

.hbc-book-volume-range::-moz-range-thumb,
.hbc-book-progress-range::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: #1f4a8f;
}

.hbc-book-audio-progress-row {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
}

.hbc-book-time-current,
.hbc-book-time-duration {
    color: #1f4a8f;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.hbc-book-audio-sticky-player .hbc-book-audio-element {
    display: none;
}

.hbc-book-read-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.hbc-book-read-modal.is-open {
    display: flex;
}

.hbc-book-read-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hbc-book-read-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(90vw, 420px);
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.hbc-book-read-modal-dialog p {
    margin: 0;
    color: #1d2430;
    font-size: 1rem;
    line-height: 1.6;
    padding-right: 24px;
}

.hbc-book-read-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #4a5569;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.hbc-book-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hbc-book-mini-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.hbc-book-mini-cover {
    width: 100%;
    min-height: 130px;
    object-fit: cover;
    display: block;
}

.hbc-book-mini-content h5 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    line-height: 1.35;
}

.hbc-book-mini-content h5 a {
    color: #222;
    text-decoration: none;
}

.hbc-book-card-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hbc-book-blue-2);
    font-size: 0.86rem;
    margin-bottom: 16px;
}

.hbc-book-post-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hbc-book-post-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hbc-book-border);
    overflow: hidden;
}

.hbc-book-post-cover-link {
    display: block;
}

.hbc-book-post-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.hbc-book-post-content {
    padding: 12px;
}

.hbc-book-post-title {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.36;
}

.hbc-book-post-title a {
    color: var(--hbc-book-blue);
    text-decoration: none;
}

.hbc-book-post-excerpt {
    margin: 0 0 10px;
    color: var(--hbc-book-text);
    line-height: 1.55;
    font-size: 0.92rem;
}

.hbc-book-post-link {
    color: var(--hbc-book-blue-2);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .hbc-book-hero {
        grid-template-columns: 1fr;
    }

    .hbc-book-related,
    .hbc-book-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hbc-book-detail-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 780px) {
    .hbc-book {
        padding: 14px;
    }

    .hbc-book-related,
    .hbc-book-post-grid {
        grid-template-columns: 1fr;
    }

    .hbc-book-card {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .hbc-book-hero-visual {
        min-height: 280px;
    }

    .hbc-book-cover-large {
        width: min(70%, 230px);
    }

    .hbc-book-detail-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hbc-book-detail-cover-wrap {
        max-width: 230px;
    }

    .hbc-book-detail-related-grid {
        grid-template-columns: 1fr;
    }

    .hbc-book-mini-card {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .hbc-book-reader-stage,
    .hbc-book-flipbook,
    .hbc-book-reader-fallback {
        min-height: 520px;
    }

    .hbc-book-audio-sticky-player {
        padding: 12px;
    }

    .hbc-book-audio-top-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hbc-book-audio-center-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hbc-book-audio-right-controls {
        justify-content: flex-start;
    }
}
