/* Listening UI copied from template101_vip_plus listen/listen_pc and reader styles.
   Keep the drama namespace separate from the original player callbacks. */
@charset "UTF-8";
.drama-hidden {
    display: none !important;
}

.drama-pop_hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(108%);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes listenBars {
    0%,
    100% {
        transform: scaleY(0.34);
    }

    50% {
        transform: scaleY(1);
    }
}

.drama-listen_book_player_container {
    position: fixed;
    right: 18px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 99990;
}

.drama-listen_book_player_container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: 132px;
    min-height: 58px;
    padding: 7px 34px 7px 8px;
    border: 1px solid rgba(216, 115, 51, 0.22);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 12px 28px rgba(173, 83, 36, 0.18);
    backdrop-filter: blur(12px);
}

#drama-listen_fm {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    cursor: pointer;
    border: 2px solid #fff9ec;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(84, 58, 31, 0.18);
}

.drama-circle-progress-container {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.drama-circular-chart {
    display: block;
    width: 36px;
    height: 36px;
    transform: rotate(-90deg);
}

.drama-circle-bg {
    fill: none;
    stroke: rgba(189, 140, 83, 0.2);
    stroke-width: 3;
}

.drama-circle {
    fill: none;
    stroke: #b8792d;
    stroke-linecap: round;
    stroke-width: 3;
    transition: stroke-dasharray 0.18s ease;
}

.drama-percentage {
    position: absolute;
    inset: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: linear-gradient(135deg, #b9792e, #8f571e);
}

.drama-listen_close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 7px;
    width: 18px;
    height: 18px;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(216, 115, 51, 0.14);
    box-sizing: border-box;
}

.drama-listen_close path {
    fill: #a66a35;
}

#drama-player_mask {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 228, 181, 0.28), transparent 38%),
        rgba(42, 31, 21, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: none;
}

#drama-player_mask.drama-is-player-main {
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 231, 190, 0.34), transparent 40%),
        rgba(39, 29, 20, 0.42);
}

#drama-player_container,
#drama-player_chapter_container,
#drama-player_speed_container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99992;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 42px rgba(62, 42, 20, 0.18);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

#drama-player_container {
    min-height: 0;
    height: auto;
    max-height: min(86vh, 620px);
    padding: 18px 20px max(22px, env(safe-area-inset-bottom));
    color: #34261b;
    border: 1px solid rgba(225, 192, 145, 0.46);
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 216, 155, 0.7), transparent 34%),
        linear-gradient(180deg, #fff8ec 0%, #fffdf8 52%, #f6ead8 100%);
}

.drama-player_top_container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 38px;
    color: inherit;
    font-size: 16px;
    font-weight: 900;
}

.drama-player_top_container svg {
    position: absolute;
    left: 0;
    cursor: pointer;
}

#drama-player_container .drama-player_top_container svg {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(176, 110, 39, 0.1);
    box-sizing: border-box;
}

#drama-player_container .drama-player_top_container svg path {
    fill: #9d6327;
}

.drama-player_cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 22px auto 22px;
    text-align: center;
}

.drama-player_cover > img {
    width: min(50vw, 220px);
    aspect-ratio: 1;
    border: 7px solid rgba(255, 255, 255, 0.86);
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 22px 48px rgba(127, 84, 35, 0.22);
}

.drama-player_cover > img.drama-is-empty {
    padding: 0;
    background:
        url("/Content/template101_vip_plus/image/h5/book@2x.png") center / 34px 34px no-repeat,
        linear-gradient(145deg, #fff9ed 0%, #f3e2c9 100%);
}

.drama-player_cover > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#drama-listen_chapter_name {
    max-width: min(78vw, 420px);
    overflow: hidden;
    color: #2f241b;
    font-size: 19px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drama-player_cover > div > div {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: min(74vw, 380px);
    color: #8a7561;
    font-size: 13px;
}

#drama-listen_book_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drama-player_tool_container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
    width: min(100%, 420px);
    margin: 30px auto 0;
}

.drama-player_tool_container img {
    display: block;
    width: 44px;
    height: 44px;
    padding: 8px;
    box-sizing: border-box;
    margin: 0 auto;
    cursor: pointer;
    object-fit: contain;
    border-radius: 999px;
    background: rgba(176, 110, 39, 0.08);
    filter: brightness(0) saturate(100%) invert(35%) sepia(58%) saturate(794%) hue-rotate(352deg) brightness(91%) contrast(88%);
}

.drama-player_tool_container #drama-pop_play_btn {
    width: 58px;
    height: 58px;
    padding: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d99443 0%, #a96526 100%);
    box-shadow: 0 14px 28px rgba(168, 101, 38, 0.26);
    filter: none;
}

#drama-player_prev {
    transform: rotate(180deg);
}

#drama-player_chapter_container,
#drama-player_speed_container {
    max-height: min(78vh, 620px);
    padding: 16px 18px max(18px, env(safe-area-inset-bottom));
    color: #3a2a1c;
    background: #fffdf8;
}

#drama-player_chapter_container .drama-player_top_container,
#drama-player_speed_container .drama-player_top_container {
    color: #2f241b;
}

#drama-h5_player_chapter_list {
    max-height: calc(min(78vh, 620px) - 78px);
    margin-top: 12px;
    overflow-y: auto;
    padding-right: 2px;
}

.drama-h5_player_chapter_item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(114, 82, 45, 0.1);
    color: #594535;
    font-size: 14px;
}

.drama-h5_player_chapter_item[data-active="1"] {
    color: #a56722;
    font-weight: 700;
    background: rgba(177, 118, 49, 0.08);
}

.drama-audio-visualizer {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 20px;
    height: 18px;
    flex: 0 0 auto;
}

[data-active="1"] .drama-audio-visualizer {
    display: flex;
}

.drama-audio-visualizer .drama-bar {
    width: 3px;
    height: 14px;
    transform-origin: center bottom;
    border-radius: 999px;
    background: #b8792d;
    animation: listenBars 0.82s ease-in-out infinite;
}

.drama-audio-visualizer .drama-bar:nth-child(2) {
    animation-delay: 0.12s;
}

.drama-audio-visualizer .drama-bar:nth-child(3) {
    animation-delay: 0.24s;
}

.drama-audio-visualizer .drama-bar:nth-child(4) {
    animation-delay: 0.36s;
}

#drama-h5_speed_text {
    margin: 22px 0 28px;
    color: #7a5630;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

#drama-player_speed_container > div:last-child {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding: 0 5px;
    color: #8b7765;
    font-size: 13px;
}

.drama-range_item {
    text-align: center;
}

#drama-slider,
#drama-slider2,
#drama-slider_pc {
    width: 100%;
}

#drama-player_container .noUi-target {
    width: min(100%, 420px);
    margin: 0 auto;
    background: rgba(178, 118, 49, 0.16);
}

#drama-player_container .noUi-connect {
    background: linear-gradient(90deg, #e0a752, #ad6c2a);
}

#drama-player_container .noUi-handle {
    border-color: #fffaf0;
    background: #b8792d;
}

#drama-player_container .noUi-touch-area {
    font-size: 0;
}

#drama-player_time_text {
    width: min(100%, 420px);
    margin: 11px auto 0;
    color: #8d735a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.drama-chapterVipListenFloat {
    position: fixed;
    right: 18px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 99980;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    cursor: pointer;
    border-radius: 999px;
    color: #fff8eb;
    background: linear-gradient(135deg, #bd7a2d, #8f571e);
    box-shadow: 0 12px 26px rgba(95, 58, 21, 0.22);
}

.drama-chapterVipListenFloat img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.drama-pc_player_container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99988;
    display: none;
    align-items: center;
    justify-content: center;
    height: 72px;
    color: #fff6e5;
    background: rgba(49, 37, 29, 0.96);
    box-shadow: 0 -10px 24px rgba(39, 27, 17, 0.16);
    transition: bottom 0.2s ease;
}

.drama-player_lock_container {
    position: absolute;
    right: 18px;
    top: -30px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.drama-player_lock_container > div:first-child {
    width: 86px;
    height: 30px;
    border-radius: 14px 14px 0 0;
    background: rgba(49, 37, 29, 0.96);
}

.drama-xm-player-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 30px;
    cursor: pointer;
    border-radius: 14px 14px 0 0;
    background: rgba(49, 37, 29, 0.96);
}

.drama-xm-player-lock img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.drama-pc_player_container_inner {
    display: grid;
    grid-template-columns: 54px 34px 42px 34px minmax(220px, 1fr) 68px 34px 34px;
    align-items: center;
    gap: 16px;
    width: min(1180px, calc(100% - 40px));
    height: 100%;
}

.drama-pc_player_cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 7px 16px rgba(15, 11, 8, 0.26);
}

.drama-pc_player_container_inner img {
    display: block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    object-fit: contain;
}

.drama-pc_player_container_inner #drama-pc_play {
    width: 36px;
    height: 36px;
}

#drama-pc_prev {
    transform: rotate(180deg);
}

.drama-pc_player_container_inner > div {
    min-width: 0;
}

#drama-pc_chapter_name {
    display: block;
    max-width: 100%;
    margin-bottom: 8px;
    overflow: hidden;
    color: #fff5df;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#drama-pc_chapter_name + div {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 112px;
    align-items: center;
    gap: 12px;
}

#drama-pc_player_current_time {
    color: rgba(255, 244, 222, 0.72);
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

#drama-pc_speed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    cursor: pointer;
    border: 1px solid rgba(255, 244, 222, 0.16);
    border-radius: 999px;
    color: #ffe7bd;
    font-size: 13px;
}

.drama-pc_player_chapter_container,
.drama-pc_player_speed_container {
    position: fixed;
    z-index: 99989;
    display: none;
    border: 1px solid rgba(124, 86, 43, 0.12);
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 16px 38px rgba(53, 37, 19, 0.18);
}

.drama-pc_player_chapter_container {
    right: max(28px, calc((100vw - 1180px) / 2));
    bottom: 84px;
    width: min(720px, calc(100vw - 40px));
    overflow: hidden;
}

.drama-pc_player_chapter_container > div:first-child {
    padding: 16px 18px 10px;
    border-bottom: 1px solid rgba(124, 86, 43, 0.1);
}

.drama-pc_player_chapter_container h4 {
    margin: 0;
    color: #372719;
    font-size: 16px;
}

#drama-pc_player_chapter_scroll {
    max-height: 360px;
    overflow-y: auto;
}

.drama-pc_player_chapter_item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 150px 104px;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(124, 86, 43, 0.08);
    color: #6c5a4a;
    font-size: 13px;
}

.drama-pc_player_chapter_item:hover,
.drama-pc_player_chapter_item[data-active="1"] {
    color: #9a6126;
    background: rgba(177, 118, 49, 0.08);
}

.drama-pc_player_chapter_item > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.drama-audio-index {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a8978;
}

.drama-pc_player_chapter_item[data-active="1"] .drama-audio-index {
    display: none;
}

.drama-player_chapter_pc_name {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drama-pc_player_speed_container {
    bottom: 84px;
    min-width: 58px;
    padding: 8px;
}

.drama-pc_player_speed_container div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    cursor: pointer;
    border-radius: 9px;
    color: #6e5540;
    font-size: 13px;
}

.drama-pc_player_speed_container div:hover,
.drama-pc_player_speed_container .drama-pc_speed_active {
    color: #fff7e8;
    background: #a96b2a;
}

@media (min-width: 769px) {
    .drama-listen_book_player_container,
    #drama-player_container,
    #drama-player_chapter_container,
    #drama-player_speed_container,
    #drama-player_mask {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .drama-pc_player_container,
    .drama-pc_player_chapter_container,
    .drama-pc_player_speed_container {
        display: none !important;
    }

    #drama-player_container {
        left: 50%;
        right: auto;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: min(430px, calc(100vw - 24px));
        min-height: 0;
        height: auto;
        max-height: calc(100dvh - 28px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 14px 14px max(18px, calc(env(safe-area-inset-bottom) + 14px));
        border-radius: 26px;
        background:
            radial-gradient(circle at 50% -6%, rgba(255, 219, 160, 0.78), transparent 38%),
            linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 253, 248, 0.98) 52%, rgba(246, 234, 216, 0.98) 100%);
        box-shadow: 0 28px 70px rgba(74, 48, 22, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.82);
        transform: translateX(-50%);
    }

    #drama-player_container.drama-pop_hidden {
        transform: translateX(-50%) translateY(108%);
    }

    #drama-player_mask {
        z-index: 99991;
    }

    .drama-player_cover {
        gap: 10px;
        margin: 12px auto 14px;
    }

    .drama-player_cover > img {
        width: min(42vw, 166px);
        border-width: 6px;
        border-color: rgba(255, 255, 255, 0.88);
        border-radius: 22px;
        box-shadow: 0 18px 40px rgba(127, 84, 35, 0.22);
    }

    #drama-listen_chapter_name {
        max-width: min(72vw, 320px);
        font-size: 18px;
    }

    .drama-player_top_container {
        min-height: 36px;
        font-size: 16px;
        font-weight: 900;
    }

    .drama-player_top_container svg {
        width: 38px;
        height: 38px;
        padding: 8px;
        border-radius: 999px;
        background: rgba(255, 247, 230, 0.08);
        box-sizing: border-box;
    }

    .drama-player_tool_container {
        width: min(100%, 360px);
        gap: 8px;
        margin-top: 24px;
    }

    .drama-player_tool_container img {
        width: 44px;
        height: 44px;
        padding: 8px;
        opacity: 0.92;
    }

    .drama-player_tool_container #drama-pop_play_btn {
        width: 60px;
        height: 60px;
        padding: 14px;
        box-shadow: 0 16px 30px rgba(168, 101, 38, 0.24);
    }

    #drama-player_container .noUi-target {
        width: min(100%, 360px);
        height: 7px;
        margin-top: 4px;
        background: rgba(178, 118, 49, 0.16);
    }

    #drama-player_container .noUi-handle {
        top: -10px;
        width: 26px;
        height: 26px;
    }

    #drama-player_container .noUi-touch-area {
        font-size: 0;
    }

    #drama-player_time_text {
        width: min(100%, 360px);
        margin-top: 10px;
    }

    .drama-listen_book_player_container,
    .drama-chapterVipListenFloat {
        right: 12px;
        bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .drama-listen_book_player_container {
        min-width: 126px;
        min-height: 54px;
        padding: 6px 32px 6px 7px;
        box-shadow: 0 10px 22px rgba(173, 83, 36, 0.16);
    }

    #drama-listen_fm {
        width: 42px;
        height: 42px;
    }
}




        .bookpagebody .novalct .novalctShelfBtn .drama-icon {
            fill: none;
            stroke: currentColor;
            stroke-width: 1.9;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
    
