/* from themes/basic/literatureApp/playArticle.html */
.awgp-literature-reader .awgp-playarticle-tools {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 9px;
        margin: 0 0 16px;
    }
.awgp-literature-reader .awgp-tool-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 40px;
        margin: 0;
        padding: 8px 12px;
        border: 1px solid rgba(185, 65, 20, 0.28);
        border-radius: 8px;
        background: #fff;
        color: var(--awgp-saffron, #b94114);
        cursor: pointer;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1;
        user-select: none;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
    }
.awgp-literature-reader .awgp-tool-button:hover,
.awgp-literature-reader .awgp-tool-button:focus,
.awgp-literature-reader .awgp-tool-button.is-active {
        border-color: var(--awgp-saffron, #b94114);
        background: var(--awgp-saffron, #b94114);
        color: #fff;
        box-shadow: 0 7px 16px rgba(185, 65, 20, 0.18);
        outline: none;
        transform: translateY(-2px);
    }
.awgp-literature-reader .awgp-note-button-tool {
        border-color: rgba(216, 157, 43, 0.45);
        background: #fffaf1;
        color: #80570f;
    }
.awgp-literature-reader .awgp-note-button-tool:hover,
.awgp-literature-reader .awgp-note-button-tool:focus,
.awgp-literature-reader .awgp-note-button-tool.is-active {
        border-color: var(--awgp-gold, #d89d2b);
        background: var(--awgp-gold, #d89d2b);
        color: #fff;
    }
.awgp-literature-reader .awgp-tool-icon,
.awgp-literature-reader .awgp-control-icon,
.awgp-literature-reader .awgp-modal-title-icon {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
    }
.awgp-literature-reader .awgp-tool-icon svg,
.awgp-literature-reader .awgp-control-icon svg,
.awgp-literature-reader .awgp-modal-title-icon svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }
.awgp-literature-reader .awgp-tool-label {
        white-space: nowrap;
    }
.awgp-literature-reader .tts-player.awgp-tts-player {
        display: none;
        margin: 0 0 22px;
        padding: 16px;
        border: 1px solid rgba(185, 65, 20, 0.20);
        border-radius: 12px;
        background: linear-gradient(135deg, #fffaf2, #fff3df);
        box-shadow: 0 7px 18px rgba(68, 41, 19, 0.07);
    }
.awgp-literature-reader .awgp-tts-notice {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        padding: 11px 12px;
        border: 1px solid rgba(185, 65, 20, 0.24);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.74);
        color: #8d2c0d;
        font-size: 0.83rem;
        line-height: 1.58;
    }
.awgp-literature-reader .awgp-tts-notice-icon {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 19px;
        height: 19px;
        border-radius: 50%;
        background: var(--awgp-saffron, #b94114);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 800;
    }
.awgp-literature-reader .awgp-tts-control-row {
        display: flex;
        flex-wrap: wrap;
        gap: 9px;
        margin-top: 14px;
    }
.awgp-literature-reader .awgp-tts-control {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 39px;
        padding: 8px 13px;
        border: 1px solid rgba(185, 65, 20, 0.30);
        border-radius: 8px;
        background: #fff;
        color: var(--awgp-saffron, #b94114);
        cursor: pointer;
        font-family: inherit;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
    }
.awgp-literature-reader .awgp-tts-control:hover:not(:disabled),
.awgp-literature-reader .awgp-tts-control:focus:not(:disabled) {
        border-color: var(--awgp-saffron, #b94114);
        background: var(--awgp-saffron, #b94114);
        color: #fff;
        box-shadow: 0 6px 14px rgba(185, 65, 20, 0.18);
        outline: none;
        transform: translateY(-1px);
    }
.awgp-literature-reader .awgp-tts-play .awgp-control-icon svg {
        fill: currentColor;
    }
.awgp-literature-reader .awgp-tts-stop {
        border-color: rgba(128, 87, 15, 0.35);
        color: #80570f;
    }
.awgp-literature-reader .awgp-tts-stop:hover:not(:disabled),
.awgp-literature-reader .awgp-tts-stop:focus:not(:disabled) {
        border-color: #80570f;
        background: #80570f;
        color: #fff;
    }
.awgp-literature-reader .awgp-tts-control:disabled {
        cursor: not-allowed;
        opacity: 0.48;
    }
.awgp-literature-reader .modal.awgp-remark-modal {
        position: fixed;
        z-index: 10000;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        overflow: auto;
        padding: 24px 16px;
        background: rgba(42, 28, 17, 0.54);
    }
.awgp-literature-reader .modal-content.awgp-remark-modal-content {
        width: min(100%, 580px);
        margin: 8vh auto;
        padding: 20px;
        border: 1px solid var(--awgp-border, #ebdfd2);
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 18px 45px rgba(30, 19, 11, 0.28);
        text-align: left;
    }
.awgp-literature-reader .awgp-remark-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 10px;
    }
.awgp-literature-reader .awgp-remark-modal-header h2 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        color: var(--awgp-ink, #2b251f);
        font-size: 1.2rem;
        font-weight: 700;
    }
.awgp-literature-reader .awgp-modal-title-icon {
        color: var(--awgp-saffron, #b94114);
    }
.awgp-literature-reader .close.awgp-remark-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin: 0;
        border-radius: 50%;
        background: #f7eee6;
        color: #80570f;
        cursor: pointer;
        font-size: 1.35rem;
        font-weight: 400;
        line-height: 1;
        text-align: center;
    }
.awgp-literature-reader .close.awgp-remark-close:hover,
.awgp-literature-reader .close.awgp-remark-close:focus {
        background: #80570f;
        color: #fff;
        outline: none;
    }
.awgp-literature-reader .awgp-note-help {
        margin: 0 0 12px;
        padding: 10px 12px;
        border-left: 3px solid var(--awgp-gold, #d89d2b);
        border-radius: 0 8px 8px 0;
        background: #fff9ed;
        color: var(--awgp-muted, #74685e);
        font-size: 0.83rem;
        line-height: 1.55;
    }
.awgp-literature-reader .awgp-remark-textarea {
        display: block;
        width: 100%;
        min-height: 112px;
        padding: 11px 12px;
        border: 1px solid #d9c8b8;
        border-radius: 9px;
        background: #fffdf9;
        color: var(--awgp-ink, #2b251f);
        font-family: inherit;
        font-size: 0.92rem;
        line-height: 1.55;
        outline: none;
        resize: vertical;
    }
.awgp-literature-reader .awgp-remark-textarea:focus {
        border-color: var(--awgp-saffron, #b94114);
        box-shadow: 0 0 0 3px rgba(185, 65, 20, 0.11);
    }
.awgp-literature-reader .awgp-remark-modal-footer {
        display: flex;
        justify-content: flex-end;
        margin-top: 14px;
    }
.awgp-literature-reader .awgp-save-remark-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 39px;
        padding: 8px 14px;
        border: 1px solid var(--awgp-saffron, #b94114);
        border-radius: 8px;
        background: var(--awgp-saffron, #b94114);
        color: #fff;
        cursor: pointer;
        font-family: inherit;
        font-size: 0.84rem;
        font-weight: 700;
    }
.awgp-literature-reader .awgp-save-remark-button:hover,
.awgp-literature-reader .awgp-save-remark-button:focus {
        border-color: var(--awgp-saffron-dark, #8d2c0d);
        background: var(--awgp-saffron-dark, #8d2c0d);
        outline: none;
    }
.awgp-literature-reader .remark-list.awgp-remark-list {
        display: none;
        margin: 0 0 22px;
    }
.awgp-literature-reader .remark-list.awgp-remark-list.is-visible {
        display: block;
        padding: 16px;
        border: 1px solid rgba(216, 157, 43, 0.30);
        border-radius: 12px;
        background: linear-gradient(135deg, #fffaf0, #fff5df);
        box-shadow: 0 7px 18px rgba(68, 41, 19, 0.06);
        animation: awgpRemarkPanelIn 0.2s ease-out;
    }
@keyframes awgpRemarkPanelIn {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
.awgp-literature-reader .awgp-remark-list-heading {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 11px;
        border-bottom: 1px solid rgba(216, 157, 43, 0.25);
        color: #80570f;
        font-size: 0.98rem;
        font-weight: 800;
    }
.awgp-literature-reader .awgp-remark-list-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 19px;
        height: 19px;
    }
.awgp-literature-reader .awgp-remark-list-icon svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }
.awgp-literature-reader .awgp-remark-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 25px;
        height: 25px;
        margin-left: auto;
        padding: 0 8px;
        border-radius: 999px;
        background: rgba(216, 157, 43, 0.16);
        color: #80570f;
        font-size: 0.74rem;
        font-weight: 800;
    }
.awgp-literature-reader .awgp-no-remarks {
        padding: 17px 14px;
        border: 1px dashed rgba(185, 65, 20, 0.35);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.65);
        color: var(--awgp-muted, #74685e);
        font-size: 0.86rem;
        line-height: 1.6;
        text-align: center;
    }
.awgp-literature-reader .awgp-no-remarks strong {
        display: inline-block;
        margin-bottom: 4px;
        color: var(--awgp-ink, #2b251f);
    }
.awgp-literature-reader .remark-list.awgp-remark-list .remark-item {
        margin-top: 10px;
        padding: 12px;
        border: 1px solid rgba(216, 157, 43, 0.22);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.76);
        color: #675847;
        cursor: pointer;
        font-size: 0.84rem;
        line-height: 1.58;
        transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
    }
.awgp-literature-reader .remark-list.awgp-remark-list .remark-item:hover {
        border-color: rgba(185, 65, 20, 0.38);
        box-shadow: 0 5px 12px rgba(68, 41, 19, 0.08);
        transform: translateY(-1px);
    }
.awgp-literature-reader .remark-list.awgp-remark-list .remarkTitle {
        display: block;
        color: var(--awgp-saffron, #b94114);
        font-weight: 800;
    }
.awgp-literature-reader .awgp-remark-selected-text {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 6px;
        color: #74685e;
        font-size: 0.79rem;
        font-style: italic;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
.awgp-literature-reader .note-button {
        min-height: 34px;
        padding: 7px 11px;
        border: 1px solid var(--awgp-saffron, #b94114);
        border-radius: 7px;
        background: var(--awgp-saffron, #b94114);
        color: #fff;
        cursor: pointer;
        font-family: inherit;
        font-size: 0.77rem;
        font-weight: 700;
        box-shadow: 0 6px 15px rgba(68, 41, 19, 0.18);
    }
.awgp-literature-reader #contentArtcile .highlighted {
        padding: 1px 2px;
        border-radius: 3px;
        background: rgba(255, 221, 87, 0.65);
        box-decoration-break: clone;
        cursor: pointer;
        -webkit-box-decoration-break: clone;
    }
.awgp-literature-reader #contentArtcile .highlighted:hover {
        background: rgba(255, 189, 75, 0.75);
    }
.awgp-literature-reader .remark-dialog {
        position: fixed;
        z-index: 10002;
        right: 20px;
        bottom: 20px;
        width: min(360px, calc(100vw - 40px));
        padding: 14px;
        border: 1px solid rgba(216, 157, 43, 0.38);
        border-radius: 10px;
        background: #fffaf0;
        box-shadow: 0 12px 28px rgba(39, 28, 18, 0.20);
        color: #5f4e3d;
        font-size: 0.87rem;
        line-height: 1.55;
    }
.awgp-literature-reader .tooltip {
        position: fixed;
        z-index: 10001;
        max-width: min(300px, calc(100vw - 28px));
        padding: 8px 10px;
        border-radius: 7px;
        background: #38261a;
        color: #fff;
        font-size: 0.77rem;
        line-height: 1.45;
        pointer-events: none;
    }
@media (max-width: 520px) {
.awgp-literature-reader .awgp-playarticle-tools {
            justify-content: flex-start;
        }
.awgp-literature-reader .awgp-tool-button {
            width: 40px;
            min-width: 40px;
            height: 40px;
            min-height: 40px;
            padding: 8px;
            border-radius: 50%;
        }
.awgp-literature-reader .awgp-tool-label {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
            white-space: nowrap;
        }
.awgp-literature-reader .awgp-tts-control {
            width: 39px;
            min-width: 39px;
            height: 39px;
            min-height: 39px;
            padding: 8px;
            border-radius: 50%;
        }
.awgp-literature-reader .awgp-control-label {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
            white-space: nowrap;
        }
.awgp-literature-reader .modal-content.awgp-remark-modal-content {
            margin: 4vh auto;
            padding: 16px;
        }
}
