/* Chapter read page — scoped to .page-chapter-read */

/* Centered reading column */
.chapter-read-layout {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.page-chapter-read {
    --cr-accent: #0d9488;
    --cr-accent-dark: #0f766e;
    --cr-violet: #6366f1;
    --cr-radius: 14px;
    --cr-pad-x: 24px;
    --cr-pad-y: 28px;
}

/* Global outline reset on this page */
.page-chapter-read a,
.page-chapter-read button,
.page-chapter-read input,
.page-chapter-read textarea,
.page-chapter-read select {
    -webkit-tap-highlight-color: transparent;
}

.page-chapter-read a:focus,
.page-chapter-read a:active,
.page-chapter-read a:visited,
.page-chapter-read button:focus,
.page-chapter-read button:active,
.page-chapter-read input:focus,
.page-chapter-read textarea:focus,
.page-chapter-read select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.page-chapter-read a::-moz-focus-inner,
.page-chapter-read button::-moz-focus-inner {
    border: 0;
}

/* Reading frame */
.page-chapter-read {
    width: 100%;
    max-width: 860px;
    margin: 20px auto 24px;
    background: var(--bg-color-2, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--cr-radius);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.page-chapter-read .page-in.content-wrap {
    max-width: 100%;
    padding: var(--cr-pad-y) var(--cr-pad-x);
}

.page-chapter-read .titles {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.page-chapter-read .titles h1 {
    font-size: 1.35rem;
    line-height: 1.55;
    font-weight: 700;
    margin: 0;
}

.page-chapter-read .titles h1 .booktitle {
    color: var(--text-color, #2a2e2e);
    font-weight: 600;
}

.page-chapter-read .titles h1 .booktitle:hover {
    color: var(--text-color, #2a2e2e);
    text-decoration: underline;
}

.page-chapter-read .titles h1 .booktitle:focus,
.page-chapter-read .titles h1 .booktitle:active,
.page-chapter-read .titles h1 .booktitle:visited {
    color: var(--text-color, #2a2e2e);
    outline: none !important;
}

.page-chapter-read .titles .chapter-title {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color-sub, #64748b);
}

.page-chapter-read .control-action-btn a,
.page-chapter-read .control-action-btn button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-color, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font: inherit;
}

.page-chapter-read .control-action-btn a:focus,
.page-chapter-read .control-action-btn a:active,
.page-chapter-read .control-action-btn button:focus,
.page-chapter-read .control-action-btn button:active {
    outline: none !important;
    box-shadow: none !important;
}

.page-chapter-read .control-action-btn a:hover,
.page-chapter-read .control-action-btn button:hover {
    color: var(--st-icon, #64748b);
    transform: rotate(45deg);
    background: var(--bg-color-8, #f1f5f9);
}

/* Reader settings panel */
body.chapter-read-page .control-action.is-open {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 3000;
    padding: 16px;
    background: transparent;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

body.chapter-read-page .control-action-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    z-index: 0;
}

body.chapter-read-page .control-action .action-items {
    position: relative;
    display: block !important;
    z-index: 1;
    margin: auto;
    width: min(400px, calc(100% - 32px));
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--st-surface, #fff);
    border: 1px solid var(--st-border, #e2e8f0);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    color: var(--st-text, #1e293b);
}

body.chapter-read-page .control-action .action-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--st-border, #e2e8f0);
}

body.chapter-read-page .control-action .action-head strong {
    font-size: 16px;
    font-weight: 700;
}

body.chapter-read-page .control-action .action-head button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: var(--st-bg-subtle, #f8fafc);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

body.chapter-read-page .control-action .font-select {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--st-text-muted, #64748b);
}

body.chapter-read-page .control-action .font-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

body.chapter-read-page .control-action .font-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--st-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

body.chapter-read-page .control-action .font-controls span {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--st-text, #1e293b);
}

body.chapter-read-page .control-action .action-hint {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--st-text-muted, #64748b);
}

@media (max-width: 640px) {
    body.chapter-read-page .control-action.is-open {
        justify-content: flex-end;
        align-items: stretch;
        padding: 0;
    }

    body.chapter-read-page .control-action .action-items {
        margin: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    body.chapter-read-page .bottom-bar .bottom-bar-list-chapter {
        left: 12px !important;
        right: 12px !important;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important;
        transform: none !important;
        max-height: 65vh !important;
    }
}

body.chapter-read-page .bottom-bar .bottom-bar-list-chapter {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    width: min(900px, calc(100vw - 24px)) !important;
    max-height: min(60vh, 520px) !important;
    overflow: hidden auto !important;
    background: var(--st-surface, #fff) !important;
    border: 1px solid var(--st-border, #e2e8f0) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18) !important;
    padding: 12px !important;
    display: none !important;
    z-index: 140 !important;
}

body.chapter-read-page .bottom-bar .bottom-bar-list-chapter input {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid var(--st-border, #e2e8f0) !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    color: var(--st-text, #1e293b) !important;
    background: #fff !important;
    margin: 0 0 10px !important;
}

body.chapter-read-page .bottom-bar .bottom-bar-list-chapter h4 {
    margin: 0 0 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--st-text, #1e293b) !important;
}

body.chapter-read-page .bottom-bar .bottom-bar-list-chapter .list-chapter {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.chapter-read-page .bottom-bar .bottom-bar-list-chapter .list-chapter li + li {
    margin-top: 6px !important;
}

body.chapter-read-page .bottom-bar .bottom-bar-list-chapter .list-chapter a {
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    color: var(--st-text, #1e293b) !important;
    background: var(--st-bg-subtle, #f8fafc) !important;
    text-decoration: none !important;
}

body.chapter-read-page .bottom-bar .bottom-bar-list-chapter .list-chapter li.is-current a {
    background: rgba(13, 148, 136, 0.12) !important;
    color: var(--st-accent-dark, #0f766e) !important;
    font-weight: 700 !important;
}

html[color-mode="dark"] body.chapter-read-page .control-action .action-items,
body.dark body.chapter-read-page .control-action .action-items {
    background: var(--st-surface, #1e293b);
    border-color: var(--st-border, #334155);
    color: var(--st-text, #e2e8f0);
}

html[color-mode="dark"] body.chapter-read-page .control-action .font-controls button,
body.dark body.chapter-read-page .control-action .font-controls button {
    background: var(--st-bg, #0f172a);
    border-color: var(--st-border, #334155);
    color: var(--st-text, #e2e8f0);
}

/* Chapter nav buttons */
.page-chapter-read .chapternav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var(--bg-color, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
}

.page-chapter-read .chapternav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-color-2, #fff);
    color: var(--text-color, #0f172a);
    text-decoration: none;
    transition: all 0.15s ease;
}

.page-chapter-read .chapternav a:focus,
.page-chapter-read .chapternav a:active,
.page-chapter-read .chapternav a:visited {
    outline: none !important;
    box-shadow: none !important;
}

.page-chapter-read .chapternav a.prevchap,
.page-chapter-read .chapternav a.nextchap {
    background: linear-gradient(135deg, var(--cr-accent) 0%, var(--cr-violet) 100%);
    color: #fff;
    border-color: transparent;
}

.page-chapter-read .chapternav a.prevchap:hover,
.page-chapter-read .chapternav a.nextchap:hover,
.page-chapter-read .chapternav a.prevchap:active,
.page-chapter-read .chapternav a.nextchap:active,
.page-chapter-read .chapternav a.prevchap:visited,
.page-chapter-read .chapternav a.nextchap:visited {
    color: #fff;
    opacity: 0.92;
}

.page-chapter-read .chapternav a.chapindex,
.page-chapter-read .chapternav a.add-bookmark,
.page-chapter-read .chapternav a.push-bugs {
    min-width: 42px;
    width: 42px;
    padding: 0;
}

.page-chapter-read .chapternav a:hover {
    border-color: var(--cr-accent);
    color: var(--cr-accent);
}

/* Chapter text body */
.page-chapter-read .chapter-content {
    font-size: 1.125rem;
    line-height: 1.85;
    padding: 8px 12px 28px;
    text-align: justify;
    color: var(--text-color, #0f172a);
}

.page-chapter-read .chapter-content p {
    margin-bottom: 1.25em;
}

.page-chapter-read .container-notification {
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 14px 18px;
}

/* Comment block below reader */
.chapter-read-layout .novel-body.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 80px;
    padding: 24px 28px;
    border-radius: var(--cr-radius);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-color-2, #fff);
    box-sizing: border-box;
}

.chapter-read-layout .comment-area .tab-comment-area .comment-active,
.chapter-read-layout .comment-area .tab-comment-area ul li.comment-active {
    color: var(--text-color, #2a2e2e);
    border-bottom: 2px solid var(--text-color, #2a2e2e);
}

.chapter-read-layout .comment-area .tab-comment-area ul li i {
    color: var(--st-icon, #64748b);
}

.chapter-read-layout .btn-submit-comment,
.chapter-read-layout .comment-area .comment-actions .button {
    background: linear-gradient(135deg, var(--cr-accent) 0%, var(--cr-violet) 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3) !important;
}

.chapter-read-layout .comment-list .head h4 {
    color: var(--text-color, #2a2e2e);
}

/* Editor notification block (admin) */
.chapter-read-layout .container > label {
    color: var(--text-color-sub, #64748b);
    font-size: 0.9rem;
}

.chapter-read-layout .container .btn-success {
    background: var(--bg-color-8, #f1f5f9);
    border: 1px solid var(--border-color-2, #e2e8f0);
    color: var(--text-color, #2a2e2e);
    border-radius: 999px;
}

.chapter-read-layout .container .btn-primary {
    background: linear-gradient(135deg, var(--cr-accent) 0%, var(--cr-violet) 100%);
    border: none;
    border-radius: 999px;
    color: #fff;
}

/* Legacy sibling selector (fallback) */
.page-chapter-read + .novel-body.container,
.page-chapter-read ~ .novel-body.container {
    max-width: 860px;
    margin: 0 auto 80px;
    padding: 24px 28px;
    border-radius: var(--cr-radius);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-color-2, #fff);
}

/* Bottom bar — scroll to top replaces nap-xu */
body.chapter-read-page .bottom-bar .bar-control-right .btn-bar-scroll-top {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    color: var(--st-text-muted, #64748b) !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

body.chapter-read-page .bottom-bar .bar-control-right .btn-bar-scroll-top:focus,
body.chapter-read-page .bottom-bar .bar-control-right .btn-bar-scroll-top:active,
body.chapter-read-page .bottom-bar .bar-control-right .btn-bar-scroll-top:visited {
    outline: none !important;
    box-shadow: none !important;
    color: var(--cr-accent) !important;
}

body.chapter-read-page .bottom-bar .bar-control-right .btn-bar-scroll-top:hover {
    background: rgba(13, 148, 136, 0.1);
    color: var(--cr-accent-dark) !important;
}

body.chapter-read-page .bottom-bar .bar-control-right .btn-bar-scroll-top i {
    font-size: 17px;
    color: inherit !important;
}

body.chapter-read-page .bottom-bar .bar-control-right .nap-xu {
    display: none !important;
}

body.chapter-read-page .bottom-bar .bar-control-left a,
body.chapter-read-page .bottom-bar .bar-control a,
body.chapter-read-page .bottom-bar .bar-control-right a {
    outline: none !important;
}

body.chapter-read-page .bottom-bar .bar-control-left a:focus,
body.chapter-read-page .bottom-bar .bar-control a:focus,
body.chapter-read-page .bottom-bar .bar-control-right a:focus,
body.chapter-read-page .bottom-bar .bar-control-left a:active,
body.chapter-read-page .bottom-bar .bar-control a:active,
body.chapter-read-page .bottom-bar .bar-control-right a:active {
    outline: none !important;
    box-shadow: none !important;
}

body:has(.page-chapter-read) {
    padding-bottom: 58px;
}

@media (max-width: 768px) {
    .chapter-read-layout {
        padding: 0 10px;
    }

    .page-chapter-read {
        margin: 12px auto 20px;
        border-radius: 12px;
    }

    .page-chapter-read .page-in.content-wrap {
        padding: 24px 18px;
    }

    .page-chapter-read .titles h1 {
        font-size: 1.15rem;
    }

    .page-chapter-read .chapter-content {
        font-size: 1.0625rem;
        line-height: 1.8;
        padding: 4px 0 20px;
    }

    .page-chapter-read .chapternav {
        padding: 12px;
        gap: 8px;
    }

    .page-chapter-read .chapternav a {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.8125rem;
    }

    body.chapter-read-page .bottom-bar .bar-control-right .btn-bar-scroll-top b {
        display: none;
    }
}

/* Dark mode — khung đọc đồng bộ theme */
html[color-mode="dark"] .page-chapter-read,
body.dark .page-chapter-read {
    background: var(--st-surface, #1e293b);
    border-color: var(--st-border, #334155);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

html[color-mode="dark"] .page-chapter-read .titles,
body.dark .page-chapter-read .titles {
    border-bottom-color: var(--st-border, #334155);
}

html[color-mode="dark"] .page-chapter-read .titles h1 .booktitle,
html[color-mode="dark"] .page-chapter-read .titles h1 .booktitle:visited,
body.dark .page-chapter-read .titles h1 .booktitle,
body.dark .page-chapter-read .titles h1 .booktitle:visited {
    color: var(--st-text, #e2e8f0);
}

html[color-mode="dark"] .page-chapter-read .titles .chapter-title,
body.dark .page-chapter-read .titles .chapter-title {
    color: var(--st-text-muted, #94a3b8);
}

html[color-mode="dark"] .page-chapter-read .control-action-btn a,
body.dark .page-chapter-read .control-action-btn a {
    background: var(--st-bg, #0f172a);
    border-color: var(--st-border, #334155);
    color: var(--st-text-muted, #94a3b8);
}

/* Bottom bar — đồng bộ theme (light + dark) */
body.chapter-read-page .bottom-bar .bottom-bar-status {
    background: var(--st-surface, #fff) !important;
    border-top: 1px solid var(--st-border, #e2e8f0);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
    min-height: 56px;
    height: auto;
}

body.chapter-read-page .bottom-bar .bar-control-left a,
body.chapter-read-page .bottom-bar .bar-control a,
body.chapter-read-page .bottom-bar .bar-control-right a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--st-text-muted, #64748b) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: color 0.15s ease, background 0.15s ease;
}

body.chapter-read-page .bottom-bar .bottom-bar-status i {
    color: var(--cr-accent, #0d9488) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 0 4px !important;
}

body.chapter-read-page .bottom-bar .bar-control .show-list-chap {
    background: rgba(13, 148, 136, 0.1) !important;
    color: var(--cr-accent, #0d9488) !important;
    border: 1px solid var(--st-border, #e2e8f0) !important;
    border-radius: 10px;
    padding: 10px 14px !important;
    margin: 0 6px;
    line-height: 1 !important;
}

body.chapter-read-page .bottom-bar .bar-control-left a:hover,
body.chapter-read-page .bottom-bar .bar-control a:hover,
body.chapter-read-page .bottom-bar .bar-control-right a:hover {
    color: var(--cr-accent, #0d9488) !important;
    background: rgba(13, 148, 136, 0.08);
}

body.chapter-read-page .bottom-bar .bar-control-left img {
    display: none !important;
}

body.chapter-read-page .bottom-bar .btn-bar-back,
body.chapter-read-page .bottom-bar .btn-bar-back b {
    color: var(--cr-accent, #0d9488) !important;
}

body.chapter-read-page .bottom-bar .btn-bar-back i {
    color: var(--cr-accent, #0d9488) !important;
}

body.chapter-read-page .bottom-bar .btn-bar-back:hover,
body.chapter-read-page .bottom-bar .btn-bar-back:hover b,
body.chapter-read-page .bottom-bar .btn-bar-back:hover i {
    color: var(--cr-accent-dark, #0f766e) !important;
}

html[color-mode="dark"] body.chapter-read-page .bottom-bar .bottom-bar-status,
body.dark body.chapter-read-page .bottom-bar .bottom-bar-status {
    background: var(--st-surface, #1e293b) !important;
    border-top-color: var(--st-border, #334155);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35) !important;
}

html[color-mode="dark"] body.chapter-read-page .bottom-bar .bar-control-left a,
html[color-mode="dark"] body.chapter-read-page .bottom-bar .bar-control a,
html[color-mode="dark"] body.chapter-read-page .bottom-bar .bar-control-right a,
body.dark body.chapter-read-page .bottom-bar .bar-control-left a,
body.dark body.chapter-read-page .bottom-bar .bar-control a,
body.dark body.chapter-read-page .bottom-bar .bar-control-right a {
    color: var(--st-text-muted, #94a3b8) !important;
}

html[color-mode="dark"] body.chapter-read-page .bottom-bar .bottom-bar-status i,
body.dark body.chapter-read-page .bottom-bar .bottom-bar-status i {
    color: var(--st-accent, #2dd4bf) !important;
}

html[color-mode="dark"] body.chapter-read-page .bottom-bar .bar-control .show-list-chap,
body.dark body.chapter-read-page .bottom-bar .bar-control .show-list-chap {
    background: rgba(45, 212, 191, 0.12) !important;
    color: var(--st-accent, #2dd4bf) !important;
    border-color: var(--st-border, #334155) !important;
}

html[color-mode="dark"] body.chapter-read-page .bottom-bar .bar-control-left a:hover,
html[color-mode="dark"] body.chapter-read-page .bottom-bar .bar-control a:hover,
html[color-mode="dark"] body.chapter-read-page .bottom-bar .bar-control-right a:hover,
body.dark body.chapter-read-page .bottom-bar .bar-control-left a:hover,
body.dark body.chapter-read-page .bottom-bar .bar-control a:hover,
body.dark body.chapter-read-page .bottom-bar .bar-control-right a:hover {
    color: var(--st-accent, #2dd4bf) !important;
    background: rgba(45, 212, 191, 0.1);
}

html[color-mode="dark"] body.chapter-read-page .bottom-bar .bar-control-left img,
body.dark body.chapter-read-page .bottom-bar .bar-control-left img {
    display: none !important;
}

html[color-mode="dark"] body.chapter-read-page .bottom-bar .btn-bar-back,
html[color-mode="dark"] body.chapter-read-page .bottom-bar .btn-bar-back b,
html[color-mode="dark"] body.chapter-read-page .bottom-bar .btn-bar-back i,
body.dark body.chapter-read-page .bottom-bar .btn-bar-back,
body.dark body.chapter-read-page .bottom-bar .btn-bar-back b,
body.dark body.chapter-read-page .bottom-bar .btn-bar-back i {
    color: var(--st-accent, #2dd4bf) !important;
}

html[color-mode="dark"] body.chapter-read-page .bottom-bar .btn-bar-back:hover,
html[color-mode="dark"] body.chapter-read-page .bottom-bar .btn-bar-back:hover b,
html[color-mode="dark"] body.chapter-read-page .bottom-bar .btn-bar-back:hover i,
body.dark body.chapter-read-page .bottom-bar .btn-bar-back:hover,
body.dark body.chapter-read-page .bottom-bar .btn-bar-back:hover b,
body.dark body.chapter-read-page .bottom-bar .btn-bar-back:hover i {
    color: #5eead4 !important;
}

/* TTS / audio player */
.page-chapter-read .player-wrapper {
    background: var(--bg-color-8, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.page-chapter-read .player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-chapter-read .player-select {
    height: 40px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    color: var(--text-color, #1e293b);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    appearance: auto;
}

.page-chapter-read .btn-play-pause {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cr-accent) 0%, var(--cr-violet) 100%);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.page-chapter-read .status-area {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-color-sub, #64748b);
    white-space: nowrap;
}

.page-chapter-read .player-wrapper audio {
    width: 100%;
    height: 40px;
}

@media (max-width: 640px) {
    .page-chapter-read .player-controls {
        gap: 8px;
    }

    .page-chapter-read .player-select {
        flex: 1 1 120px;
        height: 36px;
        font-size: 12px;
    }

    .page-chapter-read .status-area {
        width: 100%;
        margin-left: 0;
        padding-top: 4px;
    }
}
