.hbc-book-audio {
    --hbc-book-audio-blue: #0c55b8;
    --hbc-book-audio-bg: #e9f0fb;
    padding: 20px 10px;
    background: transparent;
}

.hbc-book-audio-title {
    margin: 0 0 18px;
    color: var(--hbc-book-audio-blue);
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 700;
}

.hbc-book-audio-carousel {
    overflow: hidden;
}

.hbc-book-audio-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.hbc-book-audio-track::-webkit-scrollbar {
    display: none;
}

.hbc-book-audio-card {
    min-width: calc((100% - 42px) / 4);
    background: #dbe7f7;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid #c8d9f2;
}

.hbc-book-audio-card.is-no-cover {
    background: #e2ebf7;
}

.hbc-book-audio-cover-wrap {
    aspect-ratio: 16 / 9;
    background: #c8d8f0;
}

.hbc-book-audio-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hbc-book-audio-cover-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b8cdef, #8cb2e5);
}

.hbc-book-audio-body {
    padding: 10px 12px 12px;
}

.hbc-book-audio-card.is-no-cover .hbc-book-audio-body {
    padding-top: 12px;
}

.hbc-book-audio-card-title {
    margin: 0 0 2px;
    color: #0c55b8;
    font-size: 1rem;
    font-weight: 700;
}

.hbc-book-audio-card-author {
    margin: 0 0 10px;
    color: #5b677a;
    font-size: 0.88rem;
}

.hbc-book-audio-time-row {
    display: flex;
    justify-content: space-between;
    color: #6c7485;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.hbc-book-audio-progress {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0 0 8px;
}

.hbc-book-audio-progress::-webkit-slider-runnable-track {
    height: 3px;
    background: #8fb0de;
    border-radius: 99px;
}

.hbc-book-audio-progress::-moz-range-track {
    height: 3px;
    background: #8fb0de;
    border-radius: 99px;
}

.hbc-book-audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hbc-book-audio-blue);
    margin-top: -3px;
}

.hbc-book-audio-progress::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: var(--hbc-book-audio-blue);
}

.hbc-book-audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hbc-book-audio-controls-side {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hbc-book-audio-controls-left {
    justify-content: flex-end;
}

.hbc-book-audio-controls-right {
    justify-content: flex-start;
}

.hbc-book-audio-btn {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 99px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #184f9d;
    padding: 0;
}

.hbc-book-audio-btn.is-play {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #9db8e1;
    flex-shrink: 0;
}

.hbc-book-audio-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hbc-book-audio-btn.is-play:hover {
    background: #fff;
}

.hbc-book-audio-icon-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.hbc-book-audio-icon-fallback {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.hbc-book-audio-btn .icon-pause {
    display: none;
}

.hbc-book-audio-btn .icon-mute {
    display: none;
}

.hbc-book-audio-card.is-playing .hbc-book-audio-btn .icon-play {
    display: none;
}

.hbc-book-audio-card.is-playing .hbc-book-audio-btn .icon-pause {
    display: inline-flex;
}

.hbc-book-audio-card.is-muted .hbc-book-audio-btn .icon-volume {
    display: none;
}

.hbc-book-audio-card.is-muted .hbc-book-audio-btn .icon-mute {
    display: inline-flex;
}

.hbc-book-audio-btn.is-active {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #9db8e1;
}

.hbc-book-audio-element {
    display: none;
}

.hbc-book-audio-nav {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.hbc-book-audio-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 99px;
    border: 1px solid #9db8e1;
    background: #f4f8ff;
    color: #2762b0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.hbc-book-audio-nav-btn .hbc-book-audio-icon-img {
    width: 12px;
    height: 12px;
}

@media (max-width: 1100px) {
    .hbc-book-audio-card {
        min-width: calc((100% - 14px) / 2);
    }
}

@media (max-width: 680px) {
    .hbc-book-audio-card {
        min-width: 100%;
    }
}
