/* Elephant Audiobooks — audiobook detail/player page styles
 * Extracted from the server-rendered view so repeat navigation can reuse browser cache.
 * Rule order is intentionally preserved from the original page.
 */

/* --- original style block 1 --- */
body {
    background: #050509;
}

main {
    background:
        radial-gradient(circle at 20% 8%, rgba(124,58,237,.18), transparent 34rem),
        radial-gradient(circle at 84% 28%, rgba(219,39,119,.12), transparent 30rem),
        #050509;
    color: #f8fafc;
}

.footer {
    margin-top: 0;
}

.show-shell {
    max-width: 1720px;
}

.show-shell .breadcrumb a {
    color: #c084fc;
    text-decoration: none;
}

.show-shell .breadcrumb-item,
.show-shell .breadcrumb-item.active,
.show-shell .breadcrumb-item::before {
    color: rgba(255,255,255,.5) !important;
}

.show-layout {
    display: grid;
    grid-template-columns: minmax(360px, 46%) minmax(440px, 54%);
    gap: 3rem;
    align-items: start;
}

.show-left {
    position: sticky;
    top: 92px;
    min-height: calc(100vh - 112px);
}

.show-cover {
    width: min(620px, 82%);
    aspect-ratio: 1 / 1;
    margin: 0 auto 2rem;
    border-radius: 2px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 32px 90px rgba(0,0,0,.65);
}

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

.show-title-block {
    max-width: 760px;
}

.story-rank {
    display: inline-flex;
    align-items: center;
    padding: .45rem .65rem;
    background: #ff244d;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.3rem;
}

/* Critical detail-page styles live early to prevent refresh-time FOUC. */
.show-left h3 {
    font-family: Inter, Poppins, Arial, sans-serif !important;
    font-size: clamp(3rem, 3.35vw, 3.45rem) !important;
    line-height: 1.08 !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    color: #fff !important;
    margin: 0 0 1.15rem !important;
    text-shadow: 0 10px 34px rgba(0,0,0,.35) !important;
}

.show-left .d-flex.flex-wrap.gap-2 {
    gap: .65rem !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

.detail-play-hero-btn,
#favoriteBtn {
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Inter, Poppins, Arial, sans-serif !important;
    font-size: .98rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.detail-play-hero-btn {
    min-width: 148px !important;
    padding: 0 1.55rem !important;
    border: 0 !important;
    gap: .35rem !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 28% 10%, rgba(255,255,255,.22), transparent 30%),
        linear-gradient(135deg, #a855f7 0%, #d946ef 45%, #e11d48 100%) !important;
    box-shadow:
        0 12px 28px rgba(217,70,239,.28),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}

#favoriteBtn {
    min-width: 126px !important;
    padding: 0 1.25rem !important;
    border: 2px solid rgba(255,255,255,.22) !important;
    color: rgba(255,255,255,.88) !important;
    background: rgba(255,255,255,.035) !important;
    gap: .3rem !important;
}

.show-title-block h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5.4rem);
    line-height: .98;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 1.25rem;
}

.show-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    color: #8f8f98;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.show-meta-row .plays {
    color: #ffc400;
}

.show-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: .2rem .6rem;
    color: #fff;
}

.show-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .28rem .7rem;
    color: #d8b4fe;
    background: rgba(124,58,237,.18);
    border: 1px solid rgba(192,132,252,.24);
}

.show-description {
    max-height: none;
    overflow: visible;
    color: rgba(255,255,255,.58);
    font-size: 1.05rem;
    line-height: 1.55;
    padding-right: 0;
}

.show-description.expanded {
    max-height: none;
}

.read-more-btn {
    display: none;
    border: 0;
    background: transparent;
    color: #d8b4fe;
    padding: 0;
    font-weight: 700;
    text-decoration: underline;
}

.show-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin: 1.4rem 0;
}

.listen-now-btn {
    min-width: 190px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .9rem 1.6rem;
    font-weight: 800;
    box-shadow: 0 18px 38px rgba(124,58,237,.35);
}

.listen-now-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.show-action-btn {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #f8fafc;
    border-radius: 999px;
    padding: .85rem 1.1rem;
    font-weight: 700;
}

.show-action-btn:hover {
    color: #fff;
    border-color: rgba(192,132,252,.75);
    background: rgba(124,58,237,.24);
}

.player-card {
    background: rgba(17,17,27,.78);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,.34);
}

#playerContainer {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.player-card .btn-light {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

.tab-card {
    background: rgba(18,18,24,.94);
    border: 1px solid rgba(255,255,255,.08);
    min-height: calc(100vh - 112px);
    padding: 0 0 2rem;
}

.show-tabs {
    position: sticky;
    top: 76px;
    z-index: 5;
    display: flex;
    gap: 2rem;
    padding: 2rem 2rem 0;
    background: rgba(18,18,24,.96);
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.show-tabs .nav-link {
    position: relative;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.46);
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    padding: 0 0 1rem;
    letter-spacing: 0;
}

.show-tabs .nav-link sup {
    font-size: .48em;
    top: -.75em;
    color: rgba(255,255,255,.48);
}

.show-tabs .nav-link.active {
    color: #fff;
    background: transparent;
}

.show-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #c084fc, #db2777);
    box-shadow: 0 -8px 22px rgba(168,85,247,.45);
}

.tab-pane-inner {
    padding: 2rem;
}

.episode-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #c084fc;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.episode-toolbar a {
    color: #c084fc;
    text-decoration: none;
}

.episode-list {
    display: grid;
    gap: .2rem;
}

.episode-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    background: transparent;
    cursor: default;
}

.episode-row:hover,
.episode-row.active {
    background: rgba(124,58,237,.12);
}

.episode-number {
    color: rgba(255,255,255,.54);
    font-weight: 800;
    font-size: 1.2rem;
}

.episode-copy h3 {
    margin: 0 0 .35rem;
    color: #f8fafc;
    font-size: 1.2rem;
    line-height: 1.25;
}

.episode-copy p {
    margin: 0;
    color: rgba(255,255,255,.42);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.episode-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.episode-play,
.episode-download {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    background: transparent;
    text-decoration: none;
}

.episode-play:hover,
.episode-download:hover {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
}

.details-grid {
    display: grid;
    gap: 2rem;
}

.detail-block {
    border-top: 1px dashed rgba(255,255,255,.18);
    padding-top: 2rem;
}

.detail-block h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 1.3rem;
    text-transform: uppercase;
}

.detail-block p,
.detail-block li,
.fact-list div {
    color: rgba(255,255,255,.55);
    font-size: 1.05rem;
    line-height: 1.7;
}

.fact-list {
    display: grid;
    gap: .45rem;
}

.fact-list strong {
    color: rgba(255,255,255,.7);
}

.review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(255,255,255,.15);
}

.review-score {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .8rem;
    color: #fff;
}

.review-score strong {
    font-size: 4rem;
    line-height: 1;
}

.review-score span {
    color: rgba(255,255,255,.85);
    font-size: 1.4rem;
}

#reactionsSection,
#commentsSection,
#reactionsSection .card-body,
#commentsSection .card-body {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding-left: 0;
    padding-right: 0;
}

#reactionsSection,
#commentsSection {
    color: #fff;
}

.reaction-btn {
    border-color: rgba(255,255,255,.18) !important;
    color: #f8fafc !important;
    background: rgba(255,255,255,.05) !important;
}

.reaction-btn.active,
.reaction-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #db2777) !important;
    color: #fff !important;
}

.comment-item {
    border-color: rgba(255,255,255,.1) !important;
    color: #fff;
}

.comment-item:hover {
    background: rgba(255,255,255,.04) !important;
}

.comment-author {
    color: #d8b4fe !important;
}

.comment-time,
.comment-content,
.form-text {
    color: rgba(255,255,255,.56) !important;
}

#commentContent,
.comment-content textarea {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

#commentContent::placeholder {
    color: rgba(255,255,255,.36);
}

.page-link {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #d8b4fe;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-color: transparent;
}

.scroll-nav {
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124,58,237,.4);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124,58,237,.5);
}

.scroll-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .show-layout {
        grid-template-columns: 1fr;
    }

    .show-left {
        position: relative;
        top: auto;
        min-height: auto;
    }

    .show-cover {
        width: min(460px, 100%);
    }

    .tab-card {
        min-height: auto;
    }

    .show-tabs {
        top: 66px;
        overflow-x: auto;
        gap: 1.4rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .scroll-nav {
        bottom: 70px;
        right: 10px;
    }

    .scroll-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .tab-pane-inner {
        padding: 1.2rem;
    }

    .episode-row {
        grid-template-columns: 3.5rem minmax(0, 1fr);
    }

    .episode-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .review-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

.scroll-nav {
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124,58,237,.4);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124,58,237,.5);
}
.scroll-btn:active {
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .scroll-nav {
        bottom: 70px;
        right: 10px;
    }
    .scroll-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

.show-left > .card.overflow-hidden {
    background: transparent;
    box-shadow: none;
    border: 0;
    color: #fff;
    overflow: visible !important;
}

.show-left > .card.overflow-hidden:hover {
    transform: none;
    box-shadow: none;
}

.show-left > .card.overflow-hidden > .row {
    display: block;
}

.show-left > .card.overflow-hidden .col-md-4,
.show-left > .card.overflow-hidden .col-md-8 {
    width: 100%;
    max-width: none;
}

.show-left > .card.overflow-hidden .col-md-4 {
    position: relative;
    width: min(620px, 82%);
    aspect-ratio: 1 / 1;
    margin: 0 auto 2rem;
    border-radius: 2px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 32px 90px rgba(0,0,0,.65);
}

.show-left > .card.overflow-hidden .col-md-4 img,
.show-left > .card.overflow-hidden .col-md-4 > div {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
}

.show-left > .card.overflow-hidden .card-body {
    padding: 0;
}

.show-left h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5.35rem);
    line-height: .98;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 1.2rem !important;
}

.show-left .text-muted {
    color: rgba(255,255,255,.58) !important;
}

.show-left .badge-primary {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
}

.show-left a.badge {
    background: rgba(124,58,237,.22) !important;
    color: #d8b4fe !important;
    border: 1px solid rgba(192,132,252,.28);
}

#favoriteBtn {
    border-color: rgba(255,255,255,.2) !important;
    color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    border-radius: 999px !important;
    padding: .75rem 1.1rem;
}

#favoriteBtn:hover {
    background: rgba(220,38,38,.22) !important;
}

#episodesPane > .tab-pane-inner > .card {
    margin-top: 0 !important;
    background: transparent;
    box-shadow: none;
    border: 0;
}

#episodesPane > .tab-pane-inner > .card:hover {
    transform: none;
    box-shadow: none;
}

#episodesPane .card-header {
    display: none !important;
}

#episodesPane .bg-light {
    display: none !important;
}

#playlist {
    background: transparent;
}

#playlist .playlist-item {
    display: grid !important;
    grid-template-columns: 3.8rem minmax(0, 1fr) 52px 52px;
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 0 !important;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    background: transparent;
}

#playlist .playlist-item:hover,
#playlist .playlist-item.active {
    background: rgba(124,58,237,.13);
}

#playlist .playlist-item .me-3 {
    grid-column: 3;
    grid-row: 1;
    margin: 0 !important;
}

#playlist .playlist-item .me-2 {
    grid-column: 1;
    color: rgba(255,255,255,.48) !important;
    font-size: 1.2rem !important;
    width: auto !important;
}

#playlist .playlist-item .flex-grow-1 {
    grid-column: 2;
}

#playlist .playlist-item h6 {
    color: #f8fafc;
    font-size: 1.16rem;
    line-height: 1.3;
}

#playlist .playlist-item small {
    color: rgba(255,255,255,.42) !important;
    font-weight: 700;
    text-transform: uppercase;
}

#playlist .playlist-item .ms-2 {
    grid-column: 4;
    grid-row: 1;
    margin: 0 !important;
}

#playlist .play-btn,
#playlist .btn-outline-secondary {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    background: transparent;
    padding: 0;
}

#playlist .play-btn:hover,
#playlist .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
}

#detailsPane .card {
    background: transparent;
    box-shadow: none;
    border: 0;
}

#detailsPane .card:hover {
    transform: none;
    box-shadow: none;
}

#detailsPane .card-body {
    padding: 0;
}

#detailsPane h5,
#detailsPane h6 {
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem !important;
}

#detailsPane .fw-semibold {
    color: #f8fafc;
}

#detailsPane .text-muted,
#detailsPane li {
    color: rgba(255,255,255,.56) !important;
    font-size: 1rem;
}

#detailsPane hr {
    border-color: rgba(255,255,255,.14);
    opacity: 1;
}

#reviewsSource {
    display: none;
}

#reviewsPane .row {
    display: block;
    margin: 0;
}

#reviewsPane [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
}

.show-layout {
    height: calc(100vh - 116px);
    min-height: 620px;
    overflow: hidden;
}

.show-left {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.show-left > .card.overflow-hidden {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.show-left > .card.overflow-hidden .col-md-4 {
    flex: 0 0 auto;
    width: min(560px, 74%);
    max-height: 44vh;
    margin-left: auto;
    margin-right: auto;
}

.show-left > .card.overflow-hidden .col-md-8 {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: .65rem;
}

.tab-card {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.show-tabs {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    gap: 1.2rem;
    padding: 1.1rem 1.55rem 0;
}

.show-tabs .nav-link {
    font-size: clamp(1.15rem, 1.45vw, 1.55rem);
    line-height: 1.1;
    padding-bottom: .8rem;
}

.show-tabs .nav-link sup {
    font-size: .42em;
    top: -.68em;
}

.show-tab-content {
    flex: 1 1 auto;
    min-height: 0;
}

.show-tab-content > .tab-pane {
    height: 100%;
    min-height: 0;
}

.show-tab-content > .active {
    display: flex;
    flex-direction: column;
}

.tab-pane-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 1.55rem;
}

.episode-toolbar {
    align-items: center;
}

#episodesPane .border-top {
    display: none !important;
}

@media (max-width: 991.98px) {
    .show-layout {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .show-left,
    .tab-card {
        height: auto;
    }

    .show-left > .card.overflow-hidden {
        height: auto;
    }

    .show-left > .card.overflow-hidden .col-md-8,
    .tab-pane-inner {
        overflow: visible;
    }

}

/* --- original style block 2 --- */
/* Comments & Reactions Styles */
#reactionsSection, #commentsSection {
    animation: fadeIn 0.5s ease-out;
}

.reaction-btn {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.reaction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reaction-btn.active {
    background: var(--gradient) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.reaction-count {
    margin-left: 0.5rem;
    font-weight: 600;
}

.comment-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.comment-item:hover {
    background: #f8fafc;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary);
}

.comment-time {
    font-size: 0.8rem;
    color: #64748b;
}

.comment-content {
    color: #334155;
    line-height: 1.6;
}

.comment-actions {
    margin-top: 0.5rem;
}

.comment-actions button {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.review-edited-badge {
    border-radius: 999px;
    padding: .18rem .42rem;
    font-size: .62rem;
}

.comment-reactions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
}

.review-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 30px;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 999px;
    color: rgba(226,232,240,.76);
    background: rgba(15,23,42,.56);
    padding: .25rem .62rem;
    font-size: .76rem;
    font-weight: 800;
}

.review-reaction-btn strong {
    color: inherit;
    font-size: .78rem;
}

.review-reaction-btn:hover,
.review-reaction-btn.active {
    border-color: rgba(216,180,254,.42);
    color: #fff;
    background: rgba(124,58,237,.34);
}

.comment-edit-form textarea {
    min-height: 86px;
}

.reply-form {
    margin-left: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
}

.replies-list {
    margin-left: 2rem;
    margin-top: 1rem;
}

.reply-item {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .reaction-buttons {
        justify-content: center;
    }
    
    .reaction-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
    }
}

#reviewsPane #reactionsSection,
#reviewsPane #commentsSection,
#reviewsPane #reactionsSection .card-body,
#reviewsPane #commentsSection .card-body {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding-left: 0;
    padding-right: 0;
}

#reviewsPane .comment-item {
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
}

#reviewsPane .comment-item:hover,
#reviewsPane .reply-item,
#reviewsPane .reply-form {
    background: rgba(255,255,255,.04);
}

#reviewsPane .comment-author {
    color: #d8b4fe;
}

#reviewsPane .comment-time,
#reviewsPane .comment-content,
#reviewsPane .form-text {
    color: rgba(255,255,255,.58);
}

#reviewsPane #commentContent,
#reviewsPane textarea.form-control {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

#reviewsPane #commentContent::placeholder {
    color: rgba(255,255,255,.36);
}

#reviewsPane h5 {
    color: #fff;
}

/* --- original style block 3 --- */
/* Final show-page sizing pass */
.footer {
    display: none;
}

.show-shell {
    max-width: none;
}

.show-layout {
    grid-template-columns: minmax(620px, 64%) minmax(340px, 36%);
    gap: 2rem;
    height: calc(100vh - 98px);
}

.show-left > .card.overflow-hidden .col-md-4 {
    width: min(740px, 86%);
    max-height: 50vh;
    margin-bottom: 1.4rem;
}

.show-left h3 {
    font-size: clamp(3.6rem, 6.2vw, 6.8rem);
    max-width: 760px;
}

.show-description {
    max-width: 860px;
    font-size: 1.15rem;
}

.show-meta-row {
    font-size: 1.05rem;
}

.tab-card {
    border-color: rgba(255,255,255,.1);
}

.show-tabs {
    gap: .9rem;
    padding: .75rem 1rem 0;
}

.show-tabs .nav-link {
    font-size: clamp(.95rem, 1.1vw, 1.18rem);
    padding-bottom: .55rem;
}

.show-tabs .nav-link sup {
    font-size: .48em;
    top: -.62em;
}

.tab-pane-inner {
    padding: 1.1rem 1rem;
}

.episode-toolbar {
    font-size: .9rem;
    margin-bottom: .85rem;
}

#playlist .playlist-item {
    grid-template-columns: 3rem minmax(0, 1fr) 40px 40px;
    gap: .8rem;
    padding: .82rem 0 !important;
}

#playlist .playlist-item h6 {
    font-size: 1rem;
}

#playlist .playlist-item small {
    font-size: .72rem;
}

#playlist .playlist-item .me-2 {
    font-size: 1rem !important;
}

#playlist .play-btn,
#playlist .btn-outline-secondary {
    width: 38px;
    height: 38px;
    font-size: .85rem;
}

#playerContainer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-top: .65rem;
    background: linear-gradient(180deg, rgba(5,5,9,0), #050509 22%);
}

#playerContainer .player-card {
    padding: .85rem !important;
    border-radius: 10px;
}

#playerContainer .player-card .mb-2 {
    margin-bottom: .4rem !important;
}

#playerContainer .btn-sm {
    padding: .28rem .55rem;
}

#playPauseBtn {
    width: 34px !important;
    height: 34px !important;
}

@media (max-width: 1199.98px) {
    .show-layout {
        grid-template-columns: minmax(0, 58%) minmax(330px, 42%);
    }

    .show-left h3 {
        font-size: clamp(3rem, 5.5vw, 5.6rem);
    }
}

/* --- original style block 4 --- */
/* Responsive stability pass: keeps the page usable at 100% browser zoom. */
html,
body {
    max-width: 100%;
}

main {
    min-width: 0;
    overflow-x: clip;
}

.show-shell {
    width: 100%;
    max-width: none;
    height: calc(100dvh - 106px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(.75rem, 1.4vw, 1.5rem) clamp(.75rem, 1.6vw, 1.75rem) !important;
}

.show-shell > nav {
    flex: 0 0 auto;
    margin-bottom: clamp(.5rem, 1vw, .9rem) !important;
}

.show-layout {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .95fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: stretch;
    overflow: hidden;
}

.show-left,
.show-right {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.show-left > .card.overflow-hidden {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.show-left > .card.overflow-hidden > .row {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.show-left > .card.overflow-hidden .col-md-4 {
    flex: 0 0 auto;
    width: min(520px, 72%);
    max-width: 100%;
    max-height: min(38dvh, 430px);
    aspect-ratio: 1 / 1;
    margin: 0 auto clamp(.9rem, 1.5vh, 1.35rem);
}

.show-left > .card.overflow-hidden .col-md-4 img,
.show-left > .card.overflow-hidden .col-md-4 > div {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.show-left > .card.overflow-hidden .col-md-8 {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: .6rem;
}

.show-left > .card.overflow-hidden .card-body {
    min-width: 0;
    padding-bottom: .75rem;
}

.story-rank {
    margin-bottom: clamp(.6rem, 1.1vh, 1rem);
    font-size: clamp(.8rem, .9vw, 1rem);
}

.show-left h3 {
    font-size: clamp(2.35rem, 4.2vw, 4.75rem);
    line-height: 1;
    max-width: 760px;
    overflow-wrap: anywhere;
}

.show-meta-row {
    gap: .55rem;
    font-size: clamp(.82rem, .95vw, 1rem);
}

.show-description {
    max-width: 860px;
    max-height: 7.3rem;
    font-size: clamp(.95rem, 1vw, 1.08rem);
    line-height: 1.5;
}

.show-description.expanded {
    max-height: min(28dvh, 16rem);
}

.listen-now-btn {
    min-width: 0;
    padding: .72rem 1.35rem;
}

#favoriteBtn,
.show-left .badge,
.show-left a.badge {
    padding: .65rem 1rem !important;
}

#playerContainer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-top: .55rem;
    background: linear-gradient(180deg, rgba(5,5,9,0), #050509 24%);
}

#playerContainer .player-card {
    max-width: 100%;
    padding: .85rem !important;
}

#playerContainer .player-card .form-switch {
    padding-left: 0;
}

#playerContainer .player-card .form-switch .form-check-input {
    margin-left: 0;
}

#playerContainer .player-card > .d-flex,
#playerContainer .player-card .d-flex.align-items-center.gap-2.mb-2 {
    min-width: 0;
}

#nowPlayingTitle {
    min-width: 0;
}

#seekBar {
    min-width: 80px;
}

.tab-card {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.show-tabs {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 6;
    gap: clamp(.65rem, 1vw, 1rem);
    padding: .8rem 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.show-tabs::-webkit-scrollbar {
    display: none;
}

.show-tabs .nav-link {
    font-size: clamp(.98rem, 1.25vw, 1.28rem);
    line-height: 1.1;
    padding: 0 0 .65rem;
    white-space: nowrap;
}

.show-tabs .nav-link sup {
    font-size: .48em;
    top: -.62em;
}

.show-tab-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.show-tab-content > .tab-pane {
    height: 100%;
    min-height: 0;
}

.show-tab-content > .tab-pane.active {
    display: flex;
    flex-direction: column;
}

.tab-pane-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 1rem;
}

.episode-toolbar {
    flex: 0 0 auto;
    gap: .75rem;
    margin-bottom: .8rem;
    font-size: clamp(.78rem, .9vw, .95rem);
}

#playlist {
    min-height: 0;
}

#playlist .playlist-item {
    grid-template-columns: 2.5rem minmax(0, 1fr) 38px 38px;
    gap: .65rem;
    padding: .78rem 0 !important;
}

#playlist .playlist-item h6 {
    font-size: clamp(.9rem, 1vw, 1.02rem);
    overflow-wrap: anywhere;
    white-space: normal;
}

#playlist .playlist-item small {
    font-size: .7rem;
}

#playlist .playlist-item .me-2 {
    font-size: .95rem !important;
}

#playlist .play-btn,
#playlist .btn-outline-secondary {
    width: 36px;
    height: 36px;
    font-size: .78rem;
}

@media (min-width: 1600px) {
    .show-layout {
        grid-template-columns: minmax(0, 1.85fr) minmax(360px, .9fr);
    }

    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(600px, 68%);
        max-height: min(42dvh, 520px);
    }
}

@media (max-width: 1199.98px) {
    .show-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, .95fr);
        gap: 1rem;
    }

    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(440px, 70%);
        max-height: min(34dvh, 340px);
    }

    .show-left h3 {
        font-size: clamp(2rem, 3.8vw, 3.5rem);
    }
}

@media (max-width: 991.98px) {
    .show-shell {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .show-layout {
        display: block;
        height: auto !important;
        overflow: visible;
    }

    .show-left,
    .show-right,
    .show-left > .card.overflow-hidden,
    .show-left > .card.overflow-hidden > .row,
    .tab-card {
        height: auto;
        overflow: visible;
    }

    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(520px, 100%);
        max-height: none;
    }

    .show-left > .card.overflow-hidden .col-md-8,
    .tab-pane-inner {
        overflow: visible;
    }

    .show-right {
        margin-top: 1.5rem;
    }

    .tab-card {
        max-height: none;
    }

    #playerContainer {
        position: static;
        background: transparent;
    }
}

@media (max-width: 575.98px) {
    .show-shell {
        padding: .75rem !important;
    }

    .show-left h3 {
        font-size: clamp(2rem, 13vw, 3.25rem);
    }

    .show-meta-row,
    .show-left .d-flex.flex-wrap.gap-2 {
        gap: .45rem !important;
    }

    .listen-now-btn,
    #favoriteBtn,
    .show-left .badge,
    .show-left a.badge {
        width: 100%;
        justify-content: center;
    }

    #playerContainer .player-card .d-flex.align-items-center.gap-2.mb-2 {
        flex-wrap: wrap;
    }

    #seekBar {
        flex-basis: 100%;
        order: 10;
    }

    #playlist .playlist-item {
        grid-template-columns: 2rem minmax(0, 1fr) 36px 36px;
        gap: .45rem;
    }
}

/* --- original style block 5 --- */
/* Final detail-page refinement: stable cover, hidden internal scrollbars, integrated tabs. */
.hide-scrollbar,
.show-left > .card.overflow-hidden .col-md-8,
.tab-pane-inner,
.eab-search-results {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar,
.show-left > .card.overflow-hidden .col-md-8::-webkit-scrollbar,
.tab-pane-inner::-webkit-scrollbar,
.eab-search-results::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.show-shell {
    background:
        radial-gradient(circle at 18% 4%, rgba(124, 58, 237, .18), transparent 34%),
        linear-gradient(115deg, #05050a 0%, #10071c 46%, #06070d 100%);
}

.show-left > .card.overflow-hidden {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.audiobook-left-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.audiobook-cover-section {
    flex: 0 0 auto;
    min-height: 0;
}

.audiobook-details-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.show-left > .card.overflow-hidden > .row {
    gap: 0;
}

.show-left > .card.overflow-hidden .col-md-4 {
    width: min(620px, 76%) !important;
    max-height: min(42dvh, 470px) !important;
    aspect-ratio: 1 / 1;
    margin: 0 auto !important;
    border-radius: 0;
    overflow: hidden;
    flex: 0 0 auto;
}

.show-left > .card.overflow-hidden .col-md-4 img,
.show-left > .card.overflow-hidden .col-md-4 > div {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    display: block;
}

.show-left > .card.overflow-hidden .col-md-8 {
    width: 100% !important;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: -3.2rem;
    padding-top: 3.2rem;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0),
            rgba(3, 3, 8, .88) 18%,
            rgba(3, 3, 8, 1) 42%
        );
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.show-left > .card.overflow-hidden .card-body {
    padding: clamp(1rem, 1.8vw, 1.65rem) 0 1rem !important;
    max-width: min(920px, 100%);
}

.story-rank {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .55rem .8rem;
    margin-bottom: .95rem;
    background: linear-gradient(135deg, #f43f5e, #be123c);
    color: #fff;
    border-radius: 0;
    font-size: clamp(.78rem, .85vw, .95rem);
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.show-left h3,
.show-title {
    color: #fff;
    font-size: clamp(2.4rem, 4.2vw, 5.2rem) !important;
    line-height: .98;
    max-width: 100%;
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
    letter-spacing: 0;
}

.show-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    color: rgba(255,255,255,.6);
    font-size: clamp(.88rem, .95vw, 1.05rem);
    font-weight: 800;
    text-transform: uppercase;
}

.show-meta-row .plays {
    color: #facc15;
}

.show-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: .22rem .65rem;
    color: #fff;
    background: rgba(255,255,255,.04);
}

.show-description {
    color: rgba(255,255,255,.62) !important;
    font-size: clamp(1rem, 1.05vw, 1.18rem);
    line-height: 1.55;
    max-height: none !important;
    max-width: 920px;
    overflow: visible !important;
}

.show-description.expanded {
    max-height: none;
}

.read-more-btn {
    display: none !important;
    color: #e9d5ff;
    font-weight: 800;
    text-decoration: underline;
}

.show-actions .badge,
.show-left .badge,
.show-left a.badge,
#favoriteBtn,
.download-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px !important;
}

.listen-now-btn {
    min-height: 46px;
    border-radius: 999px;
    padding: .75rem 1.9rem;
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: #fff;
    box-shadow: 0 14px 36px rgba(168, 85, 247, .28);
}

.resume-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(49,46,129,.96), rgba(76,29,149,.82));
    border: 1px solid rgba(255,255,255,.1);
}

#playerContainer {
    position: static !important;
    padding-top: .45rem;
    background: transparent !important;
}

#playerContainer .player-card {
    background: rgba(17, 17, 27, .88);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: none;
}

.tab-card {
    background: rgba(18, 18, 26, .72) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: none !important;
    border-radius: 0;
}

.show-tabs {
    padding: clamp(.7rem, 1vw, 1rem) clamp(.9rem, 1.2vw, 1.25rem) 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(18,18,26,.92);
}

.show-tabs .nav-link {
    color: rgba(255,255,255,.48) !important;
    font-size: clamp(1.05rem, 1.45vw, 1.65rem) !important;
    font-weight: 500;
    line-height: 1.05;
}

.show-tabs .nav-link.active {
    color: #fff !important;
}

.show-tabs .nav-link.active::after {
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #c084fc, #db2777);
}

.show-tabs .nav-link sup {
    color: rgba(255,255,255,.48);
    font-size: .42em;
    margin-left: .2rem;
}

.tab-pane-inner {
    padding: clamp(1rem, 1.4vw, 1.55rem) clamp(1rem, 1.5vw, 1.75rem);
}

.episode-toolbar {
    align-items: center;
    margin-bottom: 1.1rem;
    color: #c084fc;
    font-size: clamp(.9rem, 1vw, 1.05rem);
    font-weight: 900;
    text-transform: uppercase;
}

.episode-toolbar a {
    color: #c084fc !important;
    background: transparent;
    border: 0;
    padding: 0;
    font-weight: 900;
    text-decoration: none;
}

#episodesPane .card.mt-4 {
    margin-top: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

#episodesPane .card-header,
#episodesPane .bg-light.border-bottom {
    display: none !important;
}

#playlist {
    display: block;
    background: transparent;
}

#playlist .playlist-item {
    display: grid !important;
    grid-template-columns: 3.2rem minmax(0, 1fr) 48px 48px;
    align-items: center;
    gap: clamp(.65rem, 1vw, 1rem);
    min-height: 78px;
    padding: .95rem 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
    color: #fff;
}

#playlist .playlist-item.active {
    background: rgba(124, 58, 237, .18) !important;
    padding-left: .9rem !important;
    padding-right: .9rem !important;
}

#playlist .playlist-item .me-3 {
    order: 3;
    margin: 0 !important;
}

#playlist .playlist-item .me-2 {
    order: 1;
    width: auto !important;
    margin: 0 !important;
    color: rgba(255,255,255,.5) !important;
    font-size: clamp(1rem, 1.25vw, 1.35rem) !important;
    font-weight: 900 !important;
}

#playlist .playlist-item .flex-grow-1 {
    order: 2;
    min-width: 0;
}

#playlist .playlist-item .ms-2 {
    order: 4;
    margin: 0 !important;
}

#playlist .playlist-item h6 {
    color: #fff;
    font-size: clamp(1rem, 1.15vw, 1.3rem);
    line-height: 1.2;
}

#playlist .playlist-item small {
    color: rgba(255,255,255,.46) !important;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

#playlist .play-btn,
#playlist .btn-outline-secondary {
    width: 46px !important;
    height: 46px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    color: #fff !important;
    background: transparent !important;
}

#playlist .playlist-item.active .play-btn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
    border-color: rgba(255,255,255,.22) !important;
}

#reviewsPane .review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0 1.4rem;
    border-bottom: 1px dashed rgba(255,255,255,.14);
}

#reviewsPane .review-score {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

#reviewsPane .review-score strong {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1;
}

#reviewsPane .review-score span {
    color: #fff;
    letter-spacing: .05em;
}

#reviewsPane .show-action-btn {
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
}

#reviewsPane #reactionsSection {
    display: none;
}

#reviewsPane #commentsSection .card-body {
    padding-top: 1.2rem !important;
}

#reviewsPane #commentsSection h5 {
    display: none;
}

#reviewsPane .comment-item {
    padding: 1.3rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

#reviewsPane .comment-header {
    justify-content: flex-start;
    gap: .6rem;
    margin-bottom: .75rem;
}

#reviewsPane .comment-header .rounded-circle {
    width: 28px !important;
    height: 28px !important;
    background: rgba(255,255,255,.2) !important;
}

#reviewsPane .comment-author {
    color: rgba(255,255,255,.72) !important;
    font-size: .9rem;
}

#reviewsPane .comment-time {
    color: rgba(255,255,255,.48) !important;
    font-size: .82rem;
    font-weight: 700;
}

#reviewsPane .comment-content {
    color: rgba(255,255,255,.88) !important;
    font-size: clamp(.98rem, 1vw, 1.08rem);
    line-height: 1.5;
    font-weight: 650;
}

#reviewsPane .comment-reactions {
    margin-top: .8rem;
}

#reviewsPane .review-reaction-btn {
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.64);
    background: rgba(255,255,255,.04);
}

#reviewsPane .review-reaction-btn:hover,
#reviewsPane .review-reaction-btn.active {
    border-color: rgba(216,180,254,.42);
    color: #fff;
    background: rgba(124,58,237,.34);
}

#reviewsPane .review-edited-badge {
    background: rgba(148,163,184,.5) !important;
    color: #fff;
}

#reviewsPane .comment-edit-form textarea {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

#detailsPane .card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    color: rgba(255,255,255,.72);
}

#detailsPane .card-body {
    padding: 0 !important;
}

#detailsPane h5,
#detailsPane h6,
#detailsPane .fw-semibold {
    color: #fff !important;
}

#detailsPane .text-muted,
#detailsPane .small {
    color: rgba(255,255,255,.5) !important;
}

@media (max-width: 1199.98px) {
    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(520px, 82%) !important;
        max-height: min(38dvh, 400px) !important;
    }
}

@media (max-width: 991.98px) {
    .show-left > .card.overflow-hidden .col-md-8,
    .tab-pane-inner {
        overflow: visible;
    }

    .show-left > .card.overflow-hidden .col-md-8 {
        margin-top: -2rem;
        padding-top: 2.5rem;
    }

    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(560px, 100%) !important;
        max-height: none !important;
    }

    .show-tabs {
        position: sticky;
        top: 0;
    }

}

@media (max-width: 575.98px) {
    .show-left h3,
    .show-title {
        font-size: clamp(2.25rem, 14vw, 3.6rem) !important;
    }

    .resume-card,
    #playerContainer .player-card > .d-flex:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

    #playlist .playlist-item {
        grid-template-columns: 2.2rem minmax(0, 1fr) 42px 42px;
        min-height: 72px;
    }

}

/* --- original style block 6 --- */
/* Cinematic reference alignment: one continuous page, no boxed right panel. */
.show-shell {
    min-height: calc(100dvh - 76px);
    height: calc(100dvh - 76px);
    padding: clamp(.8rem, 1.4vw, 1.6rem) clamp(1rem, 2.2vw, 2.8rem) !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(124, 58, 237, .16), transparent 32%),
        linear-gradient(112deg, #050409 0%, #110619 42%, #06070d 100%) !important;
}

.show-layout {
    grid-template-columns: minmax(0, 2fr) minmax(340px, .82fr) !important;
    gap: clamp(1.5rem, 3vw, 3.5rem) !important;
    align-items: stretch;
}

.show-left,
.show-right,
.audiobook-left-panel,
.tab-card {
    background: transparent !important;
}

.audiobook-left-panel,
.show-left > .card.overflow-hidden {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.show-left > .card.overflow-hidden > .row {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.audiobook-cover-section,
.show-left > .card.overflow-hidden .col-md-4 {
    width: min(760px, 82%) !important;
    max-height: min(48dvh, 620px) !important;
    aspect-ratio: 1 / 1;
    margin: 0 auto !important;
    flex: 0 0 auto;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.audiobook-cover-section img,
.audiobook-cover-section > div,
.show-left > .card.overflow-hidden .col-md-4 img,
.show-left > .card.overflow-hidden .col-md-4 > div {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.audiobook-details-scroll,
.show-left > .card.overflow-hidden .col-md-8 {
    width: 100% !important;
    margin-top: -2.6rem !important;
    padding-top: 3rem !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background:
        linear-gradient(
            to bottom,
            rgba(5, 4, 9, 0),
            rgba(5, 4, 9, .86) 20%,
            rgba(5, 4, 9, 1) 46%
        ) !important;
}

.audiobook-details-scroll::-webkit-scrollbar,
.show-left > .card.overflow-hidden .col-md-8::-webkit-scrollbar,
.tab-pane-inner::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.show-left > .card.overflow-hidden .card-body {
    max-width: min(880px, 100%) !important;
    padding: clamp(.85rem, 1.4vw, 1.35rem) 0 1rem !important;
}

.story-rank {
    margin-bottom: .85rem !important;
    padding: .46rem .72rem !important;
    font-size: clamp(.72rem, .72vw, .86rem) !important;
}

.show-left h3,
.show-title {
    font-size: clamp(2.2rem, 3.25vw, 4.1rem) !important;
    line-height: 1.03 !important;
    margin: 0 0 .8rem !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
}

.show-meta-row {
    gap: .58rem !important;
    font-size: clamp(.82rem, .82vw, .96rem) !important;
    margin-bottom: 1.15rem;
}

.show-description {
    max-width: 780px !important;
    max-height: 6.2rem !important;
    font-size: clamp(.96rem, .95vw, 1.08rem) !important;
    line-height: 1.55 !important;
}

.show-description.expanded {
    max-height: none !important;
}

.listen-now-btn {
    min-height: 44px !important;
    padding: .68rem 1.75rem !important;
}

#playerContainer .player-card {
    background: rgba(14, 14, 22, .82) !important;
}

.tab-card {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: hidden;
}

.show-tabs {
    position: sticky;
    top: 0;
    z-index: 6;
    padding: .15rem 0 .65rem !important;
    gap: clamp(.9rem, 1.6vw, 1.8rem) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    background: linear-gradient(180deg, rgba(7,7,12,.96), rgba(7,7,12,.78)) !important;
}

.show-tabs .nav-link {
    font-size: clamp(.96rem, 1.12vw, 1.28rem) !important;
    font-weight: 500 !important;
    padding: 0 0 .55rem !important;
}

.show-tabs .nav-link sup {
    font-size: .45em !important;
}

.tab-pane-inner {
    padding: 1.05rem 0 0 !important;
    overflow-y: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.episode-toolbar {
    margin-bottom: .95rem !important;
    font-size: clamp(.76rem, .82vw, .9rem) !important;
}

.episode-toolbar a {
    font-size: inherit !important;
    letter-spacing: 0;
}

#episodesPane .card.mt-4 {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#playlist .playlist-item {
    grid-template-columns: 2.55rem minmax(0, 1fr) 38px 34px !important;
    min-height: 58px !important;
    padding: .62rem 0 !important;
    gap: .65rem !important;
    border-bottom: 1px solid rgba(255,255,255,.075) !important;
    background: transparent !important;
    border-radius: 0 !important;
}

#playlist .playlist-item.active {
    background: rgba(124, 58, 237, .14) !important;
    padding-left: .65rem !important;
    padding-right: .65rem !important;
}

#playlist .playlist-item .me-2 {
    font-size: clamp(.86rem, .95vw, 1.05rem) !important;
    color: rgba(255,255,255,.46) !important;
}

#playlist .playlist-item h6 {
    font-size: clamp(.9rem, .96vw, 1.08rem) !important;
    line-height: 1.18 !important;
}

#playlist .playlist-item small {
    font-size: .66rem !important;
    color: rgba(255,255,255,.42) !important;
}

#playlist .play-btn,
#playlist .btn-outline-secondary {
    width: 34px !important;
    height: 34px !important;
    font-size: .76rem !important;
    border-color: rgba(255,255,255,.2) !important;
}

#playlist .btn-outline-secondary {
    opacity: .72;
}

#playlist .btn-outline-secondary:hover {
    opacity: 1;
}

#reviewsPane .review-summary,
#reviewsPane .comment-item {
    border-color: rgba(255,255,255,.09) !important;
}

#detailsPane .card,
#reviewsPane #commentsSection,
#reviewsPane #commentsSection .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (min-width: 1800px) {
    .show-layout {
        grid-template-columns: minmax(0, 2.08fr) minmax(380px, .78fr) !important;
    }

    .audiobook-cover-section,
    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(820px, 78%) !important;
        max-height: min(50dvh, 680px) !important;
    }
}

@media (max-width: 1199.98px) {
    .show-layout {
        grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr) !important;
        gap: 1.25rem !important;
    }

    .audiobook-cover-section,
    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(560px, 86%) !important;
        max-height: min(42dvh, 430px) !important;
    }
}

@media (max-width: 991.98px) {
    .show-shell {
        height: auto !important;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .show-layout {
        display: block !important;
        overflow: visible !important;
    }

    .show-left,
    .show-right,
    .audiobook-left-panel,
    .show-left > .card.overflow-hidden > .row,
    .tab-card,
    .show-tab-content,
    .show-tab-content > .tab-pane {
        height: auto !important;
        overflow: visible !important;
    }

    .audiobook-cover-section,
    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(620px, 100%) !important;
        max-height: none !important;
    }

    .audiobook-details-scroll,
    .show-left > .card.overflow-hidden .col-md-8,
    .tab-pane-inner {
        overflow: visible !important;
    }

    .show-right {
        margin-top: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    .show-left > .card.overflow-hidden > .row,
    .audiobook-left-panel > .row {
        display: flex !important;
        flex-direction: column !important;
    }

    .audiobook-cover-section,
    .show-left > .card.overflow-hidden .col-md-4 {
        order: 1 !important;
        width: min(100%, 320px) !important;
        aspect-ratio: 1 / 1;
        margin-inline: auto !important;
    }

    .audiobook-details-scroll,
    .show-left > .card.overflow-hidden .col-md-8 {
        order: 2 !important;
        width: 100% !important;
        margin-top: 1rem !important;
    }

    .show-left h3,
    .show-title {
        font-size: clamp(2rem, 12.5vw, 3.2rem) !important;
    }

    #playlist .playlist-item {
        grid-template-columns: 2rem minmax(0, 1fr) 34px 32px !important;
        gap: .48rem !important;
    }
}

/* --- original style block 7 --- */
/* Left-column placement fix: cover first, every detail/control directly below it. */
.show-left > .card.overflow-hidden > .row,
.audiobook-left-panel > .row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
}

.audiobook-cover-section,
.show-left > .card.overflow-hidden .col-md-4 {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: min(760px, 82%) !important;
    max-width: 100% !important;
    align-self: center !important;
}

.audiobook-details-scroll,
.show-left > .card.overflow-hidden .col-md-8 {
    order: 2 !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    margin-top: clamp(.9rem, 1.6vw, 1.4rem) !important;
    padding-top: 0 !important;
    background: transparent !important;
}

.show-left > .card.overflow-hidden .card-body {
    width: 100% !important;
}

.show-shell {
    height: auto !important;
    min-height: calc(100dvh - 76px) !important;
    overflow: visible !important;
    padding-bottom: 6rem !important;
}

.show-layout {
    align-items: start !important;
}

.show-left {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.audiobook-left-panel,
.show-left > .card.overflow-hidden {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.show-left > .card.overflow-hidden > .row,
.audiobook-left-panel > .row {
    height: auto !important;
}

.audiobook-cover-section,
.show-left > .card.overflow-hidden .col-md-4 {
    max-height: none !important;
    margin-bottom: clamp(1rem, 2vw, 1.6rem) !important;
}

.audiobook-cover-section img,
.audiobook-cover-section > div,
.show-left > .card.overflow-hidden .col-md-4 img,
.show-left > .card.overflow-hidden .col-md-4 > div {
    min-height: 220px !important;
}

.audiobook-details-scroll,
.show-left > .card.overflow-hidden .col-md-8 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    max-height: clamp(290px, 38dvh, 460px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent !important;
}

.show-description {
    max-height: 9rem !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.audiobook-details-scroll::-webkit-scrollbar,
.show-left > .card.overflow-hidden .col-md-8::-webkit-scrollbar,
.show-description::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.floating-mini-player {
    position: fixed;
    left: 50%;
    bottom: calc(1.1rem + env(safe-area-inset-bottom));
    z-index: 1085;
    width: min(620px, calc(100vw - 1.5rem));
    min-height: 82px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .72rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(16, 18, 26, .94);
    box-shadow: 0 22px 70px rgba(0,0,0,.52), 0 0 0 1px rgba(168,85,247,.1) inset;
    backdrop-filter: blur(18px);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(100% + 1.5rem));
    transition: opacity .22s ease, transform .22s ease;
}

.floating-mini-player.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.mini-player-cover {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #25124d, #7c3aed);
    color: rgba(255,255,255,.82);
    flex: 0 0 auto;
}

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

.mini-player-main {
    min-width: 0;
}

.mini-player-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .45rem;
}

.mini-player-window-actions {
    display: inline-flex;
    align-items: center;
    gap: .34rem;
}

.mini-player-title-row strong,
.mini-player-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-player-title-row strong {
    font-size: .98rem;
    line-height: 1.2;
}

.mini-player-main small {
    color: rgba(226,232,240,.72);
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
}

.mini-player-progress {
    height: 4px;
    margin-top: .46rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148,163,184,.24);
}

.mini-player-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.mini-player-times {
    display: flex;
    justify-content: space-between;
    margin-top: .22rem;
    color: rgba(226,232,240,.62);
    font-size: .68rem;
    font-weight: 700;
}

.mini-player-actions {
    display: flex;
    align-items: center;
    gap: .42rem;
}

.mini-player-actions button,
.mini-icon-btn,
.mini-player-collapsed {
    border: 0;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.09);
    transition: transform .18s ease, background .18s ease;
}

.mini-player-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.mini-player-actions .mini-main-action {
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
    background: linear-gradient(135deg, #9333ea, #db2777);
    box-shadow: 0 12px 32px rgba(147,51,234,.36);
}

.mini-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: rgba(255,255,255,.78);
}

.mini-player-actions button:hover,
.mini-icon-btn:hover,
.mini-player-collapsed:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.16);
}

.mini-player-collapsed {
    position: fixed;
    left: 50%;
    bottom: calc(1.2rem + env(safe-area-inset-bottom));
    z-index: 1084;
    width: 76px;
    height: 44px;
    grid-template-columns: 1fr 5px 1fr;
    gap: .24rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(135deg, rgba(147,51,234,.96), rgba(219,39,119,.96));
    box-shadow: 0 14px 42px rgba(147,51,234,.34);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(100% + 1rem));
    transition: opacity .2s ease, transform .2s ease;
}

.mini-player-collapsed.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.mini-player-collapsed span {
    width: 5px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    animation: miniEqualizer .75s ease-in-out infinite alternate;
}

@keyframes miniEqualizer {
    from { transform: scaleY(.45); opacity: .7; }
    to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 640px) {
    .floating-mini-player {
        grid-template-columns: 48px minmax(0, 1fr);
        border-radius: 24px;
        padding: .75rem;
    }

    .mini-player-cover {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .mini-player-actions {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .audiobook-details-scroll,
    .show-left > .card.overflow-hidden .col-md-8 {
        margin-top: 1rem !important;
        padding-top: 0 !important;
    }
}

/* --- original style block 8 --- */
.show-shell {
    width: min(100vw - 2rem, 1840px) !important;
    max-width: none !important;
}

.show-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.55fr) minmax(420px, .85fr) !important;
    gap: clamp(1.2rem, 2vw, 2.6rem) !important;
    align-items: start !important;
}

.show-left,
.show-right,
.tab-card {
    min-height: 0 !important;
}

#resumeBanner {
    width: min(100%, 760px) !important;
}

#resumeBanner .card {
    width: 100% !important;
    border: 1px solid rgba(168, 85, 247, .22) !important;
    background: rgba(15, 23, 42, .86) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
}

#resumeBanner .card-body {
    min-height: 86px !important;
    padding: 1rem 1.25rem !important;
    flex-wrap: wrap !important;
}

#resumeBanner #resumeTrack {
    display: block !important;
    max-width: 520px !important;
    white-space: normal !important;
}

.show-left {
    position: static !important;
}

.show-left > .card.overflow-hidden {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.show-left > .card.overflow-hidden > .row {
    display: block !important;
}

.show-left > .card.overflow-hidden .col-md-4 {
    width: 100% !important;
    max-width: 960px !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: clamp(280px, 45vh, 500px) !important;
    margin: 0 0 clamp(1rem, 1.5vw, 1.35rem) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.show-left > .card.overflow-hidden .col-md-4 img,
.show-left > .card.overflow-hidden .col-md-4 > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
}

.show-left > .card.overflow-hidden .col-md-8 {
    width: 100% !important;
    max-width: 1040px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

.show-left > .card.overflow-hidden .card-body {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.story-rank {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    border-radius: 999px !important;
    padding: .45rem .85rem !important;
    margin-bottom: .8rem !important;
    background: rgba(132, 204, 22, .14) !important;
    border: 1px solid rgba(190, 242, 100, .22) !important;
    color: #bef264 !important;
    box-shadow: 0 0 20px rgba(132, 204, 22, .12) !important;
}

.story-rank::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    margin-right: .35rem;
}

.show-left h3 {
    font-size: clamp(2.4rem, 4vw, 4.45rem) !important;
    line-height: .98 !important;
    margin-bottom: .55rem !important;
}

.show-meta-row {
    margin-bottom: 1rem !important;
}

.show-meta-row .plays,
.show-rating-pill {
    display: none !important;
}

.show-left .d-flex.flex-wrap.gap-2 {
    margin-bottom: .95rem !important;
}

.series-description-block {
    position: relative !important;
    margin-top: 1rem !important;
    max-width: 980px !important;
    padding-right: 3.6rem !important;
}

.show-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3.1em !important;
    overflow: hidden !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
}

.show-description.expanded {
    display: block !important;
    -webkit-line-clamp: unset;
    max-height: none !important;
    overflow: visible !important;
}

.read-more-btn {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    border: 0 !important;
    background: linear-gradient(90deg, rgba(8,0,14,0), rgba(8,0,14,.98) 28%) !important;
    color: #d946ef !important;
    padding: .05rem 0 .05rem 1.5rem !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
}

.show-description.expanded + .read-more-btn {
    position: static !important;
    margin-top: .35rem !important;
    padding: .05rem 0 !important;
    background: transparent !important;
}

.read-more-btn.d-none {
    display: none !important;
}

#playerContainer {
    display: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    padding: 0 !important;
}

#floatingMiniPlayer,
#miniPlayerCollapsed {
    display: none !important;
}

.tab-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

.show-tabs {
    position: static !important;
    top: auto !important;
    padding: 0 0 .8rem !important;
    gap: 1.45rem !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.show-tabs .nav-link {
    font-size: clamp(1.1rem, 1.35vw, 1.55rem) !important;
    padding: 0 0 .7rem !important;
}

.show-tabs .nav-link .badge {
    font-size: .58em !important;
    opacity: .7 !important;
}

.tab-pane-inner {
    padding: .95rem 0 0 !important;
}

#episodes .d-flex.justify-content-between.align-items-center.mb-3 {
    margin-bottom: .75rem !important;
}

#episodesPane .card.mt-4 {
    margin-top: .7rem !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#episodesPane .card-header,
#episodesPane .px-3.py-2.bg-light {
    display: none !important;
}

#playlist {
    max-height: min(calc(100vh - 245px), 820px) !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    padding-right: .15rem !important;
    padding-bottom: .35rem !important;
}

#playlist::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

#playlist .playlist-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px 40px !important;
    column-gap: .8rem !important;
    align-items: center !important;
    padding: .63rem 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

#playlist .playlist-item .me-3 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-right: 0 !important;
    width: 40px !important;
}

#playlist .playlist-item .me-2 {
    display: none !important;
}

#playlist .playlist-item .flex-grow-1 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

#playlist .playlist-item h6 {
    font-size: clamp(.9rem, 1vw, 1.06rem) !important;
    line-height: 1.18 !important;
    margin-bottom: .22rem !important;
}

#playlist .playlist-item small {
    display: none !important;
}

#playlist .playlist-item .play-btn,
#playlist .playlist-item .btn-outline-secondary {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
}

#playlist .playlist-item .ms-2 {
    grid-column: 3 !important;
    grid-row: 1 !important;
    margin-left: 0 !important;
}

.scroll-nav {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .show-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr) !important;
    }
}

@media (max-width: 991.98px) {
    .show-shell {
        width: min(100vw - 1rem, 760px) !important;
    }

    .show-layout {
        grid-template-columns: 1fr !important;
    }

    .show-left > .card.overflow-hidden .col-md-4 {
        max-width: none !important;
        height: clamp(220px, 48vw, 360px) !important;
    }

    #resumeBanner {
        width: 100% !important;
    }

    #resumeBanner .card-body {
        align-items: flex-start !important;
    }

    #playlist {
        max-height: min(60vh, 620px) !important;
    }

    .show-left h3 {
        font-size: clamp(2.15rem, 10vw, 3.4rem) !important;
    }

    .show-tabs {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
    }

    #playlist .playlist-item {
        grid-template-columns: minmax(0, 1fr) 36px 36px !important;
        column-gap: .55rem !important;
    }
}

/* Final details-page hierarchy polish */
.story-rank {
    gap: .38rem !important;
    padding: .36rem .72rem !important;
    margin-bottom: .95rem !important;
    border-radius: 999px !important;
    font-family: Inter, Poppins, Arial, sans-serif !important;
    font-size: .74rem !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    background: rgba(148,163,184,.12) !important;
    border: 1px solid rgba(226,232,240,.14) !important;
    color: rgba(248,250,252,.86) !important;
    box-shadow: 0 0 20px rgba(148,163,184,.08) !important;
}

.story-rank::before {
    content: none !important;
}

.story-rank i {
    font-size: .82rem !important;
    line-height: 1 !important;
}

.story-rank.completed {
    color: #bef264 !important;
    background: rgba(132,204,22,.14) !important;
    border-color: rgba(190,242,100,.22) !important;
    box-shadow: 0 0 22px rgba(132,204,22,.12) !important;
}

.story-rank.ongoing {
    color: #c4b5fd !important;
    background: rgba(124,58,237,.16) !important;
    border-color: rgba(167,139,250,.25) !important;
}

.story-rank.new {
    color: #f0abfc !important;
    background: rgba(217,70,239,.14) !important;
    border-color: rgba(240,171,252,.23) !important;
}

.story-rank.audio {
    color: #fdba74 !important;
    background: rgba(249,115,22,.13) !important;
    border-color: rgba(253,186,116,.24) !important;
}

.story-rank.webnovel {
    color: #67e8f9 !important;
    background: rgba(34,211,238,.12) !important;
    border-color: rgba(103,232,249,.22) !important;
}

.story-rank.request {
    color: #fecaca !important;
    background: rgba(239,68,68,.12) !important;
    border-color: rgba(252,165,165,.22) !important;
}

.show-badge-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .5rem !important;
    margin: 0 0 .95rem !important;
}

.show-badge-row .story-rank {
    margin: 0 !important;
}

.story-rank--source {
    text-transform: none !important;
}

.show-left h3 {
    font-family: Inter, Poppins, Arial, sans-serif !important;
    font-size: clamp(3rem, 3.35vw, 3.45rem) !important;
    line-height: 1.08 !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    color: #fff !important;
    margin: 0 0 1.15rem !important;
    text-shadow: 0 10px 34px rgba(0,0,0,.35) !important;
}

.show-meta-row {
    display: none !important;
}

.series-description-block {
    margin-top: 1.15rem !important;
    max-width: 1040px !important;
    padding-right: 3.65rem !important;
}

.show-description {
    font-family: Inter, Poppins, Arial, sans-serif !important;
    font-size: clamp(1rem, 1.02vw, 1.08rem) !important;
    line-height: 1.62 !important;
    color: rgba(203,213,225,.72) !important;
    -webkit-line-clamp: 2 !important;
}

.read-more-btn {
    font-family: Inter, Poppins, Arial, sans-serif !important;
    bottom: .02rem !important;
}

.show-left .d-flex.flex-wrap.gap-2 {
    gap: .65rem !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

.detail-play-hero-btn {
    min-width: 148px !important;
    height: 48px !important;
    padding: 0 1.55rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .35rem !important;
    font-family: Inter, Poppins, Arial, sans-serif !important;
    font-size: .98rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 28% 10%, rgba(255,255,255,.22), transparent 30%),
        linear-gradient(135deg, #a855f7 0%, #d946ef 45%, #e11d48 100%) !important;
    box-shadow:
        0 12px 28px rgba(217,70,239,.28),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.detail-play-hero-btn:hover {
    transform: translateY(-1px) !important;
    filter: saturate(1.08) brightness(1.04) !important;
    box-shadow:
        0 16px 34px rgba(217,70,239,.36),
        inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.detail-play-hero-btn i {
    font-size: .9rem !important;
}

#favoriteBtn {
    height: 48px !important;
    min-height: 48px !important;
    min-width: 126px !important;
    padding: 0 1.25rem !important;
    border: 2px solid rgba(255,255,255,.22) !important;
    color: rgba(255,255,255,.88) !important;
    background: rgba(255,255,255,.035) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .3rem !important;
    font-family: Inter, Poppins, Arial, sans-serif !important;
    font-size: .98rem !important;
    font-weight: 750 !important;
    line-height: 1 !important;
}

.details-bottom-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .55rem !important;
    margin-top: 1.15rem !important;
    padding-top: .95rem !important;
    padding-bottom: .55rem !important;
    border-top: 1px dashed rgba(148,163,184,.22) !important;
    color: rgba(148,163,184,.62) !important;
    font-family: Inter, Poppins, Arial, sans-serif !important;
    font-size: .92rem !important;
}

.details-bottom-breadcrumb a {
    color: rgba(203,213,225,.68) !important;
    text-decoration: none !important;
}

.details-bottom-breadcrumb a:hover {
    color: #d8b4fe !important;
}

.details-bottom-breadcrumb i {
    color: rgba(148,163,184,.44) !important;
    font-size: .78rem !important;
}

.show-right,
.tab-card,
.show-tab-content,
.show-tab-content > .tab-pane,
.tab-pane-inner,
#episodesPane .card.mt-4 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

#episodesPane .card.mt-4 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#playlist {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

#playlist .playlist-item:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .show-left h3 {
        font-size: clamp(1.9rem, 8.7vw, 2.35rem) !important;
        line-height: 1.08 !important;
        margin-bottom: .95rem !important;
    }

    .story-rank {
        margin-bottom: .7rem !important;
    }

    .series-description-block {
        padding-right: 0 !important;
    }

    .read-more-btn {
        position: static !important;
        margin-top: .3rem !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #playlist {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Mobile-only details page polish */
@media (max-width: 767.98px) {
    html,
    body {
        overflow-x: hidden !important;
    }

    main {
        overflow-x: hidden !important;
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .show-shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: .75rem 1rem calc(86px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .show-layout,
    .show-left,
    .show-right,
    .tab-card,
    .show-tab-content,
    .show-tab-content > .tab-pane,
    .tab-pane-inner,
    #episodesPane,
    #episodesPane .card.mt-4,
    #playlist {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        background: transparent !important;
    }

    .show-left > .card.overflow-hidden {
        border-radius: 0 !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important;
    }

    .show-left > .card.overflow-hidden .card-body {
        padding: 1rem !important;
    }

    .show-left h3 {
        font-size: clamp(2rem, 9vw, 2.45rem) !important;
        line-height: 1.04 !important;
        margin-bottom: .9rem !important;
    }

    .show-left > .card.overflow-hidden .card-body > .d-flex.flex-wrap.gap-2.mb-3 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin-bottom: .95rem !important;
    }

    .detail-play-hero-btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 18px !important;
        border-radius: 20px !important;
        font-size: .92rem !important;
    }

    #favoriteBtn {
        flex: 0 0 auto !important;
        min-width: 112px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 16px !important;
        border-radius: 20px !important;
        font-size: .9rem !important;
    }

    #resumeBanner .card-body {
        padding: 1rem !important;
        gap: .75rem !important;
    }

    .details-bottom-breadcrumb {
        font-size: .82rem !important;
        gap: .42rem !important;
    }

    .show-right {
        padding-top: 1rem !important;
    }

    .show-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 1rem !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 0 0 .55rem !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.12) !important;
        background: transparent !important;
        scrollbar-width: none !important;
    }

    .show-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .show-tabs .nav-item,
    .show-tabs .nav-link {
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    .show-tabs .nav-link {
        position: relative !important;
        display: inline-flex !important;
        align-items: baseline !important;
        gap: .28rem !important;
        padding: .6rem 0 .62rem !important;
        font-size: clamp(.98rem, 4.7vw, 1.15rem) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .show-tabs .nav-link sup {
        position: static !important;
        font-size: .56em !important;
        line-height: 1 !important;
        margin-left: .05rem !important;
        transform: none !important;
    }

    .show-tabs .nav-link.active::after {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 2px !important;
    }

    .episode-toolbar {
        margin: .8rem 0 .55rem !important;
    }

    #playlist {
        overflow: visible !important;
        padding: 0 !important;
    }

    #playlist .playlist-item {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 40px 40px !important;
        gap: .55rem !important;
        align-items: center !important;
        min-height: 58px !important;
        padding: .7rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
        overflow: hidden !important;
    }

    #playlist .playlist-item .flex-grow-1 {
        min-width: 0 !important;
    }

    #playlist .playlist-item h6 {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: .94rem !important;
        line-height: 1.2 !important;
    }

    #playlist .playlist-item .play-btn,
    #playlist .playlist-item .btn-outline-secondary {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 50% !important;
    }
}

@media (max-width: 360px) {
    .show-left > .card.overflow-hidden .card-body > .d-flex.flex-wrap.gap-2.mb-3 {
        flex-wrap: wrap !important;
    }

    .detail-play-hero-btn,
    #favoriteBtn {
        flex: 1 1 calc(50% - 5px) !important;
        min-width: 0 !important;
    }

    .show-tabs {
        gap: .78rem !important;
    }

    .show-tabs .nav-link {
        font-size: .92rem !important;
    }
}

/* Final mobile-only details spacing and action controls */
@media (max-width: 767.98px) {
    .show-left > .card.overflow-hidden .card-body {
        padding: 1.1rem 1.25rem !important;
    }

    main {
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .show-shell {
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }

    .show-layout,
    .show-left,
    .show-right,
    .tab-card,
    .show-tab-content,
    .show-tab-content > .tab-pane,
    .tab-pane-inner,
    #episodesPane,
    #episodesPane .card.mt-4,
    #playlist {
        min-height: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .show-left .show-badge-row {
        margin: 0 0 14px !important;
        gap: 6px !important;
    }

    .show-left .story-rank {
        margin: 0 !important;
    }

    .show-left h3 {
        margin: 0 0 16px !important;
        font-size: clamp(1.55rem, 6.8vw, 2.15rem) !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .show-left > .card.overflow-hidden .card-body > .d-flex.flex-wrap.gap-2.mb-3 {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: center !important;
        margin: 0 0 18px !important;
    }

    .detail-play-hero-btn,
    #favoriteBtn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        line-height: 1 !important;
        font-size: clamp(.84rem, 3.6vw, .95rem) !important;
        text-align: center !important;
    }

    .detail-play-hero-btn i,
    #favoriteBtn i {
        flex: 0 0 auto !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    #favoriteBtn span,
    .detail-play-hero-btn span {
        min-width: 0 !important;
    }

    #resumeBanner {
        width: 100% !important;
        margin: 0 0 18px !important;
    }

    #resumeBanner .card {
        width: 100% !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    #resumeBanner .card-body {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 18px !important;
    }

    #resumeBanner #resumeTrack {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 339.98px) {
    .show-left > .card.overflow-hidden .card-body > .d-flex.flex-wrap.gap-2.mb-3 {
        grid-template-columns: 1fr !important;
    }
}

/* --- original style block 9 --- */
/* Final audiobook details episode range flow. */
.show-shell,
.show-layout,
.show-right,
.tab-card,
.show-tab-content,
.show-tab-content > .tab-pane,
.tab-pane-inner,
#episodesPane,
#episodesPane .card.mt-4,
#playlist {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.show-shell {
    padding-bottom: clamp(3rem, 8vw, 7rem) !important;
}

.show-layout {
    align-items: start !important;
}

.tab-card {
    padding-bottom: 0 !important;
}

.episode-toolbar {
    margin: 0 0 .85rem !important;
}

#playlist {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
}

#playlist .playlist-item {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px 42px !important;
    column-gap: .75rem !important;
    align-items: center !important;
    min-height: 74px !important;
    padding: .85rem 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#playlist .playlist-item.active {
    background: rgba(124, 58, 237, .16) !important;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
}

#playlist .playlist-item .flex-grow-1 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

#playlist .playlist-item .me-3 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 42px !important;
    margin: 0 !important;
}

#playlist .playlist-item .ms-2 {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 42px !important;
    margin: 0 !important;
}

#playlist .playlist-item .me-2,
#playlist .playlist-item small {
    display: none !important;
}

#playlist .playlist-item h6 {
    width: 100% !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(.98rem, 1vw, 1.1rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#playlist .play-btn,
#playlist .btn-outline-secondary {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    color: #fff !important;
    background: rgba(255,255,255,.025) !important;
}

#playlist .play-btn:hover,
#playlist .btn-outline-secondary:hover,
#playlist .play-btn:focus-visible,
#playlist .btn-outline-secondary:focus-visible {
    background: linear-gradient(135deg, #7c3aed, #db2777) !important;
    box-shadow: 0 0 0 3px rgba(192,132,252,.22) !important;
    outline: 0 !important;
}

.episode-loader,
.episode-load-error {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: rgba(216,180,254,.82);
    font-weight: 700;
}

.episode-loader-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(192,132,252,.25);
    border-top-color: #c084fc;
    animation: episodeSpin .8s linear infinite;
}

.episode-load-error {
    color: #fecaca;
}

.episode-retry-btn {
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(248,113,113,.42);
    background: rgba(248,113,113,.1);
    color: #fff;
    padding: 0 .9rem;
    font-weight: 800;
}

.episode-sentinel {
    width: 100%;
    height: 1px;
}

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

@media (max-width: 991.98px) {
    .show-layout {
        display: block !important;
    }

    .show-right {
        margin-top: 1rem !important;
    }
}

@media (max-width: 430px) {
    #playlist .playlist-item {
        grid-template-columns: minmax(0, 1fr) 38px 38px !important;
        column-gap: .5rem !important;
        min-height: 66px !important;
    }

    #playlist .play-btn,
    #playlist .btn-outline-secondary,
    #playlist .playlist-item .me-3,
    #playlist .playlist-item .ms-2 {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }
}

/* --- original style block 10 --- */
/* Pocket-style episode ranges, adapted to Elephant's dark purple detail theme. */
body.episode-range-modal-open {
    overflow: hidden !important;
}

.episode-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 0 14px !important;
}

.episode-range-selector {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    border: 1px solid rgba(192, 132, 252, .28);
    border-radius: 999px;
    padding: 0 .9rem;
    color: #d8b4fe;
    background: rgba(10, 14, 30, .72);
    font-family: Inter, Poppins, Arial, sans-serif;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
    transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.episode-range-selector:hover,
.episode-range-selector:focus-visible,
.episode-range-selector[aria-expanded="true"] {
    color: #fff;
    border-color: rgba(236, 72, 153, .58);
    background: rgba(124, 58, 237, .18);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, .14), 0 14px 34px rgba(124, 58, 237, .18);
    outline: 0;
}

.episode-empty-inline {
    margin: 0;
    color: rgba(226,232,240,.7);
}

#episodesPane .episode-range-card {
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#playlist.episode-scroll-list {
    max-height: min(620px, calc(100vh - 240px)) !important;
    min-height: 332px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 6px 72px 0 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(192,132,252,.46) rgba(255,255,255,.04);
    overscroll-behavior: contain;
}

#playlist.episode-scroll-list::-webkit-scrollbar,
.episode-range-grid::-webkit-scrollbar {
    width: 8px;
}

#playlist.episode-scroll-list::-webkit-scrollbar-track,
.episode-range-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

#playlist.episode-scroll-list::-webkit-scrollbar-thumb,
.episode-range-grid::-webkit-scrollbar-thumb {
    background: rgba(192,132,252,.42);
    border-radius: 999px;
}

#playlist .playlist-item {
    min-height: 64px !important;
    padding: .62rem 0 !important;
    transition: background .16s ease, border-color .16s ease, padding .16s ease;
}

#playlist .playlist-item:hover,
#playlist .playlist-item:focus-within {
    background: rgba(124, 58, 237, .09) !important;
}

#playlist .playlist-item.active {
    border-color: rgba(236,72,153,.34) !important;
    background: linear-gradient(90deg, rgba(124,58,237,.22), rgba(219,39,119,.1)) !important;
}

.episode-empty-range {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: rgba(226,232,240,.66);
    text-align: center;
}

.episode-range-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2070;
    background: rgba(2, 6, 23, .74);
    backdrop-filter: blur(12px);
}

.episode-range-modal {
    position: fixed;
    inset: 0;
    z-index: 2080;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 36px);
}

.episode-range-modal[hidden],
.episode-range-modal-backdrop[hidden] {
    display: none !important;
}

.episode-range-modal__panel {
    width: min(580px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(192,132,252,.26);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(124,58,237,.16), transparent 20rem),
        linear-gradient(180deg, rgba(16,18,34,.98), rgba(23,11,24,.98));
    box-shadow: 0 28px 90px rgba(0,0,0,.62);
    transform: translateY(0);
    animation: episodeModalIn .16s ease-out;
}

@keyframes episodeModalIn {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.episode-range-modal__header,
.episode-range-modal__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(255,255,255,.025);
}

.episode-range-modal__header {
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.episode-range-modal__header h2 {
    margin: 0;
    color: #fff;
    font: 800 1.25rem/1.2 Inter, Poppins, Arial, sans-serif;
}

.episode-range-modal__close {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.05);
}

.episode-range-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-height: min(420px, calc(100vh - 230px));
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(192,132,252,.46) rgba(255,255,255,.04);
}

.episode-range-option,
.episode-range-apply {
    min-height: 48px;
    border-radius: 999px;
    font: 800 .92rem/1 Inter, Poppins, Arial, sans-serif;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.episode-range-option {
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(248,250,252,.9);
    background: rgba(255,255,255,.035);
}

.episode-range-option:hover,
.episode-range-option:focus-visible,
.episode-range-option.is-selected {
    color: #fff;
    border-color: rgba(236,72,153,.64);
    background: linear-gradient(135deg, rgba(124,58,237,.9), rgba(219,39,119,.78));
    box-shadow: 0 0 0 3px rgba(192,132,252,.16);
    outline: 0;
}

.episode-range-modal__footer {
    border-top: 1px solid rgba(255,255,255,.08);
}

.episode-range-apply {
    width: 100%;
    border: 1px solid rgba(236,72,153,.52);
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.episode-range-modal__close:hover,
.episode-range-modal__close:focus-visible,
.episode-range-apply:hover,
.episode-range-apply:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(192,132,252,.18);
    outline: 0;
}

@media (max-width: 768px) {
    #playlist.episode-scroll-list {
        max-height: min(560px, calc(100vh - 225px)) !important;
        min-height: 300px !important;
        padding-bottom: 84px !important;
    }
    #playlist .playlist-item {
        min-height: 60px !important;
        padding-top: .54rem !important;
        padding-bottom: .54rem !important;
    }
    .episode-range-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: calc(100vh - 230px);
        padding: 16px;
    }
    .episode-range-modal {
        padding: 14px;
        align-items: center;
    }
}

@media (max-width: 380px) {
    #playlist .playlist-item {
        min-height: 58px !important;
    }
    .episode-range-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .episode-range-modal__panel {
        animation: none;
    }
}

/* --- original style block 11 --- */
.audiobook-cover-section img.is-fallback-cover,
.show-left > .card.overflow-hidden .col-md-4 img.is-fallback-cover,
.mini-player-cover img.is-fallback-cover,
.show-cover img.is-fallback-cover {
    object-fit: contain !important;
}

.audiobook-cover-section,
.show-left > .card.overflow-hidden .col-md-4 {
    width: min(620px, 82%) !important;
    max-width: 620px !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    display: grid !important;
    place-items: center !important;
    padding: clamp(.45rem, 1vw, .75rem) !important;
    overflow: hidden !important;
}

.audiobook-cover-section img.is-fallback-cover,
.show-left > .card.overflow-hidden .col-md-4 img.is-fallback-cover {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
}

@media (max-width: 575.98px) {
    .audiobook-left-panel > .row,
    .show-left > .card.overflow-hidden > .row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 1rem !important;
    }

    .audiobook-cover-section,
    .show-left > .card.overflow-hidden .col-md-4 {
        width: min(100%, 320px) !important;
        height: auto !important;
        max-height: none !important;
        margin-inline: auto !important;
        padding: .28rem !important;
    }

    #resumeBanner .card-body {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: .7rem !important;
        padding: .85rem !important;
    }

    #resumeBanner .card-body > .d-flex {
        min-width: 0 !important;
    }

    #resumeBanner .card-body > .d-flex:last-child {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    #resumeBanner #resumeTitle,
    #resumeBanner #resumeTrack {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}
