/* MARGO STORY — comics reader chrome */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
.comics-reader-body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.comics-reader-body {
    font-family: "Poppins", sans-serif;
    color: #4B3D2F;
    background-color: #E4D3BC;
    background-image:
        radial-gradient(ellipse 70% 78% at 50% 42%, rgba(236, 224, 206, 0.55), transparent 72%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M48 36v88' stroke='%236B5A48' stroke-width='3' opacity='.21'/%3E%3Cpath d='M402 86v54' stroke='%235A5248' stroke-width='2' opacity='.18'/%3E%3Cpath d='M78 168c36-46 86-8 66 28-18 36-74 18-66-18' stroke='%238B7355' stroke-width='7' opacity='.19'/%3E%3Cpath d='M268 52l16 64 16-44 16 44 16-64' stroke='%235E4C3B' stroke-width='6' opacity='.16'/%3E%3Cpath d='M28 390q70-36 126 8t112-18' stroke='%237A6A58' stroke-width='4' opacity='.16'/%3E%3Cpath d='M430 28h-28v46h28' stroke='%235A5248' stroke-width='9' opacity='.14'/%3E%3Cpath d='M340 300c28-18 58 6 44 28-12 20-46 12-44-8' stroke='%236B5A48' stroke-width='5' opacity='.16'/%3E%3Cpath d='M160 430c40 8 70-22 58-48' stroke='%238B7355' stroke-width='6' opacity='.15'/%3E%3C/g%3E%3Cg fill='%236B5A48' opacity='.12'%3E%3Ccircle cx='190' cy='310' r='1.6'/%3E%3Ccircle cx='198' cy='318' r='1.2'/%3E%3Ccircle cx='206' cy='306' r='1.8'/%3E%3Ccircle cx='214' cy='322' r='1.1'/%3E%3Ccircle cx='222' cy='312' r='1.4'/%3E%3Ccircle cx='70' cy='250' r='1.3'/%3E%3Ccircle cx='78' cy='258' r='1'/%3E%3Ccircle cx='86' cy='246' r='1.5'/%3E%3Ccircle cx='390' cy='200' r='1.4'/%3E%3Ccircle cx='398' cy='208' r='1.1'/%3E%3Ccircle cx='406' cy='196' r='1.6'/%3E%3C/g%3E%3Crect x='20' y='300' width='54' height='12' fill='%238B7355' opacity='.1' transform='rotate(-14 47 306)'/%3E%3Crect x='300' y='400' width='72' height='10' fill='%235A5248' opacity='.09' transform='rotate(8 336 405)'/%3E%3C/svg%3E");
    background-repeat: no-repeat, repeat;
    background-size: auto, 420px 420px;
    background-position: center, 0 0;
}

.reader-root {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
}

.reader-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 auto;
}

/* ---------- Overlay top bar ---------- */

.reader-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding:
        max(4px, env(safe-area-inset-top))
        max(10px, env(safe-area-inset-right))
        0
        max(8px, env(safe-area-inset-left));
    color: #5E4C3B;
    background: linear-gradient(to bottom, rgba(228, 211, 188, 0.92), rgba(228, 211, 188, 0));
    pointer-events: none;
}

.reader-back {
    pointer-events: auto;
}

.reader-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(255, 248, 241, 0.88);
    box-shadow: 0 6px 16px rgba(63, 53, 44, 0.12);
    transition: color 0.25s ease, background 0.25s ease;
}

.reader-back:hover {
    color: #3F352C;
    background: rgba(255, 248, 241, 0.55);
}

.reader-fit-report {
    position: absolute;
    left: 50%;
    top: calc(100% + 2px);
    transform: translateX(-50%);
    z-index: 6;
    grid-column: auto;
    margin: 0;
    padding: 3px 12px;
    white-space: nowrap;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #8a1f11;
    background: rgba(255, 236, 232, 0.96);
    border: 1px solid rgba(180, 35, 24, 0.25);
    border-radius: 999px;
    pointer-events: none;
}

/* ---------- Page: almost full viewport ---------- */

.reader-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    direction: ltr;
    unicode-bidi: isolate;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 4px 8px;
    background-color: #D6C6AE;
    background-image:
        radial-gradient(ellipse 48% 58% at 50% 46%, rgba(236, 226, 210, 0.78) 0%, rgba(228, 214, 194, 0.38) 38%, rgba(214, 198, 174, 0.1) 62%, transparent 74%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M48 36v88' stroke='%236B5A48' stroke-width='3' opacity='.21'/%3E%3Cpath d='M402 86v54' stroke='%235A5248' stroke-width='2' opacity='.18'/%3E%3Cpath d='M78 168c36-46 86-8 66 28-18 36-74 18-66-18' stroke='%238B7355' stroke-width='7' opacity='.19'/%3E%3Cpath d='M268 52l16 64 16-44 16 44 16-64' stroke='%235E4C3B' stroke-width='6' opacity='.16'/%3E%3Cpath d='M28 390q70-36 126 8t112-18' stroke='%237A6A58' stroke-width='4' opacity='.16'/%3E%3Cpath d='M430 28h-28v46h28' stroke='%235A5248' stroke-width='9' opacity='.14'/%3E%3Cpath d='M340 300c28-18 58 6 44 28-12 20-46 12-44-8' stroke='%236B5A48' stroke-width='5' opacity='.16'/%3E%3Cpath d='M160 430c40 8 70-22 58-48' stroke='%238B7355' stroke-width='6' opacity='.15'/%3E%3C/g%3E%3Cg fill='%236B5A48' opacity='.12'%3E%3Ccircle cx='190' cy='310' r='1.6'/%3E%3Ccircle cx='198' cy='318' r='1.2'/%3E%3Ccircle cx='206' cy='306' r='1.8'/%3E%3Ccircle cx='214' cy='322' r='1.1'/%3E%3Ccircle cx='222' cy='312' r='1.4'/%3E%3Ccircle cx='70' cy='250' r='1.3'/%3E%3Ccircle cx='78' cy='258' r='1'/%3E%3Ccircle cx='86' cy='246' r='1.5'/%3E%3Ccircle cx='390' cy='200' r='1.4'/%3E%3Ccircle cx='398' cy='208' r='1.1'/%3E%3Ccircle cx='406' cy='196' r='1.6'/%3E%3C/g%3E%3Crect x='20' y='300' width='54' height='12' fill='%238B7355' opacity='.1' transform='rotate(-14 47 306)'/%3E%3Crect x='300' y='400' width='72' height='10' fill='%235A5248' opacity='.09' transform='rotate(8 336 405)'/%3E%3C/svg%3E");
    background-repeat: no-repeat, repeat;
    background-size: auto, 420px 420px;
    background-position: center, 0 0;
    touch-action: pan-y;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior: contain;
}

.comics-reader-body.is-large .reader-stage {
    overflow-x: hidden;
    overflow-y: auto;
    align-items: flex-start;
    padding: 4px 4px 8px;
    -webkit-overflow-scrolling: touch;
}

.comics-reader-body.is-large .reader-sheet {
    height: auto;
    min-height: 100%;
    align-items: flex-start;
}

.comics-reader-body.is-fit .reader-stage {
    overflow: hidden;
    align-items: center;
}

.comics-reader-body.is-fit .reader-sheet {
    height: 100%;
    min-height: 0;
    align-items: center;
}

.reader-sheet {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    direction: ltr;
    unicode-bidi: isolate;
    padding: 0;
    background: none;
}

.reader-sheet.is-turn-next {
    animation: reader-turn-next 0.38s ease;
}

.reader-sheet.is-turn-prev {
    animation: reader-turn-prev 0.38s ease;
}

@keyframes reader-turn-next {
    from {
        opacity: 0.4;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reader-turn-prev {
    from {
        opacity: 0.4;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reader-sheet img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

.reader-stage.has-art {
    background-color: #D6C6AE;
}

.reader-sheet.has-art {
    padding: 0;
    background: none;
}

.reader-art {
    position: relative;
    flex: 0 0 auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 36px rgba(63, 53, 44, 0.22);
}

.reader-art[hidden] {
    display: none;
}

.reader-art,
.reader-art img,
#reader-image {
    direction: ltr;
    unicode-bidi: isolate;
    transform: none;
}

.reader-art img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.reader-texts {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.reader-hotspots {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.reader-hotspot {
    position: absolute;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 10px;
}

.reader-hotspot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 106, 0.7);
    background: rgba(255, 248, 241, 0.28);
    box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.35);
    animation: hotspot-pulse 2.2s ease-out infinite;
}

.reader-hotspot:active::after,
.reader-hotspot.is-playing::after {
    background: rgba(201, 168, 106, 0.7);
    transform: scale(1.15);
    animation: none;
}

@keyframes hotspot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(201, 168, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 168, 106, 0); }
}

.reader-slot {
    position: absolute;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    line-height: 1.22;
    color: #1A140C;
    white-space: pre-line;
    box-sizing: border-box;
}

.reader-slot.is-title {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.12;
}

.reader-slot.is-caption {
    font-size: 16px;
}

.reader-slot.is-dialogue {
    font-size: 16px;
}

.reader-slot-text {
    display: block;
    width: 100%;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.reader-slot[dir="rtl"],
html[dir="rtl"] .reader-slot {
    direction: rtl;
    text-align: right;
    font-family: "Heebo", "Poppins", sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.reader-langs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin-right: 4px;
    direction: ltr;
    unicode-bidi: isolate;
    writing-mode: horizontal-tb;
}

.reader-langs button {
    direction: ltr;
    unicode-bidi: isolate;
    writing-mode: horizontal-tb;
}

.reader-langs .lang-code {
    display: grid;
    grid-template-columns: repeat(2, 1em);
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    direction: ltr;
    unicode-bidi: isolate;
    writing-mode: horizontal-tb;
    text-align: center;
    width: 2em;
}

.reader-langs .lang-ch {
    display: block;
    direction: ltr;
    unicode-bidi: isolate;
    writing-mode: horizontal-tb;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-align: center;
}

.reader-langs button {
    min-width: 40px;
    min-height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5E4C3B;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
}

.reader-langs button:hover,
.reader-langs button.active {
    color: #3F352C;
    background: rgba(201, 168, 106, 0.28);
}

.reader-langs button.is-unavailable,
.reader-langs button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    background: transparent;
    color: #8A7A6A;
}

.reader-langs button.is-unavailable:hover,
.reader-langs button:disabled:hover {
    background: transparent;
    color: #8A7A6A;
}

.reader-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
    max-width: 18em;
    text-align: center;
}

.reader-empty[hidden] {
    display: none !important;
}

.reader-missing {
    margin: 0;
    max-width: 28em;
    padding: 16px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: #6A5744;
}

.reader-missing[hidden] {
    display: none !important;
}

.reader-empty-line {
    font-family: "Poppins", sans-serif;
    font-size: clamp(18px, 3.2vw, 26px);
    font-weight: 500;
    line-height: 1.35;
    color: #6A5744;
}

.reader-empty-brand {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(140, 112, 72, 0.62);
}

.reader-empty .is-en,
.reader-empty .is-he {
    display: none;
}

html[lang="en"] .reader-empty .is-en {
    display: block;
}

html[lang="en"] .reader-empty .is-ru {
    display: none;
}

html[lang="he"] .reader-empty .is-he {
    display: block;
}

html[lang="he"] .reader-empty .is-ru {
    display: none;
}

.reader-watermark {
    position: absolute;
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(75, 61, 47, 0.16);
    pointer-events: none;
    white-space: nowrap;
}

/* ---------- Compact floating bar ---------- */

.reader-dock {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 2px 8px max(4px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.reader-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    padding: 4px 6px 4px 6px;
    border-radius: 999px;
    background: rgba(255, 248, 241, 0.92);
    border: 1px solid rgba(75, 61, 47, 0.16);
    box-shadow: 0 10px 24px rgba(63, 53, 44, 0.16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    direction: ltr;
    unicode-bidi: isolate;
    box-sizing: border-box;
}

.reader-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: ltr;
    unicode-bidi: isolate;
}

.reader-arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 106, 0.28);
    background: transparent;
    color: #6A5338;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.18s ease;
}

.reader-arrow-text {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.reader-arrow:hover:not(:disabled) {
    background: rgba(201, 168, 106, 0.18);
    border-color: rgba(201, 168, 106, 0.55);
    color: #3F352C;
}

.reader-arrow:active:not(:disabled) {
    transform: scale(0.96);
}

.reader-arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

.reader-counter {
    min-width: 64px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    font-variant-numeric: tabular-nums;
    color: #3F352C;
}

.reader-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-left: 8px;
    border-left: 1px solid rgba(75, 61, 47, 0.16);
}

.reader-tool {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5E4C3B;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease;
}

.reader-tool:hover,
.reader-tool[aria-expanded="true"] {
    color: #3F352C;
    background: rgba(201, 168, 106, 0.18);
}

.reader-tool:active {
    background: rgba(201, 168, 106, 0.18);
}

.reader-tool:active .reader-icon-bookmark,
.reader-tool:focus-visible .reader-icon-bookmark {
    fill: rgba(201, 168, 106, 0.85);
    stroke: #C9A86A;
}

.reader-tool-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.reader-lang-menu {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 248, 241, 0.96);
    border: 1px solid rgba(75, 61, 47, 0.16);
    box-shadow: 0 12px 28px rgba(63, 53, 44, 0.16);
}

.reader-lang-menu[hidden] {
    display: none;
}

.reader-lang-menu button {
    min-width: 44px;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5E4C3B;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.reader-lang-menu button:hover,
.reader-lang-menu button.active {
    color: #3F352C;
    background: rgba(201, 168, 106, 0.22);
}

.comics-reader-body.is-fullscreen .reader-top {
    opacity: 0;
    pointer-events: none;
}

.comics-reader-body.is-fullscreen .reader-stage {
    padding: 0 4px 4px;
}

.comics-reader-body.is-fullscreen .reader-dock {
    padding: 2px 8px max(4px, env(safe-area-inset-bottom));
}

.reader-zoom-fit {
    display: none;
}

.comics-reader-body.is-large .reader-zoom-in {
    display: none;
}

.comics-reader-body.is-large .reader-zoom-fit {
    display: block;
}

@media (min-width: 768px) {
    .reader-top {
        min-height: 0;
        padding-top: max(2px, env(safe-area-inset-top));
        padding-bottom: 0;
    }

    .reader-stage {
        padding: 4px 8px;
    }

    .reader-dock {
        padding: 2px 8px max(6px, env(safe-area-inset-bottom));
    }
}

@media (min-width: 1024px) {
    .reader-bar {
        padding: 5px 8px;
    }
}

@media (max-width: 767px) {
    #reader-zoom {
        display: none;
    }

    .reader-stage {
        padding-left: max(4px, env(safe-area-inset-left));
        padding-right: max(4px, env(safe-area-inset-right));
        touch-action: none;
        -webkit-touch-callout: none;
    }

    .reader-stage,
    .reader-sheet,
    .reader-art,
    .reader-art img,
    #reader-image {
        max-width: 100%;
        min-width: 0;
    }

    .reader-art {
        width: 100%;
        flex: 0 1 auto;
        min-width: 0;
        height: auto;
        transform-origin: 0 0;
    }

    .reader-stage.is-zoomed {
        overflow: hidden;
        touch-action: none;
        -webkit-overflow-scrolling: auto;
    }

    .reader-stage.is-zoomed .reader-sheet {
        min-height: 0;
        height: 100%;
        animation: none;
    }

    .reader-art img,
    #reader-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top center;
    }

    .reader-dock,
    .reader-top {
        touch-action: manipulation;
    }

    .reader-dock {
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
    }

    .reader-bar {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 2px;
        border-radius: 22px;
        width: 100%;
    }

    .reader-nav {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: space-between;
    }

    .reader-tools {
        flex: 1 1 100%;
        justify-content: center;
        padding-left: 0;
        border-left: 0;
    }

    .reader-arrow-text {
        white-space: nowrap;
        padding: 8px 10px;
        font-size: 11px;
    }

    .reader-counter {
        min-width: 52px;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 360px) {
    .reader-arrow-text {
        padding: 7px 8px;
        font-size: 10px;
        letter-spacing: 0;
    }

    .reader-counter {
        min-width: 44px;
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .reader-langs button {
        min-width: 32px;
        min-height: 32px;
        padding: 0 4px;
        font-size: 11px;
    }

    .reader-tool {
        width: 36px;
        height: 36px;
    }
}

    .reader-icon {
        width: 17px;
        height: 17px;
    }

    .reader-tool {
        width: 42px;
        height: 42px;
    }

    .reader-arrow-text {
        width: auto;
        height: auto;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .reader-sheet {
        padding: 0;
    }

    .reader-langs button {
        min-width: 36px;
        padding: 0 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reader-sheet.is-turn-next,
    .reader-sheet.is-turn-prev {
        animation: none;
    }
}

html[dir="rtl"] .reader-empty {
    direction: rtl;
}

html[dir="rtl"] .reader-back .reader-icon {
    transform: scaleX(-1);
}

html[dir="rtl"] .reader-stage,
html[dir="rtl"] .reader-sheet,
html[dir="rtl"] .reader-art,
html[dir="rtl"] .reader-art img,
html[dir="rtl"] #reader-image {
    direction: ltr;
    unicode-bidi: isolate;
    transform: none;
}

html[dir="rtl"] .reader-langs,
html[dir="rtl"] .reader-langs button,
html[dir="rtl"] .reader-langs .lang-code,
html[dir="rtl"] .reader-langs .lang-ch,
html[dir="rtl"] .reader-bar,
html[dir="rtl"] .reader-nav {
    direction: ltr;
    unicode-bidi: isolate;
    writing-mode: horizontal-tb;
    flex-direction: row;
}

html[dir="rtl"] .reader-counter {
    direction: ltr;
}
